/* ========================================
   SAFER PLACES NETWORK — Shared Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Space+Mono:wght@400;700&display=swap');

:root {
    --navy: #1E3A8A;
    --navy-dark: #172554;
    --navy-light: #1e40af;
    --green: #059669;
    --green-light: #10b981;
    --green-dark: #047857;
    --gold: #F59E0B;
    --gold-light: #FBBF24;
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;
    --font-display: 'DM Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-display);
    color: var(--slate-800);
    line-height: 1.6;
    background: white;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* ========== UTILITIES ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ========== TOP BANNER ========== */
.top-banner {
    background: var(--green);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}
.top-banner a { color: white; text-decoration: underline; margin-left: 8px; font-weight: 700; }
.top-banner a:hover { text-decoration: none; }

/* ========== NAVIGATION ========== */
.nav {
    background: white;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--navy);
    text-decoration: none;
}
.logo img { height: 70px; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-pills {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--slate-100);
    padding: 5px;
    border-radius: 50px;
}
.nav-link {
    color: var(--slate-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link:hover { background: white; color: var(--navy); }
.nav-link.active { background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.08); color: var(--navy); }
.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 8px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--slate-700);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
}
.dropdown-item:hover { background: var(--slate-100); color: var(--navy); }
.dropdown-item small { display: block; font-weight: 400; color: var(--slate-400); font-size: 12px; margin-top: 2px; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}
.hamburger span { width: 24px; height: 3px; background: var(--navy); border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
.mobile-menu {
    display: none;
    position: fixed;
    top: 90px;
    left: 0; right: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 99;
    max-height: calc(100vh - 125px);
    overflow-y: auto;
}
.mobile-menu.active { display: block; }
.mobile-menu-item {
    display: block;
    padding: 16px 24px;
    color: var(--slate-700);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--slate-200);
}
.mobile-submenu { background: var(--slate-50); padding: 12px 24px 12px 48px; border-bottom: 1px solid var(--slate-200); }
.mobile-submenu-item { display: block; padding: 12px 0; color: var(--slate-500); text-decoration: none; font-size: 14px; }

/* ========== BUTTONS ========== */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
}
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,58,138,0.3); }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(5,150,105,0.3); }
.btn-white { background: white; color: var(--navy); }
.btn-white:hover { background: var(--slate-50); transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.1); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--slate-200); }
.btn-outline-navy:hover { border-color: var(--navy); background: rgba(30,58,138,0.04); }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ========== SECTION HELPERS ========== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header .eyebrow {
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}
.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.section-header p {
    font-size: 18px;
    color: var(--slate-500);
    max-width: 560px;
    margin: 0 auto;
}

/* ========== PAGE HERO (sub-pages) ========== */
.page-hero {
    background: var(--navy-dark);
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(30,58,138,0.6) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(5,150,105,0.15) 0%, transparent 50%);
    z-index: 1;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(5,150,105,0.15);
    border: 1px solid rgba(5,150,105,0.3);
    color: var(--green-light);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.page-hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    max-width: 900px;
}
.page-hero h1 span {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 28px;
}
.page-hero.centered { text-align: center; }
.page-hero.centered h1, .page-hero.centered p { margin-left: auto; margin-right: auto; }

/* ========== FINAL CTA ========== */
.final-cta {
    background: var(--green);
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(255,255,255,0.1), transparent 60%);
}
.final-cta-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}
.final-cta h2 { font-size: 40px; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.final-cta p { font-size: 18px; color: rgba(255,255,255,0.9); margin-bottom: 32px; }
.final-cta .btn-white { font-size: 17px; padding: 16px 32px; }

/* ========== FOOTER ========== */
.footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand h3 { font-size: 18px; font-weight: 700; color: white; margin-bottom: 16px; letter-spacing: 0.5px; }
.footer-brand p { font-size: 14px; line-height: 1.6; margin-bottom: 20px; color: var(--slate-500); }
.footer-social { display: flex; gap: 12px; }
.social-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    text-decoration: none;
    transition: all 0.2s;
}
.social-icon:hover { background: var(--navy); color: white; transform: translateY(-2px); }
.footer-section h4 { font-size: 15px; font-weight: 700; color: white; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--slate-500); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-contact p { font-size: 14px; margin-bottom: 8px; color: var(--slate-500); }
.footer-contact a { color: var(--slate-500); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: white; }
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}
.footer-bottom p { font-size: 13px; color: var(--slate-500); }
.footer-bottom-links { display: flex; justify-content: center; gap: 24px; margin-top: 12px; }
.footer-bottom-links a { color: var(--slate-500); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-bottom-links a:hover { color: white; }

/* ========== ANIMATIONS ========== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .top-banner { font-size: 12px; padding: 8px 12px; }
    .top-banner a { display: block; margin-left: 0; margin-top: 4px; }
}

@media (max-width: 900px) {
    .nav-pills { display: none; }
    .hamburger { display: flex; }
    .nav-right .btn-primary,
    .nav-right .btn-green { display: none; }

    .page-hero { padding: 60px 0; }
    .page-hero h1 { font-size: 32px; }
    .page-hero p { font-size: 16px; }

    .section-header h2 { font-size: 28px; }
    .section-header p { font-size: 16px; }

    .final-cta { padding: 60px 0; }
    .final-cta h2 { font-size: 28px; }
    .final-cta p { font-size: 16px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom-links { flex-wrap: wrap; gap: 16px; }
}
