/* ========================================
   TWELVE CHURCH — Redesign v2
   Overlapping, editorial, scroll-driven
   ======================================== */

:root {
    --tc-black: #000000;
    --tc-white: #FFFFFF;
    --tc-yellow: #FFEE00;
    --tc-olive: #635E4C;
    --tc-teal: #3F575E;
    --tc-gray: #f5f5f5;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    color: var(--tc-black);
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; }

::selection { background: var(--tc-yellow); color: var(--tc-black); }

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

/* --- Shared label --- */
.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--tc-yellow);
    margin-bottom: 1rem;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar-tc {
    padding: 1.25rem 0;
    transition: background-color 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.navbar-tc.scrolled {
    background: rgba(0,0,0,0.92) !important;
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
}

.nav-logo { height: 140px; transition: height 0.4s var(--ease); }
.navbar-tc.scrolled .nav-logo { height: 100px; }

.navbar-tc .nav-link {
    color: var(--tc-white);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.5rem 0.85rem;
    position: relative;
    transition: color 0.3s;
}

.navbar-tc .nav-link::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--tc-yellow);
    transition: width 0.4s var(--ease);
}

.navbar-tc .nav-link:hover { color: var(--tc-yellow); }
.navbar-tc .nav-link:hover::after { width: calc(100% - 1.7rem); }
.navbar-tc .dropdown-toggle:hover::after { width: auto; }

/* Dropdown — dark theme to match navbar */
.navbar-tc .dropdown-toggle::after {
    position: static;
    width: auto;
    height: auto;
    background: none;
}
.navbar-tc .dropdown-menu {
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.25rem 0;
    min-width: 10rem;
}
.navbar-tc .dropdown-item {
    color: var(--tc-white);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
}
.navbar-tc .dropdown-item:hover,
.navbar-tc .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.1);
    color: var(--tc-yellow);
}

.btn-cta-nav {
    color: var(--tc-white) !important;
    border: 2px solid rgba(255,255,255,0.6);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.45rem 1.4rem;
    border-radius: 0;
    transition: all 0.3s var(--ease);
    text-decoration: none;
}

.btn-cta-nav:hover {
    background: var(--tc-yellow);
    border-color: var(--tc-yellow);
    color: var(--tc-black) !important;
}

/* Toggler icon — white lines on transparent/dark bg */
.navbar-tc .navbar-toggler { padding: 0.25rem 0.5rem; }
.navbar-tc .navbar-toggler:focus { box-shadow: none; }
.navbar-tc .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile collapse nav */
@media (max-width: 991.98px) {
    .navbar-tc .navbar-collapse {
        background: rgba(0,0,0,0.95);
        padding: 1rem 1.5rem;
        margin: 0.5rem -1rem 0;
        backdrop-filter: blur(10px);
    }
    .navbar-tc .navbar-collapse .nav-link {
        font-size: 1rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .navbar-tc .navbar-collapse .btn-cta-nav {
        display: inline-block;
        margin-top: 1rem;
    }
}

/* ===========================
   HERO
   =========================== */
.hero {
    position: relative;
    height: 75vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: visible;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/mountains.jpg') center / cover no-repeat;
    z-index: -2;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(170deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.25) 55%, rgba(63,87,94,0.45) 100%);
    z-index: -1;
}

.hero-content {
    padding: 0 6%;
    padding-top: 5rem; /* offset for fixed nav */
    max-width: 750px;
}

.hero-title {
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 900;
    color: var(--tc-white);
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 0.95;
    margin: 0 0 0.75rem;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--tc-yellow);
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: 300;
    margin: 0 0 1.5rem;
}

.hero-accent {
    width: 60px;
    height: 3px;
    background: var(--tc-yellow);
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
    margin: 0;
}

.hero-location {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 0.4rem;
}

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-cue-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%,100% { opacity: 0.2; transform: scaleY(0.4); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Service card: floats over hero bottom edge --- */
/* Service card wrapper — pulls card up to overlap hero on desktop */
.service-card-wrap {
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    padding: 0 6%;
    margin-top: -4rem;
    pointer-events: none;
}

.service-card {
    background: var(--tc-white);
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    border-left: 4px solid var(--tc-yellow);
    pointer-events: auto;
}

.service-card-inner {
    display: flex;
    padding: 1.75rem 2.5rem;
    gap: 2rem;
    align-items: center;
}

.service-item { text-align: center; }

.service-day {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--tc-olive);
}

