/* Fontes — @font-face + famílias (antigo fonts.css) */
@font-face { font-family: "AMC Display"; src: url("../fonts/cormorant-garamond-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "AMC Display"; src: url("../fonts/cormorant-garamond-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "AMC Display"; src: url("../fonts/cormorant-garamond-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "AMC Text"; src: url("../fonts/manrope-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "AMC Text"; src: url("../fonts/manrope-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "AMC Text"; src: url("../fonts/manrope-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* Cormorant só em títulos, mínimo 28px; abaixo de 1024px usar peso 600. */
:root { --font-display: "AMC Display", Georgia, "Times New Roman", serif; --font-text: "AMC Text", system-ui, -apple-system, "Segoe UI", sans-serif; }

/* Tokens — cores exatas de docs/paleta.md. Não inventar cores fora daqui. (antigo tokens.css) */
:root {
  --gold: #BE9B47;
  --gold-soft: #D5BE87;
  --gold-deep: #7C652E;
  --teal: #007972;
  --teal-dark: #003633;
  --teal-deep: #001B19;
  --sand: #F3EDDE;
  --off-white: #FCFBF8;
  --ink: #000F0E;

  /* Linhas de 1px (fallback sólido antes do color-mix) */
  --line: rgba(190, 155, 71, .35);
  --line-light: rgba(252, 251, 248, .14);
  --line: color-mix(in srgb, var(--gold) 35%, transparent);
  --line-light: color-mix(in srgb, var(--off-white) 14%, transparent);

  --shadow-card: 0 20px 60px -30px rgba(0, 27, 25, .45);
  --radius-card: 20px;
  --radius-frame: 24px;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 12vw, 160px);
  --header-h: 84px;

  --fs-display: clamp(2.5rem, 6vw, 5rem);
  --fs-h2: clamp(2rem, 4vw, 3.25rem);
  --fs-h3: clamp(1.75rem, 2.4vw, 2rem);
  --fs-body: clamp(1rem, 1.1vw, 1.125rem);
  --fs-small: .875rem;
  --fs-eyebrow: .8125rem;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .5s;

  /* Breakpoints (referência; media queries não leem custom properties) */
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
}

/* Base — reset, tipografia, primitivos de layout, botões, utilitários, loader */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  min-height: 100dvh;
  font: 400 var(--fs-body)/1.6 var(--font-text);
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg { max-width: 100%; }
img { height: auto; display: block; }
video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
p { text-wrap: pretty; max-width: 65ch; }

/* Tipografia de display: Cormorant só em títulos, sempre >= 28px */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4, h5, h6 { font-family: var(--font-text); font-weight: 600; line-height: 1.25; }
@media (max-width: 1023.98px) {
  h1, h2, h3 { font-weight: 600; }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* Âncoras (#frota, #interesse…) param abaixo do header fixo */
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
::selection { background: var(--gold-soft); color: var(--teal-deep); }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section--dark { background: var(--teal-dark); color: var(--off-white); }
.section--deep { background: var(--teal-deep); color: var(--off-white); }
.section--sand { background: var(--sand); color: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 var(--fs-eyebrow)/1 var(--font-text);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.section--dark .eyebrow, .section--deep .eyebrow { color: var(--gold); }

/* Ícones de linha (partials/icon.php); .icon--dot é o fallback para ícone desconhecido */
.icon { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; flex: none; }
.icon--dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.section__head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head .lead { font-size: var(--fs-body); opacity: .82; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 .9375rem/1 var(--font-text);
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.btn--gold { background: var(--gold); color: var(--teal-deep); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, .06); }
.btn--dark { background: var(--teal-deep); color: var(--off-white); border-color: var(--teal-deep); }
.btn--dark:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn--sm { min-height: 44px; padding-inline: 22px; font-size: .875rem; }
.btn:active { transform: translateY(1px); }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .15s ease; }
}

/* Utilitários */
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--teal-deep);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.hr-gold { border: 0; height: 1px; background: var(--line); }

/* Loader — só existe na primeira visita (html.is-loading via script inline; site.js remove) */
.loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  place-items: center;
  background: var(--teal-deep);
  color: var(--teal);
}
.loader__compass { width: 64px; height: 64px; }
.loader__compass svg { width: 100%; height: 100%; }
html.is-loading .loader { display: grid; }
html.is-loading body { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .loader__compass { animation: loader-spin 1.2s linear infinite; }
}
@keyframes loader-spin { to { transform: rotate(360deg); } }
