/* ─────────────────────────────────────────────────────────────
   Gardenier — nature-inspired sustainable fashion
   ───────────────────────────────────────────────────────────── */

:root {
  --page:   #f6f3ea;
  --moss:   #2f3a22;
  --ink:    #262a1c;
  --olive:  #6b7a4f;
  --sand:   #ece6d6;
  --cream:  #f6f3ea;
  --white:  #ffffff;
  --card:   #fdfcf7;
  --gold:   #c9a227;
  --muted:  rgba(38, 42, 28, .62);
  --line:   rgba(38, 42, 28, .16);

  --r-shell: 26px;
  --r-card:  16px;
  --pad:     clamp(20px, 4.6vw, 64px);
  --sans: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html[data-lang="es"]:not([data-ready]) body { visibility: hidden; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--moss); color: #fff; padding: 10px 18px; border-radius: 999px;
}
.skip:focus { left: 16px; }

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

.shell { background: var(--cream); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 26px; border: 0; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  transition: background .22s, color .22s, transform .22s, box-shadow .22s;
}
.btn--light  { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sand); }
.btn--dark   { background: var(--moss); color: #fff; }
.btn--dark:hover { background: #3d4a2c; }
.btn--ghost-light {
  background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.14); }
.btn:active { transform: scale(.975); }

.round {
  display: inline-grid; place-items: center; flex: none;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  transition: background .22s, color .22s, transform .22s, box-shadow .22s;
}
.round svg { width: 20px; height: 20px; }
.round--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.round--outline:hover { background: var(--moss); color: #fff; box-shadow: none; }
.round--dark { background: var(--moss); color: #fff; }
.round--dark:hover { background: #3d4a2c; }
.round:disabled { opacity: .3; cursor: default; }
.round:not(:disabled):active { transform: scale(.94); }

.cta-pair { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: transparent; color: #fff;
  transition: background .22s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: rgba(255,255,255,.16); }

/* ── Typography helpers ────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--olive);
}
.eyebrow svg { width: 16px; height: 16px; color: currentColor; }
.eyebrow--center { justify-content: center; }

.h2 { font-size: clamp(28px, 3.4vw, 46px); }
.h2--light { color: #fff; }
.lede { max-width: 42ch; margin: 14px auto 0; color: var(--muted); font-size: 15.5px; }
.lede--left { margin: 14px 0 0; }
.lede--light { color: rgba(255,255,255,.78); }

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: absolute; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(14px, 2vw, 26px) var(--pad);
  color: #fff;
}
.nav__links { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px); font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; }
.nav__links a { opacity: .88; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__right { display: flex; align-items: center; gap: 4px; }

.langs { display: flex; align-items: center; gap: 4px; font-size: 12px; opacity: .8; margin-right: 6px; }
.langs button { background: none; border: 0; padding: 2px 3px; opacity: .65; transition: opacity .2s; color: #fff; }
.langs button[aria-pressed="true"] { opacity: 1; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.langs button:hover { opacity: 1; }

.brand {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--serif);
  font-size: 22px; font-weight: 500; letter-spacing: .01em;
}
.brand__mark { width: 20px; height: 20px; }
.brand--footer { position: static; transform: none; color: #fff; }

.burger { display: none; width: 40px; height: 40px; background: none; border: 0; padding: 10px; }
.burger span { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s; }
.burger span + span { margin-top: 6px; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { position: relative; background: var(--moss); }
.hero__viewport { overflow: hidden; clip-path: inset(0); }
.hero__slide {
  position: relative;
  min-height: 100vh;
  display: grid;
}
.hero__img {
  --hero-lift: 4vh;
  --hero-zoom: 1.08;
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  object-fit: cover; object-position: 50% 18%;
  translate: 0 calc(-1 * var(--hero-lift));
  scale: var(--hero-zoom);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,26,12,.5) 0%, rgba(20,26,12,0) 30%),
    linear-gradient(0deg, rgba(20,26,12,.55) 0%, rgba(20,26,12,0) 40%);
}
.hero__inner {
  position: relative; z-index: 2; align-self: stretch;
  display: grid; grid-template-rows: 1fr auto;
  padding: clamp(96px, 11vw, 150px) var(--pad) clamp(48px, 6vw, 74px);
  color: #fff;
  text-align: center;
  justify-items: center;
}
.hero__title {
  align-self: end;
  max-width: 16ch;
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 500; line-height: 1.06; letter-spacing: -.01em;
}
.hero__aside { max-width: 440px; display: grid; gap: 22px; justify-items: center; margin-top: 22px; }
.hero__aside p { font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,.88); }

/* ── Cursor daisy ──────────────────────────────────────────── */
.cursor-daisy {
  --x: 50vw; --y: 50vh;
  position: fixed; top: 0; left: 0; z-index: 15;
  width: 40px; height: 40px;
  pointer-events: none;
  transform: translate(var(--x), var(--y)) translate(-50%, -50%) scale(.6);
  opacity: 0;
  transition: opacity .25s ease, transform .18s ease-out;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
  will-change: transform;
}
.cursor-daisy.is-active { opacity: 1; transform: translate(var(--x), var(--y)) translate(-50%, -50%) scale(1); }

/* ── Hero entrance ─────────────────────────────────────────── */
html.hero-armed .hero { background: #fff; }
html.hero-armed .hero__img,
html.hero-armed .hero__scrim,
html.hero-armed .hero__title,
html.hero-armed .hero__aside,
html.hero-armed .nav__links--left li,
html.hero-armed .brand,
html.hero-armed .nav__right { opacity: 0; }

@keyframes heroRise {
  from { opacity: 0; translate: 0 30%; scale: 1; }
  to   { opacity: 1; translate: 0 calc(-1 * var(--hero-lift)); scale: var(--hero-zoom); }
}
@keyframes heroScrimIn { to { opacity: 1; } }
@keyframes heroGround  { to { background-color: var(--moss); } }
@keyframes chromeIn {
  from { opacity: 0; translate: 0 -14px; }
  to   { opacity: 1; translate: none; }
}

html.hero-ready .hero__img { animation: heroRise 900ms cubic-bezier(.16,.84,.34,1) both; }
html.hero-ready .hero__scrim { animation: heroScrimIn 650ms 200ms ease-out both; }
html.hero-ready .hero { animation: heroGround 350ms 600ms linear both; }

html.hero-ready .nav__links--left li,
html.hero-ready .brand,
html.hero-ready .nav__right,
html.hero-ready .hero__title,
html.hero-ready .hero__aside {
  animation: chromeIn 520ms cubic-bezier(.22,.68,.36,1) both;
}
html.hero-ready .nav__links--left li:nth-child(1) { animation-delay: 820ms; }
html.hero-ready .nav__links--left li:nth-child(2) { animation-delay: 870ms; }
html.hero-ready .nav__links--left li:nth-child(3) { animation-delay: 920ms; }
html.hero-ready .nav__links--left li:nth-child(4) { animation-delay: 970ms; }
html.hero-ready .nav__links--left li:nth-child(5) { animation-delay: 1020ms; }
html.hero-ready .brand      { animation-delay: 1040ms; }
html.hero-ready .nav__right { animation-delay: 1090ms; }
html.hero-ready .hero__title { animation-delay: 840ms; animation-duration: 620ms; }
html.hero-ready .hero__aside { animation-delay: 1000ms; }

/* ── Sections ──────────────────────────────────────────────── */
.section { padding: clamp(52px, 6.4vw, 96px) var(--pad); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--dark  { background: var(--moss); }
.section--center { text-align: center; }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.4vw, 48px);
}
.section__head .eyebrow { display: flex; margin-bottom: 10px; }

/* ── Mission ───────────────────────────────────────────────── */
.mission {
  position: relative; isolation: isolate;
  display: grid; place-items: center;
  min-height: clamp(320px, 40vw, 480px);
  padding: clamp(40px, 6vw, 80px) var(--pad);
  background: url("img/mission-bg.webp") center 35% / cover no-repeat;
}
.mission::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,18,8,.62), rgba(15,18,8,.5));
}
.mission__text {
  max-width: 30ch; text-align: center;
  font-family: var(--serif);
  font-size: clamp(21px, 2.5vw, 32px); font-style: italic;
  font-weight: 500; line-height: 1.42; letter-spacing: -.005em;
  color: #fff;
}

/* ── Categories ────────────────────────────────────────────── */
.categories {
  display: grid; gap: clamp(10px, 1.4vw, 18px);
  grid-template-columns: repeat(4, 1fr);
  padding: clamp(20px, 3vw, 40px) var(--pad);
  background: var(--cream);
}
.cat {
  position: relative; display: block;
  aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-card);
}
.cat img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.cat img.cat__img--hero { object-position: 50% 8%; }
.cat:hover img { transform: scale(1.06); }
.cat__pill {
  position: absolute; left: 14px; bottom: 14px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--ink);
  font-size: 12.5px; font-weight: 500;
}

