/* Academia dos Engenheiros — Preparatório CFAQ-MAC/MAM */
:root {
  --navy:#031b3d;
  --navy-light:#083768;
  --blue:#0563e8;
  --gold:#f1c66d;
  --ink:#172b43;
  --muted:#586a7d;
  --paper:#f4f7fb;
  --line:#dae3ed;
  --radius:18px;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:120px;
}

body {
  margin:0;
  color:var(--ink);
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  line-height:1.7;
  background:#fff;
}

img {
  max-width:100%;
  height:auto;
  display:block;
}

a {
  color:inherit;
}

button,a,summary {
  -webkit-tap-highlight-color:transparent;
}

a:focus-visible,summary:focus-visible {
  outline:3px solid var(--blue);
  outline-offset:6px;
}

h1,h2,h3,p,figure {
  margin:0;
}

h1,h2,h3 {
  line-height:1.15;
  letter-spacing:-.035em;
}

h2 {
  font-size:clamp(30px,3.2vw,46px);
  font-weight:750;
}

h3 {
  font-size:23px;
}

p {
  margin-bottom:18px;
}

.container {
  width:min(1200px,calc(100% - 64px));
  margin:auto;
}

.section {
  padding:90px 0;
}

.eyebrow {
  font-size:11px;
  font-weight:800;
  letter-spacing:.16em;
  color:var(--blue);
  margin-bottom:18px;
}

.eyebrow.light {
  color:var(--gold);
}

.skip {
  position:absolute;
  left:12px;
  top:-100px;
  background:white;
  padding:12px;
  z-index:20;
}

.skip:focus {
  top:12px;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:25px;
  padding:17px 25px;
  background:var(--blue);
  color:#fff;
  text-decoration:none;
  font-weight:750;
  border-radius:7px;
  line-height:1.4;
  transition:transform .18s,background .18s;
}

.button:hover {
  background:#034fac;
  transform:translateY(-2px);
}

.button.small {
  padding:13px 18px;
}

.button.gold {
  background:var(--gold);
  color:var(--navy);
}

.button.gold:hover {
  background:#ffda8e;
}

