/* =====================================================
   LUMALINE LIGHTING CO. — DESIGN TOKENS
   Change these variables to re-theme the entire site.
===================================================== */
:root {
  --color-bg: #0B0D10;
  --color-surface: #14171B;
  --color-surface-2: #1B1F24;
  --color-border: rgba(244, 241, 234, 0.09);
  --color-text: #F4F1EA;
  --color-text-muted: #9BA1A8;
  --color-accent: #E8A94C;
  --color-accent-soft: rgba(232, 169, 76, 0.14);
  --color-accent-dim: rgba(232, 169, 76, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --max-width: 1240px;
  --section-pad: clamp(64px, 9vw, 128px);
  --radius: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 16px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
.section-head {
  max-width: 640px;
  margin: 0 auto var(--section-pad) auto;
  text-align: center;
}
.services .section-head,
.process .section-head { margin-bottom: 72px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-solid { background: var(--color-accent); color: #14110A; }
.btn-solid:hover { background: #f0b862; transform: translateY(-1px); }
.btn-outline { border-color: var(--color-accent-dim); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-accent); background: var(--color-accent-soft); }
.btn-ghost { color: var(--color-text-muted); border-color: var(--color-border); }
.btn-ghost:hover { color: var(--color-text); border-color: var(--color-text-muted); }
.btn-full { width: 100%; padding: 15px 28px; }

.glow-divider {
  height: 1px;
  max-width: var(--max-width);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent-dim) 50%, transparent 100%);
  position: relative;
}
.glow-divider::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 120px;
  height: 3px;
  transform: translateX(-50%);
  background: var(--color-accent);
  filter: blur(6px);
  opacity: 0.7;
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 32px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img { height: 128px; width: auto; display: block; }
.logo-dot { color: var(--color-accent); }

.header-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 20px;
}
.header-social a {
  width: 20px; height: 20px;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}
.header-social a:hover { color: var(--color-accent); }
.header-social svg { width: 100%; height: 100%; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
  margin-right: 36px;
}
.nav-link {
  background: none; border: none;
  color: var(--color-text);
  font-size: 0.92rem; font-weight: 500;
  padding: 6px 0;
  position: relative;
}
.nav-link::after {
  content: ""; position: absolute;
  bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}
.nav-link:hover::after { width: 100%; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block; padding: 10px 14px;
  font-size: 0.88rem; border-radius: var(--radius);
  color: var(--color-text-muted);
}
.dropdown a:hover { background: var(--color-surface-2); color: var(--color-text); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 200px 32px 100px;
}
.hero-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; }
.house-svg { width: 100%; height: 100%; transform: scaleX(-1) translate(-150px, -18px); }
.roofline {
  stroke-dasharray: 1250;
  stroke-dashoffset: 1250;
  animation: drawRoofline 3.5s ease-in-out infinite alternate,
             pulseGlow 2s ease-in-out infinite;
}
@keyframes drawRoofline {
  0% { stroke-dashoffset: 1250; opacity: 0.3; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
.hero::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(11,13,16,0.55) 0%, rgba(11,13,16,0.25) 35%, rgba(11,13,16,0.95) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500; line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 560px; margin: 0 0 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 4px;
  left: 32px;
  z-index: 2;
  width: 20px; height: 32px;
  border: 1px solid var(--color-text-muted);
  border-radius: 12px;
}
.scroll-cue span {
  display: block; width: 3px; height: 6px;
  background: var(--color-accent); border-radius: 2px;
  margin: 6px auto 0;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { opacity: 0; }
}

.stats-strip { padding: 64px 32px 72px; }
.stats-grid {
  max-width: var(--max-width);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1;
}

.services { padding: var(--section-pad) 32px; max-width: var(--max-width); margin: 0 auto; }
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--color-border); border: 1px solid var(--color-border);
}
.service-card { background: var(--color-bg); padding: 40px 28px; transition: background 0.25s ease; }
.service-card:hover { background: var(--color-surface); }

.service-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 3.5s ease,
              margin-top 4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover .service-detail,
.service-card.in-view .service-detail {
  max-height: 420px;
  opacity: 1;
  margin-top: 20px;
}
.service-detail img { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 12px; display: block; }
.service-detail p { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; line-height: 1.6; }

.service-icon { width: 40px; height: 40px; color: var(--color-accent); margin-bottom: 24px; }
.service-icon svg { width: 100%; height: 100%; }
.service-card h2, .service-card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.15rem; margin: 0 0 12px; line-height: 1.3;
}
.service-card p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }

.process { padding: var(--section-pad) 32px 0; max-width: var(--max-width); margin: 0 auto; }
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding-bottom: var(--section-pad); }

