/* ================================================================
   KEERTHI LINEA STUDIO — Global Stylesheet
   Theme: Warm Cream & Dark Charcoal (Dribbble-inspired)
   Fonts: Boldonse (display serif) + Inter (sans)
   Fully Responsive
================================================================ */

/* ---- Variables ----
   Variable names preserved from the previous Black & Gold theme so inline
   page CSS continues to work. Values remapped to the new palette:
   - "bg"   variants  -> cream / off-white surfaces
   - "gold" variants  -> dark charcoal accent (buttons, lines, em italics)
   - "black"           -> deep near-black (footer, marquee, popup overlay)
   - "white"           -> still pure white (used over dark hero overlays)
   - "text" variants   -> dark text colors on cream backgrounds
*/
:root {
  /* Dark anchors */
  --black:      #0F0F10;
  --dark-2:     #1A1A1C;

  /* Surfaces — white canvas with subtle warm cards */
  --bg:         #FFFFFF;   /* page canvas — pure white */
  --bg2:        #FAF8F3;   /* card / section surface — soft off-white */
  --bg3:        #F0EDE6;   /* stat-card / hover surface — warm beige */
  --bg4:        #E8E3D6;   /* deeper beige */

  /* Accent (replaces old "gold") */
  --gold:       #0F0F10;   /* primary accent — near black */
  --gold-light: #2A2A2D;   /* hover / italics */
  --gold-pale:  #6B6B6E;   /* muted accent */
  --gold-dim:   rgba(15,15,16,0.07); /* subtle accent tint */

  /* Neutrals */
  --white:      #FFFFFF;   /* still white — used on dark hero overlays */
  --off-white:  #FBF5EC;
  --text:       #1A1A1A;   /* body text on cream */
  --text-muted: #6B6B6B;
  --text-dim:   #8A8A8A;

  /* Lines */
  --border:     rgba(15,15,16,0.16);
  --border-dim: rgba(15,15,16,0.08);

  /* Typography */
  --font-serif: 'Oswald', 'Bebas Neue', 'Arial Narrow', system-ui, sans-serif;
  --font-sans:  'Inter', 'Manrope', system-ui, -apple-system, sans-serif;

  /* Layout */
  --nav-h:      80px;
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --trans:      0.4s var(--ease);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ================================================================
   PRELOADER — circular logo + 0–100% progress
================================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.preloading {
  overflow: hidden;
}

/* Circular logo with rotating progress ring */
.preloader-logo {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-logo img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  box-shadow: 0 6px 24px rgba(15,15,16,0.10);
}
.preloader-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.preloader-ring circle {
  fill: none;
  stroke-width: 2.5;
  cx: 65;
  cy: 65;
  r: 62;
}
.preloader-ring .ring-track {
  stroke: var(--border-dim);
}
.preloader-ring .ring-fill {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 389.56;        /* 2 * PI * r (62) */
  stroke-dashoffset: 389.56;
  transition: stroke-dashoffset 0.15s linear;
}

/* Progress bar + percent */
.preloader-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(240px, 60vw);
}
.preloader-bar {
  width: 100%;
  height: 2px;
  background: var(--border-dim);
  position: relative;
  overflow: hidden;
}
.preloader-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--gold);
  transition: width 0.15s linear;
}
.preloader-percent {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--text);
  font-weight: 500;
}
.preloader-label {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--black); border-radius: 2px; }

/* ================================================================
   LAYOUT UTILITIES
================================================================ */
.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 1024px) { .container { padding: 0 36px; } }
@media (max-width: 768px)  { .container { padding: 0 22px; } }
@media (max-width: 480px)  { .container { padding: 0 16px; } }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--text);
  flex-shrink: 0;
}
.section-label.center {
  display: flex;
  justify-content: center;
}
.section-label.center::before { display: none; }
.section-label.center::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--text);
  flex-shrink: 0;
}

