/* ============================================================
   TERANGA v3 — Navigation & Footer Styles
   ============================================================ */

/* ── HEADER ── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: all .3s ease; }
.site-header.scrolled .header-main { box-shadow: 0 4px 24px rgba(0,0,0,.12); }

/* ── TOP BAR ── */
.header-top { background: var(--navy); padding: 0; }
.header-top-inner { display: flex; align-items: center; justify-content: space-between; height: 36px; gap: 16px; flex-wrap: wrap; }
.header-contact-item { display: flex; align-items: center; gap: 5px; font-size: .72rem; color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s; }
.header-contact-item:hover { color: var(--gold); }
.header-top-left, .header-top-right { display: flex; align-items: center; gap: 16px; }
.header-ai-btn { display: flex; align-items: center; gap: 6px; padding: 4px 12px; background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.3); border-radius: 999px; font-size: .72rem; font-weight: 700; color: #10B981; text-decoration: none; transition: all .2s; }
.header-ai-btn:hover { background: rgba(16,185,129,.25); }
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: #10B981; animation: aiPulse 2s infinite; flex-shrink: 0; }
@keyframes aiPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }

/* ── MAIN NAV ── */
.header-main { background: #fff; border-bottom: 1px solid var(--g200); }
.header-main-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 800; color: var(--navy); line-height: 1; }
.logo-accent { color: var(--blue); }
.logo-tagline { font-size: .58rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--g400); margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-link { padding: 7px 12px; border-radius: 7px; font-size: .82rem; font-weight: 600; color: var(--g700); text-decoration: none; transition: all .2s; white-space: nowrap; }
.nav-link:hover { background: var(--g50); color: var(--blue); }
.nav-link.active { background: rgba(27,79,216,.08); color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.search-trigger { display: flex; align-items: center; gap: 7px; padding: 7px 12px; background: var(--g50); border: 1.5px solid var(--g200); border-radius: 8px; font-size: .78rem; color: var(--g500); cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif; white-space: nowrap; }
.search-trigger:hover { border-color: var(--blue); color: var(--blue); background: #EFF6FF; }
.search-trigger kbd { background: var(--g200); border-radius: 4px; padding: 1px 5px; font-size: .65rem; font-family: monospace; }

/* ── HAMBURGER ── */
.mob-menu-btn { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px; transition: .2s; }
.mob-menu-btn:hover { background: var(--g100); }
.mob-menu-btn span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s ease; transform-origin: center; }
.mob-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mob-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mob-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── MOBILE OVERLAY ── */
.mob-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 998; opacity: 0; pointer-events: none; transition: opacity .3s; backdrop-filter: blur(2px); }
.mob-overlay.open { opacity: 1; pointer-events: all; }

