/* ==============================================================
   BASE GLOBAL — variáveis, reset e utilitários compartilhados
   Carregado logo depois do fonts.css e antes dos CSS de section.
   A tipografia (famílias, tamanhos, pesos) fica toda em fonts.css.
   ============================================================== */

:root {
  /* Cores */
  --ink: #111411;
  --paper: #fdf1e1;
  --olive: #737b3e;
  --terracotta: #c27a5a;
  --shadow: rgba(0, 0, 0, 0.32);

  /* Movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  color: var(--paper);
  background: #0b1110;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: #0b1110;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  background: #0b1110;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  border: 0;
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
  border-radius: 6px;
}

img {
  max-width: 100%;
}

/* ==============================================================
   UTILITÁRIOS COMPARTILHADOS ENTRE SECTIONS
   ============================================================== */

:root {
  --cream: #f7ead6;
  --forest: #2f3a26;
  --muted: #5d5a4f;
  --radius-lg: 28px;
  --radius-md: 18px;
  --section-pad: clamp(80px, 11vw, 150px);
  --gutter: clamp(16px, 4vw, 56px);
}

.section {
  position: relative;
  padding: var(--section-pad) var(--gutter);
  /* Espaço para o header fixo não cobrir o topo da section */
  scroll-margin-top: 110px;
}

.container {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--terracotta);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  text-wrap: balance;
}

/* Cabeçalho das sections: eyebrow + título + texto, centralizados */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 780px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-head .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-head .section-lead {
  margin-inline: auto;
}

.section-lead {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: var(--fs-subtitle);
  font-weight: var(--fw-regular);
  line-height: var(--lh-subtitle);
  letter-spacing: var(--ls-subtitle);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: var(--ls-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 260ms var(--ease-out), background-color 240ms ease, color 240ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn--accent {
  color: var(--paper);
  background: var(--terracotta);
}

.btn--accent:hover {
  background: var(--olive);
}

.btn--ghost {
  color: inherit;
  background: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
}

/* Imagem com fundo de reserva enquanto a foto real não é adicionada */
.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #b9bf8f, #737b3e 55%, #c27a5a);
  color: transparent;
}

/* Revelação suave ao rolar (ativada pelo js/main.js) */
.js .reveal {
  opacity: 0;
  translate: 0 32px;
  transition: opacity 900ms var(--ease-out), translate 900ms var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .js .reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }
}
