/* ===== COMPLETE RESPONSIVE FIX ===== */
/* This file overrides and fixes all responsive issues */

/* Base Mobile First Adjustments */
@media (max-width: 1600px) {
    .container {
        max-width: 1200px;
    }
}

/* Tablets and Small Desktops */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    h3 {
        font-size: 1.9rem;
    }
    
    .nav-menu {
        gap: 5px;
    }
    
    .nav-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.4rem;
    }
    
    h3 {
        font-size: 1.7rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    /* Navigation fix for tablets */
    .nav-menu-container {
        display: none !important;
    }
    
    .hamburger {
        display: block !important;
    }
    
    /* Grid adjustments */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Fix for location section */
    .location-card {
        flex-direction: column;
    }
    
    .newsletter-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .newsletter-image {
        order: -1;
        max-height: 250px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title::after {
        width: 60px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 14px 28px;
    }
    
    /* Hero Section Fixes */
    .hero-section {
        padding-top: 70px;
        min-height: 90vh;
    }
    
    .hero-content {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Features Section Fix */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .feature-card {
        padding: 25px;
    }
    
    /* Testimonials Fix */
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .testimonial-card {
        padding: 25px;
    }
    
    /* Gallery Fix */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    /* Location Section Fix */
    .location-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .location-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Footer Fix */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Floating elements fix */
    .whatsapp-float {
        left: 16px;
        bottom: 80px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .back-to-top {
        right: 16px;
        bottom: 20px;
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
    .container {
        padding: 0 14px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .logo-main {
        font-size: 1.3rem;
    }
    
    .logo-sub {
        font-size: 0.6rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo-icon i {
        font-size: 1.2rem;
    }
    
    /* Hero Section Mobile Fix */
    .hero-section {
        min-height: 85vh;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Mobile Menu Fix */
    .mobile-menu {
        max-width: 100%;
        padding: 25px 20px;
    }
    
    .mobile-nav a {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    /* Cards Padding Fix */
    .feature-card,
    .testimonial-card,
    .event-card {
        padding: 20px;
    }
    
    /* Newsletter Form Fix */
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form button {
        position: static;
        width: 100%;
        padding: 14px;
    }
    
    /* Specialties Card Fix */
    .specialty-card {
        max-width: 100%;
    }
    
    .specialty-content {
        padding: 20px;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    h1 {
        font-size: 1.9rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        gap: 10px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .mobile-menu {
        padding: 20px 16px;
    }
    
    .whatsapp-float {
        left: 12px;
        bottom: 70px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top {
        right: 12px;
        bottom: 16px;
    }
}

/* Height-based adjustments */
@media (max-height: 700px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-content {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-stats {
        margin-bottom: 30px;
    }
    
    .mobile-menu {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Fix for preloader on mobile */
@media (max-width: 768px) {
    .preloader-content {
        transform: scale(0.8);
    }
    
    .coffee-loading {
        width: 100px;
        height: 100px;
    }
    
    .preloader-content p {
        font-size: 1rem;
    }
}

/* Fix for AOS animations on mobile */
@media (max-width: 768px) {
    [data-aos] {
        opacity: 1 !important;
        transform: translate(0) scale(1) !important;
    }
}

/* Fix for image loading on slow connections */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure all sections are visible */
section {
    min-height: auto;
    overflow: hidden;
}

/* Fix for text overflow */
h1, h2, h3, h4, p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fix for button tap targets on mobile */
@media (max-width: 768px) {
    .btn,
    .nav-link,
    .mobile-nav a,
    .footer-links a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Fix for form elements */
input,
textarea,
select,
button {
    font-size: 16px !important; /* Prevents zoom on iOS */
}

/* Fix for flexbox issues on mobile */
@media (max-width: 768px) {
    .flex-container {
        flex-wrap: wrap;
    }
    
    .flex-item {
        flex: 1 1 100%;
        margin-bottom: 15px;
    }
}

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

/* Print styles */
@media print {
    .navbar,
    .whatsapp-float,
    .back-to-top,
    .hero-scroll,
    .floating-elements,
    .mobile-menu,
    .hamburger,
    .nav-extra {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        background: white !important;
        color: black !important;
    }
    
    .hero-overlay {
        display: none;
    }
    
    body {
        background: white !important;
    }
    
    section {
        page-break-inside: avoid;
        padding: 20px 0 !important;
    }
}