/* Responsive Styles for Suwarga Wedding Organizer */

/* Extra Large Devices (≥1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .testimoni-slider {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Devices (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .value-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Landscape (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimoni-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Navigation */
    .primary-menu {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .primary-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }
}

/* Tablet Portrait (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimoni-slider {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Header */
    .header-inner {
        flex-wrap: wrap;
    }
    
    .site-branding {
        flex: 1;
    }
    
    .header-cta {
        display: none;
    }
    
    /* Calendar */
    .calendar-days {
        gap: 3px;
    }
    
    .calendar-day {
        font-size: 0.8rem;
        padding: 0.3rem;
    }
}

/* Mobile Devices (≤575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        min-height: 70vh;
        margin-top: 60px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-whatsapp {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .btn-whatsapp span {
        font-size: 1.8rem;
    }
    
    /* Value Cards */
    .value-card {
        padding: 1.5rem;
    }
    
    .value-icon {
        font-size: 2.5rem;
    }
    
    /* Testimoni */
    .testimoni-slide {
        flex-direction: column;
        text-align: center;
    }
    
    .testimoni-image {
        width: 100%;
        height: 200px;
    }
    
    /* Forms */
    .booking-form-container,
    .contact-form-container {
        padding: 1.5rem 1rem;
        margin: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* WhatsApp Sticky Button */
    .whatsapp-sticky {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    
    .whatsapp-sticky a {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .whatsapp-sticky .whatsapp-icon {
        font-size: 1.2rem;
    }
    
    /* Calendar Mobile */
    .calendar-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .calendar-nav {
        width: 100%;
    }
    
    .calendar-days {
        gap: 2px;
    }
    
    .calendar-day {
        font-size: 0.7rem;
        padding: 0.2rem;
    }
    
    .calendar-legend {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 0.95rem;
    }
}

/* Very Small Devices (≤360px) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn-whatsapp {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .calendar-day {
        font-size: 0.6rem;
    }
    
    .day-number {
        font-size: 0.9rem;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .calendar-container {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .whatsapp-sticky,
    .footer-top,
    .calendar-cta,
    .btn-whatsapp {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .calendar-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .calendar-day.available {
        background: #fff !important;
        border: 1px solid #ccc;
    }
    
    .calendar-day.booked {
        background: #f0f0f0 !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-image: url('../images/hero@2x.jpg');
    }
    
    .btn-whatsapp,
    .calendar-nav,
    .btn-submit {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* 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;
    }
    
    .calendar-day:hover,
    .btn-whatsapp:hover,
    .calendar-nav:hover {
        transform: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-dark: #f5f5f5;
        --gray-medium: #e0e0e0;
        --gray-light: #2c2c2c;
        --white: #1a1a1a;
    }
    
    .calendar-container,
    .booking-form-container {
        background: #2c2c2c;
        color: #f5f5f5;
    }
    
    .calendar-weekdays {
        color: #f5f5f5;
        border-bottom-color: #444;
    }
    
    .calendar-day.past {
        background: #3c3c3c;
        color: #888;
    }
    
    .booking-form input,
    .booking-form select,
    .booking-form textarea {
        background: #3c3c3c;
        border-color: #555;
        color: #f5f5f5;
    }
    
    .booking-form label {
        color: #f5f5f5;
    }
}