/* Header & Navigation */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(245, 240, 238, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(74, 0, 31, 0.12);
    transition: all 0.3s;
}

header.scrolled,
header.header-solid {
    background: rgba(240, 234, 230, 0.98);
    backdrop-filter: blur(12px);
    position: fixed;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 2rem;
    flex-wrap: wrap;
    min-height: var(--header-height);
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links li a {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-accent);
    border-radius: 2px;
}

.nav-links li a:hover,
.nav-links li a:focus-visible {
    color: var(--primary-red);
}

.join-live-btn {
    background: var(--primary-red) !important;
    padding: 0.4rem 1.2rem !important;
    border-radius: var(--radius-pill);
    font-weight: 700;
    color: white !important;
    box-shadow: 0 2px 8px rgba(217, 4, 41, 0.3);
}

.join-live-btn:hover {
    background: var(--primary-red-dark) !important;
}

.hamburger {
    display: none;
    font-size: 1.6rem;
    color: var(--nav-text);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger[aria-expanded="true"] {
    color: var(--primary-red);
}

/* Buttons */
.btn-primary {
    background: var(--primary-red);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(217, 4, 41, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-red);
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius-pill);
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.btn-outline:hover,
.btn-outline:focus-visible,
.btn-outline:active {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.btn-outline-light {
    border-color: white;
    color: white;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible,
.btn-outline-light:active {
    background: white;
    color: var(--deep-burgundy);
    border-color: white;
}

.btn-gold {
    background: var(--gold-accent);
    color: var(--deep-burgundy);
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--gold-accent);
}

.btn-gold:hover,
.btn-gold:focus-visible {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold-accent);
    color: var(--deep-burgundy);
}

.btn-gold:hover {
    background: var(--gold-light);
}

/* Hero — Home */
.hero {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
    padding: calc(var(--header-height) + 2rem) 2rem 4rem 5rem;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 4px 24px rgba(0, 0, 0, 0.7);
}

.building-a {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    letter-spacing: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.strong {
    font-weight: 800;
}

.community {
    font-weight: 800;
    color: var(--primary-red);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.5);
}

.hero-sub {
    font-size: 1rem;
    font-weight: 500;
    max-width: 550px;
    margin: 1.25rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.6);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Page Hero — Inner pages (matches home hero layout) */
.page-hero {
    min-height: 75vh;
    align-items: center;
    justify-content: flex-start;
}

.page-hero .hero-content,
.page-hero .page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
    padding: calc(var(--header-height) + 2rem) 2rem 4rem 5rem;
    width: 100%;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    color: white;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 4px 24px rgba(0, 0, 0, 0.7);
    margin: 0;
}

.page-hero h1.hero-heading--long {
    font-size: clamp(1.65rem, 4.5vw, 2.75rem);
    line-height: 1.15;
}

.page-hero p,
.page-hero .hero-sub {
    color: rgba(255, 255, 255, 0.95);
    max-width: 550px;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.6);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.breadcrumb a {
    color: var(--gold-accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Social Rail */
.social-side-left {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: rgba(74, 0, 31, 0.85);
    backdrop-filter: blur(6px);
    padding: 12px 8px;
    border-radius: var(--radius-pill);
}

.social-side-left .follow-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.social-side-left a {
    color: white;
    font-size: 1.3rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-side-left a:hover {
    color: var(--gold-accent);
}

/* Expression Cards — mobile-first grid */
.expressions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    margin-top: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 700px) {
    .expressions-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
        gap: 1.35rem;
    }
}

@media (min-width: 1024px) {
    .expressions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.expression-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.expression-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-accent);
    box-shadow: var(--shadow-lg);
}

.expression-img-wrap {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-soft);
    flex-shrink: 0;
}

.expression-img-wrap.is-logo {
    padding: 1rem;
}

.expression-img-wrap.is-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.expression-img-wrap.is-photo {
    padding: 0;
    background: var(--deep-burgundy);
}

