/* ============================================================
   Palmar — stylesheet v1 (2026-04-21)
   - Mobile-first
   - CSS custom properties / design tokens
   - No Bootstrap, no jQuery dependency
   ============================================================ */

/* Self-hosted web fonts — subset: latin + latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/self/v2-fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/self/v2-fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/self/v2-fraunces-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/self/v2-fraunces-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/self/v2-inter-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/self/v2-inter-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design tokens */
:root {
  --color-forest-900: #0f2624;
  --color-forest-800: #143330;
  --color-forest-700: #1a3a3a;
  --color-forest-600: #2d6b65;
  --color-forest-500: #3d8a82;
  --color-sand-500: #c9a87d;
  --color-sand-400: #d9b98e;
  --color-cream: #faf8f3;
  --color-cream-dark: #efeae0;
  --color-ink: #1a1a1a;
  --color-ink-soft: #3a3a3a;
  --color-muted: #5a5a5a;
  --color-border: #e4ddd0;
  --color-white: #ffffff;

  --font-serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: 4rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 38, 36, 0.05);
  --shadow-md: 0 4px 20px rgba(15, 38, 36, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 38, 36, 0.15);

  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);

  --header-h: 72px;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-ink-soft);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, picture, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-ink);
  margin: 0 0 var(--space-5);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.625rem); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--space-5); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-forest-600);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}

a:hover { color: var(--color-forest-800); }

:focus-visible {
  outline: 3px solid var(--color-sand-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul, ol { padding-left: 1.25em; }

strong { color: var(--color-ink); font-weight: 600; }
.section--dark strong, .banner:not(.banner--light) strong,
.hero strong, .site-footer strong { color: inherit; }

/* Utilities */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-forest-800);
  color: var(--color-white);
  padding: 12px 20px;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { top: 0; color: var(--color-white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-sand-500);
  color: var(--color-forest-900);
  border-color: var(--color-sand-500);
}
.btn-primary:hover { background: var(--color-sand-400); border-color: var(--color-sand-400); color: var(--color-forest-900); }

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-secondary:hover { background: var(--color-white); color: var(--color-forest-900); }

.btn-dark {
  background: var(--color-forest-700);
  color: var(--color-white);
  border-color: var(--color-forest-700);
}
.btn-dark:hover { background: var(--color-forest-800); border-color: var(--color-forest-800); color: var(--color-white); }

.btn-outline-dark {
  background: transparent;
  color: var(--color-forest-800);
  border-color: var(--color-forest-800);
}
.btn-outline-dark:hover { background: var(--color-forest-800); color: var(--color-white); }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 38, 36, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 250ms ease;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
}
.site-header__logo img {
  height: 38px;
  width: auto;
}
.site-header__logo:focus-visible { outline-offset: 6px; }

.site-nav {
  display: flex;
  align-items: center;
}
.site-nav__list {
  list-style: none;
  display: flex;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
}
.site-nav__list a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
  position: relative;
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-sand-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.site-nav__list a:hover::after, .site-nav__list a[aria-current="true"]::after {
  transform: scaleX(1);
}
.site-nav__list a:hover { color: var(--color-white); }

.site-nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  color: var(--color-white);
}
.site-nav__toggle svg { width: 22px; height: 22px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  padding: calc(var(--header-h) + var(--space-7)) 0 var(--space-9);
  background: var(--color-forest-900);
  isolation: isolate;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,38,36,0.55) 0%, rgba(15,38,36,0.45) 50%, rgba(15,38,36,0.85) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-sand-500);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.hero__title {
  color: var(--color-white);
  font-weight: 400;
  margin-bottom: var(--space-5);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.hero__title em {
  font-style: italic;
  color: var(--color-sand-500);
  font-weight: 300;
}

.hero__lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.88);
  max-width: 58ch;
  margin-bottom: var(--space-6);
  line-height: 1.55;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__logo {
  justify-self: center;
  max-width: 280px;
  opacity: 0.92;
}

/* Stats bar */
.stats {
  background: var(--color-forest-800);
  color: var(--color-white);
  padding: var(--space-7) 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  text-align: center;
  margin: 0;
}
.stats__item {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  position: relative;
  min-height: 0;
}
/* Divider lines: right border on non-last-col, bottom border on non-last-row */
.stats__item:nth-child(2n+1)::after {
  content: "";
  position: absolute;
  top: 15%; right: 0; bottom: 15%;
  width: 1px;
  background: rgba(255,255,255,0.14);
}
.stats__item:not(:nth-last-child(-n+2))::before {
  content: "";
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: rgba(255,255,255,0.14);
}
.stats__value {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--color-sand-500);
  line-height: 1.05;
  margin: 0;
}
.stats__label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

