/*
Theme Name: Reconciliation Christian Centre
Theme URI: https://reconciliationchristiancentre.com
Author: RCC Media Team
Author URI: https://reconciliationchristiancentre.com
Description: A modern, animated, interactive church website theme for Reconciliation Christian Centre. Features live streaming integration, Paystack giving, sermon archives, and event management.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rcc-theme
Tags: church, live-streaming, donations, events, sermons, responsive, accessibility-ready

Reconciliation Christian Centre - A Christ-centred community committed to reconciliation, spiritual growth, and authentic worship.
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   Following RCC Brand Style Guide
   ========================================================================== */

:root {
    /* Primary Palette */
    --rcc-primary: #1a2744;           /* Deep Navy Blue */
    --rcc-primary-light: #2a3d5c;
    --rcc-primary-dark: #0f1829;
    
    /* Secondary Palette */
    --rcc-secondary: #d4a54a;         /* Warm Gold / Amber */
    --rcc-secondary-light: #e5c078;
    --rcc-secondary-dark: #b8892f;
    
    /* Neutral Palette */
    --rcc-white: #ffffff;
    --rcc-off-white: #f8f9fa;
    --rcc-light-grey: #e9ecef;
    --rcc-medium-grey: #6c757d;       /* Support - Body text, dividers */
    --rcc-dark-grey: #343a40;
    
    /* Semantic Colors */
    --rcc-success: #28a745;
    --rcc-warning: #ffc107;
    --rcc-error: #dc3545;
    --rcc-info: #17a2b8;
    
    /* Typography */
    --font-heading: 'Montserrat', Arial, Helvetica, sans-serif;
    --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
    
    /* Font Sizes */
    --fs-h1: clamp(2.5rem, 5vw, 3.5rem);
    --fs-h2: clamp(2rem, 4vw, 2.5rem);
    --fs-h3: clamp(1.5rem, 3vw, 2rem);
    --fs-h4: clamp(1.25rem, 2.5vw, 1.5rem);
    --fs-body: clamp(1rem, 1.5vw, 1.125rem);
    --fs-small: 0.875rem;
    --fs-caption: 0.75rem;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Layout */
    --container-max: 1200px;
    --container-padding: clamp(1rem, 5vw, 2rem);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(26, 39, 68, 0.1);
    --shadow-md: 0 4px 12px rgba(26, 39, 68, 0.15);
    --shadow-lg: 0 8px 30px rgba(26, 39, 68, 0.2);
    --shadow-gold: 0 4px 20px rgba(212, 165, 74, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Z-index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
}

/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--rcc-dark-grey);
    background-color: var(--rcc-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--rcc-primary);
    margin-bottom: var(--space-md);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 500; }
h4 { font-size: var(--fs-h4); }

p {
    margin-bottom: var(--space-md);
    max-width: 70ch;
}

a {
    color: var(--rcc-secondary-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--rcc-secondary);
}

a:focus-visible {
    outline: 2px solid var(--rcc-secondary);
    outline-offset: 2px;
}

