/* ================================================================
   BOSQUE — página única
   Tokens e regras do design system do Bosque (css/bosque.css),
   reduzidos ao que esta página usa. Mobile-first.
   ================================================================ */

/* ── Tokens ───────────────────────────────────────────────────── */
:root {
  /* Marca-mãe (bloqueada — Spec §2.2) */
  --pine-900:  #1C2A22;
  --pine-700:  #2F4536;
  --linen-50:  #F3EFE7;
  --linen-200: #E4DCCB;
  --amber-500: #C97B3C;
  --sage-400:  #8A9A7B;

  /* Segmentos (só como marca decorativa nos eventos) */
  --kids:       #7FB04F;
  --well:       #9CAE93;
  --biz-copper: #B5713C;
  --wed-blush:  #D9A6A0;

  /* Semântica */
  --ink:        var(--pine-900);
  --bg:         var(--linen-50);
  --muted:      #5E6E65;   /* 4.7:1 sobre linen-50 */
  --muted-200:  #4A5950;   /* 5.4:1 sobre linen-200 */
  --amber-ink:  #865020;   /* âmbar escurecido para texto pequeno sobre linen (≥4.8:1) */
  --line:       rgba(28,42,34,.14);
  --line-dark:  rgba(243,239,231,.16);
  --on-dark:    #F3EFE7;
  --on-dark-2:  #C9D3BE;   /* texto secundário sobre pine (9.6:1) */
  --field-line: #7D8A80;   /* contorno de campo sobre pine (≥3:1) */
  --ok:         #C9D3BE;
  --error:      #F2B8A0;

  /* Tipografia */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:    'Schibsted Grotesk', system-ui, sans-serif;
  --body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --maxw:   1200px;
  --gutter: clamp(18px, 5vw, 44px);
  --r:      24px;
  --r-sm:   12px;
  --ease:   cubic-bezier(.22,.61,.36,1);
  --shadow: 0 32px 72px -28px rgba(28,42,34,.28);
}

/* ── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--amber-500); color: var(--pine-900); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h2 em, h1 em { font-style: italic; font-weight: 400; }
p { text-wrap: pretty; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2.5px solid var(--amber-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--linen-50); color: var(--ink);
  padding: .6em 1em; border-radius: 100px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 136px); }

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-ink);
}
h2.eyebrow { letter-spacing: .12em; line-height: 1.4; font-weight: 700; }
.section-title { font-size: clamp(2.1rem, 6.4vw, 3.6rem); margin-top: .4em; }

/* ── Botões ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: .8em 1.6em; border-radius: 100px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s, transform .3s var(--ease), filter .25s;
}
.btn:focus-visible { border-radius: 100px; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateY(2px); }
.btn-accent { background: var(--amber-500); color: var(--pine-900); } /* 4.55:1 */
.btn-accent:hover { filter: brightness(1.07); }
.btn-ghost-light {
  background: rgba(243,239,231,.12); color: var(--on-dark);
  border-color: rgba(243,239,231,.4);
}
.btn-ghost-light:hover { background: rgba(243,239,231,.22); }

/* ── Marca ────────────────────────────────────────────────────── */
.brand {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--sans); font-weight: 700; font-size: 1.2rem;
  letter-spacing: -.03em; text-decoration: none;
}
.brand svg { width: 20px; height: 20px; flex: none; }
.brand-dot { color: var(--amber-500); }

/* ── Topo (sobre o hero) ──────────────────────────────────────── */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  padding-block: 18px;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top .brand { color: var(--on-dark); }
.top .btn { min-height: 44px; padding: .55em 1.15em; font-size: .92rem; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex; align-items: flex-end;
  background: var(--pine-900);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
@supports not (min-height: 1svh) { .hero { min-height: 92vh; } }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  aspect-ratio: 1600 / 768;
  object-fit: cover; object-position: 50% 62%;
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(28,42,34,.55) 0%, rgba(28,42,34,0) 26%),
    linear-gradient(0deg, rgba(28,42,34,.94) 0%, rgba(28,42,34,.78) 34%, rgba(28,42,34,.2) 70%, rgba(28,42,34,0) 100%);
}
.hero__content {
  width: 100%;
  padding-top: 120px;
  padding-bottom: clamp(48px, 9vw, 96px);
  animation: rise .9s var(--ease) both;
}
.hero h1 { display: flex; flex-direction: column; gap: .35em; }
.hero__name {
  font-family: var(--sans); font-weight: 700;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark-2);
}
.hero__line {
  font-size: clamp(2.9rem, 12.5vw, 6.6rem);
  line-height: 1;
  letter-spacing: -.035em;
}
.hero__line em { color: var(--linen-200); }
.hero__sub {
  margin-top: 1.25em;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--on-dark-2);
}
.hero__cta { margin-top: 2em; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ── O espaço ─────────────────────────────────────────────────── */
.space > p:last-child {
  margin-top: 1.2em; max-width: 40ch;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
}

/* ── Eventos ──────────────────────────────────────────────────── */
.events-band { background: var(--linen-200); }
.events { display: grid; gap: clamp(32px, 5vw, 64px); }
.events__list { display: grid; border-top: 1px solid var(--line); }
.event { padding-block: 24px; border-bottom: 1px solid var(--line); }
.event h3 { font-size: clamp(1.55rem, 4.6vw, 2rem); display: flex; align-items: center; gap: .45em; }
.event h3::after {
  content: ""; width: 22px; height: 3px; border-radius: 3px;
  background: var(--seg, var(--amber-500)); flex: none; transform: translateY(.1em);
}
.event p { margin-top: .35em; color: var(--muted-200); }
.event--kids { --seg: var(--kids); }
.event--well { --seg: var(--well); }
.event--biz  { --seg: var(--biz-copper); }
.event--wed  { --seg: var(--wed-blush); }

/* ── O que nos distingue ──────────────────────────────────────── */
.dark { background: var(--pine-900); color: var(--on-dark); }
.dark .eyebrow { color: var(--sage-400); } /* 4.98:1 */
.why { display: grid; gap: clamp(40px, 7vw, 96px); }
.why__pull {
  margin-top: 1em;
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.9rem, 5.6vw, 3.1rem); line-height: 1.12; letter-spacing: -.02em;
  color: var(--linen-200);
  max-width: 16ch;
}
.why__pull::before { content: ""; display: block; width: 40px; height: 2px; background: var(--amber-500); margin-bottom: .7em; }
.why__list { border-top: 1px solid var(--line-dark); }
.why__item { padding-block: 22px; border-bottom: 1px solid var(--line-dark); }
.why__item h3 { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 500; letter-spacing: -.015em; }
.why__item p { margin-top: .4em; color: var(--on-dark-2); max-width: 46ch; }