.expression-img-wrap.is-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Zoe Life Clinic logo — keep contained like other wide logos */
.expression-img-wrap.is-logo.is-wide img {
    object-fit: contain;
    max-height: 100%;
}

.expression-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--deep-burgundy);
}

.expression-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* Branch Cards — mobile-first grid */
.branches-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    margin-top: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 700px) {
    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
        gap: 1.35rem;
    }
}

@media (min-width: 1024px) {
    .branches-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.branches-grid.center-last .branch-card:last-child:nth-child(7) {
    grid-column: auto;
}

@media (min-width: 1024px) {
    .branches-grid.center-last .branch-card:last-child:nth-child(7) {
        grid-column: 2 / 3;
    }
}

.branch-card {
    background: var(--card-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.branch-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.branch-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    object-position: center center;
}

.branch-info {
    padding: 1rem;
    text-align: center;
}

.branch-info h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--deep-burgundy);
    margin-bottom: 0.35rem;
}

.branch-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--maroon-light);
    padding: 0.25rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 500;
    color: #3a1a20;
}

.branch-location i {
    color: var(--primary-red);
    font-size: 0.65rem;
}

.branch-btn {
    background: transparent;
    border: 1.5px solid var(--primary-red);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--primary-red);
    text-decoration: none;
    display: inline-block;
    margin-top: 0.75rem;
    transition: var(--transition);
}

.branch-btn:hover {
    background: var(--primary-red);
    color: white;
}

/* Pillars */
.pillars-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.pillar {
    background: #F9F4F0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gold-accent);
    transition: var(--transition);
}

.pillar:hover {
    transform: scale(1.05);
    background: var(--card-white);
}

.pillar i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.pillar span {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--deep-burgundy);
}

.mission-quote {
    max-width: 800px;
    margin: 2rem auto 0;
    background: rgba(74, 0, 31, 0.04);
    padding: 2rem 2.5rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--gold-accent);
}

.mission-quote p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.verse {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--gold-accent);
    margin-top: 1rem;
}

/* Leadership profiles */
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 920px;
    margin: 2rem auto 0;
}

.leader-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 0;
    text-align: center;
}

.leader-photo-btn {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    padding: 0;
    border: 2px solid rgba(197, 160, 40, 0.35);
    border-radius: 50%;
    cursor: pointer;
    background: var(--deep-burgundy);
    overflow: hidden;
    position: relative;
}

.leader-photo-btn::after {
    content: 'View profile';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 0, 31, 0.72);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0;
    transition: var(--transition);
    border-radius: 50%;
}

.leader-photo-btn:hover::after,
.leader-photo-btn:focus-visible::after {
    opacity: 1;
}

.leader-photo-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.leader-photo-btn:hover img {
    transform: scale(1.05);
}