/* Sections — scroll-padding-top on <html> handles the header offset; no extra scroll-margin here */
.section {
  padding-block: var(--space-6) var(--space-9);
}
.section--dark {
  background: var(--color-forest-700);
  color: rgba(255,255,255,0.92);
}
.section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--cream { background: var(--color-cream); }
.section--cream-dark { background: var(--color-cream-dark); }

.section__header {
  max-width: 720px;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.section__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-forest-600);
  margin-bottom: var(--space-3);
  font-weight: 600;
}
.section--dark .section__eyebrow { color: var(--color-sand-500); }
.section__header h2 { margin-bottom: var(--space-4); }
.section__intro { font-size: var(--fs-md); color: var(--color-muted); }
.section--dark .section__intro { color: rgba(255,255,255,0.8); }

/* Gallery (bouchot / piquet tiles) */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--color-forest-900);
}
.gallery--4 { grid-template-columns: repeat(2, 1fr); }
.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* Feature cards (icon + text) */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.feature {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-5);
  align-items: start;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.section--dark .feature {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
}
.section--dark .feature h3 { color: var(--color-white); }
.feature__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-forest-600);
  background: var(--color-cream-dark);
  border-radius: var(--radius-md);
}
.section--dark .feature__icon {
  color: var(--color-sand-500);
  background: rgba(201, 168, 125, 0.15);
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 {
  margin-bottom: var(--space-2);
  font-size: var(--fs-lg);
}
.feature p { margin-bottom: 0; color: inherit; }

/* Info banner */
.banner {
  background: var(--color-forest-700);
  color: var(--color-white);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}
.banner--light {
  background: var(--color-cream-dark);
  color: var(--color-ink);
  border-left: 4px solid var(--color-forest-600);
  text-align: left;
}
.banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

/* Process steps */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  counter-reset: step;
}
.process__step {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  position: relative;
  counter-increment: step;
}
.process__step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-sand-500);
  opacity: 0.6;
  line-height: 1;
}
.process__step h3 {
  margin-bottom: var(--space-3);
  padding-right: 3rem;
}
.process__step p { margin-bottom: 0; }

/* FAQ — full section width, same as other content blocks */
.faq {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq details {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 200ms ease;
}
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  padding: var(--space-5);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--color-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 12px; height: 12px;
  border-right: 2px solid var(--color-forest-600);
  border-bottom: 2px solid var(--color-forest-600);
  transform: rotate(45deg);
  transition: transform 200ms ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { background: var(--color-cream); }
.faq details > div {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-info li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-3);
  align-items: start;
}
.contact-info svg {
  width: 20px; height: 20px;
  color: var(--color-forest-600);
  margin-top: 4px;
}
.contact-info a { color: var(--color-ink); }
.contact-info a:hover { color: var(--color-forest-600); }

.map-wrap {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-cream-dark);
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Form — full section width, same as other content blocks */
.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: 0;
}
.contact-form__field { margin-bottom: var(--space-4); }
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-ink);
  font-size: var(--fs-sm);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  min-height: 48px;
}
.contact-form textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-forest-600);
  box-shadow: 0 0 0 3px rgba(45, 107, 101, 0.15);
}
.contact-form .form-error {
  color: #a02419;
  font-size: var(--fs-sm);
  margin-top: var(--space-2);
}
.contact-form .form-help {
  font-size: var(--fs-xs);
  color: var(--color-muted);
  margin-top: var(--space-4);
  line-height: 1.5;
}
.contact-form__honeypot {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; opacity: 0;
}

.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-weight: 500;
}
.alert--success {
  background: #e6f4ea;
  color: #1e5631;
  border-left: 4px solid #34a853;
}
.alert--error {
  background: #fce8e6;
  color: #842029;
  border-left: 4px solid #ea4335;
}

/* Footer */
.site-footer {
  background: var(--color-forest-900);
  color: rgba(255,255,255,0.78);
  padding: var(--space-8) 0 var(--space-5);
  font-size: var(--fs-sm);
}
.site-footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.site-footer a:hover { color: var(--color-sand-500); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer__brand img {
  height: 48px;
  width: auto;
  margin-bottom: var(--space-4);
}
.site-footer__tagline {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}
.site-footer h3 {
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--space-2); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-4);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.55);
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  width: 48px; height: 48px;
  background: var(--color-forest-700);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 200ms ease, transform 200ms ease, background 150ms ease;
  z-index: 50;
  box-shadow: var(--shadow-md);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--color-forest-800); color: var(--color-white); }
.back-to-top svg { width: 20px; height: 20px; }