.process-step { padding: 20px; margin: -20px; border-radius: var(--radius); transition: background 0.3s ease, transform 0.3s ease; }
.process-step:hover { background: var(--color-surface); transform: translateY(-4px); }

.step-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 3.5s ease,
              margin-top 4s cubic-bezier(0.4, 0, 0.2, 1);
}
.process-step:hover .step-detail,
.process-step.in-view .step-detail {
  max-height: 420px;
  opacity: 1;
  margin-top: 20px;
}
.step-detail img { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 12px; display: block; }
.step-detail p { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; line-height: 1.6; }

.step-number {
  display: block; font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--color-accent); margin-bottom: 20px; letter-spacing: 0.05em;
}
.process-step h2, .process-step h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; margin: 0 0 12px; }
.process-step p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0; }

/* =====================================================
   GALLERY — big, small, small, repeating pattern
===================================================== */
.gallery { padding: 32px 32px var(--section-pad); max-width: var(--max-width); margin: 0 auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.gallery-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 100%, var(--color-accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
.gallery-item:hover::before { opacity: 1; }

.gallery-caption {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
  font-family: var(--font-mono);
  position: relative;
  z-index: 1;
}
.gallery-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); }
.gallery-item:hover img { transform: scale(1.04); }

.features {
  max-width: var(--max-width); margin: 0 auto; padding: var(--section-pad) 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
}
.feature-tile { text-align: left; }

.feature-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 3.5s ease,
              margin-top 4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-tile:hover .feature-detail,
.feature-tile.in-view .feature-detail {
  max-height: 420px;
  opacity: 1;
  margin-top: 20px;
}
.feature-detail img { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 12px; display: block; }
.feature-detail p { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; line-height: 1.6; }

.feature-icon { width: 36px; height: 36px; color: var(--color-accent); margin-bottom: 20px; }
.feature-icon svg { width: 100%; height: 100%; }
.feature-tile h2, .feature-tile h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; margin: 0 0 10px; }
.feature-tile p { color: var(--color-text-muted); font-size: 0.9rem; margin: 0; }

.testimonial { padding: var(--section-pad) 32px; max-width: 780px; margin: 0 auto; text-align: center; }
.testimonial blockquote {
  margin: 48px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 400; font-style: italic; line-height: 1.5;
  color: var(--color-text);
}
.testimonial footer {
  margin-top: 24px; font-family: var(--font-mono);
  font-size: 0.78rem; font-style: normal; color: var(--color-text-muted);
}

.contact { padding: var(--section-pad) 32px; max-width: var(--max-width); margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; }
.contact-lead { color: var(--color-text-muted); margin: 20px 0 40px; max-width: 420px; }
.contact-details { display: grid; gap: 20px; margin: 0 0 32px; }
.contact-details dt {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-text-muted); margin-bottom: 4px;
}
.contact-details dd { margin: 0; font-size: 1rem; }
.contact-details a:hover { color: var(--color-accent); }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px; height: 38px; border: 1px solid var(--color-border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--color-text-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.social-links a:hover { border-color: var(--color-accent); color: var(--color-accent); }

.contact-form { background: var(--color-surface); border: 1px solid var(--color-border); padding: 40px; border-radius: var(--radius); }
.form-row { margin-bottom: 20px; }
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label { display: block; font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 8px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 12px 14px; color: var(--color-text);
  font-family: var(--font-body); font-size: 0.92rem; transition: border-color 0.2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--color-accent); }
.form-row textarea { resize: vertical; }
.form-note { margin: 14px 0 0; font-size: 0.85rem; color: var(--color-accent); min-height: 1.2em; }

.site-footer { border-top: 1px solid var(--color-border); padding: 40px 32px; }
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { font-size: 0.85rem; color: var(--color-text-muted); }
.footer-nav a:hover { color: var(--color-text); }
.footer-copy { font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-text-muted); margin: 0; }

@media (max-width: 960px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-bg); border-bottom: 1px solid var(--color-border);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 12px 32px 24px; margin: 0;
  }
  .main-nav.nav-open { display: flex; }
  .nav-link { padding: 12px 0; width: 100%; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    display: none; box-shadow: none; margin-top: 4px; width: 100%;
  }
  .has-dropdown:focus-within .dropdown,
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery { padding: 24px 12px var(--section-pad); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row--split { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 24px; }
}

/* =====================================================
   MOBILE FIXES
===================================================== */
@media (max-width: 960px) {
  .logo img { height: 84px; }
  .header-social { gap: 10px; margin-left: 6px; }
  .header-social a { width: 26px; height: 26px; }
  .house-svg { transform: scaleX(-1) translateY(-40px) scale(1.15); }
  .hero-content { max-width: 100%; }
  .hero { min-height: 85vh; padding: 160px 24px 70px; }
}

