/* ============================================
   Ebenezer Church - Modern Website Styles
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --color-primary: #1a365d;
    --color-primary-light: #2c5282;
    --color-primary-dark: #0f2440;
    --color-accent: #c9a227;
    --color-accent-light: #d4b84a;

    --color-text: #1a1a1a;
    --color-text-light: #4a5568;
    --color-text-muted: #718096;

    --color-bg: #ffffff;
    --color-bg-alt: #f7f8fa;
    --color-bg-dark: #1a1a1a;

    --color-border: #e2e8f0;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Shadows */
    --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 50px rgba(0,0,0,0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

.lead {
    font-size: 1.25rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-3xl) 0;
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

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

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

.btn-outline-light {
    background: transparent;
    color: white;
    border-color: white;
}

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

/* Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0.5rem var(--space-md);
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

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

.nav-links .btn {
    padding: 0.625rem 1.25rem;
}

/* Ensure button colors aren't overridden by nav link color */
.nav-links .btn-primary {
    color: white;
}

.nav-links .btn-primary:hover {
    color: white;
}

.nav-links .btn-outline,
.nav-links .btn-secondary {
    color: var(--color-primary);
}

.nav-links .btn-outline:hover,
.nav-links .btn-secondary:hover {
    color: white;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 54, 93, 0.7) 0%,
        rgba(26, 54, 93, 0.5) 50%,
        rgba(26, 54, 93, 0.8) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: var(--space-2xl);
    max-width: 800px;
}

