/* ==================== RESET & VARIABLES ==================== */
:root {
    /* Brand Colors (Updated to match Tulja Bhavani Logo) */
    --primary: #0f2b5b;       /* Deep Navy Blue */
    --primary-hover: #0a1d3e; 
    --secondary: #d91a2a;     /* Vibrant Red */
    --secondary-hover: #b91523;
    
    /* UI Colors */
    --light-bg: #f8fafc;
    --dark: #0f172a;
    --text: #475569; 
    --text-light: #94a3b8;
    --white: #ffffff;
    --border: #e2e8f0;
    
    /* Layout & Scale */
    --max-width: 1200px;
    --radius: 12px; 
    --header-height: 72px;
    
    /* Typography */
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
    /* Prevents anchor links from hiding under the fixed header */
    scroll-padding-top: calc(var(--header-height) + 2rem); 
}

body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--text);
    background: var(--light-bg);
    padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Better text selection */
::selection {
    background: var(--primary);
    color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* Accessibility: Clear focus rings */
*:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* ==================== UTILITY ==================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    font-weight: 600;
    border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
    top: 0;
}

/* ==================== STICKY HEADER & LOGO ==================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: height 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo img {
    height: 60px !important; /* Larger size for better brand presence */
    width: auto;
    transition: var(--transition);
}
.logo:hover img {
    opacity: 0.85;
}

@media (min-width: 900px) {
    .logo img {
        height: 80px !important; /* Massive presence on Desktop */
    }
    .site-header {
        height: 95px; /* Expand header slightly for big logo */
    }
    body {
        padding-top: 95px; /* Adjust body padding to prevent content clipping */
    }
}

/* ==================== NAVIGATION ==================== */
.main-nav .nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    color: var(--dark);
    padding: 0.5rem 0;
    display: block;
    white-space: nowrap;
    font-size: 0.95rem;
    position: relative;
}

/* Dynamic Active State & Hover Underline */
.main-nav > .nav-menu > li > a.active {
    color: var(--secondary);
}
.main-nav > .nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}
.main-nav > .nav-menu > li > a:hover::after,
.main-nav > .nav-menu > li > a.active::after {
    width: 100%;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}
.has-dropdown .dropdown {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 120%; 
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 240px;
    z-index: 200;
    border: 1px solid var(--border);
    transition: var(--transition);
    transform: translateY(10px);
}
.has-dropdown:hover .dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    top: 100%;
}
.dropdown li a {
    padding: 0.75rem 1.5rem;
    color: var(--text);
    font-size: 0.9rem;
}
.dropdown li a:hover {
    background: var(--light-bg);
    color: var(--primary);
    padding-left: 1.75rem; 
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    z-index: 1001;
}
.nav-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}
.nav-toggle:hover .bar {
    background: var(--primary);
}

/* ==================== STATIC HERO (For Inner Pages) ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 6rem 1.5rem;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%); 
}
.hero h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem); 
    margin-bottom: 1.2rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ==================== PREMIUM HERO SLIDER (For Homepage) ==================== */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 85vh; /* Covers most of the screen */
    min-height: 600px;
    overflow: hidden;
    background-color: var(--dark);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, transform 5s linear; /* Smooth crossfade and slight zoom */
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Dark gradient overlay so text is highly readable */
.slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 43, 91, 0.6) 100%);
}

.slide-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Corporate left align */
    z-index: 10;
    color: var(--white);
}

.slide-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    max-width: 800px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.slide-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whatsapp-btn-main { background: #25D366; color: white; border: none; }
.whatsapp-btn-main:hover { background: #1ebd58; transform: translateY(-2px); }
.call-btn-main { background: var(--secondary); color: white; border: none; }
.call-btn-main:hover { background: var(--secondary-hover); transform: translateY(-2px); }

/* Premium Trust Badges Overlay (Bottom of Slider) */
.relative-badges {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 20;
}

.premium-trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    list-style: none;
    margin: 0 auto;
    max-width: var(--max-width);
}

.premium-trust-badges li {
    padding: 0 2rem;
    font-weight: 700;
    color: var(--primary);
    border-right: 2px solid var(--border);
    font-size: 1.05rem;
}

.premium-trust-badges li:last-child {
    border-right: none;
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 5rem 1.5rem;
}
.section h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 2.5rem;
    color: var(--dark);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}
