@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
    --navy: #18364b;
    --navy-dark: #102838;
    --blue: #477c9d;
    --cream: #f5f1e8;
    --paper: #fffdf8;
    --ink: #20272c;
    --muted: #68747b;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", Arial, sans-serif;
}

a {
    color: inherit;
}

.site-header {
    background: var(--paper);
    border-bottom: 1px solid #e7e1d7;
}

.header-inner {
    min-height: 92px;
    max-width: 1320px;
    margin: auto;
    padding: 0 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.church-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.church-name {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--navy);
}

.church-location {
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 27px;
}

.main-nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

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

/* HERO */

.hero {
    min-height: 560px;
    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(16,40,56,.94) 0%,
            rgba(16,40,56,.82) 42%,
            rgba(16,40,56,.30) 72%,
            rgba(16,40,56,.12) 100%
        ),
        url("../images/church-aerial.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
}

.hero-content {
    width: 100%;
    max-width: 1320px;
    margin: auto;
    padding: 85px 40px;
}

.hero-eyebrow,
.section-eyebrow {
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 12px;
    font-weight: 600;
}

.hero h1 {
    max-width: 750px;
    margin: 0;

    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(46px, 6vw, 78px);
    line-height: 1.08;
}

.hero-text {
    max-width: 620px;
    margin: 27px 0 34px;
    font-size: 19px;
    line-height: 1.7;
    color: rgba(255,255,255,.88);
}

.hero-actions {
    display: flex;
    gap: 14px;
}

.button {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
}

.button-primary {
    background: var(--cream);
    color: var(--navy-dark);
}

.button-secondary {
    border: 1px solid rgba(255,255,255,.65);
    color: white;
}

/* WORSHIP STRIP */