@media (max-width: 560px) {
  .header-inner { gap: 6px; }
  .logo img { height: 64px; }
  .header-social { gap: 8px; margin-left: 4px; }
  .header-social a { width: 24px; height: 24px; }
  .hero { min-height: 75vh; padding: 140px 20px 60px; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-sub { font-size: 0.95rem; }
}
/* =====================================================
   PERFORMANCE FIX — disable SVG blur filter on touch
   devices (iPad/iOS Safari struggles with animated
   feGaussianBlur, causing visible lag)
===================================================== */
@media (hover: none), (pointer: coarse) {
  .roofline {
    filter: none;
  }
}
/* =====================================================
   RESTRUCTURE — announcement bar, nav, new sections
===================================================== */
.announce { margin: -20px -32px 16px; padding: 8px 16px; text-align: center; font-size: 0.82rem; background: var(--color-accent-soft); border-bottom: 1px solid var(--color-border); }
.announce a { color: var(--color-accent); font-weight: 600; }
.main-nav { gap: 28px; margin-right: 24px; }
.nav-tel { color: var(--color-accent); font-weight: 600; }
@media (min-width: 961px) and (max-width: 1180px) { .nav-tel { display: none; } }

.hero { padding: 250px 32px 100px; }
@media (max-width: 960px) { .hero { padding: 200px 24px 70px; } }
@media (max-width: 560px) { .hero { padding: 180px 20px 60px; } .announce { font-size: 0.74rem; } }

.section-sub { margin: 12px 0 0; color: var(--color-text-muted); }

.why { padding: var(--section-pad) 32px; max-width: var(--max-width); margin: 0 auto; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why-grid > div { border-top: 2px solid var(--color-accent); padding-top: 20px; }
.why-grid h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; margin: 0 0 10px; }
.why-grid p { margin: 0; color: var(--color-text-muted); font-size: 0.92rem; }

.faq { max-width: 820px; margin: 0 auto; padding: var(--section-pad) 32px; }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-family: var(--font-display); font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-accent); font-size: 1.6rem; line-height: 1; transition: transform 0.3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--color-text-muted); max-width: 68ch; }

.areas { padding: 0 32px var(--section-pad); max-width: var(--max-width); margin: 0 auto; text-align: center; }
.areas-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.areas-list li { border: 1px solid var(--color-border); padding: 8px 18px; border-radius: 999px; font-size: 0.92rem; }
.areas-note { margin: 24px 0 0; color: var(--color-text-muted); }
.areas-note a, .page-head p a, .faq details p a { color: var(--color-accent); }
.service-card[id] { scroll-margin-top: calc(var(--header-h, 140px) + 16px); }

.footer-cols { max-width: var(--max-width); margin: 0 auto 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-cols h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; margin: 0 0 14px; }
.footer-cols li { margin-bottom: 8px; font-size: 0.9rem; color: var(--color-text-muted); }
.footer-cols li a:hover { color: var(--color-accent); }
.footer-cols .btn { margin-top: 12px; }
.footer-blurb { color: var(--color-text-muted); font-size: 0.9rem; max-width: 320px; }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social a { width: 26px; height: 26px; color: var(--color-text-muted); transition: color 0.2s ease; }
.footer-social a:hover { color: var(--color-accent); }
.footer-social svg { width: 100%; height: 100%; }
.site-footer > .footer-copy { max-width: var(--max-width); margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--color-border); }
.footer-cols .logo img { height: 84px; }

.gallery-item img { cursor: zoom-in; }
.lightbox { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(11, 13, 16, 0.94); cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius); }

