/* ============================================================
   TRIO · Landing Page de Aniversários, bodas e celebrações
   Fonts: Miller (display serif) → fallback Playfair Display
          General Sans (sans) → Fontshare
   Cores:  #f9f8f4 (creme)  #510303 (bordô)  #490a03 (footer)
   Base de layout: 1440px (Figma `Trio_LP_Aniversários_V3.1`)
   ============================================================ */

:root {
  --cream: #f9f8f4;
  --bordo: #510303;
  --bordo-deep: #490a03;

  --serif: "Playfair Display", "Miller", Georgia, serif;
  --sans: "General Sans", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--bordo);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

p { margin: 0; }

em { font-style: italic; }

.serif-italic { font-family: var(--serif); font-style: italic; }
.serif-light-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- Rules / dividers ---------- */
.rule {
  display: block;
  width: 220px;
  height: 1px;
  background: var(--cream);
}
.rule--dark { background: var(--bordo); width: 480px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  padding: 16px 36px;
  line-height: 1;
  transition: background-color .25s ease, color .25s ease;
}
.btn--light {
  background: var(--cream);
  border: 1px solid var(--cream);
  color: var(--bordo);
  font-size: 15px;
}
.btn--light:hover { background: #fffdf8; border-color: #fffdf8; }
.btn--dark {
  background: var(--bordo);
  border: 1px solid var(--bordo);
  color: var(--cream);
  font-size: 15px;
}
.btn--dark:hover { background: #6b1717; border-color: #6b1717; }

/* ---------- Shared display headings ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--bordo);
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.02;
  margin: 0;
  text-align: center;
  max-width: 1083px;
}
.display em { font-family: var(--serif); font-style: italic; }
.display--center { margin-inline: auto; }

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 952px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--cream);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
/* Vinheta + degradês do layout (efeito_hero_01/02 vieram achatados do
   Figma, sem alpha — o equivalente é reproduzido aqui em CSS) */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%, rgba(0,0,0,.78), rgba(0,0,0,.18) 75%),
    linear-gradient(to bottom, rgba(0,0,0,.36), rgba(0,0,0,0) 18%, rgba(0,0,0,0) 82%, rgba(0,0,0,.40));
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__logo {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 70px;
}
.hero__wordmark { width: 105px; height: auto; }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 84px);
  line-height: 0.98;
  text-transform: uppercase;
  margin: 0;
}
.hero__subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
  max-width: 700px;
  margin: 44px auto 40px;
}

/* ============================================================
   2. MANIFESTO
   ============================================================ */
.manifesto {
  text-align: center;
  padding: 120px 24px 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}
.manifesto .display { max-width: 1000px; }
.manifesto__text {
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 31px);
  line-height: 1.3;
  max-width: 981px;
}

/* ============================================================
   3. SOLUÇÃO
   ============================================================ */
.solucao { padding: 0 0 0; }
.solucao__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 0 24px;
  margin-bottom: 70px;
}
.solucao__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 80px;
}
.solucao__col h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.05;
  margin: 0 0 18px;
}
.solucao__col p {
  font-family: var(--serif);
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.45;
}
.solucao__slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 532;
  max-height: 560px;
  overflow: hidden;
}
.solucao__slider > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.solucao__slider > img.is-on { opacity: 1; }
.solucao__dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}
.solucao__dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--cream);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background-color .3s ease;
}
.solucao__dots button.is-on { background: var(--cream); }

/* ============================================================
   4. GASTRONOMIA
   ============================================================ */
.gastronomia { padding: 110px 0 0; overflow: hidden; }
.gastronomia__top {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 56px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 100px 50px;
  align-items: start;
}
.gastronomia__title {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(44px, 5vw, 73px);
  line-height: 1;
  margin: 0;
  max-width: 640px;
}
.gastronomia__aside {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 6px;
}
.gastronomia__aside p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
}
.gastronomia__aside .btn { align-self: flex-start; }

