/* =========================================
   INTERIORDOORS.CA — CORE STYLES
   ========================================= */

:root { --site-header-h: 72px; --site-header-h-mobile: 60px; }

/* :root variables — colors, fonts, spacing (SPEC section "Design direction") */
:root {
  --bg: #F6F4F0;
  --surface: #FFFFFF;
  --ink: #141414;
  --muted: #6B6B6B;
  --line: #E3DFD8;
  --accent: #B08D57;
  --accent-dark: #8C6E3F;
  --dark-section: #1A1A1A;
  --font-heading: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
  --max-width: 1240px;
  --radius: 4px;
  --transition: 0.3s ease;

  /* DESIGN.md spacing scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;
}

/* CSS reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Container (DESIGN.md: max-width 1240px; margin-inline auto; padding-inline clamp(20px, 5vw, 48px)) */
.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

/* Base typography (DESIGN.md type scale) */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: var(--s4); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; }
.section { padding: clamp(var(--s8), 10vw, var(--s10)) 0; }
.section--dark { background: var(--dark-section); color: #fff; }
.section--dark h2,
.section--dark p { color: #fff; }

/* Eyebrow (DESIGN.md: 0.75rem, uppercase, letter-spacing 0.16em, accent color, weight 600) */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: var(--s4);
}

/* Buttons (DESIGN.md: padding 14px 28px; radius 4px; font-weight 600; min-height 48px) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  min-height: 48px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent);
}
.btn-outline {
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

/* Hero override: white text + white border so it reads on the dark photo */
.hero .btn-outline {
  color: #fff;
  border-color: #fff;
}
.hero .btn-outline:hover {
  background: #fff;
  color: var(--ink);
}

/* Ensure hero h1 has no border or outline */
.hero h1 {
  border: none;
  outline: none;
}

/* Button arrow icon (SPEC: slides 4px right on hover) */
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}
.btn:hover svg {
  transform: translateX(4px);
}

/* .reveal class (DESIGN.md: opacity 0→1, translateY(24px)→0, once; stagger siblings 80ms) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 2rem 0;
  min-height: 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Foreman fix: header must match --site-header-h-mobile so the door bar sits below it */
@media (max-width: 760px) { .site-header { padding: 6px 0; min-height: 60px; } }
/* Foreman fix: header is exactly --site-header-h tall, so the door bar (sticky at that height) is never hidden under it */
.site-header { padding: 0; min-height: 0; height: var(--site-header-h); display: flex; align-items: center; }
.desktop-nav, .header-cta { white-space: nowrap; }
@media (max-width: 760px) { .site-header { padding: 0; min-height: 0; height: var(--site-header-h-mobile); } }
@media (min-width: 761px) and (max-width: 1099px) {
  .header-cta .phone-link { display: none; }
  .desktop-nav { gap: 1.25rem; }
}
.site-header.scrolled {
  background: var(--surface) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-main {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
}
.logo-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.desktop-nav { display: none; gap: 2rem; }
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.header-cta { display: none; gap: 1.2rem; align-items: center; }
.phone-link { font-weight: 500; }

/* Hamburger button */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.75rem;
  min-width: 48px;
  min-height: 48px;
  z-index: 110;
  position: relative;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
/* Hamburger X animation when menu is open */
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile full-screen menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav-link { color: var(--ink); }
.mobile-phone { color: var(--accent); font-weight: 500; margin-top: 1rem; }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url('../images/shaker-doors-bedroom-black-levers.jpg');
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.4);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 clamp(1rem, 5vw, 2rem);
}
.hero-eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 680px;
  margin: 1.5rem auto 2.5rem;
  opacity: 0.95;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 1.5rem; font-size: 0.85rem; opacity: 0.8; }

/* Page hero variant (no door animation, used on inner pages) */
.hero--page .hero-bg::after {
  background: rgba(20, 20, 20, 0.55);
}
.hero--page .hero-content h1 {
  color: #fff;
}

