/* ============================================================
   COMMON.CSS — Shared Styles: Header, Footer, Utilities
   VirtualToursXR — Light Theme
   ============================================================ */

/* ── Table of Contents ─────────────────────────────────────────
   1.  Layout Utilities     — .container, .section, .section--* variants
   2.  Section Headers      — .section-header, .section-tag, .section-title
   3.  Buttons              — .btn base + .btn--teal-outline, --solid,
                              --ghost-dark, --teal-solid, --dark, --ghost
   4.  Cards                — .card base + hover
   5.  Scroll Reveal        — .reveal fade-in, transition-delay helpers
   6.  Divider & Grid       — .divider, .grid, .grid--2/3/4 utilities
   ─────────────────────────────────────────────────────────────
   HEADER (fixed, 88 px tall, light theme with backdrop-blur)
   7.  Nav Bar              — .header fixed positioning + scroll shadow
   8.  Logo & Links         — .nav__logo, .nav__links, .nav__link
   9.  Desktop Dropdown     — hover-reveal panel; 150 ms hide grace period
                              so the mouse can travel from toggle → panel
   10. Mobile Navigation    — .nav__mobile slide-in panel, hamburger toggle,
                              tap-to-expand mobile submenu
   ─────────────────────────────────────────────────────────────
   FOOTER (dark, #0f172a background)
   11. Footer               — .footer bar, copyright, meta row
                              Mobile: stacks vertically, separators hidden
   ─────────────────────────────────────────────────────────────
   REUSABLE PAGE BLOCKS
   12. Page Hero            — inner-page hero (non-homepage sections)
   13. CTA Box              — reusable centred CTA block
   14. Gradient Text        — .gradient-text utility
   ──────────────────────────────────────────────────────────── */

/* ── Layout Utilities ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section--sm {
  padding-top: var(--section-py-sm);
  padding-bottom: var(--section-py-sm);
}

.section--alt {
  background-color: var(--clr-bg-2);
}

.section--dark {
  background: var(--clr-bg-dark);
  color: var(--clr-text-light);
}

.section--dark h2,
.section--dark h3 {
  color: var(--clr-text-light);
}

.section--dark p {
  color: var(--clr-text-light-2);
}

/* ── Section Header ─────────────────────────────────────── */
.section-header {
  margin-bottom: var(--sp-12);
}

.section-header--center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--sp-4);
}

.section-title {
  font-size: var(--fs-section);
  font-weight: var(--fw-black);
  color: var(--clr-text-1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
}

.section-title .accent {
  color: var(--clr-primary);
}

.section-subtitle {
  font-size: var(--fs-sub);
  color: var(--clr-text-3);
  line-height: var(--lh-relaxed);
  margin-top: var(--sp-4);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 6px;
  border: 1.5px solid transparent;
  background: transparent;
  transition: all 200ms ease;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn--sm { padding: 10px 18px; font-size: 12px; }
.btn--lg { padding: 16px 32px; font-size: 14px; }
.btn--full { width: 100%; }

/* Primary — teal outline (transparent bg, teal border & text) */
.btn--teal-outline {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}
.btn--teal-outline:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13,148,136,0.25);
}

/* Mobile: convert outline buttons to solid for better tap clarity */
@media (max-width: 760px) {
  .btn--teal-outline {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
  }
  .btn-outline-white {
    background: #fff;
    color: var(--clr-text-1, #0F172A);
    border-color: #fff;
  }
}

/* Secondary — neutral outline (transparent bg, gray border & dark text) */
.btn--ghost-dark {
  background: transparent;
  color: var(--clr-text-1);
  border-color: #cbd5e1;
}
.btn--ghost-dark:hover {
  background: var(--clr-text-1);
  color: #fff;
  border-color: var(--clr-text-1);
  transform: translateY(-1px);
}

/* Solid teal — used for high-emphasis CTAs & nav */
.btn--teal-solid {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}
.btn--teal-solid:hover {
  background: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13,148,136,0.3);
  color: #fff;
}

/* Nav GET STARTED — solid teal, compact */
.nav__actions .btn--teal-outline {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 6px;
  letter-spacing: 0.1em;
}
.nav__actions .btn--teal-outline:hover {
  background: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13,148,136,0.25);
  color: #fff;
}

.btn--primary {
  background: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
}
.btn--primary:hover {
  background: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-teal);
  color: var(--clr-white);
}

