/* =============================================================
   MARK 2:22 MINISTRIES — FULL THEME STYLESHEET
   ============================================================= */


/* =============================================================
   NAVBAR
   ============================================================= */

.m222-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem 0;
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s, border-color 0.3s;
}

.dark .m222-nav {
    background: rgba(5,5,5,0.90);
}

.m222-nav.is-scrolled {
    padding: 0.5rem 0;
    background: rgba(255,255,255,0.97);
    border-color: #e6e6e6;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.dark .m222-nav.is-scrolled {
    background: rgba(5,5,5,0.97);
    border-color: rgba(255,255,255,0.08);
}

.m222-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

/* Logo */
.m222-nav__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 3.5rem;
    width: 14rem;
    position: relative;
}

.m222-nav__logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left;
}

.m222-nav__logo-light { display: block; }
.m222-nav__logo-dark  { display: none;  }
.dark .m222-nav__logo-light { display: none;  }
.dark .m222-nav__logo-dark  { display: block; }

/* Desktop nav links */
.m222-nav__links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .m222-nav__links { display: flex; }
}

.m222-nav__link {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--fg);
    transition: color 0.2s;
}

.m222-nav__link:hover,
.m222-nav__link--active {
    color: var(--primary);
}

/* Mobile controls */
.m222-nav__mobile-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .m222-nav__mobile-controls { display: none; }
}

.m222-nav__hamburger {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--fg);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.m222-nav__hamburger:hover { color: var(--primary); }


/* =============================================================
   THEME TOGGLE BUTTON
   ============================================================= */

.m222-theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--fg);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    position: relative;
}

.m222-theme-toggle:hover { color: var(--primary); }

/* Show sun in light mode, moon in dark mode */
.m222-theme-toggle__sun  { display: block; }
.m222-theme-toggle__moon { display: none;  }
.dark .m222-theme-toggle__sun  { display: none;  }
.dark .m222-theme-toggle__moon { display: block; }


/* =============================================================
   MOBILE DRAWER
   ============================================================= */

.m222-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
}

.m222-drawer.is-open {
    pointer-events: auto;
}

.m222-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.m222-drawer.is-open .m222-drawer__overlay {
    opacity: 1;
}

.m222-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 90vw;
    background: var(--bg);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.m222-drawer.is-open .m222-drawer__panel {
    transform: translateX(0);
}

.m222-drawer__close {
    align-self: flex-end;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--fg);
    margin-bottom: 2rem;
    padding: 0.25rem;
    transition: color 0.2s;
}

.m222-drawer__close:hover { color: var(--primary); }

.m222-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.m222-drawer__link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--fg);
    transition: color 0.2s;
}

.m222-drawer__link:hover { color: var(--primary); }


/* =============================================================
   BUTTONS
   ============================================================= */

.m222-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    text-decoration: none;
    line-height: 1;
    border-radius: var(--radius);
}

/* Primary (wine red) */
.m222-btn--primary {
    background: var(--primary);
    color: var(--primary-fg);
    border-color: var(--primary);
}

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

/* Primary full width */
.m222-btn--primary-full {
    width: 100%;
    background: var(--primary);
    color: var(--primary-fg);
    border-color: var(--primary);
    padding: 1rem;
}

.m222-btn--primary-full:hover {
    background: color-mix(in srgb, var(--primary), transparent 15%);
}

/* Primary with white outline (hero) */
.m222-btn--primary-outline-white {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    min-width: 15rem;
    padding: 1rem 2.5rem;
}

.m222-btn--primary-outline-white:hover {
    background: transparent;
    color: #fff;
}

/* Outline white (hero secondary) */
.m222-btn--outline-white {
    background: transparent;
    color: #fff;
    border-color: #fff;
    min-width: 15rem;
    padding: 1rem 2.5rem;
}

.m222-btn--outline-white:hover {
    background: #fff;
    color: #000;
}

/* Outline white small (sermon section) */
.m222-btn--outline-white-sm {
    background: transparent;
    color: #fff;
    border-color: #fff;
    padding: 1rem 2.5rem;
}

.m222-btn--outline-white-sm:hover {
    background: #fff;
    color: #000;
}

