/* ==========================================================================
   HazelOak Garden Rooms — stylesheet
   Sections, in order:
     1.  Reset & design tokens
     2.  Base & animation utilities
     3.  Shared section furniture
     4.  Buttons
     5.  Preloader
     6.  Navbar & mobile menu
     7.  Hero
     8.  Values
     9.  Solutions
     10. Process
     11. Winter / countdown
     12. Why us
     13. Testimonials
     14. Gallery
     15. Contact
     16. Footer
     17. Responsive overrides
     18. Reduced motion
   ========================================================================== */

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

:root {
  /* Light theme (default) — warm, natural, garden */
  --bg-primary: #f7f5ef;
  --bg-secondary: #efece2;
  --bg-card: #ffffff;
  --bg-elevated: #f3f0e7;
  --border: #e3ddd0;
  --border-hover: rgba(61, 90, 63, 0.35);

  --green: #3d5a3f;        /* deep forest — primary accent */
  --green-deep: #2b4330;
  --green-light: #6f9159;  /* sage */
  --green-glow: rgba(61, 90, 63, 0.14);
  --cedar: #b06a3c;        /* warm cedar timber — secondary accent */
  --cedar-light: #c78a5c;
  --error: #a8412a;        /* form failure text — warm red, reads on light cards */

  --text-primary: #1e281c;
  --text-body: #3a453a;
  /* muted/faint are tuned for WCAG AA (>= 4.5:1) against BOTH --bg-primary and
     --bg-secondary — don't lighten them without re-checking the contrast. */
  --text-muted: #5f665b;
  --text-faint: #656c61;

  --overlay-hero: linear-gradient(to bottom, rgba(20,26,17,0.35) 0%, rgba(20,26,17,0.42) 40%, rgba(20,26,17,0.82) 100%);
  --overlay-dark: rgba(20,26,17,0.6);
  --card-gradient: linear-gradient(150deg, var(--bg-card), var(--bg-elevated));
  --nav-scrolled: rgba(247, 245, 239, 0.9);
  --shadow-soft: 0 18px 50px -20px rgba(30, 40, 28, 0.28);
  --shadow-card: 0 24px 60px -28px rgba(30, 40, 28, 0.4);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  color-scheme: light;
}

/* Dark theme — nightfall forest */
:root[data-theme="dark"] {
  --bg-primary: #10140d;
  --bg-secondary: #161b12;
  --bg-card: #1a2016;
  --bg-elevated: #1e2519;
  --border: #2c3427;
  --border-hover: rgba(127, 160, 106, 0.35);

  --green: #7fa068;
  --green-deep: #5c7b48;
  --green-light: #9dbd82;
  --green-glow: rgba(127, 160, 106, 0.16);
  --cedar: #cd8a58;
  --cedar-light: #dda06f;
  --error: #e08a72;        /* lightened so it reads on dark cards */

  --text-primary: #f3f2ea;
  --text-body: #d9dccf;
  --text-muted: #9aa08f;
  /* AA (>= 4.5:1) against both dark backgrounds — don't darken without re-checking. */
  --text-faint: #868c78;

  --overlay-hero: linear-gradient(to bottom, rgba(8,11,6,0.4) 0%, rgba(8,11,6,0.5) 40%, rgba(8,11,6,0.9) 100%);
  --overlay-dark: rgba(8,11,6,0.72);
  --card-gradient: linear-gradient(150deg, var(--bg-secondary), var(--bg-elevated));
  --nav-scrolled: rgba(16, 20, 13, 0.92);
  --shadow-soft: 0 18px 50px -20px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* === 2. BASE & ANIMATIONS ================================================= */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.reveal {
  opacity: 0; transform: translateY(38px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === 3. SHARED SECTION FURNITURE ========================================== */
section { padding: 7rem 5%; position: relative; }

.section-header { text-align: center; margin-bottom: 4rem; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--cedar);
  margin-bottom: 1rem; display: inline-block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.3vw, 3.3rem);
  font-weight: 400; color: var(--text-primary);
  line-height: 1.14; letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--green); }
.section-sub {
  margin-top: 1.4rem; font-size: 1.05rem; line-height: 1.75;
  color: var(--text-muted); font-weight: 300;
}
.container { max-width: 1220px; margin: 0 auto; }

