/* ═══════════════════════════════════════════════════════════════════════════
   Healthy Desk - Complete Stylesheet
   "Tailor Your Own Desk" - Symbiosis between technology and nature
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── 1. DESIGN TOKENS ─── */
:root {
  /* Primary Earth Tones */
  --color-bark: #3e2723;
  --color-walnut: #5d4037;
  --color-soil: #6d4c41;
  --color-clay: #8d6e63;
  --color-sand: #d7ccc8;
  --color-linen: #efebe9;
  --color-parchment: #faf8f6;

  /* Accent - Natural Green */
  --color-moss: #4a6741;
  --color-sage: #7c9a6e;
  --color-leaf: #a8c49a;

  /* Accent - Warm Amber */
  --color-amber: #c48a3f;
  --color-honey: #e6b96e;

  /* Neutrals */
  --color-charcoal: #1a1a1a;
  --color-graphite: #4a4a4a;
  --color-stone: #7a7a7a;
  --color-cloud: #e8e8e8;
  --color-white: #ffffff;

  /* Semantic Aliases */
  --text-primary: var(--color-charcoal);
  --text-secondary: var(--color-graphite);
  --text-muted: var(--color-stone);
  --text-heading: var(--color-bark);
  --bg-page: var(--color-white);
  --bg-section-alt: var(--color-parchment);
  --bg-card: var(--color-linen);
  --bg-cta: var(--color-moss);
  --bg-cta-hover: var(--color-sage);
  --border-light: var(--color-sand);
  --border-default: var(--color-cloud);
  --accent-primary: var(--color-moss);
  --accent-secondary: var(--color-amber);

  /* Font Families */
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;

  /* Font Sizes (fluid) */
  --text-hero: clamp(2.5rem, 4vw, 4rem);
  --text-h1: clamp(2.25rem, 3.5vw, 3.5rem);
  --text-h2: clamp(1.75rem, 2.5vw, 2.5rem);
  --text-h3: clamp(1.25rem, 2vw, 2rem);
  --text-h4: clamp(1.125rem, 1.5vw, 1.5rem);
  --text-body: clamp(1rem, 1.125vw, 1.25rem);
  --text-small: clamp(0.875rem, 1vw, 1rem);
  --text-xs: 0.75rem;
  --text-button: clamp(1rem, 1.25vw, 1.5rem);

  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line Heights */
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.05em;

  /* Spacing (4-point grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-13: 3.25rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;
  --space-50: 12.5rem;

  /* Semantic Spacing */
  --page-padding: var(--space-10);
  --section-gap: clamp(5rem, 10vw, 12.5rem);
  --card-gap: var(--space-5);
  --card-text-gap: var(--space-7);
  --text-stack-gap: var(--space-2);
  --cta-gap: var(--space-10);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lifted: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-nav: 0 1px 0 rgba(0, 0, 0, 0.05);

  /* Timing */
  --ease-natural: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;
}

/* ─── 2. BASE RESET ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* ─── 3. TYPOGRAPHY ─── */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
}

h4,
h5,
h6 {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--text-heading);
}

h1 {
  font-size: var(--text-hero);
}
h2 {
  font-size: var(--text-h1);
}
h3 {
  font-size: var(--text-h2);
}
h4 {
  font-size: var(--text-h3);
}
h5 {
  font-size: var(--text-h4);
}
h6 {
  font-size: var(--text-body);
}

p {
  max-width: 65ch;
}

.lower {
  font-weight: var(--weight-semibold); /* 600 */
}

/* ─── 4. LAYOUT ─── */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

