/* Flowblox-inspired UI — Montserrat, plain white theme */

:root {
    --bg-white: #ffffff;
    --bg-soft: #f7f7f7;
    --bg-tan: #e8e0d4;
    --bg-sage: #dce3d6;
    --bg-dark: #1a1a1a;
    --text-dark: #111111;
    --text-muted: #6b6b6b;
    --border: #ebebeb;
    --primary-color: #111111;
    --link-color: #111111;
    --footer-bg: #ffffff;
    --footer-text: #6b6b6b;
    --logo-max-height: 40px;
    --radius-lg: 28px;
    --radius-xl: 32px;
    --radius-pill: 50px;
    --font: 'Montserrat', system-ui, sans-serif;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    --site-max-width: 1140px;
    --site-content-width: 75%;
    --site-header-offset: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

body.site-page {
    font-family: var(--font);
    background: var(--bg-soft);
    color: var(--text-dark);
    line-height: 1.65;
    padding-top: var(--site-header-offset, 80px);
    -webkit-font-smoothing: antialiased;
}

/* ── Header: Logo left, menus right ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 0;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-brand {
    text-decoration: none;
    color: var(--text-dark);
    flex-shrink: 0;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-logo {
    max-height: var(--logo-max-height, 40px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    align-items: center;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 0.85rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--text-dark); }

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    background: var(--primary-color, var(--bg-dark));
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.btn-nav-cta:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.nav-toggle {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.25rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.nav-toggle.is-active {
    transform: rotate(90deg);
}

.nav-menu-mobile {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid transparent;
    flex-direction: column;
    gap: 0;
    background: var(--bg-white, #ffffff);
    display: flex;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
        max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease,
        transform 0.35s ease,
        margin 0.35s ease,
        padding 0.35s ease,
        border-color 0.35s ease,
        visibility 0s linear 0.45s;
}

.nav-menu-mobile.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
        max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease,
        transform 0.35s ease,
        margin 0.35s ease,
        padding 0.35s ease,
        border-color 0.35s ease,
        visibility 0s linear 0s;
}

.nav-menu-mobile.open > li {
    animation: mobileNavItemIn 0.35s ease both;
}

.nav-menu-mobile.open > li:nth-child(1) { animation-delay: 0.03s; }
.nav-menu-mobile.open > li:nth-child(2) { animation-delay: 0.06s; }
.nav-menu-mobile.open > li:nth-child(3) { animation-delay: 0.09s; }
.nav-menu-mobile.open > li:nth-child(4) { animation-delay: 0.12s; }
.nav-menu-mobile.open > li:nth-child(5) { animation-delay: 0.15s; }
.nav-menu-mobile.open > li:nth-child(6) { animation-delay: 0.18s; }

@keyframes mobileNavItemIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .nav-menu-mobile.open {
        position: fixed;
        top: var(--site-header-offset, 80px);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: none;
        min-height: calc(100vh - var(--site-header-offset, 80px));
        min-height: calc(100dvh - var(--site-header-offset, 80px));
        margin: 0;
        padding: 0.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--border);
        border-radius: 0;
        background: var(--bg-white, #ffffff);
        box-shadow: none;
        z-index: 999;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu-mobile.open > li {
        width: 100%;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    body.mobile-nav-open .site-header {
        background: var(--bg-white, #ffffff);
        backdrop-filter: none;
    }
}

@media (max-width: 991px) {
    body.site-page[data-frontend-ui="futuristic"].mobile-nav-open .site-header,
    body.site-page[data-frontend-ui="futuristic"] .nav-menu-mobile.open {
        background: #0f172a;
    }

    body.site-page[data-frontend-ui="futuristic"] .nav-menu-mobile.open {
        border-top-color: rgba(34, 211, 238, 0.28);
    }
}

@media (min-width: 992px) {
    .nav-menu-mobile {
        display: none !important;
    }
}

.nav-menu-mobile a {
    display: block;
    width: 100%;
    padding: 0.85rem 0.25rem;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-menu-mobile a.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--primary-color, var(--bg-dark));
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
}

.nav-menu-mobile a.btn-nav-cta:hover,
.nav-menu-mobile a.btn-nav-cta:focus {
    color: #fff;
}

.btn-nav-cta-mobile {
    margin-top: 0.75rem;
    text-align: center;
}

/* ── Buttons ── */
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.15rem 0.85rem 1.65rem;
    background: var(--primary-color, var(--bg-dark));
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: #fff;
}

