/* Base Variables */
:root {
    --primary-color: #1a365d; /* Institutional Navy */
    --secondary-color: #2b6cb0; /* Action Blue */
    --accent-color: #e53e3e; /* Urgent Red for specific calls to action */
    --text-main: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    font-size: 18px; /* Slightly larger for older demographic */
}

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

/* Typography */
h1, h2, h3 {
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }

.highlight {
    color: var(--secondary-color);
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-large {
    font-size: 1.2rem;
    padding: 16px 32px;
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
    padding: 14px;
    margin-top: 10px;
}

/* Header */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    margin-left: 20px;
    transition: color 0.2s;
}

.main-nav a:hover:not(.btn) {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    color: var(--bg-white);
}

.hero .highlight {
    color: #90cdf4; /* Lighter blue for dark background */
}

.hero .subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

/* Sections General */
section {
    padding: 80px 0;
}

.crisis-section {
    background-color: var(--bg-white);
    text-align: center;
}

.crisis-section p {
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* Services Grid */
.services-section {
    background-color: var(--bg-light);
}

.services-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--secondary-color);
}

/* Registry Form Section */
.registry-section {
    background-color: var(--bg-white);
}

.form-container {
    max-width: 700px;
}

.form-intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.intake-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.2);
}

.radio-group label, .checkbox-group label {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
    margin-right: 20px;
    cursor: pointer;
}

.radio-group input, .checkbox-group input {
    margin-right: 8px;
    width: auto;
}

.consent-group label {
    display: flex;
    align-items: flex-start;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-light);
}

.consent-group input {
    margin-top: 4px;
    margin-right: 12px;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a {
    color: #90cdf4;
    text-decoration: none;
}

.site-footer p {
    margin-bottom: 10px;
}

.copyright {
    opacity: 0.7;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
}
/* Logo Image Styling */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.site-logo { max-height: 60px; max-width: 100%;
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Donate Button */
.btn-donate {
    background-color: #38a169;
    color: #ffffff;
    border: 2px solid #38a169;
}
.btn-donate:hover {
    background-color: #2f855a;
    border-color: #2f855a;
    color: #ffffff;
}

/* Mobile Nav Wrap Fix */
@media (max-width: 768px) {
    .main-nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 15px;
    }
    .main-nav a.btn {
        margin-left: 0 !important;
        width: 100%;
        display: block;
    }
}
