/* ============================================================
   GRIMSBY CHURCH OF CHRIST — Main Stylesheet
   Warm, community-focused aesthetic
   ============================================================ */

:root {
    --navy:       #1e2f4d;
    --navy-light: #2c4370;
    --gold:       #b8913a;
    --gold-light: #d4aa5a;
    --cream:      #faf6ef;
    --warm-white: #fff9f2;
    --text-dark:  #2a2218;
    --text-mid:   #5a4e3c;
    --text-light: #8a7d6a;
    --border:     #e8dece;
    --shadow:     0 4px 24px rgba(30,47,77,0.10);
    --radius:     10px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    background: var(--warm-white);
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.7;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    line-height: 1.25;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

/* ---- LAYOUT ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { background: var(--cream); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 12px; }
.section-header p { color: var(--text-mid); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.divider {
    width: 56px; height: 3px;
    background: var(--gold);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ---- HEADER ---- */
.site-header {
    background: var(--navy);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.header-inner {
    max-width: 1100px; margin: 0 auto;
    padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; color: white; }
.logo-icon { font-size: 1.6rem; color: var(--gold); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: white; }
.logo-sub { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    color: rgba(255,255,255,0.82);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: white; background: rgba(255,255,255,0.10); }
.main-nav .nav-cta {
    background: var(--gold);
    color: white !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    margin-left: 8px;
}
.main-nav .nav-cta:hover { background: var(--gold-light); }

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: all 0.3s; }

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #3a5a8a 100%);
    color: white;
    padding: 96px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '✝';
    position: absolute; top: -30px; right: 8%;
    font-size: 280px; opacity: 0.04; color: white;
    font-family: serif; pointer-events: none;
}
.hero-content { position: relative; max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: 3rem; color: white; margin-bottom: 16px; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.82); margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.btn-primary { background: var(--gold); color: white; }
.btn-primary:hover { background: var(--gold-light); color: white; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.6); color: white; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: white; }

/* ---- WELCOME STRIP ---- */
.welcome-strip {
    background: var(--cream);
    padding: 52px 24px;
    text-align: center;
}
.welcome-strip h2 { font-size: 1.9rem; margin-bottom: 14px; }
.welcome-strip p { color: var(--text-mid); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ---- QUICK INFO CARDS ---- */
.quick-info { padding: 60px 0; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.info-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(30,47,77,0.13); }
.info-icon { font-size: 2.2rem; margin-bottom: 14px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.info-card p { color: var(--text-mid); font-size: 0.92rem; }

/* ---- ABOUT ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.about-image {
    background: var(--border);
    border-radius: var(--radius);
    height: 360px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light); font-size: 0.9rem;
}
.about-text h2 { font-size: 2rem; margin-bottom: 18px; }
.about-text p { color: var(--text-mid); margin-bottom: 16px; }
.about-text .btn { margin-top: 8px; background: var(--navy); color: white; border-color: var(--navy); }
.about-text .btn:hover { background: var(--navy-light); color: white; }

/* ---- STAFF ---- */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.staff-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow);
}
.staff-photo {
    background: var(--cream);
    height: 180px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light); font-size: 0.85rem;
}
.staff-info { padding: 20px 16px; }
.staff-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.staff-info .role { color: var(--gold); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.staff-info p { color: var(--text-mid); font-size: 0.88rem; margin-top: 8px; }

/* ---- SERVICES PAGE ---- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.service-times-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}
.service-times-box h3 { font-size: 1.4rem; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--border); }
.time-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.time-row:last-child { border-bottom: none; }
.time-label { font-weight: 700; color: var(--navy); }
.time-val { color: var(--gold); font-weight: 700; }
.map-placeholder {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    height: 320px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px; color: var(--text-light);
}
.map-placeholder .map-icon { font-size: 2.5rem; }
.address-block { margin-top: 24px; }
.address-block h4 { font-size: 1rem; margin-bottom: 10px; }
.address-block p { color: var(--text-mid); font-size: 0.95rem; }

/* ---- SERMONS ---- */
.sermon-list { display: flex; flex-direction: column; gap: 20px; }
.sermon-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.sermon-card:hover { transform: translateX(4px); }
.sermon-date-box {
    background: var(--navy);
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    min-width: 64px;
    color: white;
}
.sermon-date-box .month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-light); }
.sermon-date-box .day { font-family: 'Playfair Display', serif; font-size: 1.8rem; line-height: 1; }
.sermon-info h3 { font-size: 1.15rem; margin-bottom: 6px; }
.sermon-info .speaker { color: var(--gold); font-weight: 700; font-size: 0.88rem; }
.sermon-info .scripture { color: var(--text-light); font-size: 0.88rem; font-style: italic; margin-top: 4px; }
.sermon-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-sm {
    padding: 8px 16px;
    font-size: 0.82rem;
    border-radius: 6px;
    border: 2px solid var(--navy);
    color: var(--navy);
    font-weight: 700;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}