/* ── Products ──────────────────────────────────────────────── */
.products {
  display: grid; gap: clamp(18px, 2.4vw, 30px);
  grid-template-columns: repeat(4, 1fr);
}
.product { text-align: left; }
.product__shot {
  aspect-ratio: 3 / 4; border-radius: var(--r-card); overflow: hidden;
  background: var(--card); margin-bottom: 16px;
}
.product__shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.product__shot--crop img { object-position: var(--obj, 50% 50%); }
.product h3 { font-size: 16.5px; font-weight: 500; }
.product__price { margin-top: 6px; font-size: 14px; color: var(--ink); }
.product__price s { margin-left: 6px; color: var(--muted); font-weight: 400; }
.swatches { display: flex; gap: 6px; margin-top: 10px; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

/* ── Features ──────────────────────────────────────────────── */
.features {
  display: grid; gap: clamp(16px, 2vw, 26px);
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(36px, 4.4vw, 60px);
  max-width: 1040px; margin-inline: auto;
}
.feature {
  padding: clamp(26px, 2.6vw, 34px) 22px;
  border-radius: var(--r-card);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.feature svg { width: 30px; height: 30px; color: #d9e0c9; margin-bottom: 16px; }
.feature h3 { font-size: 16px; font-weight: 500; color: #fff; }
.feature p { margin-top: 8px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.68); }

/* ── Community rail ────────────────────────────────────────── */
.arrows { display: flex; gap: 8px; margin-top: clamp(24px, 3vw, 36px); }
.arrows--center { justify-content: center; }

.rail {
  display: flex; gap: clamp(12px, 1.5vw, 22px);
  justify-content: center;
  overflow-x: auto; overflow-y: clip;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  margin-top: clamp(24px, 3vw, 36px);
  padding-bottom: 6px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: center; flex: 0 0 clamp(200px, 22%, 280px); }

.cust { position: relative; text-align: left; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3/4; }
.cust img { width: 100%; height: 100%; object-fit: cover; }
.cust__tag {
  position: absolute; left: 12px; bottom: 12px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--ink);
  font-size: 11.5px; font-weight: 500;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq { display: block; }
.faq__body { max-width: 760px; margin: 0 auto; text-align: center; }
.faq__body .h2 { margin: 12px 0 clamp(28px, 3vw, 42px); }

.acc { border-top: 1px solid var(--line); text-align: left; }
.acc li { border-bottom: 1px solid var(--line); }
.acc button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 0; background: none; border: 0; text-align: left;
  font-size: 15px; font-weight: 500; letter-spacing: -.005em;
}
.acc button i {
  position: relative; flex: none; width: 14px; height: 14px;
}
.acc button i::before, .acc button i::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 1.5px;
  background: currentColor; transition: transform .28s;
}
.acc button i::after { transform: rotate(90deg); }
.acc button[aria-expanded="true"] i::after { transform: rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.acc__panel > p {
  overflow: hidden; font-size: 13.5px; line-height: 1.6; color: var(--muted);
}
.acc li.is-open .acc__panel { grid-template-rows: 1fr; }
.acc li.is-open .acc__panel > p { padding-bottom: 18px; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  padding: clamp(44px, 5.4vw, 74px) var(--pad) clamp(20px, 2.4vw, 30px);
  border-radius: var(--r-shell) var(--r-shell) 0 0;
  background: var(--moss); color: #fff;
}
.footer__top {
  display: grid; grid-template-columns: minmax(280px, .95fr) 1.5fr;
  gap: clamp(30px, 4vw, 60px);
}
.footer__lead {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(28px, 3vw, 42px);
  border-radius: var(--r-card);
  background: url("img/mission-bg.webp") center 70% / cover no-repeat;
}
.footer__lead::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,18,8,.55), rgba(15,18,8,.72));
}
.footer__lead .brand { margin-bottom: 22px; }
.footer__lead h2 { max-width: 12ch; font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; color: #fff; }
.footer__lede { margin-top: 12px; max-width: 30ch; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.78); }