/* ── MOBILE DRAWER ── */
.mob-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 320px; max-width: 88vw; background: #fff; z-index: 999; transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; overflow: hidden; box-shadow: 4px 0 32px rgba(0,0,0,.15); }
.mob-drawer.open { transform: translateX(0); }
.mob-drawer-hdr { background: var(--navy); padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.mob-drawer-hdr .logo-name { color: #fff; }
.mob-drawer-hdr .logo-tagline { color: rgba(255,255,255,.4); }
.mob-close { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.1); border: none; color: #fff; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: .2s; }
.mob-close:hover { background: rgba(255,255,255,.2); }
.mob-drawer-body { flex: 1; overflow-y: auto; padding: 12px 0; }
.mob-drawer-body::-webkit-scrollbar { width: 3px; }
.mob-drawer-body::-webkit-scrollbar-thumb { background: var(--g200); border-radius: 2px; }
.mob-section-label { padding: 10px 20px 4px; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--g400); display: flex; align-items: center; gap: 8px; }
.mob-section-label::after { content: ''; flex: 1; height: 1px; background: var(--g200); }
.mob-link { display: flex; align-items: center; gap: 10px; padding: 11px 20px; color: var(--g700); font-size: .88rem; font-weight: 500; text-decoration: none; transition: .15s; border-left: 3px solid transparent; }
.mob-link:hover, .mob-link.active { background: #EFF6FF; color: var(--blue); border-left-color: var(--blue); }
.mob-link svg { flex-shrink: 0; color: var(--g400); }
.mob-link:hover svg { color: var(--blue); }
.mob-ai-link { color: var(--green) !important; font-weight: 700 !important; }
.mob-acc-btn { display: flex; align-items: center; justify-content: space-between; padding: 11px 20px; width: 100%; background: none; border: none; cursor: pointer; font-family: 'Inter', sans-serif; font-size: .88rem; font-weight: 600; color: var(--g700); border-left: 3px solid transparent; transition: .15s; }
.mob-acc-btn:hover, .mob-acc-btn.open { background: #EFF6FF; color: var(--blue); border-left-color: var(--blue); }
.mob-acc-btn span { display: flex; align-items: center; gap: 10px; }
.acc-arrow { transition: transform .25s ease; flex-shrink: 0; }
.mob-acc-btn.open .acc-arrow { transform: rotate(180deg); }
.mob-acc-panel { max-height: 0; overflow: hidden; background: var(--g50); transition: max-height .3s cubic-bezier(.4,0,.2,1); }
.mob-acc-panel.open { max-height: 400px; }
.mob-sub-link { display: flex; align-items: center; padding: 9px 20px 9px 36px; color: var(--g500); font-size: .83rem; text-decoration: none; transition: .15s; border-left: 3px solid transparent; }
.mob-sub-link:hover { background: #EFF6FF; color: var(--blue); border-left-color: var(--blue); padding-left: 40px; }
.mob-drawer-footer { padding: 16px 20px; border-top: 1px solid var(--g200); background: var(--g50); flex-shrink: 0; }

/* ── SEARCH OVERLAY ── */
.search-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.7); z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: 80px 20px 20px; backdrop-filter: blur(4px); }
.search-overlay.open { display: flex; }
.search-box { background: #fff; border-radius: 16px; width: 100%; max-width: 680px; box-shadow: 0 24px 64px rgba(0,0,0,.25); overflow: hidden; }
.search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--g200); }
.search-input-wrap input { flex: 1; border: none; outline: none; font-size: 1rem; font-family: 'Inter', sans-serif; color: var(--text); background: transparent; }
.search-input-wrap input::placeholder { color: var(--g300); }
.search-close-btn { padding: 4px 8px; background: var(--g100); border: 1px solid var(--g200); border-radius: 5px; font-size: .72rem; font-weight: 700; color: var(--g500); cursor: pointer; font-family: monospace; }
.search-results { max-height: 420px; overflow-y: auto; }
.search-welcome { padding: 28px 24px; text-align: center; }
.search-welcome-icon { font-size: 2rem; margin-bottom: 10px; }
.search-welcome p { font-size: .88rem; color: var(--g500); margin-bottom: 18px; }
.search-quick-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.search-quick-chips button { padding: 6px 14px; background: var(--g50); border: 1.5px solid var(--g200); border-radius: 999px; font-size: .76rem; font-weight: 600; color: var(--g700); cursor: pointer; transition: .15s; font-family: 'Inter', sans-serif; }
.search-quick-chips button:hover { border-color: var(--blue); color: var(--blue); background: #EFF6FF; }
.sr-section-label { padding: 8px 20px 4px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--g400); border-top: 1px solid var(--g100); }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; text-decoration: none; color: var(--text); transition: .15s; }
.sr-item:hover { background: var(--g50); }
.sr-item-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--g100); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.sr-item-info { flex: 1; min-width: 0; }
.sr-item-title { font-size: .86rem; font-weight: 600; color: var(--navy); }
.sr-item-desc { font-size: .74rem; color: var(--g500); }
.sr-google { border-left: 3px solid #4285F4; }
.sr-google .sr-item-icon { background: rgba(66,133,244,.1); }
.sr-ai { border-left: 3px solid var(--green); }
.sr-ai .sr-item-icon { background: rgba(16,185,129,.1); }
.search-footer { display: flex; align-items: center; gap: 16px; padding: 10px 20px; border-top: 1px solid var(--g200); background: var(--g50); font-size: .72rem; color: var(--g400); flex-wrap: wrap; }
.search-footer kbd { background: var(--g200); border-radius: 4px; padding: 1px 5px; font-family: monospace; font-size: .68rem; }

/* ── FOOTER ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.65); }
.footer-top { padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand-col .footer-logo { margin-bottom: 16px; }
.footer-brand-col .logo-name { color: #fff; }
.footer-brand-col .logo-tagline { color: rgba(255,255,255,.35); }
.footer-desc { font-size: .82rem; line-height: 1.75; margin-bottom: 18px; color: rgba(255,255,255,.55); }
.footer-contact { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.footer-contact-item { font-size: .8rem; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer-contact-item:hover { color: var(--gold); }
.footer-social { display: flex; gap: 8px; }
.social-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: .8rem; text-decoration: none; transition: all .2s; }
.social-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.footer-links-col h4 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.footer-links-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links-col a { font-size: .82rem; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer-links-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom-inner p { font-size: .74rem; color: rgba(255,255,255,.3); }
.footer-disclaimer { font-size: .7rem !important; color: rgba(255,255,255,.2) !important; }

/* ── BODY PADDING ── */
body { padding-top: 104px; }

/* ── RESPONSIVE NAV ── */
@media(max-width:1100px) { .main-nav .nav-link:nth-child(n+6) { display: none; } }
@media(max-width:900px) {
  .main-nav { display: none; }
  .mob-menu-btn { display: flex; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { padding: 7px; }
  .header-top-left .header-contact-item:nth-child(n+2) { display: none; }
  .header-top-right .header-contact-item { display: none; }
  body { padding-top: 104px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media(max-width:600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-top-left .header-contact-item { display: none; }
  .header-top { display: none; }
  body { padding-top: 70px; }
}