.gold-divider {
  width: 48px;
  height: 1px;
  background: var(--text);
  margin: 24px 0;
}
.gold-divider.center { margin: 24px auto; }

/* ================================================================
   BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 15px 32px;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  border-radius: 999px;       /* rounded pill — matches reference */
}
.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* Primary — dark pill (was gold) */
.btn-gold {
  background: var(--black);
  color: var(--bg2);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,15,16,0.22);
}

/* Outline — dark stroke on cream */
.btn-outline {
  background: transparent;
  border: 1px solid var(--black);
  color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--bg2); }

/* White outline — used over dark hero overlays */
.btn-white {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-white:hover { background: var(--white); color: var(--black); border-color: var(--white); }

@media (max-width: 480px) {
  .btn { padding: 14px 24px; font-size: 10.5px; letter-spacing: 0.16em; }
}

/* ================================================================
   FADE ANIMATION
================================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.delay-1 { transition-delay: 0.12s; }
.fade-up.delay-2 { transition-delay: 0.22s; }
.fade-up.delay-3 { transition-delay: 0.32s; }
.fade-up.delay-4 { transition-delay: 0.42s; }
.fade-up.visible  { opacity: 1; transform: translateY(0); }

/* ================================================================
   NAVBAR  — Cream backdrop with dark text
================================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: linear-gradient(to bottom, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.82) 70%, transparent 100%);
  transition: background 0.4s, border-bottom 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15,15,16,0.7);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--black);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* CTA pill in nav */
.nav-cta {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 11px 24px;
  border: 1px solid var(--black);
  color: var(--bg2);
  background: var(--black);
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
  border-radius: 999px;
}
.nav-cta:hover { background: transparent; color: var(--black); }

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 1002;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: var(--trans);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- Mobile drawer ---- */
.mob-nav {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  padding: 80px 24px 40px;
}
.mob-nav.open {
  opacity: 1;
  pointer-events: all;
}
.mob-nav a {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: rgba(15,15,16,0.78);
  letter-spacing: 0.01em;
  transition: color 0.3s;
}
.mob-nav a:hover,
.mob-nav a.active { color: var(--black); }

.mob-nav .mob-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
}

.mob-cta {
  margin-top: 8px;
  padding: 14px 40px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--bg2);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--trans);
  border-radius: 999px;
}
.mob-cta:hover { background: transparent; color: var(--black); }

/* ---- Show/hide at breakpoints ---- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }
}

/* ================================================================
   PAGE HERO (inner pages) — keeps dark image overlay, white text
================================================================ */
.page-hero {
  padding-top: var(--nav-h);
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,15,16,0.45) 0%,
    rgba(15,15,16,0.88) 100%
  );
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 56px 0 56px;
}
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.5vw, 80px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.05;
  margin-top: 10px;
  letter-spacing: -0.01em;
}
.page-hero-title em { font-style: italic; color: rgba(255,255,255,0.92); font-weight: 400; }
.page-hero-sub {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  line-height: 1.8;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); transition: opacity 0.3s; }
.breadcrumb a:hover { opacity: 0.65; }

@media (max-width: 768px) {
  .page-hero { min-height: 320px; }
  .page-hero-content { padding: 40px 0 44px; }
  .page-hero-title { font-size: clamp(32px, 8vw, 52px); }
  .page-hero-sub { font-size: 13px; }
}

/* ================================================================
   FORMS (shared) — light theme inputs
================================================================ */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  -webkit-appearance: none;
  width: 100%;
  border-radius: 8px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--black);
  background: var(--bg2);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(15,15,16,0.35); }
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%230F0F10' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-color: var(--bg);
  padding-right: 40px;
}
.form-group select option { background: var(--bg2); color: var(--text); }
.form-group textarea { resize: vertical; min-height: 110px; }

