:root {
  --brown-earth: #4a2c0a;
  --brown-earth-dark: #2e1b07;
  --forest-amber: #c87d0a;
  --cupuaçu-gold: #f5c070;
  --amazon-cream: #fdf6ec;
  --forest-green: #3a7010;
  --forest-green-dark: #24470c;
  --forest-deep: #102805;
  --white: #fff;
  --header-height: 82px;
  --container: 1280px;
  --page-padding: clamp(20px, 5.85vw, 80px);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--brown-earth);
  font-family: "Inter", Arial, sans-serif;
  background: var(--amazon-cream);
}

body.menu-open,
body.media-modal-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.page-container {
  width: min(100%, calc(var(--container) + (var(--page-padding) * 2)));
  margin: 0 auto;
  padding-inline: var(--page-padding);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--forest-green-dark);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* CABEÇALHO PRINCIPAL */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid rgba(74, 44, 10, 0.08);
  background: rgba(253, 246, 236, 0.96);
  transition:
    height 300ms var(--ease-premium),
    background 300ms ease,
    box-shadow 300ms ease;
}

.site-header.is-scrolled {
  --header-height: 68px;
  background: rgba(253, 246, 236, 0.91);
  box-shadow: 0 10px 35px rgba(45, 26, 7, 0.1);
  backdrop-filter: blur(16px);
}

.header-container {
  width: min(100%, calc(var(--container) + (var(--page-padding) * 2)));
  height: 100%;
  margin: 0 auto;
  padding-inline: var(--page-padding);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 3.3vw, 48px);
}

.brand {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  transition:
    width 300ms var(--ease-premium),
    height 300ms var(--ease-premium);
}

.site-header.is-scrolled .brand img {
  width: 46px;
  height: 46px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.34rem;
  font-weight: 600;
  line-height: 1;
}

.brand-copy small {
  color: var(--forest-amber);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.main-navigation {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.6vw, 38px);
}

.main-navigation a {
  position: relative;
  padding: 10px 0;
  color: #33271d;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.main-navigation a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--forest-amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease-premium);
}

.main-navigation a:hover,
.main-navigation a:focus-visible,
.main-navigation a.is-active {
  color: var(--forest-amber);
}

.main-navigation a:hover::after,
.main-navigation a:focus-visible::after,
.main-navigation a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.whatsapp-button {
  min-width: max-content;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 6px;
  color: var(--white);
  background: var(--forest-green-dark);
  box-shadow: 0 10px 24px rgba(36, 71, 12, 0.17);
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 250ms ease,
    box-shadow 300ms ease,
    transform 300ms var(--ease-premium);
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  background: var(--forest-green);
  box-shadow: 0 14px 30px rgba(36, 71, 12, 0.24);
  transform: translateY(-2px);
}

.whatsapp-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.menu-toggle {
  width: 45px;
  height: 45px;
  padding: 10px;
  display: none;
  gap: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--brown-earth);
  transition:
    opacity 250ms ease,
    transform 300ms var(--ease-premium);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO EDITORIAL */
.stories-hero {
  position: relative;
  isolation: isolate;
  min-height: 390px;
  padding-top: var(--header-height);
  display: flex;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-deep);
}

.stories-hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  filter: saturate(0.85) contrast(1.06) brightness(0.82);
  transform: scale(1.015);
}

.stories-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 25, 4, 0.96) 0%, rgba(14, 40, 7, 0.9) 43%, rgba(13, 35, 7, 0.45) 76%, rgba(7, 18, 3, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 14, 3, 0.14) 0%, rgba(5, 14, 3, 0.12) 50%, rgba(5, 14, 3, 0.72) 100%);
}

.stories-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
  background:
    radial-gradient(rgba(255, 255, 255, 0.12) 0.55px, transparent 0.75px),
    repeating-linear-gradient(115deg, rgba(245, 192, 112, 0.025) 0 1px, transparent 1px 30px);
  background-size: 4px 4px, auto;
  mix-blend-mode: soft-light;
}