.leader-photo-btn span {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.leader-info {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.leader-info h3 {
    font-size: 1.35rem;
    color: var(--deep-burgundy);
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.leader-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 0.65rem;
}

.leader-read-more {
    background: none;
    border: none;
    padding: 0;
    color: var(--deep-burgundy);
    font-weight: 600;
    font-size: 0.82rem;
    font-family: var(--font-body);
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.leader-read-more:hover,
.leader-read-more:focus-visible {
    color: var(--gold-accent);
}

.leader-ministries {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(74, 0, 31, 0.1);
}

/* Leader profile modal */
.leader-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.leader-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.leader-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 7, 20, 0.75);
    backdrop-filter: blur(4px);
}

.leader-modal-panel {
    position: relative;
    z-index: 1;
    background: var(--card-white);
    border-radius: var(--radius-md);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.leader-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--deep-burgundy);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.leader-modal-close:hover {
    background: var(--maroon-light);
}

.leader-modal-photo {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}

.leader-modal-panel h3 {
    font-size: 1.8rem;
    color: var(--deep-burgundy);
    margin-bottom: 0.25rem;
}

.leader-modal-title {
    color: var(--gold-accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.leader-modal-bio p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.leader-modal-ministries {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(74, 0, 31, 0.1);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.leader-modal .branch-leader-social {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(74, 0, 31, 0.1);
}

.leader-title {
    color: var(--gold-accent);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.65rem;
}

.leader-body {
    padding: 1.75rem;
}

.leader-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Pastor Cards */
.pastors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.pastor-card {
    background: var(--card-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.pastor-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.pastor-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    object-position: center top;
}

.pastor-info {
    padding: 1.25rem;
}

.pastor-info h4 {
    font-size: 1.3rem;
    color: var(--deep-burgundy);
    margin-bottom: 0.25rem;
}

.pastor-role {
    color: var(--primary-red);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pastor-bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    line-height: 1.6;
    text-align: left;
}

/* Stats / Counters */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--card-white);
    padding: 2rem 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--gold-accent);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--primary-red);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--card-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--deep-burgundy);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Page CTA — reusable closing call-to-action (about page blueprint) */
.page-cta-section {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.page-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: 820px;
    margin: 0 auto;
    background: linear-gradient(125deg, var(--deep-burgundy) 0%, #5a0026 50%, var(--primary-red) 100%);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 2rem 2.25rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    border-left: 4px solid var(--gold-accent);
    box-shadow: var(--shadow-md);
}

.page-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(11, 7, 20, 0.55) 0%, rgba(74, 0, 31, 0.45) 50%, rgba(74, 0, 31, 0.35) 100%);
    z-index: 0;
    pointer-events: none;
}

.page-cta::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 55%;
    height: 140%;
    background: radial-gradient(circle, rgba(217, 4, 41, 0.28) 0%, transparent 68%);
    z-index: 0;
    pointer-events: none;
}

.page-cta-content,
.page-cta-actions {
    position: relative;
    z-index: 1;
}

.page-cta-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-accent);
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 6px rgba(11, 7, 20, 0.3);
}

.page-cta h2 {
    color: #ffffff;
    text-align: left;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 0.75rem;
    display: block;
    text-shadow: 0 1px 12px rgba(11, 7, 20, 0.35);
}

.page-cta h2::after {
    display: none;
}

.page-cta p {
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 440px;
    text-align: left;
    margin: 0;
    text-shadow: 0 1px 8px rgba(11, 7, 20, 0.25);
}

.page-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex-shrink: 0;
}

.page-cta-actions .btn-outline-light {
    padding: 0.75rem 1.4rem;
    font-size: 0.82rem;
}

@media (max-width: 768px) {
    .leaders-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 360px;
    }

    .page-cta {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.75rem 1.5rem;
    }

    .page-cta h2,
    .page-cta p {
        text-align: center;
        max-width: none;
    }

    .page-cta-actions {
        align-items: stretch;
    }
}

/* CTA Banner (legacy alias — matches page-cta) */
.cta-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(125deg, var(--deep-burgundy) 0%, #5a0026 50%, var(--primary-red) 100%);
    color: #ffffff;
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: var(--radius-md);
    margin: 3rem auto;
    border-left: 4px solid var(--gold-accent);
    max-width: 820px;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(11, 7, 20, 0.55) 0%, rgba(74, 0, 31, 0.45) 50%, rgba(74, 0, 31, 0.35) 100%);
    z-index: 0;
    pointer-events: none;
}

.cta-banner > * {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    color: #ffffff;
    display: block;
    text-shadow: 0 1px 12px rgba(11, 7, 20, 0.35);
}

.cta-banner h2::after {
    background: var(--gold-accent);
}

.cta-banner p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 8px rgba(11, 7, 20, 0.25);
}

.detail-content .page-cta h2,
.expr-detail .page-cta h2,
.detail-content .cta-banner h2 {
    color: #ffffff;
}

