/* ============================================================
   Parks Family Site - Main Styles
   Warm Modern Theme
   ============================================================ */

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

:root {
    --navy:   #163060;
    --slate:  #1a3d72;
    --teal:   #1a9db0;
    --teal2:  #148a9b;
    --orange: #e8720a;
    --gold:   #f5a020;
    --cream:  #f0f8fa;
    --text:   #1a2a3a;
    --muted:  #4a6070;
    --white:  #ffffff;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
}


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

/* ---- Header ---- */
.site-header {
    background: var(--navy);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: 0.5px;
}

.login-btn {
    background: transparent;
    border: 2px solid var(--teal);
    color: var(--teal);
    padding: 8px 24px;
    border-radius: 50px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    background: var(--teal);
    color: var(--white);
}

/* ---- Hero ---- */
.hero {
    background: #ffffff;
    padding: 100px 24px 40px;
    text-align: center;
    color: var(--navy);
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 48px;
}

.hero-logo img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

@media (max-width: 600px) {
    .hero-logo img {
        width: 220px;
        height: 220px;
    }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--navy);
}

.tagline {
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 300;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---- About ---- */
.about {
    padding: 90px 0;
    background: var(--white);
}

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

.about-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top: 4px solid var(--teal);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.about-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--slate);
    margin-bottom: 12px;
}

.about-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---- Family Access ---- */
.family-access {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal2) 100%);
    padding: 90px 24px;
    text-align: center;
    color: var(--white);
}

.family-access h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 16px;
}

.family-access p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    display: inline-block;
}

.cta-btn:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,114,10,0.40);
}

/* ---- Footer ---- */
.site-footer {
    background: #141e2a;
    padding: 28px 0;
    text-align: center;
}

.site-footer p {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* ---- Modal ---- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px 40px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover { color: var(--text); }

.modal h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.modal p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.modal input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.modal input[type="password"]:focus {
    border-color: var(--teal);
}

.modal .cta-btn {
    width: 100%;
    padding: 13px;
}

.error-msg {
    color: #dc2626;
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: none;
}

.error-msg.visible {
    display: block;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .hero { padding: 70px 20px; }
    .icon-row { gap: 24px; }
    .icon-card svg { width: 48px; height: 48px; }
    .about { padding: 60px 0; }
    .family-access { padding: 60px 20px; }
    .modal { padding: 36px 24px; }
}
