/**
 * Sonrise Church - Custom Styles
 * Extends style.css with component-specific styles
 */

/* =========================================
   NAVIGATION - Island Style
   ========================================= */

.site-header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 0;
    background: transparent;
    border-bottom: none;
    width: auto;
    max-width: 90%;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #fff;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.08);
}

.site-branding .site-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 0;
    font-weight: 700;
}

.site-branding .site-title a {
    text-decoration: none;
    color: var(--color-text-light);
}

/* Custom logo in nav pill */
.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
}

.site-branding .custom-logo,
.site-branding .custom-logo-link img {
    height: 32px !important;
    width: auto !important;
    max-height: 32px !important;
}

.main-navigation ul {
    gap: 1.5rem;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a1a1a;
    transition: width 0.25s ease;
}

.nav-cta a::after {
    display: none;
}

.main-navigation a:hover {
    color: #1a1a1a;
}

.main-navigation a:hover::after {
    width: 100%;
}

.nav-cta .btn {
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    background: #1a1a1a;
    color: #fff;
    border: 1.5px solid #1a1a1a;
}

.nav-cta .btn:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

/* Nav Social Icons */
.nav-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.25rem;
    padding-left: 0.75rem;
    border-left: 1px solid #e0e0e0;
}

.nav-social a {
    color: #999;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.nav-social a:hover {
    color: #1a1a1a;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Sub-menus */
.main-navigation li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    padding: 0.75rem 0;
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 0;
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation li ul li a {
    padding: 0.5rem 1.25rem;
    display: block;
    white-space: nowrap;
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero-section {
    padding: 10rem 0 6rem;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #405c9a;
}

.hero-overlay {
    display: none;
}

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

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: #fff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.12);
}

.hero-subtitle {
    color: #fff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.12);
    font-size: 1.15rem;
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-content h1 em,
.hero-content h1 i {
    font-style: italic;
}

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

.hero-buttons .btn-outline {
    color: #fff !important;
    border-color: #fff !important;
}

.hero-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

.hero-buttons .btn-primary {
    background: #fff !important;
    color: #1a1a1a !important;
    border-color: #fff !important;
}

.hero-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.85) !important;
}

/* Give button — hidden on desktop (nav has it), visible on mobile */
.mobile-give-btn {
    display: none !important;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border: 1.5px solid var(--color-primary);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
}

.btn-outline {
    background: transparent;
    color: var(--color-text-light);
    border: 1.5px solid var(--color-text-light);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: var(--color-text-light);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-light);
    border: 1.5px solid #ccc;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--color-text-light);
    text-decoration: underline;
    padding: 0;
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    font-weight: 500;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* =========================================
   MISSION SECTION
   ========================================= */

.mission-section {
    padding: var(--spacing-xl) 0;
}

.mission-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
}

/* =========================================
   LATEST MESSAGE (Cinema Mode)
   ========================================= */

.latest-message-section {
    padding: var(--spacing-xl) 0;
}

.latest-message-section h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

/* =========================================
   LIVE STREAM BANNER
   ========================================= */

.live-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 1.25rem 0;
    padding-top: calc(1rem + 64px + 50px + 1.25rem);
    border-bottom: 2px solid #e63946;
}

@media (max-width: 768px) {
    .live-banner {
        padding-top: calc(50px + 50px + 1.25rem);
    }
}

.live-banner-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.live-dot {
    width: 12px;
    height: 12px;
    background: #e63946;
    border-radius: 50%;
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(230, 57, 70, 0); }
}

.live-text {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #e63946;
}

.live-banner h3 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    flex: 1;
}

.live-banner .btn {
    flex-shrink: 0;
}

/* =========================================
   FORMS
   ========================================= */

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary, #333);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem !important;
    margin-bottom: 0.25rem;
}

.form-row .form-group {
    min-width: 0;
    margin-bottom: 1rem;
}

.form-row-address {
    grid-template-columns: 2fr 1fr 1fr !important;
}

.awana-reg-form .form-row {
    display: grid !important;
    gap: 1.25rem !important;
}

.awana-reg-form .form-group input,
.awana-reg-form .form-group select,
.awana-reg-form .form-group textarea {
    width: 100% !important;
    box-sizing: border-box !important;
}

.awana-reg-form h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.awana-reg-form h2:first-of-type {
    margin-top: 0;
}

/* =========================================
   PCO CHURCH CENTER EMBEDS
   ========================================= */