@media (max-width: 960px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* =====================================================
   READABILITY — stronger contrast and larger text
===================================================== */
:root { --color-text-muted: #C4CAD1; --color-border: rgba(244, 241, 234, 0.17); }
body { font-size: 17px; }
.eyebrow { font-size: 0.82rem; }
.nav-link { font-size: 1rem; }
.nav-link.active { color: var(--color-accent); }
.dropdown a { font-size: 0.95rem; }
.hero-sub { color: #D6DBE1; }
.stat-label { font-size: 1.05rem; }
.service-card p, .feature-tile p, .process-step p, .why-grid p, .contact-lead { font-size: 1rem; }
.service-detail p, .step-detail p, .feature-detail p { font-size: 0.95rem; }
.form-row label { font-size: 0.92rem; }
.form-row input, .form-row select, .form-row textarea { font-size: 1rem; }
.footer-cols li, .footer-blurb, .footer-nav a { font-size: 0.95rem; }
.footer-copy { font-size: 0.8rem; }
.faq details p { font-size: 1.02rem; }

/* =====================================================
   MULTI-PAGE — page headers and home "explore" cards
===================================================== */
.page-head { max-width: 820px; margin: 0 auto; padding: 250px 32px 56px; text-align: center; }
.page-head h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 18px; }
.page-head p { margin: 0 auto; max-width: 60ch; color: var(--color-text-muted); font-size: 1.1rem; }
.page-head + section { padding-top: 24px; }
.explore { max-width: var(--max-width); margin: 0 auto; padding: 0 32px var(--section-pad); }
.explore .section-head { margin-bottom: 40px; }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); }
.explore-grid a { background: var(--color-bg); padding: 32px 26px; transition: background 0.25s ease; }
.explore-grid a:hover { background: var(--color-surface); }
.explore-grid h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; margin: 0 0 10px; color: var(--color-accent); }
.explore-grid p { margin: 0; color: var(--color-text-muted); }
@media (max-width: 960px) { .page-head { padding-top: 200px; } }
@media (max-width: 560px) { .page-head { padding: 180px 20px 40px; } }

/* =====================================================
   SMOOTHNESS — no layout shift, soft reveals, page fades
===================================================== */
:root { --reveal-duration: 1.1s; }

/* Detail panels always take up their space, so nothing below them jumps while you scroll.
   They fade up in place instead of growing open. */
.service-detail, .step-detail, .feature-detail { max-height: none; overflow: visible; opacity: 1; margin-top: 20px; transform: none; }
.js .service-detail, .js .step-detail, .js .feature-detail {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--reveal-duration) ease, transform var(--reveal-duration) cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js .in-view .service-detail, .js .in-view .step-detail, .js .in-view .feature-detail { opacity: 1; transform: none; }

/* Gentler hover on the process cards */
.process-step { transition: background 0.4s ease, transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1); }

/* Lightbox fades instead of snapping */
.lightbox { display: flex; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s; }
.lightbox.open { opacity: 1; visibility: visible; }

/* Seamless page-to-page navigation (supported browsers); header stays put */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@supports not (view-transition-name: none) { body { animation: pageIn 0.45s ease both; } }


/* =====================================================
   CONTACT PAGE — two-option layout + info cards
===================================================== */
[hidden] { display: none !important; }
.page-head .eyebrow { margin: 0 0 16px; font-size: 0.78rem; max-width: none; color: var(--color-accent); }

.estimate-grid { display: grid; grid-template-columns: 1.2fr 1.3fr; gap: 24px; align-items: start; margin-bottom: var(--section-pad); }
.option-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; }
.option-card h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; line-height: 1.2; margin: 0 0 14px; }
.option-card > p { color: var(--color-text-muted); margin: 0 0 28px; font-size: 0.95rem; }
.option-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-accent); margin-bottom: 14px; }

/* the form sits inside the option card, so drop its own box */
.option-card .contact-form { background: none; border: 0; padding: 0; border-radius: 0; }
.form-row .req { color: var(--color-accent); }
.form-row .opt { color: var(--color-text-muted); opacity: 0.7; }
.form-row select { appearance: none; -webkit-appearance: none; cursor: pointer;
  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' stroke='%239BA1A8' stroke-width='1.6' 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 14px center; padding-right: 38px; }
.form-row input[type="file"] { padding: 10px 12px; color: var(--color-text-muted); cursor: pointer; }
.form-row input[type="file"]::file-selector-button { margin-right: 14px; padding: 7px 14px; border: 1px solid var(--color-accent-dim); border-radius: var(--radius); background: transparent; color: var(--color-text); font-family: var(--font-body); font-size: 0.82rem; cursor: pointer; }
.form-row input[type="file"]::file-selector-button:hover { background: var(--color-accent-soft); }
.form-privacy { margin: 12px 0 0; font-size: 0.78rem; color: var(--color-text-muted); text-align: center; }

.form-success { text-align: center; padding: 32px 8px 8px; }
.form-success-icon { width: 56px; height: 56px; margin: 0 auto 20px; color: var(--color-accent); }
.form-success-icon svg { width: 100%; height: 100%; }
.form-success h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; margin: 0 0 12px; }
.form-success p { color: var(--color-text-muted); margin: 0; }
.form-success a { color: var(--color-accent); }

.contact-section-head { margin-bottom: 32px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); }
.info-card { background: var(--color-bg); padding: 32px 28px; }
.info-label { display: block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent); margin-bottom: 14px; }
.info-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; margin: 0 0 10px; }
.info-card p { color: var(--color-text-muted); font-size: 0.9rem; margin: 0 0 14px; }
.info-card > a { color: var(--color-accent); font-weight: 600; word-break: break-word; }
.info-card > a:hover { text-decoration: underline; }
.hours { margin: 0 0 14px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--color-border); font-size: 0.9rem; }
.hours dt { color: var(--color-text-muted); }
.hours dd { margin: 0; }