/* =========================================
   TRUST BAR — 2x2 mobile, 4-col desktop
   ========================================= */
.trust-bar {
  border-bottom: 1px solid var(--line);
  padding-top: var(--s8);
  padding-bottom: var(--s8);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s5);
  text-align: center;
}
.trust-item h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  margin-bottom: var(--s2);
  line-height: 1.1;
}
.trust-item p {
  font-size: 0.95rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s8);
  }
}

/* =========================================
   COMPARISON GRID (Prehung vs Slab)
   ========================================= */
.comparison-grid {
  display: grid;
  gap: var(--s6);
  grid-template-columns: 1fr;
  margin-top: var(--s6);
}
.comparison-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s6);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--transition);
}
.comparison-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}
.comparison-card h3 {
  margin-bottom: var(--s4);
  color: var(--accent);
}
.comparison-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================
   CARDS
   ========================================= */
.cards-grid {
  display: grid;
  gap: var(--s5);
  grid-template-columns: 1fr;
  margin-top: var(--s6);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s6);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--transition);
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}
.card h3 { margin-bottom: var(--s4); }
.card p { color: var(--muted); font-size: 0.95rem; }
.card-link { display: inline-block; margin-top: var(--s6); font-weight: 600; color: var(--accent); }

/* Staggered card reveal */
.stagger-card { transition-delay: calc(var(--i, 0) * 0.1s); }