/* Rounded variants */
.m222-btn--primary-rounded {
    background: var(--primary);
    color: var(--primary-fg);
    border-color: var(--primary);
    border-radius: 9999px;
    padding: 0.75rem 2rem;
}

.m222-btn--primary-rounded:hover {
    background: color-mix(in srgb, var(--primary), transparent 15%);
}

.m222-btn--secondary-rounded {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
}

.m222-btn--secondary-rounded:hover {
    background: rgba(255,255,255,0.9);
}

/* Full width modifier */
.m222-btn--full { width: 100%; }

/* Disabled / loading state */
.m222-btn:disabled,
.m222-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}


/* =============================================================
   LAYOUT HELPERS
   ============================================================= */

.m222-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.m222-section--secondary {
    background: var(--secondary);
}

.m222-section--muted {
    background: var(--muted);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.m222-section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.m222-section__title {
    font-size: 2rem;
    font-weight: 700;
}

.m222-section__divider {
    width: 5rem;
    height: 3px;
    background: var(--primary);
    margin: 1.5rem auto 0;
}

.m222-text-primary { color: var(--primary); }

.m222-empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--muted-fg);
}

.m222-prose p { margin-bottom: 1rem; }
.m222-prose h2 { margin-top: 2rem; margin-bottom: 1rem; }


/* =============================================================
   PAGE HEADER (inner pages)
   ============================================================= */

.m222-page-header {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: var(--secondary);
}

.m222-page-header__inner {
    text-align: center;
}

.m222-page-header__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.m222-page-header__desc {
    font-size: 1.1rem;
    color: var(--muted-fg);
    max-width: 40rem;
    margin: 0 auto;
}


/* =============================================================
   HERO (front page)
   ============================================================= */

.m222-hero {
    position: relative;
    height: 100svh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.m222-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.m222-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.m222-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

.m222-hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
    max-width: 64rem;
    width: 100%;
    margin-top: 4rem;
}

.m222-hero__tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    opacity: 0;
}

@media (min-width: 768px) {
    .m222-hero__tagline { font-size: 1.5rem; }
}

.m222-hero__heading {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    line-height: 1;
    margin-bottom: 2.5rem;
    opacity: 0;
}

.m222-hero__br { display: inline; }
@media (min-width: 768px) { .m222-hero__br { display: none; } }

.m222-hero__ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
}

@media (min-width: 640px) {
    .m222-hero__ctas {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

.m222-hero__scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.m222-hero__scroll-line {
    width: 1px;
    height: 4rem;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5), transparent);
}


/* =============================================================
   SCRIPTURE SECTION
   ============================================================= */

.m222-scripture {
    padding: 6rem 1rem;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.m222-scripture__watermark {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.03;
    pointer-events: none;
}

.m222-scripture__inner {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 52rem;
}

.m222-scripture__quote {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 3vw, 2rem);
    line-height: 1.7;
    color: var(--fg);
    margin-bottom: 2rem;
}

.m222-scripture__emphasis {
    color: var(--primary);
    font-style: italic;
    font-weight: 700;
}

.m222-scripture__cite {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted-fg);
    font-style: normal;
}


/* =============================================================
   MINISTRY CARDS (front page 3-column grid)
   ============================================================= */

.m222-ministry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .m222-ministry-grid { grid-template-columns: repeat(3, 1fr); }
}

.m222-ministry-card {
    background: var(--card);
    padding: 2.5rem;
    border-top: 4px solid transparent;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.m222-ministry-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-top-color: var(--primary);
}

.dark .m222-ministry-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.m222-ministry-card__icon-wrap {
    width: 4rem;
    height: 4rem;
    background: var(--fg);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: background 0.3s;
}

.m222-ministry-card:hover .m222-ministry-card__icon-wrap {
    background: var(--primary);
}

.m222-ministry-card__icon { width: 2rem; height: 2rem; }

.m222-ministry-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
}

