:root {
    --ds-accent: #c8102e;
    --ds-accent-hover: #a30d25;
    --ds-dark: #1a1a1a;
    --ds-muted: #5c6570;
    --ds-bg: #f7f6f3;
    --ds-surface: #ffffff;
    --ds-border: #e4e1db;
    --ds-font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ds-font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
}

body {
    font-family: var(--ds-font-sans);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 0;
    color: var(--ds-dark);
    background: var(--ds-surface);
}

@media (max-width: 991.98px) {
    body.has-mobile-cta {
        padding-bottom: 4.5rem;
    }
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 2000;
    background: #fff;
    color: #000;
    padding: 0.5rem 1rem;
}

.skip-link:focus {
    left: 0;
}

.site-header .navbar-brand {
    letter-spacing: 0.02em;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.site-logo--combo .site-logo__img {
    max-height: 42px;
}

.site-logo__text {
    font-family: var(--ds-font-display);
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--ds-dark);
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.site-logo__img {
    display: block;
    max-height: 80px;
    width: auto;
}

.site-header .navbar {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.site-header .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ds-dark) !important;
    letter-spacing: 0.02em;
}

.site-header .nav-link.active,
.site-header .nav-link:hover {
    color: var(--ds-accent) !important;
}

.header-contact-link {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--ds-dark);
    white-space: nowrap;
}

.header-contact-link:hover {
    color: var(--ds-accent);
}

.btn-accent {
    background-color: var(--ds-accent);
    border-color: var(--ds-accent);
    color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--ds-accent-hover);
    border-color: var(--ds-accent-hover);
    color: #fff;
}

.hero {
    position: relative;
    z-index: 0;
    min-height: 62vh;
    display: flex;
    align-items: center;
    color: #fff;
    background: var(--ds-dark);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}

.hero--parallax .hero__bg {
    height: 150%;
    top: -25%;
    transform: translate3d(0, var(--hero-parallax-y, 0), 0);
    will-change: transform;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
}