/* Reveal = no-op now (content always visible for robustness/SEO/SSR) */
.reveal { /* kept as a hook for future enhancements */ }

/* Legal pages */
.legal {
  padding: calc(var(--header-h) + var(--space-8)) 0 var(--space-9);
  background: var(--color-cream);
}
.legal h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: var(--space-6);
}
.legal h2 {
  font-size: var(--fs-xl);
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
}
.legal h3 {
  font-size: var(--fs-lg);
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
}
.legal > .container { max-width: 820px; }

/* =====================================================
   Breakpoints — progressive enhancement
   ===================================================== */

@media (min-width: 640px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  /* Reset mobile dividers — higher specificity to win over mobile :nth-child rules */
  .stats .stats__item:nth-child(2n+1)::after,
  .stats .stats__item:not(:nth-last-child(-n+2))::before {
    content: none;
  }
  /* Re-apply only vertical dividers between the 4 columns */
  .stats .stats__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15%; right: 0; bottom: 15%;
    left: auto;
    width: 1px;
    height: auto;
    background: rgba(255,255,255,0.14);
  }
  .gallery--4 { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.4fr; }
}

@media (min-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(3, 1fr); }
  .hero__grid {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-8);
  }
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  :root { --header-h: 80px; }
  .features { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-7) var(--space-10); }
}

/* Mobile navigation */
@media (max-width: 859px) {
  .site-nav__toggle { display: inline-flex; }
  .site-nav__list {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--header-h));
    background: #0f2624;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: var(--space-4) 0;
    margin: 0;
    font-size: var(--fs-lg);
    transform: translateX(100%);
    transition: transform 300ms ease;
    overflow-y: auto;
    box-shadow: -8px 0 24px rgba(0,0,0,0.4);
    z-index: 99;
  }
  .site-nav__list.is-open { transform: translateX(0); }
  .site-nav__list li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .site-nav__list li:last-child { border-bottom: 0; }
  .site-nav__list a {
    display: block;
    padding: var(--space-4) var(--container-pad);
    font-size: var(--fs-md);
    color: var(--color-white);
    text-align: left;
  }
  .site-nav__list a::after { display: none; }
  .site-nav__list a[aria-current="true"] {
    background: rgba(201, 168, 125, 0.15);
    color: var(--color-sand-500);
  }
  body.nav-open { overflow: hidden; }

  /* Mobile hero tweaks */
  .hero { padding-bottom: var(--space-7); min-height: auto; }
  .hero__grid { justify-items: center; text-align: left; }
  .hero__logo {
    max-width: 220px;
    margin: var(--space-5) auto 0;
    display: block;
    justify-self: center;
  }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { width: 100%; }

  /* Mobile stats: taller items for breathing room */
  .stats { padding: var(--space-5) 0; }
  .stats__item { padding: var(--space-4) var(--space-2); }
  .stats__value { font-size: 1.75rem; }
  .stats__label { font-size: 0.7rem; letter-spacing: 0.1em; }

  /* Mobile section spacing */
  .section { padding-block: var(--space-5) var(--space-7); }
  .section__header { margin-bottom: var(--space-5); }

  /* Mobile features: more compact */
  .feature { padding: var(--space-5); gap: var(--space-4); grid-template-columns: 44px 1fr; }
  .feature__icon { width: 44px; height: 44px; }
  .feature__icon svg { width: 22px; height: 22px; }

  /* Mobile process steps */
  .process__step { padding: var(--space-5); }
  .process__step::before { font-size: 2rem; top: var(--space-3); right: var(--space-4); }
  .process__step h3 { padding-right: 2.5rem; }

  /* Mobile FAQ */
  .faq summary { padding: var(--space-4); font-size: var(--fs-base); }
  .faq details > div { padding: 0 var(--space-4) var(--space-4); }

  /* Mobile form */
  .contact-form { padding: var(--space-5); }
  .contact-form input, .contact-form textarea { font-size: 16px; } /* avoid iOS zoom */

  /* Mobile map: keep full aspect, no overflow */
  .map-wrap { aspect-ratio: 4/3; }

  /* Mobile footer: better hierarchy */
  .site-footer { padding: var(--space-7) 0 var(--space-4); }
  .site-footer__grid { gap: var(--space-5); padding-bottom: var(--space-5); }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* 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;
  }
  .hero__bg { filter: brightness(0.5); }
}

/* Print */
@media print {
  .site-header, .site-nav, .back-to-top, .map-wrap button, .contact-form, .site-footer__bottom { display: none; }
  body { background: white; color: black; }
  .hero { min-height: auto; padding: 2rem 0; background: white; color: black; }
  .hero__bg, .hero::before { display: none; }
}
