/* =====================================================
   SHARED SITE HEADER / NAVIGATION / FOOTER LOGO
   Used on every page (except the auto-generated brand and
   location pages). Extracted from the original per-page
   <style> blocks so header/menu fixes only need to be made
   in one place. Visual design is unchanged from the original
   — the only functional change is the mobile menu positioning
   fix (see .mobile-menu below) plus small additions for
   accessibility (Escape / outside click / body scroll lock).
   ===================================================== */

/* =====================
   HEADER
   ===================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}
@media(min-width:640px){ header { padding: 0 32px; } }

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-img {
  height: 38px;
  width: auto;
  display: block;
}
.logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-name {
  font-family: 'Cabin', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  line-height: 1;
  letter-spacing: -.02em;
}
.logo-sub {
  font-size: 9px;
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.header-mid { flex: 1; display: flex; align-items: center; min-width: 0; }

/* =====================
   HEADER CONTACT
   ===================== */
.header-contact {
  display: none;
  align-items: center;
  gap: 10px;
}
@media(min-width:1150px){ .header-contact { display: flex; } }
.header-contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  margin-right: 4px;
}
.header-contact-phone:hover { text-decoration: underline; }
.header-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.22);
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.header-contact-link:hover { background: rgba(255,255,255,.12); }
.header-contact-link.whatsapp { background: rgba(37,211,102,.18); border-color: rgba(37,211,102,.5); }
.header-contact-link.whatsapp:hover { background: rgba(37,211,102,.32); }

/* =====================
   NAV MENU (desktop)
   ===================== */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 24px;
  margin: 0 8px 0 28px;
}
@media(min-width:900px){ .nav-desktop { display: flex; } }
.nav-desktop a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] { color: white; }

/* =====================
   HAMBURGER + MOBILE MENU
   ===================== */
.header-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  border: none;
  color: white;
  cursor: pointer;
  flex-shrink: 0;
}
@media(min-width:900px){ .header-hamburger { display: none; } }
.header-hamburger:hover { background: rgba(255,255,255,.2); }

/* Backdrop behind the open mobile menu — lets people tap
   outside the menu to close it. */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: rgba(0,0,0,.35);
  z-index: 98;
}
.mobile-menu-backdrop.open { display: block; }
@media(min-width:900px){ .mobile-menu-backdrop { display: none !important; } }

/* THE FIX: this was previously a plain block in normal document
   flow directly under <header>. Because <header> is position:sticky,
   its space in the flow stays at the very top of the document, so a
   normal-flow menu opened there rendered at the top of the page
   instead of under the navbar once you'd scrolled down. Making the
   menu position:fixed and pinning it to the header's height means it
   always opens directly beneath the visible navbar, at any scroll
   position, on every page. */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 99;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  background: var(--navy-dk);
  padding: 6px 20px 22px;
  box-shadow: 0 12px 24px rgba(0,0,0,.25);
}
@media(min-width:640px){ .mobile-menu { padding: 6px 32px 22px; } }
@media(min-width:900px){ .mobile-menu, .mobile-menu-backdrop { display: none !important; } }
.mobile-menu.open { display: flex; }
.mobile-menu-link {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu-link:hover,
.mobile-menu-link[aria-current="page"] { color: white; }
.mobile-menu-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.mobile-menu-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  white-space: nowrap;
}
.mobile-menu-btn.whatsapp { background: #25D366; }
.mobile-menu-btn.sms { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }
.mobile-menu-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 13.5px;
}
.mobile-menu-email:hover { color: white; }

/* Prevents the page behind the menu from scrolling while it's open */
body.menu-open { overflow: hidden; }

/* =====================================================
   SHARED FOOTER LOGO
   ===================================================== */
.footer-logo-link {
  display: inline-block;
  margin-bottom: 12px;
}
.footer-logo-img {
  height: 34px;
  width: auto;
  display: block;
}

/* Small Privacy Policy / Terms links under the legal trading-name text */
.footer-legal-links {
  margin-top: 8px;
  font-size: 11px;
}
.footer-legal-links a {
  color: rgba(255,255,255,.4);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal-links a:hover { color: rgba(255,255,255,.7); }
.footer-legal-links span { color: rgba(255,255,255,.2); margin: 0 8px; }