strong, b {
    font-weight: 600;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.container--narrow {
    max-width: 900px;
}

.container--wide {
    max-width: 1400px;
}

.section {
    padding-block: var(--space-4xl);
}

.section--compact {
    padding-block: var(--space-2xl);
}

/* Flexbox utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Grid utilities */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Visibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn:focus-visible {
    outline: 3px solid var(--rcc-secondary);
    outline-offset: 2px;
}

/* Primary Button - Gold background */
.btn--primary {
    background-color: var(--rcc-secondary);
    color: var(--rcc-white);
    border-color: var(--rcc-secondary);
}

.btn--primary:hover,
.btn--primary:focus {
    background-color: var(--rcc-secondary-dark);
    border-color: var(--rcc-secondary-dark);
    color: var(--rcc-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Secondary Button - Navy outline */
.btn--secondary {
    background-color: transparent;
    color: var(--rcc-primary);
    border-color: var(--rcc-primary);
}

.btn--secondary:hover,
.btn--secondary:focus {
    background-color: var(--rcc-primary);
    color: var(--rcc-white);
}

/* White Button - For dark backgrounds */
.btn--white {
    background-color: var(--rcc-white);
    color: var(--rcc-primary);
    border-color: var(--rcc-white);
}

.btn--white:hover,
.btn--white:focus {
    background-color: var(--rcc-off-white);
    color: var(--rcc-primary);
}

/* Small button variant */
.btn--sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
}

/* Large button variant */
.btn--lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

/* Icon-only button */
.btn--icon {
    padding: 0.75rem;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background-color: var(--rcc-primary);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--space-md);
    gap: var(--space-lg);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--rcc-white);
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-logo-text {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 160px;
}

/* Main Navigation */
.main-nav {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav {
        display: block;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rcc-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-block: var(--space-sm);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--rcc-secondary);
    transition: width var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu a:focus::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

/* Header CTA Buttons */
.header-cta {
    display: none;
    align-items: center;
    gap: var(--space-sm);
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--rcc-white);
    transition: all var(--transition-base);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background-color: var(--rcc-primary);
    padding: var(--space-2xl);
    transition: right var(--transition-slow);
    z-index: var(--z-modal);
    overflow-y: auto;
}

.mobile-nav.is-open {
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--rcc-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-nav-menu {
    list-style: none;
    margin-top: var(--space-2xl);
}

.mobile-nav-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu a {
    display: block;
    padding: var(--space-md) 0;
    color: var(--rcc-white);
    font-family: var(--font-heading);
    font-weight: 500;
}

.mobile-nav-cta {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Mobile nav overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: calc(var(--z-modal) - 1);
}

.mobile-nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

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

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--rcc-primary);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img,
.hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 39, 68, 0.9) 0%,
        rgba(26, 39, 68, 0.7) 50%,
        rgba(26, 39, 68, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding-block: var(--space-4xl);
}

.hero-welcome {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--fs-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rcc-secondary);
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    font-size: var(--fs-h1);
    color: var(--rcc-white);
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.6s;
}

.hero-service-times {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.8s;
}

.service-time {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--rcc-white);
    font-size: var(--fs-small);
}

.service-time svg {
    color: var(--rcc-secondary);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 1s;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ==========================================================================
   LIVE STATUS BADGE
   ========================================================================== */

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.375rem 0.75rem;
    background-color: var(--rcc-error);
    color: var(--rcc-white);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
}

.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--rcc-white);
    border-radius: var(--radius-full);
    animation: pulse 1.5s ease-in-out infinite;
}

.live-badge--large {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   COUNTDOWN TIMER
   ========================================================================== */

.countdown {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

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

.countdown-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rcc-secondary);
    line-height: 1;
}

.countdown-label {
    font-size: var(--fs-caption);
    color: var(--rcc-medium-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Dark background variant */
.countdown--dark .countdown-value {
    color: var(--rcc-secondary);
}

.countdown--dark .countdown-label {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header--left {
    text-align: left;
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--fs-caption);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rcc-secondary);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-description {
    color: var(--rcc-medium-grey);
    max-width: 600px;
    margin-inline: auto;
}

.section-header--left .section-description {
    margin-inline: 0;
}

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

.card {
    background-color: var(--rcc-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--space-lg);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--fs-small);
    color: var(--rcc-medium-grey);
    margin-bottom: var(--space-sm);
}

.card-title {
    font-size: var(--fs-h4);
    margin-bottom: var(--space-sm);
}

.card-title a {
    color: var(--rcc-primary);
}

.card-title a:hover {
    color: var(--rcc-secondary);
}

.card-excerpt {
    color: var(--rcc-medium-grey);
    margin-bottom: var(--space-md);
}

/* Sermon Card */
.sermon-card .card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.sermon-card .sermon-speaker {
    font-weight: 600;
    color: var(--rcc-primary);
}

.sermon-card .sermon-series {
    background-color: var(--rcc-light-grey);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: var(--fs-caption);
}

/* Event Card */
.event-card {
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .event-card--horizontal {
        flex-direction: row;
    }
    
    .event-card--horizontal .card-image {
        flex-shrink: 0;
        width: 200px;
        aspect-ratio: 1;
    }
}

.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--rcc-secondary);
    color: var(--rcc-white);
    border-radius: var(--radius-md);
    text-align: center;
    flex-shrink: 0;
}

