/* ============ LAFAINA — Journey of Mama ============ */

:root {
  --cream: #f7f2e4;
  --cream-2: #efe7d3;
  --ink: #2b2420;
  --ink-soft: #58493d;
  --navy: #1c3350;
  --navy-deep: #142639;
  --terracotta: #ad4f38;
  --brown: #3d2c1f;
  --gold: #c29a66;
  --line: rgba(43, 36, 32, .16);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.section { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.5rem, 6vw, 6rem); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(2.1rem, 4.6vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; font-weight: 300; color: var(--terracotta); }
.light h1 em, h2.light em { color: var(--gold); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.4rem;
}
.eyebrow.light { color: var(--gold); }
.center { text-align: center; }
h2.center { max-width: 34ch; margin-inline: auto; }
.lede { font-size: 1.05rem; color: var(--ink-soft); max-width: 62ch; margin-inline: auto; }
.desktop-only { display: inline; }

/* ---------- Reveal animations ---------- */
.reveal, .reveal-img {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
}
.reveal-img { transform: translateY(0); clip-path: inset(8% 0 8% 0); transition: opacity 1s ease, clip-path 1.1s cubic-bezier(.22,.61,.36,1); }
.reveal.is-in, .reveal-img.is-in { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.d1 { transition-delay: .12s; }
.d2 { transition-delay: .24s; }
.d3 { transition-delay: .36s; }
.d4 { transition-delay: .48s; }
.d5 { transition-delay: .6s; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem clamp(1.5rem, 4vw, 3rem);
  background: rgba(247, 242, 228, .88);
  backdrop-filter: blur(10px);
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.nav.is-scrolled {
  background: rgba(247, 242, 228, .94);
  box-shadow: 0 1px 0 var(--line);
  padding-block: .7rem;
}
.nav__logo img { height: 44px; width: auto; }
.nav__links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav__links a { position: relative; padding-block: .3rem; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease;
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: .55rem 1.2rem;
  border-radius: 99px;
  transition: background .3s ease, color .3s ease;
}
.nav__cta:hover { background: var(--ink); color: var(--cream); }
.nav__burger { display: none; }

.mobile-menu { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .9rem 1.8rem;
  border-radius: 99px;
  transition: all .3s ease;
}
.btn--dark { background: var(--ink); color: var(--cream); border: 1px solid var(--ink); }
.btn--dark:hover { background: transparent; color: var(--ink); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(7rem, 12vh, 9rem) clamp(1.5rem, 5vw, 5rem) 4rem;
}
.hero__sub {
  margin-top: 1.6rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero__actions { display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero__media { position: relative; overflow: hidden; }
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.25) saturate(.75) contrast(1.02);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(28,51,80,.30), rgba(28,51,80,.05) 55%, rgba(61,44,31,.22));
  mix-blend-mode: multiply;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--cream-2);
  padding-block: .9rem;
}
.marquee__track {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee__track i { font-style: normal; color: var(--terracotta); font-size: .7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Story ---------- */
.story__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  max-width: 1250px;
  margin-inline: auto;
}
.story__text h2 { max-width: 20ch; margin-bottom: 1.6rem; }
.story__text p { color: var(--ink-soft); max-width: 58ch; }
.story__text p + p { margin-top: 1.1rem; }
.story__meaning {
  margin-top: 2.2rem;
  border-left: 2px solid var(--terracotta);
  padding: .4rem 0 .4rem 1.6rem;
}
.story__meaning p { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.story__meaning em { color: var(--terracotta); }
.story__meaning span { font-size: .88rem; color: var(--ink-soft); letter-spacing: .04em; }
.story__media img {
  filter: sepia(.2) saturate(.8);
  aspect-ratio: 4 / 5.4;
  object-fit: cover;
  width: 100%;
}
.story__media figcaption {
  margin-top: .9rem;
  font-size: .85rem;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--ink-soft);
  max-width: 40ch;
}

/* ---------- Film ---------- */
.film {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 8rem) 1.5rem;
}
.film__bg { position: absolute; inset: 0; }
.film__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.6) contrast(1.02);
}
.film__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,38,57,.55), rgba(20,38,57,.72));
}
.film__content { position: relative; color: var(--cream); }
.film__content h2 { color: var(--cream); max-width: 24ch; margin-inline: auto; }
.film__content h2 em { color: var(--gold); }
.film__sub {
  margin-top: 1.1rem;
  color: rgba(247,242,228,.82);
  font-size: 1.02rem;
  max-width: 44ch;
  margin-inline: auto;
}
.film__play {
  position: relative;
  margin-top: 2.6rem;
  width: clamp(84px, 10vw, 108px);
  height: clamp(84px, 10vw, 108px);
  border-radius: 50%;
  border: 1.5px solid rgba(247,242,228,.85);
  background: rgba(247,242,228,.08);
  backdrop-filter: blur(4px);
  color: var(--cream);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .35s ease, transform .35s ease, color .35s ease;
}
.film__play svg { width: 42%; height: 42%; margin-left: 6%; }
.film__play::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid rgba(247,242,228,.5);
  animation: playPulse 2.4s ease-out infinite;
}
@keyframes playPulse {
  0% { transform: scale(1); opacity: .8; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}
.film__play:hover { background: var(--cream); color: var(--navy-deep); transform: scale(1.05); }
.film__hint {
  display: block;
  margin-top: 1.2rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(247,242,228,.65);
}

/* ---------- Video modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #100c0a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 4rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.video-modal.is-open { opacity: 1; pointer-events: auto; }
.video-modal__frame {
  width: min(1200px, 100%, calc((100vh - 5rem) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
  transform: scale(.94);
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.video-modal.is-open .video-modal__frame { transform: scale(1); }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__close {
  position: absolute;
  top: clamp(.8rem, 2.5vw, 2rem);
  right: clamp(1rem, 3vw, 2.5rem);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(247,242,228,.4);
  background: none;
  color: var(--cream);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.video-modal__close:hover { background: var(--cream); color: var(--ink); transform: rotate(90deg); }

/* ---------- Pillars ---------- */
.pillars { background: var(--cream); padding-top: 2rem; }
.pillars__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  max-width: 1250px;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
}
.pillars__list li { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.pillars__list span {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--terracotta);
  font-size: .95rem;
}
.pillars__list h3 { font-size: 1.15rem; margin: .5rem 0 .6rem; }
.pillars__list p { font-size: .86rem; color: var(--ink-soft); }

