/* ═══════════════════════════════════════════════════════
   MDHAT GLOBAL DESIGN SYSTEM — Impact & Resilience Theme
   Architect: Web Developer Architect Skill
   PM: Product Manager Skill (Trust & Conversion)
   Testing: Persona-Based Testing (Accessibility & Clarity)
   Nature: Biomorphic Colors (Forest & Sun)
   ═══════════════════════════════════════════════════════ */

:root {
    /* PRIMARY BIOME: Forest & Hope (Stand out Green) */
    --primary: #0A2417;
    /* Obsidian Moss - Foundation */
    --primary-light: #16A34A;
    /* Luminous Forest - Action & Growth */
    --primary-glow: rgba(22, 163, 74, 0.2);

    /* SECONDARY BIOME: Justice & Vitality (Stand out Orange) */
    --secondary: #F59E0B;
    /* Vivid Saffron - Conversion & Alert */
    --secondary-hover: #D97706;
    /* Deep Burnt Orange */
    --secondary-glow: rgba(245, 158, 11, 0.3);

    /* NEUTRALS: Clarity & Professionalism */
    --accent: #FFFFFF;
    --bg-page: #FDFDFB;
    /* Pure Canvas - High focus background */
    --text-main: #111827;
    /* Night Slate - Optimal readability */
    --steel: #4B5563;
    /* Iron Grey - Secondary info */
    --glass: rgba(255, 255, 255, 0.8);

    /* LOGIC & RYTHM */
    --font-display: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    --ease-impact: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ═══════ BASE ═══════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-page);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ═══════ CURSOR (Testing: Desktop only UX) ═══════ */
@media (min-width: 1025px) {
    body {
        cursor: none;
    }

    .cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 10px;
        height: 10px;
        background: var(--secondary);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: transform 0.05s linear;
        box-shadow: 0 0 15px var(--secondary-glow);
    }

    .cursor-ring {
        position: fixed;
        top: 0;
        left: 0;
        width: 35px;
        height: 35px;
        border: 2px solid var(--primary-light);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        transform: translate(-50%, -50%);
        transition: transform 0.15s var(--ease-impact);
        opacity: 0.7;
    }
}

@media (max-width: 1024px) {

    .cursor,
    .cursor-ring {
        display: none !important;
    }
}

/* ═══════ NAVIGATION (PM: 4-Step Funnel Visibility) ═══════ */
nav {
    position: fixed;
    top: 36px;
    /* Below top-bar */
    left: 0;
    right: 0;
    z-index: 2000;
    background: var(--primary);
    /* Solid trust foundation */
    padding: 1rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 4px solid var(--secondary);
    /* Brand Orange Highlight */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: 0.4s var(--ease-impact);
}

@media (max-width: 768px) {
    nav {
        top: 60px;
        /* Higher on mobile due to stacked top-bar */
    }
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.98);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    top: 0;
}

@media (max-width: 1150px) {
    nav {
        padding: 1rem 1.5rem;
    }
}

/* ═══════ TOP BAR ═══════ */
.top-bar {
    background: #000;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 4rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 500;
    /* Lower than nav */
    position: relative;
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0.5rem 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* HERO & CONTENT */
.hero-sub {
    font-size: 1.35rem;
    /* Enhanced readability */
    max-width: 650px;
    margin-top: 1.5rem;
    color: #ffffff !important;
    /* Absolute white */
    line-height: 1.7;
    border-left: 5px solid var(--secondary);
    /* Slightly bolder accent */
    padding-left: 2rem;
    position: relative;
    z-index: 5;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    /* High contrast shadow */
}

@media (max-width: 768px) {
    .hero-sub {
        font-size: 1.1rem;
        border-left: none;
        padding-left: 0;
        border-top: 2px solid var(--secondary);
        padding-top: 1rem;
        margin: 2rem auto 0;
    }
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-links>li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 0;
    display: block;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-cta-btn {
    background: var(--secondary);
    color: var(--primary) !important;
    padding: 0.7rem 1.6rem !important;
    font-weight: 900 !important;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 2px;
    transition: 0.3s var(--ease-impact);
    box-shadow: 0 4px 10px var(--secondary-glow);
}

.nav-cta-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* DROPDOWNS (PM: Technical Authority Branching) */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #080C0A;
    /* Deep Obsidian */
    min-width: 300px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    border-top: 3px solid var(--secondary);
    /* Orange bar for action */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.4s var(--ease-impact);
    padding: 1rem 0;
    z-index: 1000;
}

.nav-links li:hover>.dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    padding: 0.9rem 2rem;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.2s;
}

.dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary) !important;
    padding-left: 2.5rem;
}