.m222-ministry-card__desc {
    color: var(--muted-fg);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.m222-ministry-card__link {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.25rem;
    transition: color 0.2s, border-color 0.2s;
}

.m222-ministry-card__link:hover {
    color: var(--fg);
    border-color: var(--fg);
}


/* =============================================================
   SERMON SECTION (front page)
   ============================================================= */

.m222-sermon {
    display: grid;
    grid-template-columns: 1fr;
    background: #0d0d0d;
    color: #fff;
}

@media (min-width: 768px) {
    .m222-sermon { grid-template-columns: 1fr 1fr; }
}

.m222-sermon__media {
    position: relative;
    height: 24rem;
    min-height: 24rem;
}

@media (min-width: 768px) {
    .m222-sermon__media { height: auto; min-height: 31rem; }
}

.m222-sermon__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.m222-sermon__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 6rem;
    height: 6rem;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
    color: #fff;
    text-decoration: none;
}

.m222-sermon__play:hover { transform: scale(1.1); }

.m222-sermon__play-icon { width: 2rem; height: 2rem; margin-left: 0.25rem; }

.m222-sermon__content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .m222-sermon__content { padding: 5rem 6rem; }
}

.m222-sermon__label {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.dark .m222-sermon__label { color: #cc4444; }

.m222-sermon__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
}

.dark .m222-sermon__title { color: #fff; }

.m222-sermon__desc {
    color: #a6a6a6;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}


/* =============================================================
   MINISTRIES PAGE — ALTERNATING ROWS
   ============================================================= */

.m222-ministry-list {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.m222-ministry-row {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .m222-ministry-row {
        flex-direction: row;
    }

    .m222-ministry-row--reverse {
        flex-direction: row-reverse;
    }
}

.m222-ministry-row__image-wrap {
    flex: 1;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--muted);
}

.m222-ministry-row__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m222-ministry-row__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-fg);
}

.m222-ministry-row__placeholder-icon { width: 4rem; height: 4rem; opacity: 0.2; }

.m222-ministry-row__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.m222-ministry-row__icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(102,0,0,0.08);
    color: var(--primary);
    border-radius: 0.75rem;
    width: fit-content;
}

.dark .m222-ministry-row__icon-badge { background: rgba(128,0,0,0.15); }

.m222-ministry-row__title {
    font-size: 1.8rem;
    font-weight: 700;
}

.m222-ministry-row__desc {
    font-size: 1.05rem;
    color: var(--muted-fg);
    line-height: 1.8;
}

.m222-ministry-row__desc p { margin-bottom: 0.75rem; }


/* =============================================================
   CTA BAND (ministries page bottom)
   ============================================================= */

.m222-cta-band {
    background: var(--primary);
    color: var(--primary-fg);
    padding: 5rem 1rem;
    text-align: center;
}

.m222-cta-band__inner {
    max-width: 48rem;
    margin: 0 auto;
}

.m222-cta-band__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: inherit;
}

.m222-cta-band__desc {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 36rem;
    margin: 0 auto 2rem;
    line-height: 1.7;
}


/* =============================================================
   EVENTS PAGE
   ============================================================= */

.m222-event-list {
    display: grid;
    gap: 1.5rem;
}

.m222-event-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: border-color 0.2s;
}

.m222-event-card:hover { border-color: rgba(102,0,0,0.4); }

@media (min-width: 768px) {
    .m222-event-card {
        flex-direction: row;
        gap: 2.5rem;
        padding: 2rem;
    }
}

.m222-event-card__date {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 6rem;
    background: var(--muted);
    border-radius: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .m222-event-card__date { width: 6rem; }
}

.m222-event-card__date-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-fg);
}

.m222-event-card__date-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.25rem;
}

.m222-event-card__content { flex-grow: 1; }

.m222-event-card__top { margin-bottom: 0.5rem; }

.m222-event-card__category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.m222-event-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.m222-event-card:hover .m222-event-card__title { color: var(--primary); }

.m222-event-card__desc {
    color: var(--muted-fg);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.m222-event-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .m222-event-card__meta { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
}

.m222-event-card__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted-fg);
}

.m222-event-card__meta-icon { flex-shrink: 0; }

.m222-event-card__meta-item--rsvp {
    color: var(--primary);
    font-weight: 600;
}

/* Month group headers on the events page */
.m222-month-group {
    margin-bottom: 3rem;
}

.m222-month-group__header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.m222-month-group__title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    white-space: nowrap;
}

.m222-month-group__divider {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.m222-month-group__count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-fg);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}