.hero {
  color:#fff;
  background:radial-gradient(ellipse at 85% 30%,#104778 0,transparent 55%),var(--navy);
  overflow:hidden;
}

.hero-grid {
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:40px;
  align-items:center;
  padding:76px 0 60px;
}

.hero h1 {
  font-size:clamp(35px,4vw,55px);
  font-weight:500;
  letter-spacing:-.04em;
}

.hero h1 strong {
  display:block;
  color:var(--gold);
  font-weight:800;
}

.hero h1 span {
  display:block;
  font-size:clamp(20px,2vw,26px);
  line-height:1.35;
  margin-top:16px;
  font-weight:500;
  letter-spacing:-.015em;
}

.lead {
  font-size:21px;
  line-height:1.5;
}

.hero .lead {
  margin-top:28px;
  margin-bottom:17px;
}

.hero-description {
  color:#c5d5e5;
  max-width:480px;
  font-size:16px;
}

.hero-note {
  color:#c5d5e5;
  font-size:11px;
  margin:20px 0 0;
}

.hero-art {
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 28px 65px #0005;
  border:1px solid #ffffff20;
  transform:rotate(1deg);
}

.hero-art img {
  width:100%;
  aspect-ratio:1.15;
  object-fit:cover;
}

.hero-art figcaption {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 10px;
  padding:18px 20px;
  background:#062442;
  font-size:13px;
  font-weight:700;
}

.hero-art figcaption>span:last-child {
  margin-left:auto;
  color:#c1cfdf;
  font-size:11px;
  font-weight:400;
}

.dot {
  width:7px;
  height:7px;
  background:var(--gold);
  border-radius:50%;
}

.hero-bottom {
  display:flex;
  justify-content:space-between;
  gap:15px;
  border-top:1px solid #ffffff25;
  padding:24px 0;
  color:#b6c8db;
  font-size:11px;
  letter-spacing:.12em;
}

.hero-bottom span:last-child {
  color:var(--gold);
  letter-spacing:0;
  font-size:13px;
}

.section-heading {
  display:grid;
  grid-template-columns:1.5fr 1fr;
  align-items:end;
  gap:80px;
  margin-bottom:45px;
}

.section-heading>p {
  color:var(--muted);
  margin:0;
  max-width:370px;
}

.benefits {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:35px;
}

.benefits article {
  border-top:1px solid var(--line);
  padding:28px 0 0;
}

.number {
  font-size:13px;
  font-weight:800;
  color:var(--blue);
  display:block;
  margin-bottom:22px;
}

.benefits h3 {
  margin-bottom:15px;
}

.benefits p {
  color:var(--muted);
  margin:0;
}

.curriculum {
  background:var(--paper);
}

.subjects {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
  align-items:start;
}

.subject {
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
}

.subject summary {
  padding:28px;
  display:flex;
  gap:18px;
  align-items:center;
  list-style:none;
  cursor:pointer;
}

.subject summary::-webkit-details-marker,.faq summary::-webkit-details-marker {
  display:none;
}

.subject-icon {
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  flex-shrink:0;
  background:#eaf2fe;
  color:var(--blue);
  font-size:30px;
  border-radius:12px;
}

.subject small {
  display:block;
  font-size:9px;
  letter-spacing:.08em;
  color:var(--muted);
  margin-bottom:5px;
}

.subject strong {
  font-size:26px;
  line-height:1.2;
}

.plus {
  font-size:25px;
  margin-left:auto;
  color:var(--blue);
  transition:transform .2s;
}

.subject[open] .plus {
  transform:rotate(45deg);
}

.subject-body {
  padding:0 30px 28px;
}

.subject-body>p {
  color:var(--muted);
  font-size:14px;
}

.subject ul {
  list-style:none;
  padding:0;
  margin:0;
}

.subject li {
  border-top:1px solid #edf1f6;
  padding:11px 0;
  font-size:14px;
  line-height:1.5;
}

.subject li:before {
  content:'✓';
  color:var(--blue);
  font-weight:700;
  margin-right:10px;
}

.materials {
  background:var(--navy);
  color:white;
}

.materials-grid {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:65px;
  align-items:center;
}

.materials figure img {
  border-radius:var(--radius);
  width:100%;
}

.materials figcaption {
  font-size:11px;
  color:#b5c7db;
  text-align:center;
  margin-top:14px;
}

.materials h2 {
  font-size:clamp(35px,4vw,51px);
}

.materials .lead {
  margin-top:25px;
  color:var(--gold);
}

.materials p:not(.eyebrow):not(.lead) {
  color:#c7d6e5;
}

.checks {
  list-style:none;
  padding:0;
  margin:23px 0;
}

.checks li {
  padding:8px 0;
  font-size:15px;
}

.checks li:before {
  content:'✓';
  color:var(--gold);
  margin-right:12px;
  font-weight:800;
}

.text-link {
  color:var(--gold);
  text-underline-offset:6px;
  font-weight:700;
  font-size:14px;
}

.audience {
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:80px;
}

.audience-list p {
  border-bottom:1px solid var(--line);
  padding-bottom:22px;
  margin-bottom:22px;
}

.audience-list b {
  display:block;
  font-size:20px;
  margin-bottom:7px;
}

.audience-list span {
  color:var(--muted);
}

.workflow {
  background:var(--paper);
}

.steps {
  padding:0;
  list-style:none;
  counter-reset:steps;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:35px;
  margin:45px 0 0;
}

.steps li {
  counter-increment:steps;
  border-top:2px solid #cdddf1;
  padding-top:22px;
}

.steps li:before {
  content:'0' counter(steps);
  display:block;
  color:var(--blue);
  font-size:14px;
  font-weight:800;
  margin-bottom:18px;
}

.steps h3 {
  font-size:20px;
  margin-bottom:12px;
}

.steps p {
  color:var(--muted);
  font-size:14px;
  margin:0;
}

.enrollment {
  background:linear-gradient(120deg,#031b3d,#0a3763);
  color:#fff;
}

.offer {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:90px;
  align-items:center;
}

.offer h2 {
  margin-bottom:25px;
}

.offer>div>p:not(.eyebrow) {
  color:#c6d5e6;
}

.offer-card {
  border:1px solid #ffffff2b;
  border-radius:var(--radius);
  background:#ffffff0b;
  padding:38px;
}

.tag {
  display:inline-block;
  font-size:10px;
  letter-spacing:.12em;
  color:var(--gold);
  font-weight:800;
  margin-bottom:22px;
}

.offer-card h3 {
  font-size:30px;
  margin-bottom:20px;
}

.offer-card p {
  font-size:15px;
  color:#c6d5e6;
}

.offer-card .button {
  width:100%;
  margin:12px 0 17px;
}

.offer-card small {
  display:block;
  text-align:center;
  color:#b7cadd;
  font-size:11px;
}

.faq-grid {
  display:grid;
  grid-template-columns:1fr 1.6fr;
  gap:70px;
}

.faq details {
  border-bottom:1px solid var(--line);
}

.faq summary {
  cursor:pointer;
  list-style:none;
  padding:21px 30px 21px 0;
  position:relative;
  font-weight:650;
  line-height:1.5;
}

.faq summary:after {
  content:'+';
  position:absolute;
  right:0;
  color:var(--blue);
  font-size:22px;
  top:16px;
}

.faq details[open] summary:after {
  content:'−';
}

.faq details p {
  color:var(--muted);
  font-size:15px;
  padding-right:25px;
}

footer {
  border-top:1px solid var(--line);
  padding:38px 0;
}

.footer-inner {
  display:flex;
  align-items:center;
  gap:40px;
  justify-content:space-between;
}

.footer-inner img {
  width:180px;
}

.footer-inner p {
  font-size:13px;
  margin:0;
}

.footer-inner small {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:6px;
}

.footer-inner>a {
  font-size:12px;
  white-space:nowrap;
  text-underline-offset:4px;
}

@media(min-width:1500px) {
  .hero-grid {
    padding-top:100px;
    padding-bottom:85px;
  }

}

@media(max-width:1000px) {
  .hero-grid {
    gap:26px;
  }

  .hero h1 {
    font-size:38px;
  }

  .hero-art img {
    aspect-ratio:.95;
  }

  .section-heading {
    gap:35px;
  }

  .materials-grid {
    gap:32px;
  }

  .offer {
    gap:40px;
  }

  .audience {
    gap:35px;
  }

  .steps {
    gap:22px;
  }

}

@media(max-width:760px) {
  html {
    scroll-padding-top:145px;
  }

  .container {
    width:calc(100% - 36px);
  }

  .section {
    padding:60px 0;
  }

  .hero-grid {
    grid-template-columns:1fr;
    padding:40px 0;
    gap:32px;
  }

  .hero h1 {
    font-size:clamp(34px,8.5vw,49px);
  }

  .hero h1 span {
    font-size:21px;
  }

  .hero .lead {
    font-size:20px;
  }

  .hero-art {
    transform:none;
    max-width:570px;
    width:100%;
    margin:auto;
  }

  .hero-art img {
    aspect-ratio:1.5;
  }

  .hero-note {
    font-size:10px;
  }

  .hero-bottom {
    font-size:8px;
    letter-spacing:.07em;
  }

  .hero-bottom span:last-child {
    font-size:11px;
  }

  .section-heading,.subjects,.materials-grid,.audience,.offer,.faq-grid {
    grid-template-columns:1fr;
    gap:30px;
  }

  .section-heading {
    margin-bottom:30px;
  }

  .benefits {
    grid-template-columns:1fr;
    gap:24px;
  }

  .benefits article {
    display:grid;
    grid-template-columns:36px 1fr;
    gap:8px;
  }

  .benefits .number {
    grid-row:span 2;
    margin:0;
    line-height:27px;
  }

  .benefits h3 {
    margin:0;
    font-size:22px;
  }

  .benefits p {
    grid-column:2;
  }

  .materials-grid {
    gap:35px;
  }

  .materials-grid figure {
    order:2;
  }

  .steps {
    grid-template-columns:1fr 1fr;
    gap:30px;
  }

  .offer-card {
    padding:28px;
  }

  .footer-inner {
    flex-direction:column;
    text-align:center;
    gap:23px;
  }

  .subject summary {
    padding:22px 18px;
  }

  .subject-body {
    padding:0 20px 20px;
  }

  .subject small {
    font-size:8px;
  }

  .subject strong {
    font-size:23px;
  }

  .subject-icon {
    width:45px;
    height:45px;
  }

  .hero-art figcaption {
    font-size:12px;
    padding:13px;
  }

  .hero-art figcaption>span:last-child {
    font-size:10px;
  }

  .faq-grid {
    gap:20px;
  }

}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }

  *,*:before,*:after {
    transition:none!important;
  }

}