.service-time {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--tc-black);
    line-height: 1.3;
}

.service-type {
    display: block;
    font-size: 0.75rem;
    color: var(--tc-olive);
}

.service-divider {
    width: 1px;
    height: 50px;
    background: #e0e0e0;
}

/* ===========================
   ABOUT — Overlapping layout
   =========================== */
.about-section {
    padding: 5rem 0 6rem;
    overflow: visible;
    background: var(--tc-white);
    position: relative;
    z-index: 2;
}

/* Subtle parallax-like scroll depth on about elements */
.about-image {
    transition: transform 0.1s linear;
    will-change: transform;
}

.about-text {
    transition: transform 0.1s linear;
    will-change: transform;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
    align-items: start;
}

.about-image {
    position: relative;
    z-index: 2;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.about-text {
    padding: 4rem 3rem 4rem 5rem;
    align-self: center;
}

.about-text .section-label {
    color: var(--tc-teal);
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--tc-olive);
    margin-bottom: 1.25rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--tc-black);
    text-decoration: none;
    border-bottom: 2px solid var(--tc-teal);
    padding-bottom: 3px;
    transition: gap 0.3s, color 0.3s;
}

.link-arrow:hover { gap: 1rem; color: var(--tc-teal); }

/* Floating badge */
.about-badge {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tc-black);
    color: var(--tc-white);
    padding: 1.5rem 2.5rem;
    text-align: center;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--tc-yellow);
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* ===========================
   VISION — Floating panel
   =========================== */
.vision-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 6rem;
    overflow: hidden;
}

.vision-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.vision-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: -1;
}

.vision-panel {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    max-width: 600px;
    padding: 3.5rem;
    position: relative;
}

.vision-panel blockquote {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 300;
    font-style: italic;
    color: var(--tc-white);
    line-height: 1.85;
    margin: 0 0 1.5rem;
    border: none;
    padding: 0;
}

.vision-panel cite {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--tc-yellow);
    font-style: normal;
}

.vision-accent {
    width: 50px;
    height: 3px;
    background: var(--tc-yellow);
    margin-top: 1.5rem;
}

/* ===========================
   MOSAIC — Asymmetric tiles
   =========================== */
.mosaic-section {
    padding: 7rem 0;
    background: var(--tc-gray);
    position: relative;
    z-index: 2;
}

.mosaic-header {
    text-align: center;
    margin-bottom: 3rem;
}

.mosaic-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0;
}

.mosaic-header .section-label {
    color: var(--tc-teal);
}

.mosaic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
    max-width: 1140px;
    margin: 0 auto;
}

/* Tall left card spans 2 rows */
.tile-sermons {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    min-height: 480px;
}

/* Right stack: two tiles stacked */
.mosaic-stack {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Bottom row spans full width, 3 equal tiles */
.tile-events {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.tile-give {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* We need a 3rd column in bottom row, restructure */
.mosaic-grid {
    grid-template-columns: 5fr 3fr 4fr;
    grid-template-rows: auto auto;
}

.tile-sermons {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    min-height: 560px;
}

.mosaic-stack {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
}

.tile-events {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.tile-give {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.tile-connect {
    display: none; /* Moved connect to footer section */
}

/* Tile base */
.mosaic-tile {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    text-decoration: none;
    color: var(--tc-white);
    background-size: cover;
    background-position: center;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.mosaic-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    color: var(--tc-white);
}

.tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 55%, transparent);
    transition: background 0.4s;
}

.mosaic-tile:hover .tile-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.1) 100%);
}

.tile-content { position: relative; z-index: 2; }

.tile-label {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--tc-yellow);
    margin-bottom: 0.4rem;
}

.tile-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    line-height: 1.2;
}

.tile-content p {
    font-size: 0.85rem;
    opacity: 0.75;
    margin: 0;
}

