/* ==========================================================================
   Location Template Styles - Metal America Concrete
   ========================================================================== */

/* ==========================================================================
   1. Hero Variants
   ========================================================================== */

/* -- Variant A: Image Background -- */
.location-hero--image-bg {
    position: relative;
    background-color: var(--mac-black);
    background-size: cover;
    background-position: center;
}

.location-hero__overlay {
    width: 100%;
    min-height: 100%;
    padding: 75px 10px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--mac-white);
}

/* Gradient overlay variant (left-to-right, used by state template) */
.location-hero__overlay--gradient {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.65) 45%, rgba(0, 0, 0, 0.25) 100%);
}

.location-hero--image-bg .mac-container {
    max-width: var(--mac-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* -- Variant B: Split Layout -- */
.location-hero--split {
    background: var(--mac-black);
}

.location-hero--split-inner {
    display: grid;
    grid-template-columns: 1fr 350px;
    max-width: var(--mac-container);
    margin: 0 auto;
    min-height: 220px;
}

.location-hero__text {
    color: var(--mac-white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 20px;
}

.location-hero__image {
    overflow: hidden;
}

.location-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* -- Variant C: Compact with Inset -- */
.location-hero--compact {
    background: #1a1a1a;
    color: var(--mac-white);
    padding: 35px 0;
}

.location-hero__compact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: var(--mac-container);
    margin: 0 auto;
    padding: 0 20px;
}

.location-hero__compact-text {
    flex: 1;
}

.location-hero__compact-text h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 8px;
}

.location-hero__inset {
    flex-shrink: 0;
}

.location-hero__inset-img {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

/* -- Shared hero text styles -- */
.location-hero--image-bg h1,
.location-hero--compact h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 10px;
}

.location-hero--split h1 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 8px;
}

.location-hero-subheading {
    font-size: 1.1rem;
    color: var(--mac-gray-300);
    margin-bottom: 15px;
}

.location-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--mac-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 10px;
}

.location-badge-small {
    display: inline-block;
    background: var(--mac-gray-100);
    color: var(--mac-gray-600);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* -- Breadcrumbs in hero -- */
.location-hero--image-bg .breadcrumbs,
.location-hero--image-bg .breadcrumbs a,
.location-hero--image-bg .breadcrumbs .separator,
.location-hero--image-bg .breadcrumbs .current,
.location-hero--split .breadcrumbs,
.location-hero--split .breadcrumbs a,
.location-hero--split .breadcrumbs .separator,
.location-hero--split .breadcrumbs .current,
.location-hero--compact .breadcrumbs,
.location-hero--compact .breadcrumbs a,
.location-hero--compact .breadcrumbs .separator,
.location-hero--compact .breadcrumbs .current {
    color: var(--mac-gray-300);
}

.location-hero--image-bg .breadcrumbs a:hover,
.location-hero--split .breadcrumbs a:hover,
.location-hero--compact .breadcrumbs a:hover {
    color: var(--mac-white);
}

/* Breadcrumb truncation for long chains (zip code pages) */
.location-hero--image-bg .breadcrumbs,
.location-hero--split .breadcrumbs,
.location-hero--compact .breadcrumbs {
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 10px 0;
}

.location-hero--image-bg .breadcrumbs a,
.location-hero--split .breadcrumbs a,
.location-hero--compact .breadcrumbs a {
    max-width: 200px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

/* ==========================================================================
   2. Shared Layout & Content Sections
   ========================================================================== */

.location-template-a > .mac-container,
.location-template-b > .mac-container,
.location-template-c > .mac-container,
.location-template-d > .mac-container,
.location-template-e > .mac-container,
.location-template-keyword > .mac-container,
.location-template-state > .mac-container,
.location-template-county > .mac-container {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* Tighter spacing between hero and first content block */
.location-template-county > .mac-container:first-of-type,
.location-template-c > .mac-container:first-of-type,
.location-template-e > .mac-container:first-of-type {
    padding-top: 20px;
    padding-bottom: 0;
}

.location-template-state > .mac-container:first-of-type,
.location-template-keyword > .mac-container:first-of-type {
    padding-bottom: 0;
}

.location-template-county > .mac-container:first-of-type .hierarchy-intro {
    margin-bottom: 0;
}

.location-full-width {
    padding: 0;
}

.location-two-col {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.location-main-content {
    min-width: 0;
}

.location-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.location-intro {
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--mac-gray-800);
}

.location-intro p {
    margin-bottom: 15px;
}

.hierarchy-intro {
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--mac-gray-800);
    font-size: 1.05rem;
}

.hierarchy-intro p {
    margin-bottom: 15px;
}

.location-content-section {
    margin-bottom: 35px;
}

.location-content-section h2 {
    font-size: 1.5rem;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--mac-red);
}

.location-content-section .section-content {
    line-height: 1.8;
    color: var(--mac-gray-800);
}

.location-content-section .section-content p {
    margin-bottom: 15px;
}

.table-responsive {
    overflow-x: auto;
    margin: 25px 0;
}

/* ==========================================================================
   3. Visual Elements — Shared
   ========================================================================== */

/* Alternating section background */
.section-alt-bg {
    background: var(--mac-gray-50);
    padding: 25px;
    border-radius: 8px;
    margin-left: -25px;
    margin-right: -25px;
    padding-left: 25px;
    padding-right: 25px;
}

/* Left red accent border (state template) */
.section-accent-border {
    border-left: 4px solid var(--mac-red);
    padding-left: 20px;
}

.section-accent-border h2 {
    border-bottom: none;
    padding-bottom: 0;
}

/* Number badge (county sections, template-b services) */
.section-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--mac-red);
    color: var(--mac-white);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.location-content-section--numbered h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: none;
    padding-bottom: 0;
}