/* Cabeçalho e navegação preservados do PCM */
:root {
  --primary:#0563e8;
  --white:#fff;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba( 3, 27, 61, 0.98 );
  border-bottom: 1px solid rgba( 255, 255, 255, 0.08 );
}

.header__container {
  width: min( 1240px, calc(100% - 40px) );
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.header__brand {
  display: flex;
  align-items: center;
}

.header__logo {
  width: 280px;
  max-height: 74px;
  object-fit: contain;
}

/* ========================================================== NAVEGAÇÃO ========================================================== */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  color: rgba( 255, 255, 255, 0.86 );
  border-radius: 8px;
  font-size: 0.80rem;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav__link:hover, .nav__link--active {
  background: rgba( 255, 255, 255, 0.09 );
  color: var(--white);
}

.nav__link--active {
  color: #66b0ff;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  margin-left: 8px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
}

.nav__toggle {
  display: none;
}

/* ========================================================== HERO ========================================================== */
.header a {
  text-decoration:none;
}

.nav__menu {
  list-style:none;
  margin:0;
  padding:0;
}

.nav__toggle:focus-visible {
  outline:3px solid #66b0ff;
  outline-offset:3px;
}

@media(max-width:1050px) {
  .header__logo {
    width:225px;
  }

}

@media(max-width:620px) {
  .header__container {
    width:min(calc(100% - 28px),1180px);
  }

  .header__logo {
    width:190px;
  }

}

/* Videoaulas como destaque principal; PDFs na seção de apoio */
.lesson-visual {
  width:100%;
  padding:15px 0 0;
}

.lesson-monitor {
  border:8px solid #182c41;
  border-bottom-width:14px;
  border-radius:16px;
  background:#06172b;
  box-shadow:0 25px 60px #0005;
  overflow:hidden;
}

.lesson-top {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:14px 17px;
  border-bottom:1px solid #ffffff20;
  font-size:8px;
  letter-spacing:.08em;
  font-weight:700;
  color:#c7d8e8;
}

.lesson-top span:last-child {
  color:var(--gold);
}

.lesson-screen {
  padding:27px;
  background:radial-gradient(ellipse at 100% 0,#164874,transparent 70%),#06213e;
}

.lesson-label {
  font-size:9px;
  font-weight:800;
  letter-spacing:.12em;
  color:var(--gold);
}

.lesson-screen h2 {
  font-size:28px;
  margin:16px 0 22px;
  color:white;
}

.lesson-example {
  display:flex;
  flex-direction:column;
  border-left:3px solid var(--gold);
  padding:8px 0 8px 20px;
  gap:9px;
}

.lesson-example>span {
  font-size:13px;
  color:#c3d5e8;
}

.lesson-example strong {
  font-size:28px;
  font-weight:500;
  letter-spacing:.02em;
  color:white;
}

.lesson-example b {
  font-size:42px;
  line-height:1.2;
  color:var(--gold);
}

.lesson-caption {
  font-size:11px;
  color:#c3d5e8;
  margin-top:24px;
}

.lesson-progress {
  display:flex;
  align-items:center;
  gap:14px;
  padding:15px 18px;
  color:#b9cfe4;
  font-size:12px;
}

.lesson-progress i {
  height:3px;
  flex:1;
  background:linear-gradient(to right,var(--gold) 38%,#3b516a 38%);
  border-radius:3px;
}

.monitor-stand {
  height:36px;
  width:110px;
  background:linear-gradient(90deg,#142c45,#3b536c,#142c45);
  margin:auto;
  position:relative;
}

.monitor-stand:after {
  content:'';
  position:absolute;
  bottom:-7px;
  left:-35px;
  width:180px;
  height:9px;
  border-radius:50% 50% 3px 3px;
  background:#39516a;
}

.lesson-visual figcaption {
  text-align:center;
  margin-top:29px;
  font-size:14px;
}

.lesson-visual figcaption strong {
  display:block;
  color:var(--gold);
}

.lesson-visual figcaption span {
  display:block;
  font-size:10px;
  color:#b6c8db;
  margin-top:5px;
}

@media(max-width:760px) {
  .lesson-visual {
    max-width:550px;
    margin:auto;
  }

  .lesson-screen {
    padding:23px;
  }

  .lesson-screen h2 {
    font-size:27px;
  }

  .lesson-example strong {
    font-size:26px;
  }

}

/* Imagem principal completa, sem cortes no texto */
.videoaulas-destaque {
  width:100%;
  margin:0;
  min-width:0;
}

.videoaulas-destaque img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:3/2;
  object-fit:contain;
  border:1px solid rgba(241,198,109,.45);
  border-radius:18px;
  box-shadow:0 25px 65px rgba(0,0,0,.4);
}

.videoaulas-destaque figcaption {
  margin-top:13px;
  text-align:center;
  color:#b6c8db;
  font-size:11px;
  line-height:1.5;
}

@media(max-width:760px) {
  .videoaulas-destaque {
    max-width:570px;
    margin:0 auto;
  }

}

/* ================================================== PLANO DE ESTUDOS — ORGANIZAÇÃO E ACABAMENTO Regras restritas à seção #preparatorio. ================================================== */
#preparatorio {
  padding:85px 0;
  background:#f3f6fb;
}

#preparatorio .section-heading {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  align-items:center;
  gap:45px;
  margin-bottom:38px;
}

#preparatorio .eyebrow {
  color:#0563e8;
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  margin-bottom:16px;
}

