/* ===================================
   1st Call - Main Styles
   Auto-generated by Website Builder
   Industry: Electrical supply store
   =================================== */

:root {

    /* Color Scheme */
    --primary-color: #374151;
    --secondary-color: #1f2937;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --light-bg: #f9fafb;
    --dark-bg: #111827;
    --button-hover: #4b5563;
    --hero-overlay: rgba(55, 65, 81, 0.8);

    /* Typography */
    --heading-font: 'Josefin Sans', sans-serif;
    --body-font: 'Lato', sans-serif;

    /* Style Preset: elegant */
    --border-radius: 16px;
    --card-radius: 20px;
    --button-radius: 50px;
    --heading-transform: none;
    --heading-weight: 600;
    --card-shadow: 0 8px 30px rgba(0,0,0,0.06);
    --card-border: none;

    /* Spacing */
    --section-padding: 80px 0;
    --container-max: 1200px;

    /* Transitions */
    --transition-smooth: all 0.3s ease;

}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background: var(--bg-color);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: var(--heading-weight);
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: var(--heading-transform);
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }

/* Long-form copy renders as several sibling <p> tags. The reset zeroes every
   margin, so without this the paragraphs run together into one block. Scoped
   to the prose containers so tight stacks elsewhere -- footer address lines,
   card copy -- keep their own spacing. */
.intro-content p + p,
.section-header p + p,
.service-intro-text p + p,
.details-content p + p,
.intro-box p + p,
.column-content p + p,
.highlight-box p + p,
.about-intro-content p + p,
.about-story-content p + p {
    margin-top: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--button-hover);
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    height: 45px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    padding: 10px 0;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.has-dropdown {
    position: relative;
}

.dropdown {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 220px;
    padding: 10px 0;
    z-index: 1000;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.has-dropdown:hover > .dropdown {
    display: block !important;
    visibility: visible;
    opacity: 1;
}

.dropdown {
    flex-direction: column;
}

.dropdown li {
    display: block;
    width: 100%;
}

.dropdown a {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
}

.phone-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 700;
}

.phone-button:hover {
    background: var(--button-hover);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition-smooth);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu a {
    color: #fff;
    font-size: 20px;
    padding: 15px 20px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-cta-button {
    display: block;
    background: var(--primary-color);
    color: #fff !important;
    text-align: center;
    padding: 15px;
    margin: 20px;
    border-radius: var(--button-radius);
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subhead {
    font-size: 22px;
    margin-bottom: 30px;
    color: #fff;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--button-radius);
    transition: var(--transition-smooth);
}

.cta-button.primary {
    background: var(--primary-color);
    color: #fff !important;
}

.cta-button.primary:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: #fff !important;
    border: 2px solid #fff;
}

.cta-button.secondary:hover {
    background: #fff;
    color: var(--primary-color) !important;
}

.cta-button.large {
    padding: 20px 50px;
    font-size: 20px;
}

.trust-badges {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.intro-section {
    background: var(--light-bg);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    border: var(--card-border);
    transition: var(--transition-smooth);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-icon img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-block;
    margin-top: 15px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--card-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--card-shadow);
}

/* Trust Section */
.trust-section {
    background: var(--primary-color);
    color: #fff;
}

.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;
}

.trust-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* CTA Section */
.cta-section {
    background: var(--dark-bg);
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
}

/* Page Header */
.page-header {
    background: var(--light-bg);
    padding: 60px 0 40px;
    text-align: center;
}

/* Inner Page Hero Banner */
.inner-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.inner-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.inner-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 2;
}

.inner-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 40px 20px;
}

.inner-hero-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.inner-hero-subtitle {
    font-size: 18px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

.inner-hero .breadcrumbs {
    margin-top: 10px;
    color: rgba(255,255,255,0.8);
}

.inner-hero .breadcrumbs a {
    color: rgba(255,255,255,0.9);
}

.inner-hero .breadcrumbs a:hover {
    color: #fff;
}

/* Service Intro Grid */
.service-intro-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
}

.service-intro-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.service-intro-text .lead {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
}

.breadcrumbs {
    margin-top: 15px;
    color: #666;
}

