/* Site institucional DK Consultoria */
:root {
  --navy: #173954;
  --navy-2: #0e2639;
  --blue: #087da8;
  --blue-2: #1b9bd1;
  --blue-soft: #e8f4f9;
  --text: #1c2d3c;
  --muted: #5a6b7b;
  --line: #e1e8ee;
  --bg-alt: #f4f7fa;
  --wa: #1fa855;
  --radius: 16px;
  --shadow: 0 2px 6px rgba(16, 42, 64, .05), 0 12px 32px rgba(16, 42, 64, .07);
  --header-h: 76px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 17px; line-height: 1.65; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.small { font-size: .88rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.eyebrow.light { color: #8fd3f0; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 650; font-size: .98rem; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.04rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #066c92; box-shadow: 0 8px 20px rgba(8, 125, 168, .3); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #188f47; box-shadow: 0 8px 20px rgba(31, 168, 85, .3); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-row.center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; text-decoration: none; }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover .ic { transform: translateX(3px); }

/* Cabeçalho */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(16, 42, 64, .06); }
.header-row { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--navy); font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.nav .nav-cta { display: inline-flex; align-items: center; gap: .4rem; border: 2px solid var(--blue); color: var(--blue); margin-left: 6px; border-radius: 999px; padding: 6px 14px; }
.nav .nav-cta .ic { width: 18px; height: 18px; }
.header-wa { min-height: 42px; padding: 0 16px; }
.header-wa .ic { width: 20px; height: 20px; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--blue-soft); color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle .ic-close { display: none; }

@media (max-width: 1060px) {
  .header-wa span { display: none; }
  .header-wa { width: 46px; padding: 0; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 44px; }
  .menu-toggle { display: inline-flex; }
  .header-wa { margin-left: auto; }
  .menu-toggle { margin-left: 0; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(16, 42, 64, .12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; margin: 0;
  }
  .nav a { padding: 13px 12px; font-size: 1.05rem; }
  .nav .nav-cta { justify-content: center; margin: 10px 0 0; padding: 12px; }
  body.menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  body.menu-open .menu-toggle .ic-open { display: none; }
  body.menu-open .menu-toggle .ic-close { display: block; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 38, 57, .96) 0%, rgba(14, 38, 57, .86) 45%, rgba(14, 38, 57, .35) 100%); }
.hero-content { position: relative; z-index: 1; padding: clamp(72px, 12vw, 140px) 20px; max-width: 1180px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #d3e3ee; max-width: 620px; margin-bottom: 28px; }
.hero .eyebrow { color: #8fd3f0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(14, 38, 57, .82) 0%, rgba(14, 38, 57, .94) 100%); }
  .hero-actions .btn { width: 100%; }
}

.trust { background: var(--navy-2); color: #cfe0ec; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.trust-grid > div { display: flex; gap: 12px; align-items: center; font-size: .9rem; line-height: 1.35; }
.trust-grid .ic { width: 30px; height: 30px; color: #6cc6ec; }
.trust-grid strong { display: block; color: #fff; font-size: .98rem; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; } }

/* Cards e grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }
.grid-2-only { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .grid-2-only { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 14px; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 16px; }
.card-icon .ic { width: 26px; height: 26px; }
.card-icon.wa { background: #e5f6ec; color: var(--wa); }
.service-card { display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(16, 42, 64, .12); }
.service-card .link-arrow { margin-top: auto; }
.lead-sm { color: var(--blue); font-weight: 650; font-size: .95rem; margin-top: -6px; }
.service-card p:not(.lead-sm) { color: var(--muted); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-reverse > :first-child { order: 0; } }
.rounded-img img { border-radius: 22px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rounded-img.contain img { object-fit: contain; background: #fff; padding: 24px; }

.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--wa); margin-top: 4px; }
.checks.light li { color: #e2eef6; }
.checks.light .ic { color: #6ee7a3; }

.nr-grid { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 960px) { .nr-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .nr-grid { grid-template-columns: 1fr 1fr; } }
.nr-grid a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; background: #fff; height: 100%; transition: border-color .15s, background .15s; }
.nr-grid a:hover { border-color: var(--blue); background: var(--blue-soft); }
.nr-grid strong { color: var(--blue); font-size: 1.15rem; }
.nr-grid span { color: var(--navy); font-size: .9rem; line-height: 1.35; }
.nr-card .nr-code { display: inline-block; background: var(--navy); color: #fff; font-weight: 700; border-radius: 8px; padding: 4px 10px; font-size: .9rem; margin-bottom: 14px; }
.nr-card p { color: var(--muted); }

/* Validação */
.validate { background: linear-gradient(135deg, var(--navy) 0%, #1d5277 100%); color: #e2eef6; }
.validate h2 { color: #fff; }
.validate-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .validate-grid { grid-template-columns: 1fr; } }
.validate-form { background: #fff; border-radius: 20px; padding: 28px; color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); display: grid; gap: 12px; }
.validate-form label { font-weight: 700; color: var(--navy); }
.validate-form input { width: 100%; min-height: 56px; border: 2px solid #c8d5df; border-radius: 12px; padding: 0 16px; font: inherit; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .08em; text-align: center; font-weight: 650; }
.validate-form input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(8, 125, 168, .15); }
.validate-form .small { color: var(--muted); margin: 0; }
.validate-compact { padding-top: 48px; padding-bottom: 48px; }

/* Blog */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-thumb img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .3s; }
.post-card:hover .post-thumb img { transform: scale(1.03); }
.post-thumb { overflow: hidden; display: block; }
.post-body { padding: 22px 24px 24px; }
.post-body h3 a { color: var(--navy); text-decoration: none; }
.post-body h3 a:hover { color: var(--blue); }
.post-body p { color: var(--muted); margin: 0; }
.meta { color: var(--muted); font-size: .86rem; margin-bottom: 6px !important; }
.post-hero { background: var(--bg-alt); padding: 48px 0 110px; }
.post-hero .back { text-decoration: none; font-weight: 600; display: inline-block; margin-bottom: 14px; }
.post-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.post-cover img { border-radius: 20px; margin-top: -80px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.prose { font-size: 1.08rem; padding: 36px 0 12px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.post-cta { background: var(--navy); color: #d6e5f0; border-radius: 20px; padding: 30px; margin: 24px 0 64px; }
.post-cta h2 { color: #fff; font-size: 1.4rem; }

/* Páginas internas */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #1d5277 100%); color: #d6e5f0; padding: clamp(56px, 8vw, 90px) 0; }
.page-hero h1 { color: #fff; }
.page-hero p { font-size: 1.12rem; max-width: 680px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips a { color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
.chips a:hover { background: rgba(255, 255, 255, .12); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 12px; }
.steps strong { display: block; color: var(--navy); font-size: 1.1rem; margin-bottom: 4px; }
.steps span { color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: var(--text); padding: 22px; }
a.contact-card:hover { border-color: var(--blue); }
.contact-card .card-icon { margin: 0; flex: none; }
.contact-card strong { display: block; color: var(--navy); font-size: 1.05rem; }

.faq { border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--navy); padding: 16px 0; }
.faq p { color: var(--muted); }

.cta { padding-top: 0; }
.cta-box { background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%); color: #e2eef6; border-radius: 26px; padding: clamp(28px, 5vw, 52px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; max-width: 1140px; }
.cta-box h2 { color: #fff; max-width: 620px; }
.cta-box p { margin: 0; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .cta-actions .btn { width: 100%; } }
.section-alt + .cta, .section-alt + section.cta { padding-top: clamp(56px, 8vw, 96px); background: var(--bg-alt); }

.notfound { min-height: 50vh; display: flex; align-items: center; }

/* Rodapé */
.footer { background: var(--navy-2); color: #b9cbd9; padding: 64px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 60px; width: auto; margin-bottom: 16px; }
.footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #d9e6ef; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ic { color: #6cc6ec; margin-top: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 20px; padding-bottom: 28px; font-size: .85rem; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(31, 168, 85, .45); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float .ic { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media (max-width: 860px) { .validate-compact .validate-form { order: -1; } }

/* Fotos reais (verticais) e galeria */
.rounded-img.real img { aspect-ratio: 4 / 5; object-position: center 35%; max-height: 640px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr 1fr; gap: 10px; } }
.gallery-item { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: #dde5ec; box-shadow: var(--shadow); }
.gallery-item a { display: block; }
.gallery-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .35s; }
.gallery-item a:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 28px 12px 10px; font-size: .85rem; font-weight: 600; line-height: 1.3;
  color: #fff; background: linear-gradient(transparent, rgba(10, 28, 44, .85)); pointer-events: none;
}
@media (max-width: 600px) { .gallery-item figcaption { font-size: .76rem; padding: 22px 8px 8px; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(6, 16, 26, .92); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lightbox img { max-width: min(92vw, 900px); max-height: 82vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox-caption { color: #e2eef6; margin: 0; font-weight: 600; text-align: center; padding: 0 60px; }
.lb-btn { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } .lb-prev { left: 30%; } .lb-next { right: 30%; } .lightbox img { max-height: 70vh; } }

/* Vídeo institucional (capa local; YouTube carrega só no clique) */
.video-section { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #d6e5f0; }
.video-section h2 { color: #fff; }
.video-section .section-head p { color: #c2d5e3; }
.center-head { margin-left: auto; margin-right: auto; text-align: center; }
.video-wrap { max-width: 900px; margin: 0 auto; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; display: block; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s; }
.video-poster:hover img { transform: scale(1.02); filter: brightness(.85); }
.video-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%); transition: transform .2s; }
.video-play svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .4)); }
.video-poster:hover .video-play { transform: translate(-50%, -50%) scale(1.1); }
.video-label { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgba(0, 0, 0, .6); color: #fff; font-weight: 600; font-size: .9rem; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 480px) { .video-label { display: none; } }

/* Chamada do portal do aluno (abaixo do formulário de validação) */
.validate-grid .portal-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: 18px 22px; }
.portal-cta strong { display: block; color: #fff; font-size: 1.08rem; }
.portal-cta span { color: #c2d5e3; }
@media (max-width: 600px) { .portal-cta .btn { width: 100%; } }
