/* Mobile First Responsive Design */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Medium screens (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small screens (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .hero-header {
        padding: 80px 0 30px;
    }
    
    .hero-header h3 {
        font-size: 2rem;
    }
    
    .hero-header .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 0 40px;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-header {
        padding: 60px 0 20px;
    }
    
    .hero-header h3 {
        font-size: 1.8rem;
        white-space: normal;
        line-height: 1.2;
    }
    
    .hero-header .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero h3 {
        font-size: 1.8rem;
        white-space: normal;
        line-height: 1.2;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-detail.reverse {
        direction: ltr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-member {
        flex-direction: column;
        text-align: center;
    }
    
    .member-image {
        align-self: center;
    }
    
    .ordering-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra small screens (576px to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero Section */
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h3 {
        font-size: 1.5rem;
        white-space: normal;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-image-container {
        max-width: 400px;
    }
    
    .hero-main-image {
        height: 300px;
    }
    
    .image-overlay i {
        font-size: 3rem;
    }
    
    .image-overlay p {
        font-size: 1rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .additional-grid {
        grid-template-columns: 1fr;
    }
    
    .products-container {
        grid-template-columns: 1fr;
    }
    
    .quality-features {
        grid-template-columns: 1fr;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Team Grid */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        flex-direction: column;
        text-align: center;
    }
    
    /* Product Categories */
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Ordering Steps */
    .ordering-steps {
        grid-template-columns: 1fr;
    }
    
    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Form Elements */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    /* Product Cards */
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-placeholder i {
        font-size: 2rem;
    }
    
    /* Testimonial Cards */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Mission Cards */
    .mission-card {
        padding: 1.5rem;
    }
    
    .mission-icon {
        width: 60px;
        height: 60px;
    }
    
    .mission-icon i {
        font-size: 1.5rem;
    }
    
    /* Feature Items */
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 1.2rem;
    }
    
    /* Cert Items */
    .cert-item {
        padding: 1.5rem;
    }
    
    .cert-icon {
        width: 50px;
        height: 50px;
    }
    
    .cert-icon i {
        font-size: 1.2rem;
    }
    
    /* Additional Cards */
    .additional-card {
        padding: 1.5rem;
    }
    
    .additional-icon {
        width: 50px;
        height: 50px;
    }
    
    .additional-icon i {
        font-size: 1.2rem;
    }
    
    /* Quality Items */
    .quality-item {
        padding: 1.5rem;
    }
    
    .quality-icon {
        width: 50px;
        height: 50px;
    }
    
    .quality-icon i {
        font-size: 1.2rem;
    }
    
    /* Contact Cards */
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.2rem;
    }
    
    /* Hours Cards */
    .hours-card {
        padding: 1.5rem;
    }
    
    /* FAQ */
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem;
    }
}

/* Extra extra small screens (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h3 {
        font-size: 1.3rem;
        white-space: normal;
        line-height: 1.2;
    }
    
    .hero-header {
        padding: 100px 0 20px;
    }
    
    .hero-header h3 {
        font-size: 1.3rem;
        white-space: normal;
        line-height: 1.2;
    }
    
    .hero-header .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 0.5rem;
        gap: 1rem;
    }
    
    .hero-image-container {
        max-width: 300px;
    }
    
    .hero-main-image {
        height: 250px;
    }
    
    .image-overlay i {
        font-size: 2.5rem;
    }
    
    .image-overlay p {
        font-size: 0.9rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .hero-placeholder {
        padding: 1.5rem;
    }
    
    .hero-placeholder i {
        font-size: 2.5rem;
    }
    
    .hero-placeholder p {
        font-size: 1rem;
    }
    
    .about-placeholder,
    .story-placeholder,
    .service-placeholder,
    .map-placeholder {
        padding: 2rem;
    }
    
    .about-placeholder i,
    .story-placeholder i,
    .service-placeholder i,
    .map-placeholder i {
        font-size: 2.5rem;
    }
    
    .about-placeholder p,
    .story-placeholder p,
    .service-placeholder p,
    .map-placeholder p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-card,
    .mission-card,
    .feature-item,
    .cert-item,
    .additional-card,
    .quality-item,
    .contact-card,
    .hours-card {
        padding: 1rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .team-member {
        padding: 1rem;
    }
    
    .member-placeholder {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step {
        padding: 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .product-benefits {
        gap: 0.3rem;
    }
    
    .benefit-tag {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .product-price .price {
        font-size: 1.1rem;
    }
    
    .product-price .unit {
        font-size: 0.8rem;
    }
}

/* Landscape orientation for mobile devices */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .page-header {
        padding: 80px 0 30px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .contact-cta,
    .booking-cta {
        display: none;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .page-header {
        padding: 20px 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .service-card,
    .product-card,
    .testimonial-card {
        page-break-inside: avoid;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: #000;
        text-decoration: underline;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in,
    .slide-in-left,
    .slide-in-right {
        opacity: 1;
        transform: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .navbar {
        background: #2d2d2d;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .nav-link {
        color: #e0e0e0;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: #4a6741;
    }
    
    .hero {
        background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    }
    
    .hero h1 {
        color: #e0e0e0;
    }
    
    .hero-subtitle {
        color: #6b8e4a;
    }
    
    .hero-description {
        color: #b0b0b0;
    }
    
    .page-header {
        background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    }
    
    .page-header h1 {
        color: #e0e0e0;
    }
    
    .page-header p {
        color: #b0b0b0;
    }
    
    .service-card,
    .mission-card,
    .feature-item,
    .cert-item,
    .additional-card,
    .quality-item,
    .contact-card,
    .hours-card,
    .testimonial-card,
    .product-card {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .about-preview,
    .product-quality,
    .contact-info,
    .business-hours {
        background: #1a1a1a;
    }
    
    .footer {
        background: #0d0d0d;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #2d2d2d;
        color: #e0e0e0;
        border-color: #4a4a4a;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #4a6741;
    }
}

/* Map Layout Responsive */
@media (max-width: 768px) {
    .map-iframe iframe {
        height: 250px;
    }
    
    .map-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .map-iframe iframe {
        height: 200px;
    }
    
    .map-info {
        padding: 1rem;
    }
    
    /* WhatsApp Button Mobile */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-link {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-link i {
        font-size: 24px;
    }
}
