/* ============================================================
   Dental Workz of Quincy — Modern, ADA-Compliant Styles
   ============================================================ */

:root {
    --primary: #ea580c;
    --primary-dark: #c2410c;
    --primary-light: #fff7ed;
    --accent: #16a34a;
    --accent-light: #f0fdf4;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --success: #059669;
    --warning: #d97706;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--slate-700);
    line-height: 1.7;
    background: var(--slate-50);
    margin: 0;
    padding: 0;
}

/* ============================================================
   Accessibility
   ============================================================ */

/* Skip to content link */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.sr-only:focus {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1.25rem;
    margin: 0;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius);
    z-index: 1000;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
}

/* Focus styles for all interactive elements */
a:focus-visible,
button:focus-visible,
details > summary:focus-visible {
    outline: 3px solid var(--warning);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ============================================================
   Header & Navigation
   ============================================================ */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    display: none;
}

.logo svg {
    display: none;
}

/* Desktop Nav */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--slate-600);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}
.btn-accent:hover {
    background: #0f766e;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
}
.btn-white:hover {
    background: var(--slate-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* Phone CTA */
.phone-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.phone-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.phone-cta svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   Hero Section
   ============================================================ */

.hero {
    position: relative;
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem 1rem;
    background: #ea580c;
    color: var(--white);
    overflow: hidden;
}

/* Immersive diagonal pattern overlay incorporating brand elements */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        /* Large sweeping diagonal bands - white */
        linear-gradient(135deg,
            transparent 0%,
            transparent 15%,
            rgba(255,255,255,0.04) 15%,
            rgba(255,255,255,0.04) 17%,
            transparent 17%,
            transparent 25%,
            rgba(255,255,255,0.03) 25%,
            rgba(255,255,255,0.03) 26.5%,
            transparent 26.5%,
            transparent 35%,
            rgba(255,255,255,0.05) 35%,
            rgba(255,255,255,0.05) 37%,
            transparent 37%,
            transparent 48%,
            rgba(255,255,255,0.03) 48%,
            rgba(255,255,255,0.03) 49.5%,
            transparent 49.5%,
            transparent 58%,
            rgba(255,255,255,0.04) 58%,
            rgba(255,255,255,0.04) 60%,
            transparent 60%,
            transparent 70%,
            rgba(255,255,255,0.05) 70%,
            rgba(255,255,255,0.05) 72%,
            transparent 72%,
            transparent 82%,
            rgba(255,255,255,0.03) 82%,
            rgba(255,255,255,0.03) 83.5%,
            transparent 83.5%,
            transparent 92%,
            rgba(255,255,255,0.04) 92%,
            rgba(255,255,255,0.04) 94%,
            transparent 94%,
            transparent 100%
        ),
        /* Accent yellow diagonal stripes */
        linear-gradient(135deg,
            transparent 0%,
            transparent 10%,
            rgba(251,191,36,0.06) 10%,
            rgba(251,191,36,0.06) 10.8%,
            transparent 10.8%,
            transparent 20%,
            rgba(251,191,36,0.05) 20%,
            rgba(251,191,36,0.05) 21%,
            transparent 21%,
            transparent 40%,
            rgba(251,191,36,0.06) 40%,
            rgba(251,191,36,0.06) 40.8%,
            transparent 40.8%,
            transparent 50%,
            rgba(251,191,36,0.05) 50%,
            rgba(251,191,36,0.05) 51%,
            transparent 51%,
            transparent 65%,
            rgba(251,191,36,0.06) 65%,
            rgba(251,191,36,0.06) 65.8%,
            transparent 65.8%,
            transparent 78%,
            rgba(251,191,36,0.05) 78%,
            rgba(251,191,36,0.05) 79%,
            transparent 79%,
            transparent 100%
        ),
        /* Tooth-tooth repeating dot pattern */
        radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size:
        100% 100%,
        100% 100%,
        40px 40px;
    background-position:
        0 0,
        0 0,
        20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* Floating tooth shapes as decorative elements */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        /* Large accent circles */
        radial-gradient(circle 80px at 10% 85%, rgba(251,191,36,0.08) 0%, transparent 100%),
        radial-gradient(circle 60px at 90% 20%, rgba(255,255,255,0.06) 0%, transparent 100%),
        radial-gradient(circle 50px at 80% 80%, rgba(251,191,36,0.05) 0%, transparent 100%),
        radial-gradient(circle 40px at 15% 20%, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Only apply flex row on desktop (above 900px) */
@media (min-width: 901px) {
    .hero {
        flex-direction: row;
        gap: 0;
    }
}

.hero-inner {
    max-width: 96rem;
    margin: 0 auto;
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    z-index: 1;
    padding: 0 1.5rem;
}

/* Always keep hero-inner as column (logo above the 3-col row) */
@media (min-width: 901px) {
    .hero-inner {
        flex-direction: column;
    }
}

.hero-content {
    max-width: 48rem;
    text-align: center;
    width: 100%;
    background: rgba(0,0,0,0.2);
    border-radius: 1rem;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1.5rem;
}

/* Home page specific styles - only applies to horizontal layout */
@media (min-width: 769px) {
    .hero h1 {
        margin-bottom: 1.5rem;
    }
}

.hero h1 span {
    color: #fbbf24;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 36rem;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ============================================================
   Hero Section - Home Page Layout
   ============================================================ */

/* Logo centered inside the left hero card */
.hero-card-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
}

.hero-card-logo img {
    height: 96px;
    width: auto;
    border-radius: 50%;
    object-fit: contain;
}

@media (min-width: 901px) {
    .hero-card-logo img {
        height: 120px;
    }
}

.hero-layout-horizontal {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    width: 100%;
}

/* Mobile: stack vertically below 900px */
@media (max-width: 900px) {
    .hero-inner {
        padding: 1.5rem 0.75rem 2.5rem;
    }

    .hero-layout-horizontal {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .hero-center-slideshow {
        order: -1;
        width: 100%;
        max-width: 480px;
        flex: 0 0 auto;
    }

    .hero-center-slideshow .slideshow-wrapper {
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }

/* Mobile caption: tighter, readable */
    .hero-center-slideshow .slideshow-caption {
        padding: 2rem 1rem 0.85rem;
        background: rgba(0, 0, 0, 0.78);
    }

    .hero-center-slideshow .slideshow-caption p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .hero-left-card,
    .hero-right-card {
        max-width: 440px;
        width: 100%;
        height: auto;
    }

    /* Smaller logo on mobile */
    .hero-card-logo img {
        height: 80px;
    }

    /* Smaller buttons on mobile to fit narrow screens */
    .hero-actions-left {
        gap: 0.5rem;
    }

    .hero-actions-left .btn {
        font-size: 0.8rem;
        padding: 0.55rem 0.9rem;
        border-radius: 0.6rem;
    }

    .hero-left-card {
        padding: 1.25rem 1rem;
    }

    .hero-left-card h1 {
        font-size: 1.15rem;
    }

    .hero-right-card {
        padding: 1.25rem 1rem;
    }

    .hero-right-card h2 {
        font-size: 1.2rem;
    }

    .hero-right-card p {
        font-size: 0.95rem;
    }

    .hero-right-card .phone-highlight {
        font-size: 1.15rem;
        margin: 0.5rem 0;
    }
}

/* Desktop: 3 evenly-sized columns */
@media (min-width: 901px) {
    .hero-inner {
        padding: 2rem 1.5rem;
    }

    .hero-layout-horizontal {
        gap: 2.5rem;
    }

    .hero-left-card {
        flex: 0 0 280px !important;
        min-width: 260px !important;
        min-height: 400px !important;
    }

    .hero-center-slideshow {
        flex: 1 1 auto !important;
    }

    .hero-right-card {
        flex: 0 0 280px !important;
        min-width: 260px !important;
        min-height: 400px !important;
    }
}

.hero-left-card {
    flex: 1 1 0;
    background: rgba(0,0,0,0.2);
    border-radius: 1.25rem;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-left-card h1 {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.4rem;
}

.hero-left-card p {
    font-size: 0.9rem;
    margin: 0 0 0;
    line-height: 1.5;
    opacity: 0.95;
}

.hero-actions-left {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: auto;
    width: 100%;
}

.hero-actions-left .btn {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border-radius: 0.65rem;
}

/* CENTER: Slideshow embedded in hero */
.hero-center-slideshow {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.hero-center-slideshow .slideshow-wrapper {
    width: 100%;
}

/* RIGHT: Open card */
.hero-right-card {
    flex: 1 1 0;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-right-card h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.hero-right-card p {
    font-size: 1rem;
    margin: 0 0 0.3rem;
    line-height: 1.4;
}

.hero-right-card .phone-highlight {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.75rem 0;
}

.hero-right-card .btn {
    font-size: 1.1rem;
    padding: 0.85rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    margin-top: auto;
    align-self: center;
    width: auto;
}

/* ============================================================
   Hero Logo Flank (sub-page page hero banners)
   ============================================================ */

.hero-logo-flank {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 3vw, 2rem);
    flex-wrap: wrap;
}

.hero-logo-flank img {
    height: clamp(48px, 8vw, 80px);
    width: auto;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: contain;
}

.hero-logo-flank h1 {
    color: white;
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.hero-logo-flank p {
    color: rgba(255,255,255,0.95);
    margin: 0.75rem auto 0;
    font-size: 1.15rem;
    text-align: center;
}

/* ============================================================
   Section Styles
   ============================================================ */

.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--white);
}

.section-dark {
    background: var(--slate-900);
    color: var(--slate-300);
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--slate-900);
    margin: 0 0 1rem;
}

.section-dark .section-header h2 {
    color: var(--white);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--slate-600);
    margin: 0;
}

.container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================================
   Feature Cards
   ============================================================ */

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--slate-200);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-card .icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-card .icon-wrap.blue {
    background: var(--primary-light);
    color: var(--primary);
}

.feature-card .icon-wrap.teal {
    background: var(--accent-light);
    color: var(--accent);
}

.feature-card .icon-wrap.green {
    background: #d1fae5;
    color: var(--success);
}

.feature-card .icon-wrap.amber {
    background: #fef3c7;
    color: var(--warning);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0 0 0.5rem;
}

.feature-card p {
    color: var(--slate-600);
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.feature-card .arrow {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.95rem;
}

/* ============================================================
   Wide service detail card (Dentures) — stacked on mobile
   ============================================================ */

.service-detail-card--wide__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

.service-detail-card--wide__img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
}

.service-detail-card--wide__img-wrap img {
    width: 80px;
}

.service-detail-card--wide__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.75rem 1.75rem;
}

/* Side-by-side on wider screens */
@media (min-width: 640px) {
    .service-detail-card--wide__inner {
        flex-direction: row;
        gap: 0;
    }

    .service-detail-card--wide__img-wrap {
        flex: 0 0 240px;
        padding: 2rem;
        min-height: 200px;
    }

    .service-detail-card--wide__img-wrap img {
        width: 180px;
    }

    .service-detail-card--wide__text {
        flex: 1;
        padding: 2rem;
    }
}

/* ============================================================
   Culture / Metrics Bars
   ============================================================ */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--slate-200);
    transition: all 0.2s;
}

