/* Ansultech Fire Systems Ltd - Main Stylesheet */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #e63946;
    --primary-dark: #c1121f;
    --secondary-color: #1d3557;
    --accent-color: #457b9d;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #212529;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

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

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

ul {
    list-style: none;
}

/* ===== Header & Navigation ===== */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
}

.header-top-info span {
    display: flex;
    align-items: center;
}

.header-top-info i {
    margin-right: 5px;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    font-size: 32px;
}

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

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    color: var(--secondary-color);
    padding: 5px 0;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 10001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Mobile Menu Close Button */
.menu-close {
    display: none;
    position: fixed;
    top: 15px;
    right: 295px;
    z-index: 10003;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.menu-close i {
    font-size: 18px;
}

.menu-close:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hero-buttons {
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 15px;
}

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

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Sections ===== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-title .line {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 20px auto 0;
}

/* ===== About Section ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-box .number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-box .label {
    color: var(--text-light);
    font-size: 14px;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    border-radius: 10px;
    z-index: -1;
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card-image {
    height: 220px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-content {
    padding: 30px;
}

.service-card-content h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-card-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-card-content ul {
    margin-bottom: 20px;
}

.service-card-content ul li {
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.service-card-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.service-card-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.service-card-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-card-link:hover i {
    margin-left: 10px;
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 64px;
}

.product-card-content {
    padding: 25px;
}

.product-card-content h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.product-card-content .category {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.product-card-content p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 15px;
}

/* ===== Features Section ===== */
.features-section {
    background-color: var(--secondary-color);
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 30px;
}

.feature-box i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-box p {
    opacity: 0.8;
    font-size: 15px;
}

/* ===== Locations Section ===== */
.locations-section {
    background-color: var(--white);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.location-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 30px;
    border-left: 4px solid var(--primary-color);
}

.location-card h3 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.location-card h3 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.location-card p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.location-card p i {
    width: 20px;
    color: var(--accent-color);
}

/* ===== Contact Section ===== */
.contact-section {
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: 10px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-item i {
    font-size: 24px;
    margin-right: 15px;
    color: var(--primary-color);
}

.contact-info-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-info-item p {
    opacity: 0.9;
}

.contact-form {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 10px;
}

.contact-form h3 {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

/* ===== News Section ===== */
.news-section {
    background-color: var(--light-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-content {
    padding: 25px;
}

.news-date {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-card-content h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.news-card-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-section .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

/* ===== Footer ===== */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding-top: 60px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-about .logo span {
    color: var(--primary-color);
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    opacity: 0.8;
    font-size: 15px;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    opacity: 0.8;
    font-size: 14px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-top-info span:last-child {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Logo */
    .logo img {
        max-height: 50px !important;
    }

    /* Header Top */
    .header-top {
        font-size: 12px;
        padding: 8px 0;
    }

    .header-top .container {
        flex-direction: column;
        gap: 8px;
    }

    .header-top-info {
        justify-content: center;
        font-size: 11px;
    }

    .header-top-info span {
        margin: 0;
    }

    .header-top-social {
        display: none;
    }

    /* Mobile Menu Toggle */
    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 10004;
    }

    /* Show close button on mobile when menu is active */
    .menu-close {
        display: none !important;
    }

    body.menu-open .menu-close {
        display: flex !important;
    }

    /* Navigation - Hidden by default on mobile */
    nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 10002;
        overflow-y: auto;
        padding-top: 60px;
        -webkit-overflow-scrolling: touch;
        /* Force new stacking context */
        transform: translateZ(0);
        will-change: transform;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
        /* Ensure ul is clickable */
        position: relative;
        z-index: 1;
    }

    nav ul li {
        margin: 0;
        border-bottom: 1px solid var(--border-color);
        /* Ensure li is clickable */
        position: relative;
        z-index: 1;
    }

    nav ul li a {
        padding: 15px 20px;
        display: block;
        position: relative;
        z-index: 1;
    }

    /* Dropdown menus on mobile */
    .dropdown-menu {
        position: static !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background-color: #f8f9fa;
        max-height: none;
        overflow: visible;
        padding: 0;
        width: 100%;
        /* Ensure dropdown is clickable */
        position: relative;
        z-index: 1;
    }

    .dropdown-menu.active {
        display: block !important;
    }

    .dropdown-menu li a {
        position: relative;
        z-index: 1;
    }

    /* Hero Section */
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    /* Page Header */
    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .page-header p {
        font-size: 15px;
    }

    /* Section Title */
    .section-title h2 {
        font-size: 26px;
    }

    /* Sections */
    section {
        padding: 50px 0;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
    }

    /* News Grid */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Locations Grid */
    .locations-grid {
        grid-template-columns: 1fr;
    }

    /* Stats Grid */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-box {
        padding: 20px 15px;
    }

    .stat-box .number {
        font-size: 32px;
    }

    /* Contact Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        padding: 25px 20px;
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 22px;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* CTA Section */
    .cta-section {
        padding: 50px 0;
    }

    .cta-section h2 {
        font-size: 26px;
    }

    .cta-section p {
        font-size: 16px;
    }

    /* Service Cards */
    .service-card-content {
        padding: 20px;
    }

    .service-card-content h3 {
        font-size: 20px;
    }

    /* News Cards */
    .news-card-content {
        padding: 20px;
    }

    .news-card-content h3 {
        font-size: 18px;
    }

    /* Partners Section */
    .partners-section {
        padding: 40px 0;
    }

    .partners-track img {
        max-height: 35px !important;
        margin: 0 20px !important;
    }
}

@media (max-width: 480px) {
    /* Extra Small Phones */
    .hero h1 {
        font-size: 22px;
    }

    .hero p {
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-box .number {
        font-size: 28px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .service-card-image,
    .news-card-image,
    .product-card-image {
        height: 160px;
    }
}

/* Mobile Dropdown Improvements */
@media (max-width: 768px) {
    /* Hide dropdown menus by default on mobile */
    .dropdown-menu {
        position: static !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background-color: var(--light-bg);
        max-height: none;
        overflow: visible;
        padding: 0;
        width: 100%;
    }

    .dropdown-menu.active {
        display: block !important;
    }

    .dropdown-toggle.active i {
        transform: rotate(180deg);
    }

    .dropdown-menu li {
        width: 100%;
    }

    .dropdown-menu li a {
        padding: 12px 20px 12px 40px;
        font-size: 14px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .dropdown-menu li a.featured {
        padding-left: 40px;
    }

    .emergency-btn {
        width: calc(100% - 40px);
        margin: 15px 20px;
    }

    .header-main .container {
        flex-wrap: wrap;
    }

    /* Lock body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Add dim overlay - using pointer-events to not block menu clicks */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        pointer-events: none;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .header-main {
        position: sticky;
        -webkit-position: sticky;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .dropdown-menu {
        transition: none;
    }

    nav ul li:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
    }

    .dropdown-menu.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ===== Partners Scrolling Animation ===== */
.partners-track {
    display: flex;
    align-items: center;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
    padding: 20px 0;
}

.partners-track img {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.partners-track img:hover {
    transform: scale(1.1);
    opacity: 1 !important;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.partners-section:hover .partners-track {
    animation-play-state: paused;
}

/* ===== Emergency Banner ===== */
.emergency-banner {
    background-color: #dc143c;
    color: var(--white);
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 1002;
}

.emergency-banner a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 700;
}

.emergency-banner i {
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== Emergency Service Button ===== */
.emergency-btn {
    background-color: #dc143c;
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.emergency-btn:hover {
    background-color: #b01030;
    transform: translateY(-2px);
    color: var(--white) !important;
}

.emergency-btn i {
    margin-right: 8px;
}

/* ===== Dropdown Menus ===== */
nav ul li {
    position: relative;
    margin-left: 30px;
}

nav ul li .dropdown-toggle {
    display: inline-flex;
    align-items: center;
}

nav ul li .dropdown-toggle i {
    margin-left: 5px;
    font-size: 12px;
    transition: var(--transition);
}

nav ul li:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 9999;
    padding: 10px 0;
    list-style: none;
    display: block;
    flex-direction: column;
    flex-wrap: nowrap;
}

nav ul li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    display: block;
    flex-shrink: 0;
    flex-basis: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 25px;
    color: var(--text-dark);
    font-weight: 400;
    border-left: 3px solid transparent;
    transition: var(--transition);
    font-size: 15px;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 30px;
}

.dropdown-menu li a.featured {
    color: var(--primary-color);
    font-weight: 600;
}

.dropdown-menu li a.featured::after {
    content: '★';
    margin-left: 8px;
    font-size: 12px;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
    width: 100%;
}

/* Make sure dropdown isn't clipped */
.header-main {
    overflow: visible;
}

.header-main .container {
    overflow: visible;
}

nav {
    overflow: visible;
}

/* ===== Header Adjustments for Emergency Banner ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ===== Nav Items with Emergency Button ===== */
nav ul {
    align-items: center;
}

nav ul li.emergency-nav-item {
    margin-left: 20px;
}

