/* ============================================
   BEN J STEVENS MINISTRY - STYLES.CSS
   ============================================ */

/* === CSS Variables === */
:root {
    --gold: #C5A059;
    --gold-dark: #B08D45;
    --warm-stone: #E6E1D6;
    --off-white: #FAF9F6;
    --cream: #F4F1EA;
    --charcoal: #1A1A1A;
    --softgray: #8F8988;
    --text-primary: #2C2C2C;
    --text-secondary: #595959;
   --text-muted: #FCF5F5;
    --text-muted2: #8C8C8C;
    --white: #ffffff;
    --border: #E6E1D6;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul {
    list-style: none;
}

/* === Utilities === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 3rem;
    }
}

.text-center { text-align: center; }
.text-gold { color: var(--gold); }

.bg-off-white { background-color: var(--off-white); }
.bg-cream { background-color: var(--cream); }
.bg-charcoal { background-color: var(--charcoal); }

.section {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 8rem 0;
    }
}

.section-divider {
    width: 60px;
    height: 2px;
    background-color: var(--gold);
    margin-bottom: 1.5rem;
}

.section-divider.center {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-title.center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--gold-dark);
    transform: scale(1.02);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-nav {
    display: none;
}

@media (min-width: 768px) {
    .btn-nav {
        display: inline-flex;
    }
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-icon-right {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon-right {
    transform: translateX(4px);
}

.btn-icon-only {
    padding: 0.75rem;
}

.btn-icon-only svg {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.3);
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled,
.header-solid {
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

@media (min-width: 768px) {
    .header-container {
        padding: 0 3rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.1);
}

.logo span {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

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

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

/* === Mobile Menu === */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background-color: var(--off-white);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 2rem 1.5rem;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-close svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.mobile-nav-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--gold);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* REPLACE: Update this background image URL */
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(250, 249, 246, 0.1) 0%,
        rgba(250, 249, 246, 0.6) 50%,
        rgba(250, 249, 246, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 1.5rem;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #8F8988;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

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

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gold);
    border-radius: 9999px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 6px;
    height: 12px;
    background-color: var(--gold);
    border-radius: 9999px;
}

/* === Bio Section === */
.bio-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .bio-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

.bio-image-wrapper {
    position: relative;
}

.bio-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.bio-image-accent {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 8rem;
    height: 8rem;
    background-color: rgba(197, 160, 89, 0.1);
    border-radius: 1rem;
    z-index: -1;
}

.bio-content {
    padding-top: 1rem;
}

.bio-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-weight: 500;
    transition: gap 0.3s ease;
}

.link-arrow:hover {
    gap: 0.75rem;
}

.link-arrow-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.link-arrow:hover .link-arrow-icon {
    transform: translateX(4px);
}

/* === Video Section === */
.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    background-color: var(--charcoal);
}

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

.video-info {
    text-align: center;
    margin-top: 1.5rem;
}

.video-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.video-series {
    color: var(--text-muted);
}

/* === Speaking CTA Section === */
.speaking-cta {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    /* REPLACE: Update this background image URL */
    background-image: url('images/speaking-bg.jpg');
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    .speaking-cta {
        padding: 8rem 0;
    }
}

.speaking-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.4) 0%,
        rgba(26, 26, 26, 0.7) 100%
    );
}

.speaking-cta-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.speaking-cta-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1.5rem;
    color: var(--gold);
}

.speaking-cta-icon svg {
    width: 100%;
    height: 100%;
}

.speaking-cta-title {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .speaking-cta-title {
        font-size: 3rem;
    }
}

.speaking-cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* === Stats Section === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

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

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* === Footer === */
.footer {
    background-color: var(--softgray);
    color: var(--off-white);
}

.footer-newsletter {
    border-bottom: 1px solid #2C2C2C;
    padding: 4rem 0;
}

.newsletter-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

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

.newsletter-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .newsletter-title {
        font-size: 1.75rem;
    }
}

.newsletter-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background-color: #2C2C2C;
    border: 1px solid #2C2C2C;
    border-radius: 9999px;
    color: var(--off-white);
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--gold);
}

.footer-main {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

.footer-brand {
    grid-column: span 2;
}

@media (min-width: 768px) {
    .footer-brand {
        grid-column: span 1;
    }
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    color: var(--gold);
}

.footer-logo span {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--off-white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2C2C2C;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: var(--gold);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid #2C2C2C;
    margin-top: 3rem;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

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

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* === Toast Notifications === */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background-color: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 350px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* === Page Content === */
.page-content {
    padding-top: 80px;
}

.page-hero {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .page-hero {
        padding: 8rem 0;
    }
}

.page-hero-simple {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .page-hero-simple {
        padding: 6rem 0;
    }
}

.page-hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

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

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 3.5rem;
    }
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .page-subtitle {
        font-size: 1.25rem;
    }
}