.pco-embed-wrapper {
    width: 100%;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f9f9f9;
}

.pco-embed-wrapper iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    display: block;
}

.pco-embed-fallback {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.pco-embed-fallback a {
    display: inline-block;
    margin-top: 0.5rem;
}

/* =========================================
   SERMON FEATURE
   ========================================= */

.sermon-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.sermon-feature .video-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
}

.sermon-feature .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* =========================================
   SHORTS SECTION
   ========================================= */

.shorts-section {
    padding: var(--spacing-xl) 0;
}

.shorts-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.shorts-scroller {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.shorts-scroller::-webkit-scrollbar {
    display: none;
}

.short-card {
    scroll-snap-align: start;
    cursor: pointer;
}

.short-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 9/16;
    background: #222;
}

.short-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.short-card:hover .play-overlay {
    opacity: 1;
}

.short-card h3 {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-family: 'Montserrat', var(--font-body);
    font-weight: 400;
}

/* Shorts grid for /shorts page */
.shorts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* =========================================
   NEW HERE SECTION
   ========================================= */

.new-here-section {
    padding: var(--spacing-xl) 0;
}

.new-here-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 400;
}

.new-here-image {
    border-radius: 16px;
    overflow: hidden;
    background: #f0f0f0;
    min-height: 300px;
}

.new-here-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   CONNECT CARDS
   ========================================= */

.connect-section {
    padding: var(--spacing-xl) 0;
}

.connect-card {
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: box-shadow 0.2s;
}

.connect-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.connect-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

/* =========================================
   FEATURED EVENTS SECTION
   ========================================= */

.featured-events-section {
    padding: var(--spacing-xl) 0;
}

.today-at-sonrise-section {
    padding: var(--spacing-xl) 0;
}

.today-at-sonrise-section .week-timeline-compact {
    max-width: 900px;
}

.featured-events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.featured-event-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
}

.featured-event-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.featured-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-event-cta {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.2s ease;
    z-index: 2;
}

.featured-event-cta:hover {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
}

.featured-event-cta-noimg {
    padding: 0.75rem 1.5rem 0;
}

.featured-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    text-align: center;
    padding: 1.5rem 1.5rem 0;
}

.featured-event-date .event-month {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #888;
}

.featured-event-date .event-day {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.1;
}

.featured-event-details {
    flex: 1;
    padding: 1rem 1.5rem 0;
}

.featured-event-details .event-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.featured-event-details .event-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0;
}

.featured-event-details .event-description {
    color: #666;
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

.featured-event-action {
    padding: 1rem 1.5rem 1.5rem;
}

/* Expandable card drop */
.featured-event-expand {
    padding: 0 1.5rem 0.75rem;
}

.btn-event-more {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.btn-event-more:hover {
    background: #f0ede8;
    border-color: #ccc;
}

.btn-event-more .toggle-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-event-more.toggled .toggle-arrow {
    transform: rotate(180deg);
}

.featured-event-drop {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 1.5rem;
}

.featured-event-drop.fe-drop-open {
    padding-bottom: 1.5rem;
}

/* Compact event cards (Events page) */
.featured-events-compact {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.featured-event-compact-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.featured-event-compact-card:first-child {
    border-top: 1px solid #e5e5e5;
}

.compact-event-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 112px;
    border-radius: 8px;
    overflow: hidden;
}

.compact-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-event-details {
    flex: 1;
}

.compact-event-details .event-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #888;
    margin: 0 0 0.25rem;
    flex-wrap: wrap;
}

/* =========================================
   THIS WEEK AT SONRISE
   ========================================= */

.this-week-section {
    padding: 2rem 0 var(--spacing-xl);
}

.week-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.day-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 2rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #eee;
    align-items: start;
}

.day-row:first-child {
    border-top: 1px solid #eee;
}

.day-today {
    background: var(--color-bg-warm);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 0 -1.5rem;
    border-bottom: none;
}

.day-today + .day-row {
    border-top: none;
}

.day-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    position: sticky;
    top: 100px;
}

.day-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.day-today .day-name {
    color: var(--color-primary);
}

.day-date {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.day-event-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.2s ease;
}

.day-event-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.day-today .day-event-item {
    border-color: #e8e0d8;
}

.day-event-none {
    background: transparent;
    border: 1px dashed #e0e0e0;
    box-shadow: none;
}

.day-event-none:hover {
    box-shadow: none;
}

.event-none-text {
    color: #bbb;
    font-size: 0.85rem;
    font-style: italic;
}