/* === 4. BUTTONS =========================================================== */
.btn-primary {
  background: var(--green);
  color: #f7f5ef; border: none;
  padding: 1.05rem 2.4rem;
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer;
  transition: all 0.3s ease; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem;
  border-radius: 2px;
}
.btn-primary:hover {
  background: var(--green-deep);
  box-shadow: 0 14px 34px -12px var(--green-glow), 0 0 0 1px var(--green-glow);
  transform: translateY(-2px);
}
:root[data-theme="dark"] .btn-primary { color: #10140d; }

.btn-outline {
  background: transparent;
  color: var(--text-primary); border: 1px solid var(--border-hover);
  padding: 1.05rem 2.4rem;
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer;
  transition: all 0.3s ease; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem;
  border-radius: 2px;
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-glow);
}

/* === 5. PRELOADER ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-mark {
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  color: var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
.preloader-mark i { font-size: 2.2rem; }
.preloader-mark span {
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.02em;
  color: var(--text-primary);
}
@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: translateY(2px); }
  50% { opacity: 1; transform: translateY(-2px); }
}

/* === 6. NAVBAR & MOBILE MENU ============================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.3rem 5%;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.navbar.scrolled {
  background: var(--nav-scrolled);
  backdrop-filter: blur(14px);
  padding: 0.85rem 5%;
  box-shadow: 0 1px 0 var(--border), var(--shadow-soft);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-logo { display: block; width: 215px; height: auto; }
.brand i { color: var(--green); font-size: 1.35rem; }
.brand-name {
  font-family: var(--font-display); font-size: 1.32rem; font-weight: 500;
  color: var(--text-primary); line-height: 1; display: flex; flex-direction: column;
}
.brand-sub {
  font-family: var(--font-body); font-size: 0.56rem; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--cedar);
  margin-top: 0.28rem;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  text-decoration: none; color: var(--text-body);
  font-size: 0.86rem; font-weight: 400; letter-spacing: 0.02em;
  position: relative; transition: color 0.25s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--green); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 0.8rem; }
.icon-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text-body);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
}
.icon-btn:hover { color: var(--green); border-color: var(--green); }
.nav-cta {
  background: var(--green); color: #f7f5ef; text-decoration: none;
  padding: 0.7rem 1.4rem; border-radius: 2px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 0.25s ease;
}
:root[data-theme="dark"] .nav-cta { color: #10140d; }
.nav-cta:hover { background: var(--green-deep); transform: translateY(-1px); }
.nav-burger { display: none; }

/* Transparent navbar over the dark hero: force light text/icons for contrast
   (applies at the top of the page, before .scrolled kicks in — works in both themes) */