/* =============================================================
   SERVICE TIMES PAGE
   ============================================================= */

.m222-service-hero {
    position: relative;
    padding: 8rem 1rem 5rem;
    overflow: hidden;
}

.m222-service-hero__bg-accent {
    position: absolute;
    inset: 0;
    background: rgba(102,0,0,0.03);
    z-index: -1;
}

.dark .m222-service-hero__bg-accent { background: rgba(102,0,0,0.06); }

.m222-service-hero__glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 33%;
    height: 100%;
    background: linear-gradient(to left, rgba(102,0,0,0.08), transparent);
    filter: blur(48px);
    z-index: -1;
}

.m222-service-hero__inner {
    text-align: center;
    max-width: 56rem;
}

.m222-service-hero__title {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.m222-service-hero__desc {
    font-size: 1.1rem;
    color: var(--muted-fg);
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* Service schedule grid */
.m222-service-schedule-wrap {
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.m222-service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .m222-service-grid { grid-template-columns: repeat(2, 1fr); }
}

.m222-service-card {
    position: relative;
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(0,0,0,0.08);
    padding: 2rem 3rem;
    transition: border-color 0.3s;
}

.dark .m222-service-card { border-color: var(--border); }

.m222-service-card:hover { border-color: rgba(102,0,0,0.4); }

.m222-service-card__bg-icon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
    opacity: 0.08;
    transition: opacity 0.3s;
}

.m222-service-card__bg-icon svg { width: 6rem; height: 6rem; }

.m222-service-card:hover .m222-service-card__bg-icon { opacity: 0.15; }

.m222-service-card__day {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.m222-service-card__name {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.m222-service-card__time {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.m222-service-card__time-icon { color: var(--primary); }

.m222-service-card__desc {
    color: var(--muted-fg);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.m222-service-card__badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.m222-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
    background: rgba(102,0,0,0.08);
    color: var(--primary);
}

.dark .m222-badge { background: rgba(128,0,0,0.2); }

/* Location Section */
.m222-location {}

.m222-location__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .m222-location__grid { grid-template-columns: 1fr 1fr; }
}

.m222-location__heading {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
}

.m222-location__details { display: flex; flex-direction: column; gap: 2rem; }

.m222-location__detail-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.m222-location__icon {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
}

.m222-location__detail-label {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0;
}

.m222-location__detail-text {
    color: var(--muted-fg);
    line-height: 1.7;
}

.m222-link-arrow {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    transition: opacity 0.2s;
}

.m222-link-arrow:hover { opacity: 0.75; }

.m222-location__map-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--muted);
    border: 1px solid var(--border);
    overflow: hidden;
    filter: grayscale(1);
    transition: filter 0.5s;
}

.m222-location__map-wrap:hover { filter: grayscale(0); }

.m222-location__map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.m222-location__map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    color: var(--muted-fg);
    font-size: 0.9rem;
}

/* What to Expect */
.m222-what-to-expect {}

.m222-what-to-expect__inner {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.m222-what-to-expect__heading {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
}

.m222-expect-list { display: flex; flex-direction: column; gap: 3rem; }

.m222-expect-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

@media (min-width: 768px) {
    .m222-expect-item { flex-direction: row; }
}

.m222-expect-item__icon-wrap {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(102,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.dark .m222-expect-item__icon-wrap { background: rgba(128,0,0,0.15); }

.m222-expect-item__icon { width: 2rem; height: 2rem; }

.m222-expect-item__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0;
}

.m222-expect-item__desc { color: var(--muted-fg); line-height: 1.7; }


/* =============================================================
   CONTACT PAGE
   ============================================================= */

.m222-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .m222-contact-grid { grid-template-columns: 1fr 1fr; }
}

.m222-contact-form-wrap__heading,
.m222-contact-info__heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

/* Form elements */
.m222-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .m222-form-row { grid-template-columns: 1fr 1fr; }
}

.m222-form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }

.m222-form-row .m222-form-group { margin-bottom: 0; }

.m222-form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fg);
}

.m222-form-label span { color: var(--primary); }

.m222-form-input,
.m222-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--input);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s;
}

.m222-form-input:focus,
.m222-form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(102,0,0,0.12);
}

