/* ─────────────────────────────────────────────
   site.css — Shared styles, The Brand House
───────────────────────────────────────────── */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Hide images with no src (content managed via Sanity CMS) */
img[src=""], img:not([src]) { visibility: hidden; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #FAFAF8;
  color: #1B2D4F;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3.5rem;
  transition: background 400ms ease, backdrop-filter 400ms ease, border-color 400ms ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(27,45,79,0.08);
}
.nav-logo { height: 42px; width: auto; filter: brightness(0) invert(1); transition: filter 400ms; }
nav.scrolled .nav-logo { filter: none; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; list-style: none; }
.nav-links a {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 200ms;
}
nav.scrolled .nav-links a { color: #8a9bb0; }
.nav-links a:hover { color: #fff; }
nav.scrolled .nav-links a:hover { color: #1B2D4F; }
.nav-links a.active { color: #fff; }
nav.scrolled .nav-links a.active:not(.nav-cta) { color: #1B2D4F; border-bottom: 1px solid #1B2D4F; padding-bottom: 2px; }
.nav-cta {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.3) !important;
}
.nav-cta:hover { background: rgba(255,255,255,0.25) !important; color: #fff !important; }
nav.scrolled .nav-cta { background: #1B2D4F !important; color: #fff !important; border-color: #1B2D4F !important; }
nav.scrolled .nav-cta:hover { background: #263f6a !important; }

/* ── Dropdown ── */
.nav-links li { position: relative; }
.nav-links > li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  height: 12px;
  width: 1px;
  background: rgba(255,255,255,0.2);
  pointer-events: none;
}
nav.scrolled .nav-links > li:not(:last-child)::after { background: rgba(27,45,79,0.15); }
.nav-links li .nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: rgba(250,250,248,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(27,45,79,0.08);
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(27,45,79,0.12);
  padding: 0.5rem 0;
  list-style: none;
  z-index: 300;
}
/* invisible bridge over the gap so hover isn't lost moving into the dropdown */
.nav-links li .nav-dropdown::after {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
/* small arrow pointing up */
.nav-links li .nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: rgba(250,250,248,0.97);
  border-left: 1px solid rgba(27,45,79,0.08);
  border-top: 1px solid rgba(27,45,79,0.08);
  rotate: 45deg;
}
.nav-links li:hover .nav-dropdown,
.nav-links li:focus-within .nav-dropdown { display: block; }
.nav-dropdown li { width: 100%; }
.nav-dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #8a9bb0 !important;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms, background 150ms;
  border-bottom: none !important;
}
.nav-dropdown a:hover { color: #1B2D4F !important; background: rgba(27,45,79,0.04); }
/* keep top-level parent link white when dropdown is open */
.nav-links li:hover > a:not(.nav-cta) { color: #fff; }
nav.scrolled .nav-links li:hover > a:not(.nav-cta) { color: #1B2D4F; }

/* ── Inner page hero ── */
.page-hero {
  position: relative;
  height: 52vh;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.page-hero img {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.55);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,14,28,0.78) 0%, rgba(8,14,28,0.1) 55%, transparent 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 3.5rem 3.5rem;
}
.page-eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  font-weight: 500;
  display: block;
  margin-bottom: 0.75rem;
}
.page-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 5.8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
}

/* ── Typewriter cursor (shared across all hero headings) ── */
.tw-cursor {
  display: inline-block;
  width: 3px;
  background: #fff;
  margin-left: 4px;
  border-radius: 2px;
  vertical-align: baseline;
  animation: twBlink 0.75s step-end infinite;
  height: 0.85em;
  position: relative;
  top: 0.05em;
}
.tw-cursor.done { animation: twFade 600ms ease 800ms forwards; }
@keyframes twBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes twFade  { to { opacity: 0; width: 0; margin: 0; } }

/* ── Section typography ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 3.5rem; }
.section-eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8a9bb0;
  font-weight: 500;
  display: block;
  margin-bottom: 0.9rem;
}
.section-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #1B2D4F;
}
.section-title.white { color: #fff; }
.section-sub {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #64748b;
  font-weight: 300;
}
.section-sub.white { color: rgba(255,255,255,0.55); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 100px;
  transition: transform 220ms ease, background 220ms, box-shadow 220ms;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: #1B2D4F; color: #fff; }
.btn-solid:hover { background: #263f6a; box-shadow: 0 8px 28px rgba(27,45,79,0.22); }
.btn-solid-white { background: #fff; color: #1B2D4F; }
.btn-solid-white:hover { background: #e8f0fe; }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.35); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.7); }

/* ── Footer ── */
footer {
  background: #080e1c;
  padding: 4.5rem 3.5rem 2rem;
}
footer > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo { height: 30px; filter: brightness(0) invert(1); opacity: 0.42; display: block; margin-bottom: 1.25rem; }
.footer-brand-address {
  font-size: 0.75rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
  margin-top: 0.5rem;
}
.footer-col-heading {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.2);
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 200ms;
  font-weight: 300;
}
.footer-links a:hover { color: rgba(255,255,255,0.75); }
.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
}
.footer-contact-label {
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  font-weight: 600;
}
.footer-contact-value {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  line-height: 1.6;
  text-decoration: none;
}
a.footer-contact-value:hover { color: rgba(255,255,255,0.75); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 1.75rem;
  gap: 1rem;
}
.footer-copy { font-size: 0.6rem; color: rgba(255,255,255,0.15); letter-spacing: 0.06em; }.footer-socials { display: flex; gap: 1rem; align-items: center; }
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  transition: background 200ms, color 200ms;
  text-decoration: none;
}
.footer-socials a:hover { background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.9); }
.footer-socials svg { width: 15px; height: 15px; fill: currentColor; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 750ms ease, transform 750ms ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 100ms; }
.reveal-d2 { transition-delay: 200ms; }
.reveal-d3 { transition-delay: 300ms; }
.reveal-d4 { transition-delay: 400ms; }

/* ── WhatsApp widget ── */
.wa-widget {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.wa-widget:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* ── Mobile nav hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 201;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  transition: transform 250ms, opacity 250ms, background 400ms;
  background: rgba(255,255,255,0.85);
}
nav.scrolled .nav-hamburger span { background: #1B2D4F; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ── */

/* Mid-range: tighten nav before hamburger kicks in */
@media (max-width: 1200px) {
  nav { padding: 1.5rem 2rem; }
  .nav-links { gap: 1.5rem; }
}
@media (max-width: 1050px) {
  nav { padding: 1.25rem 1.5rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.62rem; letter-spacing: 0.1em; }
}

@media (max-width: 960px) {
  nav { padding: 1rem 1.5rem; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 62px;
    left: 0; right: 0;
    background: rgba(250,250,248,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1.5rem;
    border-bottom: 1px solid rgba(27,45,79,0.08);
    z-index: 199;
    box-shadow: 0 8px 24px rgba(27,45,79,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #8a9bb0 !important;
    font-size: 0.72rem;
    border-bottom: none !important;
    padding-bottom: 0.8rem !important;
  }
  .nav-links a:hover,
  .nav-links a.active { color: #1B2D4F !important; }
  /* Mobile dropdown — always visible, indented */
  .nav-links li .nav-dropdown {
    display: block;
    position: static;
    transform: none;
    min-width: unset;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
  .nav-links li .nav-dropdown::before { display: none; }
  .nav-dropdown a {
    padding: 0.55rem 1.5rem 0.55rem 2.5rem !important;
    font-size: 0.68rem !important;
    color: #a0aec0 !important;
  }
  .nav-dropdown a:hover { color: #1B2D4F !important; background: transparent; }
  .nav-cta {
    margin: 0.5rem 1.25rem 0 !important;
    display: block !important;
    background: #1B2D4F !important;
    border-color: #1B2D4F !important;
    color: #fff !important;
    text-align: center;
    border-radius: 100px !important;
  }

  .container { padding: 0 1.5rem; }
  .page-hero-content { padding: 0 1.5rem 2rem; }

  footer { padding: 3rem 1.5rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .page-hero-content { padding: 0 1rem 1.75rem; }
  .page-title { font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1; }
  footer { padding: 2.5rem 1rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr; }
}