/* ================================================================
   MARQUEE BAND — dark band on cream page
================================================================ */
.marquee-band { background: var(--black); overflow: hidden; padding: 12px 0; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bg2);
  white-space: nowrap;
  padding-right: 48px;
}
.marquee-track span::after { content: '◆'; font-size: 5px; color: var(--bg2); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================================================================
   STATS STRIP — cream cards
================================================================ */
.stats-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 20px 16px;
  border-right: 1px solid var(--border-dim);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid var(--border-dim); }
}
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ================================================================
   CTA BAND — kept dark image overlay (works with cream theme as contrast)
================================================================ */
.cta-band {
  position: relative;
  padding: 96px 0;
  text-align: center;
  overflow: hidden;
}
.cta-band-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.cta-band-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,15,16,0.84);
}
.cta-band-content { position: relative; z-index: 2; }
.cta-band-heading {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.5vw, 64px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin: 12px 0 16px;
  letter-spacing: -0.01em;
}
.cta-band-heading em { font-style: italic; color: rgba(255,255,255,0.85); }
.cta-band-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  max-width: 380px;
  margin: 0 auto 40px;
  line-height: 1.85;
}
.cta-band-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* CTA band section-label override (centered on dark bg) */
.cta-band .section-label,
.cta-band .section-label.center {
  color: rgba(255,255,255,0.75);
}
.cta-band .section-label::before,
.cta-band .section-label.center::before,
.cta-band .section-label.center::after {
  background: rgba(255,255,255,0.55);
}