.event-date-badge .month {
    font-size: var(--fs-caption);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.event-date-badge .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

/* ==========================================================================
   ONLINE CHURCH / LIVE STREAM SECTION
   ========================================================================== */

.online-church {
    background-color: var(--rcc-primary);
    color: var(--rcc-white);
}

.online-church .section-label {
    color: var(--rcc-secondary);
}

.online-church .section-title {
    color: var(--rcc-white);
}

.online-church .section-description {
    color: rgba(255, 255, 255, 0.8);
}

.live-stream-container {
    background-color: var(--rcc-primary-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.video-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

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

.stream-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.stream-status {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.next-service {
    color: rgba(255, 255, 255, 0.8);
}

.next-service strong {
    color: var(--rcc-white);
}

/* Offline state */
.stream-offline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--rcc-primary-dark) 0%, var(--rcc-primary) 100%);
    border-radius: var(--radius-md);
    text-align: center;
    padding: var(--space-xl);
}

.stream-offline svg {
    width: 64px;
    height: 64px;
    color: var(--rcc-secondary);
    margin-bottom: var(--space-md);
}

.stream-offline h3 {
    color: var(--rcc-white);
    margin-bottom: var(--space-sm);
}

.stream-offline p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-lg);
}

/* ==========================================================================
   GIVING SECTION
   ========================================================================== */

.giving-section {
    background-color: var(--rcc-off-white);
}

.giving-options {
    display: grid;
    gap: var(--space-lg);
}

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

@media (min-width: 1024px) {
    .giving-options {
        grid-template-columns: repeat(4, 1fr);
    }
}

.giving-option {
    background-color: var(--rcc-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.giving-option:hover,
.giving-option:focus-within {
    border-color: var(--rcc-secondary);
    box-shadow: var(--shadow-gold);
    transform: translateY(-4px);
}

.giving-option-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--rcc-light-grey);
    border-radius: var(--radius-full);
    margin-inline: auto;
    margin-bottom: var(--space-md);
    color: var(--rcc-primary);
    transition: all var(--transition-base);
}

.giving-option:hover .giving-option-icon {
    background-color: var(--rcc-secondary);
    color: var(--rcc-white);
}

.giving-option h3 {
    font-size: var(--fs-h4);
    margin-bottom: var(--space-sm);
}

.giving-option p {
    color: var(--rcc-medium-grey);
    font-size: var(--fs-small);
    margin-bottom: 0;
}

/* Giving Form */
.giving-form {
    max-width: 600px;
    margin-inline: auto;
    background-color: var(--rcc-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--rcc-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--rcc-light-grey);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--rcc-secondary);
}

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

/* Amount buttons */
.amount-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.amount-btn {
    padding: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    background-color: var(--rcc-light-grey);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.amount-btn:hover,
.amount-btn.active {
    background-color: var(--rcc-secondary);
    color: var(--rcc-white);
}

/* Frequency toggle */
.frequency-toggle {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-xs);
    background-color: var(--rcc-light-grey);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.frequency-btn {
    flex: 1;
    padding: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-small);
    text-transform: uppercase;
    background-color: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.frequency-btn.active {
    background-color: var(--rcc-white);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   MINISTRIES SECTION
   ========================================================================== */

.ministry-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ministry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.ministry-card:hover img {
    transform: scale(1.1);
}

.ministry-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26, 39, 68, 0.95) 0%,
        rgba(26, 39, 68, 0.3) 60%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
}

.ministry-card h3 {
    color: var(--rcc-white);
    margin-bottom: var(--space-xs);
}

.ministry-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--fs-small);
    margin-bottom: var(--space-md);
}

.ministry-card .btn {
    align-self: flex-start;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials-section {
    background-color: var(--rcc-primary);
    color: var(--rcc-white);
}

.testimonial-slider {
    position: relative;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-quote::before {
    content: '"';
    display: block;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--rcc-secondary);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--rcc-secondary);
}

.testimonial-author-info {
    text-align: left;
}

.testimonial-author-name {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--rcc-white);
}

.testimonial-author-role {
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.6);
}

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

.site-footer {
    background-color: var(--rcc-primary-dark);
    color: var(--rcc-white);
    padding-top: var(--space-4xl);
}

.footer-main {
    display: grid;
    gap: var(--space-2xl);
    padding-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
    .footer-main {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-small);
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--rcc-white);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--rcc-secondary);
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--rcc-white);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: var(--space-sm);
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-small);
    transition: color var(--transition-fast);
}

.footer-menu a:hover {
    color: var(--rcc-secondary);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-small);
}

.footer-contact-item svg {
    flex-shrink: 0;
    color: var(--rcc-secondary);
    margin-top: 2px;
}

