/* ============================================================
   RankOptim — header.css
   ============================================================ */

:root {
  --gold:        #C9A96E;
  --gold-pale:   rgba(201,169,110,0.10);
  --gold-border: rgba(201,169,110,0.22);
  --dark:        #0A0A0A;
  --dark-2:      #111111;
  --dark-card:   #141414;
  --text:        #E8E2D9;
  --text-muted:  rgba(232,226,217,0.55);
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
  --nav-h:       68px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── HEADER ─────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .3s, box-shadow .3s, transform .3s;
}
#site-header.scrolled {
  background: rgba(10,10,10,.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--gold-border), 0 8px 32px rgba(0,0,0,.5);
}
#site-header.header--hidden { transform: translateY(-100%); }

.header-topbar {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── INNER ROW
   Logo | Nav (centered) | Actions
   Logo and Actions both fixed at 180px so nav sits exactly in the middle ── */
.header-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  max-width: 1200px !important;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── LOGO SLOT ───────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  width: 180px;            /* fixed slot */
  overflow: hidden;
}

/* The CSS class reinforces the inline style on the img tag.
   Inline style is the primary constraint — works even before CSS parses. */
.logo-img {
  display: block !important;
  height: 36px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain;
  object-position: left center;
}

/* ── NAV (CENTRE) ────────────────────────────────────── */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav li a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.main-nav li a:hover,
.main-nav li.active > a { color: var(--gold); background: var(--gold-pale); }

.nav-academy a { color: var(--gold) !important; border: 1px solid var(--gold-border); }
.nav-academy a:hover { background: var(--gold-pale) !important; }
.dropdown-arrow { opacity: .45; }

/* ── DROPDOWN ────────────────────────────────────────── */
.has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 280px;
  background: var(--dark-card);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  z-index: 200;
}
.dropdown-menu.is-open {
  opacity: 1; visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text-muted) !important;
  background: none !important;
  font-size: 13px !important;
  transition: background .15s, color .15s;
}
.dropdown-menu li a:hover { background: var(--gold-pale) !important; color: var(--gold) !important; }
.dd-icon { color: var(--gold); font-size: 12px; flex-shrink: 0; }
.dd-text { display: flex; flex-direction: column; }
.dd-text strong { font-size: 13px; color: var(--text); font-weight: 500; }
.dd-text small  { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* ── ACTIONS SLOT ────────────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 180px;            /* mirrors logo slot */
  justify-content: flex-end;
}
.btn-wa-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(37,211,102,.08);
  border: 1px solid rgba(37,211,102,.25);
  border-radius: 4px;
  color: #25D366;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.btn-wa-nav:hover { background: rgba(37,211,102,.15); border-color: rgba(37,211,102,.45); }
.btn-book-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  background: linear-gradient(135deg, var(--gold), #A8823C);
  color: #0A0A0A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
}
.btn-book-call:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,169,110,.3); }

/* ── HAMBURGER ────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.hamburger span {
  display: block; height: 1.5px;
  background: var(--gold); border-radius: 2px;
  transition: all .25s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── OVERLAY ──────────────────────────────────────────── */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  z-index: 1090;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.drawer-overlay.is-visible { opacity: 1; pointer-events: auto; }

/* ── MOBILE DRAWER ────────────────────────────────────── */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 88vw);
  height: 100dvh;
  background: var(--dark-2);
  border-left: 1px solid var(--gold-border);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  padding: 20px;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }

.drawer-close {
  align-self: flex-end;
  background: none;
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  transition: .2s;
}
.drawer-close:hover { color: var(--gold); border-color: var(--gold); }

.mobile-logo-link {
  display: block;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gold-border);
  text-decoration: none;
}

.mobile-nav-list {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: flex; flex-direction: column; gap: 2px;
}
.mobile-nav-list li a {
  display: block; padding: 11px 14px;
  color: var(--text-muted); text-decoration: none;
  font-size: 15px; font-weight: 500; border-radius: 6px;
  transition: .2s;
}
.mobile-nav-list li a:hover,
.mobile-nav-list li.active a { color: var(--gold); background: var(--gold-pale); }

