/* ============================================================
   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: 76px;
  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;
}

/* Header logo mark (replaces the "IV" wordmark above "Outdoor Lighting") */
.nav__logo-img {
  height: 40px;
  width: auto;
  display: block;
  align-self: flex-start;
  margin-bottom: 5px;
  flex-shrink: 0;
}

.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__logo-name-iv {
  font-weight: 700;
}

.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: 76px;
  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.jpg');
  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;
  }
}

/* Desktop: the module stays wide so result images can breathe, but the
   steps read as one centered column instead of sprawling edge to edge */
@media (min-width: 900px) {
  #visStep1,
  #visStep2 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .vis-step-label {
    text-align: center;
  }

  .vis-generate-btn {
    display: block;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .vis-error {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

/* 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);
  margin-top: 8px;
}

/* Grayed-out guide state until a type is chosen and a photo is in */
.vis-generate-btn:disabled {
  background: rgba(27,42,63,0.08);
  color: rgba(27,42,63,0.45);
  cursor: not-allowed;
  box-shadow: none;
}

.vis-generate-btn:disabled:hover {
  background: rgba(27,42,63,0.08);
  box-shadow: none;
  transform: 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);
}

.vis-share-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Shareable-link box, revealed after "Create shareable link" */
.vis-share-link {
  display: none;
  margin: 14px auto 0;
  max-width: 460px;
}

.vis-share-link.active {
  display: block;
}

.vis-share-link__row {
  display: flex;
  gap: 8px;
}

.vis-share-link__row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(16, 29, 46, 0.25);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--navy);
  background: #fff;
}

.vis-share-link__row button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}

.vis-share-link__row button:hover {
  background: var(--amber);
  color: var(--navy);
}

.vis-share-link__note {
  margin-top: 8px;
  font-size: 0.75rem;
  color: rgba(16, 29, 46, 0.55);
  text-align: center;
}

/* ============================================================
   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__headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-top: 14px;
}

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

/* Match the visualizer card's width exactly so the section flows with it
   (the visualizer container is inline-styled to 1400px / 24px padding) */
.services .container {
  max-width: 1400px;
  padding-left: 24px;
  padding-right: 24px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 24px;
  margin: 0 auto;
}

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

/* Service cards: photo-led tiles */
.svc {
  background: #fff;
  border: 1px solid rgba(27,42,63,0.10);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.svc__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.svc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.svc:hover .svc__media img {
  transform: scale(1.04);
}

.svc__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--amber);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.svc__body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.svc__name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
}

.svc__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: #b9974a;
  margin: 4px 0 12px;
}

.svc__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(27,42,63,0.68);
  margin-bottom: 16px;
}

.svc__features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 9px;
}

.svc__features li {
  position: relative;
  padding-left: 24px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(27,42,63,0.78);
}

.svc__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(232,200,122,0.20);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23b9974a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7.5l3.2 3.2L12 3.8'/%3E%3C/svg%3E");
}

.svc__cta {
  margin-top: auto;
  width: 100%;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
  font-size: 0.82rem;
  padding: 13px 18px;
}

/* Featured card: navy body, amber checks */
.svc--featured {
  background: var(--navy);
  border-color: rgba(232,200,122,0.35);
}

.svc--featured .svc__name {
  color: var(--linen);
}

.svc--featured .svc__tagline {
  color: var(--amber);
}

.svc--featured .svc__desc {
  color: rgba(247,244,238,0.72);
}

.svc--featured .svc__features li {
  color: rgba(247,244,238,0.85);
}

.svc--featured .svc__features li::before {
  background-color: rgba(232,200,122,0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23E8C87A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7.5l3.2 3.2L12 3.8'/%3E%3C/svg%3E");
}

@media (max-width: 900px) {
  .svc__media {
    aspect-ratio: 16 / 9;
  }
  .svc__body {
    padding: 22px 20px 24px;
  }
}

/* ============================================================
   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;
}

/* Neutral tone for service-area notices (not an error) */
.vis-error.vis-error--info {
  background: rgba(74,103,65,0.08);
  border-color: rgba(74,103,65,0.3);
  color: #2c3e50;
}

/* ============================================================
   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);
}

/* ============================================================
   LEGAL PAGES (privacy.html, terms.html)
============================================================ */
.nav--solid {
  position: static;
  background: var(--navy);
}

/* Legal pages have no hamburger/drawer — keep their two links visible on mobile */
@media (max-width: 768px) {
  .nav--solid .nav__links {
    display: flex;
    gap: 18px;
  }
}

.legal {
  background: var(--linen);
  padding: 72px 0 96px;
  min-height: 60vh;
}

.legal__container {
  max-width: 760px;
}

.legal__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.legal__updated {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(27,42,63,0.5);
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin: 36px 0 12px;
}

.legal p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(27,42,63,0.75);
  margin-bottom: 14px;
}

