/* ==================== RESPONSIVE.CSS ==================== */
/* Contains all responsive layouts for Tulja Bhavani UI */

/* ==================== TABLET (min-width: 600px) ==================== */
@media (min-width: 600px) {
    .service-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== DESKTOP (min-width: 900px) ==================== */
@media (min-width: 900px) {
    /* Larger Logo & Header on Desktop */
    .logo img {
        height: 80px !important;
    }
    .site-header {
        height: 95px;
    }
    body {
        padding-top: 95px;
    }

    /* Grid Layout Expansion */
    .service-grid,
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Typography Scaling */
    .hero h1 {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }
    
    .section h2 {
        font-size: clamp(2rem, 3vw, 2.5rem);
    }
}

/* ==================== MOBILE & SMALL DEVICES (max-width: 768px) ==================== */
@media (max-width: 768px) {
    
    /* ----- HEADER & LOGO ----- */
    .site-header {
        height: 72px; 
    }
    body {
        padding-top: 72px;
    }
    .logo img {
        height: 50px !important; /* Scaled down slightly to fit mobile header perfectly */
    }

    /* ----- MOBILE MENU TOGGLE (HAMBURGER ANIMATION) ----- */
    .nav-toggle {
        display: flex;
        background: none;
        border: none;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        padding: 0.5rem;
        transition: all 0.3s ease-in-out;
        z-index: 1001; /* Keeps toggle above the dropdown menu */
    }
    .nav-toggle .bar {
        width: 24px;
        height: 2px;
        background: #0f172a; /* Dark text color */
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }
    
    /* Transform hamburger into an 'X' when active */
    .nav-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .nav-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    /* ----- MOBILE NAVIGATION DRAWER ----- */
    .main-nav .nav-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98); 
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        padding: 0;
        gap: 0;
        max-height: 0; 
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid #e2e8f0;
        z-index: 1000;
    }
    
    .main-nav .nav-menu.active {
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        visibility: visible;
        opacity: 1;
        padding: 1rem;
    }

    .main-nav > .nav-menu > li > a {
        padding: 1rem 0;
        border-bottom: 1px solid #e2e8f0;
        width: 100%;
        display: block;
    }
    
    .main-nav > .nav-menu > li:last-child > a {
        border-bottom: none;
    }
    
    /* ----- MOBILE DROPDOWN (Inner Links) ----- */
    .has-dropdown .dropdown {
        position: static;
        box-shadow: none;
        padding-left: 1.5rem; 
        border: none;
        border-left: 2px solid #e2e8f0;
        margin-left: 0.5rem;
        margin-top: 0.5rem;
        display: none;
        transform: none;
        min-width: auto;
        background: transparent;
    }
    
    .has-dropdown.active .dropdown {
        display: block;
        animation: fadeIn 0.3s ease forwards;
    }

    /* ----- HERO SLIDER FIXES (For Homepage) ----- */
    .hero-slider-container {
        height: 70vh;
        min-height: 500px;
    }
    .slide-content {
        align-items: center;
        text-align: center;
        padding: 0 1.5rem;
    }
    .slide-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    .premium-trust-badges {
        display: none; /* Hide large horizontal corporate badges on mobile */
    }
    
    /* ----- STATIC HERO FIXES (For Inner Pages) ----- */
    .hero {
        padding: 3.5rem 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 98%, 0 100%); /* Reduces harsh angle */
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .trust-badges {
        margin-top: 2rem;
    }
    
    .trust-badges li {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    /* ----- FLOATING CONTACT BUTTONS ----- */
    .floating-buttons {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .floating-buttons a {
        width: 50px;
        height: 50px;
    }
    
    .floating-buttons a svg {
        width: 22px;
        height: 22px;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
