/* Tiago Almeida · Cartomancia
   Paleta e tipografia da marca: creme, azul-noite, dourado; Lora + Poppins. */

@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --cream: #F4EFE4;
  --cream-2: #EBE4D4;
  --paper: #FBF8F2;
  --navy: #16233B;
  --navy-2: #1F2F4D;
  --ink-soft: #4A5468;
  --gold: #8C7434;
  --gold-light: #C9B27A;
  --line: rgba(140, 116, 52, 0.35);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
  --radius: 2px;
  --shadow: 0 1px 2px rgba(22, 35, 59, 0.06), 0 8px 24px rgba(22, 35, 59, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--cream); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Tipografia */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
em, .it { font-style: italic; }
.eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 1.1rem; display: inline-flex; align-items: center; gap: .8rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.25rem); font-style: italic; color: var(--ink-soft); max-width: 36em; }
.small { font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-size: .9rem; font-weight: 500; letter-spacing: .02em;
  padding: .95rem 1.6rem; border: 1px solid var(--navy); border-radius: var(--radius);
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
  min-height: 48px;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.btn-light:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(244,239,228,.5); }
.btn-outline-light:hover { border-color: var(--cream); background: rgba(244,239,228,.08); color: var(--cream); }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.center .actions { justify-content: center; }
.textlink { font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--navy); text-decoration: underline; }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 228, 0.94);
  backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.brand-tag { font-family: var(--sans); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-family: var(--sans); font-size: .86rem; text-decoration: none; color: var(--navy); padding: .3rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--navy); }
.nav .btn { padding: .65rem 1.1rem; min-height: 42px; font-size: .84rem; border-bottom: 1px solid var(--navy); color: var(--cream); }
.nav .btn:hover { color: #fff; border-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--cream);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1.5rem;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(22,35,59,.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--line); }
  .nav .btn { margin-top: 1.2rem; min-height: 50px; font-size: .95rem; }
}

/* Secções */
section { padding: clamp(64px, 9vw, 112px) 0; }
.bg-paper { background: var(--paper); }
.bg-sand { background: var(--cream-2); }
.bg-navy { background: var(--navy); color: var(--cream); }
.bg-navy .eyebrow { color: var(--gold-light); }
.bg-navy .eyebrow::before { background: var(--gold-light); }
.bg-navy .lead, .bg-navy .small { color: rgba(244,239,228,.78); }
.bg-navy a:not(.btn) { color: var(--cream); }
.rule { border: 0; height: 1px; background: var(--line); margin: 0; }