/* ─── 5. SKIP LINK ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--color-bark);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  text-decoration: none;
  transition: top var(--duration-fast) var(--ease-natural);
}

.skip-link:focus {
  top: 16px;
}

/* ─── 6. NAVIGATION ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color var(--duration-normal) var(--ease-natural), box-shadow var(--duration-normal) var(--ease-natural);
  background-color: transparent;
}

.site-header.is-scrolled {
  background-color: var(--color-white);
  box-shadow: var(--shadow-nav);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--space-4) var(--page-padding);
}

.nav-logo img {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: var(--space-8);
}

.nav-links a {
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-natural);
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.nav-cta {
  padding: var(--space-3) var(--space-6) !important;
  min-width: auto !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all var(--duration-normal) var(--ease-natural);
}

.nav-toggle span {
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-toggle span::before {
  content: "";
  top: -8px;
}

.nav-toggle span::after {
  content: "";
  top: 8px;
}

/* Mobile Nav */
@media (max-width: 1023px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-page);
    flex-direction: column;
    align-items: center;
    padding: var(--space-8);
    gap: var(--space-6);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-natural);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-cta.desktop-only {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ─── 7. BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  min-width: 10rem;
  background: var(--bg-cta);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-button);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background-color var(--duration-normal) var(--ease-natural),
    transform var(--duration-fast) var(--ease-natural);
  min-height: 2.75rem;
}

@media (min-width: 768px) {
  .btn-primary {
    padding: 1rem 2rem;
    min-width: 11rem;
    min-height: 3rem;
  }
}

@media (min-width: 1024px) {
  .btn-primary {
    padding: 1.25rem 2.5rem;
    min-width: 12.875rem;
  }
}

.btn-primary:hover {
  background: var(--bg-cta-hover);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  min-width: 10rem;
  background: var(--color-linen);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-button);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--duration-normal) var(--ease-natural);
  min-height: 2.75rem;
}

@media (min-width: 768px) {
  .btn-secondary {
    padding: 1rem 2rem;
    min-width: 11rem;
    min-height: 3rem;
  }
}

@media (min-width: 1024px) {
  .btn-secondary {
    padding: 1.25rem 2.5rem;
    min-width: 12.875rem;
  }
}

.btn-secondary:hover {
  background: var(--color-sand);
}

/* ─── 8. HERO SECTION ─── */
/* ─── 8. HERO SECTION ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  background: var(--color-linen);
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
  display: flex;
  justify-content: center; /* Center the content block horizontally */
}

.hero-content {
  max-width: 800px; /* Slightly wider for better centered visuals */
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: var(--text-stack-gap);
  color: var(--color-bark); /* Ensure readable on light backgrounds */
  text-wrap: balance;
  margin-left: auto;
  margin-right: auto;
  max-width: 20ch; /* Force two lines for better visual balance */
}

.hero p {
  font-size: var(--text-body);
  color: var(--text-secondary); /* Darker text for better contrast */
  margin-bottom: var(--cta-gap);
  font-weight: 500; /* Slightly bolder for background readability */
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
}

.lang-toggle a {
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-natural);
  text-decoration: none;
}

.lang-toggle a:hover,
.lang-toggle a.active {
  color: var(--color-bark);
}

.lang-toggle .separator {
  color: var(--border-default);
}

/* Hero Slider (WebGL) - Background Position */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.35) translateY(-12%) translateX(-1%);
}



/* ─── 9. USP / WHY NATURAL SECTION ─── */
.usp {
  background: var(--bg-section-alt);
  overflow: visible;
  min-height: 100vh;
}

.usp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  overflow: visible;
  margin-bottom: var(--space-10);
}


