/* ==========================================================================
   Maderas Libertre — Hoja de estilos principal
   ========================================================================== */

:root {
  /* Paleta */
  --forest-900: #12261b;
  --forest-800: #1a3426;
  --forest-700: #234532;
  --forest-500: #3d6b4f;
  --wood-600: #a8682a;
  --wood-500: #c8873a;
  --wood-300: #e6c08e;
  --wood-100: #f6ead9;
  --cream: #fbf8f3;
  --white: #ffffff;
  --ink: #1d2420;
  --muted: #5d6a63;
  --line: #e7e1d6;

  /* Tipografía */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  /* Medidas */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(18, 38, 27, .06);
  --shadow: 0 12px 32px -12px rgba(18, 38, 27, .22);
  --shadow-lg: 0 30px 60px -20px rgba(18, 38, 27, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--wood-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--forest-700); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest-900);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }
strong { color: var(--forest-800); font-weight: 600; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 1rem; z-index: 200;
  background: var(--wood-500); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; }

:focus-visible { outline: 3px solid var(--wood-500); outline-offset: 3px; border-radius: 4px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--wood-500); color: var(--white); box-shadow: 0 10px 24px -10px rgba(200, 135, 58, .8); }
.btn-primary:hover { background: var(--wood-600); color: var(--white); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: var(--white); color: var(--forest-900); }
.btn-dark { background: var(--forest-800); color: var(--white); }
.btn-dark:hover { background: var(--forest-900); color: var(--white); transform: translateY(-2px); }

/* ---------- Encabezado ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(251, 248, 243, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .8rem; color: var(--white); }
.brand:hover { color: var(--white); }
.brand-mark {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--wood-500), var(--wood-600));
  box-shadow: 0 8px 18px -8px rgba(168, 104, 42, .9);
}
.brand-mark img { width: 26px; height: 26px; filter: invert(1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .04em; }
.brand-tag { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.is-scrolled .brand, .is-solid .brand { color: var(--forest-900); }

.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .55rem 1rem; border-radius: 999px;
  color: rgba(255, 255, 255, .9); font-weight: 500; font-size: .96rem;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover { background: rgba(255, 255, 255, .14); color: var(--white); }
.nav-links a[aria-current="page"] { background: rgba(255, 255, 255, .18); color: var(--white); }
.is-scrolled .nav-links a, .is-solid .nav-links a { color: var(--ink); }
.is-scrolled .nav-links a:hover, .is-solid .nav-links a:hover { background: var(--wood-100); color: var(--forest-900); }
.is-scrolled .nav-links a[aria-current="page"], .is-solid .nav-links a[aria-current="page"] { background: var(--forest-800); color: var(--white); }
.nav-cta { margin-left: .5rem; }
.nav-cta.btn { padding: .65rem 1.2rem; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: var(--white);
  cursor: pointer; place-items: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.is-scrolled .nav-toggle, .is-solid .nav-toggle { color: var(--forest-900); border-color: var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 860px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  color: var(--white);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(18, 38, 27, .94) 0%, rgba(18, 38, 27, .78) 42%, rgba(18, 38, 27, .25) 100%),
    linear-gradient(0deg, rgba(18, 38, 27, .6), transparent 40%);
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-content > * { max-width: 720px; }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--wood-300); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, .86); max-width: 600px; }
.hero-lead .hl { color: var(--wood-300); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--wood-500); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero .eyebrow { color: var(--wood-300); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--white); }
.hero-stats span { font-size: .86rem; color: rgba(255, 255, 255, .7); margin-top: .35rem; }

/* Hero de páginas internas */
.page-hero { min-height: 0; padding: calc(var(--header-h) + 5rem) 0 5.5rem; }
.page-hero .hero-content > * { max-width: 760px; }
.breadcrumb { display: flex; gap: .5rem; font-size: .88rem; color: rgba(255, 255, 255, .7); margin-bottom: 1.2rem; list-style: none; padding: 0; }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--wood-300); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--forest-900); color: rgba(255, 255, 255, .82); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: rgba(255, 255, 255, .7); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }

.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.media-frame:hover img { transform: scale(1.04); }
.media-badge {
  position: absolute; left: 1.25rem; bottom: 1.25rem;
  display: flex; align-items: center; gap: .8rem;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px);
  padding: .9rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--forest-900); font-weight: 600; font-size: .95rem; line-height: 1.3;
}
.media-badge small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.media-badge .icon-circle { width: 42px; height: 42px; }

.prose p { color: var(--muted); }
.prose p strong { color: var(--forest-800); }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--wood-300); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin: 0; }

.icon-circle {
  width: 56px; height: 56px; border-radius: 16px; flex: none;
  display: grid; place-items: center;
  background: var(--wood-100); color: var(--wood-600);
  margin-bottom: 1.25rem;
}
.icon-circle svg { width: 26px; height: 26px; }
.media-badge .icon-circle { margin: 0; border-radius: 12px; }
.media-badge .icon-circle svg { width: 22px; height: 22px; }