/* CTA band primary button on dark bg → solid white pill */
.cta-band .btn-gold {
  background: var(--white);
  color: var(--black);
}
.cta-band .btn-gold:hover {
  background: var(--bg2);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

@media (max-width: 768px) {
  .cta-band { padding: 72px 0; }
  .cta-band-bg { background-attachment: scroll; }
  .cta-band-actions { flex-direction: column; align-items: center; gap: 12px; }
  .cta-band-actions .btn { width: 260px; justify-content: center; }
}

/* ================================================================
   FOOTER — dark footer for contrast against cream page
================================================================ */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo img {
  height: 56px;
  width: auto;
  margin-bottom: 14px;
  object-fit: contain;
  background: var(--bg);
  padding: 6px 10px;
  border-radius: 4px;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
  color: var(--bg);
  margin-bottom: 12px;
}
.footer-desc {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  line-height: 1.85;
  margin-bottom: 22px;
}
.footer-col-title {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-contact-item svg { width: 14px; height: 14px; fill: var(--bg); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

.social-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.social-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  flex-shrink: 0;
}
.social-btn:hover { border-color: var(--bg); background: rgba(255,255,255,0.08); }
.social-btn svg { width: 15px; height: 15px; fill: rgba(255,255,255,0.7); transition: fill 0.3s; }
.social-btn:hover svg { fill: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-copy {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
}
.footer-copy a { color: var(--bg); }

@media (max-width: 960px)  { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px)  {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ================================================================
   POPUP — Quote Form (Auto 5-sec + Nav-triggered)
================================================================ */
.popup-overlay,
.nav-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15,15,16,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.popup-overlay.open,
.nav-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.popup {
  background: var(--bg2);
  border: 1px solid var(--border-dim);
  border-radius: 18px;
  width: 100%;
  max-width: 540px;
  max-height: 94vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s var(--ease);
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 24px 64px rgba(15,15,16,0.18);
}
.popup-overlay.open .popup,
.nav-modal-overlay.open .popup {
  transform: translateY(0) scale(1);
}
.popup::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--black);
  border-radius: 18px 18px 0 0;
}

.popup-header {
  padding: 28px 32px 22px;
  position: relative;
  border-bottom: 1px solid var(--border-dim);
}
.popup-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.popup-icon svg { width: 20px; height: 20px; fill: var(--black); }
.popup-tag {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.popup-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
}
.popup-subtitle {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 7px;
}
.popup-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 34px; height: 34px;
  border: 1px solid var(--border-dim);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  background: var(--bg);
  transition: var(--trans);
}
.popup-close:hover { border-color: var(--black); background: var(--bg3); }
.popup-close svg {
  width: 12px; height: 12px;
  stroke: var(--text);
  stroke-width: 1.5;
  fill: none;
  transition: stroke 0.3s;
}
.popup-close:hover svg { stroke: var(--black); }

.popup-body { padding: 24px 32px 32px; }
.popup-form { display: flex; flex-direction: column; gap: 16px; }
.popup-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wa-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: #25D366;
  color: white;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.3s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.wa-submit-btn:hover  { background: #1db954; }
.wa-submit-btn:active { transform: scale(0.99); }
.wa-submit-btn svg { width: 20px; height: 20px; fill: white; flex-shrink: 0; }

.popup-note {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
  text-align: center;
  margin-top: 10px;
  line-height: 1.55;
}

/* Mobile popup — full-width sheet */
@media (max-width: 560px) {
  .popup-overlay,
  .nav-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .popup {
    max-width: 100%;
    max-height: 92vh;
    transform: translateY(40px);
    border-radius: 18px 18px 0 0;
  }
  .popup-overlay.open .popup,
  .nav-modal-overlay.open .popup {
    transform: translateY(0);
  }
  .popup-header { padding: 22px 20px 18px; }
  .popup-body   { padding: 18px 20px 28px; }
  .popup-form .form-row { grid-template-columns: 1fr; gap: 14px; }
}

/* ================================================================
   MOBILE GLOBAL — Shared across all pages
================================================================ */
@media (max-width: 768px) {
  /* Inner page hero */
  .page-hero { min-height: 300px; }
  .page-hero-content { padding: 36px 0 40px; }

  /* CTA band */
  .cta-band { padding: 64px 0; }
  .cta-band-bg { background-attachment: scroll; }
}

@media (max-width: 480px) {
  :root { --nav-h: 68px; }

  .nav-logo img { height: 40px; }

  .marquee-band { padding: 10px 0; }
  .marquee-track span { font-size: 9px; letter-spacing: 0.2em; }

  .section-label { font-size: 9px; letter-spacing: 0.22em; }

  .stats-strip { padding: 28px 0; }
  .stat-num { font-size: 36px; }
  .stat-label { font-size: 9px; }
}

/* ================================================================
   HEADINGS — Boldonse needs tighter line-height & weight=400
   This applies to all em (italic) accents and serif headings.
================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}
em { font-style: italic; }

/* ================================================================
   DARK-BLOCK OVERRIDES — Elements that previously had a gold/accent
   background and dark text. Now that the accent is itself dark,
   their child text needs to be light to stay readable.
================================================================ */

/* Generic "accent block" surfaces — these all map to dark in new theme */
.about-img-badge,
.founder-monogram,
.story-img-badge,
.test-avatar,
.pkg-card.featured,
.pkg-badge,
.tl-dot-inner {
  /* keep background: var(--gold) which is now near-black */
}

/* Invert child text inside dark-bg elements */
.about-img-badge-num,
.about-img-badge-text,
.founder-monogram,
.story-img-badge,
.story-img-badge-num,
.story-img-badge-label,
.test-avatar,
.pkg-badge {
  color: var(--white) !important;
}
.about-img-badge-text { color: rgba(255,255,255,0.75) !important; }

/* Featured pricing card — dark card with cream/white content */
.pkg-card.featured .pkg-name,
.pkg-card.featured .pkg-tagline,
.pkg-card.featured .pkg-include,
.pkg-card.featured .pkg-check::after,
.pkg-card.featured .pkg-cta {
  color: var(--white) !important;
}
.pkg-card.featured .pkg-tagline,
.pkg-card.featured .pkg-include { color: rgba(255,255,255,0.72) !important; }
.pkg-card.featured .pkg-badge { background: var(--white) !important; color: var(--black) !important; }
.pkg-card.featured .pkg-check { background: rgba(255,255,255,0.12) !important; border-color: rgba(255,255,255,0.3) !important; }
.pkg-card.featured .pkg-cta { border-color: var(--white) !important; }
.pkg-card.featured .pkg-cta:hover { background: var(--white) !important; color: var(--black) !important; }

.svc-card:hover .svc-arrow svg { stroke: var(--white) !important; }

.svc-overlay .svc-num { color: rgba(255,255,255,0.85) !important; }
.svc-overlay .svc-name { color: var(--white) !important; }
.svc-overlay .svc-short { color: rgba(255,255,255,0.7) !important; }

.g-item .g-label { color: var(--white) !important; }

/* Hero (index) overrides — sits over dark image */
.hero .hero-title { color: var(--white) !important; }
.hero .hero-title em { color: rgba(255,255,255,0.9) !important; }
.hero .hero-eyebrow { color: var(--bg) !important; }
.hero .hero-eyebrow::before { background: var(--bg) !important; }
.hero .hero-stat-num { color: var(--white) !important; }
.hero .hero-stats-panel { border-left-color: rgba(255,255,255,0.18) !important; }
.hero .hero-stat { border-bottom-color: rgba(255,255,255,0.12) !important; }

/* Marquee dark band */
.marquee-track span,
.marquee-track span::after { color: var(--bg2) !important; }

/* CTA band — dark image overlay, ensure light text on actions */
.cta-band .section-label { color: rgba(255,255,255,0.8); }
.cta-band .section-label::before,
.cta-band .section-label::after { background: rgba(255,255,255,0.55); }
.cta-band .btn-outline { border-color: var(--white); color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--black); }

/* Footer — dark footer, force light text where var(--gold) was used */
footer .footer-tagline { color: var(--bg) !important; }
footer .footer-col-title { color: var(--white) !important; }
footer .footer-desc,
footer .footer-links a,
footer .footer-contact-item span { color: rgba(255,255,255,0.65) !important; }
footer .footer-links a:hover { color: var(--white) !important; }
footer .footer-contact-item svg { fill: var(--bg) !important; }
footer .footer-copy { color: rgba(255,255,255,0.4) !important; }
footer .footer-copy a { color: var(--bg) !important; }
footer .social-btn svg { fill: rgba(255,255,255,0.7) !important; }
footer .social-btn:hover svg { fill: var(--white) !important; }

/* Page-hero (inner pages) — text over dark image overlay */
.page-hero .page-hero-title,
.page-hero .page-hero-title em { color: var(--white) !important; }
.page-hero .page-hero-sub { color: rgba(255,255,255,0.7) !important; }
.page-hero .breadcrumb { color: rgba(255,255,255,0.6) !important; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.85) !important; }
.page-hero .section-label { color: rgba(255,255,255,0.85) !important; }
.page-hero .section-label::before,
.page-hero .section-label::after { background: rgba(255,255,255,0.55) !important; }

