/* =====================================
   Mental Wellness Resource Guide
   911 Communicators
   ===================================== */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Inter", Arial, sans-serif;
    color: #1e293b;
    line-height: 1.7;
    background: #f8fafc;
}



/* =========================
   HERO SECTION
   ========================= */


.hero {

    min-height: 100vh;

    background:
    linear-gradient(
        rgba(15, 23, 42, 0.75),
        rgba(15, 23, 42, 0.85)
    ),
    url("https://images.unsplash.com/photo-1581091226825-a6a2a5aee158")
    center/cover;


    color: white;

    display: flex;
    flex-direction: column;

}




/* NAVIGATION */


.navbar {

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:25px 8%;

    position:fixed;
    width:100%;

    background:rgba(15,23,42,0.85);

    backdrop-filter:blur(10px);

    z-index:1000;

}



.logo {

    font-size:1.3rem;
    font-weight:700;

}



.nav-links {

    display:flex;
    gap:25px;

}



.nav-links a {

    color:white;
    text-decoration:none;
    font-weight:500;

    transition:.3s;

}


.nav-links a:hover {

    color:#2dd4bf;

}





/* HERO CONTENT */


.hero-content {

    max-width:900px;

    margin:auto;

    padding:150px 30px 50px;

    text-align:center;

}



.hero-content h1 {

    font-size:clamp(2.5rem,5vw,4rem);

    line-height:1.15;

    font-weight:800;

    margin-bottom:25px;

}



.hero-content p {

    font-size:1.25rem;

    max-width:750px;

    margin:auto;

    color:#e2e8f0;

}



.hero-button {

    display:inline-block;

    margin-top:40px;

    padding:15px 35px;

    background:#14b8a6;

    color:white;

    border-radius:50px;

    text-decoration:none;

    font-weight:700;

    transition:.3s;

}


.hero-button:hover {

    background:#0d9488;

    transform:translateY(-3px);

}






/* GENERAL SECTIONS */


.section-container {

    max-width:1100px;

    margin:auto;

    padding:90px 30px;

}



section h2 {

    text-align:center;

    font-size:2.3rem;

    color:#0f172a;

    margin-bottom:35px;

}



section p {

    max-width:900px;

    margin:20px auto;

    font-size:1.1rem;

}




/* DARK SECTIONS */


.dark-section {

    background:#0f172a;

    color:white;

}


.dark-section h2 {

    color:white;

}






/* CARDS */


.cards {

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));

    gap:25px;

    margin-top:40px;

}



.card {

    background:white;

    color:#1e293b;

    padding:30px;

    border-radius:20px;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

    transition:.3s;

}



.card:hover {

    transform:translateY(-10px);

    box-shadow:0 20px 40px rgba(0,0,0,.25);

}



.card h3 {

    margin-bottom:15px;

    color:#0f766e;

}






/* RESOURCES */


.resource-preview {

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:25px;

    margin-top:40px;

}



.resource-card {

    background:white;

    padding:30px;

    border-radius:20px;

    border-top:5px solid #14b8a6;

    box-shadow:0 10px 25px rgba(0,0,0,.1);

}



.resource-card h3 {

    color:#0f172a;

    margin-bottom:15px;

}






/* CHECKLIST */


.checklist {

    max-width:600px;

    margin:40px auto;

    list-style:none;

}



.checklist li {

    background:#1e293b;

    margin:15px 0;

    padding:18px;

    border-radius:12px;

}



.checklist li::before {

    content:"✓ ";

    color:#2dd4bf;

    font-weight:bold;

}





/* CRISIS */


.crisis-box {

    background:#fee2e2;

    border-left:8px solid #dc2626;

    padding:35px;

    max-width:800px;

    margin:auto;

    border-radius:15px;

}



.crisis-box h3 {

    margin-top:20px;

    color:#991b1b;

}





/* FOOTER */


footer {

    background:#020617;

    color:white;

    text-align:center;

    padding:35px;

}






/* MOBILE */


@media(max-width:800px){


.navbar {

    flex-direction:column;

    gap:15px;

}


.nav-links {

    flex-wrap:wrap;

    justify-content:center;

}


.hero-content {

    padding-top:180px;

}


}

.resource-card a {

    display:inline-block;

    margin-top:20px;

    padding:10px 20px;

    background:#14b8a6;

    color:white;

    border-radius:25px;

    text-decoration:none;

    font-weight:600;

}


.resource-card a:hover {

    background:#0f766e;

}

.checklist-box {

    background:#1e293b;

    padding:30px;

    margin-top:50px;

    border-radius:20px;

}


.checklist-box h3 {

    margin-bottom:20px;

    color:white;

}


.checklist-box label {

    display:block;

    padding:12px;

    color:#e2e8f0;

}


.checklist-box input {

    margin-right:10px;

    transform:scale(1.2);

}

#crisis {

    background:#f1f5f9;

}


#crisis .card {

    border-top:5px solid #14b8a6;

}

#references {

    background:white;

}


.references {

    max-width:900px;

    margin:auto;

}


.references p {

    margin-bottom:20px;

    padding-left:30px;

    text-indent:-30px;

}

/* Scroll animations */

section {

    animation: fadeIn 0.8s ease-in;

}


@keyframes fadeIn {

    from {

        opacity:0;

        transform:translateY(20px);

    }


    to {

        opacity:1;

        transform:translateY(0);

    }

}

#topButton {

    position:fixed;

    bottom:30px;

    right:30px;

    width:50px;

    height:50px;

    border-radius:50%;

    border:none;

    background:#14b8a6;

    color:white;

    font-size:25px;

    cursor:pointer;

    box-shadow:0 5px 15px rgba(0,0,0,.2);

}


#topButton:hover {

    background:#0f766e;

}

#wellness-check {

    background:#f8fafc;

}


.support-message {

    max-width:800px;

    margin:30px auto 0;

    padding:25px;

    background:#e0f2fe;

    border-left:6px solid #0284c7;

    border-radius:12px;

}


.support-message p {

    margin:0;

}

.footer-content {
    text-align:center;
    line-height:1.8;
}

.footer-content h3 {
    margin-bottom:15px;
}