/* =====================================================================
   50 Ideias de Presépios Natalinos — estilos (mobile-first)
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --cream: #F6F0E5;
  --cream-soft: #FBF7EF;
  --linen: #EEE4D2;
  --green: #173A2B;
  --green-deep: #10291E;
  --gold: #A77C3C;
  --gold-light: #DDBB7E;
  --gold-text: #85602A;      /* dourado com contraste AA sobre creme */
  --wine: #7B292C;
  --wine-deep: #5F1E21;
  --ink: #1E2A23;
  --muted: #4F5B54;
  --on-dark: #F6F0E5;
  --on-dark-muted: rgba(246, 240, 229, .82);

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 18px 40px -22px rgba(16, 41, 30, .45);
  --shadow-deep: 0 30px 60px -28px rgba(0, 0, 0, .6);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sticky-h: 72px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -.005em;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.15rem); color: var(--green); }

p { margin: 0; text-wrap: pretty; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 6px;
}

.section--cream :focus-visible,
.section--linen :focus-visible {
  outline-color: var(--wine);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green);
  color: var(--cream);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}
.container--narrow { width: min(100% - 32px, 780px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 56px;
  padding: 15px 28px;
  border: 0;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: linear-gradient(180deg, #E8CB91 0%, #D2AB66 100%);
  color: var(--green-deep);
  box-shadow: 0 14px 30px -14px rgba(221, 187, 126, .75), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn--gold:hover { filter: brightness(1.05); }

.btn--wine {
  background: var(--wine);
  color: var(--cream);
  box-shadow: 0 14px 30px -16px rgba(123, 41, 44, .8);
}
.btn--wine:hover { background: var(--wine-deep); }

.btn--xl {
  width: 100%;
  min-height: 64px;
  padding-inline: 16px;
  font-size: clamp(.9rem, 4vw, 1.02rem);
  letter-spacing: .04em;
}

.btn--sm {
  min-height: 46px;
  padding: 10px 18px;
  font-size: .78rem;
  border-radius: 10px;
}

.btn--block-mobile { width: 100%; }

/* ---------- Small components ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1;
}
.tag__star { width: 11px; height: 11px; }
.tag--light { color: var(--gold-light); border-color: rgba(221, 187, 126, .55); }
.tag--wine { color: var(--wine); border-color: rgba(123, 41, 44, .35); background: rgba(123, 41, 44, .05); }

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--gold-text);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--gold);
}
.ornament::before,
.ornament::after {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.ornament svg { width: 16px; height: 16px; }
.ornament--gold { color: var(--gold-light); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--cream { background: var(--cream); }
.section--linen { background: var(--linen); }
.section--green {
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(221, 187, 126, .10), transparent 60%),
    var(--green);
  color: var(--on-dark);
}

.section-head {
  max-width: 700px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}
.section-head--light h2 { color: var(--on-dark); }
.section-head--light .ornament { color: var(--gold-light); }

/* =====================================================================
   MEDIA + PLACEHOLDERS
   ===================================================================== */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: var(--ratio, 4 / 5);
  border-radius: var(--radius);
  background: radial-gradient(90% 70% at 50% 35%, #24533F, var(--green-deep));
  container-type: inline-size;
  isolation: isolate;
}

.media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  opacity: 0;
  transition: opacity .6s ease;
}
@media (min-width: 960px) {
  .media img { object-position: var(--pos-lg, var(--pos, 50% 50%)); }
}
.media.is-loaded img { opacity: 1; }

/* Placeholder: claramente identificado como "foto a inserir" */
.ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  color: var(--gold-light);
  text-align: center;
  background: radial-gradient(85% 65% at 50% 38%, var(--ph-a), var(--ph-b));
}
.ph::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(221, 187, 126, .28);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}
.ph--green { --ph-a: #2A5C46; --ph-b: #10291E; }
.ph--wine  { --ph-a: #94393C; --ph-b: #4A1618; }
.ph--brown { --ph-a: #6E5236; --ph-b: #2E2216; }
.ph--gold  { --ph-a: #9C7A45; --ph-b: #3F3019; }

.ph__art {
  width: min(58%, 220px);
  height: auto;
  aspect-ratio: 200 / 160;
  opacity: .72;
}

.ph__tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(16, 41, 30, .55);
  border: 1px solid rgba(221, 187, 126, .4);
  color: var(--gold-light);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.2;
}

.ph__label {
  display: none;
  max-width: 28ch;
  color: rgba(246, 240, 229, .85);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.4;
}
@container (min-width: 260px) {
  .ph__label { display: block; }
  .ph__tag { font-size: .66rem; }
}

/* Placeholder de capa do e-book */
.ph--cover {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .35) 0, rgba(0, 0, 0, 0) 7%, rgba(255, 255, 255, .06) 8%, rgba(0, 0, 0, 0) 11%),
    radial-gradient(90% 70% at 50% 30%, #24533F, var(--green-deep));
  padding: 34px 26px;
  gap: 14px;
}
.ph--cover::before {
  inset: 12px 12px 12px 22px;
  border: 1px solid rgba(221, 187, 126, .6);
  box-shadow: inset 0 0 0 4px rgba(16, 41, 30, 1), inset 0 0 0 5px rgba(221, 187, 126, .35);
  border-radius: 4px;
}
.ph__cover-star { width: 22px; height: 22px; color: var(--gold-light); }
.ph__cover-kicker {
  color: var(--gold-light);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.ph__cover-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 12cqi, 2.2rem);
  line-height: 1.05;
  color: var(--cream);
}
.ph--cover .ph__tag { top: auto; bottom: 22px; left: 50%; transform: translateX(-50%); white-space: nowrap; }

.media--cover {
  --ratio: 3 / 4;
  border-radius: 6px 10px 10px 6px;
  box-shadow: var(--shadow-deep);
}
.media--cover .ph { border-radius: inherit; }

/* =====================================================================
   SEÇÃO 1 — HERO
   ===================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(80% 50% at 85% 100%, rgba(123, 41, 44, .35), transparent 70%),
    var(--green);
  color: var(--on-dark);
  overflow: hidden;
}

.hero__media .media--hero {
  --ratio: auto;
  height: clamp(240px, 42svh, 460px);
  border-radius: 0;
}
.hero__media .media--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(23, 58, 43, 0) 45%, rgba(23, 58, 43, .75) 80%, var(--green) 100%);
  pointer-events: none;
}
.hero .ph__tag { top: calc(14px + env(safe-area-inset-top)); }
.hero .ph { padding-bottom: 72px; }
.hero .ph::before { display: none; }

.hero .btn {
  padding-inline: 18px;
  font-size: clamp(.84rem, 3.6vw, .95rem);
  letter-spacing: .035em;
}

.hero__content {
  position: relative;
  z-index: 3;
  width: min(100% - 32px, 1200px);
  margin: -48px auto 0;
  padding-bottom: 44px;
}

.hero__title {
  margin-top: 16px;
  font-size: clamp(2.15rem, 1.5rem + 3.2vw, 4.25rem);
  line-height: 1.02;
  color: var(--cream);
}

.hero__subtitle {
  margin-top: 14px;
  color: var(--on-dark-muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 34rem;
}

.hero__benefits {
  display: grid;
  gap: 8px;
  margin: 20px 0 24px;
  font-size: .95rem;
  font-weight: 600;
}
.hero__benefits li { display: flex; align-items: center; gap: 10px; }
.hero__benefits svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(221, 187, 126, .16);
  color: var(--gold-light);
}

/* =====================================================================
   SEÇÃO 2 — GALERIA DE ESTILOS
   ===================================================================== */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.style-card { position: relative; }
.style-card .media { --ratio: 4 / 5; box-shadow: var(--shadow-soft); }
.style-card .media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(16, 41, 30, .88) 0%, rgba(16, 41, 30, .35) 38%, rgba(16, 41, 30, 0) 60%);
  pointer-events: none;
}
.style-card .ph__art { margin-top: -18%; }