/* ================================================================
   TYPOGRAPHY NORMALIZATION — Oswald sizing + spacing fixes
   Oswald is a condensed sans-serif; inline page styles were tuned
   for a different font. These overrides standardize sizes,
   weights, and line-heights across the site.
================================================================ */

/* Base heading rhythm — applies to ALL h1-h6, overrides inline weights */
h1, h2, h3, h4, h5, h6,
.hero-title,
.page-hero-title,
.intro-quote,
.about-heading,
.services-teaser-heading,
.why-teaser-heading,
.gallery-heading,
.cta-band-heading,
.story-content h2,
.phil-heading,
.cred-heading,
.values-heading,
.intro-heading,
.svc-title,
.pkg-heading,
.pkg-name,
.coverage-heading,
.cov-title,
.contact-info-heading,
.social-heading,
.faq-heading,
.faq-q,
.map-info h3,
.form-heading,
.reason-title,
.proc-title,
.process-heading,
.test-heading,
.test-quote,
.test-name,
.tl-title,
.value-card h3,
.phil-card h3,
.svc-name,
.why-row-title,
.popup-title,
.footer-tagline,
.founder-name-text,
.stat-num,
.hero-stat-num,
.about-img-badge-num,
.story-img-badge-num,
.founder-monogram,
.test-avatar,
.svc-block-num,
.about-img-badge-text,
.pkg-tagline,
.cov-icon,
.value-num,
.why-row-num,
.tl-year,
.pkg-badge,
.story-img-badge-label {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

/* Standardize weights — Oswald uses 400-600 well; avoid 300 (too thin) */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.08;
}