/* Count badge (children grid heading) */
.count-badge {
    display: inline-block;
    background: var(--mac-red);
    color: var(--mac-white);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 10px;
}

/* Visual separator (red line with diamond) */
.visual-separator {
    position: relative;
    height: 1px;
    background: var(--mac-gray-200);
    margin: 35px auto;
    max-width: 600px;
}

.visual-separator::after {
    content: "\25C6";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--mac-white);
    color: var(--mac-red);
    padding: 0 12px;
    font-size: 0.9rem;
}

/* Featured image in body */
.location-featured-image {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.location-featured-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.location-featured-image--banner {
    margin-bottom: 35px;
}

.location-featured-image--banner .location-featured-img {
    max-height: 350px;
    object-fit: cover;
}

/* Stat badges with icons (template-a) */
.stat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.stat-badge {
    background: var(--mac-gray-50);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--mac-gray-700);
    border: 1px solid var(--mac-gray-200);
}

.stat-badge strong {
    color: var(--mac-black);
}

.stat-badge__icon {
    margin-right: 4px;
}

/* Collapsible zip codes */
.stat-badge--zips {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    line-height: 1.6;
}

.zip-toggle {
    display: inline-block;
    background: none;
    border: none;
    color: var(--mac-red);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 2px 8px;
    margin-left: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.zip-toggle:hover {
    background: rgba(255, 36, 0, 0.08);
}

.zip-toggle-icon {
    font-size: 0.7rem;
    margin-left: 2px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.zip-toggle[aria-expanded="true"] .zip-toggle-icon {
    transform: rotate(180deg);
}

/* FAQ heading left-align on location pages */
.site-main .faq-section h2 {
    text-align: left;
}

/* FAQ tinted wrapper (template-a) */
.faq-section-wrap--tinted .faq-section {
    background: #fff8f7;
    padding: 25px;
    border-radius: 8px;
}

.faq-section-wrap--tinted .faq-section h2 {
    text-align: left;
}

/* Intro inset image (template-b) */
.intro-inset-image {
    float: right;
    margin: 0 0 20px 25px;
    width: 240px;
}

.intro-inset-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--mac-shadow-md);
}

/* ==========================================================================
   4. Quick Answer / Cost Highlight (Template C)
   ========================================================================== */

.quick-answer {
    background: var(--mac-gray-50);
    border-left: 4px solid var(--mac-red);
    padding: 20px 25px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}

.quick-answer--yellow {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.quick-answer h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.quick-answer p {
    margin: 0;
    line-height: 1.6;
}

.quick-answer strong {
    color: var(--mac-red);
    font-size: 1.1rem;
}

/* Cost highlight big-number display */
.cost-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--mac-gray-50);
    border: 2px solid var(--mac-red);
    border-radius: 12px;
    padding: 20px 30px;
    margin-bottom: 25px;
    text-align: center;
}