#preparatorio .section-heading h2 {
  color:#031b3d;
  font-size:clamp(28px,3vw,42px);
  line-height:1.2;
  letter-spacing:-.035em;
}

#preparatorio .section-heading > p {
  max-width:none;
  margin:0;
  color:#53647a;
  font-size:16px;
  line-height:1.8;
}

#preparatorio .benefits {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin-bottom:36px;
}

#preparatorio .benefits article {
  padding:28px;
  border:1px solid #dce5f0;
  border-top:4px solid #0563e8;
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 25px rgba(3,27,61,.05);
}

#preparatorio .benefits article:last-child {
  border-top-color:#d8a441;
  background:#fffaf0;
}

#preparatorio .benefits .number {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  margin-bottom:20px;
  border-radius:12px;
  background:#edf4ff;
  color:#0563e8;
  font-size:16px;
  font-weight:800;
}

#preparatorio .benefits article:last-child .number {
  background:#f8e8c4;
  color:#795718;
}

#preparatorio .benefits h3 {
  margin:0 0 13px;
  color:#031b3d;
  font-size:21px;
  line-height:1.3;
}

#preparatorio .benefits p {
  margin:0;
  color:#53647a;
  font-size:15px;
  line-height:1.75;
}

#preparatorio .container > p {
  margin:0 0 24px;
  color:#53647a;
  font-size:15px;
}