.metric-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.metric-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.metric-label span:first-child {
    font-weight: 600;
    color: var(--slate-800);
}

.metric-label span:last-child {
    font-weight: 700;
    color: var(--primary);
}

.metric-bar {
    height: 0.5rem;
    background: var(--slate-200);
    border-radius: 9999px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 9999px;
    transition: width 1s ease;
}

/* ============================================================
   Service Cards (detailed)
   ============================================================ */

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--slate-200);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.service-card .service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: var(--primary-light);
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0 0 0.75rem;
}

.service-card p {
    color: var(--slate-600);
    margin: 0 0 1.5rem;
    line-height: 1.7;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--slate-700);
    border-bottom: 1px solid var(--slate-100);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* ============================================================
   About / Team Section
   ============================================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.about-image-placeholder svg {
    width: 6rem;
    height: 6rem;
    color: var(--primary);
    opacity: 0.3;
}

.about-image-placeholder span {
    color: var(--slate-400);
    font-weight: 500;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--slate-900);
    margin: 0 0 0.5rem;
}

.about-content .subtitle {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0 0 1.5rem;
}

.about-content p {
    color: var(--slate-600);
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.about-value {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--slate-50);
    border-radius: var(--radius);
}

.about-value svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.about-value span {
    font-weight: 600;
    color: var(--slate-800);
    font-size: 0.95rem;
}