.tile-arrow {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

.mosaic-tile:hover .tile-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Solid background tiles */
.tile-events {
    background: var(--tc-teal);
    min-height: 250px;
}

.tile-give {
    background: var(--tc-black);
    min-height: 250px;
}

.tile-connect {
    background: var(--tc-white);
    color: var(--tc-black);
    border-left: 4px solid var(--tc-yellow);
}

.tile-connect .tile-label { color: var(--tc-teal); }
.tile-connect:hover { color: var(--tc-black); }

.tile-icon {
    font-size: 2rem;
    color: var(--tc-yellow);
    margin-bottom: 0.5rem;
    display: block;
}

.tile-event-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.tile-event-list li {
    padding: 0.4rem 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.85rem;
}

.tile-event-list strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--tc-yellow);
}

/* ===========================
   VISIT — Overlap layout
   =========================== */
.visit-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 600px;
    padding: 6rem 0;
    overflow: visible;
}

.visit-image-wrap {
    position: absolute;
    left: 0;
    top: 0;
    width: 55%;
    height: 100%;
    overflow: hidden;
}

.visit-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visit-card {
    position: relative;
    margin-left: auto;
    margin-right: 6%;
    width: 45%;
    max-width: 520px;
    background: var(--tc-black);
    color: var(--tc-white);
    padding: 3.5rem;
    z-index: 2;
    box-shadow: -20px 20px 60px rgba(0,0,0,0.2);
}

.visit-card h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.visit-card p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.visit-address {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.95rem;
    line-height: 1.6;
}

.visit-address i { color: var(--tc-teal); font-size: 1.1rem; margin-top: 0.15rem; }

.visit-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-tc {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-tc-outline {
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--tc-white);
    background: transparent;
}

.btn-tc-outline:hover {
    border-color: var(--tc-white);
    background: var(--tc-white);
    color: var(--tc-black);
}

.btn-tc-solid {
    background: var(--tc-yellow);
    border: 2px solid var(--tc-yellow);
    color: var(--tc-black);
}

.btn-tc-solid:hover {
    background: var(--tc-white);
    border-color: var(--tc-white);
}

/* ===========================
   CONNECT / NEWSLETTER
   =========================== */
.connect-section {
    background: var(--tc-teal);
    padding: 5rem 2rem;
}

.connect-inner {
    max-width: 550px;
    margin: 0 auto;
    text-align: center;
}

.connect-inner h2 {
    color: var(--tc-white);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.connect-inner > p {
    color: rgba(255,255,255,0.65);
    margin-bottom: 2rem;
}

.connect-form {
    margin-bottom: 2rem;
}

.connect-form .form-control {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    color: var(--tc-white);
    padding: 0.8rem 1.25rem;
    border-radius: 0;
    font-family: var(--font-body);
}

.connect-form .form-control::placeholder { color: rgba(255,255,255,0.35); }
.connect-form .form-control:focus {
    border-color: var(--tc-yellow);
    box-shadow: none;
    background: rgba(255,255,255,0.12);
}

.btn-subscribe {
    background: var(--tc-yellow);
    color: var(--tc-black);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.8rem 1.75rem;
    border: 2px solid var(--tc-yellow);
    border-radius: 0;
    transition: all 0.3s var(--ease);
}

.btn-subscribe:hover {
    background: var(--tc-white);
    border-color: var(--tc-white);
    color: var(--tc-black);
}

.connect-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: var(--tc-white);
    font-size: 1.1rem;
    margin: 0 0.4rem;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

.connect-social a:hover {
    background: var(--tc-yellow);
    border-color: var(--tc-yellow);
    color: var(--tc-black);
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background: var(--tc-black);
    color: var(--tc-white);
    padding: 4rem 0 0;
    border-top: 3px solid var(--tc-yellow);
}

.footer-logo { height: 80px; }

.footer-tagline {
    color: var(--tc-yellow);
    letter-spacing: 4px;
    text-transform: lowercase;
    font-weight: 300;
    font-size: 0.95rem;
}

.footer-address {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.8;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--tc-yellow); }

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: var(--tc-white);
    font-size: 0.95rem;
    margin-right: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--tc-yellow);
    border-color: var(--tc-yellow);
    color: var(--tc-black);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p { margin: 0; font-size: 0.78rem; color: var(--tc-olive); }

/* ===========================
   PAGE HEADER (inner pages)
   =========================== */
.page-header {
    position: relative;
    height: 28vh;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding: 2rem 2rem;
    margin-top: -1px; /* prevent gap under fixed nav */
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.5) 100%);
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 0;
}