.btn--outline {
  background: transparent;
  color: var(--clr-text-1);
  border-color: #cbd5e1;
}
.btn--outline:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.btn--dark {
  background: var(--clr-bg-dark);
  color: var(--clr-white);
  border-color: var(--clr-bg-dark);
}
.btn--dark:hover {
  background: var(--clr-bg-dark-2);
  border-color: var(--clr-bg-dark-2);
  color: var(--clr-white);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-primary);
  border: none;
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover {
  color: var(--clr-primary-dark);
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: var(--fs-base);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-sm);
}

.btn--full { width: 100%; }

.btn__arrow {
  transition: transform var(--tr-base);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  transition: all var(--tr-base);
}

.card:hover {
  border-color: var(--clr-border-3);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

/* ── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Divider ────────────────────────────────────────────── */
.divider { height: 1px; background: var(--clr-border); }

/* ── Grid ───────────────────────────────────────────────── */
.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1023px) {
  .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

/* ============================================================
   HEADER — Light Theme
   ============================================================ */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 88px;
  z-index: var(--z-nav);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  transition: border-color var(--tr-base), box-shadow var(--tr-base);
}

.header.scrolled {
  border-bottom-color: var(--clr-border);
  box-shadow: 0 1px 10px rgba(0,0,0,0.04);
}

.header .container { height: 100%; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-8);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-icon { width: 32px; height: 32px; }

.nav__logo-text {
  font-size: 22px;
  font-weight: 900;
  color: var(--clr-text-1);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav__logo-text .accent { color: var(--clr-primary); font-weight: 900; }

.nav__logo-text .accent {
  color: var(--clr-primary);
}

/* Nav Links */
.nav__links {
  display: flex;
  align-items: center;
  /* clamp compresses gap as the viewport narrows so items don't wrap
     before the hamburger breakpoint (1023px) kicks in */
  gap: clamp(16px, 2vw, 32px);
  margin-left: auto;
  margin-right: clamp(16px, 2vw, 32px);
}

.nav__link {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap; /* prevent multi-word labels ("THREE STEPS") from wrapping */
  transition: color var(--tr-base);
}

.nav__link:hover,
.nav__link.active {
  color: var(--clr-text-1);
}

.nav__link.active {
  color: var(--clr-primary);
  font-weight: var(--fw-semibold);
}

/* Nav Actions */
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--clr-text-2);
  border-radius: var(--r-full);
  transition: all var(--tr-base);
  transform-origin: center;
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu — sits as sibling of header to avoid stacking context issues */
.nav__mobile {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: #ffffff;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform var(--tr-slow);
  z-index: 9999;
  overflow-y: auto;
}

.nav__mobile.open { transform: translateX(0); }

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__mobile-link {
  display: block;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-1);
  border-radius: 10px;
  transition: all var(--tr-base);
  text-decoration: none;
}

.nav__mobile-link:hover,
.nav__mobile-link.active {
  color: var(--clr-primary);
  background: var(--clr-primary-bg);
}

/* ── Dropdown (desktop) ─────────────────────────────────── */
.nav__item--dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap; /* prevent "INDUSTRIES" label from wrapping */
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color var(--tr-base);
}
.nav__dropdown-toggle:hover,
.nav__dropdown-toggle.active { color: var(--clr-primary); }

.nav__chevron {
  transition: transform 200ms ease;
  flex-shrink: 0;
}
/* Desktop-only: shrink the chevron slightly so it doesn't dominate
   the nav row. Mobile keeps the larger SVG defaults from the markup. */
.nav__dropdown-toggle .nav__chevron {
  width: 11px;
  height: 7px;
}
.nav__item--dropdown:hover .nav__dropdown-toggle .nav__chevron,
.nav__dropdown-toggle[aria-expanded="true"] .nav__chevron {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  /* Anchor flush to the bottom of the toggle (no hover gap),
     then push the visible card down with margin-top so the
     mouse never leaves the hover area on its way to the items. */
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  margin-top: 10px;
  list-style: none;
  padding: 6px 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(15,23,42,0.12);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Delay hiding by 150ms so mouse can travel to dropdown without it closing */
  transition: opacity 200ms ease 150ms, visibility 200ms ease 150ms, transform 200ms ease 150ms;
  z-index: calc(var(--z-nav, 300) + 10);
}
/* Invisible bridge that fills the visual gap between the toggle and
   the dropdown card, so :hover stays active while moving the mouse. */
.nav__dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
  background: transparent;
}
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  /* Show immediately on hover, no delay */
  transition-delay: 0ms;
}

.nav__dropdown-link {
  display: block;
  padding: 11px 20px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #334155;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
  white-space: nowrap;
}
.nav__dropdown-link:hover,
.nav__dropdown-link.active {
  color: var(--clr-primary);
  background: #f0fdf9;
}