.gastronomia__rail {
  display: flex;
  gap: 0;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gastronomia__rail img {
  flex: 0 0 227px;
  height: 341px;
  object-fit: cover;
}

/* ============================================================
   5. ESPAÇOS (horizontal cards)
   ============================================================ */
.espacos { padding: 100px 0 110px; }
.espacos__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-bottom: 60px;
  padding: 0 24px;
}
.cards {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  padding: 4px 80px 24px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.cards::-webkit-scrollbar { height: 6px; }
.cards::-webkit-scrollbar-thumb { background: rgba(81,3,3,.25); border-radius: 3px; }
.card {
  flex: 0 0 auto;
  width: 461px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
}
.card--active { width: 610px; gap: 26px; }
.card__img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bordo);
  overflow: hidden;
}
.card__img > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__img::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(0,0,0,0), #000);
}
/* Enquadramento de cada foto (recortes do layout do Figma) */
.card:nth-child(1) .card__img > img:first-child { object-position: center 86%; }
.card:nth-child(2) .card__img > img:first-child { object-position: 30% center; }
.card:nth-child(3) .card__img > img:first-child { object-position: center 78%; }
.card:nth-child(4) .card__img > img:first-child { object-position: 66% center; }
.card:nth-child(5) .card__img > img:first-child { object-position: center center; }
.card:nth-child(6) .card__img > img:first-child { object-position: center 28%; }
.card:nth-child(7) .card__img > img:first-child { object-position: 14% center; }
.card:nth-child(8) .card__img > img:first-child { object-position: center 58%; }
/* Lockup "TRIO | espaço" exportado do Figma, centrado na base do card
   (posição do layout: 65px da lateral, ~31px da base, em card de 460px) */
.card__lockup {
  position: absolute;
  left: 50%;
  bottom: 31px;
  transform: translateX(-50%);
  width: 72%;
  max-height: 76px;
  z-index: 1;
}
.card--active .card__lockup { width: 59.5%; bottom: 43px; max-height: 100px; }
.card__caption {
  font-size: 13.6px;
  line-height: 1.3;
  color: var(--bordo);
  max-width: 461px;
}
.card--active .card__caption { font-size: 18px; max-width: 610px; }
.card__caption strong { font-weight: 600; }

/* ============================================================
   6. GALERIA
   ============================================================ */
.galeria { padding: 0 0 110px; }
.galeria h2 { margin-bottom: 70px; padding: 0 24px; text-transform: uppercase; }
.galeria__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 40px;
  height: 800px;
}
.galeria__grid .g { object-fit: cover; }
.g--side   { width: 18%; height: 50%; }
.g--tall   { width: 24%; height: 62.5%; }
.g--center { width: 40%; height: 100%; }

/* ============================================================
   7. CTA FINAL
   ============================================================ */
.cta {
  text-align: center;
  padding: 80px 24px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--bordo);
  max-width: 1340px;
  margin: 0 auto;
}
.cta__title { text-transform: uppercase; }
.cta__sub {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
  max-width: 723px;
}

/* ============================================================
   8. FORMULÁRIO
   ============================================================ */
.contato {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contato__title { margin-bottom: 56px; }
.rd-form { width: 100%; min-height: 320px; }
/* Esconde os campos de UTM/tracking do RD Station (continuam sendo enviados) */
.rd-form .bricks-form__field:has([class*="utm"]),
.rd-form .bricks-form__field:has([class*="traffic"]) { display: none !important; }

.contato__social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
}
.contato__handles p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  color: var(--bordo);
}
.contato__handles a {
  color: var(--bordo);
  text-decoration: none;
}
.contato__handles a:hover { text-decoration: underline; }

/* ============================================================
   9. FOOTER
   ============================================================ */
