/* ============================================================
   Consultoria Originalidade Orgânica — Luana Reis
   V2 — "Caderno de campo": o site tratado como o caderno de
   campo da própria Luana. Fotos viram polaroids com fita,
   o "como funciona" vira contact sheet de negativos, a seleção
   vira carimbo, o investimento vira recibo picotado e a
   inscrição vira ficha de catálogo.
   ============================================================ */

@font-face {
  font-family: 'Felt Tip Woman';
  src: url('../../assets/fonts/felt-tip-woman.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../../assets/fonts/montserrat-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../../assets/fonts/montserrat-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Paleta da V1 (marrom / nude / branco), remapeada pros mesmos papéis da V2 */
  --paper: #fdfbf8;
  --paper-deep: #f3e9dc;
  --paper-line: #dcc4a4;
  --ink: #2b2118;
  --ink-soft: #5c4b3d;
  --brown: #3f2c20;
  --brown-cta: #5c3f2c;
  --brown-cta-deep: #3f2c20;
  --terracotta: #b9704e;
  --night: #2e2119;
  --night-deep: #241a14;
  --night-line: #4a3324;
  --night-ink: #f3e9dc;
  --night-soft: #e9d8c3;
  --white: #ffffff;

  --font-hand: 'Felt Tip Woman', cursive;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --rail-w: 84px;
  --col-max: 660px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(rgba(91, 58, 36, 0.035) 1px, transparent 1px);
  background-size: 4px 4px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--night-deep); color: var(--night-ink);
  padding: 12px 20px; z-index: 999;
}
.skip-link:focus { left: 0; }

/* handwritten insert word inside typed headlines */
.hand {
  font-family: var(--font-hand);
  font-weight: 400;
  color: var(--terracotta);
  display: inline-block;
}

/* ---------- Page shell: spine rail + offset column ---------- */
.page {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
}
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--paper-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}
.rail-mark {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--brown);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.02em;
}
.rail-dots {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.rail-dots a {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--paper-line);
  transition: background .25s var(--ease), transform .25s var(--ease);
  position: relative;
}
.rail-dots a.active { background: var(--terracotta); transform: scale(1.35); }
.rail-cta {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--night-ink);
  background: var(--brown);
  padding: 18px 9px;
  border-radius: 3px;
}

.main-col { min-width: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 248, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  gap: 20px;
}
.logo { font-family: var(--font-hand); font-size: 1.7rem; color: var(--brown); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.stub) {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.nav a:not(.stub):hover { color: var(--terracotta); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--brown); transition: transform .25s var(--ease), opacity .25s var(--ease); }

/* ---------- Ticket-stub buttons (replaces pill CTAs) ---------- */
.stub {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px 15px 22px;
  background: var(--brown-cta);
  color: var(--white);
  font-weight: 700;
  font-size: 0.86rem;
  border: 1.5px solid var(--brown-cta-deep);
  border-radius: 3px 12px 3px 3px;
  box-shadow: 0 12px 30px -10px rgba(63, 44, 32, 0.5);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.stub:hover { background: var(--brown-cta-deep); transform: translateY(-2px); }
.stub:active { transform: translateY(0); }
.stub-ghost {
  background: transparent;
  color: var(--night-ink);
  border: 1.5px solid var(--night-soft);
}
.stub-ghost:hover { background: rgba(243, 231, 214, 0.08); border-color: var(--night-ink); }
.stub-block { width: 100%; justify-content: center; }
.stub:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Sections & folio system ---------- */
.sheet { padding: 90px 6vw 90px 7vw; }
.sheet-deep { background: var(--paper-deep); }
.sheet-night { background: var(--night); color: var(--night-ink); }
.sheet-night h2, .sheet-night h3 { color: var(--white); }
.sheet-night p { color: var(--night-soft); }

.folio {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}
.folio-num { font-family: var(--font-hand); font-size: 1.6rem; color: var(--terracotta); }
.sheet-night .folio-num { color: var(--terracotta); }
.folio-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.sheet-night .folio-label { color: var(--night-soft); }

.col { max-width: var(--col-max); }
.col-wide { max-width: 920px; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.16; margin-bottom: 22px; }
h2 .hand { font-size: 1.05em; }

/* Drop cap on lead paragraphs */
.lede::first-letter {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 3.4em;
  line-height: 0.8;
  float: left;
  padding: 0.04em 0.08em 0 0;
  color: var(--brown);
}
.sheet-night .lede::first-letter { color: var(--terracotta); }

/* ---------- Hero ---------- */
.hero { padding: 40px 6vw 100px 7vw; position: relative; overflow: hidden; }
.hero-top {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  margin-top: 30px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  line-height: 1.06;
}
.hero-lead { font-size: 1.2rem; font-weight: 600; color: var(--brown); max-width: 46ch; }
.hero-sub { color: var(--ink-soft); max-width: 46ch; }
.hero-copy .stub { margin-top: 18px; }
.hero-photo {
  position: relative;
  transform: rotate(2deg);
}
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 10px solid var(--white);
  border-bottom-width: 46px;
  box-shadow: 0 24px 48px -18px rgba(42, 28, 18, 0.45);
}
.hero-photo .tape { top: -14px; left: 38%; }
.photo-caption {
  position: absolute;
  bottom: 10px;
  left: 26px;
  right: 26px;
  font-family: var(--font-hand);
  color: var(--brown);
  font-size: 1.1rem;
  transform: rotate(-1deg);
}

