/* ============================================
   ME WELLNESS & SPA - RESPONSIVE STYLESHEET
   Breakpoints:
   - Mobile: 0-768px
   - Tablet: 769-1024px
   - Desktop: 1025px+
============================================ */

/* ===== TABLET STYLES (769px - 1024px) ===== */
@media (max-width: 1024px) {
    /* Adjust container padding */
    .container {
        padding: 0 30px;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    /* Hero section */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Welcome section */
    .welcome-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact preview */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    /* Footer */
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .footer-legal {
        justify-content: center;
        gap: var(--spacing-lg);
    }
}

/* ===== MOBILE STYLES (0-768px) ===== */
@media (max-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Section padding */
    .section-padding {
        padding: 60px 0;
    }
    
    /* Container padding */
    .container {
        padding: 0 20px;
    }
    
    /* Header & Navigation */
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .cta-item {
        display: none;
    }
    
    .header-wrapper {
        padding: 0 15px;
    }
    
    /* Hero section */
    .hero-section {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* Testimonials */
    .testimonial-content {
        padding: var(--spacing-lg);
    }
    
    /* CTA buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Contact form */
    .contact-form-container {
        padding: var(--spacing-lg);
    }
    
    /* Booking wizard */
    .booking-steps {
        flex-direction: column;
        gap: 10px;
    }
    
    .step {
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
        padding: 10px;
    }
    
    .step-number {
        margin: 0;
        flex-shrink: 0;
    }
    
    .step-content {
        padding: 20px;
    }
    
    /* Form rows */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Service categories */
    .service-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Time slots */
    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Calendar grid */
    .calendar-grid {
        gap: 5px;
    }
    
    .calendar-day {
        padding: 10px 2px;
        font-size: 0.9rem;
    }
    
    /* Mobile specific adjustments */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-float:hover .whatsapp-text {
        display: inline;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    /* Footer adjustments */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-col {
        text-align: center;
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .input-group input {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .btn-newsletter {
        padding: 10px 15px;
    }
}

/* ===== SMALL MOBILE STYLES (0-480px) ===== */
@media (max-width: 480px) {
    /* Further typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hero section */
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    /* Service categories */
    .service-categories {
        grid-template-columns: 1fr;
    }
    
    /* Time slots */
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Service options */
    .service-option {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    /* Booking actions */
    .booking-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .booking-actions .btn {
        width: 100%;
    }
    
    /* Testimonial author */
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    /* Contact items */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    /* WhatsApp float icon only */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        border-radius: var(--radius-circle);
    }
    
    .whatsapp-float i {
        font-size: 1.5rem;
    }
    
    /* Section divider */
    .section-divider {
        gap: var(--spacing-sm);
    }
    
    .divider-line {
        width: 30px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Form groups */
    .form-group {
        margin-bottom: var(--spacing-md);
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    /* Mobile navigation */
    .mobile-nav {
        padding: var(--spacing-lg);
    }
    
    .mobile-nav-link {
        padding: var(--spacing-md);
        font-size: 1rem;
    }
    
    /* Logo adjustments */
    .logo-text {
        display: none;
    }
    
    .logo a {
        gap: 0;
    }
    
    /* Feature item */
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto var(--spacing-sm);
    }
    
    /* Card adjustments */
    .service-card,
    .price-card,
    .team-member,
    .package-card {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Container max-width for very small screens */
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* ===== LANDSCAPE MOBILE ORIENTATION ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 400px;
        padding: var(--header-height) 0 var(--spacing-xl);
    }
    
    .hero-text {
        padding: var(--spacing-md) 0;
    }
    
    .mobile-nav {
        overflow-y: auto;
    }
    
    .booking-wizard {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .main-header,
    .mobile-nav,
    .whatsapp-float,
    .back-to-top,
    .footer-top,
    .booking-actions,
    .cta-buttons {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .section-padding {
        padding: 20pt 0;
    }
    
    .booking-summary,
    .price-card,
    .service-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .hero-section {
        height: auto;
        margin-top: 0;
    }
    
    .hero-background {
        display: none;
    }
    
    .hero-content {
        color: #000;
    }
    
    .hero-title {
        color: #000;
        font-size: 20pt;
    }
    
    .hero-subtitle {
        color: #000;
        font-size: 12pt;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --primary-dark: #000000;
        --secondary-color: #000000;
        --dark-color: #000000;
        --white: #FFFFFF;
        --black: #000000;
    }
    
    body {
        background-color: var(--white);
        color: var(--black);
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid var(--black);
    }
    
    .nav-link.active::after {
        height: 3px;
        background-color: var(--black);
    }
    
    .divider-line {
        height: 3px;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #F5F5F5;
        --light-color: #1A1A1A;
        --gray-light: #333333;
        --gray: #666666;
        --gray-dark: #999999;
        --white: #121212;
        --black: #FFFFFF;
    }
    
    body {
        background-color: var(--white);
        color: var(--dark-color);
    }
    
    .main-header {
        background-color: #1E1E1E;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .nav-link {
        color: var(--dark-color);
    }
    
    .service-card,
    .contact-form-container,
    .price-card,
    .team-member,
    .package-card {
        background-color: #1E1E1E;
    }
    
    .faq-item,
    .business-hours,
    .type-card {
        background-color: #1E1E1E;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        background-color: #1E1E1E;
        border-color: #333;
        color: var(--dark-color);
    }
    
    .footer-links a,
    .contact-info-mini p,
    .copyright {
        color: rgba(255,255,255,0.7);
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .whatsapp-float:hover {
        transform: none;
    }
    
    /* Increase touch target sizes */
    .nav-link,
    .dropdown > a,
    .btn,
    .service-option,
    .time-slot,
    .calendar-day {
        min-height: 44px;
        min-width: 44px;
    }
    
    .mobile-nav-link {
        min-height: 50px;
    }
    
    .checkbox input[type="checkbox"],
    .radio input[type="radio"] {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ===== RETINA DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Any retina-specific styles can go here */
    .logo-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}