@media (max-width: 960px) {
  .estimate-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .option-card { padding: 28px 22px; }
}


/* =====================================================
   DESIGN WALKTHROUGH (Option 01 card + dialog)
===================================================== */

.wiz-progress { height: 3px; background: var(--color-border); border-radius: 2px; overflow: hidden; }
.wiz-progress span { display: block; height: 100%; width: 0; background: var(--color-accent); transition: width 0.35s ease; }
.wiz-count { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); margin: 10px 0 20px; }
.wiz-step h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; margin: 0 0 6px; }
.wiz-hint { color: var(--color-text-muted); font-size: 0.88rem; margin: 0 0 16px; }
.wiz-q { font-size: 0.82rem; color: var(--color-text-muted); margin: 20px 0 8px; }
.wiz-hint + .wiz-q { margin-top: 4px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-grid--3 { grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice > span { display: block; height: 100%; padding: 12px 14px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); transition: border-color 0.2s ease, background 0.2s ease; }
.choice strong { display: block; font-weight: 600; font-size: 0.9rem; }
.choice small { display: block; margin-top: 3px; font-size: 0.76rem; color: var(--color-text-muted); line-height: 1.4; }
.choice:hover > span { border-color: var(--color-text-muted); }
.choice input:checked + span { border-color: var(--color-accent); background: var(--color-accent-soft); }
.choice input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* estimate step */
.est-eyebrow { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-accent); margin: 0 0 8px; }
.est-range { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1.1; letter-spacing: -0.01em; }
.est-sub { margin: 6px 0 18px; color: var(--color-text-muted); font-size: 0.85rem; }
.est-disclaimer { padding: 14px 16px; background: var(--color-accent-soft); border: 1px solid var(--color-accent-dim); border-radius: var(--radius); font-size: 0.86rem; line-height: 1.55; }
.est-disclaimer strong { display: block; color: var(--color-accent); margin-bottom: 2px; }
.est-items { list-style: none; margin: 18px 0 0; padding: 0; }
.est-items li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: 0.9rem; }
.est-items li span:last-child { color: var(--color-text-muted); white-space: nowrap; }
.est-note { margin: 14px 0 0; font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.5; }
.est-edit { margin-top: 14px; background: none; border: 0; padding: 0; color: var(--color-text-muted); font: inherit; font-size: 0.85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.est-edit:hover { color: var(--color-text); }

.wiz-summary { margin-top: 4px; padding: 14px 16px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 0.84rem; color: var(--color-text-muted); }
.wiz-summary strong { color: var(--color-text); }
.wiz-summary div + div { margin-top: 5px; }
.wiz-error { color: #f08a7e; font-size: 0.85rem; min-height: 1.2em; margin: 14px 0 0; }
.wiz-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.wiz-actions .btn { min-width: 110px; }
.wiz-actions #wizNext, .wiz-actions #wizSubmit { margin-left: auto; }
.design-panel .form-success .btn { margin-top: 24px; }
@media (max-width: 560px) {
    .choice-grid, .choice-grid--3 { grid-template-columns: 1fr; }
  .wiz-actions .btn { min-width: 0; flex: 1; }
}


/* =====================================================
   HOME PAGE — RECENT WORK STRIP
===================================================== */
.recent { max-width: 1040px; margin: 0 auto; padding: 0 32px var(--section-pad); }
.recent-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--color-border); }
.recent-head .eyebrow { margin: 0 0 8px; }
.recent-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
.recent-link { flex: none; font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent); padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.recent-link:hover { border-bottom-color: var(--color-accent); }
.recent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.recent-item { margin: 0; }
.recent-item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--color-border); border-radius: var(--radius); cursor: zoom-in; filter: brightness(0.9) saturate(0.95); transition: filter 0.35s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease; }
.recent-item:hover img { filter: none; transform: translateY(-3px); border-color: var(--color-accent-dim); box-shadow: 0 14px 32px -16px var(--color-accent-dim); }
.js .recent-item { opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); }
.js .recent-item.in-view { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .recent { padding: 0 20px var(--section-pad); }
  .recent-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .recent-head { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .recent-item { opacity: 1; transform: none; transition: none; }
}

/* Explore now sits at the very bottom, just above the footer */
/* Home page: photos -> review -> explore sit about two lines apart */
.recent { padding-bottom: 28px; }
.testimonial--tight { padding-top: 28px; padding-bottom: 0; }
.testimonial--tight blockquote { margin-top: 28px; }
.testimonial + .explore { padding-top: 3rem; }

/* =====================================================
   OPTION 01 — inline estimator with picture choices
===================================================== */
.design-panel { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--color-border); scroll-margin-top: 150px; }
.design-panel .wiz-count { margin-top: 12px; }