/* tape strip decoration */
.tape {
  position: absolute;
  width: 70px;
  height: 26px;
  background: rgba(243, 233, 220, 0.8);
  border: 1px solid rgba(220, 196, 164, 0.9);
  box-shadow: 0 2px 6px rgba(43, 33, 24, 0.15);
  transform: rotate(-6deg);
}

/* ---------- Pain notes (dores) ---------- */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 48px;
  max-width: 920px;
  background-image: repeating-linear-gradient(
    to bottom, transparent, transparent 51px, var(--night-line) 52px
  );
}
.notes-grid li {
  padding: 15px 0 15px 26px;
  position: relative;
  font-size: 1.02rem;
}
.notes-grid li::before {
  content: '✕';
  position: absolute; left: 0; top: 15px;
  color: var(--terracotta);
  font-size: 0.75rem;
  font-weight: 700;
}
.notes-grid strong { color: var(--white); }

/* ---------- Editorial split (solução / história) ---------- */
.editorial {
  display: grid;
  grid-template-columns: minmax(0, var(--col-max)) 1fr;
  gap: 56px;
  align-items: start;
}
.editorial.flip { grid-template-columns: 1fr minmax(0, var(--col-max)); }
.editorial.flip .editorial-text { order: 2; }
.editorial.flip .editorial-photo { order: 1; }

.margin-photo { position: relative; align-self: center; }
.margin-photo img {
  width: 100%;
  height: auto;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 9px solid var(--white);
  border-bottom-width: 38px;
  box-shadow: 0 20px 40px -16px rgba(42, 28, 18, 0.4);
}
.margin-photo.tilt-l { transform: rotate(-3deg); }
.margin-photo.tilt-r { transform: rotate(3deg); margin-left: auto; }
.margin-photo .photo-caption { color: var(--brown); font-size: 1rem; }

