/* Escola do Reino — landing de vendas, minimalista, uma ação: ir para o checkout.
   Estrutura: hero (céu animado + foto do Pr. Eduardo Reis), "Quem é", depoimentos
   compactos, chamada final, rodapé. Cores da identidade: Tawny #DB5500 (destaque),
   Isabelline #EDE7E1 e Night #0C0F10.
   Animações só existem com .js; sem JS ou com movimento reduzido, tudo aparece parado. */
:root {
  color-scheme: light;
  --bg: #f5f1ec;
  --paper: #ffffff;
  --ink: #0C0F10;
  --ink-2: #55524e;
  --muted: #8c8680;
  --line: #e0d8cf;
  --night: #0C0F10;       /* fundo escuro (Night) */
  --night-2: #1c1f21;
  --tawny: #DB5500;       /* cor de destaque (Tawny) */
  --tawny-deep: #8f3700;
  --isabelline: #EDE7E1;
  --tawny-soft: #f3a46b;  /* destaque sobre fundo escuro */
  --frame: clamp(8px, 1.4vw, 20px);
  --r-panel: clamp(24px, 3vw, 44px);
  --r-card: clamp(18px, 2vw, 28px);
  --display: Jost, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.02; margin: 0 0 .5em; letter-spacing: -.025em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--tawny); color: #fff; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 760px; }
.small { font-size: .85rem; }
.label { font-family: var(--display); font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }

/* Grão de filme sobre os painéis escuros */
.hero-panel::after, .cta-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────── Botões em pílula ───────── */
.pill {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .9em;
  background: var(--tawny); color: #fff; text-decoration: none; font: 500 1.02rem/1.2 Inter, system-ui, sans-serif;
  padding: 17px 30px; border-radius: 999px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s;
  will-change: transform;
}
.pill-light { background: #fff; color: var(--tawny); box-shadow: 0 10px 40px -10px rgba(243, 164, 107, .55); }
.pill-lg { font-size: 1.08rem; padding: 14px 14px 14px 32px; justify-content: space-between; text-align: left; }
/* brilho que atravessa o botão de tempos em tempos */
.pill::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(243, 164, 107, .55) 50%, transparent 65%);
  transform: translateX(-120%); animation: sheen 5.5s var(--ease-in-out) 2.2s infinite;
}
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.pill-arrow {
  flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--tawny); color: #fff; transition: transform .5s var(--ease);
}
.pill:hover .pill-arrow { transform: rotate(-45deg) scale(1.06); }
.pill:hover { box-shadow: 0 18px 60px -12px rgba(243, 164, 107, .75); }
.pill:active { transform: scale(.98); }
.pill-label { position: relative; }

/* ───────── Hero ───────── */
.hero { padding: var(--frame); }
.hero-panel {
  --mx: 50%; --my: 30%;
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100svh - 2 * var(--frame)); display: flex; align-items: center;
  color: #fff; border-radius: var(--r-panel);
  background:
    radial-gradient(60% 50% at 30% 18%, rgba(243, 164, 107, .22), transparent 70%),
    radial-gradient(80% 70% at 0% 100%, var(--tawny-deep), transparent 70%),
    linear-gradient(180deg, var(--night), var(--night-2));
}
/* luz que segue o cursor */
.hero-panel::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(243, 164, 107, .1), transparent 60%);
}
.hero-sky, .hero-motes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-sky { opacity: 0; transition: opacity 1.6s ease; }
.hero-sky.on { opacity: 1; }
.hero-motes { z-index: 2; pointer-events: none; }

/* Foto: tingida pela cor de fundo (luminosidade), some na direção do texto */
.hero-photo {
  position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 56%;
  background: var(--tawny-deep); isolation: isolate;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%), linear-gradient(to top, transparent 0, #000 22%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 38%), linear-gradient(to top, transparent 0, #000 22%); mask-composite: intersect;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; mix-blend-mode: luminosity; opacity: .92; filter: contrast(1.08) brightness(1.05); }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(34% 50% at 56% 66%, transparent 30%, rgba(12, 15, 16, .72) 100%), linear-gradient(to bottom, rgba(12, 15, 16, .45), transparent 55%); }
.hero-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(200deg, rgba(243, 164, 107, .22), transparent 45%); mix-blend-mode: screen; }