#preparatorio .subjects {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
  gap:26px;
}

#preparatorio .subject {
  min-width:0;
  overflow:hidden;
  border:1px solid #dce5f0;
  border-radius:18px;
  background:#fff;
  box-shadow:0 14px 35px rgba(3,27,61,.06);
}

#preparatorio .subject summary {
  display:flex;
  align-items:center;
  gap:16px;
  padding:25px;
  background:#031b3d;
  cursor:pointer;
}

#preparatorio .subject summary > span:nth-child(2) {
  min-width:0;
}

#preparatorio .subject summary small {
  display:block;
  margin-bottom:6px;
  color:#c2d4e9;
  font-size:10px;
  line-height:1.5;
  letter-spacing:.08em;
}

#preparatorio .subject summary strong {
  display:block;
  color:#fff;
  font-size:27px;
  line-height:1.2;
}

#preparatorio .subject-icon {
  flex-shrink:0;
  width:52px;
  height:52px;
  border:1px solid rgba(241,198,109,.35);
  border-radius:13px;
  background:rgba(241,198,109,.12);
  color:#f1c66d;
  font-size:28px;
}

#preparatorio .subject .plus {
  margin-left:auto;
  color:#f1c66d;
  font-size:26px;
}

#preparatorio .subject-body {
  padding:26px;
}

#preparatorio .subject-body > p {
  margin:0 0 22px;
  color:#53647a;
  font-size:15px;
  line-height:1.8;
}

#preparatorio .subject-body ul {
  padding:0;
  margin:0;
  list-style:none;
}

#preparatorio .subject-body li {
  padding:19px 0;
  border-top:1px solid #e5ebf3;
  color:#53647a;
  font-size:15px;
  line-height:1.85;
}

#preparatorio .subject-body li::before {
  content:none;
}

#preparatorio .subject-body strong {
  color:#173758;
  font-size:15px;
  font-weight:700;
  line-height:inherit;
  letter-spacing:normal;
}

#preparatorio .subject-body li > strong:first-child {
  display:block;
  margin-bottom:8px;
  color:#034fa8;
  font-size:17px;
  line-height:1.45;
}

#preparatorio .subject-body li br + strong {
  display:inline-block;
  margin-top:10px;
}

#preparatorio .subject-body li > strong:first-child + br {
  display:none;
}

#preparatorio .subject-body > p:last-child {
  margin:18px 0 0;
  padding:19px;
  border-left:3px solid #d8a441;
  border-radius:0 10px 10px 0;
  background:#fff8e9;
  color:#5d513a;
  font-size:14px;
  line-height:1.75;
}

#preparatorio .subject-body > p:last-child strong {
  display:block;
  margin-bottom:5px;
  color:#76551b;
  font-size:15px;
}

@media (max-width:850px) {
  #preparatorio .section-heading {
    grid-template-columns:1fr;
    gap:20px;
  }

  #preparatorio .benefits {
    grid-template-columns:1fr;
    gap:16px;
  }

  #preparatorio .benefits article {
    display:block;
    padding:24px;
  }

  #preparatorio .benefits .number {
    margin-bottom:16px;
  }

}

