@charset "UTF-8";
/* ==========================================================================
   Willis United Methodist Church — site styles
   Timeless, warm, responsive. Palette de-greened from the old olive template
   to a deep pine + brass + UMC-red accent on warm ivory.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
    /* Color */
    --canvas: #F7F4EC;       /* page background (warm ivory) */
    --surface: #FFFFFF;      /* cards / raised surfaces */
    --ink: #23262A;          /* body text */
    --ink-soft: #55585c;     /* secondary text */
    --pine: #294237;         /* primary brand green */
    --pine-dark: #1E2F27;    /* darker sections / headers */
    --brass: #B08A3E;        /* heritage accent */
    --brass-dark: #8f6f2f;
    --sacred: #C8442E;       /* UMC-flame red, used sparingly */
    --hairline: #E3DFD5;     /* borders / dividers */

    /* Type */
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Rhythm */
    --container: 1160px;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(30, 47, 39, .06), 0 8px 30px rgba(30, 47, 39, .08);
    --shadow-lg: 0 12px 40px rgba(30, 47, 39, .16);
    --gutter: clamp(1.1rem, 4vw, 2.5rem);
    --header-h: 76px;
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: var(--pine); text-decoration-color: rgba(41, 66, 55, .35); text-underline-offset: 3px; }
a:hover { color: var(--brass-dark); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.12;
    color: var(--pine-dark);
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1rem; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }

/* ---- Layout helpers ----------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--alt { background: var(--surface); border-block: 1px solid var(--hairline); } /* alternating band */
main > .section--alt:last-child { border-bottom: 0; } /* last band sits flush against the footer */

