/* ============================================================
   CSS CUSTOM PROPERTIES
============================================================ */
:root {
  --navy:       #1B2A3F;
  --amber:      #E8C87A;
  --linen:      #F7F4EE;
  --sage:       #4A6741;
  --slate:      #8BA5BC;

  --navy-90:    rgba(27, 42, 63, 0.90);
  --navy-70:    rgba(27, 42, 63, 0.70);
  --navy-20:    rgba(27, 42, 63, 0.20);
  --amber-10:   rgba(232, 200, 122, 0.10);
  --amber-20:   rgba(232, 200, 122, 0.20);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --section-pad-desktop: 100px;
  --section-pad-mobile:  56px;

  --max-width: 1200px;
  --radius:    6px;
  --transition: 0.22s ease;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--linen);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY HELPERS
============================================================ */
.label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.label--slate {
  color: var(--slate);
}

.section-headline {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}

/* ============================================================
   LAYOUT HELPERS
============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--amber {
  background: var(--amber);
  color: var(--navy);
}

.btn--amber:hover {
  background: #f0d48a;
  box-shadow: 0 6px 24px rgba(232,200,122,0.35);
}

.btn--navy {
  background: var(--navy);
  color: var(--amber);
}

.btn--navy:hover {
  background: #253a56;
  box-shadow: 0 6px 24px rgba(27,42,63,0.30);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn--outline:hover {
  background: var(--navy-20);
}

.btn--large {
  font-size: 1rem;
  padding: 16px 36px;
}

/* ============================================================
   NAVIGATION
============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}

@media (min-width: 768px) {
  .nav {
    padding: 0 40px;
  }
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 1px;
}

.nav__logo-iv {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--amber);
  letter-spacing: 0.02em;
}

.nav__logo-name {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(247,244,238,0.85);
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--amber);
}

.nav__cta {
  background: var(--amber);
  color: var(--navy) !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav__cta:hover {
  background: #f0d48a !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--linen);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.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);
}

/* Mobile nav drawer */
.nav__drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  padding: 40px 32px;
  flex-direction: column;
  gap: 28px;
  z-index: 999;
}

.nav__drawer.open {
  display: flex;
}

.nav__drawer a {
  font-size: 1.4rem;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--linen);
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(247,244,238,0.1);
  padding-bottom: 20px;
  transition: color var(--transition);
}

.nav__drawer a:hover {
  color: var(--amber);
}

.nav__drawer .btn {
  margin-top: 8px;
  width: 100%;
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }
}

/* ============================================================
   SECTION 1 — HERO
============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 92vh;
  overflow: hidden;
  background-color: #1B2A3F;
  background-image: url('hero_iv_lighting_final.png');
  background-size: cover;
  background-position: center center;
}

/* Mobile-only photo block — hidden on desktop, shown in the mobile media query */
.hero__photo {
  display: none;
}

/* Mobile-only hero tagline — hidden on desktop (desktop keeps it in the subhead) */
.hero__tagline {
  display: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(27,42,63,0.92) 0%, rgba(27,42,63,0.88) 9%, rgba(27,42,63,0.45) 22%, rgba(27,42,63,0.0) 38%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 40%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px 40px 7%;
  text-align: left;
}

.hero__content .label {
  margin-bottom: 16px;
}

.hero__headline {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.15;
  color: var(--linen);
  margin-bottom: 20px;
}