/* Choices that have a picture (set in CHOICE_IMAGES in js/main.js) */
.choice > span { position: relative; }
.choice.has-img > span { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.choice-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: brightness(0.85); transition: filter 0.3s ease, transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); }
.choice.has-img:hover .choice-img, .choice.has-img input:checked + span .choice-img { filter: none; }
.choice.has-img:hover .choice-img { transform: scale(1.03); }
.choice.has-img strong { padding: 12px 14px 0; }
.choice.has-img small { padding: 0 14px 12px; }
.choice.has-img strong:last-child { padding-bottom: 12px; }
.choice.has-img > span::after { content: ""; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9' fill='none' stroke='%2314110A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 4.5l3.2 3.2L11 1'/%3E%3C/svg%3E") center / 12px no-repeat; opacity: 0; transform: scale(0.7); transition: opacity 0.2s ease, transform 0.2s ease; }
.choice.has-img input:checked + span::after { opacity: 1; transform: none; }
@media (max-width: 560px) { .option-card--design { padding: 28px 20px; } }

/* keep the picture choices readable while the two options sit side by side */
@media (min-width: 961px) and (max-width: 1180px) {
  .design-panel .choice-grid, .design-panel .choice-grid--3 { grid-template-columns: 1fr; }
}

/* Option 01 intro (check marks + start button) */
.option-card--design { padding: 48px 44px; }
.option-card--design h2 { font-size: 2rem; margin-bottom: 18px; }
.option-card--design > p { font-size: 1.02rem; line-height: 1.65; margin-bottom: 30px; }
.option-card--design .option-label { margin-bottom: 18px; }
.option-points { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 14px; }
.option-points li { position: relative; padding-left: 30px; font-size: 1rem; }
.option-points li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 12px; height: 7px; border-left: 2px solid var(--color-accent); border-bottom: 2px solid var(--color-accent); transform: rotate(-45deg); }
.option-card--design .btn-full { padding: 18px 28px; font-size: 1rem; }
.option-alt { margin: 16px 0 0 !important; font-size: 0.85rem !important; text-align: center; color: var(--color-text-muted); }
.option-alt a { color: var(--color-accent); font-weight: 600; }
.design-panel { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 960px) { .option-card--design { padding: 40px 32px; } }
@media (max-width: 560px) { .option-card--design { padding: 28px 20px; } .option-card--design h2 { font-size: 1.7rem; } }

/* Linear-feet input (Option 01, step 1) */
.ft-field { margin-bottom: 18px; }
.ft-label { display: block; font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 8px; }
.ft-input-wrap { position: relative; }
.ft-input-wrap input { width: 100%; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 14px 52px 14px 16px; color: var(--color-text); font-family: var(--font-display); font-size: 1.5rem; transition: border-color 0.2s ease; -moz-appearance: textfield; }
.ft-input-wrap input::-webkit-outer-spin-button, .ft-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ft-input-wrap input::placeholder { color: var(--color-text-muted); opacity: 0.45; }
.ft-input-wrap input:focus { outline: none; border-color: var(--color-accent); }
.ft-unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 0.85rem; color: var(--color-text-muted); pointer-events: none; }
.ft-range { width: 100%; margin: 16px 0 0; accent-color: var(--color-accent); cursor: pointer; transition: opacity 0.2s ease; }
.ft-range.is-untouched { opacity: 0.45; }
.ft-presets { margin-bottom: 4px; }
.ft-presets-label { display: block; font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 8px; }
.ft-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 999px; padding: 8px 14px; color: var(--color-text); font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.chip small { color: var(--color-text-muted); font-size: 0.74rem; margin-left: 4px; }
.chip:hover { border-color: var(--color-text-muted); }
.chip.is-active { border-color: var(--color-accent); background: var(--color-accent-soft); }

/* Placeholder photo slots on the home page (see the NEW PHOTO SLOT comments in index.html) */
.recent-item--slot { position: relative; aspect-ratio: 4 / 3; }
.recent-item--slot::before { content: ""; position: absolute; inset: 0; border: 1px dashed var(--color-border); border-radius: var(--radius); background: var(--color-surface); z-index: 0; }
.recent-item--slot::after { content: "PHOTO SLOT\A" attr(data-slot); white-space: pre-line; text-align: center; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; line-height: 1.8; color: var(--color-text-muted); z-index: 0; }
.recent-item--slot img { position: absolute; inset: 0; height: 100%; z-index: 1; }