.btn-pill-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* ── Home Slider ── */
.home-slider {
    width: var(--site-content-width, 75%);
    max-width: var(--site-content-width, 75%);
    margin-left: auto;
    margin-right: auto;
    margin-top: calc(-1 * var(--site-header-offset, 80px));
    padding-top: var(--site-header-offset, 80px);
    background: var(--bg-white);
}

.home-slider .carousel {
    max-width: var(--slider-width, 100%);
    width: 100%;
    margin: 0 auto;
}

.home-slider .carousel-inner,
.home-slider .carousel-item {
    height: var(--slider-height, 550px);
}

.home-slider .carousel-item {
    position: relative;
    overflow: hidden;
    background: var(--bg-soft);
}

.home-slider-link {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    cursor: pointer;
}

.home-slider-img {
    width: 100%;
    height: 100%;
    object-fit: var(--slider-fit, cover);
    display: block;
    background: var(--bg-soft);
}

.home-slider-caption {
    bottom: 2.5rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(720px, 90%);
    text-align: center;
    padding-bottom: 0;
    z-index: 3;
    pointer-events: none;
}

.home-slider-caption a,
.home-slider-caption button {
    pointer-events: auto;
}

.home-slider-caption h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.home-slider-caption p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.btn-pill-light {
    background: #fff;
    color: var(--text-dark);
}

.btn-pill-light:hover {
    background: #f0f0f0;
    color: var(--text-dark);
}

/* ── Hero Flowblox ── */
.hero-flow {
    padding: 3rem 0 2rem;
    background: var(--bg-white);
    overflow: hidden;
}

.hero-copy { max-width: 720px; margin: 0 auto 2.5rem; }

.hero-headline {
    font-size: clamp(2.2rem, 5.5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.hero-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 1.75rem;
    line-height: 1.7;
}

/* Curved arc gallery */
.hero-arc {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0.65rem;
    perspective: 1400px;
    min-height: 320px;
    padding: 1rem 0 2rem;
    margin-bottom: 1rem;
}

.arc-card {
    flex-shrink: 0;
    width: 130px;
    height: 190px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--bg-soft);
}

.arc-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arc-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #efefef, #e0e0e0);
}

.arc-card[data-pos="0"]  { transform: rotateY(18deg) scale(1.02); width: 145px; height: 210px; }
.arc-card[data-pos="-1"] { transform: rotateY(10deg) scale(0.94); opacity: 0.92; }
.arc-card[data-pos="1"]  { transform: rotateY(-10deg) scale(0.94); opacity: 0.92; }
.arc-card[data-pos="-2"] { transform: rotateY(20deg) scale(0.86); opacity: 0.78; }
.arc-card[data-pos="2"]  { transform: rotateY(-20deg) scale(0.86); opacity: 0.78; }
.arc-card[data-pos="-3"] { transform: rotateY(26deg) scale(0.78); opacity: 0.6; }
.arc-card[data-pos="3"]  { transform: rotateY(-26deg) scale(0.78); opacity: 0.6; }
.arc-card[data-pos="-4"] { transform: rotateY(30deg) scale(0.72); opacity: 0.45; }
.arc-card[data-pos="4"]  { transform: rotateY(-30deg) scale(0.72); opacity: 0.45; }

/* Hero 3-col features */
.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.hero-feature h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-feature p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.hero-feature-stat {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
}

/* ── Counters ── */
.section-counters {
    padding: 4rem 0;
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-counters .container {
    width: 100%;
    max-width: 100%;
    padding-left: clamp(1rem, 3vw, 2rem);
    padding-right: clamp(1rem, 3vw, 2rem);
}

.counter-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 2rem 1.5rem;
    width: 100%;
    text-align: center;
}

.counter-item {
    flex: 1 1 140px;
    min-width: 120px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.counter-stat {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.1em;
    line-height: 1.1;
}

.counter-suffix {
    font-size: 0.72em;
    font-weight: 600;
    color: var(--text-muted);
}

.counter-value {
    font-size: 2.75rem;
    font-weight: 700;
    display: inline;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.counter-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    font-weight: 500;
}

/* ── Section typography ── */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.section-desc {
    max-width: 620px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1rem;
}

.section-intro { margin-bottom: 3rem; }

/* ── Bento Grid ── */
.section-bento {
    padding: 5rem 0;
    background: var(--bg-white);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 1.25rem;
}

.bento-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 240px;
}

