:root {
  --navy: #132032;
  --blue: #132032;
  --blue-light: #a2b6cb;
  --accent: #e77f33;
  --accent-dark: #cf6c23;
  --ink: #132032;
  --muted: #5a6578;
  --soft: #f7f7f7;
  --off-white: #f7f7f7;
  --white: #fff;
  --radius: 24px;
  --shadow: 0 24px 60px rgba(19, 32, 50, .12);
}

html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { font-family: "Poppins", sans-serif; font-weight: 500; color: var(--ink); background: var(--white); overflow-x: hidden; }
.font-display, .hero h1 span { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 700; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 2000; padding: .75rem 1rem; background: var(--white); border-radius: .5rem; }
.announcement { background: var(--accent); color: var(--white); padding: .46rem 1rem; font-size: .77rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
header { background: rgba(255, 255, 255, .96); box-shadow: 0 5px 24px rgba(19, 32, 50, .08); backdrop-filter: blur(12px); }
.navbar { min-height: 82px; }
.navbar-brand img, footer img { width: auto; object-fit: contain; }
.navbar-brand img { height: 57px; }
.nav-link { color: var(--ink); font-size: .9rem; font-weight: 500; padding: .7rem .85rem !important; }
.nav-link:hover, .nav-link.active { color: var(--accent); }
.btn { border-radius: 999px; padding: .78rem 1.35rem; font-weight: 600; border-width: 2px; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .62rem 1.15rem; }
.btn-lg { padding: .95rem 1.45rem; font-size: .95rem; }
.btn-brand { background: var(--navy); color: var(--off-white); border-color: var(--navy); box-shadow: 0 10px 24px rgba(19, 32, 50, .22); }
.btn-brand:hover, .btn-brand:focus { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); box-shadow: 0 12px 26px rgba(231, 127, 51, .28); }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-dark); color: var(--white); border-color: var(--accent-dark); }

.hero { position: relative; min-height: calc(100vh - 112px); padding: 72px 0; color: var(--off-white); background: linear-gradient(100deg, rgba(19, 32, 50, .97) 0%, rgba(19, 32, 50, .9) 48%, rgba(19, 32, 50, .72) 100%), url("../img/hero.jpg") center/cover; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto -12vw -42vw auto; width: 70vw; height: 70vw; border: 2px solid rgba(162, 182, 203, .18); border-radius: 50%; box-shadow: 0 0 0 80px rgba(162, 182, 203, .035), 0 0 0 160px rgba(162, 182, 203, .02); }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.7rem); line-height: .98; letter-spacing: -.04em; font-weight: 600; margin: 1.2rem 0 1.6rem; max-width: 900px; }
.hero h1 span { color: var(--blue-light); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.32rem); max-width: 650px; line-height: 1.7; font-weight: 500; color: rgba(247, 247, 247, .88); margin-bottom: 2rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--navy); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 600; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 10px; background: var(--accent); }
.eyebrow.light { color: var(--blue-light); }
.hero-proof > div { display: grid; padding-left: 1rem; border-left: 3px solid var(--accent); }
.hero-proof strong { font-size: .95rem; font-weight: 600; }
.hero-proof span { font-size: .75rem; font-weight: 500; color: var(--blue-light); }
.lead-card { background: rgba(255, 255, 255, .98); color: var(--ink); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.lead-card-top { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: .75rem; margin-bottom: 1rem; }
.lead-card h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: -.025em; }
.lead-card p { color: var(--muted); font-size: .9rem; font-weight: 500; }
.form-label { font-size: .78rem; font-weight: 600; }
.form-control, .form-select { border: 1px solid rgba(162, 182, 203, .6); border-radius: 12px; padding: .78rem .95rem; min-height: 50px; }
.form-control:focus, .form-select:focus { border-color: var(--blue-light); box-shadow: 0 0 0 .22rem rgba(162, 182, 203, .32); }
.contact-form small { display: block; text-align: center; color: var(--muted); font-size: .66rem; margin-top: .8rem; }