/* ============================================================
   FAQ Accordion
   ============================================================ */

.faq-list {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-item details {
    padding: 0;
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--slate-800);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: var(--slate-300);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform 0.3s;
}

.faq-item details[open] summary::after {
    transform: rotate(180deg);
}

.faq-item .faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--slate-600);
    line-height: 1.7;
}

/* ============================================================
   Office Map Embed — Visit Our Office
   ============================================================ */

.visit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 901px) {
    .visit-grid {
        grid-template-columns: 300px auto 1fr;
    }
}

.visit-photo-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-200);
}

.visit-photo-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.visit-content {
    text-align: center;
}

@media (max-width: 900px) {
    .visit-content {
        text-align: center;
    }
}

.office-map-wrap {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-200);
    aspect-ratio: 4 / 3;
}

.office-map {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 640px) {
    .office-map-wrap {
        aspect-ratio: 16 / 10;
    }
}

/* ============================================================
   CTA Banner
   ============================================================ */

.cta-banner {
    background: #ea580c;
    padding: 5rem 0;
    text-align: center;
    color: var(--white);
}

/* Pattern overlay removed from CTA banner - solid orange only */

.cta-banner h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 1rem;
}

.cta-banner p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.cta-banner .phone-cta {
    font-size: 1.25rem;
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--primary);
}

.cta-banner .phone-cta:hover {
    box-shadow: var(--shadow-xl);
}

/* ============================================================
   Info / Contact Banner
   ============================================================ */

.info-banner {
    background: var(--slate-800);
    color: var(--slate-300);
    padding: 3rem 0;
}

.info-banner-grid {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item .info-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-light);
}

.info-item .info-icon svg {
    width: 20px;
    height: 20px;
}

.info-item h4 {
    color: var(--white);
    font-size: 1rem;
    margin: 0 0 0.25rem;
}

.info-item p,
.info-item a {
    color: var(--slate-400);
    font-size: 0.95rem;
    text-decoration: none;
    margin: 0;
}

.info-item a:hover {
    color: var(--white);
}

/* ============================================================
   Hours Table
   ============================================================ */

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.hours-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hours-table td {
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.hours-table td:first-child {
    font-weight: 600;
    color: var(--slate-200);
}

.hours-table td:last-child {
    text-align: right;
}

.hours-table .closed {
    color: #f87171;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.footer-col h4 {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 1rem;
}

.footer-col p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--slate-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 72rem;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.85rem;
    color: var(--slate-500);
}

/* ============================================================
   Spanish Banner
   ============================================================ */

.spanish-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 3rem;
}

.spanish-banner h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #92400e;
    margin: 0 0 0.5rem;
}

.spanish-banner p {
    font-size: 1.1rem;
    color: #78350f;
    margin: 0 0 1.5rem;
}

/* ============================================================
   Financial Page Styles
   ============================================================ */

/* Hero sub-page variant */
.hero-subpage {
    padding: 4rem 0;
    background: var(--primary);
}

.financial-section-header {
    margin-bottom: 3rem;
}

/* Two-column layout: main content + sticky sidebar */
.financial-content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.financial-main-content {
    min-width: 0; /* prevents flex/grid overflow */
}

/* Image wrapper */
.financial-image-wrap {
    margin-bottom: 2rem;
}

.financial-image-wrap img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 0.75rem;
    display: block;
    margin: 0 auto;
}

/* Section headings */
.financial-subheading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary);
}

.financial-subheading-sm {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 1.25rem;
}

.financial-body {
    font-size: 1.05rem;
    color: var(--slate-600);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Feature grid on financial page */
.financial-feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

/* Payment methods grid */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.payment-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--slate-50);
    border-radius: 0.75rem;
    border: 1px solid var(--slate-200);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.payment-method-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.payment-method-card span {
    font-weight: 600;
    color: var(--slate-700);
    font-size: 0.95rem;
}

/* Sticky sidebar card */
.financial-sidebar {
    position: sticky;
    top: 5rem;
    width: 100%;
}

.financial-sidebar-inner {
    background: var(--primary);
    border-radius: 1.25rem;
    padding: 2rem;
    color: white;
    box-shadow: 0 10px 40px rgba(234, 88, 12, 0.2);
}

.financial-sidebar-inner h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
    text-align: center;
}

.financial-sidebar-inner p {
    text-align: center;
    margin: 0 0 1.5rem;
    opacity: 0.95;
    font-size: 0.95rem;
}