.navbar:not(.scrolled) .brand-name { color: #fff; }
.navbar:not(.scrolled) .brand-sub { color: #e6d3ba; }
.navbar:not(.scrolled) .brand i { color: #bcd6a4; }
.navbar:not(.scrolled) .brand-logo { filter: brightness(0) invert(1); }
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.88); }
.navbar:not(.scrolled) .nav-links a:hover { color: #fff; }
.navbar:not(.scrolled) .icon-btn { color: #fff; border-color: rgba(255,255,255,0.4); }
.navbar:not(.scrolled) .icon-btn:hover { color: #bcd6a4; border-color: #bcd6a4; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--bg-primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.8rem;
  /* visibility keeps the closed menu out of the tab order; delaying it on close
     lets the slide-out animation finish before the menu disappears. */
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), visibility 0s linear 0.45s;
}
.mobile-menu.active {
  visibility: visible;
  transform: translateX(0);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), visibility 0s;
}
.mobile-close {
  position: absolute; top: 1.6rem; right: 6%;
  background: transparent; border: none; color: var(--text-primary);
  font-size: 1.8rem; cursor: pointer;
}
.mobile-link {
  font-family: var(--font-display); font-size: 1.7rem; color: var(--text-primary);
  text-decoration: none; transition: color 0.2s ease;
}
.mobile-link:hover { color: var(--green); }
.mobile-actions { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  /* Keep the WhatsApp CTA as the primary mobile action — just make it compact */
  .nav-cta {
    display: inline-flex;
    padding: 0.55rem 0.95rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }
  /* Navbar theme toggle is redundant on mobile (also inside the mobile menu) — hide to free space */
  #themeToggle { display: none; }
  .nav-actions { gap: 0.55rem; }
}
@media (max-width: 380px) {
  /* Very narrow phones: drop the CTA label to just the WhatsApp icon */
  .nav-cta .cta-label { display: none; }
  .nav-cta { padding: 0.55rem 0.75rem; }
}
@media (min-width: 941px) { .mobile-menu { display: none; } }

/* === 7. HERO ============================================================== */
.hero {
  position: relative; height: 100vh; min-height: 700px;
  display: flex; align-items: center;
  overflow: hidden; padding: 0 5%;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../assets/hero-garden-room.webp') center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 18s ease-out forwards;
}
.hero-overlay { position: absolute; inset: 0; background: var(--overlay-hero); }
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1320px; width: 100%; height: 100%;
  margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-content { max-width: 760px; }
.hero-tag {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: #e6d3ba;
  margin-bottom: 1.6rem;
  opacity: 0; animation: heroUp 1s ease 0.4s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6.4vw, 5.4rem);
  font-weight: 400; line-height: 1.06; color: #fff;
  margin-bottom: 1.5rem; letter-spacing: -0.015em;
  opacity: 0; animation: heroUp 1s ease 0.6s forwards;
}
.hero-title em { font-style: italic; color: #bcd6a4; }
.hero-sub {
  font-size: 1.12rem; font-weight: 300; line-height: 1.7;
  color: rgba(240,240,232,0.9);
  max-width: 560px; margin-bottom: 2.4rem;
  opacity: 0; animation: heroUp 1s ease 0.8s forwards;
}
.hero-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: heroUp 1s ease 1s forwards;
}
.hero-ctas .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero-ctas .btn-outline:hover { color: #bcd6a4; border-color: #bcd6a4; background: rgba(255,255,255,0.06); }
.hero-trust {
  display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.6rem;
  opacity: 0; animation: heroUp 1s ease 1.2s forwards;
}
.hero-trust span {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.82rem; color: rgba(240,240,232,0.82); font-weight: 300;
}
.hero-trust i { color: #bcd6a4; }
.hero-scroll {
  position: absolute; bottom: 2.4rem; left: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.7); font-size: 0.62rem; letter-spacing: 0.22em;
  text-transform: uppercase; text-decoration: none;
  animation: heroScroll 2s ease-in-out infinite;
}
.hero-scroll i { font-size: 0.8rem; color: #bcd6a4; }

@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes heroScroll { 0%,100% { transform: translateY(0);} 50% { transform: translateY(8px);} }

@media (max-width: 768px) {
  .hero { min-height: 620px; }
  .hero-trust { gap: 1.2rem; }
}

/* === 8. VALUES ============================================================ */
.values { background: var(--bg-secondary); }
.value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
}
.value-card {
  background: var(--card-gradient);
  border: 1px solid var(--border);
  border-radius: 6px; padding: 2.6rem 2.2rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-hover);
}
.value-icon {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-glow); color: var(--green);
  font-size: 1.4rem; margin-bottom: 1.5rem;
}
.value-card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.4rem; color: var(--text-primary); margin-bottom: 0.9rem;
}
.value-card p { font-size: 0.96rem; line-height: 1.72; color: var(--text-muted); font-weight: 300; }

/* === 9. SOLUTIONS ========================================================= */
.solutions { background: var(--bg-primary); }
.solutions-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.solution-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.solution-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); border-color: var(--border-hover); }
.solution-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.solution-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.solution-card:hover .solution-media img { transform: scale(1.07); }
.solution-num {
  position: absolute; top: 0.9rem; left: 0.9rem;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 500;
  color: #fff; background: rgba(43,67,48,0.72); backdrop-filter: blur(4px);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.25);
}
.solution-body { padding: 1.7rem 1.5rem 2rem; }
.solution-body h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.32rem;
  color: var(--text-primary); margin-bottom: 0.7rem;
}
.solution-body p { font-size: 0.92rem; line-height: 1.68; color: var(--text-muted); font-weight: 300; }
.solutions-cta { text-align: center; margin-top: 3.4rem; }

/* === 10. PROCESS ========================================================== */
.process { background: var(--bg-secondary); }
.process-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
.process-media { position: relative; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-card); }
.process-media img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; display: block; }
.process-badge {
  position: absolute; bottom: 1.2rem; left: 1.2rem; right: 1.2rem;
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--nav-scrolled); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.2rem;
}
.process-badge i { color: var(--cedar); font-size: 1.4rem; }
.process-badge strong { display: block; color: var(--text-primary); font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; }
.process-badge span { font-size: 0.8rem; color: var(--text-muted); }
.process-header { text-align: left; margin-bottom: 2.6rem; margin-left: 0; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 1.8rem; }
.step { display: flex; gap: 1.4rem; }
.step-num {
  flex-shrink: 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 500;
  color: var(--green); border: 1.5px solid var(--border-hover);
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
}
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.28rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.step p { font-size: 0.96rem; line-height: 1.7; color: var(--text-muted); font-weight: 300; }