.hero__subhead {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(247,244,238,0.75);
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Ghost button for dark backgrounds */
.btn--ghost {
  background: transparent;
  color: var(--linen);
  border: 1.5px solid rgba(247,244,238,0.35);
}

.btn--ghost:hover {
  background: rgba(247,244,238,0.08);
  border-color: rgba(247,244,238,0.60);
}

/* Service strip */
.hero__strip {
  display: flex;
  justify-content: space-around;
  width: 100%;
  background: #1B2A3F;
  border-top: 1px solid rgba(232,200,122,0.12);
  padding: 20px 0;
}

.hero__strip-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero__strip-item + .hero__strip-item {
  border-left: 1px solid rgba(255,255,255,0.08);
}

.hero__strip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.hero__strip-text {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Mobile */
@media (max-width: 768px) {
  /* Stack as two distinct blocks: clean photo on top, navy text block below */
  .hero {
    height: auto;
    background: none;
    overflow: visible;
  }

  .hero__photo {
    display: block;
    width: 100%;
    height: 56vw;
    object-fit: cover;
    object-position: center;
  }

  .hero__overlay {
    display: none;
  }

  .hero__content {
    width: 100%;
    height: auto;
    background: #1B2A3F;
    justify-content: flex-start;
    padding: 40px 24px 48px 24px;
    text-align: left;
  }

  /* Headline + tagline both sized to fit the longer line on one line */
  .hero__headline {
    font-size: clamp(17px, 5.7vw, 28px);
    white-space: nowrap;
    margin-bottom: 10px;
  }

  .hero__headline br {
    display: none;
  }

  /* Tagline directly beneath the headline — same serif style/size */
  .hero__tagline {
    display: block;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(17px, 5.7vw, 28px);
    line-height: 1.15;
    color: var(--linen);
    white-space: nowrap;
    margin-bottom: 24px;
  }

  .hero__tagline em {
    font-style: italic;
  }

  /* The moved line now lives in the tagline; hide it in the subhead on mobile */
  .hero__subhead-tail {
    display: none;
  }

  /* Label-style typography, but slate (matching the service tiles below) so amber
     stays a single accent up top and the hierarchy reads cleaner */
  .hero__subhead {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--slate);
    line-height: 1.6;
  }

  .hero__strip {
    flex-wrap: wrap;
  }

  .hero__strip-item {
    width: 50%;
    flex: none;
    padding: 16px 0;
  }

  .hero__strip-item:nth-child(3),
  .hero__strip-item:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .hero__strip-item:nth-child(3) {
    border-left: none;
  }
}

/* Desktop hero (≥769px) — split layout mirroring the mobile design:
   solid navy text panel left, the photo fully pictured right.
   Hard separation — no gradients or overlays touching the image.
   The photo renders at its natural 4:3 ratio (zero crop) and sets
   the hero's height; the navy panel stretches to match. */
@media (min-width: 769px) {
  .hero {
    display: flex;
    align-items: stretch;
    height: auto;
    background-image: none; /* photo lives in its own tile now */
  }

  .hero__overlay {
    display: none;
  }

  .hero__photo {
    display: block;
    order: 2;
    width: 60%;
    height: auto; /* natural 4:3 — the full photograph, uncropped */
  }

  .hero__content {
    order: 1;
    width: 40%;
    height: auto;
    justify-content: center;
    padding: 48px clamp(36px, 4vw, 72px) 56px clamp(48px, 6vw, 120px);
  }

  .hero__headline {
    font-size: clamp(36px, 3.8vw, 58px);
  }

  /* Mirror the mobile hierarchy: serif tagline under the headline… */
  .hero__tagline {
    display: block;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(19px, 1.7vw, 26px);
    line-height: 1.3;
    color: var(--linen);
    margin-bottom: 28px;
  }

  .hero__tagline em {
    font-style: italic;
  }

  /* …and the subhead as the quiet slate label (its line now lives in the tagline) */
  .hero__subhead-tail {
    display: none;
  }

  .hero__subhead {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--slate);
    line-height: 1.8;
    margin-bottom: 32px;
  }
}

/* ============================================================
   SECTION 2 — AI VISUALIZER
============================================================ */
.visualizer {
  background: var(--linen);
  padding: var(--section-pad-desktop) 0;
  /* Half bottom pad — visualizer & services share a bg, so full pad on both doubles the gap */
  padding-bottom: calc(var(--section-pad-desktop) / 2);
}

@media (max-width: 768px) {
  .visualizer {
    padding: var(--section-pad-mobile) 0;
    padding-bottom: calc(var(--section-pad-mobile) / 2);
  }
}

.visualizer__header {
  text-align: center;
  margin-bottom: 56px;
}

.visualizer__header .label {
  display: block;
  margin-bottom: 16px;
}