.stat-list li {
  position: relative;
  padding: 11px 0 11px 30px;
  border-bottom: 1px dashed var(--paper-line);
}
.stat-list li:first-child { border-top: 1px dashed var(--paper-line); }
.stat-list li::before {
  content: '—';
  position: absolute; left: 0; color: var(--terracotta); font-weight: 700;
}
.check-list li {
  position: relative;
  padding: 10px 0 10px 30px;
}
.check-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 10px; color: var(--terracotta); font-weight: 700;
}
.check-list.compact li { padding: 6px 0 6px 26px; font-size: 0.95rem; }
.check-list.two-col { columns: 2; column-gap: 40px; }
.check-list.two-col li { break-inside: avoid; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tags li {
  background: var(--paper-deep);
  border: 1px solid var(--paper-line);
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 13px;
  border-radius: 2px;
}

/* ---------- Contact sheet (como funciona) ---------- */
.contact-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.frame {
  background: var(--ink);
  padding: 14px 20px 22px;
  border-radius: 2px;
  color: var(--night-ink);
}
.frame-sprockets {
  display: flex;
  justify-content: space-between;
  padding: 0 2px 14px;
}
.frame-sprockets span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(243, 231, 214, 0.3);
}
.frame-index {
  display: block;
  font-family: var(--font-sans); font-weight: 800; font-size: 0.72rem;
  color: var(--terracotta);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.frame-body h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.frame-body p { color: var(--night-soft); font-size: 0.92rem; margin-bottom: 0.7em; }
.frame-body .hand { color: var(--terracotta); font-size: 1.15rem; margin-top: 6px; }

/* ---------- Statement (full bleed, handwriting on a photo) ---------- */
.statement {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.statement-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 72%;
}
.statement-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(36,26,20,0.88) 0%, rgba(36,26,20,0.74) 42%, rgba(36,26,20,0.4) 68%, rgba(36,26,20,0.12) 100%),
    linear-gradient(0deg, rgba(36,26,20,0.55) 0%, rgba(36,26,20,0.1) 40%, rgba(36,26,20,0.1) 100%);
}
.statement-content {
  position: relative; z-index: 1;
  padding: 8vh 7vw 8vh 7vw;
  max-width: 760px;
}
.statement-content .folio-label, .statement-content .folio-num { color: var(--night-soft); }
.statement-content .folio-num { color: var(--terracotta); }
.statement h2 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.2rem); }
.statement p { color: var(--night-soft); max-width: 58ch; }
.statement-quote {
  font-family: var(--font-hand);
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
  margin-top: 0.7em;
  transform: rotate(-1deg);
  display: inline-block;
}

/* ---------- Stamp badge (vagas) ---------- */
.stamp-wrap { display: flex; justify-content: center; margin: 6px 0 26px; }
.stamp {
  width: 148px; height: 148px;
  border: 2.5px solid var(--terracotta);
  border-radius: 50%;
  outline: 1px solid var(--terracotta);
  outline-offset: 6px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transform: rotate(-8deg);
  color: var(--terracotta);
  text-align: center;
}
.stamp strong { font-family: var(--font-hand); font-size: 2.1rem; line-height: 1; }
.stamp span { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; margin-top: 4px; }

/* ---------- Receipt card (investimento) ---------- */
.receipt {
  background: var(--white);
  border: 1px solid var(--paper-line);
  max-width: 620px;
  box-shadow: 0 24px 50px -24px rgba(42,28,18,0.3);
  position: relative;
}
.receipt::before, .receipt::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 12px;
  background-image: radial-gradient(circle at 12px 6px, var(--paper) 6px, transparent 6.5px);
  background-size: 24px 12px;
  background-repeat: repeat-x;
}
.receipt::before { top: -6px; }
.receipt::after { bottom: -6px; transform: rotate(180deg); }
.receipt-body { padding: 42px clamp(24px, 5vw, 48px); }
.receipt-row {
  display: flex; justify-content: center; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px dashed var(--paper-line);
  font-variant-numeric: tabular-nums;
}
.receipt-price { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: var(--brown); }
.receipt-or { font-family: var(--font-hand); color: var(--terracotta); font-size: 1.3rem; }
.receipt-cash { font-weight: 600; color: var(--ink-soft); }
.receipt-body h3 { font-size: 1.1rem; margin-bottom: 18px; color: var(--brown); }
.receipt-body .stub { margin-top: 34px; }

/* ---------- Index card form (inscrição) ---------- */
.section-form { position: relative; overflow: hidden; }
.form-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; object-position: 70% center; }
.form-scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(36,26,20,0.96) 0%, rgba(36,26,20,0.88) 45%, rgba(36,26,20,0.5) 100%); }
.form-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.form-intro { position: sticky; top: 110px; }
.form-intro h2 { color: var(--white); }
.form-intro p { color: var(--night-soft); }
.form-intro .folio-label { color: var(--night-soft); }

.card-index {
  background: var(--white);
  color: var(--ink);
  padding: clamp(26px, 4vw, 46px);
  position: relative;
  box-shadow: 0 30px 60px -26px rgba(0,0,0,0.5);
}
.card-index::before {
  content: '';
  position: absolute; top: 16px; left: 16px; right: 16px; bottom: 16px;
  border: 1px solid var(--paper-line);
  pointer-events: none;
}
.card-index-ref {
  position: absolute; top: 14px; right: 22px;
  font-family: var(--font-hand); color: var(--terracotta); font-size: 1rem;
}

