/* ============================================================
   TK SHOWS — Landing editorial (ref. design-claude-design.pdf)
   Base creme + seções pretas + vermelho de marca (#ED1C24)
   Tipografia serifada + rótulos monoespaçados
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,400..700&family=Newsreader:ital,opsz,wght@0,6..72,300..600;1,6..72,300..500&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Superfícies claras (padrão = look do PDF) */
  --paper:   #f1ebe0;
  --paper-2: #eae2d3;
  --card:    #f7f2e8;

  /* Pretos (fixos nas duas variações) */
  --ink:     #100d0c;
  --ink-2:   #17130f;
  --on-ink:       #efe7db;
  --on-ink-muted: #a89d90;
  --line-ink:     rgba(240,232,220,.16);

  /* Texto sobre claro */
  --text:   #1a1310;
  --text-2: #3c342c;
  --muted:  #746a60;
  --line:   rgba(26,16,12,.18);
  --line-2: rgba(26,16,12,.10);

  /* Vermelho da marca */
  --red:      #ED1C24;
  --red-2:    #cf121a;
  --red-deep: #a90f16;

  --serif:      'Fraunces', Georgia, 'Times New Roman', serif;
  --text-serif: 'Newsreader', Georgia, serif;
  --mono:       'IBM Plex Mono', ui-monospace, 'Courier New', monospace;

  --maxw: 1180px;
}

:root[data-theme="dark"] {
  --paper:   #121010;
  --paper-2: #181413;
  --card:    #1c1715;
  --text:    #ece4d8;
  --text-2:  #cabfb3;
  --muted:   #8d8378;
  --line:    rgba(240,232,220,.16);
  --line-2:  rgba(240,232,220,.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--text-serif); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

/* Tipografia base */
h1,h2,h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.03; letter-spacing: -.015em; }
p { margin: 0; }

.eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); font-weight: 500;
}
.eyebrow.on-ink { color: var(--red); }
.serif-it { font-family: var(--serif); font-style: italic; color: var(--red); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  font-family: var(--mono); font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  padding: .95em 1.5em; border-radius: 3px; cursor: pointer; border: 1px solid transparent;
  text-transform: uppercase; transition: transform .18s ease, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid  { background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-2); }