.footer {
  background: var(--bordo-deep);
  color: var(--cream);
}
.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 44px 70px 56px;
  display: grid;
  grid-template-columns: 1.8fr .9fr .9fr .9fr;
  gap: 40px;
}
.footer__logo { width: 118px; height: auto; margin-bottom: 56px; }
.footer__company { font-style: normal; }
.footer__company p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cream);
  margin: 0;
}
.footer__strong { font-weight: 400 !important; }
.footer__contact-title { margin-top: 22px !important; }
.footer__line { display: flex; align-items: center; gap: 8px; }
.footer__line .ic { font-size: 13px; opacity: .85; }
.footer__col h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 18px;
  color: var(--cream);
}
.footer__col a {
  display: block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 2.1;
  color: var(--cream);
  text-decoration: none;
  opacity: .92;
}
.footer__col a:hover { opacity: 1; text-decoration: underline; }
.footer a[href^="tel"],
.footer a[href^="mailto"],
.footer__line a {
  color: var(--cream) !important;
  text-decoration: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .solucao__cols { grid-template-columns: 1fr; gap: 44px; padding: 0 32px; }
  .gastronomia__top { grid-template-columns: 1fr; padding: 0 32px 40px; gap: 32px; }
  .galeria__grid { height: auto; flex-wrap: wrap; }
  .g--side, .g--tall, .g--center { width: 47%; height: 320px; }
  .footer__inner { grid-template-columns: 1fr 1fr; padding: 40px 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__logo { margin-bottom: 28px; }
}

/* ---- Tablet / small ---- */
@media (max-width: 760px) {
  .hero { min-height: 86vh; }
  .hero__logo { gap: 28px; margin-bottom: 40px; }
  .hero__subtitle { font-size: 19px; margin: 30px auto 30px; max-width: 460px; }
  .manifesto { padding: 64px 22px; gap: 26px; }
  .manifesto__text { font-size: 19px; line-height: 1.32; }
  .display { font-size: clamp(30px, 7vw, 52px); }
  .solucao__head { margin-bottom: 44px; }
  .solucao__col h3 { font-size: 24px; }
  .solucao__col p { font-size: 18px; }
  .solucao__slider { aspect-ratio: 4 / 3; max-height: 420px; }
  .gastronomia { padding-top: 70px; }
  .gastronomia__title { font-size: clamp(28px, 8vw, 46px); }
  .gastronomia__aside p { font-size: 17px; }
  .gastronomia__aside .btn { align-self: center; }
  .cta__sub { font-size: 21px; }
}

/* ---- Phone ---- */
@media (max-width: 560px) {
  .rule { width: 84px; }
  .rule--dark { width: 70%; max-width: 360px; }

  .hero { min-height: 88vh; }
  .hero__logo { gap: 22px; margin-bottom: 30px; }
  .hero__wordmark { width: 84px; }
  .hero__subtitle { font-size: 17px; line-height: 1.25; margin: 26px auto 26px; max-width: 88%; }

  .espacos { padding: 70px 0 80px; }
  .espacos__head { margin-bottom: 36px; }
  .cards {
    gap: 16px;
    padding: 4px 8vw 20px;
    scroll-snap-type: x mandatory;
  }
  .card,
  .card--active { width: 84vw; }
  .card { scroll-snap-align: center; }
  .card__caption,
  .card--active .card__caption { font-size: 14px; }

  .gastronomia { padding-top: 56px; }
  .gastronomia__title { font-size: 30px; line-height: 1.05; }
  .gastronomia__top { padding: 0 22px 32px; }
  .gastronomia__rail img { flex: 0 0 150px; height: 220px; }

  /* RD Station: empilha em uma coluna para nada ficar cortado */
  .rd-form .bricks--component,
  .rd-form form,
  .rd-form .bricks-form__fieldset,
  .rd-form .bricks-form__field {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    float: none !important;
  }

  .galeria { padding-bottom: 80px; }
  .galeria h2 { margin-bottom: 44px; }
  .galeria__grid { gap: 12px; padding: 0 22px; }
  .g--side, .g--tall, .g--center { width: 100%; height: 300px; }

  .cta { padding: 64px 22px 70px; gap: 22px; }
  .cta__sub { font-size: 19px; }
  .contato { padding: 56px 22px 50px; }
  .contato__title { margin-bottom: 36px; }
  .contato__handles p { font-size: 16px; }

  .footer__inner { grid-template-columns: 1fr; gap: 30px; padding: 40px 24px; }
  .footer__brand { grid-column: auto; }
}