/* ---------- Impact ---------- */
.impact {
  position: relative;
  background: var(--navy-deep);
  color: var(--cream);
  overflow: hidden;
}
.impact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/farming.jpg") center / cover no-repeat;
  opacity: .18;
  mix-blend-mode: luminosity;
}
.impact__inner { position: relative; max-width: 1250px; margin-inline: auto; }
.impact h2 { color: var(--cream); max-width: 28ch; }
.impact h2 em { color: var(--gold); }
.impact__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1;
  color: var(--gold);
}
.stat span {
  display: block;
  margin-top: .7rem;
  font-size: .84rem;
  letter-spacing: .06em;
  color: rgba(247,242,228,.75);
  max-width: 22ch;
}
.impact__note {
  margin-top: 3rem;
  font-size: .92rem;
  color: rgba(247,242,228,.7);
  border-top: 1px solid rgba(247,242,228,.15);
  padding-top: 1.5rem;
}

/* ---------- Mama ---------- */
.mama { max-width: 1250px; margin-inline: auto; }
.mama .lede { margin-top: 1.2rem; }
.mama__portraits {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.mama__portraits figure { overflow: hidden; }
.mama__portraits img {
  filter: sepia(.35) saturate(.7);
  transition: transform .8s cubic-bezier(.22,.61,.36,1), filter .5s ease;
  width: 100%;
  aspect-ratio: 3/4.8;
  object-fit: cover;
}
.mama__portraits figure:hover img { transform: scale(1.05); filter: sepia(.1) saturate(.9); }
/* ---------- Quotes banner ---------- */
.quotes-banner {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 6vw, 6rem);
}
.quotes-banner__bg { position: absolute; inset: 0; }
.quotes-banner__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(.8);
}
.quotes-banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,36,32,.72), rgba(43,36,32,.55) 50%, rgba(43,36,32,.78));
}
.quotes-banner__content {
  position: relative;
  max-width: 780px;
  color: var(--cream);
}
.quotes-banner__content blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.5;
  text-wrap: balance;
}
.quotes-banner__divider {
  display: block;
  margin: clamp(1.6rem, 3.5vw, 2.6rem) auto;
  color: var(--gold);
  font-size: .9rem;
  letter-spacing: .3em;
}
.quotes-banner__caption {
  margin-top: clamp(2.2rem, 5vw, 3.5rem);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(247,242,228,.65);
}

