@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700;800&display=swap');
@import 'variables.css';

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--color-secondary);
    color: var(--color-text-white);
    box-shadow: 0 4px 15px rgba(0, 168, 232, 0.4);
}

.btn-primary:hover {
    background: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 232, 0.6);
}

.btn-outline {
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-secondary);
    color: white;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Header */
.header {
    height: var(--header-height);
    background: rgba(9, 9, 11, 0.95);
    /* Deep Black background */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--color-secondary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--color-secondary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu To be implemented */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu logic needed */
    }

    .menu-toggle {
        display: block;
    }
}

/* Dropdown Menu - Global Styles */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg-white);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
    color: var(--color-text-main);
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--color-bg-light);
    color: var(--color-secondary);
}

.dropdown-menu a::after {
    display: none;
    /* Remove underline effect for dropdown items */
}

/* Dropdown Mobile Overrides */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        display: none;
        /* JS toggle would be needed for mobile click */
    }
}

/* CSS for Dropdown Menu Mobile Override */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        display: none;
        /* JS toggle would be needed for mobile click */
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

/* Phone Floating Button */
.phone-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 110px;
    /* Positioned above WhatsApp */
    left: 40px;
    background-color: var(--color-secondary);
    /* Matches site secondary color */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 26px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.phone-float:hover {
    transform: scale(1.1);
    background-color: #0081b3;
    /* Slightly darker shade */
}

/* Quote Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--color-bg-white);
    margin: 5% auto;
    /* Adjusted top margin */
    padding: 40px;
    border: 1px solid var(--color-border);
    width: 95%;
    max-width: 650px;
    /* Made wider for 2 columns */
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    max-height: 90vh;
    /* Scroll if too tall on mobile */
    overflow-y: auto;
    animation: slideDown 0.3s;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal input,
.modal textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-alt);
    color: var(--color-text-main);
    border-radius: 8px;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =========================================
   MOBILE RESPONSIVE STYLES
   ========================================= */
@media (max-width: 768px) {

    /* Layout Adjustments */
    .container {
        padding: 0 20px;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Header & Nav */
    .header {
        padding: 15px 0;
    }

    .menu-toggle {
        display: block;
        /* Ensure hamburger is visible */
        font-size: 1.8rem;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        /* Hidden by default, JS toggles this */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--color-bg-white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        text-align: center;
    }

    .nav-links li {
        margin: 15px 0;
    }

    /* Hero Section */
    .hero {
        padding-top: 100px !important;
        text-align: center;
    }

    .hero .container>div {
        grid-template-columns: 1fr !important;
        /* Stack columns */
        gap: 30px !important;
    }

    .hero h1 {
        font-size: 2.2rem !important;
        /* Smaller heading */
    }

    .hero p {
        font-size: 1rem !important;
    }

    .hero div[style*="display: flex"] {
        justify-content: center;
        /* Center buttons */
    }

    /* Brands & Services Grids */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        /* Force single column */
    }

    /* Service Template Pages Grid */
    .section-padding>.container>div[style*="display:grid"] {
        grid-template-columns: 1fr !important;
    }

    /* Why Choose Us Section */
    section[style*="background: var(--color-bg-light)"] .container>div {
        grid-template-columns: 1fr !important;
    }

    /* Floating Buttons Mobile Position */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }

    .phone-float {
        width: 50px;
        height: 50px;
        font-size: 22px;
        bottom: 80px;
        /* Closer spacing */
        left: 20px;
    }

    /* Fix for Cards in Dark Mode */
    .card,
    .service-box,
    .feature-box,
    .box,
    .white-bg {
        background-color: var(--color-bg-white) !important;
        color: var(--color-text-main) !important;
        border: 1px solid var(--color-border);
    }

    .card h3,
    .service-box h3,
    .feature-box h3 {
        color: var(--color-primary);
    }

    .card p,
    .service-box p,
    .feature-box p {
        color: var(--color-text-light);
    }

    /* Specific fix for the white boxes seen in screenshot */
    div[style*="background: white"],
    div[style*="background-color: white"],
    div[style*="background:white"],
    div[style*="background-color:white"],
    li[style*="background: white"],
    li[style*="background-color: white"],
    .bg-white {
        background-color: var(--color-bg-white) !important;
        color: var(--color-text-main) !important;
        border: 1px solid var(--color-border) !important;
        box-shadow: var(--shadow-sm) !important;
    }

    /* Force dark background on specific known light areas if identified by class */
    .sidebar-box,
    .widget,
    .info-box {
        background-color: var(--color-bg-white) !important;
        color: var(--color-text-main) !important;
        border: 1px solid var(--color-border);
    }

    /* Ensure all headings inside these forced dark boxes are visible */
    div[style*="background"] h1,
    div[style*="background"] h2,
    div[style*="background"] h3,
    div[style*="background"] h4,
    div[style*="background"] h5,
    div[style*="background"] h6 {
        color: var(--color-primary) !important;
    }

    div[style*="background"] p,
    div[style*="background"] span,
    div[style*="background"] li {
        color: var(--color-text-light) !important;
    }

    /* Ensure icons/images in these boxes look good */
    .card img,
    .service-box img {
        border-radius: 8px;
    }

    /* Mobile Responsive Styles */
    @media (max-width: 768px) {

        /* ... existing mobile styles ... */
        .modal form {
            grid-template-columns: 1fr !important;
        }

        .modal form div[style*="grid-column: span 1"],
        .modal form div[style*="grid-column: span 2"] {
            grid-column: span 1 !important;
        }
    }