.event-time {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    min-width: 90px;
}

.event-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text);
}

.event-location {
    font-size: 0.8rem;
    color: #888;
}

.event-desc {
    width: 100%;
    font-size: 0.8rem;
    color: #999;
    line-height: 1.4;
}

.event-recurring .event-name {
    color: #666;
}

/* Event Expandable - tap hint */
.event-expandable {
    cursor: pointer;
    position: relative;
}

.event-expandable:hover {
    border-color: #ccc;
    background: #fafafa;
}

.event-expand-arrow {
    font-size: 0.7rem;
    margin-left: auto;
    color: #bbb;
    transition: transform 0.3s ease, color 0.2s ease;
    display: inline-block;
}

.event-item-active .event-expand-arrow {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.event-item-active {
    border-color: var(--color-primary, #333);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    border-radius: 8px 8px 0 0 !important;
    background: #fafafa;
}

/* Dropdown Panel */
.event-wrapper {
    position: relative;
}

.event-drop {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-drop-inner {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--color-primary, #333);
    border-top: 1px dashed #ddd;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.event-drop-image {
    flex-shrink: 0;
    width: 220px;
    border-radius: 8px;
    overflow: hidden;
}

.event-drop-image img {
    width: 100%;
    height: auto;
    display: block;
}

.event-drop-body {
    flex: 1;
    min-width: 0;
}

.event-drop-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #555;
    margin: 0 0 1rem;
}

.event-drop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 1rem;
}

.event-drop-btn {
    display: inline-block;
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;
}

/* =========================================
   AWANA SECTION
   ========================================= */

.awana-preview-section {
    padding: var(--spacing-xl) 0;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: var(--spacing-lg) 0;
}

.program-card {
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.program-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.program-card .ages {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

/* AWANA Clubs Accordion */
.awana-clubs-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
    opacity: 0;
}

.awana-clubs-accordion.awana-open {
    max-height: 2000px;
    opacity: 1;
}

.awana-toggle .toggle-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.awana-toggle.toggled .toggle-arrow {
    transform: rotate(180deg);
}

/* Events Accordion */
.events-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
    opacity: 0;
}

.events-accordion.events-open {
    max-height: 3000px;
    opacity: 1;
}

.events-toggle .toggle-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.events-toggle.toggled .toggle-arrow {
    transform: rotate(180deg);
}

/* =========================================
   JOIN US SECTION
   ========================================= */

/* Text Signup Section (Homepage) */
.text-signup-section {
    padding: var(--spacing-lg) 0;
    background: var(--color-bg-alt, #f5f5f0);
}

.text-signup-section h2 {
    margin-bottom: 0.75rem;
}

.text-signup-desc {
    color: #666;
    max-width: 480px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* Footer Text Signup */
.footer-text-signup p {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.join-us-section {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid #e0e0e0;
}

.join-us-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

/* =========================================
   PAGE HEADERS
   ========================================= */

.page-header {
    padding: 9rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
}

.page-header .subtitle {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 0.5rem;
}

/* =========================================
   BELIEFS CARDS
   ========================================= */

.beliefs-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: var(--spacing-lg) 0;
}

.belief-card {
    padding: 2.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
}

.belief-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.commitment-box {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 12px;
    min-width: 220px;
}

.commitment-box h4 {
    text-transform: uppercase;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.scripture-ref {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    margin-top: 1rem;
    line-height: 1.6;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
}

/* =========================================
   STAFF GRID
   ========================================= */

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: var(--spacing-lg) 0;
}

.staff-card {
    text-align: center;
}

.staff-photo {
    width: 100%;
    aspect-ratio: 3/3.85;
    border-radius: 16px;
    overflow: hidden;
    background: #eee;
    margin-bottom: 1rem;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 53%;
}

.staff-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.staff-title {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #888;
}

/* =========================================
   VISION SECTION (Dark)
   ========================================= */

.vision-section {
    padding: var(--spacing-xl) 0;
    border-radius: 16px;
    margin: var(--spacing-lg) 0;
}

.vision-statement, .mission-statement {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-style: italic;
    font-weight: 400;
}

/* =========================================
   VALUES CARDS
   ========================================= */

.values-section {
    padding: var(--spacing-xl) 0;
}

.value-card {
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

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

.events-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: var(--spacing-lg) 0;
}

.event-card {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    align-items: flex-start;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.event-date .month {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
}

.event-date .day {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-meta {
    font-size: 0.85rem;
    color: #888;
}

/* =========================================
   SERMON ARCHIVE & CARDS
   ========================================= */

.sermon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: var(--spacing-lg) 0;
}

.sermon-card {
    border-radius: 12px;
    overflow: hidden;
}

.sermon-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
}

.sermon-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sermon-info {
    padding: 1rem 0;
}

.sermon-series-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dark-mode .sermon-info a {
    color: white;
    text-decoration: none;
}

.sermon-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.sermon-date, .sermon-speaker {
    font-size: 0.85rem;
    color: #999;
}

/* =========================================
   SINGLE SERMON
   ========================================= */

.sermon-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    padding: 6rem 0 3rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sermon-summary, .sermon-transcript {
    margin-top: 2rem;
}

.beta-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.sermon-resources {
    margin-bottom: 2rem;
}

.resource-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dark-mode .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.dark-mode .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.contact-layout {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
    gap: 3rem;
}

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

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #333;
}

/* =========================================
   CAMPAIGN PILL
   ========================================= */

.campaign-pill {
    position: fixed;
    top: calc(1rem + 66px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 998;
    background: #000;
    border-radius: 50px;
    padding: 10px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.campaign-pill-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Montserrat', var(--font-body);
    font-weight: 900;
    letter-spacing: 0.08em;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.campaign-pill-link:hover {
    opacity: 0.85;
    color: #fff;
}

.campaign-pill-icon {
    font-size: 1rem;
    line-height: 1;
}

.campaign-pill-arrow {
    opacity: 0.5;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .campaign-pill {
        top: calc(1rem + 52px);
        padding: 8px 24px;
    }

    .campaign-pill-link {
        font-size: 0.8rem;
    }
}

/* =========================================
   BUILDING CAMPAIGN
   ========================================= */

.progress-container {
    max-width: 500px;
    margin: 2rem auto;
}

.progress-bar {
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 12px;
    transition: width 0.5s ease;
}

.comparison-section {
    padding: var(--spacing-xl) 0;
    background: #f8f8f8;
}

.budget-section {
    padding: var(--spacing-xl) 0;
}

.budget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.budget-item {
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
}

/* =========================================
   CTA SECTION
   ========================================= */

.cta-section {
    background: var(--color-bg-dark);
    color: var(--color-text-dark);
    padding: var(--spacing-xl) 0;
    border-radius: 16px;
    margin: var(--spacing-lg) 0;
    text-align: center;
}

.cta-section .btn-primary {
    background: white;
    color: var(--color-text-light);
    border-color: white;
}

/* =========================================
   LIGHTBOX
   ========================================= */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    height: 70vh;
    aspect-ratio: 9/16;
    max-width: 90vw;
}

.lightbox .close {
    position: absolute;
    top: -2.5rem;
    right: -0.5rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

#shorts-player {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

#shorts-player iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* =========================================
   GRID UTILITIES
   ========================================= */

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

.site-footer {
    background: #f1f1f1;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

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

.footer-branding h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.site-footer h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a {
    color: #888;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: #fff;
}

.site-info {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid #ddd;
    font-size: 0.8rem;
    color: #888;
}

/* =========================================
   NOT JUST A YOUTH GROUP (Dark)
   ========================================= */

.not-just-youth {
    padding: var(--spacing-xl) 0;
    border-radius: 16px;
    margin: var(--spacing-lg) 0;
    text-align: center;
}

/* =========================================
   LEAD TEXT
   ========================================= */

.lead {
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.intro-text {
    padding: var(--spacing-xl) 0;
}

/* =========================================
   ERROR 404
   ========================================= */

.error-404 {
    padding: 10rem 0 6rem;
}

/* =========================================
   DARK MODE FOOTER
   ========================================= */

.dark-mode + .site-footer,
.cinema-mode .site-footer {
    background: #1a1a1a;
    color: #ccc;
}

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

@media (max-width: 768px) {
    .site-header {
        top: 0;
        max-width: 100%;
        border-radius: 0;
    }

    .nav-wrapper {
        border-radius: 20px;
        padding: 0.75rem 1rem;
        justify-content: space-between;
    }

    .mobile-give-btn {
        display: inline-block !important;
        background: #1a1a1a !important;
        color: #fff !important;
        border-color: #1a1a1a !important;
    }

    /* Featured Events mobile */
    .featured-events-list {
        grid-template-columns: 1fr !important;
    }

    .featured-event-details .event-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .featured-event-action {
        width: 100%;
    }

    .featured-event-action .btn {
        width: 100%;
        text-align: center;
    }

    .featured-event-compact-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .compact-event-thumb {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9;
    }

    .compact-event-details .event-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    /* This Week mobile */
    .day-row {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .day-today {
        margin: 0 -1rem;
        padding: 1.25rem 1rem;
    }

    .day-label {
        flex-direction: row;
        align-items: baseline;
        gap: 0.75rem;
    }

    .day-event-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .event-time {
        min-width: unset;
    }

    /* Event dropdown mobile */
    .event-drop-inner {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .event-drop-image {
        width: 100%;
    }

    .event-drop-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .main-navigation ul {
        display: none;
    }

    .main-navigation.toggled ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: white;
        padding: 1rem 1.25rem;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        text-align: left;
    }

    /* All items full width, left-aligned by default */
    .main-navigation.toggled ul li {
        width: 100%;
        text-align: left;
    }

    .main-navigation.toggled ul li a {
        display: block;
        text-align: left;
        width: 100%;
    }

    /* Parent items: bold left-aligned */
    .main-navigation.toggled > ul > li > a {
        font-weight: 600;
        padding: 0.4rem 0;
        text-align: left;
    }

    /* Mobile submenus: stack inline, right-aligned */
    .main-navigation.toggled li ul {
        display: flex;
        flex-direction: column;
        position: static;
        box-shadow: none;
        padding: 0 0 0.25rem 0;
        min-width: auto;
        border-radius: 0;
        background: transparent;
    }

    .main-navigation.toggled li ul li {
        text-align: right;
    }

    .main-navigation.toggled li ul li a {
        text-align: right;
        padding: 0.3rem 0;
        font-size: 0.9rem;
        color: #888;
        font-weight: 400;
    }

    .main-navigation li:hover > ul {
        /* Disable hover dropdowns on mobile - handled by .toggled styles */
        position: static;
        box-shadow: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .nav-social {
        display: none;
    }

    .hero-section {
        padding: 7rem 0 4rem;
        min-height: 50vh;
    }

    .grid-2-col,
    .grid-3-col {
        grid-template-columns: 1fr;
    }

    .sermon-feature {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .sermon-feature .video-thumb {
        width: 100%;
        aspect-ratio: 16/9;
    }

    .sermon-feature .sermon-feature-info h2 {
        font-size: 1.3rem !important;
    }

    .awana-hero-grid {
        grid-template-columns: 1fr !important;
    }

    .building-campaign-grid {
        grid-template-columns: 1fr !important;
    }

    .building-why-grid {
        grid-template-columns: 1fr !important;
    }

    .today-tomorrow-grid {
        grid-template-columns: 1fr !important;
    }

    .today-tomorrow-grid > div:nth-child(2) {
        display: none;
    }

    .today-tomorrow-grid > div:first-child {
        text-align: left !important;
        padding-right: 0 !important;
        padding-bottom: 1.5rem;
    }

    .today-tomorrow-grid > div:last-child {
        padding-left: 0 !important;
        padding-top: 1.5rem;
        border-top: 1px solid #555;
    }

    .floorplan-grid {
        grid-template-columns: 1fr !important;
    }

    .kingdom-impact-grid {
        grid-template-columns: 1fr !important;
    }

    .awana-hero-grid > div:last-child {
        display: none;
    }

    .program-grid {
        grid-template-columns: 1fr !important;
        justify-items: stretch !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .program-card {
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        max-width: 100% !important;
    }

    .program-card img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .program-card p {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* AWANA Youth mobile centering */
    .awana-youth-page .container {
        text-align: center !important;
    }

    .awana-youth-page .lead,
    .awana-youth-page p,
    .awana-youth-page h2 {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .awana-youth-page .btn-primary,
    .awana-youth-page .btn-lg {
        display: inline-block !important;
        margin: 0 auto !important;
    }

    .contact-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 1rem var(--spacing-xl) !important;
    }

    .form-row-address {
        grid-template-columns: 1fr !important;
    }

    .sermon-layout {
        grid-template-columns: 1fr;
        padding-top: 5rem;
    }

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

    .belief-card {
        grid-template-columns: 1fr;
    }

    .shorts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shorts-scroller {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .event-card {
        flex-direction: column;
        gap: 1rem;
    }
}

/* =========================================
   ACCESSIBILITY
   ========================================= */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    position: absolute;
    top: -100px;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}