/* ── Mobile Dropdown ────────────────────────────────────── */
.nav__mobile-item--dropdown { display: flex; flex-direction: column; }

.nav__mobile-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-1);
  border-radius: 10px;
  transition: all var(--tr-base);
}
.nav__mobile-dropdown-toggle:hover,
.nav__mobile-dropdown-toggle.active {
  color: var(--clr-primary);
  background: var(--clr-primary-bg);
}
.nav__mobile-dropdown-toggle.open {
  color: var(--clr-primary);
  background: var(--clr-primary-bg);
}
.nav__mobile-dropdown-toggle.open .nav__chevron {
  transform: rotate(180deg);
}

/* Larger chevron in the mobile nav — the 10×6 desktop SVG is too small on touch screens */
.nav__mobile-dropdown-toggle .nav__chevron {
  width: 16px;
  height: 10px;
}

.nav__mobile-sub {
  list-style: none;
  padding: 0 0 6px 20px;
  margin: 0;
}
.nav__mobile-sublink {
  display: block;
  padding: 13px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-primary);
  text-decoration: none;
  border-radius: 8px;
  transition: background 180ms ease;
}
.nav__mobile-sublink:hover,
.nav__mobile-sublink.active { background: var(--clr-primary-bg); }

/* "Coming soon" / unlinked industries — visually muted, not clickable */
.nav__dropdown-link--soon,
.nav__mobile-sublink--soon {
  color: #94a3b8;
  cursor: default;
  pointer-events: none;
  opacity: 0.7;
}
.nav__dropdown-link--soon:hover,
.nav__mobile-sublink--soon:hover {
  background: transparent;
  color: #94a3b8;
}

@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__toggle { display: flex; }
}

/* ============================================================
   FOOTER — Clean Light Footer
   ============================================================ */

.footer {
  background: #0f172a;
  color: rgba(255,255,255,0.55);
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__copy { color: rgba(255,255,255,0.55); }

.footer__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.55);
}

.footer__meta a {
  color: rgba(255,255,255,0.75);
  transition: color 200ms ease;
  text-decoration: none;
}

.footer__meta a:hover { color: #5eead4; }

.footer__sep { color: rgba(255,255,255,0.25); }

.footer__nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer__link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 200ms ease;
}
.footer__link:hover { color: #5eead4; }

.footer__flag {
  display: block;
  width: 20px;
  height: 11px;
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 639px) {
  .footer {
    padding: 28px 0;
  }
  .footer__row {
    flex-direction: column;
    align-items: center;   /* centre everything on mobile */
    text-align: center;
    gap: 8px;
  }
  .footer__meta {
    /* Stack items vertically so the · separators don't orphan mid-line */
    flex-direction: column;
    align-items: center;   /* centre the stacked meta items */
    gap: 4px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  /* Footer nav stays horizontal on mobile (short labels), keep · separators */
  .footer__nav {
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .footer__nav .footer__sep { display: inline; }
  /* Hide the meta · separators — redundant when meta items stack vertically */
  .footer__meta .footer__sep { display: none; }
  .footer__copy {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}

/* ── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-height) + var(--section-py));
  padding-bottom: var(--section-py);
  background: var(--clr-bg-2);
  border-bottom: 1px solid var(--clr-border);
}

.page-hero .container { text-align: center; }

.page-hero__title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-black);
  text-transform: uppercase;
  letter-spacing: var(--ls-tight);
  color: var(--clr-text-1);
  margin-bottom: var(--sp-5);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero__title .accent { color: var(--clr-primary); }

.page-hero__subtitle {
  font-size: var(--fs-sub);
  color: var(--clr-text-3);
  line-height: var(--lh-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

/* ── CTA Box (reusable) ────────────────────────────────── */
.cta-box {
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-2xl);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.cta-box__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--fw-black);
  color: var(--clr-text-1);
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
}

.cta-box__title .accent { color: var(--clr-primary); }

.cta-box__subtitle {
  font-size: var(--fs-lg);
  color: var(--clr-text-3);
  margin-bottom: var(--sp-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--lh-relaxed);
}

.cta-box__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ── Gradient Text Utility ────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #0d9488 0%, #2563eb 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Contact Modal ───────────────────────────────────────
   Shared pop-up contact form — triggered by [data-contact-modal].
   Injected into every page by renderSharedLayout() in common.js.
   z-index: 400 (--z-toast) so the overlay covers the fixed nav (--z-nav: 300).
   The card uses overflow-y: auto + max-height so it scrolls on short screens.
─────────────────────────────────────────────────────────── */

/* Overlay / backdrop */
.contact-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: var(--z-toast);   /* 400 — above nav (300) */
  display: flex;
  align-items: flex-start;   /* top-align so card is reachable on short screens */
  justify-content: center;
  padding: calc(var(--nav-height) + 1rem) var(--sp-4) var(--sp-4); /* clear the nav */
  overflow-y: auto;          /* overlay itself scrolls if card taller than screen */
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--tr-slow), visibility var(--tr-slow);
}