.btn-sm:hover { background: var(--navy); color: white; }
.btn-sm.btn-gold { border-color: var(--gold); color: var(--gold); }
.btn-sm.btn-gold:hover { background: var(--gold); color: white; }

/* ---- EVENTS ---- */
.events-list { display: flex; flex-direction: column; gap: 28px; }
.event-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 200px 1fr;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.event-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(30,47,77,0.13); }
.event-image {
    background: var(--cream);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    color: var(--text-light);
    font-size: 0.8rem;
    gap: 8px;
    min-height: 160px;
    border-right: 1px solid var(--border);
}
.event-image-icon { font-size: 2.2rem; }
.event-body { padding: 24px 28px; }
.event-meta {
    display: flex; gap: 20px; flex-wrap: wrap;
    margin-bottom: 10px;
}
.event-meta span {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gold);
}
.event-body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.event-body p { color: var(--text-mid); font-size: 0.94rem; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 52px; }
.contact-info h3 { font-size: 1.4rem; margin-bottom: 20px; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-detail-icon { font-size: 1.3rem; margin-top: 2px; }
.contact-detail h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.contact-detail p { color: var(--text-mid); font-size: 0.9rem; }
.contact-form { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.4rem; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 7px; color: var(--navy); }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--warm-white);
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit .btn { background: var(--navy); color: white; border: none; width: 100%; padding: 15px; font-size: 1rem; cursor: pointer; }
.form-submit .btn:hover { background: var(--navy-light); }
.alert { padding: 14px 18px; border-radius: 7px; margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: #edf7ed; color: #2e6b2e; border: 1px solid #b6ddb6; }
.alert-error { background: #fdf0ed; color: #8b2a1a; border: 1px solid #f0c0b0; }

/* ---- PAGE HERO ---- */
.page-hero {
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 60px 24px;
    text-align: center;
    color: white;
}
.page-hero h1 { color: white; font-size: 2.4rem; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; }

/* ---- FOOTER ---- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 60px 0 0; }
.footer-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px 48px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.site-footer .logo-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: white; }
.site-footer .logo-sub { color: var(--gold-light); }
.footer-col h4 { color: white; font-family: 'Playfair Display', serif; font-size: 1rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-col p { font-size: 0.88rem; margin-bottom: 5px; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); font-size: 0.88rem; margin-bottom: 6px; }
.footer-col a:hover { color: var(--gold-light); }
.social-links { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.10); text-align: center; padding: 20px 24px; font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .about-grid, .services-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .sermon-card { grid-template-columns: auto 1fr; }
    .sermon-actions { grid-column: 2; flex-direction: row; }
}

@media (max-width: 680px) {
    .hamburger { display: flex; }
    .main-nav {
        display: none; flex-direction: column; gap: 0;
        position: absolute; top: 72px; left: 0; right: 0;
        background: var(--navy);
        padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.10);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 24px; border-radius: 0; width: 100%; }
    .main-nav .nav-cta { margin: 8px 24px 0; width: calc(100% - 48px); text-align: center; }
    .site-header { position: relative; }
    .hero h1 { font-size: 2.1rem; }
    .event-card { grid-template-columns: 1fr; }
    .event-image { min-height: 120px; border-right: none; border-bottom: 1px solid var(--border); }
    .sermon-card { grid-template-columns: 1fr; }
    .sermon-date-box { display: none; }
    .footer-inner { grid-template-columns: 1fr; }
}
