/* LaB. CLUB · laurabarbosa.com.br
   Layout: editorial de marca — bandas vinho e creme alternadas, coluna de leitura estreita,
   retrato vertical como âncora. Tipografia didone (como o logo) + grotesca limpa. */
:root {
  --bg: #FBF6EC;          /* creme papel */
  --surface: #F3EADB;     /* creme mais denso, blocos */
  --fg: #2A1010;          /* tinta */
  --muted: #5A3838;       /* texto secundário */
  --line: #DCC9B6;        /* fios */
  --accent: #400000;      /* vinho da marca */
  --band: #400000;        /* faixas vinho */
  --band-fg: #FFFCE9;     /* creme sobre vinho */
  --band-muted: #E8CFB8;
  --numeral: #7A3030;
  --display: "Libre Bodoni", "Bodoni 72", "Didot", Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --read: 62ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A0909; --surface: #261010; --fg: #F4EADB; --muted: #CDB8A8; --line: #4A2626;
    --accent: #E8CFB8; --band: #3A0B0B; --band-fg: #FFFCE9; --band-muted: #E8CFB8; --numeral: #9A5A52;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1A0909; --surface: #261010; --fg: #F4EADB; --muted: #CDB8A8; --line: #4A2626;
  --accent: #E8CFB8; --band: #3A0B0B; --band-fg: #FFFCE9; --band-muted: #E8CFB8; --numeral: #9A5A52;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 1.125rem; font-weight: 500; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
strong, b { font-weight: 700; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* logo troca com o tema */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

/* cabeçalho */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-block: 14px; }
.site-header .brand img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; font-size: 1rem; }
.nav a { color: var(--fg); text-decoration: none; }
.nav a:hover { color: var(--accent); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav a.btn-primary { color: var(--bg); text-decoration: none; }
.nav a.btn-primary:hover { color: var(--accent); }
.lead-form[id] { scroll-margin-top: 20px; }
/* menu do celular: botão "Menu" que abre a lista de links */
.menu-btn { display: none; }
@media (max-width: 879px) {
  .site-header .wrap { flex-wrap: nowrap; }
  .site-header .brand img { height: 48px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; color: var(--fg); background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
  .menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .menu-btn .x { display: none; }
  .site-header.aberto .menu-btn .x { display: inline; }
  .site-header.aberto .menu-btn .ham { display: none; }
  .site-header .nav { display: none; }
  .site-header.aberto .wrap { flex-wrap: wrap; }
  .site-header.aberto .nav { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; width: 100%; gap: 0; border-top: 1px solid var(--line); margin-top: 4px; }
  .site-header.aberto .nav a { padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-header.aberto .nav a:hover { text-decoration: none; }
  .site-header.aberto .nav a.btn-primary { margin: 16px 0 6px; border-bottom: 0; text-align: center; justify-content: center; padding: 14px; }
}

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none; border: 1.5px solid var(--accent); transition: background .2s, color .2s; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--bg); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.band .btn-primary { background: var(--band-fg); color: var(--band); border-color: var(--band-fg); }
.band .btn-primary:hover { background: transparent; color: var(--band-fg); }
.band .btn-ghost { color: var(--band-fg); border-color: var(--band-fg); }
.band .btn-ghost:hover { background: var(--band-fg); color: var(--band); }

/* espaço para foto: painel tipográfico até a foto real chegar.
   Para trocar: substitua o <div class="photo-slot"> por <img class="photo" src="assets/SUA-FOTO.jpg" alt="..."> */
.photo-slot, .photo { aspect-ratio: 4 / 5; width: 100%; max-width: 100%; border-radius: 4px; }
.photo { object-fit: cover; height: auto; }
.photo-slot { background: var(--band); color: var(--band-fg); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 4vw, 40px); position: relative; overflow: hidden; }
.photo-slot::after { content: "LaB."; position: absolute; right: -0.08em; bottom: -0.28em; font-family: var(--display); font-style: italic; font-size: clamp(7rem, 16vw, 11rem); line-height: 1; color: var(--numeral); opacity: .55; pointer-events: none; }
.photo-slot q { font-family: var(--display); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; quotes: "\201C" "\201D"; position: relative; z-index: 1; }
.photo-slot .sig { position: relative; z-index: 1; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); }

