/* The Senior Safety Project - Authority Design System */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');

:root {
    /* Primary brand colors */
    --trust-blue: #1F4E8C;
    --safety-gold: #F2A900;
    --deep-navy: #0F2A44;
    
    /* Secondary colors */
    --bg-gray: #F5F7FA;
    --light-blue-accent: #E7F0FA;
    --warning-accent: #E5533D;
    --scam-alert-bg: #FFF4F3;
    
    /* Neutral colors */
    --white: #ffffff;
    --text-dark: #212529;
    --text-muted: #4a5568;
    --border: #d1d5db;
    
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --border-radius: 6px;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px; /* Minimum 18px for senior readability */
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-gray);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--deep-navy);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 { font-size: 42px; }
h2 { font-size: 32px; margin-top: 2.5rem; }
h3 { font-size: 24px; }

p {
    margin-bottom: 1.5rem;
    max-width: 70ch; /* Optimal line length */
}

/* Paragraph Rule: Not longer than 3-4 lines */
.content-p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--trust-blue);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--deep-navy);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 90px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    color: var(--deep-navy);
    padding: 0.5rem;
}

.nav-links a:hover {
    color: var(--trust-blue);
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-white {
    background-color: var(--white);
}

.section-blue {
    background-color: var(--trust-blue);
    color: var(--white);
}

.section-blue h1, .section-blue h2, .section-blue h3 {
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 28px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--safety-gold);
    color: #000000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: #d99700;
    color: #000000;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--trust-blue);
}

.btn-blue {
    background-color: var(--trust-blue);
    color: var(--white);
}

/* Content Blocks */
.scam-alert-box {
    background-color: var(--scam-alert-bg);
    border: 2px solid var(--warning-accent);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.scam-alert-box h3 {
    color: var(--warning-accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.safety-tip-box {
    background-color: var(--light-blue-accent);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    border-left: 6px solid var(--trust-blue);
}

.safety-tip-box h3 {
    color: var(--trust-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Trust Banner */
.trust-banner {
    background: #f1f5f9;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-banner .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--deep-navy);
}

.trust-icon {
    color: var(--trust-blue);
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(rgba(15, 42, 68, 0.8), rgba(15, 42, 68, 0.8)), url('hero-bg.jpg'); /* Note: I'll need a placeholder or image */
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero p { 
    font-size: 1.4rem; 
    max-width: 800px; 
    margin: 0 auto 2.5rem; 
    color: rgba(255,255,255,0.9);
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* Footer Styles */
footer {
    background-color: var(--deep-navy);
    color: var(--white);
    padding: 5rem 0 2rem;
}

footer .logo {
    display: flex;
    justify-content: flex-start; /* Align with mission text */
    margin-bottom: 1.5rem;
}

footer .logo img {
    height: 80px;
    filter: none; /* Removed filter that was causing the white rectangle effect */
}

footer h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

footer p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Utility */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