/* ── Contacto ─────────────────────────────────────────────────── */
.contact { display: grid; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__intro > p { margin-top: 1.2em; color: var(--muted); max-width: 40ch; font-size: 1.08rem; }
.contact__alt { margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.contact__alt p { font-size: .92rem; color: var(--muted); }
.contact__mail {
  display: inline-block; margin-top: .2em;
  font-family: var(--display); font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 500;
  letter-spacing: -.02em; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .18em; text-decoration-color: var(--amber-500);
}
.contact__mail:hover { color: var(--pine-700); text-decoration-thickness: 2px; }

.form {
  background: var(--pine-900); color: var(--on-dark);
  border-radius: var(--r);
  padding: clamp(24px, 5vw, 44px);
  box-shadow: var(--shadow);
  display: grid; gap: 18px;
}
.form__title { font-size: 1.6rem; font-weight: 500; }
.form__row { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--sans); font-size: .86rem; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--on-dark-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  font: inherit; font-size: 1rem; color: var(--on-dark);
  background: rgba(243,239,231,.05);
  border: 1.5px solid var(--field-line);
  border-radius: var(--r-sm);
  padding: .7em .9em;
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C9D3BE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9em center;
  padding-right: 2.4em;
}
.field select option { color: var(--pine-900); background: var(--linen-50); }
.field ::placeholder { color: rgba(243,239,231,.55); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--on-dark-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--amber-500); background: rgba(243,239,231,.08);
  outline: 2.5px solid var(--amber-500); outline-offset: 2px; border-radius: var(--r-sm);
}
.field__error { display: none; font-size: .86rem; color: var(--error); }
.field[data-invalid] input,
.field[data-invalid] select,
.field[data-invalid] textarea { border-color: var(--error); }
.field[data-invalid] .field__error { display: block; }

.form .btn { width: 100%; margin-top: 6px; }
.form .btn[disabled] { opacity: .65; cursor: progress; }
.form__privacy { font-size: .82rem; color: var(--on-dark-2); }

/* Turnstile (interaction-only) fica junto ao botão: sem desafio a mostrar tem altura 0 e não acrescenta espaço ao grid do formulário */
.form__submit { display: flex; flex-direction: column; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  padding: 14px 16px; border-radius: var(--r-sm);
  font-size: .95rem; line-height: 1.5;
}
.status[hidden] { display: none; }
.status[hidden]:target { display: grid; } /* envio sem JavaScript: o redirect aponta para #form-ok / #form-erro */
.status svg { width: 22px; height: 22px; margin-top: 1px; }
.status strong { display: block; font-family: var(--sans); font-weight: 700; }
.status--ok    { background: rgba(201,211,190,.12); border: 1.5px solid var(--ok);    color: var(--on-dark); }
.status--ok svg { color: var(--ok); }
.status--error { background: rgba(242,184,160,.10); border: 1.5px solid var(--error); color: var(--on-dark); }
.status--error svg { color: var(--error); }
.status a { color: var(--on-dark); text-underline-offset: .15em; }

/* ── Rodapé ───────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding-block: 36px 40px; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
.footer .brand { color: var(--ink); }
.footer__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .9rem; color: var(--muted); }
.footer__meta a { color: var(--muted); text-underline-offset: .15em; }
.footer__meta a:hover { color: var(--ink); }

/* ── ≥ 720px ──────────────────────────────────────────────────── */
@media (min-width: 720px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .events__list { grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 56px); }
}

/* ── ≥ 1024px ─────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .hero { min-height: min(100svh, 920px); }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(28,42,34,.5) 0%, rgba(28,42,34,0) 22%),
      linear-gradient(90deg, rgba(28,42,34,.9) 0%, rgba(28,42,34,.62) 38%, rgba(28,42,34,0) 72%),
      linear-gradient(0deg, rgba(28,42,34,.6) 0%, rgba(28,42,34,0) 40%);
  }
  .hero__sub { max-width: 40ch; }
  .events  { grid-template-columns: 4fr 8fr; }
  .why     { grid-template-columns: 5fr 7fr; }
  .contact { grid-template-columns: 5fr 7fr; }
  .events__intro, .why__head, .contact__intro { position: relative; }
}

/* ── Movimento reduzido ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