/* Hero title — keep big but breathing */
.hero-title {
  font-weight: 600 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.005em !important;
}
.hero-title em {
  font-style: italic;
  font-weight: 500 !important;
  display: inline !important;   /* don't force a new line — Oswald is narrow */
}

/* Page hero (inner pages) */
.page-hero-title {
  font-weight: 600 !important;
  line-height: 1.08 !important;
}

/* Section / teaser headings — clamp font-weight to 500 (was 300) */
.about-heading,
.services-teaser-heading,
.why-teaser-heading,
.gallery-heading,
.cta-band-heading,
.story-content h2,
.phil-heading,
.cred-heading,
.values-heading,
.intro-heading,
.svc-title,
.pkg-heading,
.coverage-heading,
.contact-info-heading,
.social-heading,
.faq-heading,
.process-heading,
.test-heading {
  font-weight: 600 !important;
  line-height: 1.1 !important;
}

/* Card-level subheads */
.phil-card h3,
.value-card h3,
.cov-title,
.svc-name,
.why-row-title,
.proc-title,
.reason-title,
.faq-q,
.map-info h3,
.form-heading,
.popup-title,
.tl-title,
.pkg-name {
  font-weight: 500 !important;
  line-height: 1.18 !important;
}

/* Italic em accent inside headings */
h1 em, h2 em, h3 em,
.hero-title em,
.page-hero-title em,
.about-heading em,
.services-teaser-heading em,
.why-teaser-heading em,
.gallery-heading em,
.cta-band-heading em,
.story-content h2 em,
.phil-heading em,
.cred-heading em,
.values-heading em,
.svc-title em,
.pkg-heading em,
.coverage-heading em,
.contact-info-heading em,
.social-heading em,
.faq-heading em,
.process-heading em,
.test-heading em,
.intro-heading em {
  font-style: italic;
  font-weight: 500 !important;
}

/* Big numeric stats — Oswald looks great here at heavy weight */
.stat-num,
.hero-stat-num,
.about-img-badge-num,
.story-img-badge-num,
.svc-block-num,
.value-num,
.why-row-num,
.cov-icon {
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
}

/* Intro-strip quote — make it readable with Oswald */
.intro-quote {
  font-weight: 400 !important;
  line-height: 1.4 !important;
  font-style: italic !important;
}

/* Override inline font-weight: 300 used throughout (Oswald 300 is too thin) */
.intro-quote em,
.cred-detail,
.story-content blockquote,
.svc-desc,
.pkg-tagline,
.faq-a,
.reason-point,
.test-quote,
.cta-band-sub,
.page-hero-sub,
.hero-desc {
  font-weight: 400;
}


/* Body paragraphs use Inter at weight 400 — Inter 300 is too thin */
p, .footer-desc, .footer-links a, .footer-contact-item span,
.about-body, .cred-desc, .phil-card p, .value-card p,
.svc-include-item, .pkg-include, .svc-short, .stat-label,
.svc-desc, .reason-text, .reason-point, .proc-text,
.test-city, .test-name, .hour-time, .contact-detail-value,
.faq-a, .map-info p, .form-subhead, .intro-text,
.cov-text, .pkg-tagline, .pkg-sub, .phil-sub,
.coverage-desc, .why-row-text {
  font-weight: 400;
}

/* Mobile typography — tighter on small screens */
@media (max-width: 768px) {
  .hero-title { line-height: 1.05 !important; }
  h1, h2 { line-height: 1.1 !important; }
}