.section-padding { padding: 110px 0; }
.section-title { font-weight: 600; font-size: clamp(2rem, 4.2vw, 3.65rem); line-height: 1.1; letter-spacing: -.03em; margin: 1rem 0 0; }
.section-intro { color: var(--muted); line-height: 1.75; font-weight: 500; }
.heading-center { max-width: 790px; margin: 0 auto; }
.heading-center .section-intro { margin: 1.25rem auto 0; max-width: 700px; }
.feature-card { position: relative; height: 100%; min-height: 295px; padding: 2rem; background: var(--white); border: 1px solid rgba(162, 182, 203, .38); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.feature-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card i { display: grid; place-items: center; width: 54px; height: 54px; color: var(--off-white); background: var(--navy); border-radius: 16px; font-size: 1.5rem; margin-bottom: 2rem; }
.feature-card h3 { font-size: 1.18rem; font-weight: 600; }
.feature-card p { color: var(--muted); font-size: .9rem; font-weight: 500; line-height: 1.7; margin-bottom: 0; }
.feature-number { position: absolute; top: 1.6rem; right: 1.6rem; font-weight: 600; color: var(--blue-light); font-size: 1.1rem; }
.bg-soft { background: var(--soft); }
.course-card { height: 100%; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 15px 45px rgba(19, 32, 50, .08); transition: transform .25s ease, box-shadow .25s ease; }
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.course-card img { display: block; width: 100%; height: 245px; object-fit: cover; }
.course-body { padding: 1.8rem; }
.course-tag { display: inline-block; color: var(--accent); background: rgba(231, 127, 51, .12); padding: .35rem .72rem; border-radius: 999px; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.course-body h3 { font-size: 1.35rem; font-weight: 600; margin: 1rem 0 .7rem; }
.course-body p { color: var(--muted); line-height: 1.7; min-height: 92px; font-size: .9rem; font-weight: 500; }
.course-body a { display: inline-flex; align-items: center; gap: .5rem; color: var(--navy); font-size: .85rem; font-weight: 600; transition: color .2s ease; }
.course-body a:hover { color: var(--accent); }
.programs-panel { margin-top: 2.5rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--white); border-radius: var(--radius); border: 1px solid rgba(162, 182, 203, .35); box-shadow: 0 12px 35px rgba(19, 32, 50, .05); }
.programs-group-title { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: 1rem; }
.programs-group-title i { color: var(--accent); }
.program-item { padding: 1rem 1.15rem; border-radius: 16px; background: var(--soft); height: 100%; }
.program-item strong { display: block; font-size: .98rem; font-weight: 600; color: var(--navy); margin-bottom: .25rem; }
.program-item span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.55; }

.test-section { background: var(--white); }
.test-panel { position: relative; padding: clamp(2rem, 6vw, 5.5rem); border-radius: 34px; color: var(--off-white); background: linear-gradient(120deg, var(--navy) 0%, #1d314b 100%); overflow: hidden; }
.test-panel::after { content: "A B C"; position: absolute; right: -1rem; bottom: -3.5rem; font-size: clamp(7rem, 16vw, 15rem); font-weight: 700; color: rgba(162, 182, 203, .06); white-space: nowrap; pointer-events: none; }
.test-panel h2 { position: relative; z-index: 1; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; margin: 1rem 0 1.2rem; }
.test-panel p { position: relative; z-index: 1; color: rgba(247, 247, 247, .78); line-height: 1.75; max-width: 680px; margin-bottom: 2rem; font-weight: 500; }
.test-stats { position: relative; z-index: 1; display: grid; gap: 1rem; }
.test-stats div { display: flex; align-items: center; gap: 1.2rem; padding: 1.15rem 1.25rem; border: 1px solid rgba(162, 182, 203, .22); background: rgba(162, 182, 203, .08); backdrop-filter: blur(8px); border-radius: 18px; }
.test-stats strong { min-width: 105px; color: var(--blue-light); font-size: 1.45rem; font-weight: 600; }
.test-stats span { font-size: .82rem; font-weight: 500; color: rgba(247, 247, 247, .78); }

.testimonials-section { overflow: hidden; }
.story-card { position: relative; min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 28px; border: none; color: var(--white); background: var(--accent); box-shadow: none; }
.story-card p { position: relative; z-index: 1; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.75; max-width: 690px; font-weight: 500; }
.story-card strong, .story-card span { display: block; }
.story-card strong { font-size: 1rem; font-weight: 600; }
.story-card span { color: rgba(255, 255, 255, .82); font-size: .78rem; font-weight: 500; margin-top: .2rem; }
.quote-mark { position: absolute; right: 2rem; top: -1.4rem; font-size: 11rem; line-height: 1; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 700; color: rgba(255, 255, 255, .32); pointer-events: none; }
.carousel-control-custom { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: none; box-shadow: 0 8px 24px rgba(19, 32, 50, .08); color: var(--navy); background: var(--white); transition: .2s ease; }
.carousel-control-custom:hover { color: var(--off-white); background: var(--navy); }

.faq-section { background: var(--soft); }
.faq-accordion .accordion-item { border: 1px solid rgba(162, 182, 203, .38); border-radius: 18px !important; overflow: hidden; background: var(--white); margin-bottom: .9rem; }
.faq-accordion .accordion-button { font-weight: 600; font-size: 1rem; color: var(--navy); background: var(--white); padding: 1.25rem 1.5rem; box-shadow: none; }
.faq-accordion .accordion-button:not(.collapsed) { color: var(--navy); background: rgba(162, 182, 203, .12); }
.faq-accordion .accordion-button:focus { box-shadow: none; border-color: var(--blue-light); }
.faq-accordion .accordion-body { color: var(--muted); font-size: .92rem; line-height: 1.7; padding: 0 1.5rem 1.35rem; }

.contact-section { position: relative; background: linear-gradient(rgba(247, 247, 247, .94), rgba(247, 247, 247, .94)), url("../img/contato.jpg") center/cover fixed; }
.contact-wrap { border-radius: 30px; box-shadow: var(--shadow); }
.contact-info { padding: clamp(2rem, 5vw, 4rem); color: var(--off-white); background: var(--navy); }
.contact-info h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; margin: 1rem 0 1.25rem; }
.contact-info > p { color: var(--blue-light); line-height: 1.7; font-weight: 500; }
.contact-list { margin: 2rem 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; margin: 1.2rem 0; color: rgba(247, 247, 247, .88); font-size: .88rem; font-weight: 500; line-height: 1.6; }
.contact-list i { color: var(--blue-light); font-size: 1.1rem; }
.contact-list a:hover { color: var(--blue-light); }
.social-links { display: flex; gap: .65rem; }
.social-links a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(162, 182, 203, .14); transition: background-color .2s ease, color .2s ease; }
.social-links a:hover { background: var(--accent); color: var(--white); }
.contact-form-wrap { padding: clamp(2rem, 5vw, 4rem); background: var(--white); }
.contact-form-wrap h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; }
.contact-form-wrap > p { color: var(--muted); margin-bottom: 1.6rem; font-weight: 500; }

