/* Variables & Theming */
:root {
    --primary-color: #E63946;
    --primary-dark: #C1121F;
    --secondary-color: #1D3557;
    --secondary-light: #457B9D;
    --light-bg: #F1FAEE;
    --white: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    font-weight: 700;
}

.highlight {
    color: var(--primary-color);
}

.section-subtitle {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
}

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

.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

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

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

.bg-light {
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

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

.btn-secondary {
    background-color: var(--white);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background-color: var(--light-bg);
    transform: translateY(-2px);
}

.btn-primary.large, .btn-secondary.large {
    padding: 15px 35px;
    font-size: 18px;
}

.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    padding: 0;
}

.navbar.scrolled {
    padding: 0;
}

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

.logo img {
    height: 90px;
    object-fit: contain;
}

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

.nav-links a {
    font-weight: 600;
    color: var(--secondary-color);
    position: relative;
    transition: var(--transition);
}

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

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

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

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(29, 53, 87, 0.9) 0%, rgba(29, 53, 87, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
}

.badge {
    display: inline-block;
    background-color: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-content h1 {
    font-size: 54px;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Emergency Banner */
.emergency-banner {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.banner-inner {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.banner-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.banner-item i {
    font-size: 40px;
    color: var(--primary-color);
}

.banner-item h4 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 20px;
}

.banner-item p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

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

.about-image {
    position: relative;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.experience-badge h3 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 5px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.feature-list {
    margin-bottom: 30px;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    color: var(--secondary-color);
}

.feature-list li i {
    color: var(--primary-color);
    font-size: 20px;
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary-color);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-card:hover .icon-wrapper {
    background-color: var(--primary-color);
}

.icon-wrapper i {
    font-size: 35px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .icon-wrapper i {
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.service-card p {
    color: var(--text-muted);
}

/* Why Choose Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.why-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.3);
}

.why-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.why-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

/* Areas Covered Section */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.area-item {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.area-item i {
    color: var(--primary-color);
}

.area-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

.area-item:hover i {
    color: var(--white);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.faq-item summary {
    padding: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    position: relative;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item[open] summary {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--primary-color);
}

.faq-content {
    padding: 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Call To Action */
.cta-section {
    background: linear-gradient(rgba(29, 53, 87, 0.9), rgba(29, 53, 87, 0.9)), url('ambulance service.jpg.jpeg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    font-size: 40px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

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

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 200px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
}

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

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

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h3 {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

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

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: rgba(255,255,255,0.7);
}

.contact-info-list li i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

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

    .section-title {
        font-size: 30px;
    }

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

@media (max-width: 768px) {
    .logo img {
        height: 55px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        backdrop-filter: blur(10px);
    }
    
    .nav-links.active {
        max-height: 400px;
        padding: 20px 0;
    }
    
    .nav-links a {
        padding: 12px 0;
        width: 100%;
        text-align: center;
        font-size: 16px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-contact {
        display: block;
    }

    .nav-contact a {
        padding: 8px 12px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        min-height: 500px;
        height: auto;
        padding: 120px 0 60px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 15px;
        margin-bottom: 25px;
    }

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

    .btn-primary.large, .btn-secondary.large {
        padding: 14px 28px;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }
    
    .emergency-banner {
        margin-top: 0;
        border-radius: 0;
    }

    .banner-inner {
        flex-direction: column;
        gap: 20px;
        padding: 10px 20px;
    }

    .banner-item i {
        font-size: 30px;
    }

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

    .section-title {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

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

    .about-container {
        gap: 30px;
    }

    .about-content p {
        font-size: 15px;
    }

    .feature-list li {
        font-size: 14px;
        gap: 10px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }

    .why-card {
        padding: 25px 20px;
    }
    
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .area-item {
        padding: 15px 10px;
        font-size: 14px;
    }

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

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

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

    .faq-item summary {
        font-size: 15px;
        padding: 16px;
    }

    .faq-content {
        padding: 16px;
        font-size: 14px;
    }

    .footer {
        padding-top: 50px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-bottom: 40px;
    }

    .footer-col h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .footer-logo {
        height: 120px;
    }
}

@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 26px;
    }

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

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        bottom: 10px;
        right: 10px;
        padding: 12px;
    }

    .experience-badge h3 {
        font-size: 24px;
    }
}
