@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@300;400;500;700;800&display=swap');

:root {
    --primary: #004aad;
    --primary-dark: #003780;
    --secondary: #28a745;
    --secondary-dark: #1e7e34;
    --accent: #ffc107;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    /* Standardize to 8px */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
    /* Force all elements to stay inside */
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-white);
    direction: ltr;
    text-align: left;
}

.desktop-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    gap: 10px;
    transition: var(--transition);
    border: none;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 74, 173, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Header */
header {
    background: var(--bg-white);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

body {
    padding-top: 80px;
    /* Offset for fixed header */
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    white-space: nowrap;
}

.logo .tagline {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
}

.dropdown-trigger i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    /* Dynamically fits the longest text */
    min-width: 300px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 14px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid #f8f9fa;
    white-space: nowrap;
    /* Ensures one line */
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 25px;
}

.mobile-menu,
.menu-overlay,
.menu-toggle {
    display: none;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Slider */
.hero {
    height: 85vh;
    min-height: 650px;
    position: relative;
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    /* Positioned at the bottom */
    justify-content: flex-start;
    padding-bottom: 40px;
    /* Adjusted to be lower at the bottom edge */
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: absolute !important;
    bottom: 80px !important;
    left: 5% !important;
    margin: 0 !important;
    z-index: 2;
    max-width: 800px;
    text-align: left;
    color: white;
    animation: fadeInUp 1s ease-out;
}

.hero h2 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
    position: relative;
}



.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-btns {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.hero-btns .btn {
    padding: 12px 28px;
    font-size: 1rem;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 500px;
    }

    .swiper-slide {
        background-position: center;
        padding-bottom: 30px;
    }

    .hero-content {
        bottom: 40px !important;
        left: 5% !important;
        padding: 0;
    }

    .hero h2 {
        font-size: 2.2rem;
        white-space: normal;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .hero-btns {
        flex-direction: row;
        gap: 10px;
    }

    .hero-btns .btn {
        flex: 1;
        padding: 12px 10px;
        font-size: 0.9rem;
    }
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 30px;
}

/* Reviews Swiper Pagination Dots */
.reviewsSwiper {
    padding-bottom: 55px !important;
}

.reviewsSwiper .swiper-pagination {
    bottom: 0;
}

.reviewsSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cbd5e0;
    opacity: 1;
    transition: all 0.3s ease;
}

.reviewsSwiper .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 5px;
    background: var(--primary);
}

.reviewsSwiper .swiper-slide {
    height: auto;
}

.reviewsSwiper .feature-card {
    height: 100%;
    box-sizing: border-box;
}


.feature-card {
    background: #1e2228;
    color: #e2e8f0;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #ffffff;
    line-height: 1.6;
}

.feature-card h4 {
    color: #ffffff !important;
    /* Lighter tone of primary for dark backgrounds */
}

.feature-card:hover {
    background: #252a31;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.feature-card>i {
    font-size: 1.8rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #2b567d);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin: 0 auto 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(30, 61, 89, 0.4);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-img {
    height: 260px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-info {
    padding: 25px;
}

.service-info h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.service-info ul {
    margin-bottom: 20px;
}

.service-info li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-info li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: bold;
}

/* Emergency Banner */
.service-process-img {
    height: 450px !important;
    max-height: none !important;
}

.service-process-img img {
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: top right !important;
    display: block !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .service-process-img {
        height: 350px !important;
    }

    .process-steps {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .process-steps .step {
        padding: 10px 5px !important;
    }

    .process-steps .step div {
        width: 35px !important;
        height: 35px !important;
        margin: 0 auto 10px !important;
    }

    .process-steps .step h4 {
        font-size: 0.85rem !important;
    }

    .process-steps .step p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }
}

/* Detailed Services Cards */
.detailed-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.detail-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.detail-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.detail-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.detail-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.detail-card ul {
    margin-top: 15px;
    list-style: none;
    padding: 0;
}