/* Galería */
.gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.25rem; }
.gallery figure {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
.gallery figure:first-child { aspect-ratio: auto; grid-row: span 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.2rem 1rem;
  background: linear-gradient(0deg, rgba(18, 38, 27, .85), transparent);
  color: var(--white); font-weight: 500; font-size: .95rem;
  transform: translateY(8px); opacity: .92; transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.gallery figure:hover figcaption { transform: translateY(0); opacity: 1; }

/* Certificación */
.cert {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--forest-800), var(--forest-900));
  color: rgba(255, 255, 255, .85);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  box-shadow: var(--shadow-lg);
}
.cert::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; z-index: -1;
  background: radial-gradient(circle, rgba(200, 135, 58, .35), transparent 65%);
}
.cert h2 { color: var(--white); }
.cert p { color: rgba(255, 255, 255, .8); }
.cert strong { color: var(--wood-300); }
.cert-seal {
  width: 150px; height: 150px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  border: 2px dashed rgba(230, 192, 142, .6);
  color: var(--wood-300);
}
.cert-seal div { width: 118px; height: 118px; border-radius: 50%; background: rgba(255, 255, 255, .06); display: grid; place-items: center; align-content: center; }
.cert-seal svg { width: 40px; height: 40px; margin-bottom: .2rem; }
.cert-seal span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }

/* Misión / Visión */
.mv-card { position: relative; padding: 2.5rem; overflow: hidden; }
.mv-card .num {
  position: absolute; right: 1.5rem; top: .5rem;
  font-family: var(--font-display); font-size: 6rem; line-height: 1; font-weight: 700;
  color: var(--wood-100); z-index: 0;
}
.mv-card > * { position: relative; z-index: 1; }

/* Plantas */
.plants { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.plant { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--wood-100); }
.plant .icon-circle { margin: 0; width: 44px; height: 44px; background: var(--white); border-radius: 12px; }
.plant .icon-circle svg { width: 20px; height: 20px; }
.plant b { display: block; color: var(--forest-900); font-size: .98rem; }
.plant span { font-size: .85rem; color: var(--muted); }

/* Productos */
.product {
  display: grid; grid-template-columns: 220px 1fr; gap: 1.75rem; align-items: center;
  padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-img { border-radius: calc(var(--radius) - 6px); overflow: hidden; aspect-ratio: 4 / 3; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product h4 { margin-bottom: .4rem; }
.product p { color: var(--muted); margin: 0; }
.product-list { display: grid; gap: 1.25rem; }

/* Industrias */
.industries { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.1rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-weight: 500; font-size: .92rem; color: var(--forest-800);
}
.chip svg { width: 18px; height: 18px; color: var(--wood-500); }

.tile { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-items { display: grid; gap: 1rem; margin: 2rem 0; }
.contact-item {
  display: flex; gap: 1rem; align-items: center;
  padding: 1.2rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.contact-item:hover { border-color: var(--wood-500); transform: translateX(4px); color: var(--ink); }
.contact-item .icon-circle { margin: 0; }
.contact-item small { display: block; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-item b { font-weight: 600; color: var(--forest-900); word-break: break-word; }

.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--forest-900); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .85rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--cream);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--wood-500); background: var(--white); box-shadow: 0 0 0 4px rgba(200, 135, 58, .15); }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; }

/* CTA */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white); text-align: center;
}
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(18, 38, 27, .92), rgba(35, 69, 50, .82)); }
.cta h2 { color: var(--white); }
.cta p { color: rgba(255, 255, 255, .82); max-width: 560px; margin: 0 auto 2rem; }
.cta .hero-actions { justify-content: center; margin-top: 0; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--forest-900); color: rgba(255, 255, 255, .72); padding: 4.5rem 0 0; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3.5rem; }
.site-footer .brand { margin-bottom: 1.2rem; }
.site-footer h4 { color: var(--white); font-family: var(--font-sans); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: var(--wood-300); }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--wood-300); flex: none; margin-top: .3rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.5rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .85rem; color: rgba(255, 255, 255, .55);
}
.footer-bottom a { color: rgba(255, 255, 255, .55); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 2rem;
  background: rgba(10, 20, 14, .9); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 85vh; width: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox button {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: var(--white); display: grid; place-items: center;
}
.lightbox button svg { width: 24px; height: 24px; }

/* Botón volver arriba */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--wood-500); color: var(--white); box-shadow: var(--shadow);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--wood-600); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Animaciones al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: grid; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--cream); box-shadow: var(--shadow);
    padding: 1rem var(--gutter) 1.5rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  .nav-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav-links a, .is-scrolled .nav-links a { color: var(--ink); padding: .9rem 1rem; border-radius: var(--radius-sm); }
  .nav-links a[aria-current="page"] { background: var(--forest-800); color: var(--white); }
  .nav-cta { margin: 1rem 0 0; width: 100%; justify-content: center; }
  .site-header.menu-open { background: var(--cream); }
  .site-header.menu-open .brand { color: var(--forest-900); }
  .site-header.menu-open .nav-toggle { color: var(--forest-900); border-color: var(--line); }

  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .cert { grid-template-columns: 1fr; text-align: center; }
  .cert-seal { margin-inline: auto; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid-3, .grid-2, .plants, .form-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { aspect-ratio: 4 / 3; }
  .product { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-stats b { font-size: 1.8rem; }
  .brand-tag { display: none; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
