/* Lucinha Silveira Bridal Club — CDW Tech
   Identidade do Atelier Lucinha Silveira (lucinhasilveira.com.br): marfim, bordô e dourado, Josefin Sans + Raleway,
   e os arcos das janelas do atelier. Cores e fontes vêm das variáveis (editáveis no painel em Cores e fontes). */
:root {
  --bg: #f6f0e8; --bg-2: #efe6da; --bg-3: #e6dacb; --white: #fffcf8;
  --ink: #1c1a19; --ink-2: #3a3532; --muted: #5a514b; --line: #e2d6c7;
  --accent: #8c2124; --accent-hi: #a52a2e; --accent-ink: #8c2124; --accent-rgb: 140 33 36; --on-accent: #fff8f2;
  --accent-2: #b08d6a; --accent-2-ink: #8c2124; --dark: #1c1a19; --dark-2: #2a2624;
  --wa: #25d366; --wa-ink: #0b6b33; --erro: #a3241c;
  --gold: var(--accent-2); --ivory: var(--bg);
  --radius: 4px; --shadow: 0 26px 50px -32px rgba(40, 25, 15, .45); --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Raleway', 'Helvetica Neue', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Josefin Sans', 'Montserrat', 'Helvetica Neue', Arial, sans-serif; --font-2: var(--font-display);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; font-weight: 300; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .12em; line-height: 1.18; text-wrap: balance; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }
button, input { font: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--ivory); padding: 10px 16px; text-decoration: none; font-weight: 500; transition: top .2s; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.wrap-mid { max-width: 980px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- botões (quadrados e espaçados, como no site do atelier) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 3px 30px 0; border: 1px solid transparent; border-radius: 0; font-family: var(--font-display); font-size: 13px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-2px); }
.btn-ivory { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn-ivory:hover { background: var(--white); transform: translateY(-2px); }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }

/* ---------- títulos de seção ---------- */
.sec { padding-block: clamp(64px, 8vw, 104px); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 44px; display: grid; justify-items: center; gap: 14px; }
.kicker { display: inline-flex; align-items: center; gap: 14px; margin: 0; font-family: var(--font-display); font-size: 12px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.kicker::before, .kicker::after { content: ""; width: 34px; height: 1px; background: var(--gold); flex: none; }
.sec-title { font-size: clamp(1.6rem, 1.05rem + 1.9vw, 2.6rem); }
.sec-title em { font-style: normal; font-weight: 300; color: var(--accent); }
.sec-sub { margin: 0; max-width: 34em; font-size: 1.08rem; color: var(--ink-2); }

/* ---------- abertura: o nome dentro de um arco dourado ---------- */
.abertura { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 0%, var(--dark-2), var(--dark) 62%); color: var(--ivory); padding-block: clamp(46px, 7vw, 84px) 0; text-align: center; }
.abertura-in { position: relative; max-width: 760px; margin: 0 auto; padding: clamp(96px, 12vw, 150px) clamp(20px, 6vw, 80px) clamp(64px, 8vw, 104px); display: grid; justify-items: center; }
.abertura-in::before { content: ""; position: absolute; inset: 0; border: 1px solid color-mix(in oklab, var(--gold) 75%, transparent); border-bottom: 0; border-radius: 50% 50% 0 0 / clamp(110px, 16vw, 210px) clamp(110px, 16vw, 210px) 0 0; pointer-events: none; }
.abertura-in::after { content: ""; position: absolute; inset: 14px 14px 0; border: 1px solid color-mix(in oklab, var(--gold) 28%, transparent); border-bottom: 0; border-radius: 50% 50% 0 0 / clamp(100px, 15vw, 198px) clamp(100px, 15vw, 198px) 0 0; pointer-events: none; }
.ab-marca { width: auto; height: clamp(54px, 6vw, 70px); margin-bottom: 26px; }
.kicker-claro { color: color-mix(in oklab, var(--gold) 55%, var(--ivory)); }
.abertura h1 { display: grid; justify-items: center; gap: 18px; margin: 26px 0 0; letter-spacing: 0; }
.ab-nome { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.4rem); font-weight: 300; letter-spacing: .14em; line-height: 1.05; padding-left: .14em; }
.ab-clube { display: inline-flex; align-items: center; gap: 18px; font-size: clamp(.95rem, .85rem + .45vw, 1.2rem); font-weight: 400; letter-spacing: .55em; padding-left: .55em; color: color-mix(in oklab, var(--gold) 55%, var(--ivory)); }
.ab-clube::before, .ab-clube::after { content: ""; width: clamp(22px, 4vw, 48px); height: 1px; background: var(--gold); }
.ab-sub { margin: 26px 0 0; font-style: italic; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: color-mix(in oklab, var(--ivory) 88%, var(--gold)); }
.ab-lead { margin: 14px 0 0; max-width: 31em; font-size: clamp(1.05rem, .98rem + .4vw, 1.25rem); line-height: 1.55; color: color-mix(in oklab, var(--ivory) 92%, transparent); }
.ornamento { position: relative; display: block; width: 80px; height: 1px; margin: 34px auto 34px; background: var(--gold); }
.ornamento::before, .ornamento::after { content: ""; position: absolute; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); transform: translateY(-50%); }
.ornamento::before { left: -12px; } .ornamento::after { right: -12px; }