.breadcrumbs a {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .service-intro-grid {
        grid-template-columns: 1fr;
    }

    .service-intro-image img {
        height: 200px;
    }

    .inner-hero-content h1 {
        font-size: 32px;
    }

    .inner-hero {
        min-height: 250px;
    }
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

/* Process Steps */
.process-steps {
    display: grid;
    gap: 30px;
}

.process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    padding: 25px;
    border-radius: var(--card-radius);
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-question {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Neighborhoods */
.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.neighborhood-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Locations List */
.locations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.location-tag {
    display: inline-block;
    background: var(--light-bg);
    padding: 10px 20px;
    border-radius: 5px;
    color: var(--text-color) !important;
    font-weight: 600;
}

.location-tag:hover {
    background: var(--primary-color);
    color: #fff !important;
}

/* Locations Index Page */
.locations-index-section {
    padding: 60px 0;
}

.locations-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.location-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
    border-left: 4px solid var(--primary-color);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.location-card h3 {
    margin-bottom: 10px;
}

.location-card h3 a {
    color: var(--text-color);
}

.location-card h3 a:hover {
    color: var(--primary-color);
}

.location-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.page-subtitle {
    font-size: 18px;
    color: #666;
    margin-top: 10px;
}

.view-all-link {
    color: var(--accent-color) !important;
    font-weight: 600;
}

/* ============================================
   LOCATION PAGE STYLED SECTIONS
   ============================================ */

/* Intro Box with Icon */
.intro-box {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    border-left: 5px solid var(--primary-color);
}

.intro-icon {
    flex-shrink: 0;
    color: var(--primary-color);
}

.intro-box .lead {
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
}

/* Section Header Styled */
.section-header-styled {
    text-align: center;
    margin-bottom: 40px;
}

.section-header-styled h2 {
    margin-bottom: 10px;
}

.section-header-styled p {
    color: #666;
    font-size: 16px;
}

/* Services Card Grid (Location Pages) */
.location-services-section {
    background: var(--light-bg);
    padding: 60px 0;
}

.services-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-card-styled {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 20px 25px;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    border: var(--card-border);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.service-card-styled:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.service-card-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.service-card-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 15px;
}

.service-card-styled:hover .service-card-name {
    color: var(--primary-color);
}

.view-all-services {
    text-align: center;
}

.view-all-link-styled {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 0;
}

/* Two Column Layout */
.location-climate-section {
    padding: 60px 0;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: start;
}

.column-content h2 {
    margin-bottom: 20px;
}

.column-content p {
    line-height: 1.8;
    color: #555;
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 35px;
    border-radius: 15px;
}

.highlight-icon {
    margin-bottom: 20px;
}

.highlight-icon svg {
    stroke: #fff;
}

.highlight-box h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 15px;
}

.highlight-box p {
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    font-size: 15px;
}

/* Neighborhoods Pills */
.neighborhoods-section-styled {
    background: var(--light-bg);
    padding: 60px 0;
}

.neighborhoods-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.neighborhood-pill {
    background: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    color: var(--text-color);
    border: 1px solid #e0e0e0;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.neighborhood-pill:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Location Pills */
.locations-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.location-pill {
    background: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    color: var(--text-color);
    border: 1px solid #e0e0e0;
    font-size: 14px;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.location-pill:hover {
    background: var(--primary-color);
    color: #fff !important;
    border-color: var(--primary-color);
}

/* Service Areas Section */
.service-areas-section-styled {
    background: var(--light-bg);
    padding: 60px 0;
}

/* FAQ Accordion */
.faq-section-styled {
    padding: 60px 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion-item {
    background: #fff;
    border-radius: var(--card-radius);
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    overflow: hidden;
}

.faq-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.faq-accordion-header:hover {
    background: var(--light-bg);
}

.faq-question-text {
    font-weight: 600;
    color: var(--text-color);
    font-size: 16px;
    flex: 1;
    padding-right: 20px;
}

.faq-accordion-icon {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-accordion-item.active .faq-accordion-icon {
    transform: rotate(180deg);
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-accordion-item.active .faq-accordion-content {
    max-height: 500px;
}

.faq-accordion-content p {
    padding: 0 25px 25px;
    line-height: 1.8;
    color: #555;
}

/* Responsive */
@media (max-width: 900px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }

    .highlight-box {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .intro-box {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .services-card-grid {
        grid-template-columns: 1fr;
    }
}

/* About Page Styles */
.about-intro-section {
    padding: 60px 0;
}

.about-intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-intro-content .lead {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.about-team-photo {
    max-width: 900px;
    margin: 40px auto 0;
}

.about-team-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.about-story-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.about-story-section .column-content p {
    margin-bottom: 20px;
}

.about-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-benefits-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: rgba(255,255,255,0.9);
}

.about-benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.about-values-section {
    padding: 60px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--card-radius);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: var(--transition-smooth);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.value-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.value-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.value-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.about-areas-section {
    padding: 60px 0;
    background: var(--light-bg);
}

/* Contact Page Styles */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.contact-info-box {
    background: var(--light-bg);
    padding: 40px;
    border-radius: var(--card-radius);
}

.contact-label {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info-box h2 {
    margin-bottom: 20px;
}

.contact-intro {
    font-size: 16px;
    color: #555;
}

.contact-intro a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-details-box {
    background: #fff;
    padding: 30px;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.contact-details-box h3 {
    margin-bottom: 20px;
}

.contact-detail-item {
    margin-bottom: 20px;
}

.contact-detail-item:last-child {
    margin-bottom: 0;
}

.detail-heading {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.detail-phone a {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}

.detail-phone a:hover {
    color: var(--button-hover);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-footer {
    background: var(--dark-bg);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: rgba(255,255,255,0.8);
    display: block;
    padding: 5px 0;
}

.footer-col a:hover {
    color: #fff;
}

.footer-phone a {
    color: var(--accent-color) !important;
    font-size: 20px;
    font-weight: 700;
}

/* NAP (Name, Address, Phone) styling */
.footer-nap h3 {
    margin-bottom: 5px;
}

.nap-industry {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 15px;
    font-style: italic;
}

.nap-line {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.nap-phone {
    margin-top: 10px;
}

.nap-phone a {
    color: var(--accent-color) !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.nap-phone a:hover {
    text-decoration: underline;
}

.nap-email {
    margin-top: 4px;
}

.nap-email a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 15px;
    text-decoration: none;
    word-break: break-word;
}

.nap-email a:hover {
    text-decoration: underline;
}

/* Google Maps Section */
.map-section {
    padding: var(--section-padding);
    background: var(--light-bg);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.map-container iframe {
    display: block;
    width: 100%;
    min-height: 400px;
}

@media (max-width: 768px) {
    .map-container iframe {
        min-height: 300px;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Sticky Mobile Call Bar */
.sticky-call-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    color: #fff !important;
    text-align: center;
    padding: 14px 20px;
    font-size: 18px;
    font-weight: 700;
    z-index: 9998;
    text-decoration: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
}

.sticky-call-bar:hover {
    background: var(--button-hover);
    color: #fff !important;
}

.sticky-call-icon {
    margin-right: 8px;
    font-size: 20px;
}

/* ===================================
   Lead Capture CTA + Modal
   =================================== */

/* --- Inline CTA buttons (hero, inner hero, bottom CTA) --- */
.lead-cta {
    font-family: var(--body-font);
    cursor: pointer;
    border: none;
}

/* Accent, not primary: the hero overlay and the dark CTA band are both
   near-primary, so a primary button would vanish into them. */
.cta-button.hero-lead-cta,
.cta-section-buttons .lead-cta {
    background: var(--accent-color, var(--primary-color));
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.cta-button.hero-lead-cta:hover,
.cta-section-buttons .lead-cta:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.32);
}

.cta-section-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.inner-hero-cta {
    margin-top: 22px;
    display: inline-block;
    background: var(--accent-color, var(--primary-color));
    color: #fff;
    padding: 14px 30px;
    border-radius: var(--button-radius, 6px);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
    transition: var(--transition-smooth);
}

.inner-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.mobile-lead-cta {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--accent-color, var(--primary-color));
    color: #fff;
    margin-bottom: 10px;
}

/* --- Floating CTA button --- */
.lead-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9995;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border: none;
    border-radius: 50px;
    background: var(--accent-color, var(--primary-color));
    color: #fff;
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0,0,0,0.32);
    /* Hidden until the visitor has scrolled past the hero's own CTA */
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    transition: opacity .35s ease, transform .35s ease, visibility .35s;
}

.lead-float.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lead-float:hover {
    background: var(--button-hover, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 12px 34px rgba(0,0,0,0.4);
}

.lead-float:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.lead-float-icon {
    font-size: 19px;
    line-height: 1;
}

/* A single slow pulse ring - noticeable without being a distraction */
.lead-float-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: var(--accent-color, var(--primary-color));
    opacity: 0.55;
    z-index: -1;
    animation: leadPulse 2.6s ease-out infinite;
}

@keyframes leadPulse {
    0%   { transform: scale(1); opacity: 0.55; }
    70%  { transform: scale(1.22); opacity: 0; }
    100% { transform: scale(1.22); opacity: 0; }
}

/* Get out of the way while the form is open */
body.lead-modal-open .lead-float,
body.lead-modal-open .sticky-call-bar {
    opacity: 0;
    visibility: hidden;
}

/* --- Modal --- */
.lead-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity .25s ease;
}

.lead-modal.is-open {
    opacity: 1;
}

.lead-modal[hidden] {
    display: none;
}

.lead-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 28, 0.72);
    backdrop-filter: blur(3px);
    cursor: pointer;
}

.lead-modal-dialog {
    position: relative;
    width: 100%;
    /* The declared form width plus the gutter on each side, so the iframe
       itself still renders at exactly the width the vendor sized it for. */
    max-width: calc(var(--lead-form-width, 640px) + (var(--lead-gutter, 20px) * 2));
    max-height: calc(100vh - 32px);
    /* dvh keeps the form clear of mobile browser chrome */
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,0.45);
    transform: translateY(18px) scale(0.98);
    transition: transform .28s cubic-bezier(.2,.8,.3,1);
}

.lead-modal.is-open .lead-modal-dialog {
    transform: translateY(0) scale(1);
}

.lead-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lead-modal-close:hover {
    background: rgba(255,255,255,0.35);
}

.lead-modal-header {
    background: var(--primary-color);
    color: #fff;
    padding: 16px 60px 15px 24px;
}

.lead-modal-header h2 {
    font-size: 19px;
    margin: 0 0 3px;
    color: #fff;
}

.lead-modal-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.lead-modal-body {
    position: relative;
    /* Content-sized, shrinking only when the dialog hits its max height */
    flex: 0 1 auto;
    overflow-y: auto;
    background: #fff;
    padding: var(--lead-gutter, 20px);
}

/* An embedded form is responsive: below its own breakpoint the fields stack
   and it gets much taller. The iframe cannot measure a cross-origin document,
   so match that breakpoint here -- too short and the form grows a second
   scrollbar inside the modal, too tall and it trails dead white space.
   575px is where the common Bootstrap-style form layouts switch over. */
.lead-modal-iframe {
    display: block;
    width: 100%;
    height: var(--lead-form-height, 545px);
    border: 0;
}

/* --- Same-origin widget embeds ---------------------------------------
   No declared size to honour: the dialog shrink-wraps whatever the vendor's
   script renders, capped by the viewport. This is what makes the modal fit
   a 250px quote box and a 500px form equally well. */
.lead-modal-dialog.is-auto {
    width: max-content;
    max-width: min(calc(100vw - 32px), 640px);
    /* Beats the stretch used for full-height iframe forms: a small widget
       should stay a content-sized card, not a full-screen panel. */
    align-self: center;
}

.lead-embed-host {
    display: flex;
    justify-content: center;
}

/* Vendor widgets often set an inline pixel width and left-align; let it
   shrink on narrow screens rather than overflow. */
.lead-embed-host > * {
    max-width: 100% !important;
}

@media (max-width: 575px) {
    .lead-modal-iframe {
        height: calc(var(--lead-form-height, 545px) + 260px);
    }
}

/* Short viewports (a 768px-tall laptop leaves ~640px of usable height): trim
   the modal's own chrome so the form itself still fits. */
.lead-modal-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #667;
    font-size: 15px;
    background: #fff;
    pointer-events: none;
    transition: opacity .3s ease;
}

.lead-modal-loading.is-done {
    opacity: 0;
}

.lead-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #d8dce3;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: leadSpin .8s linear infinite;
}

@keyframes leadSpin {
    to { transform: rotate(360deg); }
}

.lead-modal-footer {
    padding: 13px 28px;
    background: #f5f6f8;
    border-top: 1px solid #e4e7ec;
    font-size: 14px;
    color: #55606e;
    text-align: center;
}

.lead-modal-footer a {
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    .lead-float,
    .lead-float-pulse,
    .lead-modal,
    .lead-modal-dialog,
    .lead-spinner {
        animation: none !important;
        transition: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .sticky-call-bar {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Sit above the sticky call bar, hugging the right edge */
    .lead-float {
        right: 14px;
        bottom: 70px;
        padding: 13px 20px;
        font-size: 15px;
    }

    .lead-modal {
        padding: 0;
        align-items: flex-end;
    }

    .lead-modal-dialog {
        max-width: 100%;
        max-height: 96vh;
        max-height: 96dvh;
        border-radius: 14px 14px 0 0;
    }

    .lead-modal-header {
        padding: 18px 56px 16px 20px;
    }

    .lead-modal-header h2 {
        font-size: 18px;
    }

    .cta-section-buttons {
        flex-direction: column;
        align-items: center;
    }

    body {
        padding-bottom: 56px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-subhead {
        font-size: 18px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
    }

    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }

    section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .services-grid,
    .features-grid,
    .benefits-grid,
    .neighborhoods-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Lead modal on short viewports
   Last in the file so these win over the width-based blocks above.
   =================================== */

/* Laptop heights: trim our chrome, keep the framed look. */
@media (max-height: 730px) {
    .lead-modal-dialog {
        --lead-gutter: 10px;
    }

    .lead-modal-header {
        padding: 12px 54px 11px 20px;
    }

    .lead-modal-header h2 {
        font-size: 17px;
    }

    .lead-modal-header p {
        display: none;
    }

    .lead-modal-footer {
        padding: 9px 20px;
        font-size: 13px;
    }

    .lead-modal-close {
        width: 32px;
        height: 32px;
        font-size: 24px;
        top: 7px;
        right: 8px;
    }
}

/* Too short for any chrome at all -- a 1366x768 laptop at 125% display
   scaling lands here, with roughly 518px of usable height against a form
   that needs 495px. Give every pixel to the form: no page padding, no
   header (the form has its own heading), no footer, and a close button
   floated over the top-right corner. */
@media (max-height: 645px) {
    .lead-modal {
        padding: 0;
        align-items: center;
    }

    /* Every pixel counts here; keep a hairline gutter rather than none */
    .lead-modal-dialog {
        --lead-gutter: 4px;
    }

    .lead-modal-dialog {
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .lead-modal-header,
    .lead-modal-footer {
        display: none;
    }

    .lead-modal-close {
        top: 8px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 25px;
        /* No dark header behind it now, so carry its own contrast */
        background: rgba(15, 20, 28, 0.55);
        color: #fff;
    }

    .lead-modal-close:hover {
        background: rgba(15, 20, 28, 0.78);
    }
}

/* Shorter still (a small window, or a phone in landscape): the form cannot
   fit whatever we do, so let the modal body scroll -- but full-bleed, so the
   scroll is as short as possible. */
@media (max-height: 500px) {
    .lead-modal-dialog {
        max-width: 100%;
    }
}

/* Phones. Below the embedded form's own breakpoint it stacks and needs far
   more height than any phone has, so our header and footer are never
   affordable here -- they were cutting the Send button in half. Give the
   whole screen to the form; it carries its own heading. */
@media (max-width: 575px) {
    .lead-modal {
        padding: 0;
        align-items: stretch;
    }

    .lead-modal-dialog.is-auto {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 0;
    }

    .lead-modal-dialog {
        --lead-gutter: 10px;
        max-width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .lead-modal-header,
    .lead-modal-footer {
        display: none;
    }

    .lead-modal-close {
        top: 8px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 26px;
        background: rgba(15, 20, 28, 0.55);
        color: #fff;
    }
}