.m222-form-textarea {
    resize: vertical;
    min-height: 150px;
}

.m222-form-status {
    padding: 0;
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all 0.2s;
}

.m222-form-status:not(:empty) { margin-bottom: 1rem; padding: 0.75rem 1rem; }

.m222-form-status.is-success {
    background: rgba(0,128,0,0.08);
    color: #065f46;
    border-left: 3px solid #065f46;
}

.dark .m222-form-status.is-success { color: #6ee7b7; background: rgba(0,128,0,0.12); }

.m222-form-status.is-error {
    background: rgba(102,0,0,0.06);
    color: #991b1b;
    border-left: 3px solid var(--primary);
}

.dark .m222-form-status.is-error { color: #fca5a5; }

/* Submit spinner */
.m222-form-submit-spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.m222-form-submit-text { display: block; }

#m222-form-submit.is-loading .m222-form-submit-text { display: none; }
#m222-form-submit.is-loading .m222-form-submit-spinner { display: block; }

/* Contact info */
.m222-contact-info__list { display: flex; flex-direction: column; gap: 2rem; }

.m222-contact-info__item { display: flex; align-items: flex-start; gap: 1rem; }

.m222-contact-info__icon {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
}

.m222-contact-info__label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
}

.m222-contact-info__value {
    color: var(--muted-fg);
    line-height: 1.6;
}

.m222-contact-info__value a {
    color: var(--muted-fg);
    transition: color 0.2s;
}

.m222-contact-info__value a:hover { color: var(--primary); }


/* =============================================================
   FOOTER
   ============================================================= */

.m222-footer {
    background: #000;
    color: #fff;
    padding-top: 6rem;
    padding-bottom: 3rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.m222-footer__inner {}

.m222-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .m222-footer__grid { grid-template-columns: repeat(4, 1fr); }
}

/* Brand column */
.m222-footer__brand {}

.m222-footer__logo-link {
    display: inline-block;
    margin-bottom: 2rem;
    opacity: 1;
    transition: opacity 0.2s;
}

.m222-footer__logo-link:hover { opacity: 0.8; }

.m222-footer__logo { width: 8rem; height: 8rem; object-fit: contain; object-position: left; }

.m222-footer__tagline { color: #6b6b6b; font-size: 0.85rem; line-height: 1.7; max-width: 18rem; }

/* Link columns */
.m222-footer__col {}

.m222-footer__col-heading {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.m222-footer__list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }

.m222-footer__list a {
    font-size: 0.85rem;
    color: #9a9a9a;
    transition: color 0.2s;
}

.m222-footer__list a:hover { color: #fff; }

/* Visit us / Contact column */
.m222-footer__contact { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.m222-footer__address { color: #9a9a9a; font-size: 0.85rem; line-height: 1.7; font-style: normal; }

.m222-footer__contact-row { display: flex; align-items: center; gap: 0.75rem; color: #9a9a9a; font-size: 0.85rem; }

.m222-footer__contact-icon { color: var(--primary); flex-shrink: 0; width: 1rem; height: 1rem; }

/* Social icons */
.m222-footer__social { display: flex; gap: 0.75rem; }

.m222-footer__social-link {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s, border-color 0.2s;
}

.m222-footer__social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Bottom bar */
.m222-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .m222-footer__bottom { flex-direction: row; justify-content: space-between; }
}

.m222-footer__copy { color: #4a4a4a; font-size: 0.75rem; }

.m222-footer__legal { display: flex; gap: 1.5rem; }

.m222-footer__legal a { color: #4a4a4a; font-size: 0.75rem; transition: color 0.2s; }

.m222-footer__legal a:hover { color: #fff; }


/* =============================================================
   RESPONSIVE NAV LOGO SIZING
   ============================================================= */

@media (min-width: 768px) {
    .m222-nav__logo { height: 4rem; width: 16rem; }
}


/* =============================================================
   SERMONS PAGE
   ============================================================= */

/* Series group container */
.m222-series-group {
    margin-bottom: 4rem;
}

.m222-series-group:last-child {
    margin-bottom: 0;
}

/* Series header */
.m222-series-group__header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.m222-series-group__label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.25rem;
}

.m222-series-group__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg);
    margin: 0;
    line-height: 1.2;
}

.m222-series-group__divider {
    flex: 1;
    height: 1px;
    background: var(--border);
    min-width: 2rem;
}

.m222-series-group__count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted-fg);
    white-space: nowrap;
    background: var(--secondary);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}

/* Sermon grid */
.m222-sermon-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .m222-sermon-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .m222-sermon-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Sermon card */
.m222-sermon-card {
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

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

.dark .m222-sermon-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* Thumbnail area */
.m222-sermon-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--secondary);
}

.m222-sermon-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.m222-sermon-card:hover .m222-sermon-card__thumb img {
    transform: scale(1.04);
}

.m222-sermon-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
}

.m222-sermon-card__thumb-icon {
    width: 3rem;
    height: 3rem;
    color: var(--muted-fg);
    opacity: 0.5;
}

/* Play overlay */
.m222-sermon-card__play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    transition: background 0.2s;
    text-decoration: none;
}