@media (max-width:650px) {
  #preparatorio {
    padding:55px 0;
  }

  #preparatorio .subjects {
    grid-template-columns:1fr;
    gap:24px;
  }

  #preparatorio .subject summary {
    padding:22px 18px;
  }

  #preparatorio .subject-body {
    padding:22px;
  }

  #preparatorio .subject summary strong {
    font-size:25px;
  }

}

/* RODAPÉ — MESMO PADRÃO VISUAL DA PÁGINA PCM */
.footer {
  padding: 65px 0 0;
  background: #02152f;
  color: #ffffff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 45px;
}

.footer__brand img {
  width: 250px;
  max-height: 85px;
  object-fit: contain;
  margin-bottom: 18px;
}

.footer__brand p {
  max-width: 320px;
  color: rgba( 255, 255, 255, 0.60 );
  font-size: 0.84rem;
}

.footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer__column h2 {
  margin-bottom: 8px;
  font-size: 0.91rem;
}

.footer__column > a {
  color: rgba( 255, 255, 255, 0.63 );
  font-size: 0.81rem;
}

.footer__column > a:hover {
  color: #ffffff;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.footer__social a:hover {
  transform: translateY(-3px);
}

.footer__social img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer__bottom {
  margin-top: 50px;
  padding: 22px 0;
  border-top: 1px solid rgba( 255, 255, 255, 0.08 );
  text-align: center;
}

.footer__bottom p {
  color: rgba( 255, 255, 255, 0.48 );
  font-size: 0.77rem;
}

.footer {
  border-top:0;
}

.footer .section-container {
  width:min(1180px,calc(100% - 40px));
  margin:0 auto;
}

.footer a {
  text-decoration:none;
}

.footer h2 {
  letter-spacing:normal;
  line-height:1.2;
}

.footer__bottom p {
  margin:0;
}

@media(max-width:900px) {
  .footer__grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:35px;
  }

}

@media(max-width:620px) {
  .footer__grid {
    grid-template-columns:1fr;
  }

  .footer .section-container {
    width:calc(100% - 28px);
  }

}