/* === 11. WINTER / COUNTDOWN =============================================== */
.winter-section {
  position: relative; padding: 8rem 5%;
  background: url('../assets/winter-garden-room.webp') center/cover no-repeat fixed;
  text-align: center;
}
.winter-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,18,10,0.62), rgba(12,18,10,0.78)); }
.winter-inner { position: relative; z-index: 2; max-width: 760px; }
.winter-tag { color: #bcd6a4; }
.winter-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.2rem); color: #fff; line-height: 1.15;
  margin-bottom: 1.1rem;
}
.winter-sub { color: rgba(240,240,232,0.88); font-size: 1.05rem; line-height: 1.75; font-weight: 300; margin-bottom: 2.6rem; }
.countdown { display: flex; align-items: flex-start; justify-content: center; gap: 0.9rem; margin-bottom: 2.8rem; }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; min-width: 74px; }
.cd-num {
  font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 500;
  color: #fff; background: rgba(255,255,255,0.08); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 8px;
  padding: 0.6rem 0.9rem; min-width: 74px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(240,240,232,0.75); }
.cd-sep { font-family: var(--font-display); font-size: 2rem; color: rgba(255,255,255,0.5); padding-top: 0.5rem; }
@media (max-width: 620px) {
  .cd-sep { display: none; }
  .countdown { gap: 0.6rem; }
  .cd-unit { min-width: 62px; }
  .cd-num { min-width: 62px; font-size: 1.7rem; padding: 0.5rem 0.6rem; }
}

/* === 12. WHY US =========================================================== */
/* bg-primary keeps the light/dark section rhythm alternating now that the
   Partners section no longer sits between this and Testimonials. */
.whyus { background: var(--bg-primary); }
.why-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 4rem; align-items: center; }
.why-media { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-card); }
.why-media img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; display: block; }
.why-title { margin-bottom: 1.3rem; }
.why-text { font-size: 1rem; line-height: 1.8; color: var(--text-body); font-weight: 300; margin-bottom: 2.2rem; }
.accreds { display: flex; flex-direction: column; gap: 1.3rem; }
.accred { display: flex; gap: 1rem; align-items: flex-start; }
.accred i {
  color: var(--green); font-size: 1.1rem; flex-shrink: 0;
  background: var(--green-glow); width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.accred strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.06rem; color: var(--text-primary); margin-bottom: 0.15rem; }
.accred span { font-size: 0.9rem; color: var(--text-muted); font-weight: 300; }
.accred.trust-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}