.stories-hero-container {
  min-height: calc(390px - var(--header-height));
  padding-top: clamp(30px, 3vw, 42px);
  padding-bottom: clamp(30px, 3vw, 42px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.stories-hero-content {
  max-width: 720px;
}

.stories-hero-index {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cupuaçu-gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.stories-hero-index i {
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.stories-hero-index small {
  font: inherit;
}

.stories-kicker {
  margin: 0 0 7px;
  color: #cce0b1;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.stories-hero h1 {
  max-width: 690px;
  margin: 0;
  color: #fffaf2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.7rem, 3.7vw, 3.4rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.032em;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(4, 14, 2, 0.36);
}

.stories-hero-lead {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 250, 242, 0.8);
  font-size: clamp(0.86rem, 1vw, 0.96rem);
  line-height: 1.62;
}

.stories-scroll-link {
  width: fit-content;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--cupuaçu-gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.stories-scroll-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 300ms var(--ease-premium);
}

.stories-scroll-link:hover svg,
.stories-scroll-link:focus-visible svg {
  transform: translateY(4px);
}

.stories-hero-note {
  align-self: center;
  padding: 20px 0 20px 24px;
  border-left: 1px solid rgba(245, 192, 112, 0.52);
}

.stories-hero-note span {
  color: var(--cupuaçu-gold);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stories-hero-note p {
  max-width: 350px;
  margin: 11px 0 0;
  color: rgba(255, 250, 242, 0.68);
  font-size: 0.78rem;
  line-height: 1.65;
}

.stories-hero-formats {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stories-hero-formats small {
  padding: 6px 9px;
  border: 1px solid rgba(245, 192, 112, 0.22);
  border-radius: 999px;
  color: rgba(255, 250, 242, 0.78);
  font-size: 0.51rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* BIBLIOTECA DE VÍDEOS */
.library-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-height) + clamp(28px, 3vw, 42px)) 0 clamp(72px, 6vw, 92px);
  background:
    radial-gradient(circle at 90% 10%, rgba(245, 192, 112, 0.18), transparent 27rem),
    linear-gradient(180deg, #f8eee0 0%, #f2e4d1 100%);
}

.library-decoration {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(200, 125, 10, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.library-decoration-one {
  top: -260px;
  right: -150px;
  width: 520px;
  height: 520px;
}

.library-decoration-two {
  bottom: -330px;
  left: -210px;
  width: 520px;
  height: 520px;
}

.library-heading {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: end;
  gap: clamp(38px, 6vw, 82px);
}

.section-eyebrow {
  margin: 0 0 9px;
  color: var(--forest-green);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.library-heading h2,
.stories-cta h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.library-heading h2 {
  max-width: 730px;
  font-size: clamp(2.45rem, 3.5vw, 3.25rem);
  line-height: 0.98;
}

.library-heading > p {
  margin: 0 0 4px;
  padding-left: 22px;
  border-left: 1px solid rgba(200, 125, 10, 0.48);
  color: #6d5945;
  font-size: 0.86rem;
  line-height: 1.68;
}

.editorial-pillars {
  margin: 0 0 20px;
  padding: 1px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 13px;
  list-style: none;
  background: rgba(116, 75, 35, 0.14);
  box-shadow: 0 12px 30px rgba(74, 44, 10, 0.045);
}

.editorial-pillars li {
  min-width: 0;
  min-height: 76px;
  padding: 12px 13px 13px;
  display: grid;
  align-content: center;
  background: rgba(255, 250, 242, 0.72);
  transition:
    background-color 300ms ease,
    color 300ms ease;
}

.editorial-pillars li:hover {
  background: rgba(255, 252, 247, 0.96);
}

.editorial-pillars strong {
  margin-top: 0;
  overflow: hidden;
  color: var(--brown-earth);
  font-family: "Lora", Georgia, serif;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editorial-pillars small {
  margin-top: 3px;
  overflow: hidden;
  color: #7a6754;
  font-size: 0.58rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-toolbar {
  width: min(100%, 1040px);
  margin: 0 auto 28px;
  padding: clamp(20px, 2vw, 26px) clamp(24px, 3.4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  align-items: center;
  gap: clamp(34px, 5vw, 66px);
  min-height: clamp(240px, 22vw, 280px);
  overflow: hidden;
  border: 1px solid rgba(245, 192, 112, 0.32);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(8, 25, 4, 0.96) 0%, rgba(14, 40, 7, 0.88) 48%, rgba(13, 35, 7, 0.68) 100%),
    url("../assets/images/hero/hero-cultivo.jpg") center 52% / cover no-repeat;
  box-shadow: 0 22px 48px rgba(36, 71, 12, 0.2);
}

.library-toolbar-copy {
  max-width: 500px;
}

.library-toolbar-eyebrow {
  margin: 0 0 8px;
  color: var(--cupuaçu-gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.library-toolbar-copy h1 {
  max-width: 500px;
  margin: 0;
  color: #fffaf2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.15rem, 3vw, 2.85rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-shadow: 0 4px 28px rgba(4, 14, 2, 0.34);
}

.library-toolbar-story {
  padding-left: clamp(22px, 3vw, 34px);
  border-left: 1px solid rgba(245, 192, 112, 0.48);
}

.library-toolbar-story > p:first-child {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 250, 242, 0.82);
  font-size: 0.88rem;
  line-height: 1.68;
}

.library-topics {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.library-topics span {
  padding: 7px 10px;
  border: 1px solid rgba(245, 192, 112, 0.32);
  border-radius: 999px;
  color: #fff5e3;
  background: rgba(9, 29, 4, 0.38);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.library-count {
  margin: 15px 0 0;
  color: var(--cupuaçu-gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.library-grid {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(4, minmax(0, 260px));
  gap: clamp(18px, 2vw, 26px);
}

.library-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(132, 91, 42, 0.19);
  border-bottom-color: rgba(186, 130, 54, 0.5);
  border-radius: 17px;
  color: var(--brown-earth);
  text-align: left;
  background: rgba(255, 251, 245, 0.93);
  box-shadow: 0 15px 32px rgba(74, 44, 10, 0.1);
  cursor: pointer;
  transition:
    border-color 300ms ease,
    box-shadow 450ms var(--ease-premium),
    transform 450ms var(--ease-premium);
}

.library-card[hidden] {
  display: none;
}

.library-card-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: var(--forest-deep);
}

.library-card-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02) brightness(0.92);
  transform: scale(1.04);
  transition:
    filter 650ms ease,
    transform 850ms var(--ease-premium);
}

.library-card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 15, 4, 0) 35%, rgba(8, 16, 4, 0.2) 64%, rgba(8, 16, 4, 0.7) 100%),
    linear-gradient(90deg, rgba(7, 14, 4, 0.08), transparent 66%);
}

.library-card-type {
  display: none;
}

.library-card-type-short {
  color: #2f210f;
  background: rgba(245, 192, 112, 0.94);
}

.library-card-play {
  position: absolute;
  right: 17px;
  bottom: 16px;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition:
    color 300ms ease,
    background-color 300ms ease,
    transform 400ms var(--ease-premium);
}

.library-card-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.library-card-copy {
  min-height: 78px;
  padding: 17px 18px 19px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.library-card-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(0.92rem, 1.15vw, 1.08rem);
  font-weight: 500;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.library-card:hover,
.library-card:focus-visible {
  border-color: rgba(186, 130, 54, 0.65);
  box-shadow: 0 21px 42px rgba(74, 44, 10, 0.16);
  outline: none;
  transform: translateY(-6px);
}

.library-card:hover .library-card-visual > img,
.library-card:focus-visible .library-card-visual > img {
  filter: saturate(1) contrast(1.04) brightness(0.96);
  transform: scale(1.045);
}

.library-card:hover .library-card-play,
.library-card:focus-visible .library-card-play {
  color: var(--brown-earth);
  background: var(--cupuaçu-gold);
  transform: scale(1.08);
}

.library-pagination {
  margin-top: clamp(32px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
}

.library-pagination[hidden] {
  display: none;
}

.library-pagination::before,
.library-pagination::after {
  content: "";
  width: min(100%, 190px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(132, 91, 42, 0.32));
}

.library-pagination::after {
  transform: scaleX(-1);
}

.library-load-more {
  min-width: 230px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(200, 125, 10, 0.42);
  border-radius: 999px;
  color: #fffaf2;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--forest-green-dark);
  box-shadow: 0 14px 30px rgba(36, 71, 12, 0.16);
  cursor: pointer;
  transition:
    border-color 250ms ease,
    background-color 250ms ease,
    box-shadow 350ms var(--ease-premium),
    transform 350ms var(--ease-premium);
}

.library-load-more svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 350ms var(--ease-premium);
}

.library-load-more:hover,
.library-load-more:focus-visible {
  border-color: var(--cupuaçu-gold);
  color: var(--brown-earth-dark);
  background: var(--cupuaçu-gold);
  box-shadow: 0 18px 34px rgba(74, 44, 10, 0.2);
  outline: none;
  transform: translateY(-3px);
}

.library-load-more:hover svg,
.library-load-more:focus-visible svg {
  transform: translateY(2px);
}

.library-empty {
  padding: 60px 24px;
  border: 1px solid rgba(74, 44, 10, 0.1);
  border-radius: 15px;
  text-align: center;
  background: rgba(255, 250, 242, 0.62);
}

.library-empty[hidden] {
  display: none;
}

.library-empty p {
  margin: 0;
  color: #705d49;
  font-family: "Lora", Georgia, serif;
}

/* CTA FINAL */
.stories-cta {
  padding: clamp(88px, 9vw, 128px) 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(245, 192, 112, 0.2), transparent 31rem),
    var(--amazon-cream);
}

.stories-cta-content {
  display: grid;
  justify-items: center;
}

.stories-cta p {
  margin: 0 0 10px;
  color: var(--forest-green);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.stories-cta h2 {
  max-width: 760px;
  font-size: clamp(3rem, 5.1vw, 4.7rem);
  line-height: 0.95;
}

.stories-cta a {
  margin-top: 29px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 7px;
  color: var(--white);
  background: var(--forest-green-dark);
  box-shadow: 0 12px 28px rgba(36, 71, 12, 0.18);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 250ms ease,
    box-shadow 300ms ease,
    transform 300ms var(--ease-premium);
}

.stories-cta a:hover,
.stories-cta a:focus-visible {
  background: var(--forest-green);
  box-shadow: 0 16px 34px rgba(36, 71, 12, 0.25);
  outline: none;
  transform: translateY(-2px);
}

.stories-cta a svg,
.footer-return svg,
.media-youtube-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* RODAPÉ */
.site-footer {
  padding: 28px 0;
  color: rgba(255, 250, 242, 0.72);
  background: #091805;
}

.footer-layout {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.footer-brand span {
  display: grid;
}

.footer-brand strong {
  color: #fffaf2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
}

.footer-brand small {
  margin-top: 3px;
  color: var(--cupuaçu-gold);
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-layout > p {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: 0.72rem;
  text-align: center;
}

.footer-return {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cupuaçu-gold);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

/* PLAYER MODAL */
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  padding: clamp(18px, 3vw, 42px);
  display: grid;
  place-items: center;
}

.media-modal[hidden] {
  display: none;
}

.media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 5, 0.91);
  backdrop-filter: blur(14px);
}

.media-dialog {
  position: relative;
  width: min(100%, 1080px);
  max-height: calc(100svh - clamp(36px, 6vw, 84px));
  overflow: hidden auto;
  border: 1px solid rgba(245, 192, 112, 0.24);
  border-radius: 18px;
  color: #fffaf2;
  background: #0d1808;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  outline: none;
}

.media-dialog-header {
  min-height: 68px;
  padding: 14px 17px 13px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(245, 192, 112, 0.16);
}

.media-dialog-header span {
  display: block;
  margin-bottom: 3px;
  color: var(--cupuaçu-gold);
  font-size: 0.51rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.media-dialog-header h2 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(0.92rem, 1.4vw, 1.1rem);
  font-weight: 500;
  line-height: 1.3;
}

.media-dialog-close {
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fffaf2;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition:
    border-color 250ms ease,
    color 250ms ease,
    transform 300ms var(--ease-premium);
}

.media-dialog-close:hover,
.media-dialog-close:focus-visible {
  border-color: var(--cupuaçu-gold);
  color: var(--cupuaçu-gold);
  outline: none;
  transform: rotate(4deg) scale(1.05);
}

.media-dialog-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.media-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050803;
}

.media-stage-ambient {
  position: absolute;
  inset: -28px;
  opacity: 0;
  background-image:
    linear-gradient(rgba(4, 8, 2, 0.48), rgba(4, 8, 2, 0.48)),
    var(--media-poster);
  background-position: center;
  background-size: cover;
  filter: blur(22px) saturate(0.82);
  transform: scale(1.1);
}

.media-player {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #000;
}

.media-player iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.media-dialog.is-short .media-stage {
  height: min(64vh, 600px);
  aspect-ratio: auto;
}

.media-dialog.is-short .media-stage-ambient {
  opacity: 0.72;
}

.media-dialog.is-short .media-player {
  width: auto;
  height: 100%;
  aspect-ratio: 9 / 16;
  box-shadow: 0 0 54px rgba(0, 0, 0, 0.46);
}

.media-dialog.is-short .media-dialog-header span {
  display: none;
}

.media-dialog-footer {
  min-height: 46px;
  padding: 10px 18px 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.media-dialog-footer p {
  margin: 0;
  color: rgba(255, 250, 242, 0.53);
  font-size: 0.72rem;
  line-height: 1.5;
}

.media-youtube-link {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cupuaçu-gold);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 621px) {
  .media-dialog:not(.is-short) {
    width: min(100%, 1080px, calc(177.78svh - 352px));
  }
}

/* ENTRADAS SUAVES */
.has-js [data-reveal].reveal-pending {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 850ms var(--ease-premium);
}

.has-js [data-reveal].reveal-pending.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVIDADE DO CABEÇALHO */
@media (max-width: 1080px) {
  .header-container {
    gap: 18px;
  }

  .brand-copy {
    display: none;
  }

  .main-navigation {
    gap: 18px;
  }

  .main-navigation a {
    font-size: 0.74rem;
  }

  .stories-hero-container {
    grid-template-columns: 1fr;
  }

  .library-card-copy {
    padding-inline: 18px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 72px;
    --page-padding: clamp(20px, 5vw, 40px);
  }

  .site-header.is-scrolled {
    --header-height: 64px;
  }

  .header-container {
    grid-template-columns: auto 1fr auto;
  }

  .brand {
    position: relative;
    z-index: 2;
  }

  .brand-copy {
    display: grid;
    gap: 2px;
  }

  .brand-copy strong {
    font-size: 1.34rem;
  }

  .brand-copy small {
    font-size: 0.54rem;
    letter-spacing: 0.01em;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    grid-column: 3;
    justify-self: end;
    display: grid;
    align-content: center;
  }

  .main-navigation {
    position: fixed;
    inset: 0;
    z-index: 1;
    padding: calc(var(--header-height) + 50px) var(--page-padding) 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    background:
      radial-gradient(circle at 85% 12%, rgba(245, 192, 112, 0.16), transparent 28rem),
      var(--amazon-cream);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-14px);
    transition:
      visibility 300ms step-end,
      opacity 300ms ease,
      transform 400ms var(--ease-premium);
  }

  .main-navigation.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition:
      visibility 0s step-start,
      opacity 300ms ease,
      transform 400ms var(--ease-premium);
  }

  .main-navigation a {
    width: 100%;
    padding: 12px 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    font-weight: 600;
  }

  .main-navigation a::after {
    display: none;
  }

  .whatsapp-button {
    display: none;
  }

  .stories-hero {
    min-height: 470px;
  }

  .stories-hero-container {
    min-height: calc(470px - var(--header-height));
    grid-template-columns: 1fr;
    align-content: center;
  }

  .library-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .library-heading > p {
    max-width: 650px;
  }

  .library-toolbar {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .library-toolbar-copy,
  .library-toolbar-copy h1,
  .library-toolbar-story {
    max-width: 680px;
  }

  .editorial-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .library-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 240px));
  }

}

@media (max-width: 620px) {
  .brand {
    gap: 8px;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .site-header.is-scrolled .brand img {
    width: 52px;
    height: 52px;
  }

  .stories-hero {
    min-height: 470px;
  }

  .stories-hero-image {
    object-position: 64% center;
  }

  .stories-hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 25, 4, 0.94) 0%, rgba(13, 36, 7, 0.78) 100%),
      linear-gradient(180deg, rgba(5, 14, 3, 0.2) 0%, rgba(5, 14, 3, 0.16) 40%, rgba(5, 14, 3, 0.78) 100%);
  }

  .stories-hero-container {
    min-height: calc(470px - var(--header-height));
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .stories-hero h1 {
    font-size: clamp(2.5rem, 11vw, 3rem);
    line-height: 0.96;
  }

  .stories-hero-lead {
    margin-top: 15px;
    font-size: 0.88rem;
  }

  .library-section {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 88px;
  }

  .library-heading {
    margin-bottom: 24px;
  }

  .library-heading h2 {
    font-size: clamp(2.55rem, 11.5vw, 3.2rem);
  }

  .library-heading > p {
    font-size: 0.84rem;
  }

  .editorial-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
  }

  .editorial-pillars li {
    min-height: 69px;
  }

  .library-toolbar {
    margin-bottom: 22px;
    padding: 21px 18px;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 20px;
    border-radius: 15px;
    background-position: center, 64% center;
  }

  .library-toolbar-copy h1 {
    font-size: clamp(1.95rem, 8.7vw, 2.25rem);
  }

  .library-toolbar-story {
    padding: 18px 0 0;
    border-top: 1px solid rgba(200, 125, 10, 0.3);
    border-left: 0;
  }

  .library-count {
    margin-top: 13px;
  }

  .library-topics {
    margin-top: 15px;
    gap: 7px;
  }

  .library-topics span {
    padding: 7px 9px;
    font-size: 0.66rem;
  }

  .library-grid {
    grid-template-columns: minmax(0, 350px);
    gap: 22px;
  }

  .library-card-copy {
    min-height: 76px;
    padding: 17px 18px 19px;
  }

  .library-pagination {
    margin-top: 30px;
    gap: 12px;
  }

  .library-pagination::before,
  .library-pagination::after {
    width: min(100%, 42px);
  }

  .library-load-more {
    width: min(100%, 350px);
    min-width: 0;
  }

  .stories-cta {
    padding-block: 80px;
  }

  .stories-cta h2 {
    font-size: clamp(2.3rem, 10.5vw, 2.9rem);
  }

  .stories-cta a {
    width: 100%;
    justify-content: center;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 22px;
    text-align: center;
  }

  .media-modal {
    padding: 0;
  }

  .media-dialog {
    width: 100%;
    max-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .media-dialog-header {
    min-height: 66px;
    padding-inline: 18px 14px;
  }

  .media-dialog-close {
    width: 40px;
    height: 40px;
  }

  .media-dialog.is-short .media-stage {
    height: min(76svh, 720px);
  }

  .media-dialog.is-short .media-stage-ambient {
    opacity: 0.3;
  }

  .media-dialog-footer {
    padding: 12px 16px 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* NAVEGACAO MULTIPAGINA E SUBMENU DE PRODUTOS */
.nav-products {
  position: relative;
  flex: 0 0 auto;
}

.nav-products-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-products-trigger svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 220ms var(--ease-premium);
}

.nav-products-submenu {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  z-index: 10;
  width: max-content;
  min-width: 218px;
  padding: 9px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(74, 44, 10, 0.1);
  border-radius: 12px;
  background: rgba(253, 246, 236, 0.98);
  box-shadow: 0 18px 44px rgba(45, 26, 7, 0.16);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition:
    visibility 180ms step-end,
    opacity 180ms ease,
    transform 220ms var(--ease-premium);
}

.nav-products-submenu::before {
  content: "";
  position: absolute;
  inset: -4px 0 auto;
  height: 4px;
}

.nav-products:hover .nav-products-submenu,
.nav-products:focus-within .nav-products-submenu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition:
    visibility 0s step-start,
    opacity 180ms ease,
    transform 220ms var(--ease-premium);
}

.nav-products:hover .nav-products-trigger svg,
.nav-products:focus-within .nav-products-trigger svg {
  transform: rotate(180deg);
}

.main-navigation .nav-products-submenu a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--brown-earth);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
}