/* ---------- por que participar: cartões com topo em arco ---------- */
.motivos { background: var(--bg-2); }
.motivos-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.motivo { display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 50% 50% var(--radius) var(--radius) / 96px 96px var(--radius) var(--radius); padding: 46px 24px 30px; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.motivo:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); }
.motivo-n { font-family: var(--font-display); font-weight: 300; font-size: 2rem; line-height: 1; letter-spacing: .08em; color: var(--accent); }
.motivo h3 { font-size: 1.02rem; letter-spacing: .14em; margin-top: 6px; }
.motivo p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- como pontuar: tabela ---------- */
.pontuacao { background: var(--bg); }
.tabela-wrap { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tabela { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tabela thead th { background: var(--dark); color: var(--ivory); font-family: var(--font-display); font-weight: 400; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; text-align: left; padding: 18px 22px 15px; }
.tabela tbody tr { border-top: 1px solid var(--line); }
.tabela tbody tr:nth-child(even) { background: color-mix(in oklab, var(--bg-2) 55%, var(--white)); }
.tabela tbody th { text-align: left; font-weight: 500; color: var(--ink); padding: 18px 22px; vertical-align: top; }
.tabela td { padding: 18px 22px; vertical-align: top; color: var(--muted); }
.tabela .c-pts { text-align: center; white-space: nowrap; width: 150px; }
.tabela td.c-pts { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .04em; color: var(--accent); padding-top: 15px; }
.tabela td b { color: var(--ink); }
.aviso { margin: 22px 0 0; padding: 18px 22px; background: var(--bg-2); border-left: 2px solid var(--accent); font-size: 15.5px; color: var(--ink-2); }
.aviso b { color: var(--accent-ink); }

/* ---------- premiação: pódio em arcos sobre a noite ---------- */
.premiacao { background: var(--dark); color: var(--ivory); }
.premiacao .kicker { color: color-mix(in oklab, var(--gold) 55%, var(--ivory)); }
.premiacao .sec-title em { color: color-mix(in oklab, var(--gold) 45%, var(--ivory)); }
.premiacao .sec-sub { color: color-mix(in oklab, var(--ivory) 86%, transparent); }
.podio { list-style: none; margin: 0 auto; padding: 0; max-width: 1020px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: end; }
.premio { display: grid; justify-items: center; align-content: start; text-align: center; gap: 8px; padding: 70px 26px 34px; border: 1px solid color-mix(in oklab, var(--gold) 55%, transparent); border-radius: 999px 999px var(--radius) var(--radius); background: color-mix(in oklab, var(--ivory) 5%, transparent); }
.premio-pos { font-family: var(--font-display); font-weight: 300; font-size: 1.9rem; line-height: 1; color: color-mix(in oklab, var(--gold) 55%, var(--ivory)); }
.premio h3 { font-size: 1.45rem; letter-spacing: .14em; color: var(--ivory); }
.premio-linha { width: 32px; height: 1px; margin: 8px 0; background: var(--gold); }
.premio p { margin: 0; font-size: 15.5px; color: color-mix(in oklab, var(--ivory) 86%, transparent); }
.premio-1 { order: 2; padding-top: 96px; padding-bottom: 46px; background: var(--ivory); border-color: var(--ivory); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.premio-1 .premio-pos { color: var(--accent); }
.premio-1 h3 { color: var(--ink); font-size: 1.7rem; }
.premio-1 p { color: var(--ink-2); }
.podio .premio:nth-child(2) { order: 1; }
.podio .premio:nth-child(3) { order: 3; }
.premio-nota { margin: 44px auto 0; max-width: 40em; text-align: center; font-style: italic; font-size: 1.08rem; color: color-mix(in oklab, var(--ivory) 88%, transparent); }

/* ---------- termos ---------- */
.termos { background: var(--bg); }
.termos-box { background: var(--white); border: 1px solid var(--line); }
.termos-box summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px 21px; cursor: pointer; font-family: var(--font-display); font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.termos-box summary::-webkit-details-marker { display: none; }
.termos-box summary:hover { background: color-mix(in oklab, var(--bg-2) 45%, var(--white)); }
.termos-box summary .i { transition: transform .3s var(--ease); margin-top: -3px; transform: rotate(90deg); }
.termos-box[open] summary .i { transform: rotate(-90deg); }
.termos-txt { padding: 4px 28px 30px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.termos-txt h3 { margin: 26px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: .95rem; letter-spacing: .14em; color: var(--accent); }
.termos-txt h3:first-child { margin-top: 8px; }
.termos-txt p { margin: 0 0 11px; }
.termos-txt b { color: var(--accent-ink); }
.termos-versao { margin-top: 22px !important; font-size: 13px; color: var(--muted); }

/* ---------- adesão ---------- */
.adesao { background: var(--bg-2); }
.form-card { background: var(--white); border-top: 2px solid var(--accent); box-shadow: var(--shadow); padding: clamp(28px, 4vw, 46px) clamp(20px, 4vw, 40px); }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.campo { display: grid; gap: 7px; align-content: start; min-width: 0; }
.campo.full { grid-column: 1 / -1; }
.campo label { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.req { color: var(--accent); }
.campo input { width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); font-size: 16px; font-weight: 400; transition: border-color .2s, background .2s, box-shadow .2s; }
.campo input::placeholder { color: color-mix(in oklab, var(--muted) 75%, var(--white)); }
.campo input:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .14); }
.campo input[aria-invalid="true"] { border-color: var(--erro); background: color-mix(in oklab, var(--erro) 5%, var(--white)); }
.erro { font-size: 13.5px; font-weight: 500; color: var(--erro); }
.aceite { display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; padding: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.aceite input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); cursor: pointer; }
.aceite label { font-size: 15px; font-weight: 400; color: var(--ink-2); cursor: pointer; line-height: 1.6; }
.aceite label b { color: var(--accent-ink); }
.erro-aceite { display: block; margin-top: 8px; }
.form-status { margin: 18px 0 0; padding: 14px 16px; border-left: 2px solid var(--erro); background: color-mix(in oklab, var(--erro) 6%, var(--white)); color: var(--erro); font-weight: 500; font-size: 15px; }
.btn-enviar { width: 100%; margin-top: 26px; min-height: 58px; }
.form-nota { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.55; }
.feito { text-align: center; padding: 24px 8px; display: grid; justify-items: center; gap: 12px; }
.feito:focus { outline: none; }
.feito-icone { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 32px; font-family: var(--font-display); }
.feito h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
.feito h3 em { font-style: normal; font-weight: 300; color: var(--accent); }
.feito p { margin: 0; max-width: 32em; color: var(--muted); }
.recibo { margin-top: 14px !important; padding: 16px 24px; border: 1px dashed var(--accent); background: var(--bg); font-size: 14px; color: var(--ink-2) !important; }
.recibo b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; letter-spacing: .08em; color: var(--accent-ink); }