/* Moldura dourada com cantos (motivo da marca) */
.frame { position: relative; border: 1px solid var(--line); padding: clamp(28px, 4vw, 44px); background: var(--paper); }
.frame::before, .frame::after, .frame > .c1, .frame > .c2 { content: ""; position: absolute; width: 16px; height: 16px; border-color: var(--gold); border-style: solid; }
.frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.frame::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.frame > .c1 { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.frame > .c2 { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.bg-navy .frame { background: var(--navy-2); border-color: rgba(201,178,122,.35); }
.bg-navy .frame::before, .bg-navy .frame::after, .bg-navy .frame > .c1, .bg-navy .frame > .c2 { border-color: var(--gold-light); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap.narrow { display: block; }
.hero .wrap:not(.narrow) { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero .meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.6rem; font-family: var(--sans); font-size: .8rem; color: var(--ink-soft); }
.hero .meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero .meta span::before { content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.mesa { width: 100%; max-width: 440px; margin-left: auto; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .mesa { max-width: 360px; margin: 8px auto 0; }
}

/* Grelhas */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.center.section-head { margin-left: auto; margin-right: auto; }

/* Cartões de serviço */
.offer { display: flex; flex-direction: column; height: 100%; }
.offer .tag { font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.offer h3 { font-size: 1.55rem; margin-bottom: .3rem; }
.price { font-family: var(--serif); font-size: 2.6rem; line-height: 1; margin: .9rem 0 1.1rem; }
.price small { font-family: var(--sans); font-size: .8rem; color: var(--ink-soft); margin-left: .35rem; letter-spacing: .02em; }
.bg-navy .price small { color: rgba(244,239,228,.7); }
.offer ul { list-style: none; padding: 0; margin: 0 0 1.6rem; font-size: 1rem; }
.offer li { padding: .55rem 0 .55rem 1.5rem; position: relative; border-top: 1px solid var(--line); }
.offer li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.offer .btn { margin-top: auto; width: 100%; }
.offer.featured { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.offer.featured::before, .offer.featured::after, .offer.featured > .c1, .offer.featured > .c2 { border-color: var(--gold-light); }
.offer.featured .tag { color: var(--gold-light); }
.offer.featured li { border-color: rgba(201,178,122,.3); }
.offer.featured .price small { color: rgba(244,239,228,.7); }

/* Passos */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold); margin-bottom: .6rem; }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.bg-navy .steps li { border-color: rgba(201,178,122,.3); }
.bg-navy .steps p { color: rgba(244,239,228,.75); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Pilares (sigilo) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(201,178,122,.3); margin-top: 2.4rem; }
.pillars div { padding: 1.6rem 1.6rem 0 0; }
.pillars div + div { padding-left: 1.6rem; border-left: 1px solid rgba(201,178,122,.3); }
.pillars h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.pillars p { font-size: .98rem; color: rgba(244,239,228,.75); margin: 0; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars div, .pillars div + div { padding: 1.3rem 0; border-left: 0; border-bottom: 1px solid rgba(201,178,122,.3); }
}

/* Citação */
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.45; margin: 0; }
.quote-sign { font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 1.2rem; }

/* Prosa longa */
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--gold); }

/* Perguntas (details) */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.35rem 2.5rem 1.35rem 0; position: relative;
  font-family: var(--serif); font-size: 1.18rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 1.5rem; color: var(--ink-soft); max-width: 44em; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Guia das cartas */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.card { background: var(--paper); border: 1px solid var(--line); padding: 1.3rem 1.3rem 1.2rem; position: relative; }
.card .n { font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; color: var(--gold); }
.card h3 { font-size: 1.22rem; margin: .25rem 0 .1rem; }
.card .de { font-family: var(--serif); font-style: italic; font-size: .88rem; color: var(--ink-soft); margin-bottom: .7rem; }
.card p { font-size: .95rem; line-height: 1.6; margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-family: var(--sans); font-size: .85rem; margin-top: 1.4rem; }

/* Tabela de disposição Mesa Real */
.note { border-left: 2px solid var(--gold); padding: .2rem 0 .2rem 1.2rem; font-style: italic; color: var(--ink-soft); }

/* Barra fixa em telemóvel */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--navy); padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px; box-shadow: 0 -6px 20px rgba(22,35,59,.18);
}
.mobile-cta .btn { flex: 1; padding: .8rem .6rem; font-size: .86rem; }
@media (max-width: 720px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
}

/* Rodapé */
.site-footer { background: var(--navy); color: rgba(244,239,228,.8); padding: 64px 0 36px; font-family: var(--sans); font-size: .88rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-family: var(--sans); font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .55rem; }
.site-footer .brand-name { color: var(--cream); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(201,178,122,.25); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .78rem; color: rgba(244,239,228,.6); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--cream); cursor: pointer; }
.linkbtn:hover { color: var(--gold-light); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Banner de cookies */
.consent {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 460px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(22,35,59,.2);
  padding: 1.3rem 1.4rem; font-family: var(--sans); font-size: .86rem; line-height: 1.6;
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 1rem; color: var(--navy); }
.consent .row { display: flex; gap: .6rem; }
.consent .btn { flex: 1; min-height: 44px; padding: .6rem 1rem; font-size: .85rem; }
@media (max-width: 720px) { .consent { bottom: 86px; } }

/* Utilitários */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