/* OFERTA — estilos exclusivos desta seção */
.cfaq-oferta {
  padding:85px 0;
  background:radial-gradient(ellipse at 15% 0, #124976 0,transparent 55%),#031b3d;
  color:#fff;
  border-top:1px solid #ffffff15;
  border-bottom:1px solid #ffffff15;
}

.cfaq-oferta__grid {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:70px;
  align-items:center;
}

.cfaq-oferta__selo {
  display:inline-block;
  padding:9px 15px;
  border:1px solid #f1c66d65;
  border-radius:6px;
  color:#f1c66d;
  background:#f1c66d0c;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  margin:0 0 25px;
}

.cfaq-oferta__intro h2 {
  font-size:clamp(32px,3.5vw,49px);
  line-height:1.15;
  margin:0 0 25px;
  color:#fff;
}

.cfaq-oferta__intro h2 span {
  color:#f1c66d;
}

.cfaq-oferta__intro>p:not(.cfaq-oferta__selo) {
  color:#c8d8e8;
  font-size:17px;
  line-height:1.8;
  max-width:520px;
}

.cfaq-oferta__lista {
  list-style:none;
  padding:0;
  margin:28px 0 0;
}

.cfaq-oferta__lista li {
  position:relative;
  padding:10px 0 10px 28px;
  color:#e5edf6;
  font-size:15px;
  line-height:1.6;
}

.cfaq-oferta__lista li:before {
  content:'✓';
  position:absolute;
  left:0;
  color:#f1c66d;
  font-weight:800;
}

.cfaq-oferta__card {
  min-width:0;
  padding:38px;
  border:1px solid #f1c66d;
  border-radius:22px;
  background:#fff;
  color:#17304c;
  box-shadow:0 25px 70px #0004;
  text-align:center;
}

.cfaq-oferta__curso {
  margin:0 0 5px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.09em;
  color:#034fa8;
}

.cfaq-oferta__descricao {
  margin:0 0 28px;
  font-size:20px;
  font-weight:700;
}

.cfaq-oferta__rotulo {
  margin:0;
  font-size:14px;
  color:#53647a;
}

.cfaq-oferta__preco {
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:5px;
  margin:6px 0 10px;
  color:#031b3d;
  font-size:clamp(64px,7vw,88px);
  font-weight:850;
  letter-spacing:-.06em;
  line-height:1.1;
}

.cfaq-oferta__preco span:first-child {
  font-size:25px;
  letter-spacing:-.02em;
  margin-right:3px;
}

.cfaq-oferta__preco span:last-child {
  font-size:44px;
  letter-spacing:-.04em;
}

.cfaq-oferta__prazo {
  margin:0 0 25px;
  color:#53647a;
  font-size:15px;
}

.cfaq-oferta__prazo strong {
  color:#17304c;
}

.cfaq-oferta__botao {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  min-height:58px;
  padding:17px 20px;
  background:#f1c66d;
  border:1px solid #d8ad52;
  color:#031b3d;
  border-radius:9px;
  font-size:16px;
  font-weight:800;
  line-height:1.4;
  text-decoration:none;
  transition:background .2s,transform .2s;
}

.cfaq-oferta__botao:hover {
  background:#ffda8e;
  transform:translateY(-2px);
}

.cfaq-oferta__botao:focus-visible {
  outline:3px solid #0563e8;
  outline-offset:4px;
}

.cfaq-oferta__checkout {
  margin:13px 0 25px;
  color:#63748a;
  font-size:11px;
}

.cfaq-oferta__garantia {
  display:flex;
  align-items:center;
  gap:17px;
  padding-top:23px;
  border-top:1px solid #dce5f0;
  text-align:left;
}

.cfaq-oferta__dias {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  width:64px;
  height:72px;
  border:1px solid #c4d8ed;
  border-radius:15px;
  background:#edf4fc;
  color:#034fa8;
  font-size:34px;
  font-weight:800;
  line-height:1;
}

.cfaq-oferta__dias small {
  font-size:10px;
  letter-spacing:.1em;
  margin-top:5px;
}

.cfaq-oferta__garantia h3 {
  margin:0 0 7px;
  font-size:17px;
  letter-spacing:normal;
  color:#17304c;
}

.cfaq-oferta__garantia p {
  margin:0;
  color:#53647a;
  font-size:13px;
  line-height:1.65;
}

@media(max-width:850px) {
  .cfaq-oferta__grid {
    grid-template-columns:1fr;
    gap:35px;
  }

  .cfaq-oferta__card {
    width:100%;
    max-width:550px;
    margin:auto;
  }

}

@media(max-width:500px) {
  .cfaq-oferta {
    padding:55px 0;
  }

  .cfaq-oferta__card {
    padding:28px 20px;
  }

  .cfaq-oferta__botao {
    font-size:15px;
  }

  .cfaq-oferta__garantia {
    gap:12px;
  }

  .cfaq-oferta__intro>p:not(.cfaq-oferta__selo) {
    font-size:16px;
  }

}

@media(prefers-reduced-motion:reduce) {
  .cfaq-oferta__botao {
    transition:none;
  }

  .cfaq-oferta__botao:hover {
    transform:none;
  }

}

/* RESPONSIVIDADE — celular, tablet, computador e telas grandes */
:root {
  --page-width: 1440px;
  --page-gutter: clamp(12px, 3vw, 48px);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 100px;
}

body {
  overflow-wrap: anywhere;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.container, .header__container, .footer .section-container {
  width: calc(100% - var(--page-gutter) * 2);
  max-width: var(--page-width);
  margin-inline: auto;
}

.hero-grid > *, .section-heading > *, .benefits > *, .subjects > *,
.materials-grid > *, .audience > *, .steps > *, .offer > *,
.faq-grid > *, .cfaq-oferta__grid > *, .footer__grid > * {
  min-width: 0;
}

.section, #preparatorio, .cfaq-oferta {
  padding-block: clamp(48px, 6vw, 96px);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.hero h1 {
  font-size: clamp(1.75rem, 3.8vw, 3.5rem);
}

.hero h1 span {
  font-size: clamp(1.125rem, 2vw, 1.625rem);
}

h2, .materials h2, #preparatorio .section-heading h2,
.cfaq-oferta__intro h2 {
  font-size: clamp(1.625rem, 3.2vw, 3rem);
}

.section-heading, #preparatorio .section-heading,
.materials-grid, .audience, .offer, .faq-grid, .cfaq-oferta__grid {
  gap: clamp(24px, 4vw, 64px);
}

.benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.button, .cfaq-oferta__botao, .nav__cta {
  max-width: 100%;
  min-height: 44px;
  white-space: normal;
  text-align: center;
}

.button {
  gap: 12px;
}

.hero-bottom {
  flex-wrap: wrap;
}

.header__container {
  gap: 20px;
}

.header__brand {
  min-width: 0;
}

.header__logo {
  width: clamp(160px, 22vw, 280px);
}

.footer__grid {
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: 32px;
}

.footer__social a {
  flex: 0 0 38px;
}

.skip {
  z-index: 1100;
}

/* O menu recolhe antes de faltar espaço para os links. */
@media (max-width: 1100px) {
  .header__container {
    min-height: 76px;
  }

  .header__brand {
    max-width: calc(100% - 64px);
  }

  .header__logo {
    width: 225px;
    max-width: 100%;
  }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid #ffffff50;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }

  .nav__hamburger, .nav__hamburger::before, .nav__hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
  }

  .nav__hamburger {
    position: relative;
  }

  .nav__hamburger::before, .nav__hamburger::after {
    content: '';
    position: absolute;
    left: 0;
  }

  .nav__hamburger::before {
    top: -7px;
  }

  .nav__hamburger::after {
    top: 7px;
  }

  .nav.active .nav__hamburger {
    background: transparent;
  }

  .nav.active .nav__hamburger::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav.active .nav__hamburger::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px var(--page-gutter) 20px;
    background: #031b3d;
    border-top: 1px solid #ffffff20;
    box-shadow: 0 14px 20px #0003;
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav.active .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav__link, .nav__cta {
    display: flex;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 12px;
  }

  .nav__cta {
    margin-top: 6px;
  }

}

@media (max-width: 900px) {
  .hero-grid, .materials-grid, .audience, .offer, .faq-grid,
  .section-heading, #preparatorio .section-heading, .cfaq-oferta__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    padding-block: 40px;
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 5.8vw, 3.25rem);
  }

  .hero-description, .section-heading > p {
    max-width: 65ch;
  }

  .videoaulas-destaque {
    width: 100%;
    max-width: 700px;
    margin-inline: auto;
  }

  .materials-grid figure {
    order: 2;
    max-width: 700px;
    margin-inline: auto;
  }

  .cfaq-oferta__card {
    width: 100%;
    max-width: 550px;
    margin-inline: auto;
  }

  #preparatorio .subjects {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .benefits, #preparatorio .benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefits article {
    display: block;
  }

  .benefits .number {
    margin-bottom: 16px;
  }

  .benefits h3 {
    margin-bottom: 12px;
  }

}