.cost-highlight__label {
    font-size: 0.9rem;
    color: var(--mac-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.cost-highlight__range {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--mac-red);
}

/* ==========================================================================
   5. Cost Table
   ========================================================================== */

.cost-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.cost-table th {
    background: var(--mac-black);
    color: var(--mac-white);
    padding: 12px 15px;
    text-align: left;
}

.cost-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--mac-gray-200);
    text-align: center;
}

.cost-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.cost-table tr:nth-child(even) {
    background: var(--mac-gray-50);
}

/* Red header variant (county, template-c, template-d) */
.cost-table--red th {
    background: var(--mac-red);
    color: var(--mac-white);
}

.cost-table--red tr:nth-child(even) {
    background: #fff5f5;
}

/* Bordered cost section (template-d) */
.cost-section--bordered {
    border-top: 3px solid var(--mac-red);
    padding-top: 25px;
}

/* ==========================================================================
   6. Children Grid (Hierarchy Pages)
   ========================================================================== */

.children-grid-section {
    padding: 25px 0;
    background: var(--mac-white);
}

.children-grid-section h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Children grid header with nav arrows */
.children-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.children-grid-header h2 {
    margin-bottom: 0;
}

.children-grid-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.children-grid-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid var(--mac-gray-300);
    border-radius: 50%;
    background: var(--mac-white);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--mac-gray-700);
}

.children-grid-arrow:hover:not(:disabled) {
    background: var(--mac-red);
    color: var(--mac-white);
    border-color: var(--mac-red);
}

.children-grid-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Scrollable wrapper for 9+ children */
.children-grid-wrap--scrollable {
    overflow: hidden;
    position: relative;
}

.children-grid-wrap--scrollable .children-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 20px;
    padding-bottom: 4px;
}

.children-grid-wrap--scrollable .children-grid::-webkit-scrollbar {
    display: none;
}

.children-grid-wrap--scrollable .children-card {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
}

/* State cards: compact sizing for many states */
.children-grid--states {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.children-grid--states .children-card {
    border-radius: 8px;
}

.children-grid--states .children-card__image {
    aspect-ratio: 1 / 1;
}

.children-grid--states .children-card__placeholder {
    aspect-ratio: 1 / 1;
}

.children-grid--states .children-card__placeholder span {
    font-size: 1.8rem;
}

.children-grid--states .children-card__body {
    padding: 8px 10px;
}

.children-grid--states .children-card__body h3 {
    font-size: 0.85rem;
    margin: 0;
}

/* Card: vertical layout with image on top */
.children-card {
    display: flex;
    flex-direction: column;
    background: var(--mac-white);
    border-radius: 10px;
    text-decoration: none;
    color: var(--mac-gray-800);
    box-shadow: var(--mac-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.children-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mac-shadow-md);
}

.children-card:hover h3 {
    color: var(--mac-red);
}

.children-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.children-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.children-card__placeholder {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mac-gray-100), var(--mac-gray-200));
}

.children-card__placeholder span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mac-gray-400);
}

.children-card__body {
    padding: 18px 20px;
}

.children-card__body h3 {
    font-size: 1.1rem;
    margin: 0 0 6px;
    transition: color 0.3s ease;
}

.children-card__body .location-badge-small {
    margin-top: 4px;
}

.children-card-arrow {
    display: none;
}

/* ==========================================================================
   7. Template A - Services Grid
   ========================================================================== */

.loc-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.loc-service-card {
    background: var(--mac-white);
    padding: 22px;
    border-radius: 8px;
    box-shadow: var(--mac-shadow-sm);
    border-top: 3px solid;
    border-image: linear-gradient(to right, var(--mac-red), #ff6b4a) 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.loc-service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mac-shadow-md);
}

.loc-service-card h3 {
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.loc-service-card p {
    font-size: 0.9rem;
    color: var(--mac-gray-600);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   8. Template B - Service Detail (Numbered)
   ========================================================================== */

.services-detail {
    margin-bottom: 35px;
}

.services-detail h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--mac-red);
}

.service-detail-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--mac-gray-200);
}

