/**
 * Public landing page — professional, minimal chrome
 */

:root {
    --pl-bg: #f8fafc;
    --pl-surface: #ffffff;
    --pl-ink: #0f172a;
    --pl-muted: #64748b;
    --pl-line: #e2e8f0;
    --pl-brand: #4b2e83;
    --pl-brand-hover: #3d2569;
    --pl-accent: #b8860b;
    --pl-radius: 14px;
    --pl-radius-lg: 20px;
    --pl-nav-h: 4rem;
    --pl-safe-top: max(env(safe-area-inset-top, 0px), 0px);
    --pl-safe-bottom: max(env(safe-area-inset-bottom, 0px), 0px);
    --pl-max: 72rem;
    --pl-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    font-family: var(--pl-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--pl-ink);
    background: var(--pl-bg);
}

a {
    color: var(--pl-brand);
}

a:hover {
    color: var(--pl-brand-hover);
}

/* ——— Nav ——— */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-top: var(--pl-safe-top);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--pl-line);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.nav.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 0 var(--pl-line), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.nav-inner {
    max-width: var(--pl-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 1.5rem);
    min-height: var(--pl-nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.nav-brand img {
    height: 2.5rem;
    width: auto;
    max-width: 7.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.nav-brand-name {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--pl-ink);
}

.nav-brand-tag {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--pl-muted);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(0.25rem, 2vw, 1.25rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links > li > a:not(.nav-cta) {
    display: inline-block;
    padding: 0.5rem 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pl-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-links > li > a:not(.nav-cta):hover {
    color: var(--pl-ink);
    background: rgba(15, 23, 42, 0.05);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid var(--pl-line);
    color: var(--pl-ink);
    background: var(--pl-surface);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.nav-cta:hover {
    border-color: rgba(75, 46, 131, 0.35);
    color: var(--pl-brand);
}

.nav-cta--primary {
    background: var(--pl-brand);
    border-color: var(--pl-brand);
    color: #fff;
}

.nav-cta--primary:hover {
    background: var(--pl-brand-hover);
    border-color: var(--pl-brand-hover);
    color: #fff;
}

.nav-burger {
    display: none;
    border: none;
    background: rgba(15, 23, 42, 0.06);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    color: var(--pl-ink);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .nav-burger {
        display: inline-flex;
    }
}

/* Drawer */
.drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-backdrop.is-open {
    display: block;
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(20rem, 90vw);
    height: 100%;
    height: 100dvh;
    z-index: 9999;
    background: var(--pl-surface);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.drawer.is-open {
    transform: translateX(0);
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--pl-line);
}

.drawer-close {
    border: none;
    background: rgba(15, 23, 42, 0.06);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    color: var(--pl-muted);
    cursor: pointer;
}

.drawer-links {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    flex: 1;
    overflow-y: auto;
}

.drawer-links a {
    display: block;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--pl-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--pl-line);
}

.drawer-links a:hover {
    background: var(--pl-bg);
    color: var(--pl-brand);
}

/* ——— Hero ——— */
.hero {
    position: relative;
    min-height: min(92vh, 52rem);
    display: flex;
    align-items: flex-end;
    padding:
        calc(var(--pl-safe-top) + var(--pl-nav-h) + 2rem)
        clamp(1.25rem, 5vw, 2.5rem)
        calc(3rem + var(--pl-safe-bottom));
    isolation: isolate;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.35) 0%,
        rgba(15, 23, 42, 0.55) 45%,
        rgba(15, 23, 42, 0.82) 100%
    );
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--pl-max);
    margin: 0 auto;
    width: 100%;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.75rem;
}

.hero-kicker::before {
    content: "";
    width: 2rem;
    height: 2px;
    background: var(--pl-accent);
    border-radius: 2px;
}

.hero-title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
    max-width: 18ch;
}

.hero-lead {
    margin: 0 0 1.25rem;
    font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    max-width: 36rem;
    line-height: 1.5;
}

.hero-desc {
    margin: 0 0 1.75rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 38rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0 1.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: #fff;
    color: var(--pl-brand);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn--primary:hover {
    background: #f1f5f9;
    color: var(--pl-brand-hover);
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 540px) {
    .hero-actions .btn {
        width: 100%;
    }
}

/* ——— Sections ——— */
.section {
    max-width: var(--pl-max);
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 2rem);
    scroll-margin-top: calc(var(--pl-nav-h) + var(--pl-safe-top) + 0.5rem);
}

.section--alt {
    background: var(--pl-surface);
    border-top: 1px solid var(--pl-line);
    border-bottom: 1px solid var(--pl-line);
}