.legal ul {
  margin: 0 0 14px 22px;
}

.legal li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(27,42,63,0.75);
  margin-bottom: 6px;
}

.legal a {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal strong {
  color: var(--navy);
}

.footer__copy a {
  color: inherit;
  transition: color var(--transition);
}

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

/* ============================================================
   TRUST BAND (about)
============================================================ */
.trust {
  background: var(--linen);
  padding: var(--section-pad-desktop) 0;
  text-align: center;
}

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

.trust__headline {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-top: 14px;
}

.trust__body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(27,42,63,0.68);
  max-width: 560px;
  margin: 16px auto 0;
}

.trust__points {
  list-style: none;
  margin: 36px auto 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust__points li {
  position: relative;
  padding-left: 26px;
  font-size: 0.875rem;
  color: rgba(27,42,63,0.78);
}

.trust__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background-color: rgba(232,200,122,0.22);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23b9974a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7.5l3.2 3.2L12 3.8'/%3E%3C/svg%3E");
}

@media (max-width: 700px) {
  .trust__points {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
  .trust__points li {
    text-align: left;
  }
}

/* ============================================================
   QUOTE FORM (final CTA)
============================================================ */
.cta-form {
  max-width: 680px;
  margin: 36px auto 0;
}

.cta-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cta-form__grid input,
.cta-form__grid select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(247,244,238,0.18);
  border-radius: 8px;
  background: rgba(247,244,238,0.07);
  color: var(--linen);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition);
}

.cta-form__grid input::placeholder {
  color: rgba(247,244,238,0.5);
}

.cta-form__grid select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23F7F4EE' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  cursor: pointer;
}

.cta-form__grid select:invalid,
.cta-form__grid select option[value=""] {
  color: rgba(247,244,238,0.5);
}

.cta-form__grid select option {
  color: var(--navy);
  background: #fff;
}

.cta-form__grid input:focus,
.cta-form__grid select:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(247,244,238,0.12);
}

.cta-form__submit {
  width: 100%;
  white-space: normal;
  line-height: 1.35;
}

.cta-form__error {
  min-height: 20px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #f0b9a4;
  text-align: center;
}

.cta-form__success {
  display: none;
  max-width: 560px;
  margin: 36px auto 0;
  padding: 32px 28px;
  background: rgba(247,244,238,0.07);
  border: 1px solid rgba(232,200,122,0.4);
  border-radius: 12px;
}

.cta-form__success-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 8px;
}

.cta-form__success-sub {
  font-size: 0.9rem;
  color: rgba(247,244,238,0.75);
}

@media (max-width: 600px) {
  .cta-form__grid {
    grid-template-columns: 1fr;
  }
}

/* Sublabels under the visualizer type toggles */
.vis-toggle small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.65;
  margin-top: 3px;
}

/* ============================================================
   STREET VIEW ADDRESS MODE
============================================================ */
.vis-source-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.vis-source-tab {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid rgba(27,42,63,0.18);
  color: rgba(27,42,63,0.65);
  background: transparent;
  transition: all var(--transition);
}

.vis-source-tab.selected {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--linen);
}

.vis-address-row {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}

.vis-address-row input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(27,42,63,0.18);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--navy);
  background: #fff;
  transition: border-color var(--transition);
}

.vis-address-row input:focus {
  outline: none;
  border-color: var(--amber);
}

.vis-address-btn {
  white-space: nowrap;
  padding: 14px 22px;
}

.vis-address-status {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(27,42,63,0.6);
  min-height: 22px;
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* "Upload a photo instead" escape hatch under a failed lookup */
#svUploadInstead {
  margin: 10px auto 0;
  width: fit-content;
}

.vis-address-tip {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(27,42,63,0.45);
  max-width: 480px;
  margin: 4px auto 0;
}

.vis-address-preview {
  max-width: 560px;
  margin: 6px auto 0;
  text-align: center;
}

.vis-address-preview img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(27,42,63,0.12);
}

.vis-address-formatted {
  font-size: 0.82rem;
  color: rgba(27,42,63,0.55);
  margin: 10px 0 16px;
}

.vis-address-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .vis-address-row {
    flex-direction: column;
  }
  .vis-address-btn {
    width: 100%;
  }
}

/* Address autocomplete dropdown */
.vis-address-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.vis-address-field input {
  width: 100%;
}

.vis-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(27,42,63,0.14);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(27,42,63,0.14);
  overflow: hidden;
  z-index: 50;
}

.vis-suggest__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--navy);
  background: #fff;
  border: none;
  border-bottom: 1px solid rgba(27,42,63,0.06);
  cursor: pointer;
  transition: background var(--transition);
}

.vis-suggest__item:last-child {
  border-bottom: none;
}

.vis-suggest__item:hover {
  background: rgba(232,200,122,0.12);
}
