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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #dc2626;
    color: white;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.btn-emergency {
    background-color: #dc2626;
    color: white;
    font-weight: 700;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-emergency:hover {
    background-color: #b91c1c;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Top Bar */
.top-bar {
    background-color: #1f2937;
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

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

.phone-number {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-number a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.phone-number i {
    color: #dc2626;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #dc2626;
    font-weight: 700;
}

.logo span {
    background-color: #dc2626;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #dc2626;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #dc2626;
    transition: width 0.3s ease;
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #374151;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.hero-content {
    color: white;
    max-width: 600px;
    z-index: 2;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-cta, .btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.4);
}

/* Section Styles */
section {
    padding: 80px 0;
    transition: background 0.3s ease;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: #ffffff;
    padding: 90px 0;
}

/* Why Choose Us Section */
.why-choose-us {
    background: linear-gradient(to right, #c81919, #b31515);
    color: white;
    padding: 60px 0;
}

.why-choose-us .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.why-choose-us .section-header h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.25rem;
    font-weight: 700;
}

.why-choose-us .section-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.value-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.value-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.value-icon i {
    font-size: 1.75rem;
    color: white;
}

.value-card h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.value-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 0.95rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(220, 38, 38, 0.15);
    border-color: #dc2626;
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: #dc2626;
    color: white;
}

.service-icon i {
    font-size: 2rem;
    color: #dc2626;
    transition: color 0.3s ease;
}

.service-card:hover .service-icon i {
    color: white;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.service-card p {
    color: #6b7280;
    line-height: 1.6;
}



/* Service Areas Section */
.service-areas {
    background: #f8f8f8;
    padding: 90px 0;
}

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

.area-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.area-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(220, 38, 38, 0.15);
    border-color: #dc2626;
}

.area-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.area-icon i {
    font-size: 1.5rem;
    color: white;
}

.area-card h3 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.25rem;
}

.area-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* About Section */
.about {
    background: linear-gradient(to bottom, #fafafa, #ffffff);
    padding: 90px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text .section-header {
    text-align: left;
}

.about-description p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* MTO Licensed Section */
.mto-licensed {
    background: linear-gradient(to bottom, #fafafa, #ffffff);
    padding: 90px 0;
}

.mto-header {
    text-align: center;
    margin-bottom: 3rem;
}

.mto-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.mto-icon i {
    font-size: 2rem;
    color: white;
}

.mto-header h2 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 2.25rem;
    font-weight: 700;
}

.mto-header p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.certification-card {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.certification-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fdf9;
    border-radius: 10px;
    border: 1px solid #e6f7e8;
    transition: all 0.3s ease;
}

.badge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.badge-item i {
    color: #10b981;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.badge-item span {
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    background: #ffffff;
    padding: 90px 0;
}

.contact-content {
    display: flex;
    gap: 3rem;
    align-items: stretch;
}

.contact-form-card,
.contact-info-card {
    flex: 1;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.contact-form-card h3,
.contact-info-card h3 {
    margin-bottom: 2rem;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group .optional {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d62828;
    box-shadow: 0 0 3px rgba(214, 40, 40, 0.3);
}

.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #ef4444;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #10b981;
}

.form-note {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.btn-full-width {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
}

.contact-item i {
    color: #dc2626;
    font-size: 1.3rem;
    width: 24px;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    display: block;
    color: #374151;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-item a:hover {
    text-decoration: underline;
}

.dispatch-note {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 2rem 0;
    text-align: center;
}

.dispatch-note p {
    color: #374151;
    margin: 0;
    font-weight: 500;
}

.service-areas {
    margin: 2rem 0;
}

.service-areas h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.areas-list span {
    background: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.social-links a:hover {
    background-color: #dc2626;
    color: white;
    transform: translateY(-2px);
    border-color: #dc2626;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    color: #dc2626;
    margin: 0;
}

.footer-logo span {
    background-color: #dc2626;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #dc2626;
}

.footer-contact-simple {
    margin-bottom: 2rem;
}

.contact-line {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.contact-line i {
    color: #d1d5db;
    width: 18px;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.contact-line span {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-line a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-line a:hover {
    color: #dc2626;
}

/* Footer Social Links Override */
.footer .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer .social-links a {
    width: 40px;
    height: 40px;
    background-color: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.site-credit a {
    color: #dc2626;
    text-decoration: none;
}

/* Floating Call Button */
.floating-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: block;
}

.floating-call-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #dc2626;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.floating-call-btn a:hover {
    background-color: #b91c1c;
    transform: scale(1.1);
}

.floating-call-btn i {
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .areas-grid,
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    /* Value Cards responsive - 2 columns on tablets */
    .value-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* MTO Licensed responsive */
    .certification-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: -100%;
        width: 100%;
        height: calc(100vh - 100%);
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Value Cards mobile */
    .value-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .value-card {
        padding: 1.5rem;
    }
    
    /* Areas */
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    /* MTO Licensed mobile */
    .certification-badges {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mto-header h2 {
        font-size: 1.75rem;
    }
    
    .certification-card {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Floating Call Button */
    .floating-call-btn {
        display: block;
    }
    
    /* Top Bar */
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .phone-number {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .service-card,
    .contact-form,
    .contact-card {
        padding: 1rem;
    }
    
    .floating-call-btn {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-call-btn a {
        width: 55px;
        height: 55px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }
    
    .service-card {
        border: 1px solid #000;
    }
}

/* Print styles */
@media print {
    .top-bar,
    .hamburger,
    .floating-call-btn,
    .social-links {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-background {
        display: none;
    }
    
    .hero-content {
        color: #000;
    }
}