/* Card icon: 28-32px, accent stroke per DESIGN.md */
.card-icon {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

/* =========================================
   STEPS
   ========================================= */
.steps {
  display: grid;
  gap: var(--s5);
  counter-reset: step;
  margin-top: var(--s6);
}
.step {
  padding: var(--s6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.step h3 { margin-bottom: var(--s3); }
.step p { color: var(--muted); font-size: 0.95rem; }

/* =========================================
   FEATURED PROJECTS / GALLERY GRID
   ========================================= */
.projects-grid {
  display: grid;
  gap: var(--s5);
  grid-template-columns: 1fr;
  margin-top: var(--s6);
}
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover img { transform: scale(1.03); }
.project-link { display: inline-block; margin-top: var(--s6); font-weight: 600; color: var(--accent); }

/* =========================================
   REVIEWS
   ========================================= */
.reviews-grid {
  display: grid;
  gap: var(--s6);
  grid-template-columns: 1fr;
  margin-top: var(--s6);
}
.review-card {
  background: var(--surface);
  padding: var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.review-card p { font-style: italic; color: var(--muted); margin-bottom: var(--s4); }
.review-card .stars { color: var(--accent); margin-bottom: var(--s3); }
.review-link { display: inline-block; margin-top: var(--s6); font-weight: 600; color: var(--accent); }

/* =========================================
   CTA BAND
   ========================================= */
.cta-band {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: clamp(var(--s8), 10vw, var(--s10)) clamp(20px, 5vw, 48px);
}
.cta-band h2 { color: #fff; margin-bottom: var(--s6); }
.cta-band p { max-width: 62ch; margin: 0 auto var(--s6); opacity: 0.9; }
.cta-band .btn-primary { background: var(--accent); }
.cta-band .btn-primary:hover { background: var(--accent-dark); }

/* =========================================
   MARQUEE (light)
   ========================================= */
.marquee {
  background: var(--line);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.marquee-content span {
  margin: 0 2rem;
  font-weight: 500;
  color: var(--muted);
}
/* Pause on hover */
.marquee:hover .marquee-content,
.marquee--dark:hover .marquee-content {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Dark marquee variant for footer */
.marquee--dark {
  background: var(--dark-section);
  border-top: 1px solid #2a2a2a;
}
.marquee--dark .marquee-content span {
  color: #888;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.marquee--dark:hover .marquee-content span {
  color: #bbb;
}

/* =========================================
   BEFORE/AFTER SLIDER
   ========================================= */
.before-after {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
  user-select: none;
  -webkit-user-select: none;
}
.before-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.before-after .after { clip-path: inset(0 50% 0 0); }
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #fff;
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 2;
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.ba-label {
  position: absolute;
  top: 1rem;
  padding: 0.4rem 1rem;
  background: rgba(20, 20, 20, 0.7);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  z-index: 3;
  pointer-events: none;
}
.ba-label--before { left: 1rem; }
.ba-label--after { right: 1rem; }

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
}
.lightbox-nav.prev { left: 2rem; }
.lightbox-nav.next { right: 2rem; }

/* =========================================
   FAQ
   ========================================= */
.faq-item { border-bottom: 1px solid var(--line); padding: var(--s5) 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: var(--s4) 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: var(--s4);
  color: var(--muted);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin 0.4s ease;
}
.faq-item[open] p { max-height: 300px; margin-top: var(--s4); }

/* =========================================
   CONTACT FORM
   ========================================= */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--surface);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group small { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.85rem; }
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #d32f2f;
}
.form-group .error-msg {
  display: none;
  color: #d32f2f;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}
.form-group.error .error-msg {
  display: block;
}
/* Shown instead of the submit button while no form key is set (js/site-config.js) */
.form-fallback {
  margin-top: 0.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
}
.form-fallback p { margin: 0 0 1rem; font-weight: 500; font-size: 1.05rem; }
.form-fallback-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.form-fallback-btns .btn { flex: 1 1 200px; justify-content: center; }
.form-fallback-call { background: var(--accent); color: #fff; }
.form-fallback-call:hover { background: var(--accent-dark); }
.form-fallback-wa { background: #25D366; color: #fff; }
.form-fallback-wa:hover { background: #1ebe5b; }
.form-success {
  display: none;
  padding: 2rem;
  background: #e8f5e9;
  border: 1px solid #4caf50;
  border-radius: var(--radius);
  text-align: center;
}
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { color: var(--muted); }
.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
/* =========================================
   CONTACT CARDS
   ========================================= */
.contact-cards-grid {
  display: grid;
  gap: var(--s5);
  grid-template-columns: 1fr;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s6);
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.contact-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.contact-card p {
  color: var(--muted);
  margin-bottom: 1rem;
}
.contact-card a {
  color: var(--accent);
  font-weight: 600;
}
.contact-card a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .contact-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================
   FAQ LIST
   ========================================= */
.faq-list {
  margin-top: 2rem;
}

/* =========================================
   FOOTER (dark section)
   ========================================= */
.site-footer {
  background: var(--dark-section);
  color: #ccc;
  padding: clamp(4rem, 8vw, 6rem) 0 0;
  margin-top: auto;
}
.footer-inner {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 3rem;
}
.footer-inner > * { min-width: 0; }
.footer-brand .logo-main { color: #fff; }
.footer-brand .logo-sub { color: #888; }
.footer-brand p { margin-top: 1.2rem; font-size: 0.95rem; color: #888; line-height: 1.7; max-width: 360px; }
.footer-contact h4,
.footer-nav h4,
.footer-areas h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.footer-contact a {
  display: block;
  margin-bottom: 0.7rem;
  color: #aaa;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--accent); }
.footer-contact span {
  display: block;
  color: #888;
  font-size: 0.95rem;
  margin-top: 0.3rem;
}
.footer-nav a {
  display: block;
  margin-bottom: 0.7rem;
  color: #aaa;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--accent); }
.footer-areas {
  grid-column: 1 / -1;
  border-top: 1px solid #2a2a2a;
  padding-top: 1.5rem;
  margin-top: 1rem;
}
.footer-areas .marquee {
  background: transparent;
  padding: 0;
  border-top: none;
}
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #555;
}

/* =========================================
   WHATSAPP FAB (floating, mobile)
   ========================================= */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 90;
  transition: transform var(--transition);
}
.whatsapp-fab:hover { transform: scale(1.05); }

/* =========================================
   REDUCED MOTION
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  /* Disable all transitions and animations globally */
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  /* Stop marquee scroll */
  .marquee-content {
    animation: none;
  }

  /* Ensure reveal elements are visible (no fade-up) */
  .reveal, .card, .stagger-card, .comparison-card {
    opacity: 1;
    transform: none;
  }

  /* Mobile menu: no slide-in */
  .mobile-menu {
    transition: none;
  }
}

/* =========================================
   RESPONSIVE (mobile-first)
   ========================================= */
@media (min-width: 768px) {
  .desktop-nav { display: flex; }
  .header-cta { display: flex; }
  .hamburger { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 2fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { gap: var(--s8); }
}
/* =========================================
   INFO LIST (Timelines)
   ========================================= */
.info-list {
  list-style: none;
  margin-top: 2rem;
}
.info-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.info-list-label {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.info-list-text {
  color: var(--muted);
  font-size: 0.95rem;
}
@media (min-width: 768px) {
  .info-list-item {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
  }
}

/* =========================================
   SECTION INTRO
   ========================================= */
.section-intro {
  max-width: 62ch;
  color: var(--muted);
  margin-top: 1rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* =========================================
   WARRANTY NOTE
   ========================================= */
.warranty-note {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.warranty-icon {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.warranty-note p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.warranty-note strong {
  color: var(--ink);
}
@media (max-width: 639px) {
  .warranty-note {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 2fr; }
  .trust-grid { gap: var(--s10); }
}

/* =========================================
   CHECKLIST (Building rules, etc.)
   ========================================= */
.checklist {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.checklist-item:last-child {
  border-bottom: none;
}
.checklist-icon {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.checklist-item span {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.6;
}

/* =========================================
   GOOD TO KNOW LIST
   ========================================= */
.good-to-know-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.good-to-know-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.good-to-know-icon {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.good-to-know-item span {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .good-to-know-list {
    gap: 1.5rem;
  }
}

/* =========================================
   GALLERY FILTERS
   ========================================= */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s6);
}
.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 48px;
  line-height: 1.5;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.gallery-grid {
  display: grid;
  gap: var(--s5);
  grid-template-columns: 1fr;
  margin-top: var(--s6);
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item.hidden {
  display: none;
}
.gallery-link {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-link:hover img {
  transform: scale(1.03);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1240px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile: gallery filters scroll sideways in one row */
@media (max-width: 768px) {
  .gallery-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex: 0 0 auto;
    min-height: 48px;
  }
}

/* =========================================
   TRUST BADGES
   ========================================= */
.trust-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 1.25rem 0 0; padding: 0; }
.trust-badges li {
  border: 1px solid var(--accent); color: var(--accent);
  font: 600 12px/1 'Inter', system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 3px;
}

/* Foreman fix: door-bar jumps land below the fixed header (72px) + door bar (~150px) — SNIPPETS part D */
.door-section { scroll-margin-top: 240px; }
@media (max-width: 760px) { .door-section { scroll-margin-top: 185px; } }

/* =========================================
   WHY SECTION (dark section cards)
   ========================================= */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}
.why-card {
  padding: 2rem;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
}
.why-icon {
  display: block;
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  margin-bottom: 1rem;
}
.why-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.why-card p {
  color: #aaa;
}

/* Task 50: Tablet breakpoint (768px–1023px) — show hamburger, hide desktop nav */
@media (min-width: 768px) and (max-width: 1023px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
}

/* Foreman fix (task 48): services "Hardware that lasts" cards */
.hardware-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); margin-top: var(--s6); }
@media (min-width: 768px) { .hardware-grid { grid-template-columns: repeat(3, 1fr); } }
.hardware-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.hardware-icon { display: block; width: 32px; height: 32px; stroke: var(--accent); margin-bottom: 1rem; }

/* Foreman fix (task 49): services "What's included" check marks */
.check-icon { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--accent); margin-top: 2px; }