.financial-sidebar-list {
    background: rgba(255,255,255,0.2);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.financial-sidebar-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.financial-sidebar-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.financial-sidebar-list li:last-child {
    border-bottom: none;
}

.financial-sidebar-list li span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* ============================================================
   Mobile Responsive
   ============================================================ */

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--slate-700);
}

.mobile-toggle svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Unify mobile horizontal bounds: match header padding */
    .container, .header-inner, .footer-inner {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .main-nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 3px solid var(--primary);
        box-shadow: var(--shadow-xl);
        padding: 0.25rem 0;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        transform: translateY(-0.5rem);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.25s ease,
                    visibility 0s 0.3s;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.2s ease,
                    visibility 0s 0s;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.25rem 0;
    }

    .main-nav a {
        display: block;
        padding: 0.85rem 1.25rem;
        border-bottom: 1px solid var(--slate-100);
        border-left: 3px solid transparent;
        border-radius: 0;
        font-size: 1rem;
    }

    .main-nav a:hover,
    .main-nav a[aria-current="page"] {
        border-left-color: var(--primary);
        border-bottom-color: var(--slate-100);
        background: var(--slate-50);
    }

    .header-inner {
        height: auto;
        padding: 0.5rem 0.75rem;
        flex-wrap: wrap;
        gap: 0;
        align-items: center;
    }

    /* On mobile: logo + hamburger on top row, action buttons on second row */
    .logo {
        font-size: 1rem;
    }

    .mobile-toggle {
        margin-left: auto;
    }

    .header-actions {
        flex-basis: 100%;
        order: 3;
        justify-content: center;
        gap: 0.4rem;
        margin-top: 0.35rem;
        padding-top: 0.35rem;
        border-top: 1px solid var(--slate-200);
        flex-wrap: wrap;
    }

    .phone-cta {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
        border-radius: 9999px;
        gap: 0.35rem;
    }

    .phone-cta svg {
        width: 14px;
        height: 14px;
    }

    .lang-toggle {
        padding: 0.4rem 0.75rem;
        font-size: 0.78rem;
        margin-left: 0;
        gap: 0.3rem;
        border-width: 1.5px;
        border-radius: 9999px;
    }

    .lang-toggle svg {
        width: 15px;
        height: 15px;
    }

    .high-contrast-toggle {
        flex-basis: 100%;
        justify-content: center;
        padding: 0.4rem 0.75rem;
        font-size: 0.78rem;
        margin-left: 0;
        margin-top: 0.3rem;
        gap: 0.3rem;
        border-width: 1.5px;
        border-radius: 9999px;
    }

    .high-contrast-toggle svg {
        width: 15px;
        height: 15px;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-inner {
        gap: 2rem;
    }

    .hero-card {
        max-width: 100%;
    }

    .section {
        padding: 3rem 0;
    }

    /* Financial page hero: stack logo above title, then logo below */
    .hero-logo-flank {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-logo-flank img {
        height: 64px;
    }

    .hero-logo-flank h1 {
        font-size: 1.6rem;
        text-align: center;
    }

    /* Financial page hero: reduce excessive padding */
    .hero[style*="padding"],
    .hero-subpage {
        padding: 2.5rem 0 !important;
    }

    /* Financial page "Making It Accessible" feature grid: single column on mobile */
    .feature-grid[style*="minmax(20rem"],
    .financial-feature-grid {
        grid-template-columns: 1fr !important;
    }

    /* Financial page: single column layout, remove sticky aside */
    .service-grid,
    .financial-content-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Floating "Flexible Options" box - remove sticky, make it flow naturally */
    aside[style*="sticky"],
    .financial-sidebar {
        position: static !important;
        top: auto !important;
    }

    /* Reorder: image + content first, flexible options box below */
    .service-grid > div:first-child,
    .financial-main-content {
        order: 1;
    }

    aside[style*="sticky"],
    .financial-sidebar {
        order: 2;
    }

    /* Payment methods grid: 3 columns on mobile instead of 5 */
    .service-grid > div:first-child > div > div[style*="grid-template-columns"],
    .payment-methods-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.75rem !important;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer first column: stack logo and text on mobile */
    .footer-col[style*="flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .footer-col[style*="flex"] img {
        height: 80px !important;
    }

    .info-banner-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .hero-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 2rem;
        align-items: start;
    }

    .hero-content {
        grid-column: 1 / -1;
    }

    .hero-logo-center {
        grid-column: 1 / -1;
    }

    .hero-card {
        grid-column: 2;
        max-width: 28rem;
        align-self: start;
    }

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

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

    .about-grid {
        grid-template-columns: 1fr 1.2fr;
    }

    .footer-inner {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* ============================================================
   Print Styles
   ============================================================ */

@media print {
    .site-header,
    .cta-banner,
    .hero-actions,
    .phone-cta {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
}

/* ============================================================
   Reduced Motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .feature-card,
    .service-card,
    .btn,
    .phone-cta {
        transition: none;
        transform: none;
    }

    .metric-fill {
        transition: none;
    }
}

/* ============================================================
   Language Toggle Button
   ============================================================ */

.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 9999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: 0.75rem;
}

.lang-toggle:hover {
    background: var(--primary);
    color: var(--white);
}

.lang-toggle:focus-visible {
    outline: 3px solid var(--warning);
    outline-offset: 3px;
}

.lang-toggle svg {
    width: 16px;
    height: 16px;
}

/* Ensure lang toggle appears in header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================================
   High Contrast Toggle Button
   ============================================================ */

.high-contrast-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 9999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: 0.75rem;
}

.high-contrast-toggle:hover {
    background: var(--primary);
    color: var(--white);
}

.high-contrast-toggle:focus-visible {
    outline: 3px solid var(--warning);
    outline-offset: 3px;
}

.high-contrast-toggle svg {
    width: 16px;
    height: 16px;
}

/* Active state when high contrast is on — MUST use !important to beat universal selector */
body.high-contrast .high-contrast-toggle,
body.high-contrast .high-contrast-toggle * {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

body.high-contrast .high-contrast-toggle:hover,
body.high-contrast .high-contrast-toggle:hover * {
    background: #333 !important;
    color: #fff !important;
}

body.high-contrast .high-contrast-toggle:focus-visible {
    outline: 3px solid #000;
    outline-offset: 3px;
}

body.high-contrast .high-contrast-toggle svg {
    color: #fff !important;
    stroke: #fff !important;
}

/* ============================================================
   HIGH CONTRAST MODE — ADA Compliant
   ============================================================ */

/* Override CSS custom properties */
body.high-contrast {
    --primary: #000000 !important;
    --primary-dark: #000000 !important;
    --primary-light: #ffffff !important;
    --accent: #000000 !important;
    --accent-light: #ffffff !important;
    --slate-50: #ffffff !important;
    --slate-100: #ffffff !important;
    --slate-200: #000000 !important;
    --slate-300: #000000 !important;
    --slate-400: #000000 !important;
    --slate-500: #000000 !important;
    --slate-600: #000000 !important;
    --slate-700: #000000 !important;
    --slate-800: #000000 !important;
    --slate-900: #000000 !important;
    --success: #000000 !important;
    --warning: #000000 !important;
    --white: #ffffff !important;

    background: #ffffff !important;
    color: #000000 !important;
    font-size: 18px !important;
}

/* Universal text color override — all text becomes black */
body.high-contrast * {
    color: #000000 !important;
}

/* White background for all containers and sections */
body.high-contrast body,
body.high-contrast main,
body.high-contrast .section,
body.high-contrast .section-alt,
body.high-contrast .section-dark,
body.high-contrast .container,
body.high-contrast .hero-inner,
body.high-contrast .footer-inner,
body.high-contrast .footer-bottom {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Header: white background, black text, black borders */
body.high-contrast .site-header {
    background: #ffffff !important;
    border-bottom: 2px solid #000000 !important;
    box-shadow: none !important;
}

body.high-contrast .logo {
    color: #000000 !important;
}

/* Navigation links */
body.high-contrast .main-nav a {
    color: #000000 !important;
    border-bottom-color: transparent !important;
}

body.high-contrast .main-nav a:hover,
body.high-contrast .main-nav a[aria-current="page"] {
    color: #000000 !important;
    border-bottom-color: #000000 !important;
}

/* Mobile nav */
body.high-contrast .main-nav {
    background: #ffffff !important;
    border-bottom: 2px solid #000000 !important;
}

body.high-contrast .main-nav a {
    border-bottom-color: #000000 !important;
}

body.high-contrast .mobile-toggle {
    color: #000000 !important;
}

/* Hero: white background, black text */
body.high-contrast .hero {
    background: #ffffff !important;
    color: #000000 !important;
}

body.high-contrast .hero h1,
body.high-contrast .hero h1 span {
    color: #000000 !important;
}

body.high-contrast .hero p {
    color: #000000 !important;
    opacity: 1 !important;
}

body.high-contrast .hero-logo-flank h1 {
    color: #000000 !important;
}

body.high-contrast .hero-logo-flank p {
    color: #000000 !important;
    opacity: 1 !important;
}

/* Hero cards: white bg, black border */
body.high-contrast .hero-left-card,
body.high-contrast .hero-right-card {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
}

body.high-contrast .hero-content {
    background: #ffffff !important;
}

body.high-contrast .hero-left-card h1,
body.high-contrast .hero-left-card p,
body.high-contrast .hero-right-card h3,
body.high-contrast .hero-right-card p,
body.high-contrast .hero-right-card .phone-highlight {
    color: #000000 !important;
    opacity: 1 !important;
}

/* Slideshow captions: white text on dark overlay (exempt from universal black text) */
body.high-contrast .slideshow-caption,
body.high-contrast .slideshow-caption *,
body.high-contrast .slideshow-caption p,
body.high-contrast .slideshow-caption p * {
    color: #ffffff !important;
}

/* CTA Banner: white bg, black text, thick black border */
body.high-contrast .cta-banner {
    background: #ffffff !important;
    color: #000000 !important;
    border-top: 3px solid #000000 !important;
    border-bottom: 3px solid #000000 !important;
}

body.high-contrast .cta-banner h2 {
    color: #000000 !important;
}

body.high-contrast .cta-banner p {
    color: #000000 !important;
    opacity: 1 !important;
}

/* Buttons in high contrast — include descendant * to beat universal selector */
body.high-contrast .btn,
body.high-contrast .btn *,
body.high-contrast .btn span,
body.high-contrast .btn svg {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
}

body.high-contrast .btn:hover,
body.high-contrast .btn:hover * {
    background: #333333 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* btn-white & btn-outline overrides */
body.high-contrast .btn-white,
body.high-contrast .btn-white *,
body.high-contrast .btn-outline,
body.high-contrast .btn-outline * {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
}

body.high-contrast .btn-white:hover,
body.high-contrast .btn-white:hover *,
body.high-contrast .btn-outline:hover,
body.high-contrast .btn-outline:hover * {
    background: #333333 !important;
    color: #ffffff !important;
}

/* Phone CTA */
body.high-contrast .phone-cta,
body.high-contrast .phone-cta * {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
}

body.high-contrast .phone-cta:hover,
body.high-contrast .phone-cta:hover * {
    background: #333333 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

body.high-contrast .cta-banner .phone-cta,
body.high-contrast .cta-banner .phone-cta * {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
}

/* Feature cards: white bg, 2px black border */
body.high-contrast .feature-card {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    box-shadow: none !important;
}

body.high-contrast .feature-card:hover {
    border-color: #000000 !important;
    box-shadow: none !important;
    transform: none !important;
}

body.high-contrast .feature-card h3 {
    color: #000000 !important;
}

body.high-contrast .feature-card p {
    color: #000000 !important;
}

body.high-contrast .feature-card .arrow {
    color: #000000 !important;
    text-decoration: underline !important;
}

/* Feature card icon wraps */
body.high-contrast .feature-card .icon-wrap,
body.high-contrast .feature-card .icon-wrap.blue,
body.high-contrast .feature-card .icon-wrap.teal,
body.high-contrast .feature-card .icon-wrap.green,
body.high-contrast .feature-card .icon-wrap.amber {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
}

/* Service cards */
body.high-contrast .service-card {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    box-shadow: none !important;
}

body.high-contrast .service-card:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* Service card ::before gradient -> solid black */
body.high-contrast .service-card::before {
    background: #000000 !important;
}

body.high-contrast .service-card h3 {
    color: #000000 !important;
}

body.high-contrast .service-card p {
    color: #000000 !important;
}

body.high-contrast .service-card .service-icon {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
}

body.high-contrast .service-list li {
    color: #000000 !important;
    border-bottom-color: #000000 !important;
}

body.high-contrast .service-list li::before {
    background: #000000 !important;
}

/* Service detail cards (index.html) */
body.high-contrast .service-detail-card {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    box-shadow: none !important;
}

/* FAQ items */
body.high-contrast .faq-item {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
}

body.high-contrast .faq-item:hover {
    border-color: #000000 !important;
}

body.high-contrast .faq-item summary {
    color: #000000 !important;
}

body.high-contrast .faq-item .faq-answer {
    color: #000000 !important;
}

body.high-contrast .faq-item summary::after {
    background: #000000 !important;
}

/* Footer: white bg, black text */
body.high-contrast .site-footer {
    background: #ffffff !important;
    color: #000000 !important;
    border-top: 2px solid #000000 !important;
}

body.high-contrast .footer-col h4 {
    color: #000000 !important;
}

body.high-contrast .footer-col p {
    color: #000000 !important;
}

body.high-contrast .footer-col a {
    color: #000000 !important;
    text-decoration: underline !important;
}

body.high-contrast .footer-col a:hover {
    color: #000000 !important;
}

body.high-contrast .footer-bottom {
    border-top: 2px solid #000000 !important;
    color: #000000 !important;
}

/* Info banner */
body.high-contrast .info-banner {
    background: #ffffff !important;
    color: #000000 !important;
    border-top: 2px solid #000000 !important;
    border-bottom: 2px solid #000000 !important;
}

body.high-contrast .info-item .info-icon {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
}

body.high-contrast .info-item h4 {
    color: #000000 !important;
}

body.high-contrast .info-item p,
body.high-contrast .info-item a {
    color: #000000 !important;
}

/* Hours table */
body.high-contrast .hours-table tr {
    border-bottom-color: #000000 !important;
}

body.high-contrast .hours-table td:first-child {
    color: #000000 !important;
}

body.high-contrast .hours-table .closed {
    color: #000000 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

/* Spanish banner: white bg, black border, no gradient */
body.high-contrast .spanish-banner {
    background: #ffffff !important;
    border: 3px solid #000000 !important;
}

body.high-contrast .spanish-banner h3 {
    color: #000000 !important;
}

body.high-contrast .spanish-banner p {
    color: #000000 !important;
}

/* About section */
body.high-contrast .about-grid {
    background: #ffffff !important;
}

body.high-contrast .about-content h2 {
    color: #000000 !important;
}

body.high-contrast .about-content .subtitle {
    color: #000000 !important;
}

body.high-contrast .about-content p {
    color: #000000 !important;
}

body.high-contrast .about-value {
    background: #ffffff !important;
    border: 1px solid #000000 !important;
}

body.high-contrast .about-value svg {
    color: #000000 !important;
}

body.high-contrast .about-value span {
    color: #000000 !important;
}

body.high-contrast .about-image-placeholder {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
}

body.high-contrast .about-image-placeholder svg {
    color: #000000 !important;
    opacity: 1 !important;
}

body.high-contrast .about-image-placeholder span {
    color: #000000 !important;
}

/* Metrics */
body.high-contrast .metric-card {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
}

body.high-contrast .metric-card:hover {
    border-color: #000000 !important;
    box-shadow: none !important;
}

body.high-contrast .metric-label span:first-child {
    color: #000000 !important;
}

body.high-contrast .metric-label span:last-child {
    color: #000000 !important;
}

body.high-contrast .metric-bar {
    background: #e5e5e5 !important;
}

body.high-contrast .metric-fill {
    background: #000000 !important;
}

/* Section header */
body.high-contrast .section-header h2 {
    color: #000000 !important;
}

body.high-contrast .section-header p {
    color: #000000 !important;
}

/* Blockquotes */
body.high-contrast blockquote {
    background: #ffffff !important;
    border-left: 4px solid #000000 !important;
}

body.high-contrast blockquote p {
    color: #000000 !important;
}

body.high-contrast blockquote cite {
    color: #000000 !important;
}

/* All links: black with underline (but NOT buttons/interactive elements) */
body.high-contrast a:not(.btn):not(.phone-cta):not(.lang-toggle):not(.high-contrast-toggle) {
    color: #000000 !important;
    text-decoration: underline !important;
}

/* Images: thick 2px black border */
body.high-contrast img {
    border: 2px solid #000000 !important;
}

/* SVGs inside buttons/toggle elements should stay white */
body.high-contrast .btn svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

body.high-contrast .phone-cta svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

body.high-contrast .high-contrast-toggle svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Skip-to-content link: visible with black/white contrast */
body.high-contrast .sr-only:focus {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
}

/* Focus outlines remain visible and high contrast */
body.high-contrast a:focus-visible,
body.high-contrast button:focus-visible,
body.high-contrast details > summary:focus-visible {
    outline: 3px solid #000000 !important;
    outline-offset: 3px !important;
}

/* Inline style overrides — override any inline style attributes with colors
   but NEVER on buttons, links acting as buttons, or toggle elements */
body.high-contrast [style*="color"]:not(.btn):not(.btn-white):not(.btn-outline):not(.phone-cta):not(.lang-toggle):not(.high-contrast-toggle) {
    color: #000000 !important;
}

body.high-contrast [style*="background"]:not(.btn):not(.btn-white):not(.btn-outline):not(.phone-cta):not(.lang-toggle):not(.high-contrast-toggle) {
    background: #ffffff !important;
}

body.high-contrast [style*="background-color"]:not(.btn):not(.btn-white):not(.btn-outline):not(.phone-cta):not(.lang-toggle):not(.high-contrast-toggle) {
    background-color: #ffffff !important;
}

/* Buttons and CTAs with inline styles: FORCE black bg, white text
   These MUST come after the generic [style*] overrides to win */
body.high-contrast .btn[style*="background"],
body.high-contrast .btn[style*="color"],
body.high-contrast .btn-white[style*="background"],
body.high-contrast .btn-white[style*="color"],
body.high-contrast .btn-white,
body.high-contrast .btn-white * {
    background: #000000 !important;
    color: #ffffff !important;
}

body.high-contrast .phone-cta[style*="background"],
body.high-contrast .phone-cta[style*="color"] {
    background: #000000 !important;
    color: #ffffff !important;
}

/* Links styled as buttons: white text on black */
body.high-contrast a.btn,
body.high-contrast a.btn * {
    color: #ffffff !important;
}

body.high-contrast a.phone-cta,
body.high-contrast a.phone-cta * {
    color: #ffffff !important;
}

/* Language toggle in high contrast — include descendants */
body.high-contrast .lang-toggle,
body.high-contrast .lang-toggle * {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

body.high-contrast .lang-toggle:hover,
body.high-contrast .lang-toggle:hover * {
    background: #333333 !important;
    color: #ffffff !important;
}

body.high-contrast .lang-toggle svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Sticky sidebar in financial page */
body.high-contrast aside[style*="sticky"] > div,
body.high-contrast aside[style*="position"] > div,
body.high-contrast .financial-sidebar-inner {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    box-shadow: none !important;
}

body.high-contrast aside[style*="sticky"] h3,
body.high-contrast aside[style*="position"] h3,
body.high-contrast .financial-sidebar-inner h3 {
    color: #000000 !important;
}

body.high-contrast aside[style*="sticky"] h4,
body.high-contrast aside[style*="position"] h4 {
    color: #000000 !important;
}

body.high-contrast aside[style*="sticky"] p,
body.high-contrast aside[style*="position"] p,
body.high-contrast .financial-sidebar-inner p {
    color: #000000 !important;
    opacity: 1 !important;
}

body.high-contrast aside[style*="sticky"] div[style*="background"],
body.high-contrast aside[style*="position"] div[style*="background"],
body.high-contrast .financial-sidebar-list {
    background: #ffffff !important;
    border: 1px solid #000000 !important;
}

body.high-contrast aside[style*="sticky"] li[style*="border"],
body.high-contrast aside[style*="position"] li[style*="border"],
body.high-contrast .financial-sidebar-list li {
    border-bottom-color: #000000 !important;
}

body.high-contrast aside[style*="sticky"] svg,
body.high-contrast aside[style*="position"] svg,
body.high-contrast .financial-sidebar svg {
    color: #000000 !important;
    stroke: #000000 !important;
}

/* Payment method cards in financial page */
body.high-contrast div[style*="payment"],
body.high-contrast div[style*="slate-50"],
body.high-contrast .payment-method-card {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
}

body.high-contrast .payment-method-card span {
    color: #000000 !important;
}

body.high-contrast .payment-method-card svg {
    color: #000000 !important;
    stroke: #000000 !important;
}

/* Financial page headings in high contrast */
body.high-contrast .financial-subheading,
body.high-contrast .financial-subheading-sm {
    color: #000000 !important;
    border-bottom-color: #000000 !important;
}

body.high-contrast .financial-body {
    color: #000000 !important;
}

/* ============================================================
   prefers-contrast: more media query
   ============================================================ */

@media (prefers-contrast: more) {
    body {
        font-size: 18px;
    }

    a {
        text-decoration: underline;
    }

    .btn,
    .phone-cta {
        border: 2px solid currentColor;
    }

    .feature-card,
    .service-card,
    .faq-item {
        border-width: 2px;
    }

    :focus-visible {
        outline-width: 4px;
    }
}

/* ============================================================
   Office Photo Slideshow / Carousel
   ============================================================ */

.office-slideshow {
    padding: 0 0 5rem;
    background: var(--slate-50);
}

.slideshow-wrapper {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--slate-900);
}

/* Hero-embedded slideshow: soft glowing border that blends into the hero */
.slideshow-wrapper.hero-embedded {
    background: transparent;
    box-shadow:
        0 0 0 3px rgba(234, 88, 12, 0.6),
        0 0 0 6px rgba(234, 88, 12, 0.35),
        0 0 0 10px rgba(251, 191, 36, 0.2),
        0 0 32px 12px rgba(234, 88, 12, 0.35),
        0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Subtle pulsing glow animation on desktop */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
    .slideshow-wrapper.hero-embedded {
        animation: slideshow-glow 5s ease-in-out infinite;
    }

    @keyframes slideshow-glow {
        0%, 100% {
            box-shadow:
                0 0 0 3px rgba(234, 88, 12, 0.6),
                0 0 0 6px rgba(234, 88, 12, 0.35),
                0 0 0 10px rgba(251, 191, 36, 0.2),
                0 0 32px 12px rgba(234, 88, 12, 0.35),
                0 8px 32px rgba(0, 0, 0, 0.25);
        }
        50% {
            box-shadow:
                0 0 0 3px rgba(234, 88, 12, 0.7),
                0 0 0 6px rgba(234, 88, 12, 0.45),
                0 0 0 14px rgba(251, 191, 36, 0.3),
                0 0 40px 16px rgba(234, 88, 12, 0.4),
                0 8px 32px rgba(0, 0, 0, 0.25);
        }
    }
}

.slideshow-track {
    display: flex;
    width: 100%;
    transition: none;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
    visibility: hidden;
    z-index: 0;
}

.slideshow-slide.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    z-index: 1;
}

/* Image container: centered with dark fallback bg */
.slideshow-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-900);
    overflow: hidden;
}

/* Generic slideshow images: fill the frame */
.slideshow-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hero-embedded slideshow: fixed height so different image sizes don't cause hero resize */

/* Hero-embedded slide: solid dark bg so any uncovered edges are clean */
.hero-center-slideshow .slideshow-slide {
    background: var(--slate-900);
    overflow: hidden;
}

/* Hero-embedded image: contain = show full landscape photo, dark bars on edges */
.hero-center-slideshow .slideshow-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-center-slideshow .slideshow-wrapper {
    max-width: 100%;
    aspect-ratio: 16 / 9;
}

/* Standalone slideshow heights */
@media (max-width: 640px) {
    .slideshow-wrapper:not(.hero-embedded) .slideshow-slide {
        height: 20rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .slideshow-wrapper:not(.hero-embedded) .slideshow-slide {
        height: 36rem;
    }
}

@media (min-width: 1025px) {
    .slideshow-wrapper:not(.hero-embedded) .slideshow-slide {
        height: 32rem;
    }
}

/* Caption overlay — solid dark background for guaranteed readability */
.slideshow-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem 1.5rem;
    background: rgba(0, 0, 0, 0.72);
    color: var(--white);
    pointer-events: none;
}

.slideshow-caption p {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
    max-width: 36rem;
}

@media (max-width: 640px) {
    .slideshow-caption {
        padding: 2rem 1.25rem 1rem;
    }

    .slideshow-caption p {
        font-size: 0.9rem;
    }
}

/* High contrast overrides */
body.high-contrast .slideshow-wrapper {
    border: 2px solid var(--slate-900);
}

body.high-contrast .slideshow-caption {
    background: rgba(0, 0, 0, 0.88);
}

/* Reduced motion: disable transitions */
@media (prefers-reduced-motion: reduce) {
    .slideshow-slide {
        transition: none;
    }
}

/* ============================================================
   Team Photo Section
   ============================================================ */

.team-photos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .team-photos {
        grid-template-columns: 1.4fr 1fr;
        gap: 1.5rem;
    }
}

.team-photo-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 3 / 2;
}

.team-photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.team-photo-main:hover img {
    transform: scale(1.02);
}

.team-photo-secondary {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.team-photo-secondary:hover img {
    transform: scale(1.02);
}

/* High contrast overrides for gallery */
body.high-contrast .office-gallery-item {
    border: 2px solid var(--slate-900);
}

body.high-contrast .office-gallery-caption {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

body.high-contrast .team-photo-main,
body.high-contrast .team-photo-secondary {
    border: 2px solid var(--slate-900);
}

/* ============================================================
   Modern Polish Layer
   (added enhancements — all remain fully ADA compliant)
   ============================================================ */

/* ---- Scroll-reveal animations ---------------------------------
   Gated behind a `.js` class so:
   • No-JS users always see full content (never hidden).
   • prefers-reduced-motion users see content instantly, no motion.
   --------------------------------------------------------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}
.js .reveal.reveal-left  { transform: translateX(-28px); }
.js .reveal.reveal-right { transform: translateX(28px); }
.js .reveal.reveal-scale { transform: scale(0.94); }
.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---- Sticky header: frosted blur + shadow on scroll ---- */
.site-header {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    box-shadow: var(--shadow-md);
}

/* ---- Back-to-top floating button ---- */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.2s ease;
    z-index: 200;
}
.back-to-top:hover { background: var(--primary-dark); }
.back-to-top:focus-visible {
    outline: 3px solid var(--warning);
    outline-offset: 3px;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
    .back-to-top { right: 1rem; bottom: 1rem; }
}
body.high-contrast .back-to-top {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff;
}

/* ---- CTA banner: subtle modern depth + soft shimmer ----
   Decorative only; pointer-events none so it never blocks
   interaction, and content sits above it. */
.cta-banner {
    position: relative;
    overflow: hidden;
}
.cta-banner .container {
    position: relative;
    z-index: 1;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 420px at 12% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
        radial-gradient(circle 360px at 92% 100%, rgba(251, 191, 36, 0.28), transparent 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
    pointer-events: none;
}

/* ---- Feature card hover accent bar ---- */
.feature-card {
    position: relative;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--warning));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-card:hover::before { opacity: 1; }

/* ---- Reduced-motion overrides for all polish ---- */
@media (prefers-reduced-motion: reduce) {
    .js .reveal,
    .js .reveal.reveal-left,
    .js .reveal.reveal-right,
    .js .reveal.reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        transition-delay: 0s !important;
    }
    .site-header,
    .back-to-top,
    .feature-card,
    .feature-card::before {
        transition: none;
    }
    .cta-banner::before { display: none; }
}
