/* --- ROOT & GLOBAL STYLES --- */
:root {
    --pink: #C2185B;
    --purple: #5B2D8B;
    --purple-dark: #391D5C;
    --orange: #FF9800;
    --grad: linear-gradient(135deg, #C2185B 0%, #5B2D8B 100%);
    --light-bg: #f9f9f9;
    --text-main: #333;
    --text-muted: #666;
}

* { box-sizing: border-box; }

body { 
    font-family: 'Open Sans', sans-serif; 
    margin: 0; 
    color: var(--text-main); 
    line-height: 1.6; 
    overflow-x: hidden;
}

h1, h2, h3, h4 { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700; 
    margin-top: 0; 
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 80px 0; }
.bg-light { background: var(--light-bg); }
.text-center { text-align: center; }
.text-white { color: white; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }
.mb-20 { margin-bottom: 20px; }

/* --- HEADER & NAVIGATION --- */
header { 
    background: white; 
    padding: 15px 0; 
    border-bottom: 1px solid #eee; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.brand-logo { height: 50px; }

nav ul { display: flex; list-style: none; gap: 20px; margin: 0; padding: 0; }
nav a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 0.95rem; transition: 0.3s; }
nav a:hover, nav a.active { color: var(--pink); }
.cta-gradient { 
    background: var(--grad); 
    color: white !important; 
    padding: 10px 22px; 
    border-radius: 50px; 
}

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--purple); }