.bento-large { grid-column: span 2; }
.bento-small { grid-column: span 1; }

.bento-img-overlay .bento-bg {
    position: absolute;
    inset: 0;
}

.bento-img-overlay .bento-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.55));
    pointer-events: none;
}

.bento-img-overlay .bento-content { color: #fff; }

.bento-solid-light { background: var(--bg-soft); }
.bento-solid-tan { background: var(--bg-tan); }
.bento-solid-dark {
    background: #2d3b2d;
    color: #fff;
    display: flex;
    align-items: stretch;
}

.bento-solid-dark .bento-content { color: #fff; }
.bento-solid-dark .bento-content p { color: rgba(255, 255, 255, 0.75); }

.bento-person {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 55%;
    height: 100%;
    overflow: hidden;
}

.bento-person img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.75rem;
    z-index: 2;
}

.bento-solid-light .bento-content,
.bento-solid-tan .bento-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-solid-dark .bento-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 55%;
    padding: 2rem;
}

.bento-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.bento-content p {
    font-size: 0.875rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.bento-bg { cursor: zoom-in; }

/* ── CTA & Results ── */
.section-cta {
    padding: 4rem 0;
    text-align: center;
    background: var(--bg-white);
}

.section-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-cta p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.section-results {
    padding: 5rem 0 0;
    background: #ffffff;
    border-top: 1px solid var(--border);
}

.results-image-wrap {
    margin-top: 3rem;
    padding: 0 1.5rem 0;
}

.results-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    display: block;
}

/* ── Page Banners ── */
.page-banner {
    padding: 5rem 0 3.5rem;
    margin-top: -80px;
    padding-top: calc(5rem + 80px);
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    background-size: cover;
    background-position: center;
}

.page-banner-wide {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: var(--banner-height, 420px);
    margin-top: -80px;
    padding-top: 80px;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.page-banner-wide .banner-overlay-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(var(--banner-height, 420px) - 80px);
    padding: 1rem 0;
}

.page-banner-wide .banner-overlay-panel {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    color: var(--text-dark);
}

.page-banner-wide.has-overlay-box .banner-overlay-panel {
    min-height: var(--overlay-box-height, 200px);
    background: rgba(255, 255, 255, var(--overlay-opacity, 0.9));
}

.page-banner-wide.no-overlay-box .banner-overlay-panel {
    background: transparent;
}

.page-banner-bottom {
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid var(--border);
    border-bottom: none;
}

.banner-bottom-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.page-banner-sm {
    padding: 4rem 0 3rem;
    padding-top: calc(4rem + 80px);
}

.page-banner-sm .banner-overlay-wrap {
    background: rgba(255, 255, 255, 0.88);
    margin: -4rem 0 -3rem;
    padding: 4rem 0 3rem;
    color: var(--text-dark);
}

.page-banner h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.page-banner p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0.75rem auto 0;
}

/* ── About ── */
.section-about-text { padding: 4rem 0; }

.about-text-block {
    max-width: var(--about-paragraph-width, 720px);
    margin: 0 auto 2.5rem;
    text-align: center;
}

.about-text-block p {
    color: var(--text-muted);
    font-size: 1rem;
}

.section-about-gallery { padding: 3rem 0 4rem; }

.about-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.about-gallery-item { text-align: center; }

.about-gallery-item .zoomable {
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 1;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
}

.about-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.about-gallery-item:hover img { transform: scale(1.04); }

.about-gallery-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.about-gallery-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.about-module { padding: 3rem 0; }
.about-module-paragraphs { padding: 4rem 0 2rem; }

.section-about-boxes {
    padding: 2.5rem 0 1.5rem;
}

.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 2rem auto 0;
}

.about-feature-box {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: var(--about-box-height, 180px);
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    overflow: hidden;
}

.about-feature-box-heading {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    flex-shrink: 0;
}