.service-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-detail-item h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--mac-black);
}

.service-detail-item p {
    line-height: 1.7;
    color: var(--mac-gray-700);
    margin: 0;
}

/* Bordered + numbered variant */
.service-detail-item--bordered {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-bottom: none;
    border-left: 3px solid var(--mac-red);
    padding: 15px 20px;
    margin-bottom: 15px;
    background: var(--mac-white);
    border-radius: 0 8px 8px 0;
}

.service-detail-item--bordered .section-number-badge {
    margin-top: 2px;
}

.service-detail-item__content h3 {
    margin-bottom: 5px;
}

/* ==========================================================================
   9. State Template - Icon Service Cards
   ========================================================================== */

.services-icon-section {
    margin-bottom: 35px;
}

.services-icon-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--mac-red);
}

.services-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.service-icon-card {
    background: var(--mac-white);
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: var(--mac-shadow-sm);
    border-top: 3px solid var(--mac-red);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-icon-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mac-shadow-md);
}

.service-icon-card__icon {
    font-size: 1.5rem;
    color: var(--mac-red);
    margin-bottom: 10px;
}

.service-icon-card h3 {
    font-size: 1rem;
    margin: 0 0 8px;
}

.service-icon-card p {
    font-size: 0.85rem;
    color: var(--mac-gray-600);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   10. Template E - Minimal
   ========================================================================== */

.location-minimal {
    padding: 40px 0;
}

.services-list-minimal {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.services-list-minimal li {
    padding: 10px 15px;
    background: var(--mac-gray-50);
    border-radius: 6px;
    border-left: 3px solid var(--mac-red);
    font-size: 0.95rem;
}

/* Red bullet variant */
.services-list-minimal--red li {
    border-left: none;
    padding: 14px 18px 14px 40px;
    position: relative;
    background: var(--mac-white);
    box-shadow: var(--mac-shadow-sm);
    border-radius: 8px;
    font-weight: 500;
    line-height: 1.5;
}

.services-list-minimal--red li::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 18px;
    width: 10px;
    height: 10px;
    background: var(--mac-red);
    border-radius: 50%;
}

/* State Template - Services List (legacy) */
.services-overview {
    margin-bottom: 35px;
}

.services-overview h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--mac-red);
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.services-list li {
    padding: 10px 15px;
    background: var(--mac-gray-50);
    border-radius: 6px;
    border-left: 3px solid var(--mac-red);
}

/* ==========================================================================
   11. Nearby Cities / Related Posts
   ========================================================================== */

.nearby-cities-section {
    padding: 50px 0;
    background: var(--mac-gray-50);
}