/* seções */
section { padding-block: clamp(56px, 8vw, 104px); }
.band { background: var(--band); color: var(--band-fg); }
.band .eyebrow { color: var(--band-muted); }
.surface { background: var(--surface); }

/* rodapé */
.site-footer { background: var(--band); color: var(--band-fg); padding-block: 48px; font-size: 1rem; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.site-footer img { height: 72px; width: auto; }
.site-footer a { color: var(--band-fg); }
.site-footer .links { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.site-footer .slogan { font-family: var(--display); font-style: italic; font-size: 1.3rem; margin-top: 10px; color: var(--band-muted); }
@media (max-width: 640px) { .site-footer .links { text-align: left; } }
.site-footer .wa-qr { display: none; text-align: center; }
.site-footer .wa-qr svg { display: block; margin: 0 auto 8px; border-radius: 8px; }
.site-footer .wa-qr p { margin: 0; font-size: .85rem; line-height: 1.35; color: var(--band-muted); }
@media (min-width: 880px) { .site-footer .wa-qr { display: block; } }

/* ---------- formulário da Partida (dentro da faixa vinho) ---------- */
.lead-form { background: var(--bg); color: var(--fg); border-radius: 18px; padding: clamp(20px, 4vw, 32px); display: grid; gap: 16px; margin-top: 12px; max-width: 34rem; }
.lead-form .field { display: grid; gap: 6px; }
.lead-form label { font-weight: 700; font-size: 1rem; }
.lead-form .opt { font-weight: 500; color: var(--muted); }
.lead-form input[type="text"], .lead-form input[type="email"], .lead-form input[type="tel"] { font: inherit; font-size: 1.05rem; color: var(--fg); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; min-height: 50px; padding: 0 14px; width: 100%; box-sizing: border-box; }
.lead-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.lead-form input[aria-invalid="true"] { border-color: #A3261E; }
.lead-form small { color: var(--muted); font-size: .95rem; }
/* WhatsApp com país: o seletor nativo fica invisível por cima de "🇧🇷 +55" */
.lead-form .tel { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.lead-form .ddi { position: relative; display: flex; align-items: center; gap: 6px; min-height: 50px; padding: 0 30px 0 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); font-size: 1.05rem; white-space: nowrap; }
.lead-form .ddi::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
.lead-form .ddi select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.lead-form .ddi:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
/* conferência enquanto a pessoa digita: verde com ✓ quando está certo, vermelho quando falta algo */
.lead-form .field.is-ok input { border-color: #2E6B34; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232E6B34' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.lead-form .field.is-erro input { border-color: #A3261E; }
.lead-form .field.is-erro small { color: #A3261E; font-weight: 600; }
.lead-form .check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-weight: 500; font-size: 1rem; cursor: pointer; }
.lead-form .check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); }
.lead-form .btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); justify-self: start; }
.lead-form .btn-primary:hover { background: transparent; color: var(--accent); }
.lead-form .btn[disabled] { opacity: .6; cursor: wait; }
.lead-form .form-msg { margin: 0; font-weight: 600; min-height: 1.2em; }
.lead-form .form-msg[data-kind="ok"] { color: #2E6B34; }
.lead-form .form-msg[data-kind="erro"] { color: #A3261E; }
.lead-form .fine { margin: 0; font-size: .9rem; color: var(--muted); }
.lead-form .ts:empty { display: none; }
.alt-ig { margin-top: 28px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--band-fg) 25%, transparent); max-width: 34rem; }
.alt-ig a { color: inherit; }
.alt-ig-claro { border-top-color: var(--line); }
.alt-ig-claro .keyword { color: var(--accent); border-color: var(--accent); font-size: 1.15rem; white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lead-form .field.is-ok input { border-color: #8FD19A; } :root:not([data-theme="light"]) .lead-form .field.is-erro input { border-color: #FF9C94; } :root:not([data-theme="light"]) .lead-form .field.is-erro small { color: #FF9C94; } :root:not([data-theme="light"]) .lead-form .form-msg[data-kind="ok"] { color: #8FD19A; } :root:not([data-theme="light"]) .lead-form .form-msg[data-kind="erro"], :root:not([data-theme="light"]) .lead-form input[aria-invalid="true"] { color: #FF9C94; border-color: #FF9C94; } }
.alt-ig .keyword { font-size: 1.35rem; padding: 2px 10px; letter-spacing: .1em; vertical-align: baseline; }