.detail-content .page-cta h2::after,
.expr-detail .page-cta h2::after,
.detail-content .cta-banner h2::after {
    display: none;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-card {
    background: var(--card-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.contact-info-card i {
    color: var(--primary-red);
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

.contact-info-card h3 {
    font-size: 1.3rem;
    color: var(--deep-burgundy);
    margin-bottom: 1rem;
}

.contact-form {
    background: var(--card-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: var(--nav-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(74, 0, 31, 0.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-soft);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Events Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gold-accent);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: var(--deep-burgundy);
    margin-bottom: 0.75rem;
}

/* Partner tiers */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.partner-card {
    background: var(--card-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--gold-accent);
    transition: var(--transition);
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.partner-card i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.partner-card h3 {
    font-size: 1.4rem;
    color: var(--deep-burgundy);
    margin-bottom: 0.75rem;
}

/* Detail page content */
.detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.detail-content h2 {
    display: block;
    text-align: left;
    margin-top: 2.5rem;
}

.detail-content h2::after {
    left: 0;
    transform: none;
}

.detail-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}


.program-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.program-list li {
    background: var(--card-white);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-red);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--deep-burgundy);
    color: white;
    padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 2rem;
}

.footer-brand img {
    height: 56px;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--gold-accent);
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--gold-accent);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    opacity: 0.75;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1000px) {
    .hero-content,
    .page-hero .hero-content,
    .page-hero .page-hero-content {
        padding: calc(var(--header-height) + 1.5rem) 1.5rem 3rem;
        max-width: 100%;
    }

    .expressions-grid,
    .branches-grid {
        /* mobile-first handles columns; keep spacing only */
        gap: 1.25rem;
    }

    .branches-grid.center-last .branch-card:last-child:nth-child(7) {
        grid-column: auto;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: var(--bg-soft);
        padding: 1rem;
        border-radius: var(--radius-md);
        margin-top: 0.5rem;
        align-items: stretch;
        box-shadow: var(--shadow-md);
        border: 1px solid rgba(74, 0, 31, 0.08);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: 0.75rem 0.5rem;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(74, 0, 31, 0.06);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .join-live-btn {
        text-align: center;
        width: 100%;
        margin-top: 0.35rem;
    }

    .hamburger {
        display: block;
    }

    .social-side-left {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-hero {
        min-height: 55vh;
    }
}

@media (max-width: 768px) {
    .page-cta {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem 1.15rem;
        gap: 1.25rem;
    }

    .page-cta-actions {
        width: 100%;
        align-items: stretch;
    }

    .page-cta-actions a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .leader-modal {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .leader-modal-panel {
        max-height: 88vh;
        padding: 1.35rem 1.15rem 1.5rem;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .leader-modal-photo {
        max-height: 220px;
        object-position: center 15%;
    }

    .leader-modal-panel h3 {
        font-size: 1.45rem;
        padding-right: 2rem;
        line-height: 1.25;
    }

    .contact-form,
    .contact-info-card {
        padding: 1.35rem 1.15rem;
    }

    .expression-card,
    .branch-card {
        min-width: 0;
    }

    .expression-card h3,
    .branch-card h3 {
        line-height: 1.25;
        word-break: break-word;
    }
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-content,
    .page-hero .hero-content,
    .page-hero .page-hero-content {
        padding: calc(var(--header-height) + 1.25rem) 1rem 2.5rem;
    }

    .hero-sub,
    .page-hero .hero-sub,
    .page-hero p {
        font-size: 0.92rem;
        line-height: 1.65;
        max-width: 100%;
    }

    .page-hero {
        min-height: 48vh;
    }

    .page-hero h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .breadcrumb {
        font-size: 0.78rem;
        gap: 0.35rem;
    }

    .pillar {
        width: 100px;
        height: 100px;
    }

    .pillar i {
        font-size: 1.75rem;
    }

    .pillar span {
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        text-align: left;
    }

    .navbar {
        padding: 0.55rem 0.85rem;
    }

    .logo img {
        height: 40px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons a {
        width: 100%;
        text-align: center;
    }
}