/* === 13. TESTIMONIALS ===================================================== */
.testimonials { background: var(--bg-secondary); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.t-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 2.2rem 2rem;
  display: flex; flex-direction: column; gap: 1.1rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.t-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.t-stars { color: var(--cedar); font-size: 0.82rem; display: flex; gap: 0.2rem; }
.t-card blockquote {
  font-size: 1rem; line-height: 1.72; color: var(--text-body);
  font-weight: 300; font-style: italic; flex-grow: 1;
  font-family: var(--font-display);
}
.t-card figcaption { display: flex; align-items: center; gap: 0.85rem; padding-top: 0.6rem; border-top: 1px solid var(--border); }
.t-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
}
:root[data-theme="dark"] .t-avatar { color: #10140d; }
.t-meta { display: flex; flex-direction: column; }
.t-meta strong { color: var(--text-primary); font-weight: 500; font-size: 0.96rem; }
.t-meta small { color: var(--text-faint); font-size: 0.8rem; }

/* === 14. GALLERY ========================================================== */
.gallery { background: var(--bg-primary); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.gallery-grid + .gallery-grid { margin-top: 1.5rem; }
.portrait-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.build-progress { background: var(--bg-secondary); }
.g-item {
  position: relative; overflow: hidden; border-radius: 6px;
  border: 0;
  margin: 0;
}
.g-item.wide { grid-column: auto; }
.g-item img { display: block; width: 100%; height: auto; }
.g-item:hover img { transform: none; }
.g-overlay {
  display: none;
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-item.wide { grid-column: auto; }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .navbar .brand-logo { width: 180px; }
}

/* === 15. CONTACT ========================================================== */
.contact { background: var(--bg-secondary); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2.6rem; }
.contact-info { display: flex; flex-direction: column; gap: 0.9rem; }
.info-row {
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 1.1rem 1.3rem; border-radius: 8px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
a.info-row:hover { border-color: var(--green); transform: translateX(3px); }
.info-ico {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: var(--green-glow); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
}
.info-row > span:last-child { display: flex; flex-direction: column; color: var(--text-body); font-size: 0.95rem; }
.info-row strong { font-family: var(--font-display); font-weight: 500; color: var(--text-primary); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.2rem; }

.whatsapp-cta {
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  background: var(--green); color: #f7f5ef; padding: 1.15rem 1.3rem; border-radius: 8px;
  margin-top: 0.4rem; transition: background 0.25s ease, transform 0.25s ease;
}
:root[data-theme="dark"] .whatsapp-cta { color: #10140d; }
.whatsapp-cta:hover { background: var(--green-deep); transform: translateY(-2px); }
.whatsapp-cta i:first-child { font-size: 1.6rem; }
.whatsapp-cta span { display: flex; flex-direction: column; flex-grow: 1; font-size: 0.85rem; }
.whatsapp-cta strong { font-family: var(--font-display); font-weight: 500; font-size: 1rem; }
.whatsapp-cta i:last-child { font-size: 0.85rem; opacity: 0.85; }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 2.2rem; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.82rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.02em; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg-primary); color: var(--text-primary);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow);
}
.contact-form textarea { resize: vertical; }
.form-submit { justify-content: center; margin-top: 0.4rem; }
.form-note { text-align: center; font-size: 0.82rem; color: var(--text-faint); }

/* Netlify spam honeypot — must stay in the DOM but never be seen or focusable. */
.hidden-field { display: none; }

/* Submit result message. Stays rendered even while empty — pulling a live
   region out of the accessibility tree and re-adding it as its text lands
   makes some screen readers miss the announcement. The negative margin just
   cancels the form's flex gap so the idle element takes up no space. */
.form-status { text-align: center; font-size: 0.88rem; line-height: 1.55; }
.form-status:empty { margin-top: -1.1rem; }
.form-status.is-success { color: var(--green); }
.form-status.is-error { color: var(--error); }

/* === 16. FOOTER =========================================================== */
.footer { background: var(--bg-primary); border-top: 1px solid var(--border); padding: 4.5rem 5% 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer .brand { margin-bottom: 1.2rem; }
.footer .brand-logo { width: 235px; }
.footer .brand i { color: var(--green); font-size: 1.35rem; }
.footer .brand-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--text-primary); display: flex; flex-direction: column; line-height: 1; }
.footer .brand-sub { font-family: var(--font-body); font-size: 0.55rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--cedar); margin-top: 0.28rem; }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; color: var(--text-muted); font-weight: 300; max-width: 340px; margin-bottom: 1.4rem; }
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-body); text-decoration: none; transition: all 0.25s ease;
}
.footer-social a:hover { color: var(--green); border-color: var(--green); transform: translateY(-2px); }
.footer-col h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--text-primary); margin-bottom: 1.1rem; }
.footer-col a, .footer-col span { display: block; font-size: 0.9rem; color: var(--text-muted); text-decoration: none; margin-bottom: 0.7rem; font-weight: 300; line-height: 1.5; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.8rem; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-faint);
}

/* === 17. RESPONSIVE OVERRIDES ============================================= */
@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: 1fr 1fr !important; }
  .why-grid { grid-template-columns: 1fr !important; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .split { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  section { padding: 5rem 6%; }
  .solutions-grid { grid-template-columns: 1fr !important; }
  .value-grid { grid-template-columns: 1fr !important; }
  .testimonials-grid { grid-template-columns: 1fr !important; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr !important; gap: 2.2rem !important; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .form-row { grid-template-columns: 1fr !important; }
  .winter-section { background-attachment: scroll !important; }
}

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

/* === 18. REDUCED MOTION =================================================== */
/* Honour the visitor's reduced-motion preference: no smooth scrolling, and all
   animations/transitions collapse to (effectively) instant. .reveal is forced
   fully visible so content never sits waiting at opacity 0. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