.btn-outline{ background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-paper  { background: var(--paper); color: var(--red); }
.btn-paper:hover { background: #fff; }
.btn-lg { padding: 1.05em 1.7em; font-size: .86rem; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 40px; width: 40px; border-radius: 9px; object-fit: cover; display:block; }
.brand .bx { line-height: 1; }
.brand .bx b { font-family: var(--serif); font-weight: 500; font-size: 1.24rem; letter-spacing: .01em; color: var(--text); }
.brand .bx small { display: block; font-family: var(--mono); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-family: var(--text-serif); font-size: 1rem; color: var(--text-2); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--red); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.theme-btn {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 3px;
  padding: .7em .8em; cursor: pointer; transition: .2s; display: inline-flex; align-items: center; gap: .5em;
}
.theme-btn:hover { border-color: var(--red); color: var(--red); }

/* ---------- HERO dividido ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; }
.hero .col { padding: clamp(30px, 4vw, 54px) clamp(24px, 4vw, 60px); min-height: 78vh; display: flex; flex-direction: column; }
.hero .cerimonia { background: var(--paper); }
.hero .baile { background: var(--ink); color: var(--on-ink); }
.hero .baile h2, .hero .baile p { color: var(--on-ink); }
.hero .baile .lead { color: var(--on-ink-muted); }
.hero h2 { font-size: clamp(1.7rem, 2.6vw, 2.45rem); margin: 12px 0 14px; font-weight: 400; white-space: nowrap; }
.hero .lead { font-size: 1.06rem; color: var(--text-2); max-width: none; line-height: 1.5; }
.hero .media { margin: 22px 0 22px; }
.hero .cta-row { margin-top: auto; }

/* Caixa de mídia (foto real ou hachura) */
.media { position: relative; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.baile .media, .media.on-ink { border-color: var(--line-ink); }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media .cap {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); background: color-mix(in srgb, var(--paper) 88%, transparent); padding: .4em .7em; border-radius: 3px;
}
.media.on-ink .cap { color: #ff5a5f; background: rgba(16,13,12,.78); }
.hatch {
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, rgba(237,28,36,.30) 0 1px, transparent 1px 10px);
}
.hatch.on-ink { background-color: #150f0e; background-image: repeating-linear-gradient(135deg, rgba(237,28,36,.34) 0 1px, transparent 1px 10px); }
.ratio-4x3 { aspect-ratio: 4/3; }
.ratio-3x2 { aspect-ratio: 3/2; }
.ratio-16x9 { aspect-ratio: 16/9; }
.ratio-21x9 { aspect-ratio: 21/8; }

/* Rotador de fotos (crossfade) */
.rotator img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.rotator img.on { opacity: 1; }
.rotator .dots { position: absolute; right: 14px; bottom: 12px; z-index: 3; display: flex; gap: 6px; }
.rotator .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); transition: .3s; }
.rotator .dots i.on { background: var(--red); }

/* ---------- Barra de números ---------- */
.stats { border-bottom: 1px solid var(--line); background: var(--card); }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(24px,3vw,34px) clamp(20px,3vw,34px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .n { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.5rem); color: var(--red); font-weight: 400; line-height: 1; }
.stat .l { font-family: var(--text-serif); font-size: .98rem; color: var(--text-2); margin-top: 10px; }

/* ---------- Seções genéricas ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section.light { background: var(--paper); }
.section.dark  { background: var(--ink); color: var(--on-ink); }
.section.dark h2, .section.dark h3 { color: var(--on-ink); }
.sec-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: end; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 400; margin-top: 16px; }
.sec-head .aside { font-size: 1rem; color: var(--text-2); line-height: 1.5; }
.section.dark .sec-head .aside { color: var(--on-ink-muted); }

/* Grid de momentos da cerimônia (cards) */
.moments { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.moment { padding: clamp(20px,2.2vw,26px); border: 1px solid var(--line); border-radius: 5px; background: var(--card); transition: border-color .2s, transform .2s; }
.moment:hover { border-color: var(--red); transform: translateY(-3px); }
.moment .num { font-family: var(--mono); font-size: .74rem; color: var(--red); letter-spacing: .1em; }
.moment h3 { font-size: 1.22rem; margin: 12px 0 9px; font-weight: 400; }
.moment p { font-size: .93rem; color: var(--text-2); line-height: 1.5; }

/* Locação de pianos */
.pianos { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.piano-card .media { margin-bottom: 15px; }
.pc-type { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.piano-card h3 { font-size: 1.3rem; font-weight: 400; margin: 8px 0 5px; }
.pc-color { font-family: var(--text-serif); font-size: .95rem; color: var(--text-2); }
.hatch-gold { background-color: var(--paper-2); background-image: repeating-linear-gradient(135deg, rgba(199,154,58,.34) 0 1px, transparent 1px 10px); }

/* Vídeo + depoimento */
.vt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; margin-top: 30px; }
.quote { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 400; line-height: 1.32; color: var(--text); }
.section.dark .quote { color: var(--on-ink); }
.quote.it { font-style: italic; }
.quote-by { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 20px; }
.section.dark .quote-by { color: var(--on-ink-muted); }
.link-red { font-family: var(--text-serif); font-size: 1rem; color: var(--red); text-decoration: none; border-bottom: 1px solid var(--red); padding-bottom: 2px; display: inline-block; margin-top: 18px; transition: opacity .2s; }
.link-red:hover { opacity: .7; }

/* Cards (formatos de banda) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.card {
  border: 1px solid var(--line-ink); border-radius: 4px; padding: clamp(22px,2.4vw,28px);
  transition: border-color .2s, transform .2s;
}
.card:hover { transform: translateY(-3px); }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; font-weight: 400; color: var(--on-ink); }
.card p { font-size: .96rem; color: var(--on-ink-muted); line-height: 1.5; }
.card.accent { border-color: var(--red); }
.card.accent h3 { color: var(--red); }
.card.accent:hover { border-color: var(--red-2); }

/* Repertório */
.rep { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; }
.rep h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 400; margin: 16px 0 18px; }
.rep p { color: var(--text-2); line-height: 1.55; max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tag {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .03em; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 3px; padding: .55em .85em; background: transparent; transition: .2s;
}
.tag:hover { border-color: var(--red); color: var(--red); }

/* ---------- CTAs duplos ---------- */
.cta2 { display: grid; grid-template-columns: 1fr 1fr; }
.cta2 .half { padding: clamp(44px,6vw,78px) clamp(24px,4vw,60px); }
.cta2 .red { background: var(--red); color: #fff; }
.cta2 .black { background: var(--ink); color: var(--on-ink); }
.cta2 h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 400; }
.cta2 .red h2 { color: #fff; }
.cta2 .black h2 { color: var(--on-ink); }
.cta2 p { margin: 16px 0 30px; max-width: 40ch; line-height: 1.5; }
.cta2 .red p { color: rgba(255,255,255,.86); }
.cta2 .black p { color: var(--on-ink-muted); }

/* ---------- Formulário (Agenda) ---------- */
.section.agenda { background: var(--paper-2); border-top: 1px solid var(--line); }
.form-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.form-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 400; margin-top: 14px; }
.form-head p { color: var(--text-2); margin-top: 14px; }
.form-card { max-width: 820px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: clamp(26px,4vw,46px); }
.fs-title { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red);
  margin: 6px 0 18px; display: flex; align-items: center; gap: 12px; }
.fs-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
label { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
label .opt { text-transform: none; letter-spacing: 0; color: var(--muted); font-family: var(--text-serif); }
input, select, textarea {
  font-family: var(--text-serif); font-size: 1rem; color: var(--text);
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: .8em .9em;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(237,28,36,.12); }
select option { background: var(--paper); color: var(--text); }

.toggles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.toggle { position: relative; cursor: pointer; border: 1px solid var(--line); border-radius: 5px; padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 5px; background: var(--paper); transition: .2s; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.toggle .tk-title { font-family: var(--serif); font-weight: 500; font-size: 1.08rem; color: var(--text); }
.toggle .tk-desc { font-size: .88rem; color: var(--text-2); line-height: 1.4; }
.toggle .check { position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: .2s; }
.toggle .check svg { width: 11px; height: 11px; opacity: 0; color: #fff; transition: .2s; }
.toggle:hover { border-color: var(--red); }
.toggle:has(input:checked) { border-color: var(--red); background: rgba(237,28,36,.06); }
.toggle:has(input:checked) .check { background: var(--red); border-color: var(--red); }
.toggle:has(input:checked) .check svg { opacity: 1; }

#recepcaoWrap { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s ease, opacity .3s, margin .3s; }
#recepcaoWrap.show { max-height: 160px; opacity: 1; margin-top: 18px; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; flex-wrap: wrap; }
.form-foot .note { font-size: .9rem; color: var(--muted); max-width: 44ch; }

/* Confirmação */
#confirm { display: none; }
#confirm.show { display: block; }
.confirm-card { max-width: 620px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: clamp(34px,5vw,58px); }
.confirm-card .seal { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 24px; display: grid; place-items: center; background: var(--red); animation: pop .6s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.confirm-card .seal svg { width: 40px; height: 40px; color: #fff; }
.confirm-card h2 { font-size: clamp(1.9rem,3.4vw,2.6rem); font-weight: 400; }
.confirm-card p { color: var(--text-2); margin: 16px auto 0; max-width: 46ch; line-height: 1.55; }
.recap { text-align: left; margin: 28px auto 0; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.recap .row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; font-size: .96rem; }
.recap .row:nth-child(odd) { background: var(--paper); }
.recap .row .k { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); align-self: center; }
.recap .row .v { color: var(--text); font-weight: 500; text-align: right; }
.protocol { font-family: var(--mono); color: var(--red); margin-top: 20px; font-size: .9rem; letter-spacing: .1em; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--on-ink-muted); }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 26px; flex-wrap: wrap; }
.foot .mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.foot a { color: var(--on-ink-muted); text-decoration: none; transition: color .2s; }
.foot a:hover { color: #ff5a5f; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   MODAL / WIZARD (orçamento em pop-up)
   ============================================================ */
.modal-scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(12,9,8,.62); backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-scrim.show { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed; z-index: 100; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.98);
  width: min(600px, 94vw); max-height: 92vh; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s cubic-bezier(.2,.9,.3,1); display: flex; flex-direction: column; overflow: hidden;
}
.modal.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-head { padding: 24px 26px 18px; border-bottom: 1px solid var(--line); position: relative; }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
  display: grid; place-items: center; transition: .2s; font-size: 1.1rem; line-height: 1;
}
.modal-close:hover { border-color: var(--red); color: var(--red); }
.modal-head h3 { font-size: 1.7rem; font-weight: 400; margin-top: 8px; }
.wiz-progress { display: flex; gap: 8px; margin-top: 16px; }
.wiz-progress .seg { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.wiz-progress .seg b { display: block; height: 100%; width: 0; background: var(--red); transition: width .35s ease; }
.wiz-progress .seg.done b { width: 100%; }
.wiz-progress .seg.current b { width: 100%; }
.wiz-body { padding: 24px 26px; overflow-y: auto; }
.wiz-step { display: none; animation: fadeStep .35s ease both; }
.wiz-step.active { display: block; }
@keyframes fadeStep { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.wiz-steplabel { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.wiz-foot { padding: 16px 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.wiz-foot .spring { flex: 1; }

.modal .field { margin-bottom: 16px; }
.modal .grid2 { gap: 16px; }
.modal .toggles { grid-template-columns: 1fr; gap: 12px; }
.modal .toggle { padding: 14px 14px 12px; }

/* Sucesso dentro do modal */
.wiz-done { text-align: center; padding: 8px 4px 4px; }
.wiz-done .seal { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--red); animation: pop .6s cubic-bezier(.2,1.4,.4,1) both; }
.wiz-done .seal svg { width: 34px; height: 34px; color: #fff; }
.wiz-done h3 { font-size: 1.7rem; font-weight: 400; }
.wiz-done p { color: var(--text-2); margin: 12px auto 0; max-width: 40ch; line-height: 1.5; }
.wiz-done .protocol { font-family: var(--mono); color: var(--red); margin-top: 16px; font-size: .84rem; letter-spacing: .1em; }

::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: rgba(120,100,90,.35); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero .col { min-height: auto; }
  .hero h2 { white-space: normal; }
  .stats .grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-left: 0; }
  .sec-head { grid-template-columns: 1fr; }
  .vt, .rep { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .cta2 { grid-template-columns: 1fr; }
  .grid2, .toggles { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .stats .grid { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; border-bottom: 1px solid var(--line); }
}