.about-feature-box-body {
    flex: 1;
    min-height: var(--about-box-height, 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-feature-box--has-heading .about-feature-box-body {
    min-height: calc(var(--about-box-height, 180px) - 2rem);
}

.about-feature-box--text .about-feature-box-body {
    align-items: center;
    padding: 0.25rem 0.5rem;
}

.about-feature-box--image .about-feature-box-body {
    padding: 0;
}

.about-feature-box--image {
    padding: 0;
}

.about-feature-box-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
}

.about-feature-box--image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

.about-feature-box--text {
    padding: 0;
}

.about-feature-text {
    width: 100%;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: var(--about-line-height, 1.65);
}

.about-text-align-left { justify-content: flex-start; text-align: left; }
.about-text-align-center { justify-content: center; text-align: center; }
.about-text-align-right { justify-content: flex-end; text-align: right; }

@media (max-width: 767.98px) {
    .about-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* About page common line spacing */
.page-about .about-paragraph,
.page-about .about-text-block p,
.page-about .about-feature-text,
.page-home .about-paragraph,
.page-home .about-text-block p,
.page-home .about-feature-text,
.page-services .about-paragraph,
.page-services .about-text-block p,
.page-services .about-feature-text,
.page-gallery .about-paragraph,
.page-gallery .about-text-block p {
    line-height: var(--about-line-height, 1.65);
}

/* Certifications marquee */
.section-about-cert-marquee {
    padding: 2.5rem 0 3rem;
    overflow: hidden;
}

.about-cert-marquee {
    margin-top: 2rem;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.about-cert-marquee-track {
    display: flex;
    width: max-content;
    animation: about-cert-marquee 35s linear infinite;
}

.about-cert-marquee:hover .about-cert-marquee-track {
    animation-play-state: paused;
}

.about-cert-marquee-group {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-right: 2.5rem;
    flex-shrink: 0;
}

.about-cert-marquee-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    min-width: 120px;
}

.about-cert-marquee-item img {
    display: block;
    max-height: 90px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes about-cert-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .about-cert-marquee-track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
    }

    .about-cert-marquee-group[aria-hidden="true"] {
        display: none;
    }

    .about-cert-marquee {
        mask-image: none;
        -webkit-mask-image: none;
    }
}

.section-about-video { padding: 2rem 0 1.5rem; }

.about-video-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.about-video-box {
    width: 100%;
    margin: 0 auto;
}

.about-video-play {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    background: #000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.about-video-play img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-video-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    transition: background 0.2s;
}

.about-video-play:hover .about-video-play-icon {
    background: rgba(0, 0, 0, 0.4);
}

.about-video-play-icon i {
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: #fff;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.about-video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.about-video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.section-about-brochure {
    padding: 1rem 0 2.5rem;
}

.about-brochure-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
}

.about-brochure-btn i {
    font-size: 1.1rem;
}

.about-paragraph {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.about-infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-infrastructure-item { text-align: center; }

.about-infrastructure-item .zoomable {
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    background: #fff;
}

.about-infrastructure-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.about-infrastructure-item:hover img { transform: scale(1.04); }

.about-infrastructure-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.about-infrastructure-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.section-about-recent-works {
    padding: 2.5rem 0 3rem;
    overflow: hidden;
}

.about-recent-works-marquee {
    margin-top: 2rem;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.about-recent-works-marquee-track {
    display: flex;
    width: max-content;
    animation: about-recent-works-marquee 40s linear infinite;
}

.about-recent-works-marquee:hover .about-recent-works-marquee-track {
    animation-play-state: paused;
}

.about-recent-works-marquee-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-right: 1.5rem;
    flex-shrink: 0;
}

.about-recent-works-marquee-item {
    flex: 0 0 auto;
    width: clamp(140px, 16vw, 200px);
}

.about-recent-works-box {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: zoom-in;
    border: none;
    background: #e8e8e8;
    display: block;
    line-height: 0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.about-recent-works-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft, 0 12px 40px rgba(0, 0, 0, 0.08));
}

.about-recent-works-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@keyframes about-recent-works-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .about-recent-works-marquee-track {
        animation: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        justify-content: flex-start;
        gap: 1.5rem;
        padding-bottom: 0.5rem;
        scroll-snap-type: x mandatory;
    }

    .about-recent-works-marquee-group[aria-hidden="true"] {
        display: none;
    }

    .about-recent-works-marquee {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .about-recent-works-marquee-item {
        scroll-snap-align: start;
    }
}

.about-recent-works-cta {
    margin-top: 2.25rem;
}

.about-recent-works-btn {
    min-width: 220px;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
}

/* About team carousel */
.section-about-team {
    --team-scale: 1.2;
    padding: calc(3rem * var(--team-scale)) 0 calc(3.5rem * var(--team-scale));
    overflow: hidden;
}

