/* ╔══════════════════════════════════════════════════════════════════════════════╗
   ║   MISSION AUTO GLASS — PREMIUM SITEMAP ARCHITECTURE                          ║
   ║   Target: Structural Clarity, SEO Hierarchy, & User Navigation               ║
   ║   Version: MAX_CAPACITY_01                                                   ║
   ╚══════════════════════════════════════════════════════════════════════════════╝ */
/* ═══════════════════════════════════════════════════════════════════════════════
   1. GLOBAL PAGE CONFIGURATION
   Creates a clean, utility-focused environment.
   ═══════════════════════════════════════════════════════════════════════════════ */
.page-sitemap {
    background-color: var(--color-neutral-50);
    min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   2. COMPONENT: BREADCRUMB ELEVATION
   Consistent UI architecture with other premium pages.
   ═══════════════════════════════════════════════════════════════════════════════ */
.page-sitemap .breadcrumb {
    display: flex;
    justify-content: center;
    padding: var(--space-6) 0;
    background: transparent;
}

.page-sitemap .breadcrumb ol {
    background: white;
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0,0,0,0.04);
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

.page-sitemap .breadcrumb a {
    color: var(--color-brand-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-sitemap .breadcrumb a:hover {
    color: var(--color-brand-red);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   3. COMPONENT: COMPACT HERO
   A streamlined header that doesn't distract from the directory function.
   ═══════════════════════════════════════════════════════════════════════════════ */
.section-hero-compact {
    text-align: center;
    padding: var(--space-12) 0 var(--space-16);
    background: white;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-10);
}

.section-hero-compact h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-brand-blue-dark);
    margin-bottom: var(--space-4);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 60ch;
    margin: 0 auto;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   4. THE SITEMAP GRID
   Transforms lists into a professional 4-column directory architecture.
   ═══════════════════════════════════════════════════════════════════════════════ */
.section-sitemap-grid {
    padding-bottom: var(--space-20);
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    /* Default desktop 4-column */
    gap: var(--space-8);
    align-items: start;
}

/* The Column Container */
.sitemap-column {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 2px 4px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;

    /* Equal height columns */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect: Lift the entire column */
.sitemap-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.06),
        0 4px 6px -2px rgba(0, 0, 0, 0.03);
    border-color: rgba(24, 48, 117, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   5. SITEMAP TYPOGRAPHY & LISTS
   Hierarchy controls for H3, H4, and list items.
   ═══════════════════════════════════════════════════════════════════════════════ */
/* Main Category Headers (H3) */
.sitemap-section-title {
    font-size: 1.125rem;
    color: var(--color-brand-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--color-neutral-100);
    position: relative;
}

/* Accent Underline */
.sitemap-section-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--color-brand-red);
}

/* Sub-Category Headers (H4) */
.sitemap-subsection-title {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    padding-left: var(--space-2);

    /* Slight indent for hierarchy */
}

/* The List Container */
.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Link Styling */
.sitemap-list li {
    margin-bottom: var(--space-2);
}

.sitemap-list a {
    display: block;
    color: var(--color-neutral-600);
    text-decoration: none;
    font-size: 0.95rem;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

/* Link Hover State */
.sitemap-list a:hover {
    color: var(--color-brand-blue-dark);
    background-color: var(--color-neutral-50);
    transform: translateX(4px);
    font-weight: 500;
}

/* Current Page Indicator */
.sitemap-list a[aria-current="page"] {
    color: var(--text-muted);
    font-style: italic;
    cursor: default;
}

.sitemap-list a[aria-current="page"]:hover {
    background: none;
    transform: none;
    color: var(--text-muted);
}

/* Nested Lists (Indented) */
.sitemap-list-nested {
    padding-left: var(--space-3);
    border-left: 1px solid var(--color-neutral-100);
    margin-bottom: var(--space-4);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   6. CTA FOOTER STRIP
   Architecturally stable button layout.
   ═══════════════════════════════════════════════════════════════════════════════ */
.section-cta {
    background: white;
    padding: var(--space-16) 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: auto;

    /* Push to bottom if content is short */
}

.section-cta h2 {
    font-size: 2rem;
    color: var(--color-brand-blue-dark);
    margin-bottom: var(--space-2);
}

.cta-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-8);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Enforce intrinsic widths */
.page-sitemap .btn,
.page-sitemap .btn-primary,
.page-sitemap .btn-phone {
    flex: 0 0 auto;
    min-width: 200px;
    width: auto !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   7. RESPONSIVE REFLOW
   Ensures the grid collapses gracefully on smaller screens.
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .sitemap-grid {
        grid-template-columns: repeat(3, 1fr);

        /* 3 columns on smaller desktops */
    }
}

@media (max-width: 900px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);

        /* 2 columns on tablets */
    }
}

@media (max-width: 600px) {
    .sitemap-grid {
        grid-template-columns: 1fr;

        /* 1 column on mobile */
        gap: var(--space-4);
    }

    .section-hero-compact h1 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .page-sitemap .btn {
        width: 100% !important;
    }
}