.style-card__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0 14px 14px;
  color: var(--cream);
  font-size: clamp(1.22rem, 1rem + 1.2vw, 1.85rem);
  line-height: 1.05;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

/* =====================================================================
   SPLIT (seções 3 e 5)
   ===================================================================== */
.split {
  display: grid;
  gap: 40px;
}

.split__media {
  position: relative;
  padding: 0 14px 14px 0;
}
.split__media::before {
  content: "";
  position: absolute;
  inset: 14px 0 0 14px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  opacity: .55;
}
.media--framed {
  --ratio: 4 / 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.split__body h2 { margin-bottom: 20px; }
.split__body > p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.highlight {
  margin: 28px 0 32px;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--gold);
}
.highlight p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.22;
  color: var(--wine);
}

.split .btn { width: 100%; }

/* Benefícios */
.benefits {
  display: grid;
  gap: 14px;
  margin: 8px 0 32px;
}
.benefit {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--cream-soft);
  border: 1px solid rgba(167, 124, 60, .22);
  border-radius: var(--radius);
}
.benefit p { font-size: 1rem; font-weight: 600; line-height: 1.45; color: var(--ink); }
.benefit__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--linen);
  color: var(--gold-text);
}
.benefit__icon svg { width: 24px; height: 24px; }

/* =====================================================================
   SEÇÃO 4 — CARROSSEL
   ===================================================================== */