.mobile-drawer-cta {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--gold-border);
}
.btn-wa-mobile {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px;
  background: rgba(37,211,102,.08); border: 1px solid rgba(37,211,102,.25);
  border-radius: 6px; color: #25D366; font-size: 14px; font-weight: 600;
  text-decoration: none;
}
.btn-book-call-mobile {
  display: block; text-align: center; padding: 12px;
  background: linear-gradient(135deg, var(--gold), #A8823C);
  color: #0A0A0A; font-size: 14px; font-weight: 700;
  text-decoration: none; border-radius: 6px;
}
.mobile-drawer-note {
  font-size: 11px; color: var(--text-muted);
  text-align: center; margin-top: 14px; letter-spacing: .04em;
}

/* ── FLOATING WHATSAPP ────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 999;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff;
  text-decoration: none;
  padding: 11px 18px 11px 14px;
  border-radius: 50px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 28px rgba(37,211,102,.35);
  opacity: 0; transform: translateY(16px);
  pointer-events: none;
  transition: opacity .4s, transform .4s, box-shadow .2s;
}
.whatsapp-float.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.whatsapp-float:hover { box-shadow: 0 10px 36px rgba(37,211,102,.5); transform: translateY(-2px); }

/* ── FOOTER ───────────────────────────────────────────── */
#site-footer { background: #080808; border-top: 1px solid var(--gold-border); }
.footer-topline { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.footer-newsletter-wrap { border-bottom: 1px solid var(--gold-border); padding: 44px 32px; }
.footer-newsletter-box { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.nl-text h3 { font-family: var(--font-serif); font-size: 1.3rem; color: #fff; margin-bottom: 5px; }
.nl-text p  { font-size: .875rem; color: var(--text-muted); margin: 0; }
.nl-form    { flex-shrink: 0; width: 360px; }
.nl-input-group { display: flex; border: 1px solid var(--gold-border); border-radius: 6px; overflow: hidden; background: var(--dark-card); }
.nl-input-group input { flex: 1; background: none; border: none; outline: none; padding: 11px 14px; color: var(--text); font-family: var(--font-sans); font-size: 14px; }
.nl-input-group input::placeholder { color: rgba(232,226,217,.3); }
.nl-submit { display: flex; align-items: center; gap: 6px; background: linear-gradient(135deg, var(--gold), #A8823C); border: none; color: #0A0A0A; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 0 18px; cursor: pointer; white-space: nowrap; transition: filter .2s; }
.nl-submit:hover { filter: brightness(1.08); }
.nl-success { font-size: 13px; margin-top: 8px; color: #4ade80; }
.nl-error   { font-size: 13px; margin-top: 8px; color: #f87171; }

.footer-main { max-width: 1320px; margin: 0 auto; padding: 52px 32px; display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.4fr; gap: 48px; }
.footer-logo { display: flex; align-items: center; text-decoration: none; margin-bottom: 16px; }
.footer-logo img { height: 34px; width: auto; max-width: 140px; object-fit: contain; }
.footer-brand-tagline { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.footer-badge-pill { background: var(--gold-pale); border: 1px solid var(--gold-border); color: var(--gold); font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; }
.footer-socials { display: flex; gap: 7px; }
.social-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--gold-pale); border: 1px solid var(--gold-border); border-radius: 4px; color: var(--text-muted); text-decoration: none; transition: .2s; }
.social-icon:hover { background: var(--gold); color: #0A0A0A; border-color: var(--gold); }
.social-icon--wa { color: #25D366; }
.social-icon--wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.footer-col-heading { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-family: var(--font-sans); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; padding: 0; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; display: flex; align-items: center; gap: 6px; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-link-badge { background: var(--gold); color: #0A0A0A; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 100px; }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; }
.contact-icon { width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--gold-pale); border: 1px solid var(--gold-border); border-radius: 4px; color: var(--gold); }
.contact-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); display: block; margin-bottom: 2px; }
.footer-contact-item a, .footer-contact-item span { font-size: 12px; color: var(--text-muted); text-decoration: none; }
.footer-contact-item a:hover { color: var(--gold); }
.btn-footer-whatsapp { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 16px; background: rgba(37,211,102,.07); border: 1px solid rgba(37,211,102,.22); border-radius: 6px; color: #25D366; font-size: 12px; font-weight: 600; text-decoration: none; transition: .2s; }
.btn-footer-whatsapp:hover { background: rgba(37,211,102,.14); }

.footer-divider { display: flex; align-items: center; gap: 14px; padding: 0 32px; max-width: 1320px; margin: 0 auto; }
.footer-divider-line { flex: 1; height: 1px; background: var(--gold-border); }
.footer-divider-gem { color: var(--gold); font-size: 10px; }
.footer-bottom { padding: 18px 32px; }
.footer-bottom-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: 12px; color: var(--text-muted); margin: 0; }
.footer-copy strong { color: var(--text); }
.footer-legal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-legal a { font-size: 11px; color: var(--text-muted); text-decoration: none; transition: .2s; }
.footer-legal a:hover { color: var(--gold); }
.footer-legal-sep { color: var(--gold-border); }
.footer-status { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }
.status-dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 8px rgba(74,222,128,.6); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.35;} }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .main-nav, .btn-wa-nav { display: none; }
  .hamburger { display: flex; }
  .header-inner { padding: 0 20px; }
  .logo { width: auto; }
  .header-actions { width: auto; }
  .btn-book-call { display: none; }
}
@media (max-width: 768px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 20px; }
  .footer-newsletter-box { flex-direction: column; align-items: flex-start; }
  .nl-form { width: 100%; }
  .footer-newsletter-wrap { padding: 36px 20px; }
}
@media (max-width: 560px) {
  :root { --nav-h: 60px; }
  .header-inner { padding: 0 16px; }
  .logo-img { height: 30px !important; max-width: 120px !important; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .whatsapp-float { bottom: 16px; right: 16px; }
  .wa-float-label { display: none; }
}