/* ============================================
   Bellevue Methodist Church - Theme Styles
   Three switchable themes via body class
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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


/* ============================================
   THEME 1: Simple & Warm
   Warm earth tones, traditional, welcoming
   ============================================ */
.theme-warm {
    --bg-primary: #FDF8F0;
    --bg-secondary: #F5EDE0;
    --bg-accent: #E8D5B7;
    --text-primary: #3E2723;
    --text-secondary: #5D4037;
    --text-light: #8D6E63;
    --accent: #BF8A30;
    --accent-hover: #A6751A;
    --accent-light: #F0E0C0;
    --white: #FFFFFF;
    --border: #D7CCC8;
    --shadow: rgba(62, 39, 35, 0.1);
    --shadow-strong: rgba(62, 39, 35, 0.2);
    --hero-bg: linear-gradient(135deg, #5D4037 0%, #3E2723 50%, #4E342E 100%);
    --hero-text: #FDF8F0;
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --radius: 8px;
    --section-pattern: none;
}


/* ============================================
   THEME 2: Modern & Clean
   Contemporary, whites/navy/gold, minimal
   ============================================ */
.theme-modern {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-accent: #E9ECEF;
    --text-primary: #1B2A4A;
    --text-secondary: #3D5280;
    --text-light: #6C7A96;
    --accent: #C9A227;
    --accent-hover: #B08D1A;
    --accent-light: #FFF8E1;
    --white: #FFFFFF;
    --border: #DEE2E6;
    --shadow: rgba(27, 42, 74, 0.08);
    --shadow-strong: rgba(27, 42, 74, 0.15);
    --hero-bg: linear-gradient(160deg, #1B2A4A 0%, #2C3E6B 60%, #1B2A4A 100%);
    --hero-text: #FFFFFF;
    --font-heading: system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
    --radius: 4px;
    --section-pattern: none;
}


/* ============================================
   THEME 3: Classic Country
   Rustic Texas charm, barn red, wood tones
   ============================================ */
.theme-country {
    --bg-primary: #FAF6F0;
    --bg-secondary: #F0E8DA;
    --bg-accent: #E5D9C5;
    --text-primary: #2C1810;
    --text-secondary: #4A3228;
    --text-light: #7A6254;
    --accent: #8B2500;
    --accent-hover: #6B1C00;
    --accent-light: #F5E0D5;
    --white: #FFFEF9;
    --border: #C9B99A;
    --shadow: rgba(44, 24, 16, 0.12);
    --shadow-strong: rgba(44, 24, 16, 0.2);
    --hero-bg: linear-gradient(135deg, #4A3228 0%, #2C1810 40%, #3A2518 100%);
    --hero-text: #FAF6F0;
    --font-heading: Georgia, 'Palatino Linotype', serif;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --radius: 6px;
    --section-pattern:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(0,0,0,0.015) 40px,
            rgba(0,0,0,0.015) 41px
        );
}


/* ============================================
   SHARED LAYOUT STYLES
   Applied regardless of theme
   ============================================ */

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.3;
}


/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-cross {
    font-size: 1.5rem;
    color: var(--accent);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.church-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.church-location {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--accent);
    background-color: var(--bg-secondary);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: background-color 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: absolute;
    left: 0;
    transition: transform 0.3s;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Theme selector */
.theme-switcher {
    flex-shrink: 0;
}

.theme-switcher select {
    font-family: var(--font-body);
    font-size: 0.8rem;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
}

.theme-switcher select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}


/* --- Hero Section --- */
.hero {
    background: var(--hero-bg);
    color: var(--hero-text);
    text-align: center;
    padding: 160px 24px 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.hero-cross {
    font-size: 3rem;
    opacity: 0.4;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-service-time {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 20px 40px;
    margin-bottom: 30px;
}

.service-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.hero-service-time .service-time {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.hero-cta {
    display: inline-block;
    color: var(--hero-text);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 32px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, border-color 0.3s;
}

.hero-cta:hover,
.hero-cta:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    color: var(--hero-text);
}


/* --- Section Base --- */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: var(--bg-secondary);
    background-image: var(--section-pattern);
}

.section:nth-child(odd) {
    background-color: var(--bg-primary);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 16px auto 0;
    border-radius: 2px;
}


/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.about-text h3 {
    font-size: 1.3rem;
    margin: 24px 0 12px;
    color: var(--text-primary);
}

.expect-list {
    list-style: none;
    padding: 0;
}

.expect-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--text-secondary);
}

.expect-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.placeholder-box {
    background: var(--bg-accent);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    color: var(--text-light);
}

.placeholder-cross {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 12px;
}

.placeholder-text {
    font-size: 0.9rem;
    opacity: 0.6;
}


/* --- Services Section --- */
.service-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 12px var(--shadow);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-time-display {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-note {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}


/* --- Pastor Section --- */
.pastor-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

.pastor-image-wrapper {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px var(--shadow);
    border: 1px solid var(--border);
}

img.pastor-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.pastor-text h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pastor-role {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
}

.pastor-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}


/* --- Location Section --- */
.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.location-info address {
    font-style: normal;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.location-info address strong {
    color: var(--text-primary);
}

.directions h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.directions p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    border: 1px solid var(--border);
}

.map-container iframe {
    display: block;
}


/* --- Contact Section --- */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    margin-bottom: 32px;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-item address {
    font-style: normal;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.contact-item a {
    color: var(--accent);
}

.contact-item a:hover {
    color: var(--accent-hover);
}


/* --- Footer --- */
.site-footer {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 48px 0 24px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-cross {
    font-size: 1.5rem;
    opacity: 0.5;
}

.footer-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-address,
.footer-service {
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-copyright {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}