.visualizer__headline {
  font-size: clamp(32px, 5vw, 50px);
  margin-bottom: 16px;
}

.visualizer__subhead {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(27,42,63,0.65);
  max-width: 540px;
  margin: 0 auto;
}

/* --- Module card --- */
.visualizer .container {
  max-width: 1000px;
}

.visualizer__module {
  background: #fff;
  border: 1px solid rgba(27,42,63,0.10);
  border-radius: 12px;
  padding: 48px 16px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 4px 48px rgba(27,42,63,0.09);
}

@media (max-width: 640px) {
  .visualizer__module {
    padding: 28px 16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* Step label */
.vis-step-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}

/* Step 1: Toggle buttons */
.vis-toggles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.vis-toggle {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1.5px solid rgba(27,42,63,0.25);
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  text-align: center;
}

.vis-toggle:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
}

.vis-toggle.selected {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
  font-weight: 600;
}

/* Step 2: Upload zone */
.vis-upload-area {
  border: 2px dashed rgba(27,42,63,0.2);
  border-radius: 10px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  margin-bottom: 24px;
  background: rgba(247,244,238,0.6);
}

.vis-upload-area:hover,
.vis-upload-area.dragover {
  border-color: var(--amber);
  background: var(--amber-10);
}

.vis-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.vis-upload-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  color: var(--slate);
}

.vis-upload-text {
  font-size: 0.9rem;
  color: rgba(27,42,63,0.6);
  line-height: 1.5;
}

.vis-upload-text strong {
  color: var(--navy);
}

.vis-upload-text small {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: rgba(27,42,63,0.4);
}

/* Preview thumbnail — expands naturally to fit any uploaded image */
.vis-preview {
  display: none;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

.vis-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.vis-preview__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(27,42,63,0.8);
  color: var(--linen);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.vis-preview__remove:hover {
  background: var(--navy);
}

/* Generate button */
.vis-generate-btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  display: none;
}

/* ============================================================
   LEAD GATE MODAL
============================================================ */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,26,40,0.82);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 14px;
  padding: 48px 40px;
  max-width: 460px;
  width: 100%;
  position: relative;
  animation: modalIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 500px) {
  .modal {
    padding: 36px 24px;
  }
}