.signup { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; max-width: 380px; }
.signup input {
  flex: 1; min-width: 0; height: 48px; padding: 0 22px;
  border: 1px solid rgba(255,255,255,.32); border-radius: 999px;
  background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 14px;
}
.signup input::placeholder { color: rgba(255,255,255,.55); }
.signup input:focus { outline: none; border-color: var(--olive); }
.footer__note { font-size: 12.5px; color: rgba(255,255,255,.55); }
.footer__note.is-ok { color: #d9e0c9; }

.footer__right { display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 44px); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 34px); }
.footer__cols h3 { margin-bottom: 16px; font-size: 14px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: rgba(255,255,255,.9); }
.footer__cols li + li { margin-top: 9px; }
.footer__cols a { font-size: 13.5px; color: rgba(255,255,255,.62); transition: color .2s; }
.footer__cols a:hover { color: #fff; }

.footer__contact { font-size: 13.5px; color: rgba(255,255,255,.72); line-height: 1.9; }
.footer__contact p:first-child { font-weight: 500; letter-spacing: .03em; text-transform: uppercase; font-size: 12.5px; color: rgba(255,255,255,.5); margin-bottom: 4px; }

.footer__bar {
  display: flex; flex-wrap: wrap; gap: 10px clamp(16px, 2.4vw, 34px);
  margin-top: clamp(30px, 4vw, 50px); padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 12.5px; color: rgba(255,255,255,.6);
}
.footer__bar a:hover { color: #fff; }

/* ── Reveal on scroll ──────────────────────────────────────── */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .6s, translate .6s; }
.reveal.in { opacity: 1; translate: none; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav__links--left { display: none; }
  .burger { display: block; }
  .brand { position: static; transform: none; margin-right: auto; }
  .nav { justify-content: flex-start; }
  .nav__right { margin-left: auto; }

  .nav__links--left.is-open {
    position: absolute; top: 100%; left: var(--pad); right: var(--pad);
    display: grid; gap: 4px; padding: 16px 20px;
    background: rgba(20,26,12,.94); backdrop-filter: blur(12px); border-radius: 16px;
  }

  .categories, .products, .features { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .langs { display: none; }
  .hero__aside { max-width: 100%; }
  .categories, .products, .features { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .rail > * { flex-basis: 72%; }
  .section__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .categories { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
}

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