.carousel {
  --ratio: 4 / 5;
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin-inline: auto;
}

.carousel__stage { position: relative; }

.carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  -webkit-overflow-scrolling: touch;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__viewport:focus-visible { outline-offset: 4px; }

.carousel__track { display: flex; }

.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.carousel__slide .media { border-radius: 0; }

.carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  padding: 0;
  border: 1px solid rgba(221, 187, 126, .5);
  border-radius: 50%;
  background: rgba(246, 240, 229, .94);
  color: var(--green);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s;
}
.carousel__btn:hover { background: #fff; transform: scale(1.06); }
.carousel__btn svg { width: 22px; height: 22px; }
.carousel__btn--prev { left: 10px; }
.carousel__btn--next { right: 10px; }

.carousel__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.carousel__caption {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
}
.carousel__counter {
  flex: none;
  color: var(--gold-light);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}

.carousel__thumbs {
  position: relative;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  scrollbar-width: none;
}
.carousel__thumbs::-webkit-scrollbar { display: none; }

.carousel__thumb {
  position: relative;
  flex: 0 0 56px;
  aspect-ratio: var(--ratio);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(221, 187, 126, .3);
  border-radius: 8px;
  background: radial-gradient(90% 70% at 50% 35%, #2A5C46, var(--green-deep));
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  opacity: .55;
  cursor: pointer;
  transition: opacity .2s, border-color .2s, transform .2s var(--ease);
}
.carousel__thumb:hover { opacity: .85; }
.carousel__thumb[aria-current="true"] {
  opacity: 1;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 2px var(--gold-light);
}
.carousel__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================================================================
   SEÇÃO 6 — OFERTA
   ===================================================================== */
.offer {
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(221, 187, 126, .16), transparent 70%),
    radial-gradient(70% 50% at 0% 100%, rgba(123, 41, 44, .3), transparent 70%),
    var(--green);
}

.offer-card {
  position: relative;
  display: grid;
  gap: 32px;
  max-width: 1000px;
  margin-inline: auto;
  padding: 36px 20px 28px;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  text-align: center;
}
.offer-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(167, 124, 60, .35);
  border-radius: 14px;
  pointer-events: none;
}

.offer-card__cover {
  width: min(64%, 260px);
  margin-inline: auto;
}

.offer-card__body { position: relative; }

.offer-card__title {
  margin-top: 18px;
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.2rem);
  color: var(--green);
}