.hero-copy { position: relative; z-index: 3; width: min(640px, 52%); padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 6vw, 88px) clamp(24px, 6vw, 96px); }
.hero-logo { width: clamp(230px, min(22vw, 34vh), 310px); height: auto; margin-bottom: clamp(28px, 5vh, 56px); }
.live { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-family: var(--display); font-size: .76rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #7ee2a8; }
.live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.hero h1 { font-size: clamp(2.8rem, min(6.4vw, 10.5vh), 6.4rem); max-width: 10.5ch; margin-bottom: .35em; }
.hero h1 em { color: var(--tawny-soft); }
.hero-sub { color: rgba(255, 255, 255, .75); margin: 0 0 clamp(26px, 4.5vh, 44px); font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.hero-note { margin: 16px 0 0; font-size: .82rem; color: rgba(255, 255, 255, .55); letter-spacing: .02em; }

/* ── Entrada do hero (fx.js adiciona .is-ready) ── */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .02em .14em; margin: -.06em 0 -.14em; }
.split .w > span { display: inline-block; }
.js .split .w > span { transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease); transition-delay: calc(.55s + var(--i) * .07s); }
.js.is-ready .split .w > span { transform: none; }
.js .intro { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js.is-ready .intro { opacity: 1; transform: none; }
.js .hero-photo img { transform: scale(1.12); opacity: 0; transition: transform 2.4s var(--ease), opacity 1.6s ease; }
.js.is-ready .hero-photo img { transform: none; opacity: .92; }


/* ───────── Quem é ───────── */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(80px, 11vw, 150px) clamp(48px, 7vw, 96px); }
.about-photo { position: relative; overflow: hidden; border-radius: var(--r-card); aspect-ratio: 4 / 5; background: var(--isabelline); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1.6s var(--ease); }
.about-photo:hover img { transform: scale(1.03); }
.about h2 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); }
.about h2 em { color: var(--tawny-deep); }
.about-copy p:not(.label) { color: var(--ink-2); margin: 0 0 1em; max-width: 56ch; }
.about blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 2px solid var(--tawny-soft); font-family: var(--display); font-weight: 300; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.35; color: var(--tawny); max-width: 30ch; }

/* ───────── Depoimentos (compactos) ───────── */
.quotes { padding-block: 0 clamp(64px, 9vw, 120px); }
.quotes .label { margin-bottom: 14px; }
.quote-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quote { background: var(--paper); border-radius: 16px; padding: 18px 20px; border: 1px solid rgba(12, 15, 16, .06); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.quote:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -22px rgba(12, 15, 16, .4); }
.quote blockquote { margin: 0 0 10px; }
.quote blockquote p { margin: 0; font-size: .95rem; line-height: 1.5; }
.quote figcaption { font-size: .8rem; color: var(--muted); }

/* aparece ao rolar (fx.js adiciona .in) */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .quote.reveal.in { transition: opacity 1s var(--ease) var(--d, 0s), transform .5s var(--ease), box-shadow .5s var(--ease); }

/* ───────── Chamada final ───────── */
.cta { padding: 0 var(--frame); }
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center;
  border-radius: var(--r-panel); padding: clamp(80px, 12vw, 160px) 20px; background: var(--night);
}
.cta-glow {
  position: absolute; z-index: -1; left: 50%; top: 50%; width: max(900px, 120%); aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg, var(--tawny), var(--tawny-deep), #f07a2a, var(--tawny-soft), var(--tawny-deep), var(--tawny), var(--night), var(--tawny));
  filter: blur(80px); opacity: .55; border-radius: 50%; animation: spin 22s linear infinite;
  mask: radial-gradient(closest-side, #000 30%, transparent 75%); -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 75%);
}
@keyframes spin { to { rotate: 360deg; } }
.cta .label { color: var(--tawny-soft); }
.cta h2 { font-size: clamp(2.8rem, 7.4vw, 6.8rem); max-width: 12ch; margin: 0 auto 22px; }
.cta h2 em { color: var(--tawny-soft); }
.cta-sub { margin: 0 0 40px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: rgba(255, 255, 255, .85); }
.cta-note { margin: 20px 0 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

/* ───────── Rodapé ───────── */
.footer { color: var(--muted); }
.footer-base { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 26px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-link { text-decoration: none; transition: color .3s; }
.footer-link:hover { color: var(--tawny); }

/* ───────── Páginas simples (privacidade, obrigado, 404) ───────── */
.nav { border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo img { width: 180px; height: auto; }
.seal { width: 240px; height: auto; margin-bottom: 28px; }
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--tawny); }
.section h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 400; margin-top: 1.4em; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.btn { display: inline-block; background: var(--tawny); color: #fff; padding: 13px 26px; border-radius: 999px; font: inherit; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn:hover { background: #b54600; }
.btn-small { padding: 8px 18px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--ink); }
.link-btn { font: inherit; color: var(--tawny); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* ───────── Responsivo ───────── */
@media (max-width: 900px) {
  /* foto em cima, texto embaixo sobre o degradê */
  .hero-panel { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .hero-photo::before { background: radial-gradient(60% 50% at 50% 45%, transparent 35%, rgba(12, 15, 16, .55) 100%); }
  .hero-photo {
    width: 100%; bottom: auto; height: 72%;
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  }
  .hero-copy { width: 100%; padding: 46svh 22px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-logo { position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 220px; margin: 0; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 4rem); max-width: 11ch; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; }
  .quote-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .pill-lg { width: 100%; font-size: .9rem; gap: .5em; padding: 10px 10px 10px 18px; white-space: nowrap; }
  .pill-arrow { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .split .w > span, .js .intro, .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .hero-photo img { opacity: .92 !important; transform: none !important; }
}