@keyframes modalIn {
  from { transform: scale(0.92) translateY(16px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(27,42,63,0.4);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color var(--transition);
}

.modal__close:hover {
  color: var(--navy);
}

.modal__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.modal__check {
  width: 32px;
  height: 32px;
  background: rgba(232,200,122,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal__check svg {
  width: 16px;
  height: 16px;
  color: var(--amber);
  stroke: var(--amber);
}

.modal__headline {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.2;
}

.modal__subhead {
  font-size: 0.9rem;
  color: rgba(27,42,63,0.60);
  line-height: 1.6;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.form-row--2col {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 400px) {
  .form-row--2col {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0; /* allow grid item to shrink below the input's intrinsic width */
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--navy);
}

.form-field input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 11px 14px;
  border: 1.5px solid rgba(27,42,63,0.20);
  border-radius: var(--radius);
  color: var(--navy);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-field input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232,200,122,0.18);
}

.form-field input.error {
  border-color: #c0392b;
}

.form-error {
  font-size: 0.72rem;
  color: #c0392b;
  margin-top: 2px;
}

.form-submit {
  width: 100%;
  padding: 15px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  margin-top: 4px;
}

.modal__disclaimer {
  font-size: 0.7rem;
  color: rgba(27,42,63,0.40);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* ============================================================
   LOADING STATE
============================================================ */
.vis-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  gap: 24px;
}

.vis-loading.active {
  display: flex;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(232,200,122,0.2);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.vis-loading__text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
}

.vis-loading__sub {
  font-size: 0.85rem;
  color: rgba(27,42,63,0.55);
}

/* ============================================================
   BEFORE/AFTER SLIDER
============================================================ */
.vis-result {
  display: none;
}

.vis-result.active {
  display: block;
}

/* Final AI result image — shown at natural proportions */
.vis-result__image {
  border-radius: 10px;
  overflow: hidden;
}

.vis-result__image img {
  display: block;
  width: 100%;
  height: auto;
}

.slider-container {
  position: relative;
  width: 100%;
  user-select: none;
  border-radius: 10px;
  overflow: hidden;
  cursor: col-resize;
  touch-action: none;
}

/* Both images fill the JS-sized container identically — same pixel box, cover-fit */
.slider-before,
.slider-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* After overlays the before; clip-path (updated by JS) reveals it from the right */
.slider-after {
  clip-path: inset(0 0 0 50%);
}

/* Labels */
.slider-label {
  position: absolute;
  top: 16px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  pointer-events: none;
}

.slider-label--before {
  left: 16px;
  background: rgba(27,42,63,0.75);
  color: var(--linen);
}

.slider-label--after {
  right: 16px;
  background: var(--amber);
  color: var(--navy);
}

/* Divider */
.slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--amber);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 3px 16px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-handle svg {
  width: 20px;
  height: 20px;
  color: var(--navy);
}

/* Result CTAs */
.vis-result__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}

@media (min-width: 500px) {
  .vis-result__actions {
    flex-direction: row;
    justify-content: center;
  }
}

.vis-share-btn {
  background: none;
  border: none;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color var(--transition);
}

.vis-share-btn:hover {
  color: var(--amber);
}

/* ============================================================
   SECTION 3 — WHAT WE DO / SERVICES
============================================================ */
.services {
  background: var(--linen);
  padding: var(--section-pad-desktop) 0;
  /* Half top pad — pairs with the visualizer's reduced bottom pad above */
  padding-top: calc(var(--section-pad-desktop) / 2);
}

@media (max-width: 768px) {
  .services {
    padding: var(--section-pad-mobile) 0;
    padding-top: calc(var(--section-pad-mobile) / 2);
  }
}

.services__header {
  text-align: center;
  margin-bottom: 52px;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: #fff;
  border: 1px solid rgba(27,42,63,0.10);
  border-radius: 12px;
  padding: 40px 36px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.service-card--amber::before {
  background: var(--amber);
}

.service-card--sage::before {
  background: var(--sage);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27,42,63,0.12);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card--amber .service-card__icon {
  background: rgba(232,200,122,0.15);
  color: var(--amber);
}

.service-card--sage .service-card__icon {
  background: rgba(74,103,65,0.12);
  color: var(--sage);
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card__headline {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}

.service-card__body {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(27,42,63,0.65);
  margin-bottom: 28px;
}

.service-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition), color var(--transition);
}

.service-card--amber .service-card__link {
  color: var(--amber);
}

.service-card--sage .service-card__link {
  color: var(--sage);
}

.service-card__link:hover {
  gap: 10px;
}

.service-card__link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform var(--transition);
}

.service-card__link:hover svg {
  transform: translateX(2px);
}

/* ============================================================
   SECTION 4 — HOW IT WORKS
============================================================ */
.how-it-works {
  background: var(--navy);
  padding: var(--section-pad-desktop) 0;
}

@media (max-width: 768px) {
  .how-it-works {
    padding: var(--section-pad-mobile) 0;
  }
}

.how-it-works__header {
  text-align: center;
  margin-bottom: 60px;
}

.how-it-works__header .label {
  display: block;
  margin-bottom: 0;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* Connecting line between steps */
.how-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(232,200,122,0.25), transparent);
}

@media (max-width: 640px) {
  .how-steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 40px;
  }

  .how-steps::before {
    display: none;
  }
}

.how-step {
  text-align: center;
  padding: 0 28px;
  position: relative;
}

@media (max-width: 640px) {
  .how-step {
    display: flex;
    text-align: left;
    gap: 24px;
    padding: 0;
    align-items: flex-start;
  }
}

.how-step__number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 20px;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .how-step__number {
    font-size: 2.5rem;
    margin-bottom: 0;
    padding-top: 4px;
  }
}

.how-step__content {}

.how-step__title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--linen);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.how-step__desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(247,244,238,0.55);
}

