/* Mobile Optimization & Consistency Styles */

/* ============================================
   MOBILE-FIRST RESPONSIVE BREAKPOINTS
   ============================================ */

/* Base Mobile (320px - 639px) */
@media (max-width: 639px) {
    /* Container padding */
    .container {
        padding: 0 1rem;
    }
    
    /* Section titles - consistent sizing */
    .section-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    /* Section descriptions */
    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    /* Hero adjustments */
    .hero {
        height: calc(100vh - 5rem);
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-tagline {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-logo {
        height: 6rem;
        margin-bottom: 0.75rem;
    }
    
    /* Buttons - ensure touch-friendly size */
    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 44px; /* iOS touch target minimum */
        min-width: 120px;
    }
    
    /* Navigation */
    .nav-content {
        height: 5rem;
    }
    
    .logo {
        height: 3rem;
    }
    
    .main {
        padding-top: 5rem;
    }
    
    /* Gallery items - consistent sizing */
    .gallery-item {
        aspect-ratio: 4 / 3;
        min-height: 200px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    
    /* Event cards */
    .event-gallery-card {
        min-width: 100%;
        max-width: 100%;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Opening hours */
    .opening-hours-display {
        font-size: 1rem;
    }
    
    /* Section padding - consistent */
    section {
        padding: 2.5rem 0 !important;
    }
    
    /* Text alignment - ensure center on mobile */
    .section-title,
    .section-description {
        text-align: center;
    }
}

/* Tablet (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1.0625rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    section {
        padding: 3rem 0 !important;
    }
}

/* Desktop (768px+) */
@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    section {
        padding: 3.5rem 0 !important;
    }
}

/* Large Desktop (1024px+) */
@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
    
    section {
        padding: 4rem 0 !important;
    }
}

/* ============================================
   IMAGE CONSISTENCY
   ============================================ */

/* Ensure all images maintain aspect ratio */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Gallery images - consistent sizing */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed from contain to cover for consistency */
    padding: 0;
    border-radius: calc(var(--radius) - 2px);
}

/* Experience gallery images */
.experience .gallery-item img {
    object-fit: cover;
}

/* Hero image */
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Event card images */
.event-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   TEXT ALIGNMENT CONSISTENCY
   ============================================ */

/* All section titles center-aligned */
.section-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* All section descriptions center-aligned */
.section-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Opening hours - center aligned */
.opening-hours-section {
    text-align: center;
}

/* Testimonial text - consistent */
.testimonial-text {
    text-align: left;
}

.testimonial-author {
    text-align: right;
}

/* ============================================
   TITLE HIERARCHY CONSISTENCY
   ============================================ */

h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 2rem;
    }
}

/* ============================================
   TOUCH TARGET OPTIMIZATION
   ============================================ */

/* Ensure all interactive elements are touch-friendly */
button,
a.btn,
.nav-link,
.carousel-btn,
.carousel-dot,
.filter-btn,
.gallery-filter-btn,
.mobile-menu-toggle {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation; /* Prevents double-tap zoom */
}

/* ============================================
   SPACING CONSISTENCY
   ============================================ */

/* Consistent margins between elements */
.section-title + .section-description {
    margin-top: 0.5rem;
}

.section-description + * {
    margin-top: 2rem;
}

/* Consistent padding in cards */
.contact-card,
.testimonial-card,
.event-card {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .contact-card,
    .testimonial-card,
    .event-card {
        padding: 2rem;
    }
}

/* ============================================
   MOBILE-SPECIFIC IMPROVEMENTS
   ============================================ */

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
    width: 100%;
}

/* Better mobile menu */
.nav-menu.active {
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Improve carousel on mobile */
@media (max-width: 767px) {
    .events-carousel-container {
        padding: 0.5rem 0;
    }
    
    .carousel-controls {
        margin-top: 1.5rem;
        gap: 1rem;
    }
    
    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }
}

/* Better form inputs on mobile */
input[type="email"],
input[type="text"],
input[type="tel"],
textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.875rem;
    min-height: 44px;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* 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;
    }
}

/* Optimize font rendering */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Better focus indicators */
*:focus-visible {
    outline: 3px solid hsl(var(--primary));
    outline-offset: 3px;
    border-radius: 4px;
}

/* Ensure sufficient color contrast */
.section-description,
.testimonial-text {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   CONSISTENCY FIXES
   ============================================ */

/* Ensure all images in gallery have same aspect ratio */
.gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

/* Consistent border radius */
.gallery-item,
.testimonial-card,
.event-card,
.contact-card {
    border-radius: var(--radius);
}

/* Consistent transitions */
.gallery-item,
.event-gallery-card,
.testimonial-card,
.btn {
    transition: all 0.3s ease;
}


