/* ============================================
   Bellevue Methodist Church - Responsive Styles
   Mobile-first, optimized for iPhone
   ============================================ */

/* --- Mobile Base (320px+) --- */

/* Header: stack for mobile */
@media (max-width: 767px) {
    .header-inner {
        height: 60px;
        padding: 0 16px;
    }

    .church-name {
        font-size: 0.95rem;
    }

    .church-location {
        font-size: 0.65rem;
    }

    .logo-cross {
        font-size: 1.2rem;
    }

    /* Show hamburger, hide nav */
    .nav-toggle {
        display: block;
        order: 3;
    }

    .main-nav {
        order: 2;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px var(--shadow);
        flex-direction: column;
        padding: 16px 0;
        gap: 0;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 12px 24px;
        font-size: 1rem;
        border-radius: 0;
    }

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

    /* Theme switcher */
    .theme-switcher {
        order: 1;
        margin-right: auto;
        margin-left: 12px;
    }

    .theme-switcher select {
        font-size: 0.7rem;
        padding: 4px 6px;
    }

    /* Hero */
    .hero {
        padding: 100px 20px 70px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-cross {
        font-size: 2rem;
    }

    .hero-service-time {
        padding: 16px 28px;
    }

    .hero-service-time .service-time {
        font-size: 1.6rem;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 32px;
    }

    /* About - single column */
    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image-placeholder {
        order: -1;
    }

    .placeholder-box {
        min-height: 200px;
    }

    /* Service cards */
    .service-cards {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        padding: 28px 20px;
    }

    .service-time-display {
        font-size: 1.8rem;
    }

    /* Pastor - single column */
    .pastor-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .pastor-image-wrapper {
        max-width: 220px;
        margin: 0 auto;
    }

    .pastor-text {
        text-align: left;
    }

    /* Location - single column */
    .location-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .map-container iframe {
        height: 280px;
    }

    /* Footer */
    .site-footer {
        padding: 36px 0 20px;
    }

    .footer-name {
        font-size: 1rem;
    }
}


/* --- Small phones (under 375px) --- */
@media (max-width: 374px) {
    .header-inner {
        gap: 4px;
    }

    .church-name {
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .service-time-display {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }
}


/* --- Tablet (768px - 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
    .header-inner {
        height: 65px;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 6px 8px;
    }

    .hero {
        padding: 140px 32px 90px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .about-content {
        gap: 32px;
    }

    .pastor-content {
        grid-template-columns: 220px 1fr;
        gap: 32px;
    }

    .location-content {
        gap: 32px;
    }
}


/* --- Desktop (1024px+) --- */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 8px 14px;
    }
}


/* --- Large Desktop (1200px+) --- */
@media (min-width: 1200px) {
    .container {
        max-width: 1100px;
    }
}


/* --- Focus Styles (Accessibility) --- */
a:focus-visible,
button:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

/* --- Print Styles --- */
@media print {
    .site-header,
    .nav-toggle,
    .theme-switcher,
    .hero-cta,
    .map-container {
        display: none;
    }

    .hero {
        padding: 20px;
        background: none !important;
        color: #000;
    }

    .section {
        padding: 20px 0;
        background: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