.gallery-card {
    border: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.gallery-filters .nav-link {
    color: var(--ds-dark);
    border-radius: 2rem;
    margin: 0.15rem;
}

.gallery-filters .nav-link.active {
    background-color: var(--ds-accent);
    color: #fff;
}

.testimonial-card {
    height: 100%;
}

.testimonial-card .card-img-top {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.sign-type-card {
    overflow: hidden;
}

.sign-type-card .card-img-top {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
}

.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(26, 26, 26, 0.95);
    z-index: 1030;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2147483600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox[hidden] {
    display: none !important;
}

.lightbox-image {
    max-width: min(96vw, 1200px);
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}

.section-title {
    font-weight: 700;
}

.contact-strip {
    background: #f8f9fa;
}

.admin-sidebar .nav-link.active {
    font-weight: 600;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Header scroll state */
.site-header {
    transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.site-header.is-scrolled .navbar {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    transition: padding 0.25s ease;
}

/* Interactive cards */
.interactive-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform: perspective(800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.interactive-card:hover {
    transform: perspective(800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}

.gallery-card {
    cursor: zoom-in;
}

.gallery-card:focus-visible {
    outline: 2px solid var(--ds-accent);
    outline-offset: 3px;
}

/* Homepage recent work carousel */
.recent-work-carousel {
    position: relative;
    padding: 0 3rem 2.25rem;
    perspective: 1000px;
    perspective-origin: 50% 32%;
    transform-style: preserve-3d;
    overflow: hidden;
}

.recent-work-carousel .carousel-inner {
    position: relative;
    min-height: 20rem;
    max-width: min(52rem, 100%);
    margin-inline: auto;
}

.recent-work-carousel .carousel-item {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 0.6rem, -320px) scale(0.62);
    transform-origin: center center;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.7s ease, filter 0.7s ease;
    filter: saturate(0.7) brightness(0.62);
}

.recent-work-carousel .carousel-item.is-prev,
.recent-work-carousel .carousel-item.active,
.recent-work-carousel .carousel-item.is-next {
    opacity: 1;
    pointer-events: auto;
}

.recent-work-carousel .carousel-item.is-prev-2,
.recent-work-carousel .carousel-item.is-next-2 {
    opacity: 0;
    pointer-events: none;
}

.recent-work-carousel .carousel-item.is-prev,
.recent-work-carousel .carousel-item.is-next {
    z-index: 4;
    filter: saturate(0.86) brightness(0.8);
}

.recent-work-carousel .carousel-item.is-prev {
    transform: translate3d(-30%, 0.45rem, -165px) rotateY(40deg) scale(0.8);
}

.recent-work-carousel .carousel-item.is-next {
    transform: translate3d(30%, 0.45rem, -165px) rotateY(-40deg) scale(0.8);
}

.recent-work-carousel .carousel-item.active {
    transform: translate3d(0, -0.12rem, 72px) rotateY(0deg) scale(1.08);
    z-index: 12;
    filter: saturate(1) brightness(1);
}

.recent-work-carousel__card {
    display: block;
    position: relative;
    width: min(100%, 27rem);
    max-width: calc(100% - 0.5rem);
    margin-inline: auto;
    box-shadow: 0 0.7rem 1.6rem rgba(0, 0, 0, 0.28);
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.7s ease, filter 0.7s ease;
    will-change: transform, box-shadow, filter;
    border-radius: 0.4rem;
    overflow: hidden;
}

.recent-work-carousel .carousel-item.is-prev .recent-work-carousel__card,
.recent-work-carousel .carousel-item.is-next .recent-work-carousel__card {
    filter: brightness(0.85) saturate(0.9);
    box-shadow: 0 1rem 1.9rem rgba(0, 0, 0, 0.34);
}

.recent-work-carousel .carousel-item.is-prev-2 .recent-work-carousel__card,
.recent-work-carousel .carousel-item.is-next-2 .recent-work-carousel__card {
    filter: brightness(0.68) saturate(0.8);
    box-shadow: 0 0.75rem 1.35rem rgba(0, 0, 0, 0.32);
}

.recent-work-carousel .carousel-item.active .recent-work-carousel__card {
    box-shadow: 0 2.2rem 4.7rem rgba(0, 0, 0, 0.46);
}

.recent-work-carousel .carousel-item.active .recent-work-carousel__card::after {
    content: "";
    position: absolute;
    inset: auto 7% -22% 7%;
    height: 2.1rem;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0) 72%);
    pointer-events: none;
}

.recent-work-carousel .carousel-control-prev,
.recent-work-carousel .carousel-control-next {
    width: 3.25rem;
    z-index: 16;
}

@media (min-width: 576px) {
    .recent-work-carousel .carousel-control-prev {
        left: max(0.75rem, calc(50% - 27.5rem));
    }

    .recent-work-carousel .carousel-control-next {
        right: max(0.75rem, calc(50% - 27.5rem));
    }
}

.recent-work-carousel .carousel-control-prev-icon,
.recent-work-carousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    background-size: 70% 70%;
}

.recent-work-carousel .carousel-indicators {
    margin-bottom: -0.5rem;
}

.recent-work-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--ds-accent);
}

@media (max-width: 575.98px) {
    .recent-work-carousel {
        padding-inline: 2.25rem;
    }

    .recent-work-carousel .carousel-inner {
        max-width: 100%;
    }

    .recent-work-carousel__card {
        width: min(100%, 19.5rem);
    }
}

/* Gallery filter fade speed (e.g. 0.5s, 1s, 1.5s) — also set data-filter-ms on #gallery-grid */
#gallery-grid {
    --gallery-filter-duration: 0.6s;
}

@keyframes gallery-filter-hide {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.96);
    }
}

@keyframes gallery-filter-show {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#gallery-grid [data-category] {
    opacity: 1;
    transform: scale(1);
    overflow: hidden;
}

#gallery-grid [data-category].gallery-filter-hide {
    animation: gallery-filter-hide var(--gallery-filter-duration) ease forwards;
    pointer-events: none;
}