.contact-modal.open {
  opacity: 1;
  visibility: visible;
}

/* Modal card — the overlay handles scrolling, card just sizes to content */
.contact-modal__card {
  background: var(--clr-bg-1);
  border-radius: var(--r-2xl);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  width: 100%;
  max-width: 560px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--tr-slow);
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  margin-bottom: var(--sp-8); /* breathing room at bottom of overlay */
}

.contact-modal.open .contact-modal__card {
  transform: translateY(0) scale(1);
}

/* Close button */
.contact-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg-4);
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  color: var(--clr-text-3);
  transition: background var(--tr-base), color var(--tr-base);
  flex-shrink: 0;
}
.contact-modal__close:hover {
  background: var(--clr-border-2);
  color: var(--clr-text-1);
}

/* Header */
.contact-modal__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  color: var(--clr-primary);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.contact-modal__title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: var(--fw-black);
  color: var(--clr-text-1);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-2);
}

.contact-modal__sub {
  font-size: var(--fs-sm);
  color: var(--clr-text-3);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-6);
}

/* Form layout */
.contact-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

@media (max-width: 480px) {
  .contact-modal__row { grid-template-columns: 1fr; }
}

.contact-modal__field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.contact-modal__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-modal__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-md);
  font-family: var(--font-family);
  font-size: var(--fs-sm);
  color: var(--clr-text-1);
  background: var(--clr-bg-1);
  transition: border-color var(--tr-base), box-shadow var(--tr-base);
  outline: none;
  box-sizing: border-box;
}

.contact-modal__input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-bg);
}

.contact-modal__input::placeholder { color: var(--clr-text-4); }

.contact-modal__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.contact-modal__req {
  color: var(--clr-primary);
  font-weight: var(--fw-bold);
}

.contact-modal__submit-wrap {
  margin-top: var(--sp-2);
}

.contact-modal__textarea {
  resize: vertical;
  min-height: 90px;
}

/* Submit button */
.contact-modal__submit {
  width: 100%;
  padding: 1rem;
  background: var(--clr-primary);
  color: var(--clr-white);
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font-family);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--tr-base), box-shadow var(--tr-base), transform var(--tr-fast);
  margin-top: var(--sp-2);
}
.contact-modal__submit:hover:not(:disabled) {
  background: var(--clr-primary-dark);
  box-shadow: var(--shadow-teal);
  transform: translateY(-1px);
}
.contact-modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-modal__note {
  font-size: var(--fs-xs);
  color: var(--clr-text-4);
  text-align: center;
  margin-top: var(--sp-3);
  letter-spacing: 0.02em;
}

/* Success state */
.contact-modal__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-10) var(--sp-4);
  gap: var(--sp-4);
}

.contact-modal__success-icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-primary-bg);
  border-radius: var(--r-full);
}

.contact-modal__success-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  color: var(--clr-text-1);
  letter-spacing: var(--ls-tight);
}

.contact-modal__success-body {
  font-size: var(--fs-sm);
  color: var(--clr-text-3);
  line-height: var(--lh-relaxed);
  max-width: 320px;
}

/* Stretch video + calendly slots to full width inside the centered flex
   success state so the 16:9 iframe inside .vtxr-confirm-video can render. */
.contact-modal__video-slot,
.contact-modal__calendly-slot {
  width: 100%;
  align-self: stretch;
  display: flex;
  justify-content: center;
}

.contact-modal__watch-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--clr-primary);
  color: var(--clr-white);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--tr-base), box-shadow var(--tr-base), transform var(--tr-fast);
  margin-top: var(--sp-2);
}
.contact-modal__watch-btn:hover {
  background: var(--clr-primary-dark);
  box-shadow: var(--shadow-teal);
  transform: translateY(-1px);
}

/* ==========================================================================
   Audit v2 additions — inline style refactors
   ========================================================================== */