@media (max-width: 480px) {
  .header__container {
    min-height: 68px;
    gap: 12px;
  }

  .nav__menu {
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px);
  }

  .hero .lead, .lead {
    font-size: 1.125rem;
  }

  .hero-copy .button, .audience .button {
    width: 100%;
  }

  .button {
    padding: 15px 16px;
  }

  .steps, .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #preparatorio .subject summary {
    padding: 18px 12px;
    gap: 10px;
  }

  #preparatorio .subject-icon {
    width: 38px;
    height: 42px;
    font-size: 24px;
  }

  #preparatorio .subject summary strong {
    font-size: clamp(1.125rem, 5.5vw, 1.5rem);
  }

  #preparatorio .subject summary small {
    font-size: 9px;
    letter-spacing: .03em;
  }

  #preparatorio .subject .plus {
    flex-shrink: 0;
  }

  #preparatorio .subject-body, #preparatorio .benefits article {
    padding: 18px 14px;
  }

  #preparatorio .subject-body > p:last-child {
    padding: 14px;
  }

  .offer-card, .cfaq-oferta__card {
    padding: 24px 16px;
  }

  .offer-card h3 {
    font-size: 1.5rem;
  }

  .cfaq-oferta__selo {
    padding: 9px 10px;
    letter-spacing: .06em;
  }

  .cfaq-oferta__preco {
    font-size: clamp(3rem, 17vw, 4.5rem);
  }

  .cfaq-oferta__preco span:first-child {
    font-size: 1.25rem;
  }

  .cfaq-oferta__preco span:last-child {
    font-size: 2rem;
  }

  .cfaq-oferta__botao {
    padding: 15px 12px;
    gap: 8px;
  }

  .cfaq-oferta__garantia {
    align-items: flex-start;
  }

  .cfaq-oferta__dias {
    width: 48px;
    height: 60px;
    font-size: 28px;
  }

  .hero-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .hero-bottom, .hero-note {
    font-size: 11px;
  }

}

@media (max-width: 320px) {
  .cfaq-oferta__garantia {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero h1 strong {
    font-size: 1.5rem;
  }

  h2 br {
    display: none;
  }

}

@media (min-width: 1800px) {
  .hero-grid {
    padding-block: 100px;
  }

  .hero-description, .audience p, .materials p {
    font-size: 1.125rem;
  }

}