/* Gallery placeholder slots (see the PLACEHOLDER SLOTS comment in gallery.html) */
.gallery-item--slot::after { content: "PHOTO SLOT\A" attr(data-slot); white-space: pre-line; text-align: center; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; line-height: 1.8; color: var(--color-text-muted); z-index: 0; }
@media (max-width: 560px) { .gallery-item--slot::after { font-size: 0.46rem; padding: 4px; } }

/* =====================================================
   PAGE HEADINGS — one big faded photo behind the heading (contact, solutions, how it works, FAQ)
===================================================== */
.page-head--photos { position: relative; isolation: isolate; max-width: none; padding-bottom: 56px; }
.page-head-inner { max-width: 820px; margin: 0 auto; }
/* the photo is taller than the heading area so it fills most of the screen, then fades out */
.page-head-bg { position: absolute; top: var(--header-h, 200px); left: 0; right: 0; height: max(calc(100% - var(--header-h, 200px)), calc(100vh - var(--header-h, 200px))); z-index: -1; pointer-events: none; }
.page-head-bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; opacity: 0.55;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, 0.5) 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, 0.5) 82%, transparent 100%); }
.page-head--photos h1 { text-shadow: 0 2px 28px rgba(0, 0, 0, 0.65); }
.page-head--photos .page-head-inner p:not(.eyebrow) { color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6); }
/* keep the content above the photo where it runs underneath it */
.page-head--photos + section { position: relative; z-index: 1; }
@media (max-width: 560px) { .page-head-bg { top: var(--header-h, 150px); height: max(calc(100% - var(--header-h, 150px)), calc(90vh - var(--header-h, 150px))); } }

/* Contact page keeps the original placement: photo runs from the very top, sitting lower on the page */
.page-head--photos-classic .page-head-bg { top: 0; height: max(100%, 100vh); }
.page-head--photos-classic .page-head-bg img { object-position: 50% 45%; }
@media (max-width: 560px) { .page-head--photos-classic .page-head-bg { top: 0; height: max(100%, 85vh); } }


/* =====================================================
   DEVICE COMPATIBILITY — iPhone, Android, iPad (all detected automatically by screen size and
   touch input; there is no device sniffing, the browser picks the right rules by itself)
===================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--color-bg); }
a, button, summary, label, input, select, textarea { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img, svg, video { max-width: 100%; }
.btn { min-height: 44px; }
.nav-link, .nav-cta { white-space: nowrap; }

/* Header measured by JS (--header-h): headings and the hero always start below it, whatever its height */
.hero { padding-top: calc(var(--header-h, 200px) + 48px); }
.page-head { padding-top: calc(var(--header-h, 200px) + 44px); }
.confirmation { padding-top: calc(var(--header-h, 200px) + 40px); }

/* iPad landscape and small laptops (961-1180px): compact header so the menu never wraps */
@media (min-width: 961px) and (max-width: 1180px) {
  .site-header { padding-left: 24px; padding-right: 24px; }
  .announce { margin-left: -24px; margin-right: -24px; }
  .logo img { height: 96px; }
  .main-nav { gap: 22px; margin-right: 12px; }
  .nav-link { font-size: 0.9rem; }
  .nav-cta { padding: 12px 18px; }
}
@media (min-width: 961px) and (max-width: 1100px) { .header-social { display: none; } }

/* iOS zooms the page when you tap a field smaller than 16px, so keep fields at 16px on touch screens */
@media (pointer: coarse), (max-width: 960px) {
  .form-row input, .form-row select, .form-row textarea { font-size: 16px; }
}

