/* Basic Reset & Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Oswald:wght@500&display=swap');

:root {
    --primary-color: #0056b3; /* Darker blue */
    --secondary-color: #ffc107; /* Yellow accent */
    --dark-color: #212529; /* Very dark grey/black */
    --light-color: #f8f9fa; /* Light grey */
    --medium-grey: #adb5bd;
    --body-bg: #e9ecef; /* Lighter grey background */
    --text-color: #343a40; /* Darker grey text */
    --card-bg: #fff;
    --border-color: #dee2e6;

    /* Fluid Typography */
    --font-size-base: clamp(1rem, 1vw + 0.8rem, 1.1rem); /* Base font size */
    --font-size-h1: clamp(2rem, 5vw + 1rem, 3rem);
    --font-size-h2: clamp(1.6rem, 4vw + 0.8rem, 2rem);
    --font-size-h3: clamp(1.4rem, 3vw + 0.8rem, 1.8rem);
    --font-size-large: clamp(1.2rem, 2.5vw + 0.8rem, 1.6rem);
    --font-size-xl: clamp(1.8rem, 6vw + 1rem, 2.8rem);
    --font-size-small: 0.9rem;
}

html {
    font-size: 100%; /* Use percentage for better accessibility scaling */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--body-bg);
    font-size: var(--font-size-base); /* Apply fluid base font size */
}

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

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevent bottom space */
}

/* Header */
header {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 1.5rem 5%; /* Use percentage for padding */
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
}

header h1 {
    font-family: 'Oswald', sans-serif;
    margin-bottom: 0.5rem;
}

header h1 a {
    color: var(--light-color);
    font-size: var(--font-size-h1);
    letter-spacing: 1px;
    text-transform: uppercase;
    word-break: break-word; /* Allow text to wrap if needed */
    hyphens: auto; /* Improve word breaking */
}

header .tagline {
    font-size: clamp(1rem, 2vw + 0.7rem, 1.2rem);
    color: var(--medium-grey);
    margin-bottom: 1rem;
}

header .phone-number {
    font-size: var(--font-size-large);
    font-weight: 700;
}

header .phone-number a {
    color: var(--secondary-color);
    border-bottom: 1px dashed var(--secondary-color);
    padding-bottom: 2px;
}
header .phone-number a:hover {
    color: var(--light-color);
    border-bottom-color: var(--light-color);
    text-decoration: none;
}

/* Main Content Area */
main {
    max-width: 1100px;
    width: 90%; /* Use percentage for width */
    margin: 2.5rem auto;
    padding: 0 1rem; /* Adjust padding */
}

section {
    background-color: var(--card-bg);
    margin-bottom: 2rem;
    padding: clamp(1.5rem, 5vw, 2.5rem); /* Fluid padding */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

h2 {
    font-family: 'Oswald', sans-serif;
    color: var(--dark-color);
    font-size: var(--font-size-h2);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h3 {
     font-family: 'Oswald', sans-serif;
     font-size: var(--font-size-h3);
     margin-bottom: 1rem;
     color: var(--dark-color);
}

/* Hero Section */
.hero {
    text-align: center;
    /* Removed missing background image url('placeholder-hero-bg.jpg') */
    background: linear-gradient(rgba(33, 37, 41, 0.8), rgba(33, 37, 41, 0.8)); 
    /* If a hero image is added later, update the background property */
    background-size: cover; /* Keep these for potential future image */
    background-position: center; /* Keep these for potential future image */
    color: var(--light-color);
    padding: clamp(3rem, 10vw, 5rem) clamp(1rem, 5vw, 2rem); /* Fluid padding */
    border-radius: 8px;
}

.hero h2 {
    color: var(--light-color);
    border-bottom: none;
    font-size: var(--font-size-xl);
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    color: var(--body-bg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem); /* Fluid padding */
    font-size: clamp(1.1rem, 2.5vw, 1.4rem); /* Fluid font size */
    font-weight: 700;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #e0a800;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Services Section */
.services ul {
    list-style: none;
    padding-left: 0;
}

.services li {
    margin-bottom: 0.7rem; /* Increased spacing */
    padding-left: 1.8rem; /* Increased padding */
    position: relative;
}

.services li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em; /* Slightly larger checkmark */
}

/* Locations Section */
/* US Map Styles */
.us-map-wrapper {
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 0 auto 2rem auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--light-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* FAQ Section */
.faq details {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 0.8rem;
    background-color: var(--light-color); /* Slightly different background */
}

.faq summary {
    padding: 1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    list-style: none; /* Remove default marker */
    color: var(--dark-color);
}

.faq summary::after { /* Add a simple dropdown indicator */
    content: '+';
    position: absolute;
    right: 1rem;
    font-size: 1.4em;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.2s ease-in-out;
}

.faq details[open] summary::after {
    content: '−'; /* Change indicator when open */
    transform: rotate(180deg);
}

.faq details p {
    padding: 0 1rem 1rem 1rem; /* Padding for the answer */
    margin-top: -0.5rem; /* Adjust spacing */
    color: var(--text-color);
    line-height: 1.6;
}

.faq details p a { /* Style links within FAQ answers */
    font-weight: 500;
}


.state-list-heading {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
    color: var(--dark-color);
}

.locations ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* Responsive grid */
    gap: 1rem; /* Consistent gap */
}

.locations li a {
    display: block;
    padding: 0.8rem 1rem;
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw + 0.5rem, 1rem); /* Fluid font size */
}

.locations li a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: #004494;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Responsive adjustments for the map */
@media (max-width: 768px) {
    .us-map-wrapper {
        height: auto;
        /* Height will be set dynamically by JavaScript */
    }
}

/* State Page Specific */
.state-page main {
    max-width: 900px; /* Keep max-width for readability */
    width: 90%;
}

.state-page .back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #6c757d;
    font-size: var(--font-size-small);
}
.state-page .back-link:hover {
    color: var(--primary-color);
}

.state-page .state-image {
    margin: 0 auto 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.state-page .cities-list {
    list-style: disc;
    margin-left: 1.5rem; /* Use rem */
    margin-bottom: 1rem;
    columns: 2; /* Create columns for city lists */
    column-gap: 2rem;
}

.state-page .call-section {
    background-color: var(--border-color);
    text-align: center;
    padding: clamp(2rem, 6vw, 3rem) clamp(1rem, 4vw, 2rem); /* Fluid padding */
    margin-top: 2.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
}

.state-page .call-section h3 {
    font-size: var(--font-size-h3);
    margin-bottom: 1rem;
    color: var(--dark-color);
}
.state-page .call-section p {
    margin-bottom: 1.5rem;
    color: #495057;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem 5%; /* Use percentage */
    background-color: var(--dark-color);
    color: var(--medium-grey);
    font-size: var(--font-size-small);
}

footer a {
    color: var(--secondary-color);
}
footer a:hover {
    color: var(--light-color);
}

/* Responsive Adjustments - Refined */
@media (max-width: 768px) {
    .locations ul {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .state-page .cities-list {
        columns: 1; /* Single column on smaller screens */
    }
}

@media (max-width: 480px) {
    main {
        width: 95%; /* More width on small screens */
    }
    .locations ul {
        grid-template-columns: 1fr 1fr; /* Force two columns */
        gap: 0.8rem;
    }
    section {
        padding: 1.2rem;
    }
    header {
        padding: 1rem 5%;
    }
    footer {
        padding: 1rem 5%;
    }
}