.m222-sermon-card__play-overlay:hover {
    background: rgba(0,0,0,0.4);
}

.m222-sermon-card__play-btn {
    width: 3rem;
    height: 3rem;
    color: #fff;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s, transform 0.2s;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.m222-sermon-card:hover .m222-sermon-card__play-btn {
    opacity: 1;
    transform: scale(1);
}

/* Card info */
.m222-sermon-card__info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.m222-sermon-card__date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.m222-sermon-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fg);
    margin: 0;
    line-height: 1.3;
}

.m222-sermon-card__preacher {
    font-size: 0.85rem;
    color: var(--muted-fg);
    margin: 0;
}

/* Watch link */
.m222-sermon-card__watch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.m222-sermon-card__watch:hover {
    color: var(--fg);
}

.m222-sermon-card__watch-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}


/* =============================================================
   SINGLE EVENT DETAIL PAGE
   ============================================================= */

/* Breadcrumb */
.m222-breadcrumb {
    font-size: 0.85rem;
}

.m222-breadcrumb__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted-fg);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s;
}

.m222-breadcrumb__link:hover {
    color: var(--primary);
}

/* Event detail layout */
.m222-event-detail {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .m222-event-detail {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }
}

/* Date block — large calendar tile */
.m222-event-detail__date-block {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 7rem;
    height: 7rem;
    background: var(--primary);
    border-radius: 0.75rem;
    text-align: center;
    gap: 0.1rem;
}

.m222-event-detail__month {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.75);
}

.m222-event-detail__day {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

/* Header info column */
.m222-event-detail__header {
    flex: 1;
    min-width: 0;
}

.m222-event-detail__category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.m222-event-detail__title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--fg);
    margin: 0 0 1rem;
}

/* Badges row */
.m222-event-detail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.m222-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.m222-badge--recurring {
    background: rgba(102,0,0,0.10);
    color: var(--primary);
    border: 1px solid rgba(102,0,0,0.25);
}

.dark .m222-badge--recurring {
    background: rgba(128,0,0,0.20);
    border-color: rgba(128,0,0,0.40);
}

.m222-badge--rsvp {
    background: rgba(0,102,51,0.10);
    color: #005c2b;
    border: 1px solid rgba(0,102,51,0.25);
}

.dark .m222-badge--rsvp {
    background: rgba(0,102,51,0.20);
    color: #4caf82;
    border-color: rgba(0,102,51,0.40);
}

/* Meta items (date / time / location / capacity) */
.m222-event-detail__meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.m222-event-detail__meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--muted-fg);
}

.m222-event-detail__meta-icon {
    flex-shrink: 0;
    color: var(--primary);
}

/* Calendar buttons */
.m222-event-detail__cal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Event body (post_content) */
.m222-event-detail__body {
    max-width: 74ch;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--fg);
}

.m222-event-detail__body h2,
.m222-event-detail__body h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--fg);
}

.m222-event-detail__body p { margin-bottom: 1.25rem; }
.m222-event-detail__body ul,
.m222-event-detail__body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.m222-event-detail__body li { margin-bottom: 0.4rem; }
.m222-event-detail__body a {
    color: var(--primary);
    text-decoration: underline;
}