/* SUBMENU (3rd level) */
.submenu {
    display: none;
    background: #111111;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0;
}

.dropdown li:hover>.submenu {
    display: block;
}

.submenu a {
    padding-left: 3rem !important;
    font-size: 0.8rem !important;
    opacity: 0.9;
    border: none !important;
}

/* ═══════ BREADCRUMBS (Testing: User Orientation) ═══════ */
.breadcrumbs {
    padding: 2rem 4rem;
    background: #E8F5E9;
    /* Soft Growth Green background */
    border-bottom: 1px solid #C8E6C9;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-light);
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 4.8rem;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
}

.breadcrumbs a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.breadcrumbs span.separator {
    opacity: 0.4;
    color: var(--primary);
}

.breadcrumbs span:last-child {
    color: var(--primary-light);
    font-weight: 700;
    opacity: 1;
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 1.2rem 1.5rem;
        font-size: 0.65rem;
    }
}

/* ═══════ FOOTER (PM: Institutional Trust) ═══════ */
footer {
    background: var(--primary);
    border-top: 6px solid var(--secondary);
    /* Bold Orange Divider */
    padding: 8rem 4rem;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr;
    gap: 6rem;
}

@media (max-width: 1000px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.footer-logo {
    font-family: var(--font-display);
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: block;
    text-decoration: none;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-info p {
    line-height: 1.9;
    opacity: 0.85;
    max-width: 500px;
    font-size: 0.95rem;
}

.footer-links h4 {
    color: var(--secondary);
    /* Stand out Orange */
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    font-weight: 800;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
    border-left: 2px solid var(--secondary);
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: 0.4s var(--ease-impact);
    opacity: 0.6;
}

.social-links a:hover {
    color: var(--secondary);
    opacity: 1;
    transform: scale(1.2) rotate(5deg);
}

/* ═══════ UTILITIES & IMPACT (PM: ROI Visibility) ═══════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s var(--ease-impact);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-cta {
    padding: 1.4rem 3rem;
    background: var(--secondary);
    color: var(--primary);
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-block;
    transition: 0.4s var(--ease-impact);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--secondary-glow);
}

.btn-cta:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--primary-glow);
}

/* IMPACT CARDS (Infographic: Clear Data Storytelling) */
.impact-container {
    background: white;
    padding: 4rem;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    border-bottom: 8px solid var(--primary-light);
    /* Green foundation */
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    transition: 0.5s var(--ease-impact);
}

.impact-container:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(22, 163, 74, 0.1);
}

.impact-number {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--primary);
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 1rem;
}

.impact-label {
    font-size: 1rem;
    color: var(--secondary);
    /* stand out orange label */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* TRUST BAR (PM: Institutional Credibility) */
.trust-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--steel), transparent);
    opacity: 0.2;
    margin: 4rem 0;
}

/* ═══════ EMERGENCY SYSTEM (PM: SOS & WhatsApp Direct) ═══════ */
.sos-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #FF3B30;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 900;
    text-decoration: none;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(255, 59, 48, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 2px solid white;
    animation: pulse-sos 2s infinite;
    transition: 0.3s var(--ease-impact);
}

.sos-btn:hover {
    transform: scale(1.05);
    background: #D70015;
}

@keyframes pulse-sos {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(255, 59, 48, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(255, 59, 48, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(255, 59, 48, 0.4);
    }
}

/* Modal SOS Overlays */
.sos-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    display: flex;
    align-items: flex-end;
    /* Bottom sheet on mobile */
    justify-content: center;
}

.sos-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sos-modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    padding: 3rem 2rem;
    border-radius: 30px 30px 0 0;
    transform: translateY(100%);
    transition: 0.5s var(--ease-impact);
    text-align: center;
}

.sos-modal-overlay.active .sos-modal-content {
    transform: translateY(0);
}

.sos-modal-content h2 {
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.sos-modal-content p {
    color: var(--steel);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.sos-action-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.sos-action-btn {
    padding: 1.2rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: 0.3s;
}

.btn-call {
    background: #FF3B30 !important;
    color: white !important;
}

.btn-whatsapp {
    background: #25D366 !important;
    color: white !important;
}

.btn-discretion {
    background: var(--primary) !important;
    color: white !important;
    margin-top: 1rem;
}

.sos-action-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.close-sos-modal {
    margin-top: 1.5rem;
    background: none;
    border: none;
    color: var(--steel);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    cursor: pointer;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

@media (min-width: 769px) {
    .sos-modal-overlay {
        align-items: center;
    }

    .sos-modal-content {
        border-radius: 20px;
        width: 90%;
    }
}