.worship-strip {
    max-width: 1180px;
    margin: -42px auto 0;
    position: relative;

    background: white;
    box-shadow: 0 12px 35px rgba(20,34,42,.12);

    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.worship-strip div {
    padding: 27px 34px;
    border-right: 1px solid #ebe6dd;
}

.worship-strip div:last-child {
    border-right: 0;
}

.strip-label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.worship-strip strong {
    color: var(--navy);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 18px;
}

/* WELCOME */

.welcome {
    max-width: 850px;
    margin: auto;
    padding: 110px 40px;
    text-align: center;
}

.section-eyebrow {
    color: var(--blue);
}

.welcome h2 {
    margin: 0 0 25px;

    font-family: "Libre Baskerville", Georgia, serif;
    color: var(--navy);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.25;
}

.welcome > p:last-child {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

/* FOOTER */

.site-footer {
    padding: 35px;
    text-align: center;
    background: var(--navy-dark);
    color: rgba(255,255,255,.7);
    font-size: 13px;
}

/* MOBILE */

@media (max-width: 850px) {

    .header-inner {
        padding: 20px 24px;
    }

    .main-nav {
        display: none;
    }

    .hero-content {
        padding: 70px 25px 100px;
    }

    .worship-strip {
        margin: 0;
        grid-template-columns: 1fr;
    }

    .worship-strip div {
        border-right: 0;
        border-bottom: 1px solid #ebe6dd;
    }

    .welcome {
        padding: 75px 25px;
    }
}

/* CHURCH LOGO */

.church-logo {
    display: block;
    width: 220px;
    height: auto;
    max-width: 100%;
}

@media (max-width: 850px) {
    .church-logo {
        width: 185px;
    }
}

/* MISSION */

.mission-grid {
    max-width: 1240px;
    margin: 0 auto 110px;
    padding: 0 40px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.mission-card {
    min-height: 365px;
    padding: 42px 38px;

    background: var(--cream);
    text-decoration: none;

    display: flex;
    flex-direction: column;

    transition: transform .2s ease, background .2s ease;
}

.mission-card:nth-child(2) {
    background: #e9eff1;
}

.mission-card:nth-child(3) {
    background: var(--navy);
    color: white;
}

.mission-card:hover {
    transform: translateY(-5px);
}

.mission-number {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 14px;
    opacity: .5;
}

.mission-label {
    margin: 50px 0 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    font-weight: 600;
}

.mission-card h3 {
    margin: 0 0 18px;

    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 27px;
    line-height: 1.3;
}

.mission-card > p:not(.mission-label) {
    margin: 0 0 30px;
    line-height: 1.7;
    opacity: .75;
}

.mission-link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 850px) {

    .mission-grid {
        padding: 0 24px;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 70px;
    }

    .mission-card {
        min-height: 300px;
    }
}

/* HOMEPAGE SPACING REFINEMENT */

.welcome {
    padding-top: 95px;
    padding-bottom: 60px;
}

.welcome h2 {
    font-size: clamp(32px, 3.4vw, 44px);
}

.mission-grid {
    margin-top: 0;
}

@media (max-width: 850px) {
    .welcome {
        padding-top: 65px;
        padding-bottom: 40px;
    }
}

/* CALENDAR PREVIEW */

.calendar-preview {
    background: #edf2f3;
    padding: 105px 40px;
}

.calendar-preview-inner {
    max-width: 1240px;
    margin: auto;

    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 100px;
    align-items: start;
}

.calendar-intro {
    padding-top: 18px;
}

.calendar-intro h2 {
    max-width: 440px;
    margin: 0 0 24px;

    font-family: "Libre Baskerville", Georgia, serif;
    color: var(--navy);
    font-size: 42px;
    line-height: 1.25;
}

.calendar-intro > p:not(.section-eyebrow) {
    max-width: 460px;
    margin: 0 0 32px;

    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.calendar-button {
    display: inline-block;
    padding: 14px 20px;

    background: var(--navy);
    color: white;

    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.upcoming-events {
    background: white;
    box-shadow: 0 12px 35px rgba(20,34,42,.08);
}

.upcoming-heading {
    padding: 20px 28px;

    background: var(--navy);
    color: white;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-size: 11px;
    font-weight: 600;
}

.calendar-event {
    min-height: 120px;
    padding: 20px 28px;

    border-bottom: 1px solid #e5e9e9;
    text-decoration: none;

    display: grid;
    grid-template-columns: 75px 1fr 30px;
    gap: 24px;
    align-items: center;
}

.calendar-event:hover {
    background: #faf9f5;
}

.calendar-event-date {
    text-align: center;
    color: var(--navy);
}

.calendar-event-date span {
    display: block;

    color: var(--blue);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.6px;
}

.calendar-event-date strong {
    display: block;
    margin-top: 3px;

    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 35px;
    line-height: 1;
}

.calendar-event-info > span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 600;
}

.calendar-event-info h3 {
    margin: 6px 0 4px;

    color: var(--navy);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 21px;
}

.calendar-event-info p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.calendar-event-arrow {
    color: var(--navy);
    font-size: 21px;
    transition: transform .2s ease;
}

.calendar-event:hover .calendar-event-arrow {
    transform: translateX(4px);
}

.calendar-note {
    padding: 17px 28px;

    color: var(--muted);
    background: #faf9f5;

    font-size: 11px;
    font-style: italic;
}

@media (max-width: 900px) {

    .calendar-preview {
        padding: 70px 24px;
    }

    .calendar-preview-inner {
        grid-template-columns: 1fr;
        gap: 45px;
    }
}

@media (max-width: 550px) {

    .calendar-event {
        padding: 18px;
        grid-template-columns: 60px 1fr 20px;
        gap: 14px;
    }

    .calendar-intro h2 {
        font-size: 34px;
    }
}

.no-events {
    padding: 45px 28px;
    color: var(--muted);
    font-size: 14px;
}


/* ==================================================
   FULL CALENDAR PAGE
================================================== */

.calendar-page-hero {
    background: var(--navy);
    color: white;
    padding: 80px 40px;
}

.calendar-page-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.calendar-page-hero .section-eyebrow {
    color: #9fc0d3;
}

.calendar-page-hero h1 {
    max-width: 720px;
    margin: 10px 0 20px;
    color: white;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.15;
}

.calendar-page-hero-inner > p:last-child {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 17px;
    line-height: 1.7;
}

.full-calendar {
    background: #f4f6f7;
    padding: 75px 40px 100px;
}

.full-calendar-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.calendar-month {
    margin-bottom: 60px;
}

.calendar-month-heading {
    margin-bottom: 18px;
    border-bottom: 2px solid var(--navy);
}

.calendar-month-heading h2 {
    margin: 0 0 13px;
    color: var(--navy);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 30px;
}

.calendar-month-events {
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 28px rgba(20,34,42,.06);
}

.full-calendar-event {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 28px;
    padding: 28px 32px;
    border-bottom: 1px solid #e5e9e9;
}

.full-calendar-event:last-child {
    border-bottom: 0;
}

.full-calendar-date {
    padding-right: 28px;
    border-right: 1px solid #e5e9e9;
    text-align: center;
    color: var(--navy);
}

.full-calendar-date span {
    display: block;
    color: var(--blue);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.full-calendar-date strong {
    display: block;
    margin-top: 5px;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 38px;
    line-height: 1;
}

.full-calendar-time {
    margin-bottom: 5px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 600;
}

.full-calendar-details h3 {
    margin: 0 0 6px;
    color: var(--navy);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 22px;
}

.full-calendar-location {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.full-calendar-description {
    max-width: 720px;
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.full-calendar-empty {
    background: white;
    padding: 50px;
    text-align: center;
}

.full-calendar-empty h2 {
    color: var(--navy);
    font-family: "Libre Baskerville", Georgia, serif;
}

@media (max-width: 650px) {
    .calendar-page-hero {
        padding: 60px 24px;
    }

    .full-calendar {
        padding: 55px 24px 75px;
    }

    .full-calendar-event {
        grid-template-columns: 65px 1fr;
        gap: 18px;
        padding: 24px 20px;
    }

    .full-calendar-date {
        padding-right: 18px;
    }

    .full-calendar-date strong {
        font-size: 32px;
    }
}

/* Calendar month navigation */

.calendar-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    margin-bottom: 34px;
}

.calendar-navigation h2 {
    margin: 0;
    font-family: "Libre Baskerville", serif;
    font-size: 1.75rem;
    color: var(--navy);
    text-align: center;
}

.calendar-nav-button {
    display: inline-block;
    width: fit-content;
    padding: 10px 16px;
    border: 1px solid var(--navy);
    border-radius: 5px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.calendar-nav-button:last-child {
    justify-self: end;
}

.calendar-nav-button:hover {
    background: var(--navy);
    color: white;
}

.calendar-empty {
    background: white;
    border-radius: 8px;
    padding: 42px;
    text-align: center;
}

.calendar-empty h3 {
    margin-top: 0;
    color: var(--navy);
}

@media (max-width: 650px) {
    .calendar-navigation {
        grid-template-columns: 1fr 1fr;
    }

    .calendar-navigation h2 {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .calendar-nav-button {
        grid-row: 2;
    }
}

/* Compact interior calendar header */

.calendar-page-hero {
    padding: 42px 40px;
}

.calendar-page-hero h1 {
    margin: 8px 0 12px;
    font-size: clamp(34px, 4vw, 46px);
}

.calendar-page-hero-inner > p:last-child {
    line-height: 1.55;
}

.full-calendar {
    padding-top: 42px;
}

@media (max-width: 650px) {
    .calendar-page-hero {
        padding: 36px 24px;
    }

    .full-calendar {
        padding-top: 36px;
    }
}

/* Calendar jump control */

.calendar-jump {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: -12px 0 30px;
    font-size: 14px;
}

.calendar-jump label {
    font-weight: 600;
    color: var(--navy);
}

.calendar-jump select,
.calendar-jump button {
    height: 38px;
    padding: 0 12px;
    border: 1px solid #bcc7cd;
    border-radius: 5px;
    background: white;
    color: var(--ink);
    font: inherit;
}

.calendar-jump button {
    border-color: var(--navy);
    background: var(--navy);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.calendar-jump button:hover {
    opacity: .9;
}

@media (max-width: 650px) {
    .calendar-jump {
        flex-wrap: wrap;
        margin-top: -5px;
    }
}

/* Mobile navigation */

.mobile-menu-button {
    display: none;
}

@media (max-width: 850px) {

    .site-header {
        position: relative;
    }

    .header-inner {
        min-height: 82px;
    }

    .mobile-menu-button {
        display: flex;
        width: 44px;
        height: 44px;
        padding: 10px;
        border: 0;
        background: transparent;
        cursor: pointer;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
    }

    .mobile-menu-button span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--navy);
    }

    .main-nav {
        display: none;
        position: absolute;
        z-index: 1000;
        top: 100%;
        left: 0;
        right: 0;
        padding: 12px 24px 22px;
        background: var(--paper);
        border-top: 1px solid #e7e1d7;
        border-bottom: 1px solid #e7e1d7;
        box-shadow: 0 8px 18px rgba(0,0,0,.08);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 13px 4px;
        border-bottom: 1px solid #e7e1d7;
    }

    .main-nav a:last-child {
        border-bottom: 0;
    }
}