.field { margin-bottom: 22px; }
.field label:not(.radio):not(.checkbox), fieldset.field legend {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brown);
  margin-bottom: 9px;
}
fieldset.field { border: none; padding: 0; margin: 0 0 22px; }
input[type="text"], input[type="tel"] {
  width: 100%;
  padding: 10px 4px;
  border: none;
  border-bottom: 1.5px solid var(--paper-line);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color .2s var(--ease);
}
input[type="text"]:focus, input[type="tel"]:focus {
  outline: none;
  border-bottom-color: var(--terracotta);
}
input.other-text { margin-top: 8px; }
input:disabled { opacity: 0.45; }
.radio, .checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-size: 0.93rem; color: var(--ink-soft); cursor: pointer; font-weight: 500;
}
.radio input, .checkbox input[type="checkbox"] { margin-top: 3px; accent-color: var(--terracotta); width: 16px; height: 16px; flex-shrink: 0; }
.checkbox-other { flex-wrap: wrap; }
.checkbox-other .other-text { flex: 1; min-width: 160px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-error {
  background: #f4ddd4; color: #7a3320; padding: 11px 15px; font-size: 0.88rem; font-weight: 600; margin-bottom: 18px;
}
.form-success { text-align: center; padding: 10px 0; }
.form-success h3 { color: var(--brown); margin-bottom: 12px; font-size: 1.4rem; }
.form-success p { color: var(--ink-soft); margin: 0 auto; }

/* ---------- Final flourish ---------- */
.flourish { text-align: center; }
.flourish .signature {
  font-family: var(--font-hand);
  font-size: 2rem;
  color: var(--brown);
  margin-top: 22px;
  display: inline-block;
  transform: rotate(-2deg);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--night-deep); color: var(--night-soft); padding: 50px 6vw; text-align: center; }
.site-footer .logo { color: var(--white); }
.site-footer p { margin: 6px auto 0; font-size: 0.88rem; }
.footer-note { color: rgba(243,231,214,0.45) !important; margin-top: 16px !important; font-size: 0.76rem; }

/* ---------- Mobile floating stub ---------- */
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(36, 26, 20, 0.94);
  backdrop-filter: blur(8px);
  z-index: 90;
  transform: translateY(100%);
  transition: transform .3s var(--ease);
}
.mobile-cta.visible { transform: translateY(0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px) rotate(var(--tilt, 0deg)); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)); }
.margin-photo.tilt-l { --tilt: -3deg; }
.margin-photo.tilt-r { --tilt: 3deg; }
.hero-photo { --tilt: 2deg; }

/* hero headline word stagger (JS adds .word spans) */
.type-in .word { display: inline-block; opacity: 0; transform: translateY(14px); animation: typeIn .5s var(--ease) forwards; }
@keyframes typeIn { to { opacity: 1; transform: translateY(0); } }
.type-in .hand.word { animation: handIn .5s var(--ease) forwards; }
@keyframes handIn { from { opacity: 0; transform: translateY(6px) scale(0.85) rotate(-6deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(-2deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .page { grid-template-columns: 1fr; }
  .rail { display: none; }
  .sheet, .hero { padding-left: 6vw; padding-right: 6vw; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 380px; margin: 0 auto; }
  .editorial, .editorial.flip { grid-template-columns: 1fr; gap: 34px; }
  .editorial.flip .editorial-text, .editorial.flip .editorial-photo { order: 0; }
  .margin-photo { max-width: 320px; margin: 0 auto; transform: none !important; }
  .form-layout { grid-template-columns: 1fr; gap: 36px; }
  .form-intro { position: static; }
  .notes-grid { grid-template-columns: 1fr; max-width: 520px; }
}

@media (max-width: 720px) {
  .hero-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 300px); background: var(--paper); flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; padding: 40px 30px; transform: translateX(100%); transition: transform .3s var(--ease); box-shadow: -20px 0 50px rgba(0,0,0,0.18); }
  .nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; z-index: 110; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-cta { display: block; }
  .sheet, .hero { padding-top: 64px; padding-bottom: 64px; }
  .check-list.two-col { columns: 1; }
  .receipt-row { flex-direction: column; gap: 4px; }
}