.detail-card ul li {
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.detail-card ul li i {
    font-size: 0.8rem;
    color: var(--secondary);
    margin: 0;
}

.emergency-banner {
    background: var(--primary);
    color: white;
    padding: 40px 0;
}

.emergency-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.emergency-text {
    text-align: left;
}

.emergency-text h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    font-weight: 800;
}

.emergency-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.emergency-cta .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .emergency-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .emergency-text {
        text-align: center;
    }

    .emergency-text h2 {
        font-size: 1.6rem;
    }

    .emergency-text p {
        font-size: 0.95rem;
    }
}

/* Areas */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    text-align: center;
}

.area-tag {
    background: var(--bg-light);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--primary);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    /* 1st column is wider */
    gap: 15px;
    margin-bottom: 40px;
}

.footer-col:first-child {
    padding-right: 60px;
    /* Extra space after Logo section */
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-col:first-child {
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.footer-col p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-logo {
    display: block;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.social-fb:hover {
    background: #1877F2 !important;
}

.social-insta:hover {
    background: #E4405F !important;
}

.social-linkedin:hover {
    background: #0077b5 !important;
}

.social-whatsapp:hover {
    background: #25D366 !important;
}

.contact-details p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #ccc;
}

.contact-details i {
    color: var(--primary);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

/* Floating Buttons */
.floating-btns {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.float-whatsapp {
    background-color: #25d366;
}

.float-call {
    background-color: var(--primary);
}

.float-btn:hover {
    transform: scale(1.1);
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    justify-content: space-between;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .logo h1 {
        font-size: 1.1rem;
        display: block;
        margin: 0;
    }

    .logo .tagline {
        font-size: 0.75rem;
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }

    /* Mobile Menu drawer */
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--primary);
        cursor: pointer;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: white;
        z-index: 100002;
        transition: transform 0.4s ease;
        display: none !important;
        flex-direction: column;
        padding: 30px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    }

    .mobile-menu.active {
        display: flex !important;
        transform: translateX(-320px);
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
    }

    .menu-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-main);
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        /* Links will be stacked tight for accordions */
    }

    .mobile-nav-links a {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--text-main);
        text-decoration: none;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Mobile Service Dropdown */
    .mobile-dropdown-content {
        display: none;
        padding-left: 20px;
        background: #f9f9f9;
        flex-direction: column;
    }

    .mobile-dropdown-content a {
        font-size: 1rem;
        font-weight: 500;
        color: #555;
        border-bottom: 1px solid #ddd;
    }

    .mobile-dropdown.active .mobile-dropdown-content {
        display: flex;
    }

    .mobile-dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }

    /* Service Detail Responsive Fix */
    .services-grid {
        grid-template-columns: 1fr !important;
        /* Stack for mobile */
        gap: 30px;
    }

    .detail-sidebar {
        order: -1;
        /* Sidebar with CTA comes first on mobile */
    }

    .service-detail-hero h1 {
        font-size: 2.2rem !important;
    }

    .service-detail-hero {
        padding: 60px 0 !important;
    }

    .mobile-menu-footer {
        margin-top: auto;
        padding-top: 20px;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 100001;
        display: none;
    }

    .menu-overlay.active {
        display: block;
    }

    .section-title h2 {
        font-size: 1.6rem;
        margin-bottom: 10px;
        white-space: normal;
        /* Fix overflow */
    }

    .section-title p {
        font-size: 0.9rem;
        white-space: normal;
        /* Fix overflow */
    }

    .section-padding {
        padding: 50px 0;
    }

    .floating-btns {
        bottom: 80px;
    }

    .mobile-sticky-bar {
        display: flex;
    }

    /* Hide buttons when menu is active */
    body.menu-active .floating-btns,
    body.menu-active .mobile-sticky-bar {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .emergency-text h2 {
        font-size: 1.5rem;
    }

    .emergency-cta .btn {
        width: 100%;
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}

/* Icons replacement (FontAwesome or SVG) */
[class^="icon-"] {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
}