#gallery-grid [data-category].gallery-filter-show {
    animation: gallery-filter-show var(--gallery-filter-duration) ease forwards;
    pointer-events: none;
}

#gallery-grid [data-category].d-none {
    display: none !important;
}

/* Lightbox */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
    opacity: 0.35;
    cursor: default;
}

.lightbox-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    max-width: min(90vw, 640px);
    margin: 0;
    font-size: 0.95rem;
}

.lightbox-counter {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
}

/* Social icon buttons (header + footer) */
.social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-links__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    background: transparent;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-links__link:hover,
.social-links__link:focus-visible {
    background: var(--ds-accent);
    border-color: var(--ds-accent);
    color: #fff;
    transform: translateY(-1px);
}

.social-links__icon {
    width: 1.05rem;
    height: 1.05rem;
    fill: currentColor;
}

.social-links--header .social-links__link {
    width: 2.15rem;
    height: 2.15rem;
}

.social-links--header .social-links__icon {
    width: 0.95rem;
    height: 0.95rem;
}

.header-actions .social-links {
    margin-inline-end: 0;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1025;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 50%;
    background: var(--ds-accent);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.has-mobile-cta .back-to-top.is-visible {
    bottom: 5rem;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: var(--ds-accent-hover);
}

.contact-map {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.contact-map iframe {
    border: 0;
}

.partners-strip {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.partners-strip__label {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.partners-strip__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 3.5rem;
}

.partners-strip__list img {
    display: block;
    max-height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    opacity: 0.9;
}

@media (max-width: 575.98px) {
    .partners-strip__list {
        gap: 1.5rem 2rem;
    }

    .partners-strip__list img {
        max-height: 40px;
        max-width: 120px;
    }
}

/* Accessibility page modes (toolbar chrome lives in a11y.css) */
html {
    font-size: calc(100% * var(--a11y-font-scale, 1));
}

html.a11y-grayscale {
    filter: grayscale(1);
}

html.a11y-high-contrast,
html.a11y-high-contrast body {
    background: #000 !important;
    color: #ff0 !important;
}

html.a11y-high-contrast a {
    color: #0ff !important;
}

html.a11y-high-contrast .site-header,
html.a11y-high-contrast .site-footer,
html.a11y-high-contrast .navbar,
html.a11y-high-contrast .card,
html.a11y-high-contrast .hero,
html.a11y-high-contrast .bg-light,
html.a11y-high-contrast .bg-white,
html.a11y-high-contrast .bg-dark {
    background: #000 !important;
    color: #ff0 !important;
    border-color: #ff0 !important;
}

html.a11y-negative-contrast {
    filter: invert(1) hue-rotate(180deg);
}

html.a11y-negative-contrast img,
html.a11y-negative-contrast video,
html.a11y-negative-contrast .hero__bg {
    filter: invert(1) hue-rotate(180deg);
}

html.a11y-light-background,
html.a11y-light-background body {
    background: #fff !important;
    color: #000 !important;
}

html.a11y-light-background .site-header .navbar,
html.a11y-light-background .site-footer,
html.a11y-light-background .hero,
html.a11y-light-background .bg-dark {
    background: #f5f5f5 !important;
    color: #000 !important;
}

/* Hero photo/gradient stay dark — hide them so light mode is actually light */
html.a11y-light-background .hero__bg {
    visibility: hidden !important;
}

html.a11y-light-background .hero::before {
    display: none !important;
}

html.a11y-light-background a,
html.a11y-light-background .nav-link,
html.a11y-light-background .navbar-brand,
html.a11y-light-background .link-light {
    color: #000 !important;
}

/* Buttons: blanket link color made outline/accent unreadable */
html.a11y-light-background .btn-accent,
html.a11y-light-background .btn-accent:hover,
html.a11y-light-background .btn-accent:focus {
    color: #fff !important;
    background-color: #c8102e !important;
    border-color: #c8102e !important;
}

html.a11y-light-background .btn-outline-light,
html.a11y-light-background .btn-outline-light:hover,
html.a11y-light-background .btn-outline-light:focus {
    color: #111 !important;
    background-color: #fff !important;
    border-color: #111 !important;
}

html.a11y-light-background .social-links__link {
    color: #111 !important;
    border-color: #111 !important;
    background: transparent !important;
}

html.a11y-light-background .social-links__link:hover,
html.a11y-light-background .social-links__link:focus-visible {
    color: #fff !important;
    background: #c8102e !important;
    border-color: #c8102e !important;
}

html.a11y-links-underline a {
    text-decoration: underline !important;
    text-underline-offset: 0.15em;
}

html.a11y-readable-font,
html.a11y-readable-font body,
html.a11y-readable-font button,
html.a11y-readable-font input,
html.a11y-readable-font select,
html.a11y-readable-font textarea {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: 0.02em;
}

html.a11y-line-height body,
html.a11y-line-height p,
html.a11y-line-height li,
html.a11y-line-height .lead {
    line-height: 1.9 !important;
}

html.a11y-text-align body,
html.a11y-text-align p,
html.a11y-text-align li,
html.a11y-text-align h1,
html.a11y-text-align h2,
html.a11y-text-align h3,
html.a11y-text-align h4,
html.a11y-text-align h5,
html.a11y-text-align h6 {
    text-align: left !important;
}

html.a11y-hide-images img,
html.a11y-hide-images picture,
html.a11y-hide-images .hero__bg,
html.a11y-hide-images .card-img-top {
    visibility: hidden !important;
}

html.a11y-pause-animations *,
html.a11y-pause-animations *::before,
html.a11y-pause-animations *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

html.a11y-keyboard-nav a:focus,
html.a11y-keyboard-nav button:focus,
html.a11y-keyboard-nav input:focus,
html.a11y-keyboard-nav select:focus,
html.a11y-keyboard-nav textarea:focus,
html.a11y-keyboard-nav [tabindex]:focus {
    outline: 3px solid #c8102e !important;
    outline-offset: 3px !important;
}

/* —— Allen-inspired redesign sections —— */

.section-title {
    font-family: var(--ds-font-display);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--ds-dark);
}

.page-hero--light {
    color: var(--ds-dark);
    background: var(--ds-bg);
    border-bottom: 1px solid var(--ds-border);
}

.page-hero--image {
    min-height: 42vh;
    display: flex;
    align-items: flex-end;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.page-hero--image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.about-header-strip__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 2px;
}

.intro-video,
.hero-video {
    z-index: 1;
}


.tracking-wide {
    letter-spacing: 0.12em;
}

.service-card,
.service-pillar {
    display: block;
    padding: 1.35rem 1.25rem;
    background: var(--ds-surface);
    border: 1px solid var(--ds-border);
    border-radius: 2px;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    border-color: var(--ds-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    color: inherit;
}

.service-area-map {
    width: 100%;
    min-height: 320px;
    height: 360px;
    border: 1px solid var(--ds-border);
    border-radius: 2px;
    background: #e9ecef;
    overflow: hidden;
}

.service-area-map--image {
    height: auto;
    min-height: 0;
}

.service-area-map--image img {
    display: block;
    width: 100%;
    height: auto;
}

.service-area-map--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(200, 16, 46, 0.08), transparent),
        #eceae4;
}

.service-area-map__fallback-inner {
    text-align: center;
    padding: 1.5rem;
    max-width: 18rem;
}

.product-card {
    border: 1px solid var(--ds-border);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    border-color: var(--ds-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.product-card__media img,
.product-card .card-img-top {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.gallery-filters .nav-link {
    border-radius: 2px;
    color: var(--ds-dark);
    border: 1px solid var(--ds-border);
    margin: 0 0.35rem 0.35rem 0;
}

.gallery-filters .nav-link.active {
    background: var(--ds-accent);
    border-color: var(--ds-accent);
}

.site-footer {
    margin-top: auto;
}

.bg-light {
    background-color: var(--ds-bg) !important;
}