/* Responsive Styles for FORKO PUTOVANJA Website */

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* Benefits Slider for Mobile */
@media (max-width: 767.98px) {
    .benefits-wrapper {
        padding: 0 var(--spacing-sm);
    }
    
    .benefits {
        display: flex;
        overflow: hidden;
        position: relative;
        gap: 0;
        min-height: 220px;
    }
    
    .benefit-item {
        min-width: 100%;
        max-width: 100%;
        flex-shrink: 0;
        opacity: 0;
        visibility: hidden;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        transform: translateX(20px);
        transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
        pointer-events: none;
    }
    
    .benefit-item.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        position: relative;
        pointer-events: auto;
    }
    
    .benefits-controls {
        display: flex;
        margin-top: var(--spacing-md);
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: var(--spacing-md);
    }
    
    .about-image img {
        max-width: 100%;
        height: 400px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .upcoming-trips {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-method {
        padding: var(--spacing-md);
    }
    
    .contact-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .contact-method i {
        font-size: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-info-left, .footer-info-right {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    /* Header & Navigation */
    .main-nav, .social-icons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo h2 {
        font-size: 1.2rem;
    }
    
    .mobile-menu-active .main-nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        padding: var(--spacing-md) 0;
        border-top: 1px solid rgba(245, 141, 84, 0.2);
    }
    
    .mobile-menu-active .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .mobile-menu-active .main-nav li {
        margin: var(--spacing-xs) 0;
    }
    
    .mobile-menu-active .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-active .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-active .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 500px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Gallery Section */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Upcoming Section */
    .upcoming-trips {
        grid-template-columns: 1fr;
    }
    
    .upcoming-image {
        height: 150px;
    }
    
    .upcoming-footer {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: stretch;
    }
    
    .btn-book {
        width: 100%;
        text-align: center;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .logo h2 {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero-section .subtitle {
        font-size: 1.2rem;
    }
    
    /* Benefits slider already handled above */
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .testimonial-quote {
        padding: var(--spacing-md);
    }
    
    #back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }
}