.page-header-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--tc-white);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0.5rem 0 0;
    line-height: 1.1;
}

/* ===========================
   INNER PAGE CONTENT
   =========================== */
.inner-content-section {
    padding: 5rem 2rem;
    background: var(--tc-white);
}

.inner-content-section h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.lead-text {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--tc-olive);
}

.content-card {
    background: var(--tc-gray);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--tc-yellow);
}

.content-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.content-card p {
    color: var(--tc-olive);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.content-card p:last-child { margin-bottom: 0; }

.event-list-scroll {
    max-height: 600px;
    overflow-y: auto;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-left: 4px solid var(--tc-yellow);
}

.event-list-scroll .content-card {
    border-left: none;
}

.event-list-scroll::-webkit-scrollbar {
    width: 6px;
}

.event-list-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.event-list-scroll::-webkit-scrollbar-thumb {
    background: var(--tc-teal);
    border-radius: 3px;
}

.content-card[id^="event-"] {
    scroll-margin-top: 120px;
}

#upcoming-events,
#church-calendar-card {
    scroll-margin-top: 120px;
}

.event-card-split {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.event-card-split .event-card-text {
    flex: 1;
    min-width: 0;
}

.event-card-split .event-card-img {
    flex: 0 0 40%;
    max-width: 40%;
}

.event-card-split .event-card-img img {
    width: 100%;
    border-radius: 4px;
    object-fit: cover;
}

@media (max-width: 767px) {
    .event-card-split {
        flex-direction: column;
    }
    .event-card-split .event-card-img {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
}

/* ===========================
   FULLCALENDAR OVERRIDES
   =========================== */
#church-calendar {
    margin-top: 1.5rem;
}

/* Toolbar title */
.fc .fc-toolbar-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tc-black);
}

/* Toolbar buttons */
.fc .fc-button-primary {
    background-color: var(--tc-teal);
    border-color: var(--tc-teal);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fc .fc-button-primary:hover {
    background-color: var(--tc-olive);
    border-color: var(--tc-olive);
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background-color: var(--tc-black);
    border-color: var(--tc-black);
}

.fc .fc-button-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(63, 87, 94, 0.4);
}

/* Column headers (Sun, Mon, etc.) */
.fc .fc-col-header-cell {
    background-color: var(--tc-teal);
    border-color: rgba(63, 87, 94, 0.3);
}

.fc .fc-col-header-cell-cushion {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.5rem 0;
}

/* Day numbers — clickable nav links */
.fc .fc-daygrid-day-number {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--tc-black);
    padding: 6px 8px;
    text-decoration: none;
}

.fc .fc-daygrid-day-number:hover {
    color: var(--tc-teal);
}

/* Today highlight */
.fc .fc-day-today {
    background-color: rgba(255, 238, 0, 0.1) !important;
}

.fc .fc-day-today .fc-daygrid-day-number {
    color: var(--tc-teal);
    font-weight: 700;
}

/* Event pills */
.fc .fc-event {
    border: none;
    border-radius: 4px;
    padding: 3px 6px;
    margin-bottom: 2px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    line-height: 1.3;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc .fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Event time — de-emphasize so title stands out */
.fc .fc-event-time {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.85;
    margin-right: 3px;
}

.fc .fc-event-title {
    font-weight: 600;
}

/* Multi-day event bars */
.fc .fc-daygrid-event {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* "+more" link */
.fc .fc-daygrid-more-link {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--tc-teal);
    text-decoration: none;
}

.fc .fc-daygrid-more-link:hover {
    color: var(--tc-olive);
    text-decoration: underline;
}

/* Day view & week view — roomier events */
.fc .fc-dayGridWeek-view .fc-event,
.fc .fc-dayGridDay-view .fc-event {
    padding: 4px 8px;
    font-size: 0.85rem;
    border-radius: 5px;
}

.fc .fc-dayGridWeek-view .fc-event-time,
.fc .fc-dayGridDay-view .fc-event-time {
    font-size: 0.75rem;
}

/* List view */
.fc .fc-list-day-cushion {
    background-color: var(--tc-teal);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.fc .fc-list-day-cushion a {
    color: #fff;
    text-decoration: none;
}

.fc .fc-list-event {
    cursor: pointer;
}

.fc .fc-list-event:hover td {
    background-color: rgba(63, 87, 94, 0.06);
}

.fc .fc-list-event-title a {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--tc-black);
    text-decoration: none;
}

.fc .fc-list-event-time {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--tc-olive);
    white-space: nowrap;
}

