/**
 * landing-page.css — Litapdimas Design System v2
 * ==============================================
 * Landing page & public announcement styles.
 * Supports Light & Dark mode seamlessly.
 */

:root {
    --primary-emerald: var(--brand-700, #006837);
    --primary-light: var(--brand-600, #0b7a44);
    --accent-gold: var(--uinsi-gold, #f9a825);
    --bg-soft: var(--surface-sunken, #f8fafc);
    --text-dark: var(--text-strong, #0f172a);
    --text-muted: var(--text-secondary, #475569);
}

[data-bs-theme="dark"] {
    --primary-emerald: var(--brand-700, #7dd3a8);
    --primary-light: var(--brand-600, #4ade80);
    --accent-gold: var(--uinsi-gold, #f9a825);
    --bg-soft: var(--surface-sunken, #0f172a);
    --text-dark: var(--text-strong, #f1f5f9);
    --text-muted: var(--text-secondary, #cbd5e1);
}

body {
    font-family: var(--font-main, 'Inter', 'Source Sans 3', sans-serif);
    background-color: var(--surface-page, #f4f7f5);
    color: var(--text-primary, #334155);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #006837, #0b7a44, #f9a825);
    z-index: 1050;
    pointer-events: none;
}

h1, h2, h3, h4, .navbar-brand {
    font-family: 'Outfit', sans-serif;
}

/* ============================================================
   1. NAVBAR (Transparent over Hero -> Frosted Bar on Scroll)
   ============================================================ */
.landing-navbar {
    padding: 1rem 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition:
        padding var(--motion-base, 180ms) ease-out,
        background-color var(--motion-base, 180ms) ease-out,
        border-color var(--motion-base, 180ms) ease-out,
        box-shadow var(--motion-base, 180ms) ease-out;
}

.landing-navbar__logo {
    height: 44px;
    width: auto;
    transition: height var(--motion-base, 180ms) ease-out;
}

.landing-navbar__title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    transition: color var(--motion-fast, 120ms) ease-out;
}

.landing-navbar__subtitle {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
    transition: color var(--motion-fast, 120ms) ease-out;
}

.landing-navbar .navbar-toggler {
    color: #ffffff;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm, 8px);
}

.landing-navbar .nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm, 8px);
    transition: color var(--motion-fast, 120ms) ease-out, background-color var(--motion-fast, 120ms) ease-out;
}

.landing-navbar .nav-link:hover,
.landing-navbar .nav-link:focus-visible,
.landing-navbar .nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.14);
}

.landing-navbar .landing-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

.landing-navbar .btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.45rem 1.25rem;
    border-radius: var(--radius-pill, 999px);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
    transition: all var(--motion-fast, 120ms) ease-out;
}

.landing-navbar .btn-login:hover {
    background: #ffffff;
    color: #006837;
    border-color: #ffffff;
}

/* Mobile menu expanded before scroll */
.landing-navbar.menu-open:not(.scrolled) {
    background: rgba(0, 43, 22, 0.96);
    backdrop-filter: blur(12px);
}

/* Scrolled Navbar — Light Mode */
.landing-navbar.scrolled {
    padding: 0.625rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--border-subtle, #e2e8f0);
    box-shadow: var(--elev-1, 0 1px 2px rgba(15, 23, 42, 0.06));
}

.landing-navbar.scrolled .landing-navbar__logo {
    height: 38px;
}

.landing-navbar.scrolled .landing-navbar__title {
    color: #006837;
}

.landing-navbar.scrolled .landing-navbar__subtitle {
    color: var(--text-secondary, #475569);
}

.landing-navbar.scrolled .navbar-toggler {
    color: var(--text-strong, #0f172a);
}

.landing-navbar.scrolled .nav-link,
.landing-navbar.scrolled .landing-theme-toggle {
    color: var(--text-primary, #334155);
}

.landing-navbar.scrolled .nav-link:hover,
.landing-navbar.scrolled .nav-link:focus-visible,
.landing-navbar.scrolled .nav-link.active,
.landing-navbar.scrolled .landing-theme-toggle:hover {
    color: #006837;
    background-color: var(--brand-50, #f2f9f5);
}

.landing-navbar.scrolled .btn-login {
    background: #006837;
    color: #ffffff;
    border-color: #006837;
}

.landing-navbar.scrolled .btn-login:hover {
    background: #004d29;
    border-color: #004d29;
    color: #ffffff;
}

/* Scrolled Navbar — Dark Mode */
[data-bs-theme="dark"] .landing-navbar.scrolled {
    background: rgba(11, 18, 32, 0.92);
    border-bottom-color: var(--border-subtle, rgba(226, 232, 240, 0.14));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .landing-navbar.scrolled .landing-navbar__title {
    color: #7dd3a8;
}

[data-bs-theme="dark"] .landing-navbar.scrolled .landing-navbar__subtitle {
    color: var(--text-muted, #94a3b8);
}

[data-bs-theme="dark"] .landing-navbar.scrolled .navbar-toggler {
    color: var(--text-strong, #f1f5f9);
}

[data-bs-theme="dark"] .landing-navbar.scrolled .nav-link,
[data-bs-theme="dark"] .landing-navbar.scrolled .landing-theme-toggle {
    color: var(--text-primary, #e2e8f0);
}

[data-bs-theme="dark"] .landing-navbar.scrolled .nav-link:hover,
[data-bs-theme="dark"] .landing-navbar.scrolled .nav-link:focus-visible,
[data-bs-theme="dark"] .landing-navbar.scrolled .nav-link.active,
[data-bs-theme="dark"] .landing-navbar.scrolled .landing-theme-toggle:hover {
    color: #7dd3a8;
    background-color: rgba(125, 211, 168, 0.12);
}

[data-bs-theme="dark"] .landing-navbar.scrolled .btn-login {
    background: #0b7a44;
    border-color: #0b7a44;
    color: #ffffff;
}

[data-bs-theme="dark"] .landing-navbar.scrolled .btn-login:hover {
    background: #0f8a4f;
    border-color: #0f8a4f;
    color: #ffffff;
}

/* ============================================================
   2. HERO SECTION
   ============================================================ */
.hero-section {
    background-color: #003d1f;
    padding: 7.5rem 0 8rem;
    position: relative;
    color: #ffffff;
    min-height: clamp(540px, 78vh, 720px);
    display: flex;
    align-items: center;
    clip-path: ellipse(160% 100% at 50% 0%);
    overflow: hidden;
}

[data-bs-theme="dark"] .hero-section {
    background-color: #002b16;
}

.hero-bg {
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, rgba(0, 43, 22, 0.88) 0%, rgba(0, 61, 31, 0.62) 55%, rgba(0, 61, 31, 0.25) 100%);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    color: #ffffff;
    font-weight: 800;
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    line-height: 1.12;
    margin-bottom: var(--space-5, 1.25rem);
    letter-spacing: -0.02em;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.4vw, 1.1875rem);
    max-width: 58ch;
    margin-bottom: var(--space-8, 2rem);
    line-height: 1.65;
}

.hero-portal-badge {
    background-color: var(--accent-gold, #f9a825);
    color: #0f172a;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
}

.text-shadow {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.btn-cta-primary {
    background: var(--accent-gold, #f9a825);
    color: #451a03;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill, 999px);
    box-shadow: 0 8px 20px rgba(249, 168, 37, 0.28);
    transition: all var(--motion-base, 180ms) ease-out;
    border: none;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(249, 168, 37, 0.38);
    background: #f59e0b;
    color: #451a03;
}

.btn-cta-outline {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-pill, 999px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    transition: all var(--motion-base, 180ms) ease-out;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #ffffff;
    color: #ffffff;
}

/* ============================================================
   3. STATS CARDS
   ============================================================ */
.stats-container {
    margin-top: -64px;
    margin-bottom: var(--space-8, 2rem);
    position: relative;
    z-index: 15;
}

.stat-card {
    background: var(--surface-card, #ffffff);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: var(--radius-xl, 1rem);
    padding: var(--space-6, 1.5rem);
    text-align: center;
    box-shadow: var(--elev-2, 0 8px 24px rgba(15, 23, 42, 0.08));
    transition: transform var(--motion-base, 180ms) ease-out,
                box-shadow var(--motion-base, 180ms) ease-out,
                border-color var(--motion-base, 180ms) ease-out;
}

.stat-card--highlight {
    border-top: 3px solid var(--brand-700, #006837);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-600, #0b7a44);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

[data-bs-theme="dark"] .stat-card {
    background: var(--surface-card, #111c2e);
    border-color: var(--border-subtle, rgba(226, 232, 240, 0.14));
    box-shadow: var(--elev-2, 0 8px 24px rgba(0, 0, 0, 0.35));
}

[data-bs-theme="dark"] .stat-card--highlight {
    border-top-color: var(--brand-600, #4ade80);
}

.stat-icon {
    width: 52px;
    height: 52px;
    background: var(--brand-50, #f2f9f5);
    color: var(--brand-700, #006837);
    border-radius: var(--radius-md, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    margin: 0 auto var(--space-4, 1rem);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: var(--text-3xl, 1.75rem);
    font-variant-numeric: tabular-nums;
    display: block;
    color: var(--text-strong, #0f172a);
    line-height: 1.2;
    margin-bottom: var(--space-1, 0.25rem);
}

.stat-label {
    color: var(--text-secondary, #475569);
    font-weight: 500;
    font-size: var(--text-sm, 0.875rem);
}

/* ============================================================
   4. LANDING SECTIONS, TIMELINE, & TEMA
   ============================================================ */
.landing-section {
    padding: var(--space-12, 3rem) 0;
}

.landing-section--surface {
    background-color: var(--surface-card, #ffffff);
}

.landing-section--sunken {
    background-color: var(--surface-sunken, #f8fafc);
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: var(--space-2, 0.5rem);
    color: var(--brand-700, #006837);
    font-size: var(--text-xs, 0.75rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-10, 2.5rem);
}

.section-title h2 {
    font-weight: 800;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--text-strong, #0f172a);
    margin-bottom: var(--space-3, 0.75rem);
}

.section-title p {
    color: var(--text-secondary, #475569);
    max-width: 58ch;
    margin: 0 auto;
}

.timeline-wrapper {
    position: relative;
    padding: var(--space-4, 1rem) 0;
}

.timeline-line {
    position: absolute;
    top: 44px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--border-subtle, #e2e8f0);
    z-index: 1;
}

.timeline-item {
    position: relative;
    z-index: 2;
    text-align: center;
}

.timeline-dot {
    width: 56px;
    height: 56px;
    background: var(--surface-card, #ffffff);
    border: 2px solid var(--border-strong, #cbd5e1);
    color: var(--brand-700, #006837);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto var(--space-4, 1rem);
    transition: all var(--motion-base, 180ms) ease-out;
}

.timeline-item:hover .timeline-dot {
    border-color: var(--brand-700, #006837);
    background: var(--brand-50, #f2f9f5);
    transform: scale(1.06);
}

.timeline-item h5 {
    font-weight: 700;
    font-size: var(--text-md, 1rem);
    margin-bottom: var(--space-2, 0.5rem);
    color: var(--text-strong, #0f172a);
}

.timeline-item p {
    font-size: var(--text-sm, 0.875rem);
    color: var(--text-secondary, #475569);
    max-width: 28ch;
    margin: 0 auto;
    line-height: 1.55;
}

/* Theme Cards */
.theme-card {
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: var(--radius-lg, 12px);
    background: var(--surface-card, #ffffff);
    padding: var(--space-4, 1rem) var(--space-5, 1.25rem);
    transition: all var(--motion-base, 180ms) ease-out;
}

.theme-card:hover {
    border-color: var(--brand-700, #006837);
    box-shadow: var(--elev-1, 0 1px 2px rgba(15, 23, 42, 0.06));
    transform: translateY(-2px);
}

.theme-card__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm, 8px);
    background: var(--brand-50, #f2f9f5);
    color: var(--brand-700, #006837);
    font-size: 1.25rem;
}

.theme-card h6 {
    font-weight: 600;
    font-size: var(--text-sm, 0.875rem);
    line-height: 1.4;
    margin: 0;
    color: var(--text-strong, #0f172a);
}

/* CTA Card */
.landing-cta {
    background: linear-gradient(135deg, #003d1f 0%, #005a2f 100%);
    box-shadow: var(--elev-2);
}

.landing-cta__watermark {
    transform: translate(-15%, -15%) scale(2.2);
}

.landing-cta__watermark .bi {
    font-size: 14rem;
}

.landing-cta__desc {
    max-width: 56ch;
    color: rgba(255, 255, 255, 0.85);
}

.landing-cta__btn {
    background: var(--uinsi-gold, #f9a825);
    border-color: var(--uinsi-gold, #f9a825);
    color: #451a03;
}

.landing-cta__btn:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #451a03;
}

/* ============================================================
   5. FOOTER
   ============================================================ */
.landing-footer {
    background: #002b16;
    color: #ffffff;
    padding: var(--space-12, 3rem) 0 var(--space-8, 2rem);
}

.landing-footer__logo {
    height: 52px;
    width: auto;
}

.landing-footer h5 {
    font-weight: 700;
    font-size: var(--text-md, 1rem);
    margin-bottom: var(--space-4, 1rem);
    color: var(--accent-gold, #f9a825);
}

.landing-footer__desc,
.landing-footer__address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--text-sm, 0.875rem);
    line-height: 1.7;
}

.landing-footer .footer-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    display: block;
    margin-bottom: var(--space-2, 0.5rem);
    font-size: var(--text-sm, 0.875rem);
    transition: color var(--motion-fast, 120ms) ease-out, padding-left var(--motion-fast, 120ms) ease-out;
}

.landing-footer .footer-link:hover {
    color: #ffffff;
    padding-left: 4px;
}

.landing-footer .social-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all var(--motion-base, 180ms) ease-out;
}

.landing-footer .social-btn:hover {
    background: var(--accent-gold, #f9a825);
    color: #451a03;
    transform: translateY(-2px);
}

.landing-footer__divider {
    border-color: rgba(255, 255, 255, 0.14);
    margin: var(--space-8, 2rem) 0 var(--space-5, 1.25rem);
}

.landing-footer__copy {
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--text-xs, 0.75rem);
}

/* ============================================================
   6. ANNOUNCEMENTS PAGES (Light & Dark Mode)
   ============================================================ */
.announcement-header,
.detail-header {
    background: #003d1f;
    padding: 7.5rem 0 4rem;
    color: #ffffff;
}

.announcement-header {
    text-align: center;
    clip-path: ellipse(160% 100% at 50% 0%);
}

.announcement-card,
.content-card {
    background: var(--surface-card, #ffffff);
    border: 1px solid var(--border-subtle, #e2e8f0);
    color: var(--text-primary, #334155);
}

.announcement-badge {
    background: var(--surface-card, #ffffff) !important;
    color: var(--brand-700, #006837) !important;
}

.article-content {
    color: var(--text-primary, #334155) !important;
}

.attachment-box {
    background: var(--surface-sunken, #f8fafc) !important;
    border-color: var(--border-strong, #cbd5e1) !important;
}

/* ============================================================
   7. ANIMATIONS & RESPONSIVE
   ============================================================ */
.animate-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.animate-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .landing-navbar .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .landing-navbar.scrolled .navbar-collapse {
        border-top-color: var(--border-subtle, #e2e8f0);
    }

    .landing-navbar .btn-login {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 6.5rem 0 5.5rem;
        min-height: 480px;
    }

    .stats-container {
        margin-top: -36px;
    }

    .timeline-line {
        display: none;
    }

    .btn-cta-primary,
    .btn-cta-outline {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .animate-up {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .stat-card,
    .theme-card,
    .timeline-dot,
    .social-btn,
    .btn-cta-primary,
    .btn-cta-outline,
    .landing-navbar,
    .landing-footer .footer-link {
        transition: none;
    }
}