.usp-carousel-wrapper {
  position: relative;
  /* Clip overflow to show only one card on mobile/tablet */
  overflow: hidden;
  /* Break out of container padding on mobile/tablet */
  margin-left: calc(-1 * var(--page-padding));
  margin-right: calc(-1 * var(--page-padding));
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

@media (min-width: 1024px) {
  .usp-carousel-wrapper {
    /* Allow peek of next card on desktop */
    overflow: visible;
    /* Reset the breakout on desktop */
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

.usp-carousel {
  display: flex;
  gap: var(--space-10);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-4) 0;
}

.usp-carousel::-webkit-scrollbar {
  display: none;
}

.usp-card {
  flex: 0 0 auto;
  /* Full viewport width minus left and right padding */
  width: calc(100vw - var(--page-padding) * 2);
  scroll-snap-align: center;
}

/* Only show peek layout on desktop (1024px and above) */
@media (min-width: 1024px) {
  .usp-carousel {
    justify-content: flex-start;
  }
  
  .usp-card {
    /* ~70% of container width on desktop */
    width: calc(70vw - var(--page-padding));
    max-width: 900px;
    scroll-snap-align: start;
  }
}

@media (min-width: 1440px) {
  .usp-card {
    /* Fixed large width on big screens */
    width: 65vw;
    max-width: 1000px;
  }
}

.usp-card img {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--card-text-gap);
}

.usp-card h4 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-1);
}

.usp-card p {
  font-size: var(--text-body);
  color: var(--text-secondary);
}

.usp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-10);
  flex-wrap: wrap;
  gap: var(--space-6);
}

.usp-nav {
  display: flex;
  gap: var(--space-4);
}

.usp-nav button {
  /* Match btn-primary height on mobile, 1:1 aspect ratio */
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  background: var(--color-linen);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-natural);
}

@media (min-width: 768px) {
  .usp-nav button {
    /* Match btn-primary height on tablet */
    width: 3rem;
    height: 3rem;
  }
}

.usp-nav button:hover {
  background: var(--color-sand);
}

.usp-nav button svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .usp-nav button svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* ─── 10. FEATURED PRODUCTS SECTION ─── */
.featured h2 {
  margin-bottom: var(--space-10);
}

.featured-grid {
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .featured-grid {
    grid-template-columns: 561fr 779fr;
  }

  .featured-grid .featured-card:nth-child(3),
  .featured-grid .featured-card:nth-child(4) {
    grid-column: auto;
  }

  .featured-grid-row-2 {
    display: contents;
  }
}

.featured-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .featured-card {
    height: 363px;
  }
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-natural);
}

.featured-card:hover img {
  transform: scale(1.05);
}

.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0) 50%
  );
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
}

.featured-card h4 {
  color: var(--color-white);
  font-size: var(--text-h4);
}

/* Row 2 different widths */
@media (min-width: 1024px) {
  .featured-grid-row-2 {
    display: grid;
    grid-template-columns: 734fr 606fr;
    gap: var(--card-gap);
    grid-column: 1 / -1;
  }
}

/* ─── 11. VIDEO SECTION ─── */
.video-section {
  text-align: center;
}

.video-section .section-header {
  max-width: 592px;
  margin: 0 auto var(--cta-gap);
}

.video-section h2 {
  margin-bottom: var(--text-stack-gap);
}

.video-section p {
  color: var(--text-secondary);
  margin: 0 auto;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  aspect-ratio: 1360 / 738;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-linen);
}

/* Specific scale animation for video container */
.video-container.reveal {
  transform: scale(0.5);
  opacity: 0;
  transition:
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-container.reveal.is-visible {
  transform: scale(1);
  opacity: 1;
}

.video-container img,
.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--bg-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--duration-fast) var(--ease-natural),
    transform var(--duration-fast) var(--ease-natural);
}

@media (min-width: 768px) {
  .play-button {
    width: 128px;
    height: 128px;
  }
}

.play-button:hover {
  background: var(--bg-cta-hover);
  transform: translate(-50%, -50%) scale(1.05);
}

.play-button svg {
  width: 32px;
  height: 32px;
  color: var(--color-white);
  margin-left: 4px;
}

@media (min-width: 768px) {
  .play-button svg {
    width: 48px;
    height: 48px;
  }
}

/* ─── 12. PRODUCTS GALLERY ─── */
.gallery h2 {
  margin-bottom: var(--space-10);
}

.gallery-grid {
  /* CSS Columns Masonry */
  columns: 2;
  column-gap: var(--card-gap);
}