.fc .fc-list-event-dot {
    border-color: var(--tc-teal);
}

/* Grid lines */
.fc td, .fc th {
    border-color: #e8e8e8;
}

/* Event highlight animation */
@keyframes eventHighlight {
    0%   { box-shadow: 0 0 0 0 rgba(255, 238, 0, 0.6); }
    50%  { box-shadow: 0 0 0 6px rgba(255, 238, 0, 0.3); }
    100% { box-shadow: 0 0 0 0 rgba(255, 238, 0, 0); }
}

.event-highlight {
    animation: eventHighlight 2s ease-out;
}

/* ---- Responsive: tablet (991px) ---- */
@media (max-width: 991px) {
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }

    .fc .fc-toolbar-title {
        font-size: 1.1rem;
        text-align: center;
    }

    .fc .fc-col-header-cell-cushion {
        font-size: 0.75rem;
    }

    .fc .fc-daygrid-day-number {
        font-size: 0.8rem;
        padding: 4px 6px;
    }
}

/* ---- Responsive: phone (767px) ---- */
@media (max-width: 767px) {
    #church-calendar-card {
        padding: 1rem;
    }

    .fc .fc-toolbar-title {
        font-size: 1rem;
    }

    .fc .fc-button-primary {
        font-size: 0.6rem;
        padding: 0.3rem 0.5rem;
        letter-spacing: 0.5px;
    }

    .fc .fc-col-header-cell-cushion {
        font-size: 0.65rem;
        padding: 0.35rem 0;
    }

    .fc .fc-daygrid-day-number {
        font-size: 0.75rem;
        padding: 3px 4px;
    }

    .fc .fc-event {
        font-size: 0.65rem;
        padding: 2px 3px;
        border-radius: 3px;
    }

    .fc .fc-event-time {
        font-size: 0.55rem;
    }

    .fc .fc-daygrid-more-link {
        font-size: 0.6rem;
    }

    .fc .fc-list-event td {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }

    .fc .fc-list-day-cushion {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }
}

/* ---- Responsive: small phone (480px) ---- */
@media (max-width: 480px) {
    #church-calendar-card h3 {
        font-size: 1rem;
    }

    .fc .fc-toolbar-title {
        font-size: 0.9rem;
    }

    .fc .fc-button-primary {
        font-size: 0.55rem;
        padding: 0.25rem 0.4rem;
    }

    .fc .fc-daygrid-day-number {
        font-size: 0.7rem;
    }

    .fc .fc-event {
        font-size: 0.6rem;
        padding: 1px 2px;
    }

    .fc .fc-event-time {
        display: none;
    }
}

.styled-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.styled-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 1rem;
    color: var(--tc-olive);
    line-height: 1.6;
}

.styled-list li:last-child { border-bottom: none; }

.styled-list li strong {
    color: var(--tc-black);
    font-weight: 600;
}

/* Dark button variant for inner pages */
.btn-tc-dark {
    background: var(--tc-black);
    border: 2px solid var(--tc-black);
    color: var(--tc-white);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-tc-dark:hover {
    background: var(--tc-yellow);
    border-color: var(--tc-yellow);
    color: var(--tc-black);
}

/* Contact form styling */
.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 0;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--tc-yellow);
    box-shadow: none;
}

.contact-form .form-label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--tc-olive);
}

/* Captcha */
.captcha-wrap {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 0.75rem;
    background: var(--tc-white);
    border: 2px solid #e0e0e0;
    padding: 0.5rem;
}

.captcha-image {
    height: 50px;
    display: block;
}

.captcha-refresh {
    background: none;
    border: 2px solid #e0e0e0;
    color: var(--tc-olive);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.captcha-refresh:hover {
    border-color: var(--tc-yellow);
    color: var(--tc-black);
    background: var(--tc-yellow);
}

/* Volunteer opportunity list scroll */
.volunteer-opportunity-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-left: 4px solid var(--tc-yellow);
}