/* Newsletter signup */
.footer-newsletter {
    margin-top: var(--space-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--fs-small);
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-block: var(--space-lg);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--fs-small);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--fs-small);
}

.footer-legal a:hover {
    color: var(--rcc-secondary);
}

/* ==========================================================================
   PAGE TEMPLATES
   ========================================================================== */

/* Page Hero */
.page-hero {
    background-color: var(--rcc-primary);
    padding: var(--space-4xl) 0 var(--space-3xl);
    text-align: center;
}

.page-hero h1 {
    color: var(--rcc-white);
    margin-bottom: var(--space-md);
}

.page-hero .breadcrumb {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-small);
}

.page-hero .breadcrumb a {
    color: var(--rcc-secondary);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
}

/* Page content */
.page-content {
    padding-block: var(--space-4xl);
}

.page-content h2,
.page-content h3 {
    margin-top: var(--space-2xl);
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   SERMON ARCHIVE
   ========================================================================== */

.sermon-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    padding: var(--space-lg);
    background-color: var(--rcc-off-white);
    border-radius: var(--radius-lg);
}

.sermon-search {
    flex: 1;
    min-width: 250px;
}

.sermon-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--rcc-light-grey);
    border-radius: var(--radius-md);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.75rem center;
}

.sermon-filter-select {
    min-width: 150px;
}

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

.events-view-toggle {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-xs);
    background-color: var(--rcc-light-grey);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    width: fit-content;
}

.view-toggle-btn {
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-small);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-toggle-btn.active {
    background-color: var(--rcc-white);
    box-shadow: var(--shadow-sm);
}

/* Event registration form */
.event-registration {
    background-color: var(--rcc-off-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    margin-top: var(--space-xl);
}

.attendance-type {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.attendance-option {
    flex: 1;
    padding: var(--space-lg);
    background-color: var(--rcc-white);
    border: 2px solid var(--rcc-light-grey);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.attendance-option:hover,
.attendance-option.selected {
    border-color: var(--rcc-secondary);
}

.attendance-option.selected {
    background-color: rgba(212, 165, 74, 0.1);
}

/* ==========================================================================
   CONNECT FORM
   ========================================================================== */

.connect-card {
    background-color: var(--rcc-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
}

.connect-interests {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.interest-tag {
    padding: 0.5rem 1rem;
    background-color: var(--rcc-light-grey);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-size: var(--fs-small);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.interest-tag:hover,
.interest-tag.selected {
    background-color: var(--rcc-secondary);
    color: var(--rcc-white);
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   WORDPRESS SPECIFIC
   ========================================================================== */

/* WordPress alignment classes */
.alignleft {
    float: left;
    margin-right: var(--space-lg);
    margin-bottom: var(--space-md);
}

.alignright {
    float: right;
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    max-width: calc(var(--container-max) + 100px);
    margin-left: calc(-50px);
    margin-right: calc(-50px);
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* WordPress caption */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--fs-small);
    color: var(--rcc-medium-grey);
    text-align: center;
    margin-top: var(--space-sm);
}

/* WordPress galleries */
.wp-block-gallery {
    display: grid;
    gap: var(--space-md);
}

/* WordPress navigation */
.post-navigation,
.posts-navigation {
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--rcc-light-grey);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-3xl);
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-md);
    background-color: var(--rcc-light-grey);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--rcc-secondary);
    color: var(--rcc-white);
}

/* Comments */
.comments-area {
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--rcc-light-grey);
}

.comment-list {
    list-style: none;
}

.comment {
    padding: var(--space-lg);
    background-color: var(--rcc-off-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.comment-author {
    font-family: var(--font-heading);
    font-weight: 600;
}

.comment-meta {
    font-size: var(--fs-small);
    color: var(--rcc-medium-grey);
    margin-bottom: var(--space-sm);
}

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

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--rcc-secondary);
    color: var(--rcc-white);
    padding: var(--space-md) var(--space-lg);
    z-index: var(--z-toast);
    transition: top var(--transition-fast);
}

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

/* Focus indicators */
:focus-visible {
    outline: 3px solid var(--rcc-secondary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --rcc-primary: #000000;
        --rcc-secondary: #c49b27;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .btn,
    .mobile-nav,
    .video-wrapper,
    .giving-form,
    .comment-form {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
}