/* Mobile / tablet menu: fits the screen, scrolls if it is taller, page behind stays put */
html.nav-locked { overflow: hidden; }
@media (max-width: 960px) {
  .main-nav { gap: 0; margin: 0; max-height: calc(100vh - var(--header-h, 140px)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .nav-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .nav-link { min-height: 44px; display: flex; align-items: center; }
  .dropdown a { padding-top: 12px; padding-bottom: 12px; }
}
@supports (height: 100svh) {
  @media (max-width: 960px) { .main-nav { max-height: calc(100svh - var(--header-h, 140px)); } }
}

/* Bigger tap area for the small social icons (the icons look the same) */
.header-social a, .footer-social a { position: relative; }
.header-social a::after, .footer-social a::after { content: ""; position: absolute; inset: -9px; }

/* Phone/tablet browsers resize their toolbars while you scroll, so use the "small viewport" height */
@supports (height: 100svh) {
  .hero { min-height: 100svh; }
  .page-head-bg { height: max(calc(100% - var(--header-h, 200px)), calc(100svh - var(--header-h, 200px))); }
  .page-head--photos-classic .page-head-bg { height: max(100%, 100svh); }
  @media (max-width: 960px) { .hero { min-height: 85svh; } }
  @media (max-width: 560px) {
    .hero { min-height: 75svh; }
    .page-head-bg { height: max(calc(100% - var(--header-h, 150px)), calc(90svh - var(--header-h, 150px))); }
    .page-head--photos-classic .page-head-bg { height: max(100%, 85svh); }
  }
}

/* No "stuck" hover effects after tapping on touch screens */
@media (hover: none) {
  .gallery-item:hover img, .recent-item:hover img, .choice.has-img:hover .choice-img { transform: none; }
  .gallery-item:hover::before { opacity: 0; }
  .btn-solid:hover { transform: none; }
}

/* Estimator choices stay two across on phones (three for the storey row) instead of one long column */
@media (max-width: 560px) {
  .design-panel .choice-grid { grid-template-columns: 1fr 1fr; }
  .design-panel .choice-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .design-panel .choice > span { padding: 11px 10px; }
  .design-panel .choice strong { font-size: 0.85rem; }
}
@media (max-width: 359px) {
  .design-panel .choice-grid, .design-panel .choice-grid--3 { grid-template-columns: 1fr; }
}

/* Very long words (emails, addresses) wrap instead of pushing the page wider */
.info-card, .contact-details dd, .footer-cols { overflow-wrap: anywhere; }


/* =====================================================
   HEADING PHOTO — stays behind the heading only, so it never sits under the page content
   (replaces the taller full-screen version above; the contact page keeps its own placement)
===================================================== */
.page-head--photos:not(.page-head--photos-classic) .page-head-bg {
  top: var(--header-h, 200px);
  height: calc(100% - var(--header-h, 200px) + 40px);
  min-height: 0;
}
.page-head--photos:not(.page-head--photos-classic) .page-head-bg img {
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}
@media (max-width: 960px) {
  .page-head--photos:not(.page-head--photos-classic) .page-head-bg { height: calc(100% - var(--header-h, 140px) + 24px); }
  .page-head--photos:not(.page-head--photos-classic) .page-head-bg img { opacity: 0.42; }
}


/* =====================================================
   MORE BREATHING ROOM — heading photo ends well before the content, steps spaced far apart
===================================================== */
/* the photo stops at the bottom of the heading block, and the block gets extra room underneath */
.page-head--photos:not(.page-head--photos-classic) { padding-bottom: 104px; }
.page-head--photos:not(.page-head--photos-classic) .page-head-bg { height: calc(100% - var(--header-h, 200px)); }
@media (max-width: 960px) {
  .page-head--photos:not(.page-head--photos-classic) { padding-bottom: 88px; }
  .page-head--photos:not(.page-head--photos-classic) .page-head-bg { height: calc(100% - var(--header-h, 140px)); }
}

/* How it works: bigger gaps between the steps and between each step's text, picture and caption */
.process .glow-divider { margin-bottom: 80px; }
.process-steps { gap: 112px 72px; padding-bottom: calc(var(--section-pad) + 24px); }
.process-step .step-number { margin-bottom: 28px; }
.process-step h2, .process-step h3 { margin-bottom: 18px; }
.process-step p { line-height: 1.75; }
.process-step .step-detail,
.process-step:hover .step-detail,
.process-step.in-view .step-detail { margin-top: 40px; }
.step-detail img { margin-bottom: 24px; }
.step-detail p { line-height: 1.8; }
@media (max-width: 960px) {
  .process-steps { grid-template-columns: 1fr; gap: 104px; }
  .process .glow-divider { margin-bottom: 64px; }
}


/* =====================================================
   NO MORE OVERLAP — the picture + caption boxes grow to fit their content
   (they used to be capped at 420px tall, so on phones and tablets the extra text ran over the next step)
===================================================== */
.service-detail, .service-card:hover .service-detail, .service-card.in-view .service-detail,
.step-detail, .process-step:hover .step-detail, .process-step.in-view .step-detail,
.feature-detail, .feature-tile:hover .feature-detail, .feature-tile.in-view .feature-detail {
  max-height: none;
  overflow: visible;
}

/* steps on phones/tablets: a thin divider sits in the middle of the big gap so each step reads as its own block */
@media (max-width: 960px) {
  .process-step { position: relative; }
  .process-step + .process-step::before { content: ""; position: absolute; top: -32px; left: 20px; right: 20px; height: 1px; background: var(--color-border); }
}

/* no stuck "hover" box on touch screens after tapping a step or card */
@media (hover: none) {
  .process-step:hover { background: none; transform: none; }
  .service-card:hover { background: var(--color-bg); }
  .feature-tile:hover { transform: none; }
}