/* ---------- Products ---------- */
.products { background: var(--cream-2); }
.products__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1250px;
  margin-inline: auto;
}
.products__note { font-size: .95rem; color: var(--ink-soft); max-width: 34ch; padding-bottom: .4rem; }
.products__note span { display: block; margin-top: .5rem; font-style: italic; font-family: var(--font-display); color: var(--terracotta); }
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1250px;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
}
.product__img {
  background: var(--cream);
  border: 1px solid var(--line);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.2rem;
  transition: background .4s ease;
}
.product__img img { max-height: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.product:hover .product__img img { transform: scale(1.04) rotate(-.5deg); }
.product--photo .product__img { padding: 0; overflow: hidden; }
.product--photo .product__img img { width: 100%; height: 100%; object-fit: cover; }
.product figcaption {
  margin-top: .9rem;
  font-size: .92rem;
  letter-spacing: .04em;
}
.product figcaption em { font-family: var(--font-display); color: var(--ink-soft); }

.patterns { margin-top: clamp(4rem, 8vw, 6.5rem); }
.patterns .lede { margin-top: 1rem; }
.patterns__strip { overflow: hidden; margin-top: 2.5rem; }
.patterns__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.patterns__track img {
  width: clamp(140px, 16vw, 210px);
  height: clamp(140px, 16vw, 210px);
  object-fit: cover;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
}
.gallery__media { overflow: hidden; }
.gallery__media img { width: 100%; height: 100%; object-fit: cover; min-height: 480px; }
.gallery__text h2 { max-width: 18ch; margin-bottom: 1.4rem; }
.gallery__text > p { color: var(--ink-soft); max-width: 52ch; }
.gallery__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 2.5rem;
  margin-top: 2.4rem;
}
.gallery__list h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.gallery__list p { font-size: .86rem; color: var(--ink-soft); }
.gallery__address {
  margin-top: 2.6rem;
  font-size: .88rem;
  letter-spacing: .05em;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  color: var(--ink-soft);
}

/* ---------- Partners ---------- */
.partners__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  max-width: 1250px;
  margin-inline: auto;
}
.partners__media img { width: 100%; aspect-ratio: 4/2.9; object-fit: cover; }
.partners__media figcaption {
  margin-top: .9rem;
  font-size: .85rem;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--ink-soft);
}
.partners__text h2 { margin-bottom: 1.6rem; }
.partners__list {
  display: grid;
  gap: .9rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--ink-soft);
}
.partners__list li { border-bottom: 1px solid var(--line); padding-bottom: .9rem; }
.partners__note { margin-top: 1.6rem; font-size: .85rem; letter-spacing: .08em; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--brown); color: var(--cream); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1250px;
  margin-inline: auto;
}
.footer__logo { height: 74px; width: auto; margin-bottom: 1.2rem; }
.footer__brand p { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: rgba(247,242,228,.8); }
.footer__col h4 {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer__col p { font-size: .92rem; color: rgba(247,242,228,.85); }
.footer__col a { border-bottom: 1px solid rgba(247,242,228,.25); transition: border-color .3s ease; }
.footer__col a:hover { border-color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(247,242,228,.14);
  padding: 1.4rem clamp(1.5rem, 6vw, 6rem);
  font-size: .78rem;
  letter-spacing: .06em;
  color: rgba(247,242,228,.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { min-height: 55vh; position: relative; }
  .hero__text { padding-top: 8rem; }
  .desktop-only { display: none; }
  .story__grid, .gallery { grid-template-columns: 1fr; }
  .gallery__media img { min-height: 320px; }
  .pillars__list { grid-template-columns: repeat(2, 1fr); }
  .impact__stats { grid-template-columns: repeat(2, 1fr); }
  .mama__portraits { grid-template-columns: repeat(3, 1fr); }
  .mama__portraits figure:nth-child(4), .mama__portraits figure:nth-child(5) { display: none; }
  .quotes-banner { min-height: 78vh; }
  .products__head { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .partners__grid { grid-template-columns: 1fr; }
  .film { min-height: 70vh; }
  .footer__inner { grid-template-columns: 1fr 1fr; }

  .nav__links, .nav__cta { display: none; }
  .nav__burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
  }
  .nav__burger span { width: 26px; height: 1.5px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }
  .nav__burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__burger.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    font-family: var(--font-display);
    font-size: 1.6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }
  .mobile-menu.is-open { opacity: 1; pointer-events: auto; }
}

@media (max-width: 560px) {
  .pillars__list, .products__grid { grid-template-columns: 1fr; }
  .impact__stats { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .gallery__list { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .nav__logo img { height: 36px; }
  .video-modal { padding: 0; align-items: center; }
  .video-modal__frame { box-shadow: none; }
  .video-modal__close { top: .9rem; right: .9rem; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .marquee__track, .patterns__track { animation: none; }
  .film__play::before { animation: none; }
  html { scroll-behavior: auto; }
}