/* ============================================================
   SECTION 5 — GALLERY
============================================================ */
.gallery {
  background: var(--linen);
  padding: var(--section-pad-desktop) 0;
}

@media (max-width: 768px) {
  .gallery {
    padding: var(--section-pad-mobile) 0;
  }
}

.gallery__header {
  text-align: center;
  margin-bottom: 52px;
}

.gallery__headline {
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 12px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
}

@media (max-width: 700px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 440px) {
  .gallery__grid {
    grid-template-columns: 1fr;
  }
}

/* First item spans 2 columns */
.gallery-item:first-child {
  grid-column: span 2;
}

@media (max-width: 440px) {
  .gallery-item:first-child {
    grid-column: span 1;
  }
}

.gallery-item {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1B2A3F 0%, #253a56 100%);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition);
}

.gallery-item:first-child {
  aspect-ratio: 16/9;
}

.gallery-item:hover {
  transform: scale(1.02);
}

/* IV watermark placeholder */
.gallery-item::before {
  content: 'IV';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 600;
  color: rgba(232,200,122,0.12);
  letter-spacing: 0.1em;
  pointer-events: none;
}

/* Amber overlay on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(232,200,122,0.0);
  transition: background 0.3s ease;
}

.gallery-item:hover::after {
  background: rgba(232,200,122,0.08);
}

.gallery__cta {
  text-align: center;
  margin-top: 44px;
}

/* ============================================================
   SECTION 6 — SOCIAL PROOF
============================================================ */
.reviews {
  background: #fff;
  padding: var(--section-pad-desktop) 0;
}

@media (max-width: 768px) {
  .reviews {
    padding: var(--section-pad-mobile) 0;
  }
}

.reviews__header {
  text-align: center;
  margin-bottom: 52px;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 840px) {
  .reviews__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

.review-card {
  background: var(--linen);
  border: 1px solid rgba(27,42,63,0.08);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-stars {
  display: flex;
  gap: 4px;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--amber);
  color: var(--amber);
}

.review-quote {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(27,42,63,0.75);
  flex: 1;
  font-style: italic;
}

.review-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.review-author span {
  font-weight: 400;
  color: var(--slate);
  margin-left: 4px;
}

/* ============================================================
   SECTION 7 — FINAL CTA
============================================================ */
.final-cta {
  background: var(--navy);
  padding: var(--section-pad-desktop) 0;
  text-align: center;
}

@media (max-width: 768px) {
  .final-cta {
    padding: var(--section-pad-mobile) 0;
  }
}

.final-cta__headline {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 600;
  color: var(--linen);
  line-height: 1.15;
  margin-bottom: 16px;
}

.final-cta__subhead {
  font-size: 1rem;
  color: rgba(247,244,238,0.60);
  line-height: 1.7;
  margin-bottom: 40px;
}

.final-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.final-cta__phone {
  font-size: 0.88rem;
  color: rgba(247,244,238,0.50);
  letter-spacing: 0.04em;
}

.final-cta__phone a {
  color: var(--amber);
  font-weight: 500;
  transition: color var(--transition);
}

.final-cta__phone a:hover {
  color: #f0d48a;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: #0e1b28;
  padding: 48px 0 32px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer__logo {
  flex-shrink: 0;
}

.footer__logo .nav__logo-iv {
  font-size: 1.8rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}

.footer__links a {
  font-size: 0.8rem;
  color: rgba(247,244,238,0.50);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--amber);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(247,244,238,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(247,244,238,0.50);
  transition: border-color var(--transition), color var(--transition);
}

.footer__social a:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(247,244,238,0.08);
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(247,244,238,0.30);
}

/* ============================================================
   ERROR STATE
============================================================ */
.vis-error {
  display: none;
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.25);
  border-radius: 8px;
  padding: 18px 20px;
  margin-top: 16px;
  font-size: 0.875rem;
  color: #c0392b;
  line-height: 1.5;
}

.vis-error.active {
  display: block;
}

/* ============================================================
   UTILITY
============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.text-center { text-align: center; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: var(--linen);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 9000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