.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--brass-dark);
    margin: 0 0 .6rem;
}
.eyebrow--sacred { color: var(--sacred); }
.lede { font-size: 1.18rem; color: var(--ink-soft); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    padding: .85rem 1.4rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brass); color: #fff; }
.btn--primary:hover { background: var(--brass-dark); color: #fff; }
.btn--pine { background: var(--pine); color: #fff; }
.btn--pine:hover { background: var(--pine-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn--outline:hover { background: var(--pine); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 244, 236, .88);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--pine-dark); }
.brand__flame { width: 34px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--pine-dark); }
.brand__tag { font-size: .72rem; letter-spacing: .04em; color: var(--ink-soft); font-style: italic; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
    font-weight: 600;
    font-size: .98rem;
    color: var(--ink);
    text-decoration: none;
    padding: .55rem .8rem;
    border-radius: 8px;
    white-space: nowrap;
}
.nav a:hover { color: var(--pine); background: rgba(41, 66, 55, .07); }
.nav a.current { color: var(--pine-dark); }
.nav a.current { box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 22px; margin-inline: auto; background: var(--pine-dark); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 800px) {
    .nav-toggle { display: flex; }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        padding: .5rem var(--gutter) 1rem;
        box-shadow: var(--shadow);
        display: none;
    }
    .nav.open { display: flex; }
    .nav a { padding: .85rem .5rem; border-radius: 8px; font-size: 1.05rem; }
    .nav a.current { box-shadow: none; color: var(--pine); background: rgba(41, 66, 55, .07); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    color: #fff;
    background-color: var(--pine-dark);
    background-image:
        linear-gradient(180deg, rgba(20,30,25,.35) 0%, rgba(20,30,25,.55) 55%, rgba(20,30,25,.78) 100%),
        url("../images/church_ext.jpg");
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
}
.hero__inner {
    max-width: 44rem;
    padding-block: clamp(3.5rem, 11vw, 7.5rem);
}
.hero__title {
    color: #fff;
    font-size: clamp(2.3rem, 6vw, 4rem);
    margin: 0 0 .35em;
    text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.hero__tag {
    font-size: clamp(1.1rem, 2.4vw, 1.4rem);
    font-style: italic;
    font-family: var(--font-display);
    margin: 0 0 1rem;
    color: #f4efe2;
    max-width: 34rem;
}
.hero__motto {
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: .8rem;
    color: #e9dcc0;
    margin: 0 0 1.8rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ==========================================================================
   Interior page header
   ========================================================================== */
.page-header {
    background: var(--pine-dark);
    color: #fff;
    background-image: radial-gradient(1000px 300px at 15% -20%, rgba(176,138,62,.18), transparent 60%);
}
.page-header .container { padding-block: clamp(2rem, 5.5vw, 3.4rem); }
.page-header .eyebrow { color: var(--brass); }
.page-header h1 { color: #fff; font-size: clamp(2rem, 4.8vw, 3.1rem); margin: 0; }
.page-header p { color: #c9d4cb; margin: .5rem 0 0; max-width: 46rem; }
.page-header a { color: #fff; }
.page-header a:hover { color: var(--brass); }

/* ==========================================================================
   Quick-info strip
   ========================================================================== */
.quickinfo { background: var(--pine); color: #fff; }
.quickinfo__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-block: 1.4rem;
}
.quickinfo__item { display: flex; align-items: center; gap: .8rem; justify-content: center; text-align: left; }
.quickinfo__item svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--brass); stroke-width: 1.6; }
.quickinfo__label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: #b9c6bd; }
.quickinfo__value { font-weight: 600; font-family: var(--font-display); font-size: 1.05rem; }
.quickinfo__value a { color: #fff; }
@media (max-width: 720px) {
    .quickinfo__grid { grid-template-columns: 1fr; gap: 1rem; }
    .quickinfo__item { justify-content: flex-start; }
}

/* ==========================================================================
   Welcome + mission (two-column)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
@media (max-width: 820px) {
    .split { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
}

.mission {
    margin-top: 1.5rem;
    padding: 1.4rem 1.6rem;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-left: 4px solid var(--brass);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}
.mission h3 { margin-bottom: .3rem; }
.mission p { margin: 0; font-size: 1.08rem; }

/* ---- Scripture pull-quote ---------------------------------------------- */
.verse {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--pine-dark);
    border-left: 3px solid var(--brass);
    padding: .4rem 0 .4rem 1.2rem;
    margin: 0 0 1rem;
}
.verse cite { display: block; font-style: normal; font-family: var(--font-body); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-dark); margin-top: .6rem; }

/* ==========================================================================
   Media band — "Worship With Us, Anytime Anywhere"
   ========================================================================== */
.media {
    background: var(--pine-dark);
    color: #eef1ec;
    background-image: radial-gradient(1200px 400px at 50% -10%, rgba(176,138,62,.12), transparent 60%);
}
.media h2, .media .eyebrow { color: #fff; }
.media .eyebrow { color: var(--brass); }
.media .section-head p { color: #c4cfc6; }

.media__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
@media (max-width: 920px) { .media__grid { grid-template-columns: 1fr; } }

.media-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.media-card__head { display: flex; align-items: center; gap: .7rem; }
.media-card__head svg { width: 26px; height: 26px; flex: none; }
.media-card__title { font-family: var(--font-display); font-size: 1.35rem; color: #fff; margin: 0; }
.media-card__sub { margin: -.4rem 0 0; color: #b7c2b9; font-size: .95rem; }
.media-card__foot { margin-top: auto; }

/* Responsive 16:9 video */
.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Facebook page plugin wrapper */
.fb-wrap {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 8px;
    min-height: 500px;
    display: flex;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.fb-wrap .fb-page,
.fb-wrap .fb-page span,
.fb-wrap .fb-page iframe { width: 100% !important; }
.fb-fallback { color: var(--ink-soft); font-size: .95rem; text-align: center; padding: 2rem 1rem; margin: auto; }

/* ==========================================================================
   Cards (ministry, generic)
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.4rem; }
.card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card__body { padding: 1.4rem 1.5rem; }
.card__body > :last-child { margin-bottom: 0; }
.card__title {
    display: flex; align-items: center; gap: .6rem;
    font-family: var(--font-display); font-size: 1.35rem; color: var(--pine-dark);
    margin: 0 0 .9rem; padding-bottom: .7rem;
    border-bottom: 2px solid var(--hairline);
}
.card__title svg { width: 24px; height: 24px; flex: none; color: var(--brass); }
.card--accent { border-top: 4px solid var(--brass); }
.card--sacred { border-top: 4px solid var(--sacred); }
.card--narrow { max-width: 620px; margin-inline: auto; }
.card-stack { display: grid; gap: 1.4rem; align-content: start; }

/* Definition-style ministry list (replaces greenbar tables) */
.deflist { margin: 0; padding: 0; }
.deflist > div { display: grid; grid-template-columns: 210px 1fr; gap: 1rem 1.4rem; padding: .9rem 0; border-bottom: 1px solid var(--hairline); }
.deflist > div:last-child { border-bottom: 0; }
.deflist dt { font-family: var(--font-display); font-weight: 600; color: var(--pine); font-size: 1.08rem; margin: 0; }
.deflist dd { margin: 0; color: var(--ink); }
@media (max-width: 620px) { .deflist > div { grid-template-columns: 1fr; gap: .25rem; padding: .8rem 0; } }

/* Bulleted mission list */
.ticklist { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .7rem; }
.ticklist li { position: relative; padding-left: 1.9rem; }
.ticklist li::before {
    content: ""; position: absolute; left: 0; top: .45em;
    width: .7rem; height: .7rem; border-radius: 50%;
    background: var(--brass);
    box-shadow: 0 0 0 4px rgba(176,138,62,.18);
}

/* Web links list */
.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.linklist li { padding-bottom: 1rem; border-bottom: 1px solid var(--hairline); }
.linklist li:last-child { border-bottom: 0; padding-bottom: 0; }
.linklist .linklist__name { display: block; font-weight: 700; color: var(--ink); }
.linklist a { font-weight: 600; }
.linklist img { margin-top: .6rem; border-radius: 6px; }

/* ==========================================================================
   Callout / prayer / contact bands
   ========================================================================== */
.callout {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
}
.callout--sacred { border-top: 4px solid var(--sacred); }
.callout > :last-child { margin-bottom: 0; }

.contact-band { background: var(--pine); color: #fff; }
.contact-band h2 { color: #fff; }
.contact-band .section-head p { color: #c9d4cb; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 760px; margin-inline: auto; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-tile {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
}
.contact-tile svg { width: 30px; height: 30px; margin: 0 auto .7rem; fill: none; stroke: var(--brass); stroke-width: 1.6; }
.contact-tile__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: #b9c6bd; margin: 0 0 .3rem; }
.contact-tile a, .contact-tile strong { color: #fff; font-weight: 600; font-family: var(--font-display); font-size: 1.1rem; text-decoration: none; word-break: break-word; }
.contact-tile a:hover { color: var(--brass); }

/* ==========================================================================
   Responsive embeds (map, calendar)
   ========================================================================== */
.embed-frame {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--hairline);
    background: #fff;
}
.embed-frame iframe { display: block; width: 100%; border: 0; }
.embed-frame--map { aspect-ratio: 4 / 3; }
.embed-frame--map iframe { position: absolute; inset: 0; height: 100%; }
.embed-frame--calendar iframe { height: 78vh; min-height: 560px; }

.map-caption { text-align: center; font-size: .9rem; margin-top: .6rem; color: var(--ink-soft); }

/* Photo helpers */
.photo { border-radius: var(--radius); box-shadow: var(--shadow); }
.photo--portrait { max-width: 320px; }
.figure { margin: 0; }
.figure figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; text-align: center; }

.prose > :last-child { margin-bottom: 0; }
.prose h3 { margin-top: 1.6rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--pine-dark); color: #cdd6cf; padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem; }
.site-footer a { color: #e7ecdf; }
.site-footer a:hover { color: var(--brass); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.footer-brand img { width: 30px; }
.footer-brand span { font-family: var(--font-display); font-size: 1.2rem; color: #fff; }
.footer-motto { font-style: italic; color: #9fb0a3; margin: 0; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col address { font-style: normal; line-height: 1.7; }
.social { display: flex; gap: .6rem; margin-top: .3rem; }
.social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
}
.social a:hover { background: var(--brass); border-color: var(--brass); }
.social svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: #9fb0a3; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---- Motion preferences ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
