/* Montserrat for headings, Inter for body — via Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800;900&display=swap');

/* ══════════════════════════════════════════════════════════
   COLOUR THEMES — all colours defined here as CSS variables
   Switch themes by adding a data-theme attribute to <html>
   ══════════════════════════════════════════════════════════ */

/* Theme 1: Blue-Purple */
[data-theme="blue-purple"] {
    --color-primary:       #313178;   /* header, footer, hero dark */
    --color-primary-mid:   #4e4e94;   /* buttons, accents */
    --color-primary-light: #7474b0;   /* borders, hover */
    --color-primary-pale:  #cfcfe8;   /* backgrounds, tints */
    --color-primary-wash:  #e8e8f5;   /* very light tint */
    --color-accent:        #a1a1ce;   /* nav underline, dividers */
    --color-bg:            #ffffff;
    --color-bg-light:      #f8f9fa;
    --color-text:          #333333;
    --color-text-muted:    #666666;
    --color-text-dark:     #2b2b2b;
    --color-heading:       #313178;
    --color-card-border:   #7474b0;
    --color-shadow:        rgba(49,49,120,0.15);
    --color-shadow-hover:  rgba(49,49,120,0.25);
    --hero-gradient:       linear-gradient(135deg, #4e4e94 0%, #313178 100%);
    --vision-gradient:     linear-gradient(135deg, #cfcfe8 0%, #e8e8f5 100%);
}

/* Theme 2: Warm, Welcoming, Community-Focused */
[data-theme="warm"] {
    --color-primary:       #1A2A40;
    --color-primary-mid:   #C46A4A;
    --color-primary-light: #D4A437;
    --color-primary-pale:  #f0e6d3;
    --color-primary-wash:  #f7f2eb;
    --color-accent:        #D4A437;
    --color-bg:            #F7F5F2;
    --color-bg-light:      #ede8e0;
    --color-text:          #2B2B2B;
    --color-text-muted:    #6b5e52;
    --color-text-dark:     #1A2A40;
    --color-heading:       #1A2A40;
    --color-card-border:   #C46A4A;
    --color-shadow:        rgba(26,42,64,0.12);
    --color-shadow-hover:  rgba(26,42,64,0.22);
    --hero-gradient:       linear-gradient(135deg, #C46A4A 0%, #1A2A40 100%);
    --vision-gradient:     linear-gradient(135deg, #f0e6d3 0%, #F7F5F2 100%);
}

/* Theme 3: Traditional Lutheran (Liturgical) */
[data-theme="lutheran"] {
    --color-primary:       #4B2E83;
    --color-primary-mid:   #2F5D50;
    --color-primary-light: #8C1C13;
    --color-primary-pale:  #e8e0f0;
    --color-primary-wash:  #f2f0f7;
    --color-accent:        #2F5D50;
    --color-bg:            #F2F2F2;
    --color-bg-light:      #e8e8e8;
    --color-text:          #1A1A1A;
    --color-text-muted:    #555555;
    --color-text-dark:     #1A1A1A;
    --color-heading:       #4B2E83;
    --color-card-border:   #2F5D50;
    --color-shadow:        rgba(75,46,131,0.12);
    --color-shadow-hover:  rgba(75,46,131,0.22);
    --hero-gradient:       linear-gradient(135deg, #4B2E83 0%, #2F5D50 100%);
    --vision-gradient:     linear-gradient(135deg, #e8e0f0 0%, #F2F2F2 100%);
}

/* Theme 4: Clean, Modern, Minimal */
[data-theme="modern"] {
    --color-primary:       #0F3D63;
    --color-primary-mid:   #5DA9E9;
    --color-primary-light: #5DA9E9;
    --color-primary-pale:  #daeeff;
    --color-primary-wash:  #eef6ff;
    --color-accent:        #E76F51;
    --color-bg:            #E9ECEF;
    --color-bg-light:      #dee2e6;
    --color-text:          #2A2A2A;
    --color-text-muted:    #5a6472;
    --color-text-dark:     #0F3D63;
    --color-heading:       #0F3D63;
    --color-card-border:   #5DA9E9;
    --color-shadow:        rgba(15,61,99,0.12);
    --color-shadow-hover:  rgba(15,61,99,0.22);
    --hero-gradient:       linear-gradient(135deg, #5DA9E9 0%, #0F3D63 100%);
    --vision-gradient:     linear-gradient(135deg, #daeeff 0%, #E9ECEF 100%);
}

/* Theme 5: Deep Teal + Gold (default) */
:root,
[data-theme="teal-gold"] {
    --color-primary:       #1B4D5C;
    --color-primary-mid:   #2A7F8E;
    --color-primary-light: #4DB8C7;
    --color-primary-pale:  #c8e8ed;
    --color-primary-wash:  #eaf5f7;
    --color-accent:        #D4A437;
    --color-bg:            #FAFAF7;
    --color-bg-light:      #f0efea;
    --color-text:          #2C2C2C;
    --color-text-muted:    #5a6460;
    --color-text-dark:     #1B4D5C;
    --color-heading:       #1B4D5C;
    --color-card-border:   #2A7F8E;
    --color-shadow:        rgba(27,77,92,0.12);
    --color-shadow-hover:  rgba(27,77,92,0.22);
    --hero-gradient:       linear-gradient(135deg, #2A7F8E 0%, #1B4D5C 100%);
    --vision-gradient:     linear-gradient(135deg, #c8e8ed 0%, #eaf5f7 100%);
}

/* Theme 6: Warm Navy + Terracotta */
[data-theme="navy-terracotta"] {
    --color-primary:       #1E2D4A;
    --color-primary-mid:   #3A5A8C;
    --color-primary-light: #6B8FBF;
    --color-primary-pale:  #d0dcea;
    --color-primary-wash:  #edf1f6;
    --color-accent:        #C4653A;
    --color-bg:            #F8F6F3;
    --color-bg-light:      #ede9e3;
    --color-text:          #2B2B2B;
    --color-text-muted:    #6b5e52;
    --color-text-dark:     #1E2D4A;
    --color-heading:       #1E2D4A;
    --color-card-border:   #3A5A8C;
    --color-shadow:        rgba(30,45,74,0.12);
    --color-shadow-hover:  rgba(30,45,74,0.22);
    --hero-gradient:       linear-gradient(135deg, #3A5A8C 0%, #1E2D4A 100%);
    --vision-gradient:     linear-gradient(135deg, #d0dcea 0%, #F8F6F3 100%);
}

/* Theme 7: Forest + Amber */
[data-theme="forest-amber"] {
    --color-primary:       #1A3C34;
    --color-primary-mid:   #2D6A5A;
    --color-primary-light: #5A9E8F;
    --color-primary-pale:  #c4ddd6;
    --color-primary-wash:  #eaf3f0;
    --color-accent:        #E8A838;
    --color-bg:            #F7F5F0;
    --color-bg-light:      #ece8e0;
    --color-text:          #2A2A2A;
    --color-text-muted:    #5a6458;
    --color-text-dark:     #1A3C34;
    --color-heading:       #1A3C34;
    --color-card-border:   #2D6A5A;
    --color-shadow:        rgba(26,60,52,0.12);
    --color-shadow-hover:  rgba(26,60,52,0.22);
    --hero-gradient:       linear-gradient(135deg, #2D6A5A 0%, #1A3C34 100%);
    --vision-gradient:     linear-gradient(135deg, #c4ddd6 0%, #F7F5F0 100%);
}

/* Theme 8: Plum + Copper */
[data-theme="plum-copper"] {
    --color-primary:       #3D1F47;
    --color-primary-mid:   #6B3FA0;
    --color-primary-light: #9B7CC4;
    --color-primary-pale:  #ddd0ea;
    --color-primary-wash:  #f2eef7;
    --color-accent:        #C87941;
    --color-bg:            #FAF8F5;
    --color-bg-light:      #ede8e3;
    --color-text:          #2C2C2C;
    --color-text-muted:    #6b5e6e;
    --color-text-dark:     #3D1F47;
    --color-heading:       #3D1F47;
    --color-card-border:   #6B3FA0;
    --color-shadow:        rgba(61,31,71,0.12);
    --color-shadow-hover:  rgba(61,31,71,0.22);
    --hero-gradient:       linear-gradient(135deg, #6B3FA0 0%, #3D1F47 100%);
    --vision-gradient:     linear-gradient(135deg, #ddd0ea 0%, #FAF8F5 100%);
}

/* Theme 9: Slate + Saffron */
[data-theme="slate-saffron"] {
    --color-primary:       #2C3E50;
    --color-primary-mid:   #4A6B8A;
    --color-primary-light: #7FA3C4;
    --color-primary-pale:  #cddae6;
    --color-primary-wash:  #edf2f6;
    --color-accent:        #E6A817;
    --color-bg:            #F5F5F2;
    --color-bg-light:      #e8e8e3;
    --color-text:          #2A2A2A;
    --color-text-muted:    #5a6068;
    --color-text-dark:     #2C3E50;
    --color-heading:       #2C3E50;
    --color-card-border:   #4A6B8A;
    --color-shadow:        rgba(44,62,80,0.12);
    --color-shadow-hover:  rgba(44,62,80,0.22);
    --hero-gradient:       linear-gradient(135deg, #4A6B8A 0%, #2C3E50 100%);
    --vision-gradient:     linear-gradient(135deg, #cddae6 0%, #F5F5F2 100%);
}

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

/* Prevent horizontal overflow on mobile */
html, body {
    overflow-x: hidden;
}

/* Constrain all images by default */
img {
    max-width: 100%;
    height: auto;
}

/* Smoother tap behaviour on touch devices */
button, a, .lang-btn, nav a, .quick-link-card, .link-card, .visit-option {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Typographic Scale ───────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-heading);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

h1 { font-size: 3rem;    }   /* 54px */
h2 { font-size: 2.25rem; }   /* 40px */
h3 { font-size: 1.75rem; }   /* 31px */
h4 { font-size: 1.35rem; }   /* 24px */
h5 { font-size: 1.15rem; }   /* 21px */
h6 { font-size: 1rem;    }   /* 18px */

p {
    margin-bottom: 1.25rem;
    max-width: 72ch; /* optimal reading line length */
}

/* Remove max-width for p inside cards/grids where full width is needed */
.event-card p,
.service-card p,
.contact-card p,
.quick-link-card p,
.link-card p,
.vision-mission-box p,
.reading-card p,
.section .lang-en p,
.section .lang-zh p,
.section .lang-hi p {
    max-width: none;
}

strong { font-weight: 600; }

small  { font-size: 0.875rem; line-height: 1.5; }

/* ── Button Base ─────────────────────────────────────────── */
button,
.lang-btn,
.reading-link-btn,
.reading-version-btn,
.reading-translations-links a {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ─────────────────────────────────────────────────────────── */

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Grid System ─────────────────────────────────────────── */
.grid {
    display: grid;
    gap: 2rem;
}

/* Column presets */
.grid-2  { grid-template-columns: repeat(2, 1fr); }
.grid-3  { grid-template-columns: repeat(3, 1fr); }
.grid-4  { grid-template-columns: repeat(4, 1fr); }

/* Auto-fit responsive grids */
.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-auto-md { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-auto-lg { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }

/* Gap variants */
.gap-sm  { gap: 1rem; }
.gap-md  { gap: 2rem; }
.gap-lg  { gap: 3rem; }

/* Alignment helpers */
.align-start   { align-items: start; }
.align-center  { align-items: center; }
.align-stretch { align-items: stretch; }

/* Collapse to single column on mobile - handled in consolidated mobile section below */

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
/* ─────────────────────────────────────────────────────────── */

/* Header */
header {
    background: var(--color-primary);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px var(--color-shadow);
}

/* Offset anchor scroll targets for sticky header */
[id] {
    scroll-margin-top: 200px;
}

.header-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    color: white;
    text-align: center;
    line-height: 1.2;
}

/* Logo and Title */
.logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0; /* allow text to shrink */
}

.church-logo {
    height: 80px;
    width: auto;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Header right-side controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.4rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    font-family: inherit;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background: var(--color-primary-mid);
    border-color: var(--color-primary-mid);
}

/* Hamburger button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    width: 40px;
    height: 40px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; }
.nav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Language visibility */
.lang-en, .lang-zh, .lang-hi {
    display: none;
}

nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s;
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s;
}

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

nav a:hover {
    color: var(--color-primary-pale);
}

nav a.active-link {
    color: var(--color-primary-pale);
}

/* Hero Section */
.hero {
    background: var(--hero-gradient);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

/* Ensure all text inside hero is white */
.hero h1, .hero h2, .hero h3, .hero h4, .hero h5, .hero h6 {
    color: white;
}

.hero p {
    color: rgba(255, 255, 255, 0.92);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    animation: slideInDown 0.8s ease-out;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    animation: slideInUp 0.8s ease-out;
}

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

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

/* Sections */
.section {
    padding: 5rem 0;
}

.section + .section {
    border-top: 1px solid var(--color-primary-pale);
}

.section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--color-heading);
    letter-spacing: -0.03em;
}

.bg-light {
    background: var(--color-bg-light);
}

/* Content Editable Areas */
.content-editable {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section.bg-light .content-editable {
    background: white;
}

/* Service Card */
.service-card {
    background: var(--color-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-card-border);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 8px 16px var(--color-shadow-hover);
    transform: translateX(5px);
}

.service-card h3 {
    color: var(--color-primary-mid);
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 0.5rem;
}

/* Events */
.events-list {
    display: grid;
    gap: 1.5rem;
}

.event-card {
    background: var(--color-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-card-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    box-shadow: 0 8px 16px var(--color-shadow-hover);
    border-left-width: 6px;
}

.event-card h3 {
    color: var(--color-primary-mid);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.event-card:hover h3 {
    color: var(--color-primary);
}

.event-date {
    color: var(--color-text-muted);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-info p {
    margin-bottom: 1rem;
}

/* Map Container */
.map-container {
    margin-top: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.map-container h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.map-container iframe {
    border-radius: 8px;
    width: 100%;
}

.map-note {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 0;
}

/* Responsive Design - see consolidated mobile section at end of file */

/* Fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-primary-mid);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--color-shadow);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px var(--color-shadow-hover);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* Loading animation for language switch */
.lang-en, .lang-zh, .lang-hi {
    animation: fadeIn 0.3s ease-in;
}

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

/* Enhanced button hover effects */
.lang-btn {
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.lang-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Responsive adjustments for animations - see consolidated mobile section */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero {
        transform: none !important;
    }
    
    .scroll-to-top:hover {
        transform: none;
    }
}

/* Vision and Mission Boxes */
.vision-mission-box {
    background: var(--vision-gradient);
    padding: 2.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border-left: 5px solid var(--color-primary-mid);
    box-shadow: 0 2px 8px var(--color-shadow);
    transition: all 0.3s ease;
}

.vision-mission-box:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px var(--color-shadow-hover);
}

.vision-mission-box h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.vision-mission-box p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text-dark);
}

/* Beliefs and Values Section */
.beliefs-values-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(49,49,120,0.1);
}

.beliefs-values-section h3 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    border-bottom: 2px solid var(--color-card-border);
    padding-bottom: 0.5rem;
}

.beliefs-values-section ol {
    margin-left: 1.5rem;
    line-height: 1.9;
}

.beliefs-values-section li {
    margin-bottom: 1rem;
    color: var(--color-text-dark);
    padding-left: 0.5rem;
}

.beliefs-values-section li::marker {
    color: var(--color-primary-mid);
    font-weight: bold;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Featured Event Highlight */
.featured-event {
    background: var(--color-primary-wash);
    border-left-color: var(--color-primary-mid);
    border-left-width: 6px;
    position: relative;
}

.featured-event::before {
    content: '★';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--color-primary-mid);
}

.featured-event h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
}

/* Responsive adjustments - see consolidated mobile section */

/* Page Hero */
.page-hero {
    background: var(--hero-gradient);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-hero h2 {
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.03em;
    color: white;
}

/* Intro Text */
.intro-text {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 400;
    max-width: none;
}

/* Quick Links Grid */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.quick-link-card {
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border-left: 4px solid var(--color-card-border);
    box-shadow: 0 2px 8px var(--color-shadow);
    transition: all 0.3s ease;
    display: block;
}

.quick-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px var(--color-shadow-hover);
    border-left-width: 6px;
}

.quick-link-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.quick-link-card p {
    color: var(--color-text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.quick-link-card.featured {
    background: var(--color-primary-wash);
    border-left-color: var(--color-primary-mid);
    position: relative;
}

.quick-link-card.featured::before {
    content: '★';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--color-primary-mid);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--color-shadow);
    border-left: 4px solid var(--color-card-border);
}

.contact-card h3 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Active Page Link */
nav a.active-page {
    color: var(--color-primary-pale);
    font-weight: bold;
}

nav a.active-page::after {
    width: 100%;
}

/* Responsive adjustments for new elements - see consolidated mobile section */

/* Links Page */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.link-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border: 2px solid var(--color-primary-pale);
    box-shadow: 0 2px 8px var(--color-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-mid) 0%, var(--color-primary-light) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.link-card:hover::before {
    transform: scaleX(1);
}

.link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px var(--color-shadow-hover);
    border-color: var(--color-primary-light);
}

.link-logo-placeholder {
    width: 120px;
    height: 120px;
    background: var(--vision-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(49,49,120,0.1);
}

.link-card:hover .link-logo-placeholder {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(49,49,120,0.2);
}

.link-logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-primary-mid);
}

.link-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.link-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.link-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    background: white;
    padding: 10px;
    border-radius: 8px;
}

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

.link-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(49,49,120,0.1);
}

.link-card:hover .link-logo {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(49,49,120,0.2);
}

/* Links page responsive - see consolidated mobile section */

/* Slogan Banner */
.slogan-banner {
    background: linear-gradient(135deg, var(--color-primary-mid) 0%, var(--color-primary-light) 50%, var(--color-primary-mid) 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.slogan-banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.slogan-banner-link:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.slogan-banner-link:hover .slogan-icon,
.slogan-banner-link:hover .slogan-image {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.slogan-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(207,207,232,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(161,161,206,0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.slogan-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.slogan-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.slogan-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    animation: float 3s ease-in-out infinite;
}

.slogan-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    animation: float 3s ease-in-out infinite;
}

.slogan-item:nth-child(1) .slogan-icon,
.slogan-item:nth-child(1) .slogan-image {
    animation-delay: 0s;
}

.slogan-item:nth-child(3) .slogan-icon,
.slogan-item:nth-child(3) .slogan-image {
    animation-delay: 0.5s;
}

.slogan-item:nth-child(5) .slogan-icon,
.slogan-item:nth-child(5) .slogan-image {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

.slogan-text {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.01em;
}

.slogan-divider {
    color: var(--color-primary-pale);
    font-size: 2rem;
    font-weight: bold;
    opacity: 0.6;
}

/* Slogan banner responsive - see consolidated mobile section */

@media (prefers-reduced-motion: reduce) {
    .slogan-icon {
        animation: none;
    }
    
    .slogan-item {
        animation: none;
    }
}


/* ══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE (consolidated)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Base typography */
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.35rem; }
    h4 { font-size: 1.15rem; }
    
    /* Container */
    .container { padding: 0 16px; }
    
    /* Header */
    .header-top {
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
    }
    
    .church-logo {
        height: 60px;
        padding: 6px;
    }
    
    header h1 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .lang-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .language-switcher {
        gap: 0.5rem;
    }
    
    /* Hamburger menu */
    .nav-toggle {
        display: flex;
    }
    
    /* Mobile nav */
    nav {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        background: var(--color-primary-mid);
        border-radius: 8px;
        margin-top: 0.75rem;
        padding: 0.5rem 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    
    nav.nav-open {
        display: flex;
    }
    
    nav a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 0.95rem;
    }
    
    nav a:last-child {
        border-bottom: none;
    }
    
    nav a::after {
        display: none;
    }
    
    /* Hero */
    .hero {
        padding: 2.5rem 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* Page hero */
    .page-hero {
        padding: 2.5rem 0;
    }
    
    .page-hero h2 {
        font-size: 2rem;
    }
    
    /* Sections */
    .section {
        padding: 3rem 0;
    }
    
    .section h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    /* Cards */
    .event-card,
    .service-card,
    .contact-card,
    .quick-link-card {
        padding: 1.5rem;
    }
    
    .vision-mission-box,
    .beliefs-values-section {
        padding: 1.5rem;
    }
    
    .beliefs-values-section ol {
        margin-left: 1rem;
    }
    
    /* Grids */
    .services-grid,
    .quick-links,
    .contact-grid,
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Link logos */
    .link-logo-placeholder,
    .link-logo {
        width: 100px;
        height: 100px;
    }
    
    /* Slogan banner */
    .slogan-banner {
        padding: 2rem 0;
    }
    
    .slogan-content {
        gap: 1.5rem;
    }
    
    .slogan-divider {
        display: none;
    }
    
    .slogan-image {
        width: 60px;
        height: 60px;
    }
    
    .slogan-text {
        font-size: 1.1rem;
    }
    
    /* Scroll to top */
    .scroll-to-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    /* Maps */
    .map-container iframe {
        height: 300px;
    }
    
    /* Touch targets - minimum 44x44px */
    button, .lang-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
}

/* Tablet breakpoint */
@media (max-width: 1024px) and (min-width: 769px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .church-logo {
        height: 100px;
    }
    
    header h1 {
        font-size: 1.25rem;
    }
}

/* Small mobile (< 480px) */
@media (max-width: 480px) {
    body { font-size: 15px; }
    
    .container { padding: 0 16px; }
    
    .church-logo { height: 50px; }
    
    header h1 { font-size: 0.85rem; }
    
    .hero h2 { font-size: 1.75rem; }
    .page-hero h2 { font-size: 1.75rem; }
    
    .section { padding: 2rem 0; }
    
    .quick-link-card,
    .event-card,
    .service-card,
    .contact-card {
        padding: 1.25rem;
    }
    
    .slogan-image {
        width: 50px;
        height: 50px;
    }
    
    .slogan-text {
        font-size: 1rem;
    }
    
    /* Stack Easter table for narrow screens */
    .easter-table,
    .easter-table tbody,
    .easter-table tr,
    .easter-table td {
        display: block;
        width: 100%;
    }
    
    .easter-table tr {
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--color-primary-pale, #e0e0e0);
    }
    
    .easter-table tr:last-child {
        border-bottom: none;
    }
    
    .easter-table td {
        padding: 0.15rem 0;
        border-bottom: none;
        font-size: 0.9rem;
    }
}

/* ── Reading Card Styles ─────────────────────────────────── */
.readings-heading {
    text-align: center;
    color: var(--color-primary-mid);
    margin-bottom: 1.5rem;
}

.readings-error {
    text-align: center;
    padding: 2rem;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffc107;
}

.readings-error a {
    color: var(--color-primary-mid);
    text-decoration: underline;
}

.readings-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-primary-pale);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.readings-footer a {
    color: var(--color-primary-mid);
    text-decoration: underline;
}

.reading-card {
    border-left: 4px solid var(--color-card-border);
    padding: 1.5rem 0 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
}

.reading-card--alt {
    border-left-color: var(--color-primary-light);
}

.reading-card h4 {
    color: var(--color-primary-mid);
    margin-bottom: 0.25rem;
}

.reading-card .reading-type {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.reading-bible-text {
    line-height: 1.85;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.reading-bible-text sup {
    font-size: 0.65em;
    font-weight: 700;
    color: inherit;
    margin-right: 1px;
    vertical-align: super;
    line-height: 0;
}

.reading-translation {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

.reading-link-msg {
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.reading-link-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-primary-mid);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.reading-link-btn:hover {
    background: var(--color-primary);
}

.reading-season {
    font-size: 1.05rem;
    color: var(--color-primary-mid);
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.reading-translations {
    margin-top: 0.75rem;
}

.reading-translations p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.reading-translations-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.reading-version-btn,
.reading-translations-links a {
    padding: 0.4rem 0.75rem;
    background: var(--color-primary-mid);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
}

.reading-translations-links a:hover {
    background: var(--color-primary);
}

.alt-readings-header {
    color: var(--color-primary-light);
    margin-bottom: 1rem;
}

.reading-date {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1rem;
}
/* ─────────────────────────────────────────────────────────── */

/* ── Theme Switcher (temporary) ──────────────────────────── */
.theme-switcher {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border: 1px solid #ddd;
    max-height: 80vh;
    overflow-y: auto;
}

.theme-switcher-label {
    font-size: 0.7rem;
    text-align: center;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.theme-btn:hover {
    transform: scale(1.15);
}

.theme-btn.active {
    border-color: #333;
}

/* ── Easter Popup (temporary) ────────────────────────────── */
.easter-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.easter-popup-content {
    background: var(--color-bg, #fff);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    text-align: center;
}

.easter-popup-content h3 {
    color: var(--color-primary, #313178);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.easter-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--color-text-muted, #666);
    line-height: 1;
    padding: 0.25rem;
    width: auto;
    height: auto;
    min-height: 0;
}

.easter-popup-close:hover {
    color: var(--color-text, #333);
}

.easter-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    text-align: left;
}

.easter-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--color-primary-pale, #e0e0e0);
    font-size: 0.95rem;
}

.easter-table tr:last-child td {
    border-bottom: none;
}

.easter-table td:first-child {
    font-weight: 600;
    color: var(--color-heading, #313178);
}

.easter-table td:nth-child(2) {
    font-weight: 600;
    white-space: nowrap;
}

.easter-welcome {
    font-style: italic;
    color: var(--color-text-muted, #666);
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .easter-popup-content {
        padding: 1.5rem;
    }
    
    .easter-popup-content h3 {
        font-size: 1.25rem;
    }
    
    .easter-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
    }
}

/* ── Easter Banner Button (temporary) ────────────────────── */
.easter-banner {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    background: var(--color-primary-wash, #e8e8f5);
}

.easter-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary-mid, #4e4e94);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px var(--color-shadow, rgba(0,0,0,0.15));
}

.easter-banner-btn:hover {
    background: var(--color-primary, #313178);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .easter-banner-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.25rem;
    }
}

/* ── Plan Your Visit Popup ───────────────────────────────── */
.visit-popup-content {
    max-width: 520px;
}

.visit-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.visit-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.visit-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--color-primary-pale, #e0e0e0);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.visit-option:hover {
    background: var(--color-primary-wash, #f0f0ff);
    border-color: var(--color-card-border, #7474b0);
    transform: translateX(4px);
}

.visit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.1rem;
}

.visit-option-title {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-heading, #313178);
    margin-bottom: 0.2rem;
}

.visit-option-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted, #666);
    line-height: 1.4;
}

@media (max-width: 480px) {
    .visit-option {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .visit-icon {
        font-size: 1.25rem;
    }
    
    .visit-option-title {
        font-size: 0.9rem;
    }
    
    .visit-option-desc {
        font-size: 0.8rem;
    }
}

/* ── Cypress Community Club Logo ─────────────────────────── */
.cypress-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    float: right;
    margin: 0 0 0.5rem 1rem;
}

@media (max-width: 480px) {
    .cypress-logo {
        width: 48px;
        height: 48px;
    }
}