.offer-card__desc {
  margin: 14px auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.offer-card__list {
  display: inline-grid;
  gap: 10px;
  margin: 24px 0 0;
  text-align: left;
  font-weight: 600;
  font-size: .97rem;
}
.offer-card__list li { display: flex; align-items: flex-start; gap: 10px; }
.offer-card__list svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  padding: 4px;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold-light);
}

.price {
  margin: 26px 0 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(167, 124, 60, .3);
}
.price__value {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.2rem, 3.2rem + 5vw, 6rem);
  line-height: .95;
  color: var(--wine);
  letter-spacing: -.01em;
}
.price__currency {
  margin-top: .32em;
  font-size: .36em;
  font-weight: 600;
  color: var(--green);
}
.price__note {
  margin-top: 8px;
  color: var(--gold-text);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.checkout-notice {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(123, 41, 44, .08);
  border: 1px solid rgba(123, 41, 44, .25);
  color: var(--wine-deep);
  font-size: .9rem;
  font-weight: 600;
}
.checkout-notice--light {
  background: rgba(246, 240, 229, .1);
  border-color: rgba(246, 240, 229, .35);
  color: var(--cream);
}

/* =====================================================================
   SEÇÃO 7 — FAQ
   ===================================================================== */
.faq { display: grid; gap: 12px; }

.faq__item {
  background: var(--cream-soft);
  border: 1px solid rgba(167, 124, 60, .25);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.faq__item:has([aria-expanded="true"]) {
  border-color: rgba(167, 124, 60, .55);
  box-shadow: var(--shadow-soft);
}

.faq__q { font-family: var(--font-body); font-size: 1rem; }

.faq__q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 16px 18px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.faq__q svg {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: var(--linen);
  color: var(--wine);
  transition: transform .3s var(--ease), background-color .2s;
}
.faq__q [aria-expanded="true"] svg { transform: rotate(45deg); background: var(--wine); color: var(--cream); }

.faq__a { padding: 0 18px 20px; }
.faq__a p { color: var(--muted); font-size: 1rem; line-height: 1.65; max-width: 60ch; }
.faq__a:not([hidden]) { animation: faq-in .35s var(--ease); }

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* =====================================================================
   CTA FINAL
   ===================================================================== */
.final-cta {
  padding-block: clamp(72px, 10vw, 128px);
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(221, 187, 126, .18), transparent 70%),
    var(--wine);
  color: var(--cream);
  text-align: center;
}
.final-cta h2 {
  margin-bottom: 30px;
  color: var(--cream);
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
}
.final-cta .btn { max-width: 560px; }
.final-cta__note {
  margin-top: 14px;
  color: rgba(246, 240, 229, .78);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* =====================================================================
   RODAPÉ
   ===================================================================== */
.footer {
  padding: 48px 0 calc(40px + var(--sticky-h) + env(safe-area-inset-bottom));
  background: var(--green-deep);
  color: rgba(246, 240, 229, .75);
  text-align: center;
  font-size: .9rem;
}
.footer__inner { display: grid; gap: 14px; justify-items: center; }
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-light);
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}
.footer__nav[hidden] { display: none; }
.footer__nav a {
  display: inline-block;
  padding: 6px 0;
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(221, 187, 126, .5);
  text-underline-offset: 4px;
}
.footer__nav a:hover { text-decoration-color: var(--gold-light); }
.footer__by {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: lowercase;
  color: rgba(246, 240, 229, .6);
}
.footer__copy { font-size: .78rem; color: rgba(246, 240, 229, .6); }

