/* Paraiba — shared styles for the public site.
   Palette comes from the logo + storefront: paraiba teal, copper, pearl, ink. */

:root {
  --pearl: #f6f2ec;
  --paper: #fffdf9;
  --mist: #e9f6f4;
  --ink: #101418;
  --ink-2: #474e57;
  --ink-3: #7c838c;
  --line: rgba(16, 20, 24, .10);
  --line-2: rgba(16, 20, 24, .18);

  --paraiba: #2bc4bc;
  --paraiba-deep: #0b7f7a;
  --paraiba-glow: #8ff3ea;
  --copper: #c2693e;
  --copper-soft: #f4dccd;
  --wa: #1fae5b;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --brand: "Arizonia", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(16,20,24,.06), 0 12px 32px -12px rgba(16,20,24,.18);
  --shadow-lg: 0 2px 4px rgba(16,20,24,.06), 0 30px 60px -20px rgba(16,20,24,.35);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  /* clip (not hidden): hidden turns body into a scroll container on some mobile browsers, which breaks the sticky nav */
  overflow-x: clip;
}
/* freeze the page behind open dialogs (product sheet, shortlist) */
html:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--paraiba-deep); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* subtle film grain over everything — the "editorial" texture */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type ----------
   Headings: Cormorant Garamond. Brand wordmark only: Arizonia (Google Fonts).
   Body/UI: Manrope. */
.serif { font-family: var(--serif); font-weight: 500; }
h1, h2, h3 { margin: 0; font-weight: 500; }
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(52px, 9.4vw, 120px);
  line-height: .96;
  letter-spacing: -.015em;
}
.display em, .h2 em { font-style: italic; font-weight: 500; color: var(--paraiba-deep); }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.8vw, 72px); line-height: 1; letter-spacing: -.01em; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.kicker::before { content: ""; width: 18px; height: 1.5px; background: var(--copper); }
.muted { color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(16,20,24,.5); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--wa { --bg: var(--wa); --fg: #fff; }
.btn--wa:hover { box-shadow: 0 12px 28px -10px rgba(31,174,91,.7); }
.btn--paraiba { --bg: var(--paraiba); --fg: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- announcement ticker ---------- */
.ticker {
  background: var(--ink); color: var(--paraiba-glow);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  overflow: hidden; white-space: nowrap; height: 34px; display: flex; align-items: center;
}
.ticker__track { display: inline-flex; animation: ticker 32s linear infinite; }
.ticker__track span { padding: 0 22px; }
.ticker__track span::after { content: "·"; margin-left: 44px; color: var(--copper); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--pearl) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand b { font-family: var(--brand); font-weight: 400; font-size: 40px; line-height: 1.2; color: var(--paraiba-deep); }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { background: rgba(16,20,24,.06); color: var(--ink); }
@media (max-width: 760px) { .nav__links { display: none; } .nav__in { height: 60px; gap: 8px; } .brand b { font-size: 34px; } }

/* ---------- sticker (rotating circular text) ---------- */
.sticker { width: 132px; height: 132px; position: relative; }
.sticker svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.sticker text { font: 700 11.5px var(--sans); letter-spacing: .26em; text-transform: uppercase; fill: var(--ink); }
.sticker__core {
  position: absolute; inset: 30%; border-radius: 50%;
  background: var(--paraiba); display: grid; place-items: center;
  font-family: var(--brand); font-size: 30px; color: var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,.72); margin-top: 96px; padding: 72px 0 40px; position: relative; overflow: hidden; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--paraiba-glow); }
.foot__big {
  font-family: var(--brand); color: var(--paraiba);
  font-size: clamp(72px, 17vw, 210px); line-height: 1.15;
  margin: 0 0 48px; white-space: nowrap;
}
.foot__big span { color: var(--copper); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; font-size: 14px; }
.foot__grid h4 { margin: 0 0 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); font-weight: 700; }
.foot__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: rgba(255,255,255,.45); }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- floating WhatsApp ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px rgba(31,174,91,.8);
  transition: transform .25s var(--ease);
}
.fab:hover { transform: scale(1.06) rotate(-6deg); }
.fab svg { width: 28px; height: 28px; }

/* ---------- prose pages (policies, privacy, care, contact) ---------- */
.page-hero { padding-top: 72px; padding-bottom: 40px; position: relative; }
.page-hero .display { font-size: clamp(52px, 10vw, 120px); margin-top: 18px; }
.page-hero p { max-width: 560px; font-size: 18px; color: var(--ink-2); margin: 20px 0 0; }
.prose-grid { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 92px; display: grid; gap: 4px; }
.toc a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.toc a:hover { background: rgba(16,20,24,.06); color: var(--ink); }
.card {
  background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.card + .card { margin-top: 18px; }
.card h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 46px); line-height: 1.05; margin-bottom: 20px; scroll-margin-top: 96px; }
.card h2 small { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); display: block; margin-bottom: 10px; }
.list { list-style: none; margin: 0; padding: 0; counter-reset: li; }
.list li { counter-increment: li; position: relative; padding: 14px 0 14px 46px; border-top: 1px solid var(--line); color: var(--ink-2); }
.list li:first-child { border-top: 0; }
.list li::before {
  content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: 15px;
  font-size: 12px; font-weight: 800; color: var(--paraiba-deep); letter-spacing: .04em;
}
.fine { font-size: 13px; color: var(--ink-3); margin-top: 24px; }
@media (max-width: 860px) { .prose-grid { grid-template-columns: 1fr; } .toc { position: static; display: flex; flex-wrap: wrap; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
