/*
Theme Name: Secure Design Hub
Theme URI: https://example.com/
Author: OpenAI
Description: A professional, responsive, self-contained WordPress business theme with a secure admin dashboard.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: secure-design-hub
License: GPL-2.0-or-later
*/

:root {
  --sdh-primary: #2563eb;
  --sdh-primary-dark: #1d4ed8;
  --sdh-ink: #101828;
  --sdh-text: #344054;
  --sdh-muted: #667085;
  --sdh-line: #e4e7ec;
  --sdh-soft: #f8fafc;
  --sdh-white: #ffffff;
  --sdh-footer: #0b1220;
  --sdh-width: 1240px;
  --sdh-radius: 14px;
  --sdh-shadow: 0 18px 50px rgba(16, 24, 40, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sdh-white); color: var(--sdh-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.sdh-menu-active { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(37, 99, 235, .30); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.sdh-container { width: min(calc(100% - 40px), var(--sdh-width)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { top: 14px; left: 14px; z-index: 99999; width: auto; height: auto; padding: 12px 16px; margin: 0; clip: auto; border-radius: 8px; background: #fff; color: #111827; box-shadow: var(--sdh-shadow); }

/* Header */
.sdh-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(228,231,236,.9); backdrop-filter: saturate(180%) blur(16px); }
.admin-bar .sdh-header { top: 32px; }
.sdh-header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.sdh-site-branding { flex: 0 0 auto; min-width: 160px; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { display: block; width: auto; max-width: 190px; max-height: 48px; }
.sdh-wordmark { display: inline-flex; align-items: center; gap: 12px; color: var(--sdh-ink); }
.sdh-wordmark-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; background: linear-gradient(135deg, var(--sdh-primary), #4f46e5); color: #fff; font-weight: 800; box-shadow: 0 8px 22px rgba(37,99,235,.24); }
.sdh-wordmark-text { display: flex; flex-direction: column; line-height: 1.1; }
.sdh-wordmark-text strong { color: var(--sdh-ink); font-size: 1.02rem; letter-spacing: -.025em; }
.sdh-wordmark-text small { max-width: 190px; margin-top: 5px; overflow: hidden; color: var(--sdh-muted); font-size: .69rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sdh-navigation-panel { display: flex; align-items: center; justify-content: flex-end; gap: 28px; flex: 1 1 auto; }
.sdh-primary-nav { display: flex; justify-content: flex-end; }
.sdh-menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sdh-menu li { position: relative; }
.sdh-menu > li > a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 9px; color: #475467; font-size: .93rem; font-weight: 650; transition: background .18s ease, color .18s ease; }
.sdh-menu > li > a:hover, .sdh-menu > .current-menu-item > a, .sdh-menu > .current-menu-ancestor > a { background: #f2f4f7; color: var(--sdh-ink); }
.sdh-menu .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.sdh-menu .sub-menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; margin: 0; padding: 8px; list-style: none; border: 1px solid var(--sdh-line); border-radius: 12px; background: #fff; box-shadow: var(--sdh-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease; }
.sdh-menu li:hover > .sub-menu, .sdh-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sdh-menu .sub-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: #475467; font-size: .9rem; font-weight: 600; }
.sdh-menu .sub-menu a:hover { background: #f2f4f7; color: var(--sdh-ink); }
.sdh-header-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 10px; background: var(--sdh-primary); color: #fff; font-size: .92rem; font-weight: 750; box-shadow: 0 8px 18px rgba(37,99,235,.22); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.sdh-header-button:hover { background: var(--sdh-primary-dark); transform: translateY(-1px); box-shadow: 0 11px 22px rgba(37,99,235,.28); }
.sdh-header-button svg { width: 18px; height: 18px; }
.sdh-menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--sdh-line); border-radius: 10px; background: #fff; cursor: pointer; }
.sdh-menu-toggle-lines { display: grid; gap: 5px; justify-content: center; }
.sdh-menu-toggle-lines i { display: block; width: 21px; height: 2px; border-radius: 10px; background: var(--sdh-ink); transition: transform .2s ease, opacity .2s ease; }
.is-menu-open .sdh-menu-toggle-lines i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-menu-open .sdh-menu-toggle-lines i:nth-child(2) { opacity: 0; }
.is-menu-open .sdh-menu-toggle-lines i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Main content */
.sdh-site-main { min-height: 60vh; padding: 72px 0 96px; background: linear-gradient(180deg, #fff 0, #fbfcfe 100%); }
.sdh-page-heading { max-width: 760px; margin: 0 0 44px; }
.sdh-page-heading span, .sdh-post-meta { color: var(--sdh-primary); font-size: .76rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.sdh-page-heading h1, .sdh-content-card h1, .sdh-content-card h2 { margin: 8px 0 16px; color: var(--sdh-ink); line-height: 1.16; letter-spacing: -.035em; }
.sdh-page-heading h1 { font-size: clamp(2.4rem, 6vw, 4.7rem); }
.sdh-content-list { display: grid; gap: 28px; }
.sdh-content-card { overflow: hidden; border: 1px solid var(--sdh-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(16,24,40,.045); }
.sdh-content-card:not(.page) { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); }
.sdh-card-image { min-height: 260px; overflow: hidden; background: #eef2f6; }
.sdh-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sdh-card-image:hover img { transform: scale(1.025); }
.sdh-card-content { padding: clamp(26px, 4vw, 48px); }
.sdh-content-card h1 { font-size: clamp(2rem, 4vw, 3.6rem); }
.sdh-content-card h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
.sdh-content-card h2 a:hover { color: var(--sdh-primary); }
.sdh-entry-content > *:first-child { margin-top: 0; }
.sdh-entry-content > *:last-child { margin-bottom: 0; }
.sdh-entry-content a { color: var(--sdh-primary); text-decoration: underline; text-underline-offset: 3px; }
.sdh-entry-content .wp-block-button__link, .sdh-entry-content button, .sdh-entry-content input[type="submit"] { border-radius: 9px; }
.sdh-empty-state { padding: clamp(54px, 9vw, 100px); border: 1px solid var(--sdh-line); border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 18px 50px rgba(16,24,40,.06); }
.sdh-empty-state h1 { margin: 0 auto 14px; max-width: 760px; color: var(--sdh-ink); font-size: clamp(2rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -.04em; }
.sdh-empty-state p { margin: 0; color: var(--sdh-muted); font-size: 1.05rem; }
.nav-links { display: flex; justify-content: center; gap: 7px; margin-top: 38px; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--sdh-line); border-radius: 9px; background: #fff; font-weight: 700; }
.page-numbers.current, .page-numbers:hover { border-color: var(--sdh-primary); background: var(--sdh-primary); color: #fff; }

/* Footer */
.sdh-footer { padding: 72px 0 26px; background: var(--sdh-footer); color: #cbd5e1; }
.sdh-footer-top { display: grid; grid-template-columns: 1.5fr .75fr 1fr; gap: clamp(36px, 7vw, 90px); padding-bottom: 54px; }
.sdh-footer-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #fff; font-size: 1.02rem; }
.sdh-footer-logo .custom-logo-link { pointer-events: none; }
.sdh-footer-logo .custom-logo { max-width: 180px; max-height: 48px; filter: brightness(0) invert(1); }
.sdh-footer-brand-column p { max-width: 460px; margin: 0; color: #94a3b8; }
.sdh-footer-column h2 { margin: 0 0 18px; color: #fff; font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; }
.sdh-footer-menu { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sdh-footer-menu .children { display: none; }
.sdh-footer-menu a, .sdh-footer-contact a { color: #cbd5e1; transition: color .18s ease; }
.sdh-footer-menu a:hover, .sdh-footer-contact a:hover, .sdh-legal-links a:hover { color: #fff; }
.sdh-footer-contact p { margin: 0 0 14px; color: #94a3b8; }
.sdh-footer-contact a { font-weight: 700; }
.sdh-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(148,163,184,.20); color: #94a3b8; font-size: .85rem; }
.sdh-footer-bottom p { margin: 0; }
.sdh-legal-links { display: flex; gap: 22px; }

@media (max-width: 1023px) {
  .admin-bar .sdh-header { top: 46px; }
  .sdh-header-inner { min-height: 72px; }
  .sdh-menu-toggle { display: block; margin-left: auto; }
  .sdh-navigation-panel { position: fixed; top: 73px; right: 0; bottom: 0; width: min(88vw, 390px); display: flex; align-items: stretch; justify-content: flex-start; flex-direction: column; gap: 20px; padding: 24px; overflow-y: auto; background: #fff; border-left: 1px solid var(--sdh-line); box-shadow: -20px 0 50px rgba(16,24,40,.12); transform: translateX(105%); visibility: hidden; transition: transform .24s ease, visibility .24s ease; }
  .admin-bar .sdh-navigation-panel { top: 119px; }
  .is-menu-open .sdh-navigation-panel { transform: translateX(0); visibility: visible; }
  .sdh-primary-nav { display: block; }
  .sdh-menu { align-items: stretch; flex-direction: column; gap: 4px; }
  .sdh-menu > li > a { justify-content: space-between; min-height: 50px; padding: 0 13px; font-size: 1rem; }
  .sdh-menu .sub-menu { position: static; display: block; min-width: 0; margin: 2px 0 8px 12px; padding: 4px 0 4px 12px; border: 0; border-left: 1px solid var(--sdh-line); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .sdh-header-button { width: 100%; margin-top: 6px; }
  .sdh-footer-top { grid-template-columns: 1.3fr 1fr; }
  .sdh-footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
  .admin-bar .sdh-header { top: 46px; }
}

@media (max-width: 700px) {
  .sdh-container { width: min(calc(100% - 28px), var(--sdh-width)); }
  .sdh-wordmark-text small { display: none; }
  .custom-logo { max-width: 155px; max-height: 42px; }
  .sdh-site-main { padding: 48px 0 68px; }
  .sdh-content-card:not(.page) { grid-template-columns: 1fr; }
  .sdh-card-image { min-height: 220px; }
  .sdh-card-content { padding: 25px; }
  .sdh-footer { padding-top: 54px; }
  .sdh-footer-top { grid-template-columns: 1fr; gap: 34px; padding-bottom: 42px; }
  .sdh-footer-contact { grid-column: auto; }
  .sdh-footer-bottom { align-items: flex-start; flex-direction: column; }
  .sdh-legal-links { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .sdh-header-inner { min-height: 66px; }
  .sdh-wordmark-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .sdh-menu-toggle { width: 42px; height: 42px; }
  .sdh-navigation-panel { top: 67px; width: 100%; }
  .admin-bar .sdh-navigation-panel { top: 113px; }
}

/* Alternative component slots: intentionally simpler than the professional default. */
.sdh-header-02 { position: relative; z-index: 50; background: #101828; color: #fff; }
.sdh-header-02-shell { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.sdh-brand-wrap { margin-right: auto; }
.sdh-brand-editorial { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.sdh-editorial-symbol { color: #84cc16; }
.sdh-header-02 .sdh-nav-panel { display: flex; align-items: center; gap: 30px; }
.sdh-header-02 .sdh-menu { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.sdh-header-02 .sdh-menu a { color: #e5e7eb; font-weight: 600; font-size: .94rem; }
.sdh-header-02 .sdh-menu a:hover { color: #fff; }
.sdh-header-actions { display: flex; align-items: center; gap: 16px; }
.sdh-text-link { color: #e5e7eb; font-weight: 700; }
.sdh-round-cta { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; background: #84cc16; color: #101828; font-weight: 900; }

.sdh-footer-02 { padding: 70px 0 28px; background: #f8fafc; color: #344054; }
.sdh-footer-02-top { display: flex; align-items: end; justify-content: space-between; gap: 36px; padding-bottom: 38px; border-bottom: 1px solid #e4e7ec; }
.sdh-footer-02 h2 { max-width: 650px; margin: 8px 0 0; color: #101828; font-size: clamp(1.8rem, 4vw, 3.2rem); letter-spacing: -.04em; }
.sdh-eyebrow { color: #2563eb; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.sdh-newsletter { display: flex; gap: 10px; }
.sdh-newsletter input { min-width: 230px; height: 46px; padding: 0 14px; border: 1px solid #d0d5dd; border-radius: 9px; background: #fff; }
.sdh-newsletter button { height: 46px; padding: 0 18px; border: 0; border-radius: 9px; background: #101828; color: #fff; font-weight: 800; }
.sdh-footer-02-middle { display: grid; grid-template-columns: 1.5fr .7fr .7fr; gap: 50px; padding: 42px 0; }
.sdh-footer-02 .sdh-footer-brand { color: #101828; font-size: 1.15rem; font-weight: 850; }
.sdh-footer-02 h3 { margin: 0 0 14px; color: #101828; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.sdh-footer-02 .sdh-footer-contact { display: grid; align-content: start; gap: 8px; }
.sdh-footer-02 .sdh-footer-bottom { border-color: #e4e7ec; color: #667085; }
.sdh-footer-02 .sdh-footer-bottom a { color: #344054; font-weight: 700; }

@media (max-width: 1023px) {
  .sdh-header-02 .sdh-nav-panel { position: fixed; top: 78px; right: 0; bottom: 0; width: min(88vw, 390px); display: flex; align-items: stretch; flex-direction: column; padding: 28px; background: #101828; transform: translateX(105%); visibility: hidden; transition: .24s ease; }
  .sdh-header-02.is-menu-open .sdh-nav-panel { transform: translateX(0); visibility: visible; }
  .sdh-header-02 .sdh-menu { align-items: stretch; flex-direction: column; gap: 4px; }
  .sdh-header-02 .sdh-menu a { display: block; padding: 13px 0; }
  .sdh-header-actions { margin-top: 20px; }
  .sdh-footer-02-top { align-items: flex-start; flex-direction: column; }
  .sdh-footer-02-middle { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .sdh-newsletter { width: 100%; flex-direction: column; }
  .sdh-newsletter input, .sdh-newsletter button { width: 100%; min-width: 0; }
  .sdh-footer-02-middle { grid-template-columns: 1fr; gap: 28px; }
}