footer { padding: 3rem 0 2rem; color: var(--blue-light); background: #0c1522; font-size: .78rem; }
footer a { color: var(--off-white); font-weight: 600; transition: color .2s ease, border-color .2s ease, opacity .2s ease; }
footer a:hover { color: var(--blue-light); }
.footer-top { padding-bottom: 1.75rem; border-bottom: 1px solid rgba(162, 182, 203, .16); }
.footer-brand { height: 76px; width: auto; }
.footer-nav a { font-size: .84rem; color: rgba(247, 247, 247, .84); }
.footer-nav a:hover { color: var(--white); }
.footer-top-link { display: inline-flex; align-items: center; gap: .45rem; padding: .48rem .95rem; border: 1px solid rgba(162, 182, 203, .26); border-radius: 999px; font-size: .76rem; font-weight: 700; }
.footer-top-link:hover { border-color: var(--accent); color: var(--white); }
.footer-bottom { padding-top: 1.5rem; }
.footer-dev { color: var(--blue-light); font-weight: 500; opacity: .92; }
.footer-dev strong { color: var(--off-white); font-weight: 700; }
.footer-dev img { height: 22px; width: auto; }
.footer-dev:hover { opacity: 1; color: var(--off-white); }
.whatsapp-float { position: fixed; right: 24px; bottom: 24px; z-index: 1000; display: grid; place-items: center; width: 60px; height: 60px; border: 4px solid #fff; border-radius: 50%; color: #fff; background: #25d366; box-shadow: 0 12px 35px rgba(0,0,0,.24); font-size: 1.65rem; transition: transform .2s ease; }
.whatsapp-float:hover { color: #fff; transform: translateY(-4px) scale(1.03); }

body.popup-open { overflow: hidden; }
.site-popup { position: fixed; inset: 0; z-index: 1090; display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 3vw, 2rem); background: rgba(19, 32, 50, .76); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease; }
.site-popup.is-open { opacity: 1; visibility: visible; }
.site-popup-dialog { position: relative; max-width: min(92vw, 760px); max-height: calc(100dvh - 2rem); transform: translateY(18px) scale(.96); transition: transform .32s cubic-bezier(.22, 1, .36, 1); }
.site-popup.is-open .site-popup-dialog { transform: translateY(0) scale(1); }
.site-popup-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); border: 1px solid rgba(162, 182, 203, .3); box-shadow: 0 32px 90px rgba(12, 21, 34, .58), 0 0 0 1px rgba(255, 255, 255, .08); }
.site-popup-image { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 4rem); object-fit: contain; }
.site-popup-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(19, 32, 50, .12); background: rgba(255, 255, 255, .96); color: var(--navy); font-size: 1.05rem; line-height: 1; box-shadow: 0 8px 24px rgba(19, 32, 50, .35); cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.site-popup-close:hover { background: var(--accent); color: var(--white); border-color: var(--accent); transform: scale(1.06); }
.site-popup-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (max-width: 991.98px) {
  .navbar-collapse { padding: 1rem 0 1.3rem; }
  .navbar-nav { align-items: stretch !important; }
  .hero { min-height: auto; padding: 70px 0 85px; }
  .section-padding { padding: 82px 0; }
  .contact-section { background-attachment: scroll; }
  .course-body p { min-height: auto; }
}

@media (max-width: 575.98px) {
  .announcement { font-size: .64rem; }
  .navbar { min-height: 72px; }
  .navbar-brand img { height: 48px; max-width: 155px; }
  .hero { padding: 56px 0 70px; }
  .hero h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .hero-proof { gap: 1rem !important; }
  .hero-proof > div { width: calc(50% - .5rem); }
  .section-padding { padding: 68px 0; }
  .feature-card { min-height: auto; }
  .test-panel { border-radius: 24px; }
  .test-stats strong { min-width: 85px; font-size: 1.2rem; }
  .story-card { min-height: 390px; }
  .contact-wrap { border-radius: 22px; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .site-popup-frame { border-radius: 20px; }
  .site-popup-image { max-height: calc(100dvh - 3rem); }
  .site-popup-close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