.about-team-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.35rem, 2vw, 1rem);
    margin-top: calc(1.5rem * var(--team-scale));
    max-width: calc(980px * var(--team-scale));
    margin-left: auto;
    margin-right: auto;
}

.about-team-viewport {
    flex: 1;
    overflow: hidden;
    padding: calc(1rem * var(--team-scale)) 0;
}

.about-team-track {
    --team-card-width: clamp(180px, 21.6vw, 252px);
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 3.6vw, 2.4rem);
    min-height: 456px;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.about-team-carousel--single .about-team-track {
    justify-content: center;
    min-height: 408px;
}

.about-team-card {
    flex: 0 0 var(--team-card-width);
    width: var(--team-card-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.55s ease, opacity 0.55s ease;
}

.about-team-card.is-center {
    transform: scale(1.2);
    filter: none;
    opacity: 1;
    z-index: 2;
}

.about-team-card.is-side {
    transform: scale(1);
    filter: blur(4px);
    opacity: 0.92;
    cursor: pointer;
}

.about-team-card.is-side:hover {
    opacity: 0.98;
}

.about-team-card.is-far {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.about-team-photo {
    width: 100%;
    height: clamp(204px, 26.4vw, 276px);
    border-radius: calc(16px * var(--team-scale));
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: calc(0.5rem * var(--team-scale));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
}

.about-team-photo img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.about-team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.7rem;
    color: #bbb;
}

.about-team-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.14rem;
    line-height: 1.25;
}

.about-team-designation {
    color: var(--text-muted);
    font-size: 0.91rem;
    margin-bottom: 0.1rem;
    line-height: 1.3;
}

.about-team-mobile {
    margin-bottom: 0.18rem;
    font-size: 0.86rem;
    line-height: 1.25;
}

.about-team-mobile a {
    color: var(--text-muted);
    text-decoration: none;
}

.about-team-description {
    color: #8a8a8a;
    font-size: 0.84rem;
    line-height: 1.35;
    margin: 0;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.about-team-card.is-center .about-team-name {
    font-size: 1.14rem;
}

.about-team-card.is-center .about-team-description {
    max-width: calc(var(--team-card-width) * 1.15);
}

.about-team-nav {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fafafa;
    color: #aaa;
    font-size: 0.78rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.about-team-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.about-team-nav:not(:disabled):hover {
    background: #f3f3f3;
    border-color: #ccc;
    color: #777;
}

@media (max-width: 767.98px) {
    .about-team-carousel {
        gap: 0.25rem;
    }

    .about-team-nav {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 0.72rem;
    }

    .about-team-track {
        --team-card-width: clamp(142px, 36vw, 192px);
        gap: 0.9rem;
        min-height: 384px;
    }

    .about-team-photo {
        height: clamp(156px, 33.6vw, 204px);
    }

    .about-team-name {
        font-size: 0.94rem;
    }

    .about-team-designation,
    .about-team-mobile,
    .about-team-description {
        font-size: 0.79rem;
    }
}

.section-about-logos {
    padding: 2.5rem 0 3.5rem;
    width: 100%;
}

.about-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem 2rem;
    width: 100%;
    max-width: 100%;
    margin: 2rem auto 0;
    align-items: center;
    justify-items: center;
}

.about-logo-card {
    margin: 0;
    width: 100%;
    max-width: 220px;
    text-align: center;
}

.about-logo-card img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    margin: 0 auto;
}

.about-logo-card figcaption {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.3;
}

.about-small-logos .about-logo-card {
    max-width: 180px;
}

.about-small-logos .about-logo-card img {
    max-width: 160px;
    max-height: 90px;
}

@media (max-width: 575.98px) {
    .about-logos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* ── Shared product card image frame (Services + Gallery) ── */
.card-image-frame {
    position: relative;
    height: 300px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.image-frame-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #ffffff;
}

.card-image-frame img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .card-image-frame img {
    transform: scale(1.06);
}

.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ccc;
    font-size: 2.5rem;
    background: #ffffff;
}

.image-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    color: var(--text-dark);
    font-size: 1.75rem;
    pointer-events: none;
}

.card-image-frame:hover .image-hover-overlay { opacity: 1; }

.card-body-content {
    padding: 1.25rem 1.5rem 1.5rem;
    background: #ffffff;
}