.nearby-cities-section h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.nearby-cities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.nearby-city-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--mac-white);
    padding: 15px 18px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--mac-gray-800);
    box-shadow: var(--mac-shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.nearby-city-card:hover {
    box-shadow: var(--mac-shadow-md);
    transform: translateY(-2px);
    color: var(--mac-red);
    text-decoration: none;
}

.nearby-city-card .location-badge-small {
    text-decoration: none;
}

.nearby-city-card h3 {
    font-size: 0.95rem;
    margin: 0 0 4px;
}

/* ==========================================================================
   12. Archive Grid
   ========================================================================== */

.archive-grid {
    max-width: var(--mac-container);
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.archive-card {
    background: var(--mac-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--mac-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mac-shadow-md);
}

.archive-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.archive-card-content {
    padding: 20px;
}

.archive-card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.archive-card-content h3 a {
    color: var(--mac-black);
    text-decoration: none;
}

.archive-card-content h3 a:hover {
    color: var(--mac-red);
}

.archive-card-content p {
    font-size: 0.9rem;
    color: var(--mac-gray-600);
    line-height: 1.5;
}

/* ==========================================================================
   13. Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .location-two-col {
        grid-template-columns: 1fr;
    }

    .location-sidebar {
        position: static;
    }

    .loc-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .children-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .children-grid--states {
        grid-template-columns: repeat(4, 1fr);
    }

    .children-grid-wrap--scrollable .children-card {
        flex: 0 0 calc(50% - 10px);
    }

    .nearby-cities-grid {
        grid-template-columns: 1fr;
    }

    .children-grid-section {
        padding: 20px 0;
    }

    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Split hero stacks on mobile */
    .location-hero--split-inner {
        grid-template-columns: 1fr;
    }

    .location-hero__image {
        max-height: 200px;
    }

    /* Breadcrumb links don't truncate as aggressively */
    .location-hero--image-bg .breadcrumbs a,
    .location-hero--split .breadcrumbs a,
    .location-hero--compact .breadcrumbs a {
        max-width: 140px;
    }

    /* Compact hero inset shrinks */
    .location-hero__inset-img {
        width: 120px;
        height: 120px;
    }

    /* Inset image in template-b intro */
    .intro-inset-image {
        float: none;
        margin: 0 0 20px 0;
        width: 100%;
    }

    .section-alt-bg {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .services-icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-number-badge {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .loc-services-grid,
    .services-icon-grid {
        grid-template-columns: 1fr;
    }

    .cost-table {
        display: block;
        overflow-x: auto;
    }

    .stat-badges {
        flex-direction: column;
    }

    .archive-grid {
        grid-template-columns: 1fr;
    }

    .services-list,
    .services-list-minimal {
        grid-template-columns: 1fr;
    }

    .children-grid {
        grid-template-columns: 1fr;
    }

    .children-grid--states {
        grid-template-columns: repeat(3, 1fr);
    }

    .children-grid-wrap--scrollable .children-card {
        flex: 0 0 calc(100% - 10px);
    }

    .location-hero__compact-inner {
        flex-direction: column;
        text-align: center;
    }

    .location-hero__inset-img {
        width: 100px;
        height: 100px;
    }

    .location-featured-image--banner .location-featured-img {
        max-height: 200px;
    }
}

/* ==========================================================================
   14. Hero Footer Section (Mission, Our Team, Blog + Stay Connected)
   ========================================================================== */

.hero-footer__cards {
    background: var(--mac-black);
    padding: 50px 0;
}

.hero-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hero-footer__card {
    position: relative;
    display: block;
    aspect-ratio: 1.75 / 1;
    overflow: hidden;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.hero-footer__card:hover {
    transform: scale(1.02);
}

.hero-footer__card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.hero-footer__card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-footer__card-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
}

.hero-footer__card-text h3 {
    color: var(--mac-white);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Stay Connected */
.hero-footer__connected {
    position: relative;
    overflow: hidden;
    padding: 70px 0;
}

.hero-footer__connected-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

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

.hero-footer__connected-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--mac-white);
}

.hero-footer__connected-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 25px;
    color: var(--mac-white);
}

.hero-footer__connected-btn {
    display: inline-block;
    background: var(--mac-red);
    color: var(--mac-white) !important;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.hero-footer__connected-btn:hover {
    background: #d61d00;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 36, 0, 0.4);
}

/* ==========================================================================
   15. Location Archive Hero
   ========================================================================== */

.location-archive-hero {
    position: relative;
    background-color: var(--mac-black);
    background-size: cover;
    background-position: center;
    min-height: 250px;
}

.location-archive-hero__overlay {
    width: 100%;
    min-height: inherit;
    padding: 50px 10px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--mac-white);
}

.location-archive-hero__overlay > .mac-container {
    width: 100%;
}

.location-archive-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 10px;
}

.location-archive-hero .location-hero-subheading {
    color: var(--mac-gray-300);
    margin-bottom: 0;
}

.location-archive-hero .breadcrumbs,
.location-archive-hero .breadcrumbs a,
.location-archive-hero .breadcrumbs .separator,
.location-archive-hero .breadcrumbs .current {
    color: var(--mac-gray-300);
}

.location-archive-hero .breadcrumbs a:hover {
    color: var(--mac-white);
}

/* ==========================================================================
   16. Responsive — Hero Footer
   ========================================================================== */

@media (max-width: 768px) {
    .hero-footer__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-footer__card {
        aspect-ratio: 2.5 / 1;
    }

    .hero-footer__card-text h3 {
        font-size: 1.4rem;
    }

    .hero-footer__cards {
        padding: 30px 0;
    }

    .hero-footer__connected {
        padding: 50px 0;
    }

    .hero-footer__connected-content h2 {
        font-size: 2rem;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .hero-footer__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}
