/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Landscape - 1024px and down */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Tablet Portrait - 768px and down */
@media screen and (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        gap: 2rem;
        backdrop-filter: blur(10px);
        z-index: 999;
    }
    
    .nav-links.mobile-active {
        display: flex;
    }
    
    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        animation: slideInNav 0.3s ease forwards;
    }
    
    .nav-links li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links li:nth-child(4) { animation-delay: 0.4s; }
    .nav-links li:nth-child(5) { animation-delay: 0.5s; }
    .nav-links li:nth-child(6) { animation-delay: 0.6s; }
    
    @keyframes slideInNav {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Sections */
    .services,
    .about,
    .team,
    .booking,
    .contact {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image img {
        height: 300px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Team */
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        order: -1;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-social .social-links {
        justify-content: center;
    }
    
    /* Back to top button */
    #back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Mobile Landscape - 576px and down */
@media screen and (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    /* Header */
    .logo {
        font-size: 1.5rem;
    }
    
    .logo-img {
        width: 30px;
        height: 30px;
    }
    
    /* Hero */
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    /* Sections */
    .services,
    .about,
    .team,
    .booking,
    .contact {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1.2rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon img {
        width: 30px;
        height: 30px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    /* About */
    .about-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-image img {
        height: 250px;
    }
    
    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-card {
        padding: 1.5rem;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }
    
    .team-name {
        font-size: 1.2rem;
    }
    
    /* Booking */
    .booking h2 {
        font-size: 2rem !important;
    }
    
    .planity-frame {
        padding: 1rem;
    }
    
    .planity-placeholder {
        padding: 2rem 1rem;
    }
    
    .booking-alternatives {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .phone-button,
    .whatsapp-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
    }
    
    /* Contact */
    .contact-item {
        margin-bottom: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .map-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-info .logo {
        font-size: 1.3rem;
    }
    
    .footer-social .social-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .footer-social .social-links a {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

/* Extra Small Mobile - 400px and down */
@media screen and (max-width: 400px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card,
    .team-card {
        padding: 1rem;
    }
    
    .about-text h2 {
        font-size: 1.6rem;
    }
    
    .team-photo {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }
    
    .booking h2 {
        font-size: 1.8rem !important;
    }
    
    .planity-frame {
        padding: 0.8rem;
    }
    
    .planity-placeholder {
        padding: 1.5rem 0.8rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    #back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Landscape Phone Optimization */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .services,
    .about,
    .team,
    .booking,
    .contact {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
}

/* High DPI Displays */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    .service-icon img,
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .hero,
    .booking,
    footer,
    #back-to-top,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .services,
    .about,
    .team,
    .contact {
        padding: 20px 0;
        break-inside: avoid;
    }
    
    .service-card,
    .team-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .section-title {
        color: #333;
    }
}

/* Accessibility Improvements for 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::before {
        animation: none;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}