.main-navigation .nav-products-submenu a::after {
  display: none;
}

.main-navigation .nav-products-submenu a:hover,
.main-navigation .nav-products-submenu a:focus-visible {
  color: var(--forest-green);
  background: rgba(200, 125, 10, 0.09);
}

@media (max-width: 860px) {
  body.menu-open .site-header.is-scrolled {
    backdrop-filter: none;
  }

  .main-navigation {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-products {
    width: 100%;
  }

  .nav-products-trigger {
    justify-content: space-between;
  }

  .main-navigation .nav-products-trigger:focus-visible {
    border-radius: 8px;
    outline: none;
    box-shadow: 0 0 0 2px rgba(200, 125, 10, 0.22);
  }

  .nav-products-trigger svg {
    width: 17px;
    height: 17px;
    transform: rotate(0);
  }

  .main-navigation .nav-products .nav-products-submenu {
    position: static;
    width: 100%;
    min-width: 0;
    max-height: 0;
    margin: 0;
    padding: 0 0 0 17px;
    overflow: hidden;
    border: 0;
    border-left: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
      max-height 360ms var(--ease-premium),
      margin 300ms var(--ease-premium),
      padding 300ms var(--ease-premium),
      border-color 260ms ease,
      opacity 220ms ease,
      transform 300ms var(--ease-premium),
      visibility 220ms step-end;
  }

  .main-navigation .nav-products.is-expanded .nav-products-submenu {
    max-height: 180px;
    margin: 0 0 5px;
    padding: 2px 0 5px 17px;
    border-left-color: rgba(200, 125, 10, 0.32);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition:
      max-height 420ms var(--ease-premium),
      margin 300ms var(--ease-premium),
      padding 300ms var(--ease-premium),
      border-color 260ms ease,
      opacity 220ms ease,
      transform 300ms var(--ease-premium),
      visibility 0s step-start;
  }

  .main-navigation .nav-products.is-expanded .nav-products-trigger svg {
    transform: rotate(180deg);
  }

  .main-navigation .nav-products-submenu a {
    padding: 7px 0 7px 12px;
    color: rgba(74, 44, 10, 0.76);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
  }
}