/* --- HERO & CAROUSEL --- */
.carousel-container { position: relative; height: 75vh; overflow: hidden; background: #000; }
.carousel-slide { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white; 
}
.carousel-slide.active { display: flex; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 10px; }
.hero-content p { font-size: 1.5rem; font-weight: 400; }
.fade { animation: fadeEffect 1.5s; }
@keyframes fadeEffect { from {opacity: .4} to {opacity: 1} }

/* About Page Header */
.page-header { padding: 120px 0; background-size: cover; background-position: center; }
.page-header h1 { font-size: 4rem; text-transform: uppercase; }

/* --- BRANDED SECTIONS --- */
.section-gradient { background: var(--grad); padding: 80px 0; }
.icon-orange { color: var(--orange); font-size: 3.5rem; margin-bottom: 20px; display: block; }
.pink-text { color: var(--pink); }

/* Core Values */
.icon-pink-lg { color: var(--pink); font-size: 4.5rem; margin-bottom: 20px; }

/* --- GRID LAYOUTS --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* Alone & Involved Sections (Split Image/Text) */
.grid-alone, .grid-involved { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.alone-img img, .involved-img img { width: 100%; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* --- CARDS & IMPACT --- */
.service-card { background: none; }
.card-img-wrapper { position: relative; margin-bottom: 20px; }
.card-img-wrapper img { width: 100%; height: 260px; object-fit: cover; border-radius: 12px; }
.card-icon { 
    position: absolute; 
    bottom: 15px; 
    right: 15px; 
    background: white; 
    color: var(--pink); 
    padding: 12px; 
    border-radius: 50%; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    font-size: 1.2rem;
}

.impact-card { 
    padding: 40px; 
    border-top: 6px solid var(--pink); 
    background: white; 
    border-radius: 12px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    text-align: center; 
}
.impact-stat { font-size: 3.5rem; font-weight: 900; color: var(--purple); margin-bottom: 10px; }
.full-width-image img { width: 100%; height: 450px; object-fit: cover; border-radius: 15px; }

/* --- ICON LISTS (GET INVOLVED / WHY US) --- */
.point-item { display: flex; gap: 20px; margin-bottom: 25px; align-items: flex-start; }
.point-icon { color: var(--pink); font-size: 1.8rem; margin-top: 5px; }
.point-item strong { display: block; font-size: 1.1rem; color: #2F2F2F; margin-bottom: 3px; }
.point-item p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* --- SAFETY & HEALING SECTION --- */
.section-safety { background: var(--purple); color: white; padding: 100px 0; }
.safety-icon { font-size: 4.5rem; color: #fff; opacity: 0.9; margin-bottom: 25px; }
.lead-narrow { max-width: 750px; margin: 0 auto; font-size: 1.2rem; }

/* --- BUTTONS --- */
.btn-gradient { 
    background: var(--grad); 
    color: white; 
    padding: 15px 35px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    display: inline-block; 
    border: none; 
    transition: 0.3s;
}
.btn-outline-dark { 
    border: 2px solid #333; 
    color: #333; 
    padding: 14px 35px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    display: inline-block; 
}
.btn-purple-solid { 
    background: var(--purple-dark); 
    color: white; 
    padding: 15px 35px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    display: inline-block; 
}
.btn-outline-white { 
    border: 2px solid white; 
    color: white; 
    padding: 13px 35px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 700; 
    display: inline-block; 
}
.cta-flex { display: flex; justify-content: center; align-items: center; gap: 20px; }

/* --- FOOTER --- */
.footer { background: white; padding: 80px 0 30px; border-top: 1px solid #eee; }
.crisis-box { 
    background: var(--pink); 
    color: white; 
    padding: 35px; 
    border-radius: 15px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 20px;
}
.crisis-content { display: flex; align-items: center; gap: 25px; }
.crisis-icon { font-size: 3rem; }
.btn-white-sm { 
    background: white; 
    color: var(--pink); 
    padding: 12px 25px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 800; 
    font-size: 0.9rem;
    white-space: nowrap;
}

.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo { height: 45px; margin-bottom: 20px; }
.footer-col h4 { margin-bottom: 20px; color: var(--purple); font-size: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { text-decoration: none; color: var(--text-muted); font-weight: 600; transition: 0.3s; }
.footer-col a:hover { color: var(--pink); }
.footer-col p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.footer-col i { color: var(--pink); margin-right: 10px; }

.footer-bottom { 
    border-top: 1px solid #eee; 
    padding-top: 25px; 
    display: flex;
    justify-content: space-between;
    color: #999; 
    font-size: 0.85rem; 
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.icon-list {
    list-style: none;
    padding: 0;
}
.icon-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* QUICK ESCAPE BUTTON */
.escape-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff4d6d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    z-index: 10000; /* Extremely high to stay on top */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.escape-btn:hover {
    background: #c9184a;
    transform: translateY(-2px);
}

/* TRIAGE BOT CONTAINER */
.triage-container {
    position: fixed;
    bottom: 85px; /* Sits above the escape button */
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    display: none; /* Controlled by JS */
    z-index: 9999;
    font-family: 'Open Sans', sans-serif;
}

.triage-header {
    background: #2d3436;
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.triage-body { padding: 20px; }

.triage-options button {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    background: #fdf2f4;
    border: 1px solid #ffccd5;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    color: #c9184a;
    transition: 0.2s;
}

.triage-options button:hover {
    background: #ff4d6d;
    color: white;
}



/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .menu-toggle { display: block; }
    nav { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: white; 
        border-bottom: 3px solid var(--pink); 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    nav.active { display: block; }
    nav ul { flex-direction: column; padding: 25px; gap: 15px; }

    /* Mobile Stacking Logic: Image on Top */
    .grid-alone, .grid-involved, .grid-2 { grid-template-columns: 1fr; gap: 30px; }
    .alone-img, .involved-img { order: 1; }
    .alone-text, .involved-text { order: 2; text-align: center; }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }

    .crisis-box { flex-direction: column; text-align: center; padding: 25px; }
    .crisis-content { flex-direction: column; gap: 15px; }
    
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }

    .cta-flex { flex-direction: column; width: 100%; }
    .btn-outline-white, .btn-outline-dark { margin-left: 0; width: 100%; text-align: center; }
    .btn-purple-solid, .btn-gradient { width: 100%; text-align: center; }
    
    .full-width-image img { height: 250px; }
}

@media (max-width: 600px) {
    .footer-main { grid-template-columns: 1fr; text-align: center; }
}