.volunteer-opportunity-scroll .content-card {
    border-left: none;
}

/* Small group list scroll */
.smallgroup-list-scroll {
    max-height: 600px;
    overflow-y: auto;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-left: 4px solid var(--tc-yellow);
}

.smallgroup-list-scroll .content-card {
    border-left: none;
}

/* ===========================
   SCROLL REVEAL ANIMATIONS
   =========================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 991px) {
    /* Nav logo smaller on tablet/mobile */
    .nav-logo { height: 100px; }
    .navbar-tc.scrolled .nav-logo { height: 80px; }

    /* Hero adjustments */
    .hero { overflow: hidden; }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 7rem);
    }

    /* Hide scroll cue on mobile */
    .scroll-cue { display: none; }

    /* Service card — full width on mobile */
    .service-card-wrap {
        padding: 0;
        margin-top: 0;
        justify-content: stretch;
    }

    .service-card {
        width: 100%;
        border-left: none;
        border-top: 4px solid var(--tc-yellow);
        box-shadow: none;
    }

    .service-card-inner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .service-divider {
        display: none;
    }

    /* About */
    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-image { margin-top: 0; }
    .about-image img { height: 400px; }

    .about-text {
        padding: 3rem 1.5rem;
    }

    .about-badge {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 0 1.5rem;
    }

    /* Mosaic */
    .mosaic-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tile-sermons {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 350px;
    }

    .mosaic-stack {
        grid-column: 1 / -1;
    }

    .tile-events,
    .tile-give {
        grid-column: auto;
        grid-row: auto;
    }

    /* Visit */
    .visit-section {
        flex-direction: column;
        padding: 0;
    }

    .visit-image-wrap {
        position: relative;
        width: 100%;
        height: 350px;
    }

    .visit-card {
        width: 90%;
        max-width: none;
        margin: -3rem auto 3rem;
        padding: 2.5rem;
    }

    /* Vision */
    .vision-section {
        padding: 3rem 1.5rem;
        justify-content: center;
    }

    .vision-panel {
        max-width: 100%;
        padding: 2.5rem;
    }
}

@media (max-width: 767px) {
    .hero-content { padding: 0 1.5rem; }

    .hero-title {
        font-size: clamp(2.2rem, 12vw, 4rem);
        letter-spacing: 2px;
    }

    .hero-tagline {
        font-size: 0.85rem;
        letter-spacing: 5px;
    }

    /* Service card stacks vertically on phone */
    .service-card-inner {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .mosaic-grid { grid-template-columns: 1fr; }

    .tile-sermons,
    .mosaic-stack,
    .tile-events,
    .tile-give {
        grid-column: auto;
        min-height: 260px;
    }

    .about-image img { height: 300px; }

    .visit-buttons { flex-direction: column; }
    .btn-tc { width: 100%; justify-content: center; }
}

/* ============================================
   EVENTS CAROUSEL
   ============================================ */
.events-carousel-section {
    position: relative;
    background: url('/images/marblebg.jpg') center / cover no-repeat;
    padding: 5rem 0;
    overflow: hidden;
    z-index: 2;
}

.events-carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.event-slide {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 3rem;
}

.event-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--tc-yellow);
    margin-bottom: 1rem;
}

.event-title {
    color: var(--tc-white);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.event-desc {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.event-link {
    border-color: var(--tc-yellow) !important;
    color: var(--tc-yellow) !important;
}

.event-link:hover {
    background: var(--tc-yellow) !important;
    color: var(--tc-black) !important;
}

#eventCarousel .carousel-indicators {
    margin-bottom: -0.5rem;
}

#eventCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
    border: none;
    margin: 0 5px;
}

#eventCarousel .carousel-indicators button.active {
    background-color: var(--tc-yellow);
}

#eventCarousel .carousel-control-prev,
#eventCarousel .carousel-control-next {
    width: 5%;
    opacity: 0.5;
}

#eventCarousel .carousel-control-prev:hover,
#eventCarousel .carousel-control-next:hover {
    opacity: 1;
}

@media (max-width: 767px) {
    .events-carousel-section { padding: 3rem 0; }
    .event-slide { padding: 1.5rem 1rem; }
    .event-title { font-size: 1.5rem; }
}