@media (min-width: 768px) {
  .gallery-grid {
    columns: 3;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    columns: 4;
  }
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  /* Prevent items from breaking across columns */
  break-inside: avoid;
  margin-bottom: var(--card-gap);
}

.gallery-item:last-child {
  margin-bottom: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-natural);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ─── 13. ABOUT SECTION ─── */
.about {
  background: var(--bg-section-alt);
}

.about-wrapper {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 1024px) {
  .about-wrapper {
    grid-template-columns: 592fr 619fr;
    gap: var(--space-16);
  }
}

.about-content h2 {
  margin-bottom: var(--text-stack-gap);
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: var(--cta-gap);
}

.about-image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  aspect-ratio: 619 / 763;
  object-fit: cover;
}

/* ─── 14. FAQ SECTION ─── */
.faq h2 {
  margin-bottom: var(--space-10);
}

.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  transition: color var(--duration-fast) var(--ease-natural);
}

.faq-item[open] summary h3 {
  color: var(--accent-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-left: var(--space-4);
  transition: transform 0.3s ease-out;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--text-primary);
  left: 50%;
  top: 50%;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.faq-icon::before {
  width: 2px;
  height: 16px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 16px;
  height: 2px;
  transform: translate(-50%, -50%);
}

/* Transform + to × with dramatic spin */
.faq-item[open] .faq-icon::before {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(1.1);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) scaleX(0);
  opacity: 0;
}

/* Animate content open/close using grid technique */
.faq-answer {
  display: block;
  /* Removed conflicting grid transition to let JS handle height cleanly */
}

/* .faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
} REMOVED */

.faq-answer > p {
  color: var(--text-secondary);
  padding-bottom: var(--space-6);
}

/* ─── 15. QUESTIONNAIRE SECTION ─── */
.questionnaire {
  background: var(--bg-section-alt);
  text-align: center;
}

.questionnaire h2 {
  margin-bottom: var(--text-stack-gap);
}

.questionnaire > .container > p {
  color: var(--text-secondary);
  max-width: 592px;
  margin: 0 auto var(--cta-gap);
}



/* ─── 16. FOOTER ─── */
.site-footer {
  background: var(--color-bark);
  color: var(--color-white);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  gap: space-between;
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.footer-logo img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: var(--text-small);
  color: var(--color-sand);
  margin-top: var(--space-4);
}

.footer-links h5 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer-links a {
  display: block;
  color: var(--color-sand);
  padding: var(--space-2) 0;
  transition: color var(--duration-fast) var(--ease-natural);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-contact h5 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer-contact a {
  color: var(--color-sand);
  transition: color var(--duration-fast) var(--ease-natural);
}

.footer-contact a:hover {
  color: var(--color-white);
}

.social-links {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-natural);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-small);
  color: var(--color-sand);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  color: var(--color-sand);
  transition: color var(--duration-fast) var(--ease-natural);
}

.footer-legal a:hover {
  color: var(--color-white);
}

/* ─── 17. SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--duration-slow) var(--ease-enter),
    transform var(--duration-slow) var(--ease-enter);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── 18. REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ─── 19. FOCUS VISIBLE ─── */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

/* ─── 20. SELECTION ─── */
::selection {
  background: var(--color-sage);
  color: var(--color-white);
}

/* ─── 21. MASONRY GALLERY ─── */
.masonry-grid {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-bottom: var(--space-10);
}

.gallery-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.gallery-item {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--color-linen);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--duration-slow) var(--ease-natural);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item.hidden {
  display: none;
}

/* Two columns on mobile/tablet */
@media (max-width: 1023px) {
  .gallery-column:nth-child(3) {
    display: none;
  }
}

/* Three columns on desktop */
@media (min-width: 1024px) {
  .masonry-grid {
      /* Reset display for 3rd column */
      display: flex;
      gap: var(--space-6);
  }
  
  .gallery-column {
    gap: var(--space-6);
  }

  .gallery-column:nth-child(3) {
    display: flex;
  }
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}
