/* ============================================
   LAYOUT — CTA bar, header/nav, footer, mobile menu
   Shared across every page of the site.
   ============================================ */

/* === CTA TOP BAR (fixed, always visible) === */
.cta-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 101;
    height: 40px;
    background: linear-gradient(90deg, rgba(25,164,166,0.22) 0%, rgba(10,10,10,0.92) 55%, rgba(25,164,166,0.22) 100%);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    padding: 0 40px;
    font-family: var(--font-body);
    font-size: 12px; color: var(--off-white);
}
.cta-bar-message { flex: 1; text-align: center; letter-spacing: 0.04em; }
.cta-bar-message strong { color: var(--teal); font-weight: 600; margin: 0 4px; letter-spacing: 0.06em; }
.cta-bar-cta {
    color: var(--teal-light); text-decoration: none; font-weight: 600;
    margin-left: 10px; padding-bottom: 1px;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.cta-bar-cta:hover { color: var(--white); border-bottom-color: var(--teal-light); }

/* Shift site header below cta-bar */
body .site-header { top: 40px !important; }

/* === SITE HEADER === */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
}
.site-header.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    padding: 21px 40px;
}
.site-header .logo img { height: 54px; width: auto; }

/* === NAV LINKS === */
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a,
.nav-dropdown-trigger {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--off-white);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.nav-links a:hover,
.nav-dropdown-trigger:hover { color: var(--teal); }
.nav-links a.active { color: var(--teal); }

/* Podcast nav — teal dot indicator */
.nav-links .nav-podcast { position: relative; }
.nav-links .nav-podcast::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--teal);
    position: absolute;
    top: -4px; right: -8px;
}

/* === SERVICES DROPDOWN === */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: flex; align-items: center; gap: 4px; }
.nav-dropdown-trigger::after {
    content: '';
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s;
}
.nav-dropdown:hover .nav-dropdown-trigger::after { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%);
    margin-top: 16px;
    background: rgba(17, 17, 17, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 8px;
}
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    font-size: 12px !important;
    letter-spacing: 0.1em !important;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.04); }
.nav-dropdown-menu .svc-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.svc-dot.gold { background: var(--gold); }
.svc-dot.blue { background: var(--blue); }
.svc-dot.teal { background: var(--teal); }
.svc-dot.purple { background: var(--orchid); }

/* === LANG TOGGLE === */
.lang-toggle {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--muted);
    cursor: pointer;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0;
}
.lang-toggle a,
.lang-toggle .lang-toggle-btn {
    color: var(--muted);
    text-decoration: none;
    padding: 14px 10px;            /* WCAG target-size: ~44px hit area */
    min-width: 32px;
    text-align: center;
    line-height: 1;
    transition: color 0.3s ease;
    font-weight: 500;
}
.lang-toggle a:hover,
.lang-toggle .lang-toggle-btn:hover {
    color: var(--white);
}
.lang-toggle a.active,
.lang-toggle .lang-toggle-btn.active {
    color: var(--white);
    font-weight: 700;
}
.lang-toggle-sep {
    color: var(--muted);
    opacity: 0.5;
    padding: 0 2px;
}

/* === HAMBURGER + MOBILE OVERLAY === */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 200;
    padding: 8px;
    background: none;
    border: none;
}
.hamburger span {
    width: 24px; height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.hamburger.active {
    position: fixed;
    top: 18px; right: 18px;
    z-index: 201;
    width: 48px; height: 48px;
    padding: 0;
    background: var(--teal);
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
}
.hamburger.active span {
    background: var(--black);
    width: 22px;
    height: 2.5px;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    bottom: 15%;
    background: rgba(10, 10, 10, 0.97);
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-bottom: 1px solid rgba(25, 164, 166, 0.25);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.mobile-overlay.open {
    display: flex;
    opacity: 1;
}
.mobile-overlay a {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}
.mobile-overlay a:hover { color: var(--teal); }
.mobile-overlay .mobile-services {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-left: 24px;
}
.mobile-overlay .mobile-services a {
    font-size: 13px;
    color: var(--muted);
}
.mobile-services-label {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 4px;
}

/* === SITE FOOTER === */
.site-footer {
    background: #050508;
    border-top: 1px solid rgba(25, 164, 166, 0.1);
    padding: 80px 40px 40px;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}
.footer-logo img { height: 32px; width: auto; margin-bottom: 20px; }
.footer-tagline {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 300px;
    margin-bottom: 16px;
}
.footer-founder { font-size: 12px; color: #a3a3a3; }
.footer-founder a { color: var(--teal); text-decoration: none; }
.site-footer h5,
.site-footer .footer-col-title {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--off-white);
    margin-bottom: 20px;
    margin-top: 0;
}

/* Visually hidden — present for screen readers but invisible. Used to add
   semantic h1 on pages whose hero design has no visible top-level title. */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 4px; }
.footer-links a {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 10px 0;               /* WCAG target-size: ≥40px tappable height */
    min-height: 24px;
    line-height: 1.4;
}
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #a3a3a3;
}
.footer-legal a { color: #a3a3a3; text-decoration: none; margin-left: 24px; padding: 12px 4px; display: inline-block; }
.footer-legal a:hover { color: var(--white); }
.footer-social { display: flex; gap: 16px; align-items: center; }
.footer-social a { color: rgba(255,255,255,0.5); transition: color 0.3s ease;
    /* WCAG 2.5.8 target size: guarantee a ≥24×24 tap target (icon was 18×23). */
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 24px; min-height: 24px; }
.footer-social a:hover { color: var(--white); }

/* Page hero — baseline shared by all pages using .page-hero.
   Clears the fixed CTA bar + .site-header. Page-specific CSS
   (contact.css, thought-leadership.css) is loaded after and overrides. */
.page-hero { padding: 160px 0 60px; text-align: center; }
.page-hero h1 { color: var(--white); }
.page-hero p, .page-hero .subtitle { color: var(--muted); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .cta-bar { padding: 0 16px; font-size: 11px; height: 36px; }
    body .site-header { top: 36px !important; }
    .nav-links { display: none; }
    .lang-toggle { display: none; }
    .hamburger { display: flex; }
    .footer-grid { grid-template-columns: 1fr; }
    .page-hero { padding: 130px 0 48px; }
}
@media (max-width: 480px) {
    .cta-bar { padding: 0 12px; font-size: 10.5px; letter-spacing: 0.02em; }
    .cta-bar-message { text-align: left; }
}
