/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --primary: #1a6b9f;
    --secondary: #0fc1d9;
    --dark: #103548;
    --light: #f5f9fc;
    --accent: #36b37e;
    --emergency: #e74c3c;
    --gray: #58636b;
    --warning: #f39c12; /* Added from HTML files */
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--light), #e8f4f8); /* Enhanced from HTML files */
    color: #333;
    line-height: 1.6;
    min-height: 100vh; /* Added */
}

/* ===== HEADER STYLES ===== */
header {
    background-color: rgba(245, 249, 252, 0.95); /* Enhanced with transparency */
    backdrop-filter: blur(10px); /* Added modern effect */
    border-bottom: 3px solid var(--primary);
    position: fixed;
    width: 100%;
    z-index: 1000; /* Increased z-index */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

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

.header-cta {
    display: flex;
    gap: 20px; /* Increased gap */
    align-items: center;
}

.phone-number {
    color: var(--primary); /* Changed from var(--dark) */
    font-weight: 600; /* Reduced from 700 */
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s; /* Added transition */
}

.emergency-btn {
    background-color: var(--emergency);
    color: white;
    padding: 12px 25px; /* Increased padding */
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.emergency-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center; /* Added */
    gap: 30px; /* Added gap instead of margin */
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

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

.nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary); /* Added color */
}

/* ===== DROPDOWN STYLES ===== */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 250px; /* Increased width */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    top: 100%;
    left: 0;
    border: 1px solid #ddd;
}

.dropdown-content a {
    color: var(--dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: var(--light);
    color: var(--primary);
}

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

/* ===== PAGE HEADERS ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    padding: 160px 5% 80px; /* Increased top padding for fixed header */
    text-align: center;
    margin-top: 70px; /* Added margin for fixed header */
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px; /* Increased margin */
    line-height: 1.2;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ===== BREADCRUMB (Added from HTML files) ===== */
.breadcrumb {
    background-color: var(--light);
    padding: 15px 5%;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
    margin-right: 10px;
}

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

.breadcrumb span {
    color: var(--primary);
    font-weight: 600;
}

/* ===== LAYOUT & CONTAINERS ===== */
.content-section {
    padding: 80px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px; /* Increased margin */
    position: relative; /* Added for potential decorations */
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 15px 35px; /* Increased padding */
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin: 0 10px; /* Added margin */
}

.btn-primary {
    background-color: var(--primary); /* Changed from accent */
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark); /* Changed hover color */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary); /* Enhanced */
    color: white;
}

.btn-secondary:hover {
    background-color: #0ba8c0;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

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

.btn-emergency:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 25px; /* Increased margin */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 15px; /* Increased padding */
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

select.form-control {
    background-color: white;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* ===== SUCCESS & ERROR MESSAGES ===== */
.success-message {
    background: var(--accent);
    color: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.error-message {
    background-color: #fdf2f2;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

/* ===== CARDS & COMPONENTS ===== */
.trust-item, 
.service-card, 
.testimonial-card,
.feature-card,
.benefit-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.trust-item:hover, 
.service-card:hover, 
.testimonial-card:hover,
.feature-card:hover,
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
}

.service-card {
    border-left: 4px solid var(--primary); /* Added border */
}

.credential-card, .contact-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.credential-card:hover {
    transform: translateY(-5px);
}

/* ===== GRID LAYOUTS (Added from HTML files) ===== */
.services-grid,
.features-grid,
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

/* ===== OVERVIEW SECTIONS (Added from HTML files) ===== */
.service-overview {
    background-color: var(--light);
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.overview-text h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 30px;
}

.overview-text p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 20px;
}

.overview-image {
    text-align: center;
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.overview-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.overview-image img:hover {
    transform: scale(1.02);
}

.overview-image h3 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.overview-image p {
    color: var(--gray);
    font-size: 1rem;
}

/* ===== HIGHLIGHT BOXES (Added from HTML files) ===== */
.feature-highlight,
.certification-highlight {
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    color: white;
}

.feature-highlight {
    background-color: var(--accent);
}

.certification-highlight {
    background-color: var(--accent);
}

.feature-highlight h3,
.certification-highlight h3 {
    margin-bottom: 10px;
}

/* ===== CTA SECTIONS (Enhanced from existing) ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 80px 5%;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

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

.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== ICONS ===== */
.icon, 
.service-icon, 
.feature-icon,
.benefit-icon,
.credential-icon, 
.contact-method-icon {
    font-size: 50px; /* Standardized size */
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center; /* Added */
}

.trust-item .icon {
    color: var(--accent);
}

/* ===== LISTS ===== */
.credential-list, .feature-list, .cta-benefits {
    list-style: none;
    margin: 20px 0;
}

.credential-list li, .feature-list li, .cta-benefits li {
    color: var(--gray);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.credential-list li::before, .feature-list li::before, .cta-benefits li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.feature-list li.negative::before {
    content: "✗";
    color: var(--emergency);
}

/* Service card lists */
.service-card ul,
.feature-card ul,
.benefit-card ul {
    color: var(--gray);
    margin-left: 20px;
}

.service-card ul li,
.feature-card ul li,
.benefit-card ul li {
    margin-bottom: 8px;
}

/* ===== CARD HEADINGS (Standardized) ===== */
.service-card h3,
.feature-card h3,
.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p,
.feature-card p,
.benefit-card p {
    color: var(--gray);
    margin-bottom: 15px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: linear-gradient(135deg, #f8fbff, #e8f4f8);
    padding: 80px 5%;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    position: relative; /* Added for quote styling */
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    margin: 0;
    color: var(--dark);
    font-size: 1rem;
}

.author-info p {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.testimonial-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 15px;
}

.star {
    color: #ffc107;
    font-size: 1.2rem;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 5% 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Increased min width */
    gap: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary); /* Added color */
    position: relative;
    padding-bottom: 10px;
}

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

.footer-col p {
    color: #ccc;
    line-height: 1.6;
}

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

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

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
    .header-cta {
        display: none;
    }

    .overview-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .overview-image {
        order: -1;
    }

    .dropdown-content {
        position: static;
        display: block;
        box-shadow: none;
        background-color: var(--light);
        margin-top: 10px;
        border-radius: 4px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 74px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 74px);
        background-color: var(--light);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: left 0.3s;
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        margin: 0 0 20px 0;
    }
    
    .page-header h1 {
        font-size: 2rem; /* Reduced size */
    }
    
    .section-header h2,
    .overview-text h2 {
        font-size: 2rem;
    }
    
    .services-grid,
    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 60px 5%;
    }
    
    .page-header {
        padding: 140px 5% 60px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}