/* RR Vinhos — layout & components (mobile-first) */
:root {
  --cream: #FAF6EF;
  --sand: #F1E8D9;
  --ghost: #EFE6D6;
  --line: #D9CBB4;
  --line-soft: #E6DCCB;
  --ink: #2A1D18;
  --ink-2: #3D2E27;
  --muted: #5E4E45;
  --muted-2: #6B5B52;
  --wine: #7D1F2C;
  --wine-deep: #5A1520;
  --night: #2B1A17;
  --night-2: #3A221C;
  --paper: #F4ECE0;
  --paper-muted: #E3D6C3;
  --gold: #D7B98A;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --script: 'Pinyon Script', cursive;

  --gutter: 20px;
  --section-y: 64px;
  --header-h: 64px;
  --max: 1240px;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --section-y: 96px; --header-h: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--wine); text-decoration: none; -webkit-tap-highlight-color: transparent; }
p, h1, h2, h3, blockquote, ul { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.on-dark :focus-visible, .hero :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  font-weight: 400; color: var(--wine);
}
.h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 4vw + 12px, 46px); line-height: 1.1;
  text-wrap: balance;
}
.lead { font-size: 16px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.body { font-size: 16px; line-height: 1.75; color: var(--ink-2); text-wrap: pretty; }
@media (min-width: 768px) { .body { font-size: 17px; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 48px; padding: 0 28px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  border: 1px solid transparent; text-align: center;
}
.btn--wine { background: var(--wine); color: #fff; }
.btn--ghost { border-color: currentColor; color: #fff; }
.btn--ghost-paper { border-color: var(--paper); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); font-weight: 500; }
.link-arrow {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 246, 239, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__bar {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: baseline; gap: 6px; color: var(--ink); }
.logo__rr { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .02em; }
.logo__script { font-family: var(--script); font-size: 24px; color: var(--wine); }
.nav { display: none; gap: 32px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }
.nav a { color: var(--ink); position: relative; padding: 6px 0; }
.header-actions { display: flex; align-items: center; gap: 2px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer;
}
.burger { position: relative; }
.burger span {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: currentColor;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.hide-sm { display: none; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .burger { display: none; }
  .logo__rr { font-size: 28px; }
  .logo__script { font-size: 26px; }
  .hide-sm { display: inline-flex; }
}

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 35;
  background: var(--cream);
  padding: calc(var(--header-h) + 32px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__links { list-style: none; padding: 0; display: flex; flex-direction: column; }
.menu__links a {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--serif); font-size: 38px; font-weight: 500; color: var(--ink);
  padding: 10px 0; border-bottom: 1px solid var(--line-soft);
}
.menu__links small { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--wine); }
.menu__foot { display: flex; flex-direction: column; gap: 12px; }
.menu__foot .btn { width: 100%; }
.menu__meta { font-size: 13px; color: var(--muted); line-height: 1.6; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(28,16,12,.45) 0%, rgba(28,16,12,.7) 100%),
    linear-gradient(to bottom, rgba(28,16,12,.2), rgba(28,16,12,.45));
}
.hero__content {
  position: relative; padding: 72px var(--gutter) 88px; max-width: 760px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.hero__kicker { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; font-weight: 400; }
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(56px, 13vw, 112px); line-height: .95;
}
.hero__title .script { display: inline-block; font-family: var(--script); font-weight: 400; font-size: .82em; padding-right: .1em; }
.hero__text { font-size: clamp(16px, 1.2vw + 12px, 19px); line-height: 1.6; max-width: 560px; text-wrap: pretty; }
.hero__ctas { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; margin-top: 12px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: 1px; height: 48px; background: rgba(255,255,255,.25); overflow: hidden;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 50%; background: #fff;
}
@media (min-width: 600px) {
  .hero { min-height: 640px; }
  .hero__content { padding: 96px var(--gutter); }
  .hero__kicker { font-size: 12px; }
  .hero__ctas { flex-direction: row; flex-wrap: wrap; justify-content: center; width: auto; max-width: none; }
}
@media (min-width: 900px) { .hero { min-height: min(86vh, 820px); } }

/* ---------- Seleções ---------- */
.section { padding: var(--section-y) 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 24px; margin-bottom: 32px;
}
.section-head__title { display: flex; flex-direction: column; gap: 8px; }
.section-head .lead { max-width: 420px; }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.rail-dots span { width: 18px; height: 2px; background: var(--line); transition: background .3s, width .3s; }
.rail-dots span.is-active { background: var(--wine); width: 32px; }
.on-dark .rail-dots span { background: rgba(244,236,224,.25); }
.on-dark .rail-dots span.is-active { background: var(--gold); }

.card {
  background: var(--sand); display: flex; flex-direction: column; gap: 16px; padding: 16px;
}
.card__media { overflow: hidden; aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 10px; justify-content: space-between; flex: 1; }
.card__copy { display: flex; flex-direction: column; gap: 8px; }
.card__title {
  font-family: var(--serif); font-weight: 600; font-size: 22px;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.1;
}
.card__text { font-size: 14px; line-height: 1.55; font-style: italic; color: var(--muted); }

@media (min-width: 768px) {
  .rail {
    grid-auto-flow: row; grid-auto-columns: auto;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    overflow: visible; margin-inline: 0; padding: 0; gap: 24px;
  }
  .rail-dots { display: none; }
  .card { flex-direction: row; gap: 20px; padding: 20px; }
  .card__media { width: 130px; height: 200px; aspect-ratio: auto; flex-shrink: 0; }
}

/* ---------- História ---------- */
.split { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.split__media { flex: 1 1 420px; min-width: 0; }
.split__text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.historia { padding-top: 24px; }
.historia img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.historia .h2 { padding-bottom: 16px; border-bottom: 1px solid var(--line); max-width: 360px; }
.self-start { align-self: flex-start; }

/* ---------- Faixa assinatura ---------- */
.signature { position: relative; padding: 64px 0 88px; overflow: hidden; }
.signature__ghost {
  position: absolute; margin: 0; font-family: var(--serif); line-height: 1;
  color: var(--ghost); white-space: nowrap; pointer-events: none; user-select: none;
}
.signature__ghost--top { top: 0; left: 50%; translate: -50% 0; font-size: clamp(84px, 17vw, 230px); letter-spacing: .06em; }
.signature__ghost--bottom { bottom: 8px; right: 3%; font-size: clamp(56px, 11vw, 150px); }
.signature__inner { position: relative; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.signature__media { flex: 1 1 520px; min-width: 0; position: relative; box-shadow: 0 24px 48px rgba(42,29,24,.18); }
.signature__media .pour-wrap { overflow: hidden; }
.signature__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.seal {
  position: absolute; right: 12px; bottom: -22px; width: 72px; height: 72px; border-radius: 50%;
  background: var(--wine); color: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 22px;
  box-shadow: inset 0 0 0 5px rgba(0,0,0,.18), 0 6px 14px rgba(0,0,0,.2);
}
.signature__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.signature__script { font-family: var(--script); font-size: clamp(54px, 7vw, 84px); line-height: 1; color: var(--wine); }
.signature__addr { font-size: 14px; letter-spacing: .08em; color: var(--muted); }
@media (min-width: 768px) {
  .signature { padding: 72px 0 96px; }
  .seal { right: -18px; width: 84px; height: 84px; font-size: 26px; }
}

/* ---------- Eventos ---------- */
.on-dark { background: var(--night); color: var(--paper); }
.eventos__inner { display: flex; flex-direction: column; gap: 40px; }
.eventos .eyebrow { color: var(--gold); }
.eventos .h2 { font-size: clamp(32px, 4vw + 12px, 50px); }
.eventos .lead { color: var(--paper-muted); max-width: 440px; }
.eventos .section-head { margin-bottom: 0; }
.eventos .section-head__title { max-width: 560px; gap: 12px; }
.event { display: flex; flex-direction: column; gap: 14px; }
.event__media { overflow: hidden; aspect-ratio: 4 / 5; }
.event__media img { width: 100%; height: 100%; object-fit: cover; }
.event__title { font-family: var(--serif); font-weight: 500; font-size: 26px; }
.event__text { font-size: 15px; line-height: 1.65; color: var(--paper-muted); }
.eventos .rail { grid-auto-columns: 78%; }
@media (min-width: 768px) {
  .eventos .rail { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-auto-columns: auto; }
}

/* ---------- Presentes ---------- */
.presentes__text { flex: 1 1 340px; }
.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--ink-2); }
.ticks li { display: flex; gap: 12px; align-items: center; }
.ticks li::before { content: ""; width: 18px; height: 1px; background: var(--wine); flex-shrink: 0; }
.trio { flex: 1.3 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trio__item { overflow: hidden; aspect-ratio: 2 / 3; }
.trio__item:nth-child(2) { margin-top: 28px; }
.trio__item img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
  .trio { gap: 12px; }
  .trio__item:nth-child(2) { margin-top: 40px; }
}

/* ---------- Depoimentos ---------- */
.depo { padding-top: 0; }
.depo__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.depo__text { gap: 24px; }
.depo__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.rating { font-size: 14px; color: var(--muted); }
.rating strong { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); }
.quote-mark { font-family: var(--serif); font-size: 64px; line-height: .4; color: var(--wine); height: 20px; }
.quote { display: flex; flex-direction: column; gap: 12px; }
.quote p { font-family: var(--serif); font-size: clamp(22px, 1.4vw + 16px, 25px); line-height: 1.4; font-style: italic; text-wrap: pretty; }
.quote footer, .quote-sm footer { font-size: 14px; letter-spacing: .06em; color: var(--muted); }
.quotes-sm {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.quote-sm { display: flex; flex-direction: column; gap: 8px; }
.quote-sm p { font-size: 15px; line-height: 1.6; font-style: italic; color: var(--ink-2); }
.quote-sm footer { font-size: 13px; letter-spacing: 0; }

/* ---------- CTA ---------- */
.cta { background: var(--night-2); color: var(--paper); display: flex; flex-wrap: wrap; }
.cta__media { flex: 1 1 460px; min-height: 300px; position: relative; overflow: hidden; }
.cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__text {
  flex: 1 1 420px; padding: 56px var(--gutter) 64px;
  display: flex; flex-direction: column; gap: 20px; justify-content: center;
}
.cta__text .lead { color: var(--paper-muted); max-width: 440px; }
.cta__btns { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
@media (min-width: 600px) {
  .cta__btns { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 768px) {
  .cta__media { min-height: 380px; }
  .cta__text { padding: 72px clamp(24px, 6vw, 88px); }
}

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px;
  padding-top: 40px; border-top: 1px solid var(--line);
}
.footer-col { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.footer-col h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--ink); }
.footer-col a { color: var(--muted); min-height: 32px; display: inline-flex; align-items: center; }
.footer-col--wide { grid-column: 1 / -1; }
.footer-legal { margin-top: 40px; text-align: center; font-size: 12px; color: var(--muted-2); letter-spacing: .06em; }
@media (min-width: 768px) {
  .site-footer { padding-top: 72px; }
  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px 32px; }
  .footer-col { gap: 10px; }
  .footer-col a { min-height: 0; }
  .footer-col--wide { grid-column: auto; }
  .footer-legal { margin-top: 48px; }
}

/* ---------- Floating WhatsApp (mobile) ---------- */
.fab {
  position: fixed; z-index: 30;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wine); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(42,29,24,.28);
}
@media (min-width: 900px) { .fab { display: none; } }