.hero-tagline {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

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

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: white;
    opacity: 0.7;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: white;
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Mission Section */
.section-mission {
    background: var(--color-bg-alt);
    text-align: center;
}

.mission-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.mission-text {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.5;
    color: var(--color-text);
}

.mission-text em {
    color: var(--color-primary);
    font-style: normal;
    font-weight: 600;
}

/* Watch Section */
.section-watch {
    background: var(--color-bg);
}

.video-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

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

.video-info h3 {
    margin-bottom: var(--space-xs);
}

.video-info p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

/* Page Header */
.page-header {
    padding-top: calc(70px + var(--space-2xl));
    padding-bottom: var(--space-xl);
    background: var(--color-bg-alt);
    text-align: center;
}

.page-header h1 {
    margin-bottom: var(--space-xs);
}

.page-header p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

/* Sermons Page */
.section-sermons {
    padding-top: var(--space-xl);
}

.sermons-list {
    max-width: 900px;
    margin: 0 auto;
}

.sermons-list iframe {
    display: block;
    border-radius: 8px;
}

/* About Section */
.section-about {
    background: var(--color-bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content p {
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
}

.about-content .lead {
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.card {
    background: var(--color-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

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

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

.card-content h3 {
    margin-bottom: var(--space-xs);
}

.card-content p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.card-link {
    font-weight: 500;
    color: var(--color-primary);
    transition: gap var(--transition-fast);
}

.card-link:hover {
    color: var(--color-primary-dark);
}

/* Staff Section */
.section-staff {
    background: var(--color-bg);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-lg);
}

.staff-card {
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform var(--transition-base);
}

.staff-card:hover {
    transform: translateY(-4px);
}

.staff-image {
    width: 160px;
    height: 160px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

/* Adjust photo positioning for individual staff members */
[data-staff="glenn"] .staff-image img {
    object-position: center 15%;
}

[data-staff="robbie"] .staff-image img {
    object-position: center 20%;
}

[data-staff="greg"] .staff-image img {
    object-position: center 25%;
}

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

.staff-info h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-bg-alt);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: var(--color-text);
    z-index: 10;
}

.modal-close:hover {
    background: var(--color-primary);
    color: white;
}

/* Staff Modal */
.modal-staff {
    max-width: 600px;
}

.staff-modal-body {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl);
}

.staff-modal-image {
    flex-shrink: 0;
}

.staff-modal-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.staff-modal-info {
    flex: 1;
}

.staff-modal-info h2 {
    margin-bottom: var(--space-xs);
    font-size: 1.5rem;
}

.staff-modal-title {
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.staff-modal-bio {
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

@media (max-width: 600px) {
    .staff-modal-body {
        flex-direction: column;
        text-align: center;
    }

    .staff-modal-image {
        margin: 0 auto;
    }
}

/* Event Modal */
.modal-event {
    max-width: 650px;
}

.event-modal-body {
    padding: var(--space-xl);
}

.event-modal-body h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    padding-right: var(--space-xl);
}

.event-modal-intro {
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

.event-modal-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.event-modal-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.event-modal-contact h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.contact-card {
    background: var(--color-bg-alt);
    padding: var(--space-md);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.contact-card strong {
    color: var(--color-text);
}

.contact-card span {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.contact-card a {
    color: var(--color-primary);
    font-size: 0.9rem;
}

.contact-phone {
    text-align: center;
    color: var(--color-text-light);
}

.contact-phone a {
    color: var(--color-primary);
    font-weight: 500;
}

@media (max-width: 500px) {
    .event-modal-images,
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

/* Venue Section */
.section-venue {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.venue-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.venue-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.venue-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(26, 54, 93, 0.75) 0%,
        rgba(26, 54, 93, 0.5) 50%,
        rgba(26, 54, 93, 0.25) 100%
    );
    z-index: 1;
}

.venue-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 600px;
}

.venue-tagline {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
}

.venue-content h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.venue-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--space-lg);
}

.venue-features {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9375rem;
}

.feature-icon {
    font-size: 1.25rem;
}

.venue-ctas {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Visit Section */
.section-visit {
    background: var(--color-bg);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.visit-content .lead {
    margin-bottom: var(--space-lg);
}

.visit-details {
    margin-bottom: var(--space-lg);
}

.visit-item {
    margin-bottom: var(--space-md);
}

.visit-item h4 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
}

.visit-item p {
    color: var(--color-text-light);
}

.visit-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Give Section */
.section-give {
    position: relative;
    text-align: center;
    overflow: hidden;
}

.give-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.give-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 70%;
}

.give-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 54, 93, 0.85);
    z-index: 1;
}

.section-give .container {
    position: relative;
    z-index: 2;
}

.give-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.give-content h2 {
    color: white;
}

.give-content .lead {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
}

.section-give .btn-primary {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

.section-give .btn-primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary-dark);
}

.give-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.give-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.give-qr img {
    width: 100px;
    height: 100px;
    background: white;
    padding: 8px;
    border-radius: 8px;
}

.give-qr span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Social Feed Section */
.section-social {
    background: var(--color-bg-alt);
    padding: var(--space-2xl) 0;
}

.section-social .section-title {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.section-social .section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.social-feed {
    max-width: 100%;
}

/* Fix Juicer modal positioning */
.juicer-feed .j-modal,
.juicer-feed .j-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

.juicer-feed .j-modal .j-modal-content {
    max-height: 90vh;
    margin-top: 5vh;
}

/* Footer */
.footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    height: 40px;
    margin-bottom: var(--space-sm);
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.875rem;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: white;
}

.footer h4 {
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-links a {
    font-size: 0.9375rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-contact p {
    font-size: 0.9375rem;
    margin-bottom: var(--space-xs);
}

.footer-contact a {
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-contact a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

/* ===========================================
   RESPONSIVE DESIGN - Mobile First Approach
   =========================================== */

/*
   Base styles above are mobile-first.
   We use min-width queries to progressively enhance for larger screens.
*/

/* Mobile Base Overrides (default mobile styles) */
.nav-toggle {
    display: flex;
}

.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-xs);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--color-border);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
}

.nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-links li {
    width: 100%;
}

.nav-links a:not(.btn) {
    display: block;
    padding: var(--space-sm) var(--space-sm);
    border-radius: 8px;
    transition: background var(--transition-fast);
}

.nav-links a:not(.btn):hover {
    background: var(--color-bg-alt);
}

.nav-links .btn {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-xs);
}

/* Mobile: Hero */
.hero {
    min-height: 100svh; /* Use small viewport height for mobile browsers */
}

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

.hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.hero-ctas .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

.hero-scroll {
    display: none;
}

/* Mobile: Watch/Video Section */
.video-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.video-info {
    text-align: center;
}

/* Mobile: About Section */
.about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.about-image {
    order: -1;
    max-height: 300px;
}

/* Mobile: Cards */
.card-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

/* Mobile: Staff */
.staff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.staff-image {
    width: 120px;
    height: 120px;
}

.staff-info h3 {
    font-size: 1rem;
}

.staff-title {
    font-size: 0.8125rem;
}