.hero-portrait {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.hero-portrait-accent {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    width: 6rem;
    height: 6rem;
    background-color: rgba(197, 160, 89, 0.2);
    border-radius: 0.75rem;
    z-index: -1;
}

/* === About Page === */
.content-narrow {
    max-width: 800px;
}

.prose {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.prose p {
    margin-bottom: 1.5rem;
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-quote {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.values-grid {
    display: grid;
    gap: 1.5rem;
}

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

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

.value-card {
    background-color: var(--cream);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.value-card:hover {
    border-color: rgba(197, 160, 89, 0.2);
}

.value-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.value-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.value-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

.gallery-item {
    border-radius: 0.5rem;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item.gallery-wide {
    grid-column: span 2;
}

.gallery-item:not(.gallery-wide) {
    aspect-ratio: 1;
}

.gallery-wide {
    aspect-ratio: 16 / 9;
}

/* === Sermons Page === */
.filter-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    background-color: transparent;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--warm-stone);
    color: var(--text-primary);
}

.filter-btn.active {
    background-color: var(--gold);
    color: var(--white);
}

.sermons-grid {
    display: grid;
    gap: 2rem;
}

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

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

.sermon-card {
    background-color: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.sermon-card:hover {
    border-color: rgba(197, 160, 89, 0.5);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.sermon-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.sermon-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.sermon-play-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.sermon-play-overlay svg {
    width: 4rem;
    height: 4rem;
    color: var(--white);
}

.sermon-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--gold);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    text-transform: capitalize;
}

.sermon-content {
    padding: 1.5rem;
}

.sermon-series {
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.sermon-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.sermon-card:hover .sermon-title {
    color: var(--gold);
}

.sermon-meta,
.post-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.meta-icon {
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.series-grid {
    display: grid;
    gap: 1.5rem;
}

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

.series-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    cursor: pointer;
}

.series-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.series-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.series-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
}

.series-title {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.series-episodes {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* === Bookings Page === */
.booking-hero {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    /* REPLACE: Update this background image URL */
    background-image: url('images/booking-bg.jpg');
    background-size: cover;
    background-position: center;
}

.booking-hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(26, 26, 26, 0.7);
}

.booking-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.booking-hero-icon {
    width: 4rem;
    height: 4rem;
    background-color: rgba(197, 160, 89, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.booking-hero-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--gold);
}

.booking-hero-title {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .booking-hero-title {
        font-size: 3rem;
    }
}

.booking-hero-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.topics-grid {
    display: grid;
    gap: 1.5rem;
}

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

.topic-card {
    background-color: var(--cream);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.topic-card:hover {
    border-color: rgba(197, 160, 89, 0.2);
}

.topic-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.topic-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.topic-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.expect-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

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

.expect-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.expect-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.check-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.expect-image {
    position: relative;
}

.expect-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.expect-image-accent {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 6rem;
    height: 6rem;
    background-color: rgba(197, 160, 89, 0.2);
    border-radius: 0.75rem;
    z-index: -1;
}

/* === Modal === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal {
    background-color: var(--off-white);
    border-radius: 1rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: var(--warm-stone);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* === Forms === */
.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    gap: 1.25rem;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

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

/* === Contact Page === */
.contact-grid {
    display: grid;
    gap: 4rem;
}

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

.contact-form-wrapper {
    max-width: 500px;
}

.contact-form {
    margin-top: 1.5rem;
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.contact-item-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(197, 160, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gold);
}

.contact-item-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-item-link {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.contact-item-link:hover {
    color: var(--gold);
}

.contact-item-text {
    color: var(--text-secondary);
}

.contact-social-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-social-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-social-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--cream);
    border-radius: 0.75rem;
    transition: background-color 0.3s ease;
}

.contact-social-card:hover {
    background-color: var(--warm-stone);
}

.contact-social-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.contact-social-card:hover .contact-social-icon {
    background-color: var(--gold);
}

.contact-social-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.contact-social-card:hover .contact-social-icon svg {
    color: var(--white);
}

.contact-social-name {
    font-weight: 500;
    color: var(--text-primary);
}

.contact-social-handle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* === Blog Page === */
.featured-post {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .featured-post {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.featured-post-image {
    aspect-ratio: 4 / 3;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-gold {
    background-color: var(--gold);
    color: var(--white);
}

.badge-light {
    background-color: var(--cream);
    color: var(--text-secondary);
}

.featured-post-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .featured-post-title {
        font-size: 2rem;
    }
}

.featured-post-excerpt {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.blog-grid {
    display: grid;
    gap: 2rem;
}

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

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

.blog-card {
    background-color: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    border-color: rgba(197, 160, 89, 0.5);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

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

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-content .badge {
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-card-title {
    color: var(--gold);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .post-meta {
    font-size: 0.75rem;
    justify-content: space-between;
}

.blog-newsletter-section {
    background-color: var(--charcoal);
    padding: 5rem 0;
}

.blog-newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.blog-newsletter-title {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.blog-newsletter-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.blog-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .blog-newsletter-form {
        flex-direction: row;
    }
}

.newsletter-input-dark {
    flex: 1;
    max-width: 320px;
    padding: 0.875rem 1.5rem;
    background-color: #2C2C2C;
    border: 1px solid #2C2C2C;
    border-radius: 9999px;
    color: var(--off-white);
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.newsletter-input-dark::placeholder {
    color: var(--text-muted);
}

.newsletter-input-dark:focus {
    outline: none;
    border-color: var(--gold);
}

.blog-newsletter-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* === Responsive Adjustments === */
@media (max-width: 767px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}