/* =====================================================================
   BARRA DE COMPRA FIXA (mobile)
   ===================================================================== */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--sticky-h);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(16, 41, 30, .97);
  border-top: 1px solid rgba(221, 187, 126, .35);
  box-shadow: 0 -12px 30px -12px rgba(0, 0, 0, .5);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s linear .35s;
}
.sticky-bar.is-visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform .35s var(--ease), visibility 0s;
}
.sticky-bar__info { display: grid; line-height: 1.25; min-width: 0; }
.sticky-bar__name {
  color: var(--cream);
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-bar__price { color: var(--gold-light); font-size: .8rem; font-weight: 600; }
.sticky-bar .btn { flex: none; }

/* =====================================================================
   ANIMAÇÕES DE ENTRADA
   ===================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.styles-grid .reveal:nth-child(2n) { transition-delay: .08s; }

/* =====================================================================
   BREAKPOINTS
   ===================================================================== */
@media (min-width: 600px) {
  .btn--block-mobile { width: auto; }
  .split .btn { width: auto; }
  .styles-grid { gap: 18px; }
  .style-card__title { padding: 0 20px 20px; }
  .carousel__thumb { flex-basis: 64px; }
  .offer-card { padding: 48px 40px 40px; }
  .final-cta .btn { width: auto; padding-inline: 40px; }
}

@media (min-width: 760px) {
  .styles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .styles-grid .reveal:nth-child(2n) { transition-delay: 0s; }
  .styles-grid .reveal:nth-child(3n + 2) { transition-delay: .08s; }
  .styles-grid .reveal:nth-child(3n) { transition-delay: .16s; }
}

@media (min-width: 960px) {
  :root { --sticky-h: 0px; }

  .sticky-bar { display: none; }

  /* Hero em duas colunas */
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(40px, 5vw, 80px);
    width: min(100% - 64px, 1240px);
    min-height: min(92vh, 860px);
    margin-inline: auto;
    padding-block: 72px;
  }
  .hero__content {
    order: 1;
    width: auto;
    margin: 0;
    padding: 0;
  }
  .hero__media {
    order: 2;
    position: relative;
    padding: 0 18px 18px 0;
  }
  .hero__media::before {
    content: "";
    position: absolute;
    inset: 18px 0 0 18px;
    border: 1px solid rgba(221, 187, 126, .5);
    border-radius: var(--radius-lg);
  }
  .hero__media .media--hero {
    --ratio: 4 / 5;
    height: auto;
    max-height: 78vh;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-deep);
  }
  .hero__media .media--hero::after { display: none; }
  .hero .ph__tag { top: 18px; }
  .hero .ph { padding-bottom: 16px; }
  .hero .ph::before { display: block; }
  .hero__subtitle { font-size: 1.15rem; }
  .hero__benefits { margin: 28px 0 36px; font-size: 1rem; }
  .hero .btn { min-height: 62px; padding-inline: 34px; font-size: 1rem; }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(48px, 7vw, 96px);
  }
  .split--benefits .split__media { order: 2; }

  /* Carrossel: imagem principal + coluna de miniaturas */
  .carousel {
    max-width: 1040px;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    grid-template-areas:
      "stage meta"
      "stage thumbs";
    grid-template-rows: auto 1fr;
    column-gap: 48px;
    row-gap: 24px;
  }
  .carousel__stage { grid-area: stage; }
  .carousel__meta {
    grid-area: meta;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 8px;
  }
  .carousel__caption { font-size: 2rem; }
  .carousel__thumbs {
    grid-area: thumbs;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-content: start;
    gap: 12px;
    overflow: visible;
  }
  .carousel__thumb { flex-basis: auto; width: 100%; }
  .carousel__btn { width: 52px; height: 52px; margin-top: -26px; }
  .carousel__btn--prev { left: 16px; }
  .carousel__btn--next { right: 16px; }

  .offer-card {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 56px;
    padding: 64px 64px 56px;
    text-align: left;
  }
  .offer-card__cover { width: 100%; max-width: 340px; }
  .offer-card__desc { margin-left: 0; }
  .price { display: flex; align-items: baseline; gap: 20px; }
  .offer-card .btn--xl { width: 100%; }
}

/* =====================================================================
   PREFERÊNCIA DE MOVIMENTO REDUZIDO
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .carousel__btn:hover { transform: none; }
}