/* Mobile: Staff Modal */
.staff-modal-body {
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
    padding-top: var(--space-2xl);
}

.staff-modal-image {
    margin: 0 auto;
}

.staff-modal-image img {
    width: 120px;
    height: 120px;
}

.staff-modal-info h2 {
    font-size: 1.25rem;
}

/* Mobile: Venue */
.venue-overlay {
    background: linear-gradient(
        to bottom,
        rgba(26, 54, 93, 0.7) 0%,
        rgba(26, 54, 93, 0.5) 50%,
        rgba(26, 54, 93, 0.6) 100%
    );
}

.venue-content {
    text-align: center;
}

.venue-features {
    justify-content: center;
    flex-direction: column;
    gap: var(--space-sm);
}

.venue-ctas {
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.venue-ctas .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
}

/* Mobile: Visit */
.visit-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.visit-map {
    height: 300px;
}

.visit-map iframe {
    height: 100%;
}

/* Mobile: Give */
.give-options {
    flex-direction: column;
    gap: var(--space-lg);
}

/* Mobile: Footer */
.footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
}

.footer-logo {
    margin: 0 auto var(--space-sm);
}

/* Mobile: Page Header */
.page-header {
    padding-top: calc(70px + var(--space-xl));
}

/* ============================================
   Tablet Portrait (min-width: 600px)
   ============================================ */
@media (min-width: 600px) {
    .hero-ctas {
        flex-direction: row;
        justify-content: center;
    }

    .hero-ctas .btn {
        width: auto;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .staff-image {
        width: 140px;
        height: 140px;
    }

    .staff-modal-body {
        flex-direction: row;
        text-align: left;
        padding: var(--space-xl);
    }

    .staff-modal-image {
        margin: 0;
    }

    .staff-modal-image img {
        width: 150px;
        height: 150px;
    }

    .venue-ctas {
        flex-direction: row;
    }

    .venue-ctas .btn {
        width: auto;
    }

    .give-options {
        flex-direction: row;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }

    .footer-logo {
        margin: 0 0 var(--space-sm);
    }
}

/* ============================================
   Tablet Landscape (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
    :root {
        --space-3xl: 6rem;
        --space-2xl: 4rem;
    }

    .hero-scroll {
        display: flex;
    }

    .video-container {
        grid-template-columns: 2fr 1fr;
    }

    .video-info {
        text-align: left;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-image {
        order: 0;
        max-height: none;
    }

    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .staff-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .venue-content {
        text-align: left;
    }

    .venue-features {
        flex-direction: row;
    }

    .visit-grid {
        grid-template-columns: 1fr 1fr;
    }

    .visit-map {
        height: auto;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ============================================
   Desktop (min-width: 1024px)
   ============================================ */
@media (min-width: 1024px) {
    :root {
        --space-3xl: 8rem;
        --space-2xl: 5rem;
    }

    .nav-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        flex-direction: row;
        padding: 0;
        gap: var(--space-lg);
        box-shadow: none;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        background: transparent;
        overflow: visible;
    }

    .nav-links li {
        width: auto;
    }

    .nav-links .btn {
        width: auto;
    }

    .staff-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .staff-image {
        width: 160px;
        height: 160px;
    }
}

/* ============================================
   Large Desktop (min-width: 1280px)
   ============================================ */
@media (min-width: 1280px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* ============================================
   Touch Device Optimizations
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets for touch */
    .btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }

    .nav-links a {
        padding: var(--space-sm) 0;
    }

    .staff-card {
        padding: var(--space-sm);
    }

    /* Remove hover effects on touch */
    .card:hover {
        transform: none;
    }

    .staff-card:hover {
        transform: none;
    }

    .staff-card:hover .staff-image img {
        transform: none;
    }

    .card:hover .card-image img {
        transform: none;
    }

    /* Add active states instead */
    .btn:active {
        transform: scale(0.98);
    }

    .card:active {
        transform: scale(0.98);
    }

    .staff-card:active {
        transform: scale(0.98);
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-bg img {
        transform: none !important;
    }
}

/* ============================================
   Dark Mode Support (future)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Placeholder for dark mode styles */
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header,
    .hero-scroll,
    .nav-toggle,
    .modal,
    .btn {
        display: none !important;
    }

    .section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }

    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
}
