/* --- Base Styles & Variables --- */
:root {
    --bg-color: #1a1a1a; /* Charcoal/Black */
    --primary-color: #007bff; /* Blue Accent */
    --secondary-color: #ffffff; /* White Accent */
    --text-color: #f0f0f0; /* Light gray for text */
    --card-bg: #2c2c2c; /* Slightly lighter background for cards */
    --border-color: #444;
    --font-family: 'Arial', sans-serif; /* Clean sans-serif */
}

/* --- Light Mode Variables --- */
[data-theme="light"] {
    --bg-color: #f4f4f4; /* Light Gray */
    --primary-color: #0056b3; /* Darker Blue for contrast */
    --secondary-color: #333333; /* Dark Gray/Black for text */
    --text-color: #333333; /* Dark Gray/Black for text */
    --card-bg: #ffffff; /* White */
    --border-color: #ddd; /* Light border */
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

h1 { 
    font-size: 2.5rem;
}
h1 span.subtitle {
    font-size: 1.8rem;
    display: block;
    margin-top: 0.5rem;
}
h1 span.subtitle u {
    text-decoration: none;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 4px;
    display: inline-block;
    line-height: 1.3;
}
h2 { font-size: 2rem; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3; /* Darker blue on hover */
}

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

section {
    padding: 60px 0;
}

/* --- Phone Number --- */
.phone-number {
    font-size: 2rem; /* Increased from 1.5rem */
    margin: 1.5rem 0;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.phone-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.phone-link:hover {
    color: #4da6ff; /* Lighter blue */
}

/* --- Hero Video --- */
.hero-video {
    width: 100%;
    max-width: 600px;
    margin: 1.5rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-video video {
    display: block;
    width: 100%;
    height: auto;
    border: 2px solid white; /* Added white border */
}

/* --- Buttons --- */
.cta-button, .submit-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover, .submit-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.form-group .required-indicator {
    color: #ff4444;
    margin-left: 3px;
}

.form-group .field-hint {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 0.3rem;
    display: block;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    width: 100%;
    margin-top: 1rem;
}

.form-error {
    color: #ff4444;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Form input styling */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
}

/* Error state - only applied via JavaScript after validation */
.form-group input.error,
.form-group textarea.error {
    border-color: #ff4444 !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.form-error {
    color: #ff4444;
    margin: 1rem 0;
    padding: 0.5rem;
    background-color: rgba(255, 68, 68, 0.1);
    border-radius: 4px;
    text-align: center;
}

.browser-help {
    margin: 1rem 0;
    padding: 1rem;
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.browser-help ul {
    margin: 0.5rem 0 0 1rem;
}

/* Focus state */
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* --- Header / Hero Section --- */
.hero-section {
    /* Use hero-image.png as the background, reduced overlay opacity */
    background: linear-gradient(rgba(26, 26, 26, 0.6), rgba(26, 26, 26, 0.7)), url('images/hero-image.png') no-repeat center center/cover;
    color: var(--secondary-color);
    padding: 80px 0;
    text-align: center;
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    margin-bottom: 0.5rem;
}

.subheadline {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-form {
    background-color: rgba(44, 44, 44, 0.9); /* Semi-transparent dark card */
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* --- Services Section --- */
.services-section {
    background-color: var(--bg-color); /* Keep consistent background */
}

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

.service-card {
    background-color: var(--card-bg);
    padding: 30px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

/* --- Coverage Area Section --- */
.coverage-section {
    background-color: var(--card-bg); /* Slightly different bg for contrast */
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 2rem;
    text-align: center;
}

.city-link {
    background-color: var(--bg-color);
    color: var(--primary-color);
    padding: 15px 10px;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

.city-link:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.view-all-cities {
    display: block;
    width: fit-content;
    margin: 2rem auto 0;
}

/* --- Why Choose Us Section --- */
.why-choose-us-section {
    background-color: var(--bg-color);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.trust-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.trust-item span {
    font-weight: bold;
    color: var(--secondary-color);
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--card-bg);
}

.testimonial-placeholder {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.review {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
}

.review p {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.review span {
    display: block;
    font-weight: bold;
    text-align: right;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.stars {
    color: #f39c12; /* Gold color for stars */
    text-align: right;
}

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

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px; /* Align icons */
    text-align: center;
}

.logo-placeholder {
    margin-top: 2rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    /* Replace with actual logo */
    border: 2px dashed var(--primary-color);
    padding: 20px;
    display: inline-block;
}

/* --- Blog Styles --- */
.blog-post-preview {
    background-color: var(--card-bg);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.blog-post-preview h2 {
    margin-bottom: 0.5rem;
}

.post-date {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 1rem;
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post h1 a,
.blog-index h1 a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.blog-post h1 a:hover,
.blog-index h1 a:hover {
    color: #4da6ff; /* Lighter blue */
}

.blog-post h1 {
    margin-bottom: 0.5rem;
}

.blog-post h2 {
    margin: 1.5rem 0 1rem;
}

/* --- Footer --- */
.site-footer {
    background-color: #111; /* Even darker footer */
    color: var(--text-color);
    padding: 40px 0 20px;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-info .company-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.footer-social a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

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

.footer-links {
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-links h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-color);
    margin: 0 5px;
}

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

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
    position: relative;
}

.footer-contact-form {
    max-width: 300px;
    margin: 0 auto 20px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.footer-contact-form h4 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-contact-form .form-group {
    margin-bottom: 10px;
}

.footer-contact-form input,
.footer-contact-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.footer-contact-form .submit-button {
    width: 100%;
    padding: 8px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.footer-contact-form .submit-button:hover {
    background: #0069d9;
}

/* --- Responsive Design (Mobile-First Approach) --- */

/* Tablet Styles */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.6rem; }

    .hero-section .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start; /* Align items to top */
        text-align: left;
    }

    .hero-content {
        flex-basis: 55%;
        text-align: left;
    }

    .hero-form {
        flex-basis: 40%;
        margin-top: 0; /* Remove top margin */
    }

    .contact-content {
        flex-direction: row;
        gap: 50px;
        align-items: flex-start;
    }

    .contact-form {
        flex-basis: 50%;
    }

    .contact-info {
        flex-basis: 45%;
        text-align: left;
    }

     .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }

    .footer-info, .footer-social {
        text-align: left;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    h1 { font-size: 3.5rem; }

    .service-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    }

    .city-grid {
         grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    }

    .trust-grid {
        grid-template-columns: repeat(5, 1fr); /* 5 columns on desktop */
    }

    .testimonial-placeholder {
        flex-direction: row; /* Side-by-side testimonials */
        gap: 30px;
    }

    .review {
        flex-basis: 50%;
    }
}