/* lista do admin (?admin=CHAVE) */
.admin { position: fixed; inset: 0; z-index: 90; overflow: auto; background: var(--white); color: var(--ink); padding: 28px max(22px, env(safe-area-inset-left, 0px)); }
.admin-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-top h2 { font-size: 1.1rem; }
.admin pre { margin: 0; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- rodapé ---------- */
.rodape { background: var(--dark); color: color-mix(in oklab, var(--ivory) 86%, transparent); padding-block: 46px 38px; text-align: center; }
.rodape-in { display: grid; justify-items: center; gap: 10px; }
.rodape-logo { width: 190px; height: auto; margin-bottom: 8px; }
.rodape-nome { margin: 0; font-family: var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--ivory); }
.rodape-end, .rodape-legal { margin: 0; font-size: 13px; letter-spacing: .04em; }
.rodape-end span { white-space: nowrap; }
.dev-sign { display: inline-flex; margin-top: 18px; opacity: .8; transition: opacity .25s; }
.dev-sign:hover { opacity: 1; }
.dev-sign img { height: 24px; width: auto; display: block; }

/* ---------- 404 ---------- */
.e404 { padding-block: clamp(80px, 12vw, 150px); text-align: center; }
.e404-in { display: grid; justify-items: center; gap: 18px; }
.e404 h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); }
.e404-txt { max-width: 32em; color: var(--ink-2); margin: 0; }

/* ---------- responsivo ---------- */
@media (max-width: 1020px) {
  .motivos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .podio { grid-template-columns: minmax(0, 1fr); max-width: 440px; gap: 18px; }
  .premio, .premio-1 { padding: 64px 24px 32px; }
  .premio-1, .podio .premio:nth-child(2), .podio .premio:nth-child(3) { order: 0; }
  /* tabela vira cartões: cada linha com os rótulos das colunas */
  .tabela thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabela, .tabela tbody, .tabela tr, .tabela th, .tabela td { display: block; width: auto; }
  .tabela tbody tr { padding: 18px 20px; }
  .tabela tbody th, .tabela td { padding: 0; }
  .tabela tbody th { font-size: 1.02rem; margin-bottom: 8px; }
  .tabela .c-pts { text-align: left; }
  .tabela td.c-pts { padding: 0; margin-bottom: 4px; font-size: 1.15rem; }
  .tabela td.c-pts::before { content: attr(data-label) " · "; font-family: var(--font); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .motivos-grid, .campos { grid-template-columns: minmax(0, 1fr); }
  .motivo { border-radius: 50% 50% var(--radius) var(--radius) / 70px 70px var(--radius) var(--radius); padding-top: 38px; }
  .abertura .kicker::before, .abertura .kicker::after { width: 18px; }
  .kicker { letter-spacing: .24em; gap: 10px; }
  .ab-clube { letter-spacing: .4em; padding-left: .4em; gap: 12px; }
  .termos-box summary { padding: 20px 18px 17px; font-size: 13px; letter-spacing: .14em; }
  .termos-txt { padding: 2px 18px 24px; }
  .termos-txt p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