.card-body-content h3,
.card-body-content .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    line-height: 1.3;
    color: var(--text-dark);
}

.card-subtitle,
.card-body-content .card-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0 0 0.4rem;
}

.card-desc,
.card-body-content .card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

.card-body-content .card-category {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

/* ── Services grid ── */
.section-services {
    padding: 4rem 0 5rem;
    background: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card,
.product-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* ── Contact ── */
.section-contact { padding: 4rem 0 5rem; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 46px;
    height: 46px;
    background: var(--bg-dark);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.contact-item p { margin: 0; color: var(--text-muted); }
.contact-phone-lines { display: flex; flex-direction: column; gap: 0.45rem; }
.contact-phone-line { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: baseline; }
.contact-phone-label { font-weight: 600; color: var(--text-dark); }
.contact-item a { color: var(--text-dark); text-decoration: none; }

.btn-whatsapp-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.btn-whatsapp-contact:hover { color: #fff; opacity: 0.92; }

.contact-form-wrap {
    width: 100%;
}

.contact-form-card,
.contact-form-success {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-form-card h3,
.contact-form-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-form-intro {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.contact-lead-form .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-lead-form .form-control {
    border-radius: 12px;
    border-color: var(--border);
    padding: 0.75rem 0.9rem;
}

.contact-lead-form .form-control:focus {
    border-color: var(--text-dark);
    box-shadow: 0 0 0 0.15rem rgba(17, 17, 17, 0.08);
}

.contact-phone-fields {
    display: flex;
    gap: 0.65rem;
    align-items: stretch;
}

.contact-phone-code-wrap {
    position: relative;
    flex: 0 0 92px;
}

.contact-phone-plus {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 600;
    pointer-events: none;
}

.contact-phone-code {
    padding-left: 1.65rem;
}

.contact-phone-number {
    flex: 1 1 auto;
}

.contact-phone-error {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: #b42318;
}

.contact-phone-fields .form-control.is-invalid {
    border-color: #b42318;
}

.contact-form-success {
    text-align: center;
}

.contact-form-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.12);
    color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.contact-form-success p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.contact-form-success-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.contact-form-whatsapp,
.contact-form-mail {
    margin-top: 0;
}

.btn-mail-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--text-dark);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
}

.btn-mail-contact:hover { color: #fff; opacity: 0.92; }

.map-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-wrapper iframe { display: block; width: 100%; }

/* ── Floating action button ── */
.site-floating-action {
    position: fixed;
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 1040;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    font-size: 1.35rem;
    line-height: 1;
    transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.site-floating-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.site-floating-action--whatsapp {
    background: #25D366;
    color: #fff;
}

.site-floating-action--whatsapp:hover {
    color: #fff;
}

.site-floating-action--top {
    background: var(--primary-color, var(--bg-dark));
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
}

.site-floating-action--top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 575.98px) {
    .site-floating-action {
        right: 1rem;
        bottom: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* ── Footer ── */
.site-footer {
    background: var(--footer-bg, var(--bg-white));
    color: var(--footer-text, var(--text-muted));
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.45rem; }

.footer-legal-item {
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
}

.footer-legal-item + .footer-legal-item {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.footer-col a {
    color: var(--link-color, var(--text-muted));
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition);
}

.footer-col a:hover { color: var(--primary-color, var(--text-dark)); }

.footer-col p {
    font-size: 0.875rem;
    margin-bottom: 0.45rem;
}

.footer-social {
    margin-top: 1.25rem;
}

.footer-social h4 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    color: var(--footer-text, var(--text-muted));
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.04);
    color: var(--footer-text, var(--text-muted));
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.footer-social-btn:hover {
    color: var(--primary-color, var(--text-dark));
    background: rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--footer-text, var(--text-muted));
}

/* Theme — content links */
.site-page .section-about-text a,
.site-page .about-text-block a,
.site-page .contact-item a,
.site-page .hero-lead a,
.site-page .section-desc a {
    color: var(--link-color, var(--text-dark));
}

.site-page .section-about-text a:hover,
.site-page .about-text-block a:hover,
.site-page .contact-item a:hover {
    color: var(--primary-color, var(--text-dark));
}

/* ── Zoom Lightbox ── */
.zoom-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.zoom-lightbox.active { display: flex; }

.zoom-lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 12px;
    animation: zoomIn 0.3s ease;
}

.zoom-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ── Site content width (75% centered frame, all themes) ── */
body.site-page .site-header {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: var(--site-content-width, 75%);
    max-width: var(--site-content-width, 75%);
}

body.site-page .site-footer,
body.site-page section,
body.site-page .page-banner,
body.site-page .page-banner-wide {
    width: var(--site-content-width, 75%);
    max-width: var(--site-content-width, 75%);
    margin-left: auto;
    margin-right: auto;
}

body.site-page .site-header,
body.site-page .site-footer,
body.site-page .home-slider {
    background-color: var(--bg-white);
}

body.site-page.site-full-width {
    background: var(--bg-white);
}

body.site-page.site-full-width .site-header {
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: none;
}

body.site-page.site-full-width .site-footer,
body.site-page.site-full-width section,
body.site-page.site-full-width .page-banner,
body.site-page.site-full-width .page-banner-wide {
    width: 100%;
    max-width: none;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    /* 75% centered frame is desktop-only; fill the viewport on mobile/tablet */
    body.site-page {
        --site-content-width: 100%;
    }

    body.site-page:not(.site-full-width) .site-header {
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: none;
    }

    body.site-page:not(.site-full-width) .site-footer,
    body.site-page:not(.site-full-width) section,
    body.site-page:not(.site-full-width) .page-banner,
    body.site-page:not(.site-full-width) .page-banner-wide,
    body.site-page:not(.site-full-width) .home-slider {
        width: 100%;
        max-width: none;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-large,
    .bento-small { grid-column: span 1; }

    .bento-card { min-height: 220px; }

    .hero-features { grid-template-columns: 1fr; gap: 1.5rem; }

    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    body.site-page {
        padding-top: 72px;
        --site-header-offset: 72px;
    }

    /* Counter strip — single column, centered, readable size on mobile */
    body.site-page .section-counters {
        width: min(88%, 340px);
        max-width: min(88%, 340px);
        margin-left: auto;
        margin-right: auto;
        padding: 2.25rem 1rem;
        border-radius: var(--radius-lg);
    }

    .section-counters .container {
        padding-left: 0;
        padding-right: 0;
    }

    .counter-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.85rem;
        width: 100%;
    }

    .counter-item {
        flex: none;
        min-width: 0;
        max-width: 100%;
        width: 100%;
        padding: 0.5rem 0;
    }

    .counter-value {
        font-size: clamp(2rem, 8vw, 2.5rem);
        white-space: nowrap;
    }

    .counter-suffix {
        font-size: 0.65em;
    }

    .counter-label {
        font-size: 0.85rem;
        line-height: 1.35;
        margin-top: 0.4rem;
    }

    body.site-page[data-frontend-ui="modern"] .section-counters,
    body.site-page[data-frontend-ui="modern-minimalist"] .section-counters,
    body.site-page[data-frontend-ui="classical-modern"] .section-counters,
    body.site-page[data-frontend-ui="futuristic"] .section-counters {
        width: min(88%, 340px);
        max-width: min(88%, 340px);
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-slider .carousel,
    .home-slider .carousel-inner,
    .home-slider .carousel-item {
        width: 100%;
        max-width: 100%;
    }

    .home-slider .carousel-inner,
    .home-slider .carousel-item {
        height: clamp(200px, 52vw, min(var(--slider-height, 550px), 420px));
    }

    .home-slider-caption {
        bottom: 1rem;
        width: min(94%, 720px);
    }

    .home-slider-caption h2 {
        font-size: clamp(1.05rem, 4.8vw, 1.45rem);
        margin-bottom: 0.35rem;
    }

    .home-slider-caption p {
        font-size: 0.85rem;
        margin-bottom: 0.65rem;
    }

    .home-slider .carousel-control-prev,
    .home-slider .carousel-control-next {
        width: 12%;
    }

    .card-image-frame { height: 260px; }

    .hero-arc { min-height: 240px; gap: 0.4rem; }

    .arc-card { width: 80px !important; height: 120px !important; }

    .arc-card[data-pos="0"] { width: 95px !important; height: 140px !important; }

    .services-grid { grid-template-columns: 1fr; }

    .section-bento,
    .section-cta,
    .section-results,
    .page-banner {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .page-banner-wide {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .contact-phone-fields {
        flex-direction: column;
        align-items: stretch;
    }

    .about-recent-works-btn {
        min-width: 0;
        width: 100%;
        max-width: 280px;
    }
}