.btn:hover {
    background: var(--secondary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn:active {
    transform: translateY(0);
}

/* ==================== PREMIUM SERVICE CARDS ==================== */
.service-grid {
    display: grid;
    gap: 2rem;
}

.card {
    border: none;
    border-top: 4px solid var(--primary); /* Thick brand color line on top */
    background: var(--white);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08); /* Soft corporate shadow */
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border-top-color: var(--secondary);
}

.card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 1rem;
}

.card p {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ==================== AREA GRID ==================== */
.area-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}
.area-grid span {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}
.area-grid span:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: scale(1.05);
}

/* ==================== GALLERY GRID ==================== */
.gallery-grid {
    display: grid;
    gap: 1.5rem;
}
.gallery-grid img {
    border-radius: var(--radius);
    object-fit: cover;
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    background: var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.gallery-grid img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--dark);
    color: var(--text-light);
    padding: 4rem 1.5rem 2rem;
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
}
.footer-col h3 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 0.5rem;
}
.footer-col a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}
.footer-col a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* ==================== FLOATING BUTTONS ==================== */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 900;
}
.floating-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-decoration: none;
}
.floating-buttons a:hover {
    transform: translateY(-4px) scale(1.05);
}
.whatsapp-btn {
    background: #25D366;
}
.whatsapp-btn:hover {
    background: #20bd5a;
}
.call-btn {
    background: var(--primary);
}
.call-btn:hover {
    background: var(--primary-hover);
}

/* ==================== BREADCRUMBS ==================== */
.breadcrumbs {
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text);
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
.breadcrumbs a {
    color: var(--text);
    font-weight: 500;
}
.breadcrumbs a:hover {
    color: var(--primary);
}
.breadcrumbs .sep {
    color: var(--text-light);
}

/* ==================== FAQ ==================== */
dl {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
dl dt {
    font-weight: 700;
    margin-top: 1.5rem;
    color: var(--dark);
    font-size: 1.1rem;
}
dl dt:first-child {
    margin-top: 0;
}
dl dd {
    margin-left: 0;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
dl dd:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* ==================== FORM ==================== */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--light-bg);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(15, 43, 91, 0.1); 
}

.hp-field { display: none !important; }
.success-msg { background: #ecfdf5; color: #065f46; border: 1px solid #10b981; padding: 1rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-weight: 500; }
.error-msg { color: #dc2626; font-size: 0.85rem; margin-top: 0.4rem; display: block; }

/* ==================== RESPONSIVE MEDIA QUERIES ==================== */

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

/* DESKTOP */
@media (min-width: 900px) {
    .service-grid,
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* MOBILE NAVIGATION & LAYOUT */
@media (max-width: 768px) {
    /* Menu Toggle Fixes */
    .nav-toggle {
        display: flex;
    }
    
    /* Animated Hamburger to X */
    .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 Menu Drawer */
    .main-nav .nav-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        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 var(--border);
    }
    
    .main-nav .nav-menu.active {
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        visibility: visible;
        opacity: 1;
        padding: 1rem;
    }

    .main-nav > .nav-menu > li > a {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
        display: block;
    }
    
    .main-nav > .nav-menu > li:last-child > a {
        border-bottom: none;
    }
    
    /* Mobile Dropdown */
    .has-dropdown .dropdown {
        position: static;
        box-shadow: none;
        padding-left: 1.5rem; 
        border: none;
        border-left: 2px solid var(--border);
        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;
    }

    /* Mobile Hero & Slider Fixes */
    .hero-slider-container {
        height: 70vh;
        min-height: 500px;
    }
    .slide-content {
        align-items: center;
        text-align: center;
    }
    .premium-trust-badges {
        display: none; /* Hide wide corporate badges on mobile hero to save screen space */
    }
    
    .hero {
        padding: 3.5rem 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 98%, 0 100%);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .trust-badges {
        margin-top: 2rem;
    }
    
    .trust-badges li {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .floating-buttons {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .floating-buttons a {
        width: 50px;
        height: 50px;
    }
}

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