/* Responsive Styles - Mobile First Approach */

/* Extra Small Devices - Gallery Optimization for Mobile */
@media (max-width: 480px) {
    /* Hero Section - Mobile First Priority */
    .hero {
        min-height: 400px;
        height: 60vh;
        padding: 80px 5% 50px;
    }
    
    .hero-slide img {
        object-fit: cover;
        object-position: center center;
    }
    
    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .gallery-item {
        height: 240px;
    }
    
    .gallery-caption {
        font-size: 0.9rem;
        padding: 1rem;
        min-height: 55px;
    }
    
    /* Tim Images - Mobile First */
    .tim-images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tim-image {
        height: 280px;
    }
    
    /* Weather Widget - Mobile */
    .weather-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .weather-temp {
        font-size: 2em;
    }
    
    .weather-info {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Dezinfekcija Gallery - Mobile */
    .dezinfekcija-gallery {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .dezinfekcija-small {
        height: 250px;
    }
}

/* Kako rade klima - Responsive */
@media (max-width: 768px) {
    .kako-rade-klima div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .kako-rade-klima h3 {
        font-size: 1.5rem !important;
    }
}

/* Mobile Navigation */
@media (max-width: 1023px) {
    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        padding: 0.5rem;
        color: var(--primary-blue);
        font-weight: 700;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition-normal);
        pointer-events: none;
        z-index: 999;
        border-top: 2px solid var(--primary-blue);
        background: #ffffff;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
        background: #ffffff !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    }

    .main-nav nav {
        background: #ffffff !important;
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        width: 100%;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    nav li {
        background: #ffffff !important;
        width: 100%;
        padding: 0.5rem 0;
    }

    nav a {
        background: transparent !important;
        display: block;
        width: 100%;
    }

    .header-contact {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }

    .contact-info {
        text-align: center;
    }

    .header-contact .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Small Mobile Adjustments - Mobile is King! */
@media (max-width: 480px) {
    header {
        padding: 0.8rem 0;
        min-height: 70px;
    }

    .header-container {
        padding: 0 1rem;
        min-height: 70px;
    }

    .logo {
        font-size: 1.4rem;
        line-height: 1;
    }
    
    .logo-image {
        height: 40px;
        max-width: 150px;
    }

    .contact-info {
        padding: 0;
    }

    .phone-number {
        font-size: 1rem;
        line-height: 1;
    }

    .main-nav {
        top: 70px;
        min-height: auto;
    }

    .mobile-menu-btn {
        font-size: 1.3rem;
        padding: 0.4rem;
    }
}

/* Mobile Content Adjustments */
@media (max-width: 767px) {
    .hero {
        background-attachment: scroll;
        padding: 100px 5% 60px;
        min-height: 450px;
        height: 65vh;
    }
    
    .hero-slide img {
        object-fit: cover;
        object-position: center;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .usluga-icon {
        width: 50px;
        height: 50px;
        padding: 10px;
    }

    .modal-image {
        height: 200px;
    }

    .tim-image {
        height: 250px;
    }

    .gallery-item {
        height: 250px;
    }

    .gallery-caption {
        font-size: 0.85rem;
        padding: 1rem;
        min-height: 50px;
    }

    .gallery-overlay h3 {
        font-size: 0.9rem;
    }
    
    /* Weather Widget - Tablet */
    .weather-content {
        gap: 20px;
    }
    
    .weather-temp {
        font-size: 2.2em;
    }
    
    /* Dezinfekcija Gallery - Tablet */
    .dezinfekcija-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .dezinfekcija-small {
        height: 200px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .usluga-card {
        padding: 1.5rem 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .testimonial-text::before {
        font-size: 2.5rem;
        top: -6px;
        left: -6px;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
    }

    .author-info h4 {
        font-size: 1rem;
    }

    .author-info p {
        font-size: 0.9rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .contact-info .contact-item h3 {
        font-size: 1rem;
    }

    .call-to-action-large {
        font-size: 1.2rem;
    }

    .o-nama-text {
        margin-bottom: 1rem;
    }

    .features-list {
        margin-top: 1rem;
    }

    .detailed-services-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .service-info h3 {
        font-size: 1.1rem;
        margin-top: 1.5rem;
        letter-spacing: 0.3px;
    }

    .service-info p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    body {
        font-size: 17px;
    }

    .hero {
        padding: 140px 5% 100px;
        margin-top: 90px;
    }

    .logo {
        font-size: 2rem;
    }

    .contact-info {
        padding: 0.6rem 1.2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .btn-large {
        width: auto;
        padding: 1.2rem 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .urgent-buttons {
        flex-direction: row;
        gap: 2rem;
    }

    .usluge {
        padding: 80px 5%;
    }

    .usluge-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    /* About Us Desktop Improvements */
    .o-nama-main {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }

    .o-nama-text {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .o-nama-features {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .features-list {
        margin-top: 2rem;
    }

    .detailed-services-section {
        padding: 3rem;
        margin-top: 4rem;
    }

    .service-info h3 {
        font-size: 1.6rem;
        margin-top: 2.5rem;
        letter-spacing: 0.8px;
    }

    .service-info p {
        font-size: 1.1rem;
    }

    .o-nama-text h2 {
        font-size: 2.5rem;
    }

    .nas-tim-section h3 {
        font-size: 2rem;
    }

    .tim-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 800px;
        margin: 0 auto;
    }

    .tim-image {
        height: 320px;
    }

    .testimonials {
        padding: 80px 5%;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 2rem;
    }

    .gallery {
        padding: 80px 5%;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .gallery-item {
        height: 280px;
    }

    .gallery-caption {
        font-size: 0.95rem;
        padding: 1.2rem;
        min-height: 60px;
    }

    .modal-image {
        height: 300px;
    }

    .tim-image {
        height: 300px;
    }

    .modal-body {
        grid-template-columns: 1fr 1fr;
    }

    .modal-image {
        height: auto;
    }

    .contact-form-section {
        padding: 80px 5%;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .contact-info {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn-dezinfekcija {
        font-size: 1.1rem;
        padding: 1.2rem 2.5rem;
        max-width: 500px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }

    .main-nav {
        display: flex !important;
    }

    .usluge-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .o-nama-text h2 {
        font-size: 2.8rem;
    }

    .nas-tim-section h3 {
        font-size: 2.2rem;
    }
}

/* Touch device improvements - Mobile is King! */
@media (hover: none) {
    .usluga-card:hover {
        transform: none;
    }

    .gallery-item:hover {
        transform: none;
    }

    .gallery-item img {
        transform: none !important;
    }

    .gallery-caption {
        opacity: 1;
        background: linear-gradient(to top, rgba(30, 58, 138, 0.95), rgba(30, 58, 138, 0.7));
        min-height: 60px;
    }

    .btn:hover {
        transform: none;
    }

    .btn-large:hover {
        transform: none;
    }

    .btn-small:hover {
        transform: none;
    }
}