/* Modal form row modifiers */
.contact-modal__row--3col { grid-template-columns: 1fr 1fr 1fr; }
.contact-modal__row--end  { align-items: end; }
@media (max-width: 480px) {
  .contact-modal__row--3col { grid-template-columns: 1fr; }
}

/* Modal muted note */
.contact-modal__note--muted { color: #94a3b8; font-style: italic; }

/* Restaurant "HOW WE WORK" 3-step process */
.step-process { padding: 3rem 0; background: #f8fafc; }
.step-process__title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 2rem;
}
.step-process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.step-process__card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.step-process__card .step-process__body {
  flex: 1 1 auto; /* pushes per-card CTA to bottom for uniform alignment */
}
.step-process__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.step-process__icon--teal   { background: #ccfbf1; color: #0d9488; }
.step-process__icon--blue   { background: #dbeafe; color: #2563eb; }
.step-process__icon--purple { background: #f3e8ff; color: #9333ea; }
.step-process__num { font-size: 2rem; font-weight: 900; margin-bottom: 0.25rem; }
.step-process__num--teal   { color: #14b8a6; }
.step-process__num--blue   { color: #3b82f6; }
.step-process__num--purple { color: #a855f7; }
.step-process__heading {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}
.step-process__body {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Partner logos strip (dark) */
.logos-strip { background: #0f172a; padding: 2.5rem 0; }
.logos-strip__inner { text-align: center; }
.logos-strip__label {
  color: #94a3b8;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.logos-strip__row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  opacity: 0.6;
}
.logos-strip__placeholder {
  color: #64748b;
  font-style: italic;
  font-size: 0.95rem;
}

/* Restaurant metrics 2-group layout */
.rs-metrics__group { margin-bottom: 1.5rem; }
.rs-metrics__group-title {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #14b8a6;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}
.rs-metrics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

/* Muted form note (restaurant/CTA) */
.form-note--muted {
  color: #94a3b8;
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ───────────────────────────────────────────────────────────
   reCAPTCHA wrappers — keep the widget centered with breathing
   room above the submit button on every form (homepage, why-us
   inline, and the shared contact modal).
─────────────────────────────────────────────────────────── */
.start__recaptcha,
.wu-form__recaptcha,
.contact-modal__recaptcha {
  display: flex;
  justify-content: flex-start;
  margin: 1rem 0 1.25rem;
}
/* Allow the widget to scale down on very narrow screens so it
   doesn't overflow the form card on small phones. */
@media (max-width: 360px) {
  .start__recaptcha .g-recaptcha,
  .wu-form__recaptcha .g-recaptcha,
  .contact-modal__recaptcha .g-recaptcha {
    transform: scale(0.85);
    transform-origin: center;
  }
}

/* Inline warning shown when user submits without completing the
   reCAPTCHA. Kept low-profile but visible. */
.vtxr-recaptcha-warn {
  margin: 0.4rem 0 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b91c1c;
  letter-spacing: 0.2px;
}

/* ── Confirmation video player (post-submit success state) ──
   Used inside #form-video-slot, #wu-form-video-slot, and
   #contact-modal-video-slot. Renders a 16:9 responsive embed. */
.vtxr-confirm-video {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 1.25rem auto 0;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}
.vtxr-confirm-video::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}
.vtxr-confirm-video__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}
.vtxr-confirm-video__next {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  background: rgba(13, 148, 136, 0.95);
  color: #fff;
  border: 0;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.vtxr-confirm-video__next:hover,
.vtxr-confirm-video__next:focus {
  background: #0d9488;
  outline: none;
}

/* ── Calendly section on success screen ─────────────────────
   Shown below the confirmation video (or directly below the
   confirmation text if no video URLs are set). The widget
   itself handles its own styling — these rules only style
   the divider, heading, and fallback link. */
.start__calendly-divider,
.wu-form__calendly-divider,
.contact-modal__calendly-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.35), transparent);
  margin: 2rem 0 1.5rem;
}
.start__calendly-title,
.wu-form__calendly-title,
.contact-modal__calendly-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin: 0 0 1rem;
  letter-spacing: 0.2px;
}
.start__calendly-slot,
.wu-form__calendly-slot,
.contact-modal__calendly-slot {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* "BOOK AN APPOINTMENT" CTA — opens Calendly popup widget */
.vtxr-calendly-btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: #0d9488;
  padding: 14px 32px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.22);
  min-width: 240px;
}
.vtxr-calendly-btn:hover,
.vtxr-calendly-btn:focus {
  background: #0f766e;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.32);
  outline: none;
}
.vtxr-calendly-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.22);
}
.vtxr-calendly-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}
