/* ==========================================================================
   3DParnaíba — linha educativa (tema claro)
   ========================================================================== */
:root { --red: #E5412D; --yellow: #F6B40E; --eblue: #1F7AE0; --egreen: #2FA84F; }

.mark, .h2 em.mark { font-style: normal; --hl: var(--yellow); }
.dots4 { display: inline-flex; gap: 4px; }
.dots4 i { width: 9px; height: 9px; border-radius: 50%; }

/* --------------------------------------------------------------- hero */
.edu-hero { position: relative; padding-top: clamp(104px, 13vw, 150px); padding-bottom: clamp(56px, 8vw, 110px); overflow: clip; }
.edu-hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.edu-copy { display: grid; gap: clamp(20px, 2.6vw, 30px); justify-items: start; min-width: 0; }
.edu-copy .h1 { font-size: clamp(2rem, 1.1rem + 3.9vw, 4.5rem); }
.edu-visual { position: relative; width: min(100%, 540px); justify-self: center; }
.edu-photo { width: 84%; margin-left: auto; aspect-ratio: 1; border-radius: clamp(28px, 4vw, 44px); overflow: hidden; rotate: 2.5deg; box-shadow: 0 40px 80px -36px rgba(18, 21, 28, .5), 0 0 0 8px #fff; }
.edu-photo img { width: 100%; height: 100%; object-fit: cover; }
.edu-visual .stage { position: absolute; left: -7%; bottom: -13%; width: 50%; }
.edu-visual .stage::before { display: none; }
.shape { position: absolute; pointer-events: none; animation: floaty 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.6s); }
@keyframes floaty { 50% { transform: translateY(-14px) rotate(10deg); } }
.shape--circle { width: 15%; aspect-ratio: 1; border-radius: 50%; background: var(--red); left: 2%; top: 4%; }
.shape--star { width: 17%; aspect-ratio: 1; background: var(--yellow); right: -5%; bottom: 12%; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.shape--hex { width: 12%; aspect-ratio: 1; background: var(--egreen); left: 30%; top: -5%; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }
@media (min-width: 960px) {
  .edu-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .edu-visual { justify-self: end; }
}
@media (max-width: 959px) { .edu-visual { width: min(92%, 420px); margin-bottom: 26px; } .edu-copy .btn { flex: 1 1 auto; } }

/* --------------------------------------------------------------- números */
.edu-stats { border-radius: var(--r-xl); background: var(--bg); color: var(--text); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.edu-stat { padding: clamp(20px, 3vw, 40px); display: grid; gap: 10px; align-content: start; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: -1px 0 0 -1px; }
.edu-stat b { font: 800 clamp(1.7rem, 1rem + 3vw, 3.6rem)/.95 var(--f-display); letter-spacing: -.05em; color: var(--c); white-space: nowrap; }
.edu-stat b small { font-size: .42em; letter-spacing: -.02em; }
.edu-stat > span { color: var(--muted); line-height: 1.35; font-size: clamp(.92rem, .85rem + .3vw, 1.08rem); }
@media (min-width: 900px) { .edu-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* --------------------------------------------------------------- por que funciona */
.whys { display: grid; gap: 16px; }
@media (min-width: 640px) { .whys { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .whys { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.why { background: var(--surface); border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 30px); display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow); transition: transform .6s var(--ease-out), box-shadow .6s; }
.why:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(18, 21, 28, .35); }
.why h3 { font: 700 1.2rem/1.15 var(--f-display); letter-spacing: -.035em; }
.why p { color: var(--muted); }
/* encaixe: a peça colorida cai dentro do vazado quando o cartão aparece */
.socket { position: relative; width: 74px; height: 74px; margin-bottom: 6px; }
.socket::before, .socket i { content: ""; position: absolute; inset: 0; clip-path: var(--shape); border-radius: var(--rad, 0); }
.socket::before { background: var(--bg-soft); box-shadow: inset 0 3px 8px rgba(18, 21, 28, .25); }
.socket i { inset: 5px; background: var(--c); translate: 26px -34px; rotate: 24deg; transition: translate .9s var(--ease-out) .35s, rotate .9s var(--ease-out) .35s; }
.why.in .socket i { translate: 0 0; rotate: 0deg; }
.why:hover .socket i { translate: 0 -12px; rotate: -8deg; transition-delay: 0s; }
.sk-circle { --rad: 50%; --shape: none; }
.sk-square { --rad: 16px; --shape: none; }
.sk-star { --shape: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.sk-hex { --shape: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }

/* --------------------------------------------------------------- a linha: três estágios */
.stgs { display: grid; gap: clamp(48px, 7vw, 96px); }
.stg { display: grid; gap: clamp(20px, 3vw, 40px); }
.stg-head { display: grid; gap: 12px; align-content: start; position: relative; }
.stg-n { font: 900 clamp(5.5rem, 3rem + 10vw, 11rem)/.78 var(--f-display); letter-spacing: -.08em; color: var(--c); }
.stg-k { font: 500 .7rem/1 var(--f-mono); font-stretch: 87.5%; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stg-age { justify-self: start; padding: 8px 15px; border-radius: 999px; background: var(--c); color: var(--cf, #12151C); font-weight: 800; font-size: .95rem; }
.stg-t { color: var(--muted); font-size: 1.1rem; line-height: 1.4; max-width: 18em; }
.stg-items { display: grid; gap: 16px; }
.prod { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: grid; transition: transform .6s var(--ease-out), box-shadow .6s; }
.prod:hover { transform: translateY(-5px); box-shadow: 0 34px 60px -34px rgba(18, 21, 28, .4); }
.prod-img { overflow: hidden; aspect-ratio: 4 / 3; }
.prod img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
.prod:hover img { scale: 1.05; }
.prod-body { padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 12px; align-content: center; }
.prod h4 { font: 700 clamp(1.2rem, 1rem + .8vw, 1.6rem)/1.12 var(--f-display); letter-spacing: -.035em; }
.prod p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags span { padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); font-weight: 600; font-size: .84rem; }
@media (min-width: 720px) {
  .prod { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); }
  .prod-img { aspect-ratio: auto; min-height: 260px; }
  .prod:nth-child(even) .prod-img { order: 2; }
}
@media (min-width: 1040px) {
  .stg { grid-template-columns: minmax(0, .46fr) minmax(0, 1fr); }
  .stg-head { position: sticky; top: 120px; align-self: start; }
}

/* --------------------------------------------------------------- como fazemos (rolagem guiada + 3D) */
.proc { color: var(--text); }
.proc-grid { display: grid; position: relative; }
.proc-stage { position: sticky; top: 70px; z-index: 2; display: grid; justify-items: center; gap: 4px; padding: 8px 0 14px; background: var(--bg); }
.proc-stage::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 44px; background: linear-gradient(to bottom, var(--bg), transparent); pointer-events: none; }
.proc-stage .stage { height: min(38svh, 320px); width: auto; }
.proc-dots { display: flex; align-items: center; gap: 8px; font: 500 .6rem/1 var(--f-mono); font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.proc-dots i { width: 26px; height: 3px; border-radius: 3px; background: var(--line-2); transition: background .4s; }
.proc-grid[data-on="0"] .proc-dots i:nth-of-type(-n+1),
.proc-grid[data-on="1"] .proc-dots i:nth-of-type(-n+2),
.proc-grid[data-on="2"] .proc-dots i:nth-of-type(-n+3),
.proc-grid[data-on="3"] .proc-dots i:nth-of-type(-n+4) { background: var(--orange); }
.proc-dots b { color: var(--text); font-weight: 500; min-width: 9em; }
.steps { display: grid; counter-reset: s; }
.step { min-height: 46svh; display: grid; gap: 12px; align-content: center; justify-items: start; padding-block: 18px; opacity: .28; transition: opacity .5s; }
.step.is-on { opacity: 1; }
.step-k { font: 500 .68rem/1 var(--f-mono); font-stretch: 87.5%; letter-spacing: .14em; color: var(--orange); display: inline-flex; align-items: center; gap: 10px; }
.step-k::after { content: ""; width: 0; height: 1px; background: var(--orange); transition: width .7s var(--ease-out); }
.step.is-on .step-k::after { width: 56px; }
.step h3 { font: 700 clamp(1.5rem, 1.1rem + 1.9vw, 2.6rem)/1.06 var(--f-display); letter-spacing: -.04em; }
.step p { color: var(--muted); font-size: var(--fs-lead); line-height: 1.5; max-width: 26em; }
@media (min-width: 900px) {
  .proc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
  .proc-stage { top: calc(50vh - 230px); align-self: start; background: none; padding: 0; gap: 14px; }
  .proc-stage::after { display: none; }
  .proc-stage .stage { height: auto; width: min(100%, 420px); }
  .step { min-height: 58vh; }
}
@media (prefers-reduced-motion: reduce) { .step { opacity: 1; min-height: 0; } }

/* --------------------------------------------------------------- material e segurança */
.safes { display: grid; gap: 14px; }
@media (min-width: 640px) { .safes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .safes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.safe { position: relative; background: var(--surface); box-shadow: var(--shadow); border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 30px); display: grid; gap: 10px; align-content: start; overflow: hidden; }
.safe::before { content: ""; width: 44px; height: 8px; border-radius: 8px; background: var(--c); margin-bottom: 10px; transition: width .7s var(--ease-out); }
.safe:hover::before { width: 88px; }
.safe h3 { font: 700 1.2rem/1.15 var(--f-display); letter-spacing: -.035em; }
.safe p { color: var(--muted); }
.safe-n { position: absolute; top: 20px; right: 22px; font: 500 .66rem/1 var(--f-mono); letter-spacing: .1em; color: var(--dim); }

/* --------------------------------------------------------------- escolas e clínicas */
.school { border-radius: var(--r-xl); background: var(--yellow); color: #12151C; padding: clamp(26px, 5vw, 72px); display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; overflow: hidden; }
.school-copy { display: grid; gap: 20px; justify-items: start; min-width: 0; }
.school-k { font: 600 .7rem/1 var(--f-mono); font-stretch: 87.5%; letter-spacing: .14em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; background: #12151C; color: #fff; }
.school p { font-size: var(--fs-lead); line-height: 1.5; max-width: 32em; }
.school-list { display: grid; width: 100%; font-weight: 600; }
.school-list li { display: flex; gap: 13px; align-items: baseline; padding: 12px 0; border-top: 1.5px solid rgba(18, 21, 28, .25); line-height: 1.4; }
.school-list li::before { content: ""; flex: none; width: 9px; height: 9px; background: #12151C; rotate: 45deg; translate: 0 -1px; }
.collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.collage img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: clamp(16px, 2vw, 26px); box-shadow: 0 0 0 5px #fff, 0 24px 40px -22px rgba(18, 21, 28, .55); transition: rotate .7s var(--ease-out), scale .7s var(--ease-out); }
.collage img:nth-child(1) { rotate: -3deg; } .collage img:nth-child(2) { rotate: 2.5deg; translate: 0 8%; }
.collage img:nth-child(3) { rotate: 2deg; } .collage img:nth-child(4) { rotate: -2.5deg; translate: 0 8%; }
.collage img:hover { rotate: 0deg; scale: 1.04; }
@media (min-width: 960px) { .school { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }

/* --------------------------------------------------------------- chamada final */
.cta-k { font: 500 .7rem/1 var(--f-mono); font-stretch: 87.5%; letter-spacing: .14em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); }
.cta--edu .cta-card { grid-template-columns: minmax(0, 1fr); }
.cta--edu .cta-title { font-size: clamp(1.8rem, 1rem + 3.4vw, 3.8rem); max-width: 16em; }
.cta--edu .cta-copy p { max-width: 44em; font-size: var(--fs-lead); }