.section-head {
    max-width: 40rem;
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pl-accent);
    margin: 0 0 0.5rem;
}

.section-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--pl-ink);
}

.section-lead {
    margin: 0;
    font-size: 1.0625rem;
    color: var(--pl-muted);
    line-height: 1.65;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}

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

.about-copy p {
    margin: 0 0 1rem;
    color: var(--pl-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.about-copy strong {
    color: var(--pl-ink);
}

.values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0;
    list-style: none;
}

.values li {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(75, 46, 131, 0.08);
    color: var(--pl-brand);
}

.about-panel {
    background: linear-gradient(160deg, var(--pl-brand) 0%, #5c3d9e 50%, #3d2569 100%);
    color: #fff;
    border-radius: var(--pl-radius-lg);
    padding: clamp(1.75rem, 4vw, 2.25rem);
    box-shadow: 0 20px 50px rgba(75, 46, 131, 0.25);
}

.about-panel h3 {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.02em;
}

.stat-grid {
    display: grid;
    gap: 1.25rem;
}

.stat {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.stat:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.stat-num {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-lbl {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    opacity: 0.85;
    line-height: 1.45;
}

/* Pillars */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 3vw, 1.5rem);
}

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

.pillar {
    background: var(--pl-surface);
    border: 1px solid var(--pl-line);
    border-radius: var(--pl-radius);
    padding: 1.75rem 1.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pillar:hover {
    border-color: rgba(75, 46, 131, 0.25);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.pillar-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: rgba(75, 46, 131, 0.1);
    color: var(--pl-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.pillar-title {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--pl-ink);
}

.pillar-body {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--pl-muted);
    line-height: 1.6;
}

/* Programs */
.programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.prog {
    background: var(--pl-bg);
    border: 1px solid var(--pl-line);
    border-radius: var(--pl-radius);
    padding: 1.75rem 1.5rem;
    border-left: 4px solid var(--pl-brand);
    transition: box-shadow 0.2s ease;
}

.prog:hover {
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.prog-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pl-brand);
    margin-bottom: 0.5rem;
}

.prog-title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pl-ink);
}

.prog-body {
    font-size: 0.9375rem;
    color: var(--pl-muted);
    line-height: 1.65;
}

.prog-body ul {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
}

.prog-body li {
    margin-bottom: 0.35rem;
}

.section-cta {
    margin-top: 2.5rem;
    text-align: center;
}

.btn--solid {
    background: var(--pl-brand);
    color: #fff;
    border: 1px solid var(--pl-brand);
}

.btn--solid:hover {
    background: var(--pl-brand-hover);
    border-color: var(--pl-brand-hover);
    color: #fff;
}

/* News */
.news-list {
    display: grid;
    gap: 1rem;
    max-width: 52rem;
    margin: 0 auto;
}

.news-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.25rem 1.5rem;
    background: var(--pl-bg);
    border: 1px solid var(--pl-line);
    border-radius: var(--pl-radius);
    text-align: left;
}

.news-item i {
    color: var(--pl-accent);
    margin-top: 0.2rem;
}

.news-item strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--pl-ink);
    margin-bottom: 0.25rem;
}

.news-item span {
    font-size: 0.875rem;
    color: var(--pl-muted);
    line-height: 1.55;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.contact-card {
    background: var(--pl-surface);
    border: 1px solid var(--pl-line);
    border-radius: var(--pl-radius);
    padding: 1.5rem;
    text-align: center;
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--pl-brand);
    margin-bottom: 0.75rem;
}

.contact-card h4 {
    margin: 0 0 0.35rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--pl-ink);
}

.contact-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--pl-muted);
    line-height: 1.5;
}

.contact-card a {
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: var(--pl-ink);
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    padding: 2rem 1.25rem calc(2rem + var(--pl-safe-bottom));
    font-size: 0.8125rem;
}

.site-footer strong {
    color: #fff;
    font-weight: 600;
}

/* WhatsApp FAB */
.wa-fab {
    position: fixed;
    right: clamp(1rem, 3vw, 1.5rem);
    bottom: calc(1rem + var(--pl-safe-bottom));
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.75rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: transform 0.15s ease, background 0.15s ease;
}

.wa-fab:hover {
    background: #1fb358;
    transform: translateY(-2px);
    color: #fff;
}

.wa-fab i {
    font-size: 1.25rem;
}

@media (max-width: 480px) {
    .wa-fab {
        width: 3.25rem;
        height: 3.25rem;
        padding: 0;
        justify-content: center;
    }
    .wa-fab-text {
        display: none;
    }
}
