/*
 * Best Lift — main.css
 * Purpose: Shared layout + all public pages (header, footer, nav, page sections)
 * Phase ref: Phase 1-3
 *
 * Raw/vanilla CSS, no utility framework (Section 2: Styling Approach).
 * Mobile-first: base styles target mobile, breakpoints add tablet/desktop.
 */

/* ---------------------------------------------------------------------
 * Reset & base
 * ------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-body);
    background: var(--color-bg-white);
}

body.lang-bn {
    font-family: var(--font-family-bn);
}

h1, h2, h3, h4 {
    color: var(--color-text-heading);
    line-height: var(--line-height-heading);
    margin: 0 0 var(--space-sm);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }

p { margin: 0 0 var(--space-sm); }

a {
    color: var(--color-primary);
    text-decoration: none;
}

img { max-width: 100%; display: block; }

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

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* ---------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
}

.btn--accent {
    background: var(--color-accent);
    color: var(--color-text-on-accent);
    outline: none;
    box-shadow: none;
}

.btn--accent:focus,
.btn--accent:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 130, 71, 0.35); /* soft green focus ring instead of browser default */
}

/* ---------------------------------------------------------------------
 * Header & nav
 * ------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease;
}

/* main.js adds this once window.scrollY passes a small threshold —
   gives the sticky header a slightly stronger shadow once content
   is scrolling underneath it. */
.site-header.is-scrolled {
    box-shadow: var(--shadow-md);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding-top: var(--space-xs);
    padding-bottom: var(--space-xs);
}

.site-nav__list {
    display: none; /* hidden on mobile — hamburger menu wired up in main.js */
    gap: var(--space-md);
}

.site-nav__list li a {
    color: var(--color-text-heading);
    font-weight: 500;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Mobile hamburger toggle — main.js injects this button into
   .site-header__inner (right before .site-header__actions) and
   toggles .site-nav.is-open. Only shown below the 1024px
   breakpoint where .site-nav__list is display:none by default. */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: var(--space-xs);
    background: transparent;
    border: none;
    cursor: pointer;
    order: 2;
}

.nav-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Scroll lock while the mobile nav drawer is open (main.js adds this
   class to <body> alongside .site-nav.is-open). */
body.nav-open {
    overflow: hidden;
}

.lang-toggle {
    font-weight: 600;
    color: var(--color-primary);
}

/* ---------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------- */
.hero {
    position: relative;
    background: var(--color-midnight);
    color: var(--color-text-on-primary);
    overflow: hidden;
    --hero-parallax-offset: 0px; /* set by animations.js on scroll */
}

.hero__slide {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
}

/* When index.php renders the dynamic slider (multiple DB slides), the
   slides live inside .hero__slider and need to stack for crossfade.
   The single static fallback hero__slide (no .hero__slider wrapper) is
   untouched by this rule and keeps its normal flow layout above. */
.hero__slider {
    position: relative;
    min-height: 60vh;
}

.hero__slider .hero__slide {
    position: absolute;
    inset: 0;
    min-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
}

.hero__slider .hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero__slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transform: translateY(var(--hero-parallax-offset));
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .hero__slide-image {
        transform: none;
    }
}

.hero__slide-content {
    position: relative;
    z-index: 1;
    padding: var(--space-lg) var(--space-sm);
    max-width: 700px;
}

.hero__slide-content h1,
.hero__slide-content h2 {
    color: var(--color-text-on-primary);
}

.hero__maintenance-badge {
    position: relative;
    z-index: 1;
    background: var(--color-accent);
    color: var(--color-text-on-accent);
    padding: var(--space-sm);
    text-align: center;
    font-size: var(--font-size-sm);
}

/* ---------------------------------------------------------------------
 * Product highlights
 * ------------------------------------------------------------------- */
.product-highlights {
    padding: var(--space-xl) 0;
    text-align: center;
}

.product-highlights__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    text-align: left;
}

.product-highlights__card {
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

/* ---------------------------------------------------------------------
 * Consultation banner
 * ------------------------------------------------------------------- */
.consultation-banner {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    padding: var(--space-xl) 0;
    text-align: center;
}

.consultation-banner h2 {
    color: var(--color-text-on-primary);
}

/* ---------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------- */
.site-footer {
    background: var(--color-midnight);
    color: var(--color-bg-light);
    padding-top: var(--space-xl);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
}

.site-footer h4 {
    color: var(--color-bg-white);
}

.site-footer a {
    color: var(--color-bg-light);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-sm) var(--space-sm);
    font-size: var(--font-size-sm);
    text-align: center;
}

/* ---------------------------------------------------------------------
 * WhatsApp floating widget
 * ------------------------------------------------------------------- */
.whatsapp-widget {
    position: fixed;
    right: var(--space-sm);
    bottom: var(--space-sm);
    z-index: var(--z-whatsapp-widget);
    background: var(--color-accent);
    color: var(--color-text-on-accent);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

/* ---------------------------------------------------------------------
 * Blog (task 3.3) — listing grid, cards, pagination, single post
 * ------------------------------------------------------------------- */
.blog-listing {
    padding: var(--space-xl) 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.blog-card {
    display: block;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    color: inherit;
}

.blog-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card__body {
    padding: var(--space-sm);
}

.blog-card__body h2 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-xs);
}

.blog-card__meta {
    font-size: var(--font-size-sm);
    color: var(--color-text-body);
    margin: 0;
}

.blog-pagination {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
    margin-top: var(--space-lg);
}

.blog-pagination__link {
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--color-bg-light);
    font-weight: 600;
}

.blog-pagination__link.is-active {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
}

.blog-post,
.blog-post-not-found {
    padding: var(--space-xl) 0;
    max-width: 780px;
}

.blog-post__meta {
    color: var(--color-text-body);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
}

.blog-post__image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.blog-post__content {
    line-height: var(--line-height-base);
}

.blog-post__content p {
    margin-bottom: var(--space-sm);
}

/* ---------------------------------------------------------------------
 * Products (task 3.7) — listing, category filter, before/after
 * comparison slider
 * ------------------------------------------------------------------- */
.product-listing {
    padding: var(--space-xl) 0;
}

.product-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin: var(--space-md) 0 var(--space-lg);
}

.product-filter__link {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--color-bg-light);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.product-filter__link.is-active {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.product-card {
    display: block;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    color: inherit;
}

.product-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card__body {
    padding: var(--space-sm);
}

.product-card__body h2 {
    font-size: var(--font-size-lg);
    margin: var(--space-xs) 0;
}

.product-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-text-on-accent);
    border-radius: var(--radius-sm);
    padding: 2px 10px;
    font-size: var(--font-size-sm);
    font-weight: 700;
}

.product-detail {
    padding: var(--space-xl) 0;
    max-width: 900px;
}

.product-detail__body {
    margin-top: var(--space-lg);
}

/* Before/After comparison slider — see main.js's initBeforeAfterSliders() */
.before-after {
    margin: var(--space-md) 0;
}

.before-after__frame {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.before-after__base {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-after__overlay {
    position: absolute;
    inset: 0;
}

.before-after__divider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-bg-white);
    transform: translateX(-50%);
    pointer-events: none;
}

.before-after__label {
    position: absolute;
    top: var(--space-xs);
    background: rgba(13, 2, 26, 0.6);
    color: var(--color-bg-white);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    pointer-events: none;
}

.before-after__label--before {
    left: var(--space-xs);
}

.before-after__label--after {
    right: var(--space-xs);
}

.before-after__slider {
    width: 100%;
    margin-top: var(--space-xs);
}

/* ---------------------------------------------------------------------
 * Breakpoints
 * ------------------------------------------------------------------- */
@media (min-width: 768px) {
    .product-highlights__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

@media (min-width: 1024px) {
    .site-nav__list {
        display: flex;
    }

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

    .site-footer__inner {
        grid-template-columns: repeat(5, 1fr);
    }

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

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* ---------------------------------------------------------------------
 * About Us (task 3.13) — v4 design pass (styling only, markup unchanged)
 * Order: hero + owners (one soft gradient block) -> who we are / why us
 *        -> mission & vision (dark band) -> what we do -> how we work
 * Section backgrounds are set explicitly with .about-page so they do not
 * depend on any generic alternating-section rule.
 * ------------------------------------------------------------------- */
.about-page {
    --about-tint: rgba(75, 0, 114, 0.05);
    --about-line: rgba(13, 2, 26, 0.08);
}

/* ---- Hero (plain background; owners section follows directly) ----
 * Hero motion (shimmer, entrance) lives in animations.css; this block is
 * only the static look so the page still looks right with motion turned off. */
.about-page .about-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--space-xl) + 1rem) 0 var(--space-lg);
    background: var(--color-bg-light);
    text-align: center;
}

.about-page .about-hero .container {
    position: relative;
}

.about-page .about-hero h1 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--color-primary);
    background: linear-gradient(90deg, var(--color-primary) 0%, #7a1fa8 35%, var(--color-accent) 65%, var(--color-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-page .about-hero h1::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin: var(--space-sm) auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
    background-size: 200% auto;
    -webkit-text-fill-color: initial;
}

/* intro paragraph sits in a frosted panel */
.about-page .about-hero__lede {
    max-width: 740px;
    margin: var(--space-md) auto 0;
    padding: var(--space-md) var(--space-lg);
    font-size: 1.08rem;
    line-height: 1.8;
    color: #4A3D55;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(75, 0, 114, 0.10);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 30px rgba(75, 0, 114, 0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

@media (max-width: 767px) {
    .about-page .about-hero__lede {
        padding: var(--space-sm) var(--space-md);
        font-size: 1rem;
    }
}

.about-page .about-owners {
    padding: var(--space-md) 0 var(--space-xl);
    background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg-white) 100%);
}

/* ---- Shared section title ---- */
.about-section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
}

.about-section-title::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin: var(--space-xs) auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

/* ---- Owners ---- */
/* Leadership layout: the FIRST owner (Managing Director, lowest sort_order)
 * sits alone on the top row, centered and slightly larger; everyone else
 * follows in rows of 3 below. Tablet = 2 per row, mobile = 1 per row. */
.about-owners__grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    gap: var(--space-lg) var(--space-md);
}

@media (min-width: 640px) {
    .about-owners__grid {
        grid-template-columns: repeat(2, minmax(0, 340px));
    }
}

@media (min-width: 1024px) {
    .about-owners__grid {
        grid-template-columns: repeat(3, minmax(0, 340px));
    }
}

.about-owners__grid > .owner-card:first-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 400px;
}

/* Card = purple banner (same look as the page hero) + photo overlapping it.
 * Sizes are variables so the lead card can just override them. */
.owner-card {
    --owner-banner-h: 100px;
    --owner-photo: 124px;

    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    width: 100%;
    padding: 0 var(--space-md) var(--space-lg);
    background: var(--color-bg-white);
    border: 1px solid var(--about-line);
    border-radius: 24px;
    box-shadow: 0 14px 36px rgba(75, 0, 114, 0.10);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.owner-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--owner-banner-h);
    background:
        radial-gradient(70% 140% at 100% 0%, rgba(18, 160, 90, 0.55) 0%, rgba(18, 160, 90, 0) 65%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 48px),
        linear-gradient(125deg, #2A0042 0%, #4B0072 55%, #5E1A8C 100%);
    background-size: 100% 100%, 48px 100%, 100% 100%;
}

/* thin green accent line under the banner */
.owner-card::after {
    content: "";
    position: absolute;
    top: var(--owner-banner-h);
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), #38F09A 50%, var(--color-accent));
    opacity: 0.9;
}

.owner-card:hover {
    transform: translateY(-6px);
    border-color: rgba(75, 0, 114, 0.22);
    box-shadow: 0 22px 48px rgba(75, 0, 114, 0.18);
}

.owner-card__photo {
    position: relative;
    z-index: 1;
    display: block;
    flex: none;
    width: var(--owner-photo);
    height: var(--owner-photo);
    margin: calc(var(--owner-banner-h) - var(--owner-photo) / 2) auto var(--space-sm);
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-bg-white);
    box-shadow: 0 0 0 3px var(--color-accent), 0 10px 24px rgba(13, 2, 26, 0.22);
    transition: transform 0.3s ease;
}

.owner-card:hover .owner-card__photo {
    transform: scale(1.05);
}

.owner-card__photo--initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), #8a2bbd);
    color: var(--color-text-on-primary);
    font-size: 2.8rem;
    font-weight: 700;
}

.owner-card__name {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--color-text-heading);
}

.owner-card__role {
    display: inline-block;
    margin-bottom: var(--space-sm);
    padding: 0.3rem 1rem;
    border-radius: 999px;
    background: rgba(15, 130, 71, 0.10);
    color: var(--color-accent);
    font-size: var(--font-size-sm);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.owner-card__bio {
    margin-bottom: var(--space-sm);
    color: var(--color-text-body);
    line-height: 1.7;
}

.owner-card__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    margin: auto 0 0;
    padding-top: var(--space-sm);
    border-top: 1px dashed var(--about-line);
    font-size: var(--font-size-sm);
}

.owner-card__contact a {
    color: var(--color-primary);
    font-weight: 600;
    word-break: break-word;
}

.owner-card__contact a:hover {
    color: var(--color-accent);
}

/* Role badge gets a small status dot */
.owner-card__role::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
    opacity: 0.8;
}

/* Short divider between name and role */
.owner-card__name::after {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    margin: 0.55rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0.55;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.owner-card:hover .owner-card__name::after {
    width: 48px;
    opacity: 1;
}

.owner-card__name {
    margin-bottom: 0.7rem;
}

/* Initial avatars: slightly different tint per card so they do not look identical */
.owner-card:nth-child(3n + 2) .owner-card__photo--initial {
    background: linear-gradient(135deg, #0B6B3A, #17C46E);
}
.owner-card:nth-child(3n + 3) .owner-card__photo--initial {
    background: linear-gradient(135deg, #2A0042, #6a1b9a);
}

/* Banner rails drift on hover (elevator cables moving) */
@keyframes owner-rails {
    from { background-position: 0 0, 0 0, 0 0; }
    to   { background-position: 0 0, 48px 0, 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
    .owner-card:hover::before {
        animation: owner-rails 2.4s linear infinite;
    }
}

/* ---- Lead card (Managing Director): bigger, solid green role badge ---- */
.about-owners__grid > .owner-card:first-child {
    --owner-banner-h: 124px;
    --owner-photo: 156px;
    padding-bottom: calc(var(--space-lg) + 0.25rem);
    box-shadow: 0 18px 44px rgba(75, 0, 114, 0.16);
}

/* double ring around the lead photo */
.about-owners__grid > .owner-card:first-child .owner-card__photo {
    box-shadow:
        0 0 0 3px var(--color-accent),
        0 0 0 10px rgba(15, 130, 71, 0.14),
        0 12px 28px rgba(13, 2, 26, 0.26);
}

.about-owners__grid > .owner-card:first-child .owner-card__name {
    font-size: 1.45rem;
}

.about-owners__grid > .owner-card:first-child .owner-card__role {
    background: linear-gradient(135deg, #17C46E, var(--color-accent));
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(15, 130, 71, 0.28);
}

/* ---- Employees (below Leadership Team) ----
 * Same cards as the owners, but every card is the same size: no lead card.
 * Mobile = 1 per row, tablet = 2, desktop = 3, centered. */
.about-page .about-employees {
    padding-top: 0;
}

.about-employees__grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    gap: var(--space-lg) var(--space-md);
}

@media (min-width: 640px) {
    .about-employees__grid {
        grid-template-columns: repeat(2, minmax(0, 340px));
    }
}

@media (min-width: 1024px) {
    .about-employees__grid {
        grid-template-columns: repeat(3, minmax(0, 340px));
    }
}

/* ---- Who we are + Why choose us ---- */
.about-page .about-overview {
    padding: var(--space-xl) 0;
    background: var(--color-bg-white);
}

.about-overview__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.about-overview__block h2 {
    margin-bottom: var(--space-sm);
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
}

.about-overview__block:not(.about-overview__block--highlight) p {
    line-height: 1.8;
}

.about-overview__block--highlight {
    background: linear-gradient(180deg, #FBF8FD 0%, var(--color-bg-white) 100%);
    border: 1px solid var(--about-line);
    border-top: 4px solid var(--color-accent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-md) var(--space-md) var(--space-sm);
}

.about-badges {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-badges__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--about-line);
}

.about-badges__item:last-child {
    border-bottom: 0;
}

.about-badges__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-text-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 0 0 4px rgba(15, 130, 71, 0.12);
}

/* ---- Shared card ---- */
.about-card {
    background: var(--color-bg-white);
    border: 1px solid var(--about-line);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    min-width: 0;
    overflow-wrap: anywhere;
}

.about-card h2,
.about-card h3 {
    margin-bottom: var(--space-xs);
}

.about-mission__grid,
.about-services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

/* ---- Mission & Vision: dark band with glass cards ---- */
.about-page .about-mission {
    padding: var(--space-xl) 0;
    background:
        radial-gradient(50% 90% at 100% 0%, rgba(15, 130, 71, 0.28), transparent 60%),
        linear-gradient(135deg, var(--color-midnight) 0%, var(--color-primary) 100%);
}

.about-card--feature {
    position: relative;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 4px solid var(--color-accent);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.about-card--feature + .about-card--feature {
    border-top-color: #B98AD6;
}

.about-card--feature h2 {
    color: var(--color-text-on-primary);
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

.about-card--feature p {
    margin: 0;
    line-height: 1.8;
}

/* ---- What we do: numbered cards ---- */
.about-page .about-services {
    padding: var(--space-xl) 0;
    background: var(--color-bg-white);
}

.about-services__grid {
    counter-reset: about-service;
}

.about-services__grid .about-card {
    counter-increment: about-service;
    position: relative;
    padding: var(--space-lg) var(--space-md) var(--space-md);
    text-align: left;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-services__grid .about-card::before {
    content: counter(about-service, decimal-leading-zero);
    position: absolute;
    top: 0.55rem;
    right: 0.9rem;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(75, 0, 114, 0.08);
}

.about-services__grid .about-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0.25);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.about-services__grid .about-card:hover {
    transform: translateY(-4px);
    border-color: rgba(75, 0, 114, 0.22);
    box-shadow: var(--shadow-md);
}

.about-services__grid .about-card:hover::after {
    transform: scaleX(1);
}

.about-services__grid .about-card h3 {
    color: var(--color-primary);
}

.about-services__grid .about-card p {
    margin: 0;
}

/* ---- How we work ---- */
.about-page .about-process {
    padding: var(--space-xl) 0;
    background: linear-gradient(180deg, var(--color-bg-light) 0%, #F3ECF8 100%);
}

.about-steps {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.about-steps__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.about-steps__num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #7a1fa8);
    color: var(--color-text-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 0 0 5px rgba(75, 0, 114, 0.12), 0 6px 14px rgba(75, 0, 114, 0.25);
}

.about-steps__item h3 {
    margin-bottom: 0.2rem;
}

.about-steps__item p {
    margin: 0;
}

@media (min-width: 768px) {
    .about-overview__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
    .about-mission__grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .about-steps {
        max-width: none;
        flex-direction: row;
        gap: var(--space-md);
        position: relative;
    }

    /* dashed connector behind the numbered circles */
    .about-steps::before {
        content: "";
        position: absolute;
        top: 20px;
        left: 12%;
        right: 12%;
        border-top: 2px dashed rgba(75, 0, 114, 0.28);
    }

    .about-steps__item {
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
    }
}

@media (prefers-reduced-motion: reduce) {
    .owner-card,
    .about-services__grid .about-card,
    .about-services__grid .about-card::after {
        transition: none;
    }
    .owner-card:hover,
    .about-services__grid .about-card:hover {
        transform: none;
    }
}

/* ---------------------------------------------------------------------
 * Legal pages — Privacy Policy / Terms of Service (task 3.14)
 * ------------------------------------------------------------------- */
.legal-page {
    padding: var(--space-xl) 0;
}

.legal-page__inner {
    max-width: 780px;
}

.legal-page__updated {
    color: var(--color-text-body);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-lg);
}

.legal-page h2 {
    margin-top: var(--space-lg);
}

/* ---------------------------------------------------------------------
 * Projects (task 3.11) — hero, search filter, map + gallery layout
 * ------------------------------------------------------------------- */
.projects-hero {
    padding: var(--space-xl) 0 var(--space-lg);
    background: var(--color-bg-light);
    text-align: center;
}

.projects-listing {
    padding: var(--space-lg) 0 var(--space-xl);
}

.projects-filter {
    margin-bottom: var(--space-md);
}

.projects-filter__input {
    width: 100%;
    max-width: 420px;
    padding: 0.6rem 0.9rem;
    border: 1px solid #d9d9d9;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--font-size-base);
}

.projects-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.projects-map {
    height: 320px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.project-card {
    display: block;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}

.project-card:hover {
    box-shadow: var(--shadow-md);
}

.project-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-card__body {
    padding: var(--space-sm);
}

.project-card__body h2 {
    font-size: var(--font-size-lg);
    margin-bottom: 4px;
}

.project-card__location {
    font-size: var(--font-size-sm);
    color: var(--color-text-body);
    margin-bottom: var(--space-xs);
}

.project-card__desc {
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

.projects-empty {
    text-align: center;
    padding: var(--space-lg) 0;
    color: var(--color-text-body);
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-layout {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .projects-map {
        height: 560px;
        position: sticky;
        top: calc(var(--space-md) + 72px); /* clears the sticky site-header */
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 560px;
        overflow-y: auto;
        padding-right: 4px;
    }
}

/* ---------------------------------------------------------------------
 * Floating WhatsApp & Emergency widget (task 5.5)
 * Two-button upgrade of the Phase 2 single .whatsapp-widget button.
 * Stacks vertically bottom-right, clear of the Digital Elevator Control
 * Panel (which owns the bottom bar on mobile / right-edge sidebar on
 * desktop — this widget sits further down/inset so the two never overlap).
 * ------------------------------------------------------------------- */
.emergency-widget {
    position: fixed;
    right: var(--space-sm);
    bottom: var(--space-sm);
    z-index: var(--z-whatsapp-widget);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    align-items: flex-end;
}

.emergency-widget__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: var(--font-size-sm);
    box-shadow: var(--shadow-md);
    transition: transform 0.15s ease;
}

.emergency-widget__btn:hover {
    transform: translateY(-2px);
}

.emergency-widget__btn--whatsapp {
    background: var(--color-accent);
    color: var(--color-text-on-accent);
}

.emergency-widget__btn--emergency {
    background: var(--color-danger);
    color: #FFFFFF;
}

.emergency-widget__icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* On small screens, the Digital Elevator Control Panel takes the bottom
   bar — nudge this widget up so it floats above it instead of overlapping. */
@media (max-width: 1023px) {
    .emergency-widget {
        bottom: calc(var(--space-sm) + 56px);
    }
}
/* ---------------------------------------------------------------------
 * 404 Page (task 7.6)
 * Reuses .container / .btn / .btn--accent / .btn--outline already
 * defined above — only the page-specific layout is new here.
 * ------------------------------------------------------------------- */
.error-page__hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: var(--space-xl) 0;
}

.error-page__inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.error-page__code {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin: 0 0 var(--space-xs);
    color: var(--color-accent);
    letter-spacing: -0.02em;
}

.error-page__lede {
    color: var(--color-text-body);
    margin-bottom: var(--space-lg);
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.error-page__links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-md);
    justify-content: center;
    padding: 0;
    margin: 0;
    font-size: var(--font-size-sm);
}

.error-page__links a {
    color: var(--color-primary);
    font-weight: 600;
}

/* =====================================================================
 * v37 CLASSIC — Header + Footer (replaces the bolder v36 block)
 * Flat surfaces, thin borders, serif footer headings, underline hovers.
 * NOTE: keep .site-header free of backdrop-filter / transform /
 * perspective — they would break the fixed mobile nav drawer.
 * ===================================================================== */

:root {
    --font-family-nav: 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
}

/* Bangla pages: Montserrat has no Bengali glyphs, use the Bangla stack */
body.lang-bn .topbar,
body.lang-bn .site-nav__list li a,
body.lang-bn .lang-toggle {
    font-family: var(--font-family-bn);
}

/* ---------- Top info bar ---------- */
.topbar {
    background: var(--color-midnight);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-family-nav);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
}

.topbar__msg {
    font-weight: 500;
}

.topbar__links {
    display: none;
}

.topbar__links a {
    color: inherit;
    transition: color 0.2s ease;
}

.topbar__links a:hover,
.topbar__links a:focus-visible {
    color: #8FE0B5;
}

.topbar__links a + a {
    margin-left: var(--space-sm);
    padding-left: var(--space-sm);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}

@media (min-width: 768px) {
    .topbar__inner { justify-content: space-between; }
    .topbar__links { display: flex; align-items: center; }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF6FD 100%);
    border-bottom: 1px solid #E6DDEC;
    box-shadow: inset 0 1px 0 #FFFFFF, 0 6px 18px rgba(13, 2, 26, 0.10), 0 1px 3px rgba(13, 2, 26, 0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: inset 0 1px 0 #FFFFFF, 0 10px 26px rgba(13, 2, 26, 0.16), 0 2px 5px rgba(13, 2, 26, 0.10);
}

.site-header__progress {          /* thin scroll-progress line */
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--color-accent);
    transform-origin: left center;
    transform: scaleX(var(--scroll-progress, 0));
}

.site-header__inner {
    min-height: 78px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    transition: min-height 0.3s ease;
}

.site-header.is-scrolled .site-header__inner {
    min-height: 64px;
}

.site-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header__logo img {
    height: 70px;
    width: auto;
    max-width: none;
    display: block;
    object-fit: contain;
    transition: height 0.3s ease, opacity 0.2s ease;
}

.site-header.is-scrolled .site-header__logo img {
    height: 56px;
}

.site-header__logo:hover img {
    opacity: 0.85;
}

/* ---------- Nav: underline on hover ---------- */
.site-nav__list {
    gap: var(--space-md);
}

.site-nav__list li a {
    position: relative;
    display: block;
    padding: 0.5rem 0.1rem;
    font-family: var(--font-family-nav);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-heading);
    text-shadow: 0 1px 0 #FFFFFF, 0 2px 4px rgba(75, 0, 114, 0.18);
    transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
}

.site-nav__list li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    box-shadow: 0 3px 6px rgba(75, 0, 114, 0.35);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.site-nav__list li a:hover,
.site-nav__list li a:focus-visible,
.site-nav__list li a.is-current {
    color: var(--color-primary);
}

.site-nav__list li a:hover,
.site-nav__list li a:focus-visible {
    transform: translateY(-2px);
    text-shadow: 0 1px 0 #FFFFFF, 0 4px 8px rgba(75, 0, 114, 0.30);
}

.site-nav__list li a:hover::after,
.site-nav__list li a:focus-visible::after,
.site-nav__list li a.is-current::after {
    transform: scaleX(1);
}

/* ---------- Language button: simple outline ---------- */
.lang-toggle {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1.5px solid var(--color-primary);
    border-radius: 4px;
    font-family: var(--font-family-nav);
    font-weight: 700;
    color: var(--color-primary);
    background: #FFFFFF;
    box-shadow: 0 3px 0 rgba(75, 0, 114, 0.22), 0 6px 12px rgba(75, 0, 114, 0.14);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 0 #2E0045, 0 10px 18px rgba(75, 0, 114, 0.30);
}

.lang-toggle:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #2E0045;
}

/* ---------- Mobile hamburger + drawer ---------- */
.nav-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid #D9CFE0;
    border-radius: 6px;
    background: var(--color-bg-white);
}

@media (max-width: 767px) {
    .topbar { font-size: 0.72rem; }
    .site-header__inner { min-height: 64px; }
    .site-header.is-scrolled .site-header__inner { min-height: 56px; }
    .site-header__logo img { height: 52px; }
    .site-header.is-scrolled .site-header__logo img { height: 46px; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-midnight);
    color: rgba(248, 249, 250, 0.78);
    padding-top: var(--space-xl);
    border-top: 3px solid var(--color-accent);
}

.site-footer__inner {
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
}

@media (min-width: 1024px) {
    .site-footer__inner {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1.4fr;
    }
}

.site-footer a {
    color: rgba(248, 249, 250, 0.78);
    transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #8FE0B5;
}

.site-footer h4 {
    margin-bottom: var(--space-sm);
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-bg-white);
}

.site-footer__col {
    min-width: 0;
}

/* Brand column: logo sits on a plain white panel so purple stays readable */
.site-footer__logo {
    display: inline-block;
    margin-bottom: var(--space-sm);
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--color-bg-white);
}

.site-footer__logo img {
    height: 76px;
    width: auto;
    display: block;
}

.site-footer__badges {
    margin-top: var(--space-sm);
    display: grid;
    gap: 0.35rem;
    font-size: 0.85rem;
}

.site-footer__badges li {
    color: #8FE0B5;
}

.site-footer__badges li::before {
    content: "✓";
    margin-right: 0.5rem;
    font-weight: 700;
}

/* Link lists */
.site-footer__links li a {
    display: inline-block;
    padding: 0.25rem 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__links li a:hover,
.site-footer__links li a:focus-visible {
    transform: translateX(4px);
}

/* Contact column */
.site-footer__contact {
    font-style: normal;
    display: grid;
    gap: 0.75rem;
}

.site-footer__contact > div {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    overflow-wrap: anywhere;
}

.site-footer__contact svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: #8FE0B5;
}

/* Bottom bar */
.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    text-align: left;
}

.site-footer__bottom p {
    margin: 0;
}

.elevator-up-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    color: rgba(248, 249, 250, 0.9);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.elevator-up-btn:hover,
.elevator-up-btn:focus-visible {
    background: var(--color-bg-white);
    border-color: var(--color-bg-white);
    color: var(--color-primary);
}

@media (max-width: 767px) {
    .site-footer__bottom { justify-content: center; text-align: center; }
    .site-footer__logo img { height: 64px; }
}

/* =====================================================================
 * v39 SIZE POLISH — final sizing pass for header + footer.
 * Kept as the LAST block on purpose: it overrides earlier values, and its
 * own mobile rules sit at the very end so they beat the desktop ones above.
 * ===================================================================== */

/* ---------- Header ---------- */
.topbar { font-size: 0.8rem; }
.topbar__inner { min-height: 36px; }

.site-header__inner { min-height: 92px; }
.site-header.is-scrolled .site-header__inner { min-height: 68px; }

.site-header__logo img { height: 84px; }
.site-header.is-scrolled .site-header__logo img { height: 62px; }

.lang-toggle {
    font-size: 0.9rem;
    padding: 0.5rem 1.15rem;
}

/* Narrow desktops (1024–1279px): tighten nav so logo + 6 links + button fit */
@media (min-width: 1024px) and (max-width: 1279px) {
    .site-nav__list { gap: 1.1rem; }
    .site-nav__list li a { font-size: 0.82rem; letter-spacing: 0.05em; }
    .site-header__logo img { height: 72px; }
    .site-header.is-scrolled .site-header__logo img { height: 58px; }
}

/* ---------- Footer ---------- */
.site-footer { padding-top: 4.5rem; }

.site-footer__logo { padding: 10px 14px; }
.site-footer__logo img { height: 96px; }

.site-footer__col p {
    font-size: 0.95rem;
    line-height: 1.75;
}

.site-footer h4 {
    margin-bottom: 1.1rem;
    font-size: 1.1rem;
}

.site-footer__links li a {
    padding: 0.32rem 0;
    font-size: 0.95rem;
}

.site-footer__contact {
    gap: 0.9rem;
    font-size: 0.95rem;
}

.site-footer__badges { font-size: 0.88rem; }

.site-footer__bottom {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
    font-size: 0.88rem;
}

.elevator-up-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ---------- Mobile (must stay last) ---------- */
@media (max-width: 767px) {
    .topbar { font-size: 0.72rem; }
    .site-header__inner { min-height: 68px; }
    .site-header.is-scrolled .site-header__inner { min-height: 58px; }
    .site-header__logo img { height: 58px; }
    .site-header.is-scrolled .site-header__logo img { height: 48px; }
    .site-footer { padding-top: 3rem; }
    .site-footer__logo img { height: 80px; }
}

/* =====================================================================
 * v40 HERO SLIDER POLISH
 * - Text now lines up with the header/container edge (it was hugging the
 *   far-left of the screen because .hero__slide-content had no container).
 * - Bigger headline/subtitle/button, vertically centered, with a
 *   left-to-right dark overlay so text stays readable on any image.
 * ===================================================================== */
.hero__slider,
.hero > .hero__slide {
    min-height: clamp(520px, 72vh, 740px);
}

.hero__slide {
    align-items: center;
}

/* Readability overlay between the photo and the text */
.hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(13, 2, 26, 0.90) 0%,
        rgba(13, 2, 26, 0.68) 38%,
        rgba(13, 2, 26, 0.12) 72%,
        rgba(13, 2, 26, 0) 100%
    );
    pointer-events: none;
}

.hero__slide-content {
    z-index: 2;
    width: 100%;
    max-width: none;
    /* Same left edge as the logo / container (container max-width + gutter) */
    padding: var(--space-xl) max(var(--space-sm), calc((100% - var(--container-max-width)) / 2 + var(--space-sm)));
}

.hero__slide-content > * {
    max-width: 640px;
}

.hero__slide-content h1,
.hero__slide-content h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

/* short green accent bar above the headline */
.hero__slide-content h1::before,
.hero__slide-content h2::before {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin-bottom: 1.1rem;
    border-radius: 4px;
    background: #2EE08A;
}

.hero__slide-content p {
    margin-bottom: var(--space-md);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero__slide-content .btn {
    display: inline-block;
    padding: 0.95rem 2.1rem;
    border-radius: 4px;
    font-family: var(--font-family-nav);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 0 #0A5C32, 0 12px 22px rgba(0, 0, 0, 0.35);
}

.hero__slide-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #0A5C32, 0 16px 26px rgba(0, 0, 0, 0.4);
}

body.lang-bn .hero__slide-content .btn {
    font-family: var(--font-family-bn);
}

@media (max-width: 767px) {
    .hero__slider,
    .hero > .hero__slide {
        min-height: 520px;
    }

    .hero__slide::before {
        background: linear-gradient(180deg, rgba(13, 2, 26, 0.55) 0%, rgba(13, 2, 26, 0.88) 100%);
    }

    .hero__slide-content {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
    }

    .hero__slide-content .btn {
        padding: 0.85rem 1.6rem;
        font-size: 0.85rem;
    }
}

/* =====================================================================
 * v41 HERO — brighter photo, slider controls, badge polish
 * ===================================================================== */
.hero__slide-image {
    opacity: 0.88;   /* the left-to-right overlay (v40) keeps the text readable */
}

.hero__controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 0 max(var(--space-sm), calc((100% - var(--container-max-width)) / 2 + var(--space-sm)));
    pointer-events: none;
}

.hero__controls > * {
    pointer-events: auto;
}

.hero__dots {
    display: flex;
    gap: 0.5rem;
}

.hero__dot {
    position: relative;
    width: 48px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.hero__dot::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    margin-top: -1.5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.2s ease;
}

.hero__dot:hover::before,
.hero__dot:focus-visible::before {
    background: rgba(255, 255, 255, 0.65);
}

.hero__dot-fill {
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 3px;
    margin-top: -1.5px;
    border-radius: 3px;
    background: #2EE08A;
    box-shadow: 0 0 8px rgba(46, 224, 138, 0.6);
}

.hero__nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero__counter {
    margin-right: 0.5rem;
    font-family: var(--font-family-nav);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.9);
}

.hero__arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(13, 2, 26, 0.35);
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero__arrow:hover,
.hero__arrow:focus-visible {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Maintenance strip under the hero */
.hero__maintenance-badge {
    padding: 0.95rem var(--space-sm);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

@media (max-width: 767px) {
    .hero__controls {
        bottom: 16px;
        justify-content: center;
    }

    .hero__nav {
        display: none;
    }

    .hero__slider .hero__slide-content {
        padding-bottom: 5rem;
    }
}

/* =====================================================================
 * v42 RESPONSIVE FIXES — keep as the LAST block in this file.
 * - Floating WhatsApp/Emergency widget no longer covers page content on
 *   phones (the old bottom offset left room for the elevator control
 *   panel bar, which was removed from the header in v33).
 * - Language button now sits next to the hamburger instead of floating
 *   in the middle of the header on small screens.
 * - Drawer uses dynamic viewport height so it fits mobile browser bars.
 * ===================================================================== */
html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden; /* body's clip alone does not stop the page being dragged sideways on phones */
}

body {
    overflow-x: clip; /* never allow sideways scroll; clip keeps sticky header working */
}

/* <main> wraps every page's content: nothing inside may widen the document. */
main {
    overflow-x: clip;
}

h1, h2, h3, h4 {
    overflow-wrap: break-word;
}

@media (max-width: 1023px) {
    .site-header__actions {
        margin-left: auto;
    }

    .emergency-widget {
        right: var(--space-xs);
        bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
        gap: 0.4rem;
    }

    .emergency-widget__btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Keep the last footer row clear of the floating buttons */
    .site-footer__bottom {
        padding-bottom: 6.5rem;
    }
}

@media (max-width: 480px) {
    /* Icon-only round buttons. The label text stays in the DOM (font-size 0)
       so screen readers still read it. */
    .emergency-widget__btn {
        width: 46px;
        height: 46px;
        padding: 0;
        gap: 0;
        justify-content: center;
        border-radius: 50%;
        font-size: 0;
    }

    .emergency-widget__icon {
        font-size: 1.25rem;
    }

    .hero__maintenance-badge {
        font-size: 0.82rem;
        padding-right: 4rem; /* leaves room so the round buttons never cover the text */
    }
}

/* =====================================================================
 * v43 MOBILE DRAWER — keep as the LAST block in this file.
 * Below 1024px .site-nav becomes an off-canvas drawer that slides in
 * from the right, with a dim backdrop, its own header (title + close
 * button) and a contact footer. Both the backdrop and the drawer live
 * inside .site-header, so they share its stacking context (z-index 50):
 * backdrop = 1, drawer = 2. That keeps the drawer above the backdrop and
 * both above the page content and the floating widget.
 * Behaviour: main.js initMobileNav().
 * ===================================================================== */
.site-nav__mobile-head,
.site-nav__mobile-foot,
.nav-backdrop {
    display: none; /* desktop: normal inline nav, none of this is used */
}

@media (max-width: 1023px) {
    /* ---------- Hamburger ---------- */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 0 10px;
        border: 1px solid #D9CFE0;
        border-radius: 6px;
        background: var(--color-bg-white);
        cursor: pointer;
    }

    /* ---------- Backdrop ---------- */
    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1;
        background: rgba(13, 2, 26, 0.55);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }

    body.nav-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }

    /* ---------- Drawer ---------- */
    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        width: min(86vw, 360px);
        background: var(--color-bg-white);
        box-shadow: -12px 0 40px rgba(13, 2, 26, 0.25);
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(100%);
        visibility: hidden; /* also removes the closed drawer from the tab order */
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.32s;
    }

    .site-nav.is-open {
        transform: none;
        visibility: visible;
        transition-delay: 0s;
    }

    .site-nav__mobile-head {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 1.25rem;
        border-bottom: 1px solid #EEE8F2;
        background: linear-gradient(180deg, #FFFFFF 0%, #FAF6FD 100%);
    }

    .site-nav__mobile-title {
        font-family: var(--font-family-nav);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--color-primary);
    }

    .site-nav__close {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid #D9CFE0;
        border-radius: 50%;
        background: var(--color-bg-white);
        color: var(--color-primary);
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .site-nav__close:hover,
    .site-nav__close:focus-visible {
        background: var(--color-primary);
        border-color: var(--color-primary);
        color: var(--color-text-on-primary);
    }

    /* ---------- Links ---------- */
    .site-nav .site-nav__list {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }

    .site-nav .site-nav__list li a {
        padding: 1rem 1.25rem 1rem 1.5rem;
        border-bottom: 1px solid #F0EAF4;
        font-size: 0.95rem;
        text-shadow: none;
    }

    .site-nav .site-nav__list li a::after {
        display: none; /* the hover underline is a desktop-only effect */
    }

    .site-nav .site-nav__list li a:hover,
    .site-nav .site-nav__list li a:focus-visible,
    .site-nav .site-nav__list li a.is-current {
        transform: none;
        background: #F6EEFA;
        box-shadow: inset 4px 0 0 var(--color-primary);
        color: var(--color-primary);
    }

    /* ---------- Contact footer ---------- */
    .site-nav__mobile-foot {
        display: grid;
        gap: 0.9rem;
        margin-top: auto;
        padding: 1.25rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #EEE8F2;
        background: #FAF6FD;
    }

    .site-nav__mobile-foot a {
        font-size: 0.92rem;
        font-weight: 600;
        color: var(--color-text-heading);
        overflow-wrap: anywhere;
    }

    .site-nav__mobile-foot small {
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--color-primary);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav,
    .nav-backdrop {
        transition: none;
    }
}

/* =====================================================================
 * v44 SITE-WIDE RESPONSIVE + DESIGN POLISH — keep as the LAST block.
 * Fixes found in the full audit:
 *  - .blog-listing/.product-listing/.product-detail/.blog-post/
 *    .product-highlights are ALSO .container, but their `padding: X 0`
 *    shorthand wiped the container's side gutters (text touched the
 *    screen edge on phones).
 *  - .btn--outline only existed in admin.css, so public outline buttons
 *    (404 page, Quote Builder "Back") rendered unstyled.
 *  - The global `ul { list-style: none }` reset removed bullets from the
 *    legal pages and blog/product body text.
 *  - Leaflet map panes (z-index 400+) could paint over the sticky header
 *    and the mobile drawer.
 *  - Bangla text needs its own line-height / letter-spacing.
 * ===================================================================== */
:root {
    --font-family-bn: 'Noto Sans Bengali', 'TiroBangla', 'Nirmala UI', var(--font-family-base);
}

html {
    scroll-padding-top: 96px; /* anchor jumps clear the sticky header */
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

img {
    height: auto;
}

/* ---------- Smaller spacing / type scale on phones ---------- */
@media (max-width: 767px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 3rem;
        --font-size-2xl: 1.6rem;
        --font-size-3xl: 2.1rem;
    }
}

@media (max-width: 380px) {
    :root {
        --font-size-2xl: 1.45rem;
        --font-size-3xl: 1.85rem;
    }
}

/* ---------- Gutter fix (see header comment) ---------- */
.blog-listing,
.blog-post,
.blog-post-not-found,
.product-listing,
.product-detail,
.product-highlights {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px; /* comfortable touch target */
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
}

/* ---------- Keyboard focus ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.site-footer a:focus-visible,
.site-footer button:focus-visible,
.topbar a:focus-visible,
.hero a:focus-visible,
.hero button:focus-visible,
.consultation-banner a:focus-visible {
    outline-color: #8FE0B5;
}

/* ---------- Lists inside content areas get their bullets back ---------- */
.legal-page ul,
.blog-post__content ul,
.product-detail__body ul {
    list-style: disc;
    padding-left: 1.4rem;
    margin-bottom: var(--space-sm);
}

.legal-page ol,
.blog-post__content ol,
.product-detail__body ol {
    list-style: decimal;
    padding-left: 1.4rem;
    margin-bottom: var(--space-sm);
}

.legal-page li,
.blog-post__content li {
    margin-bottom: 0.35rem;
}

/* ---------- Cards: responsive image ratio, hover lift, no overflow ---------- */
.product-grid > *,
.blog-grid > *,
.projects-grid > * {
    min-width: 0;
}

.product-card__image,
.blog-card__image,
.project-card__image {
    height: auto;
    aspect-ratio: 16 / 10;
}

.product-card,
.blog-card,
.project-card {
    border: 1px solid #EEE8F2;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .product-card:hover,
    .blog-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }
}

.product-filter__link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}

.blog-pagination {
    flex-wrap: wrap;
}

/* ---------- Empty states + listing intro ---------- */
.listing-lede {
    max-width: 640px;
    margin-bottom: var(--space-sm);
    color: var(--color-text-body);
}

.empty-state {
    margin: var(--space-md) 0;
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    background: var(--color-bg-light);
    border: 1px dashed #D9CFE0;
    border-radius: var(--radius-md);
}

.empty-state p {
    margin-bottom: var(--space-sm);
}

/* ---------- Blog post / rich content never overflows ---------- */
.blog-post__content,
.legal-page__inner,
.product-detail__body {
    overflow-wrap: break-word;
}

.blog-post__content img,
.blog-post__content video {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.blog-post__content iframe {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
}

.blog-post__content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.blog-post__content pre {
    max-width: 100%;
    overflow-x: auto;
}

.blog-post__content h2,
.blog-post__content h3 {
    margin-top: var(--space-md);
}

/* ---------- Product Before/After slider: easier to grab on touch ---------- */
.before-after__slider {
    height: 28px;
    accent-color: var(--color-primary);
    cursor: ew-resize;
    touch-action: pan-y;
}

/* ---------- Projects map ---------- */
.projects-map {
    isolation: isolate; /* keeps Leaflet's high z-index panes under the header/drawer */
}

@media (max-width: 767px) {
    .projects-map {
        height: 280px;
    }
}

/* ---------- Footer ---------- */
@media (max-width: 1023px) {
    .site-footer__links li a {
        padding: 0.5rem 0; /* bigger tap targets */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .site-footer__col--brand {
        grid-column: 1 / -1; /* brand row on top, the 4 link columns below in 2x2 */
    }
}

/* ---------- Bangla typography ---------- */
body.lang-bn {
    line-height: 1.75;
}

body.lang-bn h1,
body.lang-bn h2,
body.lang-bn h3,
body.lang-bn h4 {
    line-height: 1.4;
}

body.lang-bn .hero__slide-content h1,
body.lang-bn .hero__slide-content h2 {
    line-height: 1.35;
    letter-spacing: 0;
}

body.lang-bn .site-nav__list li a,
body.lang-bn .btn,
body.lang-bn .topbar,
body.lang-bn .hero__slide-content .btn,
body.lang-bn .site-nav__mobile-title {
    letter-spacing: 0;
    text-transform: none; /* uppercase + tracking breaks Bengali conjuncts */
}


/* =====================================================================
 * v45 REDESIGN — "soft canvas" look: blush-lavender page, floating pill
 * header, rounded hero card, gradient pill buttons, big radii. Brand
 * gradient runs logo purple -> logo green. Keep as the LAST block in this
 * file: it intentionally overrides the earlier header/hero/footer rules.
 * Mobile drawer styles are untouched (nav overrides are desktop-only).
 * ===================================================================== */
:root {
    --bl-canvas: #F6F0FA;
    --bl-ink: #1A1024;
    --bl-line: #E8DCF0;
    --bl-grad: linear-gradient(100deg, #4B0072 0%, #8E3DB8 45%, #12A05A 100%);
    --bl-grad-solid: linear-gradient(100deg, #4B0072 0%, #0F8247 100%);
    --bl-radius-card: 28px;
    --bl-radius-xl: 32px;
    --bl-radius-header: 28px;
    --bl-shell: none;
    --bl-gutter: clamp(0.5rem, 1.6vw, 1.5rem);

    --font-family-base: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    --font-family-nav: var(--font-family-base);
}

body {
    background: var(--bl-canvas);
}

/* Tight, heavy display type (Latin only — Bengali keeps its own spacing) */
body:not(.lang-bn) h1,
body:not(.lang-bn) h2 {
    letter-spacing: -0.03em;
}

h2 {
    font-weight: 800;
}

/* ---------------------------------------------------------------------
 * Top info bar — slim dark plum strip, anchors the page above the pill
 * ------------------------------------------------------------------- */
.topbar {
    background: linear-gradient(90deg, #1E0030 0%, #3A0058 60%, #4B0072 100%);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.topbar__msg::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 0.55rem;
    border-radius: 50%;
    background: #2EE08A;
    box-shadow: 0 0 0 3px rgba(46, 224, 138, 0.25);
    vertical-align: middle;
}

.topbar__links a:hover,
.topbar__links a:focus-visible {
    color: #8FE0B5;
}

.topbar__links a + a {
    border-left-color: rgba(255, 255, 255, 0.28);
}

/* ---------------------------------------------------------------------
 * Header — floating white pill on the canvas
 * ------------------------------------------------------------------- */
.site-header,
.site-header.is-scrolled {
    background: var(--bl-canvas);
    border-bottom: 0;
    box-shadow: none;
    padding: 6px 0;
}

.site-header .site-header__inner,
.site-header.is-scrolled .site-header__inner {
    min-height: 76px;
    padding: 0 16px 0 24px;
    max-width: none;
    margin: 0 var(--bl-gutter);
    background: #FFFFFF;
    border: 1px solid #DCCBE8;
    border-radius: var(--bl-radius-header);
    box-shadow: 0 10px 30px rgba(75, 0, 114, 0.14), 0 2px 6px rgba(75, 0, 114, 0.08);
    transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled .site-header__inner {
    box-shadow: 0 14px 36px rgba(75, 0, 114, 0.22), 0 2px 6px rgba(75, 0, 114, 0.10);
}

.site-header .site-header__logo img,
.site-header.is-scrolled .site-header__logo img {
    height: 60px;
}

/* Scroll progress becomes a short gradient line under the pill */
.site-header__progress {
    left: 32px;
    right: 32px;
    bottom: 1px;
    height: 3px;
    border-radius: 3px;
    background: var(--bl-grad);
}

.site-header__actions .lang-toggle {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--bl-line);
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: none;
    font-size: 0.9rem;
}

.site-header__actions .lang-toggle:hover,
.site-header__actions .lang-toggle:focus-visible {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: none;
    transform: none;
}

/* Desktop nav only: sentence case, soft pill hover instead of underline */
@media (min-width: 1024px) {
    .site-nav__list {
        gap: 0.25rem;
    }

    .site-nav__list li a {
        padding: 0.55rem 1.05rem;
        border-radius: 999px;
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: 0;
        text-transform: none;
        text-shadow: none;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .site-nav__list li a::after {
        display: none;
    }

    .site-nav__list li a:hover,
    .site-nav__list li a:focus-visible {
        background: #F1E6F8;
        transform: none;
        text-shadow: none;
    }

    .site-nav__list li a.is-current {
        background: var(--color-primary);
        color: var(--color-text-on-primary);
    }

    /* The quote link moves out of the list into the header CTA button */
    .site-nav__item--quote {
        display: none;
    }
}

/* ---------------------------------------------------------------------
 * Buttons — pills, gradient primary with a soft ring
 * ------------------------------------------------------------------- */
.btn {
    border-radius: 999px;
    font-weight: 700;
}

.btn--accent {
    background: var(--bl-grad-solid);
    border-color: transparent;
    box-shadow: 0 0 0 4px rgba(75, 0, 114, 0.10), 0 10px 24px rgba(75, 0, 114, 0.25);
}

.btn--accent:focus,
.btn--accent:focus-visible {
    box-shadow: 0 0 0 4px rgba(15, 130, 71, 0.30), 0 10px 24px rgba(75, 0, 114, 0.25);
}

.btn--primary {
    background: var(--bl-ink);
}

.btn--primary:hover {
    background: var(--color-primary);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.55);
    color: #FFFFFF;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    background: #FFFFFF;
    color: var(--color-primary);
}

/* ---------------------------------------------------------------------
 * Hero — one big rounded card, photo inside, trust pill floating on the
 * bottom edge (replaces the full-width green strip)
 * ------------------------------------------------------------------- */
.hero {
    max-width: var(--bl-shell);
    margin: 0 auto;
    padding: var(--space-xs) var(--bl-gutter) 0;
    background: transparent;
    overflow: visible;
}

.hero__slider,
.hero > .hero__slide {
    min-height: clamp(480px, 68vh, 680px);
    border-radius: var(--bl-radius-xl);
    overflow: hidden;
    background: var(--color-midnight);
}

/* Plum-tinted readability overlay (was near-black) */
.hero__slide::before {
    background: linear-gradient(
        90deg,
        rgba(36, 0, 56, 0.90) 0%,
        rgba(75, 0, 114, 0.58) 42%,
        rgba(13, 2, 26, 0) 100%
    );
}

.hero__slide-content,
.hero__controls {
    padding-left: clamp(1.25rem, 4.5vw, 3.75rem);
    padding-right: clamp(1.25rem, 4.5vw, 3.75rem);
}

.hero__slide-content > * {
    max-width: 600px;
}

/* Headline: white fading into mint — echoes the logo green */
.hero__slide-content h1,
.hero__slide-content h2 {
    background: linear-gradient(100deg, #FFFFFF 0%, #FFFFFF 55%, #9BF0C4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.35));
    font-weight: 800;
    letter-spacing: -0.03em;
}

body.lang-bn .hero__slide-content h1,
body.lang-bn .hero__slide-content h2 {
    letter-spacing: 0;
}

.hero__slide-content h1::before,
.hero__slide-content h2::before {
    width: 52px;
    height: 5px;
    background: linear-gradient(90deg, #B66BDB, #2EE08A);
}

/* Hero buttons: pill, sentence case, no 3D shadow */
.hero__slide-content .btn {
    padding: 0.9rem 1.9rem;
    border-radius: 999px;
    font-size: 0.98rem;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16), 0 12px 26px rgba(0, 0, 0, 0.30);
}

.hero__slide-content .btn:hover {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.24), 0 16px 30px rgba(0, 0, 0, 0.36);
}

.hero__slide-content .btn + .btn {
    margin-left: 0.6rem;
}

/* Floating trust pill */
.hero__maintenance-badge {
    position: relative;
    z-index: 6;
    display: block;
    width: fit-content;
    max-width: calc(100% - 2rem);
    margin: -26px auto 0;
    padding: 0.8rem 1.6rem;
    background: #FFFFFF;
    color: var(--color-text-body);
    border: 1px solid var(--bl-line);
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(75, 0, 114, 0.16);
    font-size: 0.9rem;
    text-align: center;
}

.hero__maintenance-badge strong {
    background: var(--bl-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@media (max-width: 767px) {
    .hero {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .hero__slider,
    .hero > .hero__slide {
        min-height: 520px;
        border-radius: 28px;
    }

    .hero__slide::before {
        background: linear-gradient(180deg, rgba(36, 0, 56, 0.45) 0%, rgba(36, 0, 56, 0.90) 100%);
    }

    .hero__maintenance-badge {
        border-radius: 22px;
        font-size: 0.82rem;
    }

    .hero__slide-content .btn + .btn {
        margin-left: 0;
        margin-top: 0.6rem;
    }
}

/* ---------------------------------------------------------------------
 * Product highlights — white rounded cards on the canvas
 * ------------------------------------------------------------------- */
.product-highlights {
    padding-top: calc(var(--space-xl) + 1rem);
}

.product-highlights > h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    background: var(--bl-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.product-highlights__card {
    background: #FFFFFF;
    border: 1px solid var(--bl-line);
    border-radius: var(--bl-radius-card);
    padding: var(--space-md) 1.5rem 1.6rem;
    box-shadow: 0 8px 24px rgba(75, 0, 114, 0.05);
}

.product-highlights__card h3 {
    font-weight: 800;
    letter-spacing: -0.01em;
}

.product-highlights__card p {
    margin-bottom: 0;
}

/* ---------------------------------------------------------------------
 * Consultation banner — inset gradient card with a white pill button
 * ------------------------------------------------------------------- */
.consultation-banner {
    max-width: var(--bl-shell);
    margin: var(--space-lg) var(--bl-gutter) 0;
    padding: var(--space-xl) var(--space-sm);
    border-radius: var(--bl-radius-xl);
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(18, 160, 90, 0.85) 0%, rgba(18, 160, 90, 0) 60%),
        linear-gradient(120deg, #3A0058 0%, #4B0072 55%, #6A1B93 100%);
}

.consultation-banner p {
    color: rgba(255, 255, 255, 0.88);
}

.consultation-banner .btn--accent {
    background: #FFFFFF;
    color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 12px 26px rgba(0, 0, 0, 0.25);
}

@media (max-width: 767px) {
    .consultation-banner {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        border-radius: 28px;
    }
}

/* ---------------------------------------------------------------------
 * Footer — rounded dark card sitting on the canvas
 * ------------------------------------------------------------------- */
.site-footer {
    max-width: var(--bl-shell);
    margin: var(--space-lg) var(--bl-gutter) 0;
    border-radius: var(--bl-radius-xl) var(--bl-radius-xl) 0 0;
}

@media (max-width: 767px) {
    .site-footer {
        border-radius: 28px 28px 0 0;
    }
}

/* ---------------------------------------------------------------------
 * Floating WhatsApp / Emergency widget — pill-shaped to match
 * ------------------------------------------------------------------- */
.emergency-widget__btn {
    border-radius: 999px;
}

/* ---------------------------------------------------------------------
 * Reduced motion
 * ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .site-header .site-header__inner {
        transition: none;
    }
}

/* Full-width shell: topbar text lines up with the header pill's inner edge */
.topbar__inner {
    max-width: none;
    padding-left: calc(var(--bl-gutter) + 24px);
    padding-right: calc(var(--bl-gutter) + 16px);
}

@media (max-width: 767px) {
    .site-header .site-header__inner,
    .site-header.is-scrolled .site-header__inner {
        min-height: 60px;
        padding: 0 10px 0 16px;
        border-radius: 20px;
    }

    .site-header .site-header__logo img,
    .site-header.is-scrolled .site-header__logo img {
        height: 46px;
    }
}

/* Header CTA: gradient pill next to the language button */
.site-header__cta {
    display: none;
}

@media (min-width: 1024px) {
    .site-header__cta {
        display: inline-flex;
        padding: 0.6rem 1.35rem;
        font-size: 0.92rem;
        white-space: nowrap;
    }
}

/* ---------------------------------------------------------------------
 * Elevator-motion header (final) — dark, bold, animated.
 *  1. Load: two steel lift doors cover the header and slide apart.
 *  2. Nav: a glowing "cabin" pill slides between links (positioned by
 *     main.js initNavCabin), and each label rolls up on hover like a
 *     floor display.
 *  3. CTA: a green call button with a slow attention pulse.
 *  4. Scroll: a small green lift-car rides the bottom edge of the header
 *     as the page scrolls (uses --scroll-progress set by main.js).
 *  5. Background: slow drifting purple/green glow on midnight.
 * All motion is switched off under prefers-reduced-motion.
 * Mobile keeps the dark bar, logo and hamburger; the drawer is untouched.
 * ------------------------------------------------------------------- */
:root {
    --bl-edge: clamp(1.25rem, 4.5vw, 3.75rem); /* same inset the hero text uses */
    --bl-midnight: #0D021A;
    --bl-led: #38F09A;
}

/* Top info strip */
.topbar {
    background: linear-gradient(100deg, #2A0042 0%, #3A0058 100%);
    color: rgba(255, 255, 255, 0.90);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.topbar__msg::before {
    background: var(--bl-led);
    box-shadow: 0 0 0 3px rgba(46, 224, 138, 0.25);
}

.topbar__links a:hover,
.topbar__links a:focus-visible {
    color: #8FE0B5;
}

.topbar__links a + a {
    border-left-color: rgba(255, 255, 255, 0.25);
}

.topbar__inner {
    padding-left: var(--bl-edge);
    padding-right: var(--bl-edge);
}

/* Header bar: midnight with a slowly drifting glow */
.site-header,
.site-header.is-scrolled {
    padding: 0;
    background:
        radial-gradient(45% 170% at 8% 0%, rgba(176, 92, 224, 0.50) 0%, rgba(176, 92, 224, 0) 70%),
        radial-gradient(42% 170% at 94% 100%, rgba(30, 190, 110, 0.45) 0%, rgba(30, 190, 110, 0) 70%),
        linear-gradient(100deg, #3A0058 0%, #4B0072 50%, #3A0058 100%);
    background-size: 160% 100%, 160% 100%, auto;
    background-repeat: no-repeat;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: 0 10px 28px rgba(58, 0, 88, 0.30);
    animation: bl-header-glow 14s ease-in-out infinite alternate;
    transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 14px 34px rgba(58, 0, 88, 0.50);
}

@keyframes bl-header-glow {
    from { background-position: 0% 0, 100% 0, 0 0; }
    to   { background-position: 100% 0, 0% 0, 0 0; }
}

.site-header .site-header__inner,
.site-header.is-scrolled .site-header__inner {
    position: relative;
    overflow: hidden; /* keeps the sliding doors inside the bar */
    min-height: 82px;
    margin: 0;
    padding: 0 var(--bl-edge);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.site-header.is-scrolled .site-header__inner {
    min-height: 66px;
}

/* ----- 1. Lift doors: steel panels that slide apart once on load ----- */
.site-header__inner::before,
.site-header__inner::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 20;
    width: 50.5%;
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 1px, rgba(40, 40, 60, 0.04) 1px 3px),
        linear-gradient(180deg, #F4F4F8 0%, #CFCFD9 100%);
    animation-duration: 0.85s;
    animation-timing-function: cubic-bezier(0.77, 0, 0.18, 1);
    animation-delay: 0.45s;
    animation-fill-mode: forwards;
}

.site-header__inner::before {
    left: 0;
    box-shadow: inset -2px 0 0 rgba(13, 2, 26, 0.30);
    animation-name: bl-door-left;
}

.site-header__inner::after {
    right: 0;
    box-shadow: inset 2px 0 0 rgba(13, 2, 26, 0.30);
    animation-name: bl-door-right;
}

@keyframes bl-door-left {
    to { transform: translateX(-101%); }
}

@keyframes bl-door-right {
    to { transform: translateX(101%); }
}

/* Logo: white silhouette on the dark bar, brand glow on hover */
.site-header .site-header__logo img,
.site-header.is-scrolled .site-header__logo img {
    height: 56px;
    filter: brightness(0) invert(1);
    transition: height 0.3s ease, filter 0.3s ease;
}

.site-header.is-scrolled .site-header__logo img {
    height: 46px;
}

.site-header .site-header__logo:hover img {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(46, 224, 138, 0.65));
}

/* ----- 4. Scroll: gradient trail + a small green lift-car on the edge ----- */
.site-header__progress {
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 0;
    background: linear-gradient(90deg, #B66BDB, #2EE08A);
}

.site-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: calc(var(--scroll-progress, 0) * (100% - 34px));
    z-index: 3;
    width: 34px;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #12A05A, #5BE8A4);
    box-shadow: 0 0 12px rgba(46, 224, 138, 0.9);
    pointer-events: none;
}

/* Language: white outline pill */
.site-header__actions .lang-toggle {
    padding: 0.5rem 1.1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    color: #FFFFFF;
    box-shadow: none;
    font-size: 0.88rem;
}

.site-header__actions .lang-toggle:hover,
.site-header__actions .lang-toggle:focus-visible {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--color-primary);
    transform: none;
    box-shadow: none;
}

/* Hamburger: white on the dark bar, purple again while the white drawer is open */
.nav-toggle__bar {
    background: #FFFFFF;
}

body.nav-open .nav-toggle__bar {
    background: var(--color-primary);
}

.site-nav__cabin {
    display: none;
}

/* ----- 2 + 3. Desktop only: cabin, rolling labels, call button ----- */
@media (min-width: 1024px) {
    .site-nav__list {
        position: relative;
        gap: 0.2rem;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .site-nav__list li:not(.site-nav__cabin) {
        position: relative;
        z-index: 1; /* links sit above the cabin pill */
    }

    .site-nav__list li a,
    .site-nav__list li a:hover,
    .site-nav__list li a:focus-visible,
    .site-nav__list li a.is-current {
        background: transparent;
    }

    .site-nav__list li a {
        padding: 0.7rem 1.2rem;
        border-radius: 999px;
        color: rgba(255, 255, 255, 0.90);
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        text-shadow: none;
        transform: none;
        transition: color 0.3s ease;
    }

    .site-nav__list li a::after {
        display: none;
    }

    .site-nav__list li a:hover,
    .site-nav__list li a:focus-visible,
    .site-nav__list li a.is-current,
    .site-nav__list li a.is-lit {
        color: #FFFFFF;
        transform: none;
    }

    /* The sliding cabin pill. Hidden until main.js adds .has-cabin. */
    .site-nav__cabin {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 0;
        width: var(--cabin-w, 0px);
        transform: translateX(var(--cabin-x, 0px));
        border-radius: 999px;
        background: linear-gradient(100deg, #A05AD6 0%, #14B567 100%);
        box-shadow: 0 6px 22px rgba(46, 224, 138, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
        opacity: 0;
        pointer-events: none;
    }

    .site-nav__list.has-cabin .site-nav__cabin {
        opacity: 1;
        transition:
            transform 0.5s cubic-bezier(0.34, 1.45, 0.5, 1),
            width 0.5s cubic-bezier(0.34, 1.45, 0.5, 1),
            opacity 0.2s ease;
    }

    /* Label roll: the text slides up and an identical copy slides in below */
    .nav-label {
        position: relative;
        display: block;
        overflow: hidden;
        line-height: 1.5;
    }

    .nav-label__text,
    .nav-label::after {
        display: block;
        transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1);
    }

    .nav-label::after {
        content: attr(data-label);
        position: absolute;
        top: 100%;
        left: 0;
        white-space: nowrap;
    }

    .site-nav__list li a:hover .nav-label__text,
    .site-nav__list li a:focus-visible .nav-label__text,
    .site-nav__list li a:hover .nav-label::after,
    .site-nav__list li a:focus-visible .nav-label::after {
        transform: translateY(-100%);
    }

    /* Call button: bright green, slow attention pulse */
    .site-header__cta {
        padding: 0.75rem 1.6rem;
        border-radius: 999px;
        background: linear-gradient(100deg, #14B567 0%, #0F8247 100%);
        font-size: 0.88rem;
        font-weight: 800;
        box-shadow: 0 0 0 0 rgba(46, 224, 138, 0.55);
        animation: bl-call-pulse 2.8s ease-out infinite;
    }

    .site-header__cta:hover,
    .site-header__cta:focus-visible {
        background: linear-gradient(100deg, #1BC070 0%, #12A05A 100%);
        animation-play-state: paused;
        box-shadow: 0 0 0 5px rgba(46, 224, 138, 0.30), 0 10px 24px rgba(0, 0, 0, 0.35);
    }
}

@keyframes bl-call-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(46, 224, 138, 0.55); }
    70%  { box-shadow: 0 0 0 14px rgba(46, 224, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 224, 138, 0); }
}

/* Bangla: uppercase + tracking break conjuncts */
body.lang-bn .site-header__cta,
body.lang-bn .site-header__actions .lang-toggle {
    letter-spacing: 0;
    text-transform: none;
}

/* Reduced motion: no doors, no drift, no pulse, no sliding or rolling */
@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header.is-scrolled,
    .site-header__cta {
        animation: none;
    }

    .site-header__inner::before,
    .site-header__inner::after {
        display: none;
    }

    .site-nav__list.has-cabin .site-nav__cabin,
    .nav-label__text,
    .nav-label::after {
        transition: none;
    }
}

/* Breathing room between the header and the hero card */
.hero {
    padding-top: var(--bl-gutter);
}

@media (max-width: 767px) {
    .site-header .site-header__inner,
    .site-header.is-scrolled .site-header__inner {
        min-height: 64px;
        padding: 0 0.5rem 0 0.75rem;
    }

    .site-header .site-header__logo img,
    .site-header.is-scrolled .site-header__logo img {
        height: 42px;
    }

    .topbar__inner {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }
}
/* =====================================================================
 * v-white-header — header background white, logo back to original colors
 * (overrides the dark "elevator-motion" header above; keep at END of file)
 * ===================================================================== */

/* 1. White header bar (no purple/green glow, no animation drift) */
.site-header,
.site-header.is-scrolled {
    background: #FFFFFF;
    animation: none;
    box-shadow: 0 4px 18px rgba(75, 0, 114, 0.10);
    border-bottom: 1px solid #E9DDF2;
}

.site-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(75, 0, 114, 0.18);
}

/* 2. Logo: remove the white silhouette filter -> original colors */
.site-header .site-header__logo img,
.site-header.is-scrolled .site-header__logo img {
    filter: none;
}

.site-header .site-header__logo:hover img {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(75, 0, 114, 0.25));
}

/* 3. Language button + hamburger: dark on white */
.site-header__actions .lang-toggle {
    background: transparent;
    border: 1px solid rgba(75, 0, 114, 0.35);
    color: var(--color-primary);
}

.site-header__actions .lang-toggle:hover,
.site-header__actions .lang-toggle:focus-visible {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #FFFFFF;
}

.nav-toggle__bar,
body.nav-open .nav-toggle__bar {
    background: var(--color-primary);
}

/* 4. Desktop nav: dark text on white, white text on the sliding cabin pill */
@media (min-width: 1024px) {
    .site-nav__list li a {
        color: #2A0042;
    }

    .site-nav__list li a:hover,
    .site-nav__list li a:focus-visible,
    .site-nav__list li a.is-current,
    .site-nav__list li a.is-lit {
        color: #FFFFFF;
    }

    /* If the cabin pill hasn't been positioned by JS yet, still show the current page */
    .site-nav__list:not(.has-cabin) li a.is-current {
        background: var(--color-primary);
    }
}

/* =====================================================================
 * v-narrow-header — header content constrained to a centered width
 * (header keeps its original height/sizes; background stays full-width)
 * Change --header-max-width to make it narrower / wider.
 * ===================================================================== */
:root {
    --header-max-width: 1480px;
}

@media (min-width: 1024px) {
    .site-header .site-header__inner,
    .site-header.is-scrolled .site-header__inner {
        max-width: var(--header-max-width);
        margin-left: auto;
        margin-right: auto;
        padding-left: 24px;
        padding-right: 24px;
    }

    /* slightly shorter header */
    .site-header .site-header__inner {
        min-height: 72px;
    }

    .site-header.is-scrolled .site-header__inner {
        min-height: 60px;
    }

    .site-header .site-header__logo img {
        height: 50px;
    }

    .site-header.is-scrolled .site-header__logo img {
        height: 42px;
    }

    /* keep the top info strip lined up with the header content */
    .topbar__inner {
        max-width: var(--header-max-width);
        margin-left: auto;
        margin-right: auto;
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* =====================================================================
 * v-nav-current-fix — the current page link (HOME) turned white and
 * vanished on the white header whenever the cabin pill slid to another
 * link. Now a link is white ONLY while the cabin pill is under it
 * (.is-lit) or it is hovered/focused; otherwise it stays dark.
 * ===================================================================== */
@media (min-width: 1024px) {
    .site-nav__list.has-cabin li a.is-current:not(.is-lit):not(:hover):not(:focus-visible) {
        color: #2A0042;
    }
}

/* =====================================================================
 * v-header-buttons — richer look for the HOME cabin pill, the
 * "Get a quote" call button and the language button (white header)
 * ===================================================================== */

/* ----- Language button: clean white pill, soft border + hover fill ----- */
.site-header__actions .lang-toggle {
    background: #FFFFFF;
    border: 1px solid rgba(75, 0, 114, 0.22);
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(75, 0, 114, 0.08);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
                box-shadow 0.25s ease, transform 0.25s ease;
}

.site-header__actions .lang-toggle:hover,
.site-header__actions .lang-toggle:focus-visible {
    background: linear-gradient(135deg, #6A12A0 0%, #3A0058 100%);
    border-color: transparent;
    color: #FFFFFF;
    box-shadow: 0 8px 18px rgba(75, 0, 114, 0.30);
    transform: translateY(-1px);
}

@media (min-width: 1024px) {

    /* ----- Cabin pill (active/hovered nav link): deep plum + LED ----- */
    .site-nav__cabin {
        background: linear-gradient(135deg, #6A12A0 0%, #4B0072 55%, #2E0049 100%);
        box-shadow:
            0 8px 20px rgba(75, 0, 114, 0.32),
            inset 0 1px 0 rgba(255, 255, 255, 0.22),
            inset 0 -1px 0 rgba(0, 0, 0, 0.18);
    }

    /* little green "floor indicator" LED under the label */
    .site-nav__cabin::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 5px;
        width: 16px;
        height: 3px;
        border-radius: 3px;
        transform: translateX(-50%);
        background: #38F09A;
        box-shadow: 0 0 8px rgba(56, 240, 154, 0.95);
    }

    /* ----- Get a quote: solid green gradient, gloss, clean pulse ring ----- */
    .site-header .site-header__cta {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: linear-gradient(135deg, #1ACB75 0%, #0F8247 100%);
        border: 0;
        color: #FFFFFF;
        box-shadow:
            0 8px 18px rgba(15, 130, 71, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.35);
        animation: bl-cta-pulse 3s ease-out infinite;
        transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    }

    .site-header .site-header__cta::after {
        content: "\2192";           /* → */
        display: inline-block;
        transition: transform 0.25s ease;
    }

    .site-header .site-header__cta:hover,
    .site-header .site-header__cta:focus-visible {
        background: linear-gradient(135deg, #22D982 0%, #12904F 100%);
        transform: translateY(-2px);
        animation-play-state: paused;
        box-shadow:
            0 12px 26px rgba(15, 130, 71, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.40);
    }

    .site-header .site-header__cta:hover::after,
    .site-header .site-header__cta:focus-visible::after {
        transform: translateX(4px);
    }
}

@keyframes bl-cta-pulse {
    0%   { box-shadow: 0 8px 18px rgba(15, 130, 71, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 0 rgba(26, 203, 117, 0.45); }
    70%  { box-shadow: 0 8px 18px rgba(15, 130, 71, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 12px rgba(26, 203, 117, 0); }
    100% { box-shadow: 0 8px 18px rgba(15, 130, 71, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 0 rgba(26, 203, 117, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .site-header .site-header__cta {
        animation: none;
    }
}

/* =====================================================================
 * v-header-polish — final touches on the white header
 *  - nav truly centered (logo and button group get equal width)
 *  - soft divider before Get a quote / language
 *  - subtle bottom edge, logo hover lift, breathing LED on the pill
 * ===================================================================== */
.site-header,
.site-header.is-scrolled {
    background: linear-gradient(180deg, #FFFFFF 0%, #FCFAFE 100%);
    border-bottom: 1px solid rgba(75, 0, 114, 0.08);
    box-shadow: 0 10px 28px rgba(75, 0, 114, 0.08);
}

.site-header.is-scrolled {
    box-shadow: 0 12px 30px rgba(75, 0, 114, 0.16);
}

@media (min-width: 1024px) {
    /* equal-width sides => the nav sits in the exact middle of the header */
    .site-header .site-header__logo {
        flex: 1 1 0;
        justify-content: flex-start;
    }

    .site-header .site-header__actions {
        flex: 1 1 0;
        justify-content: flex-end;
        gap: 0.75rem;
    }

    /* thin divider between the nav and the buttons */
    .site-header .site-header__actions::before {
        content: "";
        width: 1px;
        height: 28px;
        margin-right: 0.5rem;
        background: rgba(75, 0, 114, 0.15);
    }

    .site-header .site-header__logo img {
        transition: height 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    }

    .site-header .site-header__logo:hover img {
        transform: scale(1.05);
    }

    /* the pill's floor-indicator LED gently breathes */
    .site-nav__cabin::after {
        animation: bl-led-breathe 2.4s ease-in-out infinite;
    }
}

@keyframes bl-led-breathe {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 5px rgba(56, 240, 154, 0.6); }
    50%      { opacity: 1;   box-shadow: 0 0 11px rgba(56, 240, 154, 1); }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav__cabin::after {
        animation: none;
    }
}

/* =====================================================================
 * v-lang-button — language switch redesigned: deep-plum pill with a
 * green globe icon. Pairs with the green "Get a quote" button.
 * (No HTML change: the globe is drawn with a CSS mask.)
 * ===================================================================== */
.site-header .site-header__actions .lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: linear-gradient(135deg, #6A12A0 0%, #4B0072 55%, #2E0049 100%);
    color: #FFFFFF;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow:
        0 8px 18px rgba(75, 0, 114, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* globe icon */
.site-header .site-header__actions .lang-toggle::before {
    content: "";
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    background: #5BE8A4;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.6s ease, background 0.25s ease;
}

.site-header .site-header__actions .lang-toggle:hover,
.site-header .site-header__actions .lang-toggle:focus-visible {
    background: linear-gradient(135deg, #7A1FB5 0%, #5A0A8A 55%, #3A0058 100%);
    border-color: rgba(91, 232, 164, 0.55);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow:
        0 12px 24px rgba(75, 0, 114, 0.40),
        0 0 0 3px rgba(91, 232, 164, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.site-header .site-header__actions .lang-toggle:hover::before,
.site-header .site-header__actions .lang-toggle:focus-visible::before {
    transform: rotate(360deg);
    background: #8FF5C6;
}

.site-header .site-header__actions .lang-toggle:active {
    transform: translateY(0);
}

@media (min-width: 1024px) {
    /* same height as the Get a quote button */
    .site-header .site-header__actions .lang-toggle {
        padding: 0.75rem 1.3rem;
    }
}

body.lang-bn .site-header .site-header__actions .lang-toggle {
    letter-spacing: 0;
    text-transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .site-header .site-header__actions .lang-toggle,
    .site-header .site-header__actions .lang-toggle::before {
        transition: none;
    }

    .site-header .site-header__actions .lang-toggle:hover::before,
    .site-header .site-header__actions .lang-toggle:focus-visible::before {
        transform: none;
    }
}

/* =====================================================================
 * v-lang-switch — language button as a two-part switch:
 *   [ EN ]  বাংলা      (current language = green chip, other = label)
 * In Bangla mode it flips to  [ বাং ]  English.
 * Replaces the plum globe button above. No HTML change needed.
 * ===================================================================== */
.site-header .site-header__actions .lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 4px 1.1rem 4px 4px;
    border: 1px solid rgba(75, 0, 114, 0.18);
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(75, 0, 114, 0.08);
    transition: border-color 0.25s ease, background 0.25s ease,
                box-shadow 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

/* current-language chip */
.site-header .site-header__actions .lang-toggle::before {
    content: "EN";
    width: auto;
    height: auto;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    -webkit-mask: none;
            mask: none;
    background: linear-gradient(135deg, #17C46E 0%, #0F8247 100%);
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 10px rgba(15, 130, 71, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: none;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

body.lang-bn .site-header .site-header__actions .lang-toggle::before {
    content: "\09AC\09BE\0982"; /* বাং */
}

.site-header .site-header__actions .lang-toggle:hover,
.site-header .site-header__actions .lang-toggle:focus-visible {
    background: #F7EFFC;
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(75, 0, 114, 0.16);
}

.site-header .site-header__actions .lang-toggle:hover::before,
.site-header .site-header__actions .lang-toggle:focus-visible::before {
    background: linear-gradient(135deg, #17C46E 0%, #0F8247 100%);
    transform: scale(1.04);
    box-shadow: 0 6px 14px rgba(15, 130, 71, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.site-header .site-header__actions .lang-toggle:active {
    transform: translateY(0);
}

body.lang-bn .site-header .site-header__actions .lang-toggle,
body.lang-bn .site-header .site-header__actions .lang-toggle::before {
    letter-spacing: 0;
    text-transform: none;
}

/* =====================================================================
 * v-no-header-load-animation — the header appears instantly on page load:
 *  - no steel "lift doors" sliding apart over the header
 *  - no logo fade-in / drop
 * (hover effects and the Get a quote pulse are unchanged)
 * ===================================================================== */
.site-header__inner::before,
.site-header__inner::after {
    display: none;
    animation: none;
}

.site-header .site-header__logo img,
.site-header.is-scrolled .site-header__logo img {
    animation: none;
}

/* =====================================================================
 * v-lang-slider — real switch: labels stay still, the GREEN BACKGROUND
 * (thumb) slides between  [ EN ]  and  [ বাংলা ].
 * Markup is built by main.js initLangSwitch(); these rules only apply
 * once the button has the .lang-switch class.
 * ===================================================================== */
.site-header .site-header__actions .lang-toggle.lang-switch {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    padding: 4px;
    isolation: isolate;
    border: 1px solid rgba(75, 0, 114, 0.18);
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--color-primary);
    font-size: 0.82rem;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(75, 0, 114, 0.08);
}

/* drop the old EN / globe chip */
.site-header .site-header__actions .lang-toggle.lang-switch::before {
    display: none;
}

/* the sliding green background */
.lang-switch__thumb {
    position: absolute;
    z-index: 0;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: linear-gradient(135deg, #17C46E 0%, #0F8247 100%);
    box-shadow: 0 4px 10px rgba(15, 130, 71, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.5s cubic-bezier(0.5, 0, 0.2, 1);
}

.lang-switch.is-bn .lang-switch__thumb {
    transform: translateX(100%);
}

/* the two labels — fixed, never move */
.lang-switch__opt {
    position: relative;
    z-index: 1;
    flex: 0 0 4.5rem;
    width: 4.5rem;
    padding: 0.7rem 0;
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    transition: color 0.35s ease;
}

.lang-switch__opt[data-lang="bn"] {
    font-family: var(--font-family-bn);
    font-size: 0.9rem;
    letter-spacing: 0;
}

/* active label = white (sits on the green thumb) */
.lang-switch:not(.is-bn) .lang-switch__opt[data-lang="en"],
.lang-switch.is-bn .lang-switch__opt[data-lang="bn"] {
    color: #FFFFFF;
}

/* hover / focus */
.site-header .site-header__actions .lang-toggle.lang-switch:hover,
.site-header .site-header__actions .lang-toggle.lang-switch:focus-visible {
    background: #F7EFFC;
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(75, 0, 114, 0.16);
}

.lang-switch:not(.is-bn):hover .lang-switch__opt[data-lang="bn"],
.lang-switch.is-bn:hover .lang-switch__opt[data-lang="en"] {
    color: #2A0042;
}

.site-header .site-header__actions .lang-toggle.lang-switch:active {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .lang-switch__thumb,
    .lang-switch__opt {
        transition: none;
    }
}


/* =====================================================================
 * v-header-refresh — final polish of the white header (keep at END)
 *  - top strip: phone / email get small icons, slightly taller
 *  - bar: a little taller, bigger logo, faint brand-gradient edge that
 *    acts as the track for the scroll-progress line
 *  - nav: links sit inside a soft "segmented" tray, so the sliding
 *    cabin pill reads like a control panel
 *  - Desktop only for sizing; the mobile drawer is untouched.
 *  NOTE: no backdrop-filter / transform on .site-header (see the note
 *  near the top of the v37 block — it would break the fixed drawer).
 * ===================================================================== */

/* ----- Top info strip: icons on the contact links ----- */
.topbar__inner {
    min-height: 38px;
}

.topbar__links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.topbar__links a::before {
    content: "";
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    background: #8FE0B5;
    -webkit-mask: var(--topbar-icon) center / contain no-repeat;
            mask: var(--topbar-icon) center / contain no-repeat;
}

.topbar__links a[href^="tel:"] {
    --topbar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
}

.topbar__links a[href^="mailto:"] {
    --topbar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

/* ----- Header bar: faint gradient edge (track for the progress line) ----- */
.site-header,
.site-header.is-scrolled {
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg,
        rgba(75, 0, 114, 0.22) 0%,
        rgba(142, 61, 184, 0.22) 50%,
        rgba(18, 160, 90, 0.22) 100%) 1;
    box-shadow: 0 12px 30px rgba(75, 0, 114, 0.10);
}

.site-header.is-scrolled {
    box-shadow: 0 14px 34px rgba(75, 0, 114, 0.18);
}

@media (min-width: 1024px) {
    /* a little more presence: taller bar, bigger logo */
    .site-header .site-header__inner {
        min-height: 80px;
    }

    .site-header.is-scrolled .site-header__inner {
        min-height: 66px;
    }

    .site-header .site-header__logo img {
        height: 58px;
    }

    .site-header.is-scrolled .site-header__logo img {
        height: 46px;
    }

    /* ----- Nav tray: soft segmented container around the links ----- */
    .site-nav__list {
        gap: 0.15rem;
        padding: 4px;
        border: 1px solid rgba(75, 0, 114, 0.08);
        border-radius: 999px;
        background: linear-gradient(180deg, #F8F2FC 0%, #F3EAF9 100%);
        box-shadow: inset 0 1px 2px rgba(75, 0, 114, 0.06);
    }

    .site-nav__list li a {
        font-weight: 700;
    }

    /* tidy divider before the buttons */
    .site-header .site-header__actions::before {
        height: 32px;
        background: linear-gradient(180deg,
            rgba(75, 0, 114, 0) 0%,
            rgba(75, 0, 114, 0.22) 50%,
            rgba(75, 0, 114, 0) 100%);
    }
}

/* Mobile: slightly roomier bar and a touch bigger logo */
@media (max-width: 1023px) {
    .site-header .site-header__logo img {
        height: 50px;
    }
}

/* =====================================================================
 * v46 GALLERY — gallery.php (masonry grid + filter pills + lightbox).
 * Uses the v45 tokens (--bl-line, --bl-grad-solid, --bl-radius-*).
 * Keep this block at the END of the file.
 * ===================================================================== */
.gallery-hero {
    margin: var(--space-lg) var(--bl-gutter) 0;
    padding: clamp(2.2rem, 5vw, 3.6rem) var(--bl-edge, 1.5rem);
    border-radius: var(--bl-radius-xl);
    background: var(--bl-grad-solid);
    color: #FFFFFF;
    text-align: center;
}

.gallery-hero h1 {
    margin: 0 0 var(--space-xs);
    color: #FFFFFF;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
}

.gallery-hero p {
    max-width: 560px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.88);
}

.gallery-page {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-xl);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: var(--space-lg);
}

.gallery-filters__btn {
    padding: 0.55rem 1.15rem;
    border: 1px solid var(--bl-line);
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--color-primary);
    font-family: inherit;
    font-size: var(--font-size-sm);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-filters__btn span {
    margin-left: 0.25rem;
    opacity: 0.55;
    font-weight: 600;
}

.gallery-filters__btn:hover,
.gallery-filters__btn:focus-visible {
    background: #F3EAF9;
    transform: translateY(-1px);
}

.gallery-filters__btn.is-active {
    background: var(--bl-grad-solid);
    border-color: transparent;
    color: #FFFFFF;
}

/* Masonry via CSS columns: no JS layout work, images keep their ratios */
.gallery-grid {
    columns: 3 260px;
    column-gap: var(--space-md);
}

.gallery-item {
    margin: 0 0 var(--space-md);
    break-inside: avoid;
}

.gallery-item.is-hidden {
    display: none;
}

.gallery-item.is-entering {
    animation: bl-gallery-in 0.45s ease backwards;
}

@keyframes bl-gallery-in {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.gallery-item__btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--bl-line);
    border-radius: 22px;
    background: #EDE3F4;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 8px 24px rgba(75, 0, 114, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item__btn img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

.gallery-item__btn:hover,
.gallery-item__btn:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(75, 0, 114, 0.2);
}

.gallery-item__btn:hover img,
.gallery-item__btn:focus-visible img {
    transform: scale(1.05);
}

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2.6rem 1rem 0.9rem;
    text-align: left;
    color: #FFFFFF;
    background: linear-gradient(transparent, rgba(30, 0, 48, 0.88));
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item figcaption small {
    opacity: 0.8;
}

.gallery-item__btn:hover figcaption,
.gallery-item__btn:focus-visible figcaption {
    opacity: 1;
    transform: none;
}

/* Touch screens have no hover — keep captions visible */
@media (hover: none) {
    .gallery-item figcaption {
        opacity: 1;
        transform: none;
    }
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    background: rgba(13, 2, 26, 0.93);
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox__figure {
    max-width: 92vw;
    margin: 0;
    text-align: center;
    color: #FFFFFF;
}

.gallery-lightbox__figure img {
    max-width: 92vw;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox__figure figcaption {
    margin-top: var(--space-sm);
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
    position: absolute;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__nav:focus-visible {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-lightbox__close { top: 18px; right: 18px; }
.gallery-lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
    .gallery-grid { columns: 2 140px; column-gap: var(--space-sm); }
    .gallery-item { margin-bottom: var(--space-sm); }
    .gallery-item__btn { border-radius: 16px; }
    .gallery-lightbox__nav--prev { left: 8px; }
    .gallery-lightbox__nav--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-item.is-entering { animation: none; }
    .gallery-item__btn,
    .gallery-item__btn img,
    .gallery-item figcaption { transition: none; }
}


/* =====================================================================
 * WhatsApp floating button redesign — official WhatsApp green + the real
 * WhatsApp logo (white badge, green glyph) + a soft pulse, so visitors
 * recognise it as WhatsApp at a glance. Markup: whatsapp-emergency-widget.php.
 * Keep as the LAST block in this file (overrides the earlier widget rules).
 * ===================================================================== */
.emergency-widget__btn--whatsapp {
    gap: 9px;
    padding: 0.35rem 1.05rem 0.35rem 0.35rem;
    background: #25D366;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, background 0.15s ease;
}

.emergency-widget__btn--whatsapp:hover {
    background: #1EBE5B;
    transform: translateY(-2px) scale(1.03);
}

.emergency-widget__wa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #FFFFFF;
    color: #25D366;
}

.emergency-widget__wa-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

@keyframes bl-wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 6px 18px rgba(37, 211, 102, 0.45); }
    70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 6px 18px rgba(37, 211, 102, 0.45); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 6px 18px rgba(37, 211, 102, 0.45); }
}

@media (prefers-reduced-motion: no-preference) {
    .emergency-widget__btn--whatsapp {
        animation: bl-wa-pulse 2.6s ease-out infinite;
    }
    .emergency-widget__btn--whatsapp:hover {
        animation-play-state: paused;
    }
}

/* Small phones: a round green WhatsApp button with just the logo
   (label stays in the DOM at font-size 0 for screen readers). */
@media (max-width: 480px) {
    .emergency-widget__btn--whatsapp {
        width: 50px;
        height: 50px;
        padding: 0;
        gap: 0;
        justify-content: center;
        border-radius: 50%;
        font-size: 0;
    }

    .emergency-widget__btn--whatsapp .emergency-widget__wa-icon {
        width: 50px;
        height: 50px;
        background: transparent;
        color: #FFFFFF;
    }

    .emergency-widget__btn--whatsapp .emergency-widget__wa-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* =====================================================================
 * v49 MOBILE FIXES — keep as the LAST block in this file.
 * - 16px inputs on phones so iOS Safari does not auto-zoom on focus.
 * - Hero no longer forces 520px on short (landscape) phone screens.
 * - Blog post media (img / iframe / video from the editor) never
 *   overflow the screen.
 * ===================================================================== */
@media (max-width: 767px) {
    .projects-filter__input {
        font-size: 16px;
    }

    .hero__slider,
    .hero > .hero__slide {
        min-height: clamp(380px, 72vh, 520px);
    }
}

.blog-post__content img,
.blog-post__content iframe,
.blog-post__content video {
    max-width: 100%;
    height: auto;
}

.blog-post__content iframe {
    aspect-ratio: 16 / 9;
}


/* =====================================================================
 * v50 FOOTER TAP TARGETS — keep as the LAST block in this file.
 * Phone/email links in the footer contact block and the "Back to top"
 * button were under the 44px touch-target size on phones.
 * ===================================================================== */
@media (max-width: 1023px) {
    .site-footer__contact a {
        display: inline-block;
        padding: 0.4rem 0;
    }

    .elevator-up-btn {
        min-height: 44px;
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }
}

/* =====================================================================
 * v53 HOME SECTIONS — Why Choose Us, stats, projects, steps, blog, FAQ.
 * Reuses the product-highlights look (white cards, --bl-* tokens).
 * Keep as the LAST block in this file.
 * ===================================================================== */
.home-section {
    padding-top: calc(var(--space-xl) + 1rem);
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
}

.home-section > h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    background: var(--bl-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 0.6rem;
    text-align: center;
}

.home-section__lede {
    max-width: 640px;
    margin: 0 auto var(--space-lg);
    text-align: center;
}

.home-section__cta {
    margin-top: var(--space-lg);
    text-align: center;
}

.home-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .home-grid--3,
    .home-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

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

.home-card,
.home-media-card,
.home-steps__item,
.home-faq details,
.home-stats__item {
    background: #FFFFFF;
    border: 1px solid var(--bl-line);
    border-radius: var(--bl-radius-card);
    box-shadow: 0 8px 24px rgba(75, 0, 114, 0.05);
}

.home-card {
    padding: var(--space-md) 1.5rem 1.6rem;
}

.home-card h3,
.home-steps__item h3,
.home-media-card h3 {
    font-weight: 800;
    letter-spacing: -0.01em;
}

.home-card p,
.home-steps__item p { margin-bottom: 0; }

/* ---- stats band ---- */
.home-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

@media (min-width: 768px) {
    .home-stats { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
}

.home-stats__item {
    padding: 1.2rem 1rem;
    text-align: center;
}

.home-stats__item strong {
    display: block;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    background: var(--bl-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.home-stats__item span {
    display: block;
    margin-top: 0.35rem;
    font-size: var(--font-size-sm);
}

/* ---- project / blog cards ---- */
.home-media-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.home-media-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--color-bg-light);
}

.home-media-card__body {
    padding: 1.1rem 1.4rem 1.5rem;
}

.home-media-card__meta {
    display: block;
    margin-bottom: 0.3rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-accent);
}

.home-media-card p { margin-bottom: 0; }

.home-media-card:focus-visible,
.home-faq summary:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
    .home-media-card {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .home-media-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 32px rgba(75, 0, 114, 0.12);
    }
}

/* ---- how it works ---- */
.home-steps {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: home-step;
}

@media (min-width: 768px)  { .home-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .home-steps { grid-template-columns: repeat(4, 1fr); } }

.home-steps__item {
    position: relative;
    padding: 3.4rem 1.5rem 1.6rem;
    counter-increment: home-step;
}

.home-steps__item::before {
    content: counter(home-step);
    position: absolute;
    top: 1.1rem;
    left: 1.5rem;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--bl-grad);
    color: #FFFFFF;
    font-weight: 800;
}

/* ---- FAQ ---- */
.home-faq {
    display: grid;
    gap: 0.75rem;
    max-width: 820px;
    margin: 0 auto;
}

.home-faq details { padding: 0 1.4rem; }

.home-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 52px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

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

.home-faq summary::after {
    content: "+";
    flex: none;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--color-primary);
}

.home-faq details[open] summary::after { content: "\2212"; }

.home-faq details p {
    margin: 0 0 1.2rem;
}

/* v53 — clickable category cards on the products page */
.home-card--link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-card--link:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
    .home-card--link {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .home-card--link:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 32px rgba(75, 0, 114, 0.12);
    }
}

/* =====================================================================
 * v58 — Products & Services page (pp-* classes), used by
 * products-and-services.php. Products first, services below.
 * ===================================================================== */

.pp-products {
    padding-top: var(--space-lg);
}

.pp-products > h1 {
    font-size: clamp(2rem, 4.4vw, 3rem);
    font-weight: 800;
    background: var(--bl-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 0.6rem;
    text-align: center;
}

.pp-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-md);
    text-align: center;
    border: 1px solid var(--bl-line);
    border-radius: var(--bl-radius-card);
    background: #FFFFFF;
}

.pp-note p {
    margin: 0;
}

/* product showcase rows: image + title + description, alternating sides */
.pp-list {
    display: grid;
    gap: var(--space-xl);
}

.pp-product {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
    align-items: center;
}

.pp-product__media {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--bl-line);
    border-radius: var(--bl-radius-card);
    background: var(--color-bg-light);
    box-shadow: 0 14px 36px rgba(75, 0, 114, 0.12);
}

.pp-product__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-product__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
}

.pp-product__body h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.pp-product__body h2 a {
    color: var(--color-primary);
    text-decoration: none;
}

.pp-product__body h2 a:hover,
.pp-product__body h2 a:focus-visible {
    color: var(--color-accent);
}

.pp-product__desc {
    margin: 0;
    line-height: 1.75;
}

.pp-product__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

@media (min-width: 900px) {
    .pp-product {
        grid-template-columns: 1.1fr 1fr;
        gap: var(--space-xl);
    }
    .pp-product--flip .pp-product__media {
        order: 2;
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .pp-product__img {
        transition: transform 0.6s ease;
    }
    .pp-product__media:hover .pp-product__img {
        transform: scale(1.04);
    }
}

/* ---------------------------------------------------------------------
 * Services
 * ------------------------------------------------------------------- */
.pp-services {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .pp-services { grid-template-columns: repeat(2, 1fr); }
}

.pp-service {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem;
    border: 1px solid var(--bl-line);
    border-radius: var(--bl-radius-card);
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(75, 0, 114, 0.05);
}

.pp-service__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(75, 0, 114, 0.09);
    color: var(--color-primary);
}

.pp-service__icon svg {
    width: 26px;
    height: 26px;
}

.pp-service h3 {
    margin-bottom: 0.3rem;
    font-weight: 800;
}

.pp-service p {
    margin: 0;
}

/* emergency call strip */
.pp-emergency {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-top: var(--space-md);
    padding: 1rem 1.4rem;
    border: 1px solid rgba(176, 0, 32, 0.25);
    border-radius: 999px;
    background: #FFF5F6;
    text-align: center;
}

.pp-emergency p {
    margin: 0;
}

.pp-emergency__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-danger);
    box-shadow: 0 0 0 0 rgba(176, 0, 32, 0.5);
}

.pp-emergency__call {
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background: var(--color-danger);
    color: #FFFFFF;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.pp-emergency__call:hover,
.pp-emergency__call:focus-visible {
    background: #8E0019;
    color: #FFFFFF;
}

@media (prefers-reduced-motion: no-preference) {
    .pp-emergency__dot {
        animation: pp-ping 2s ease-out infinite;
    }
}

@keyframes pp-ping {
    0%   { box-shadow: 0 0 0 0 rgba(176, 0, 32, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(176, 0, 32, 0); }
    100% { box-shadow: 0 0 0 0 rgba(176, 0, 32, 0); }
}

@media (max-width: 600px) {
    .pp-emergency {
        border-radius: 24px;
    }
}

/* single product image on the product detail view */
.product-detail__img {
    display: block;
    width: 100%;
    height: auto;
    margin: var(--space-md) 0;
    border-radius: var(--bl-radius-card);
    box-shadow: 0 14px 36px rgba(75, 0, 114, 0.12);
}

/* "Get a quote" on product rows: btn--ghost is white-on-dark by default, so give it a visible outline on the light page */
.pp-product__actions .btn--ghost {
    background: #FFFFFF;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: none;
}

.pp-product__actions .btn--ghost:hover,
.pp-product__actions .btn--ghost:focus-visible {
    background: var(--color-primary);
    color: #FFFFFF;
}

/* services: details list + link inside each card */
.pp-service__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.pp-service__list {
    display: grid;
    gap: 0.5rem;
    margin: 0.9rem 0 1rem;
    padding: 0.9rem 0 0;
    list-style: none;
    border-top: 1px dashed var(--bl-line);
    font-size: 0.92rem;
}

.pp-service__list li {
    position: relative;
    padding-left: 1.55rem;
}

.pp-service__list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0.1rem;
    display: grid;
    place-items: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
}

.pp-service__link {
    margin-top: auto;
    color: var(--color-primary);
    font-weight: 800;
    text-decoration: none;
}

.pp-service__link:hover,
.pp-service__link:focus-visible {
    color: var(--color-accent);
}

/* =====================================================================
 * Services — blog-style detail sections (pp-svc*) + animations
 * Layout per service: header band (icon + title + CTA) -> prose | included
 * -> how-it-works (horizontal timeline) -> why chips | callout -> next link
 * ===================================================================== */
html { scroll-behavior: smooth; }

.pp-svcnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: var(--space-md) 0;
}
.pp-svcnav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 0.55rem;
    border: 1px solid var(--bl-line);
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--color-text-heading);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.pp-svcnav__icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(75, 0, 114, 0.09);
    color: var(--color-primary);
    transition: background 0.25s ease, color 0.25s ease;
}
.pp-svcnav__icon svg { width: 16px; height: 16px; }
.pp-svcnav__link:hover,
.pp-svcnav__link:focus-visible,
.pp-svcnav__link.is-active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(75, 0, 114, 0.22);
}
.pp-svcnav__link:hover .pp-svcnav__icon,
.pp-svcnav__link:focus-visible .pp-svcnav__icon,
.pp-svcnav__link.is-active .pp-svcnav__icon {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.pp-svclist { display: grid; gap: clamp(1.5rem, 4vw, 2.6rem); }

/* ---------- card ---------- */
.pp-svc {
    position: relative;
    isolation: isolate;
    overflow: clip;
    display: grid;
    gap: 1.7rem;
    padding: clamp(1.3rem, 3vw, 2.2rem) clamp(1.3rem, 3vw, 2.2rem) clamp(1.3rem, 3vw, 2.2rem) clamp(2.5rem, 4.4vw, 3.3rem);
    border: 1px solid var(--bl-line);
    border-radius: calc(var(--bl-radius-card) + 6px);
    background: #FFFFFF;
    box-shadow: 0 12px 34px rgba(75, 0, 114, 0.07);
    scroll-margin-top: 110px;
}
.pp-svc--alt { background: linear-gradient(180deg, #FBF8FD 0%, #FFFFFF 100%); }

/* soft glow behind the card */
.pp-svc::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -140px;
    right: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(75, 0, 114, 0.10), transparent 70%);
    pointer-events: none;
}
.pp-svc--alt::before { right: auto; left: -120px; }

/* ---------- lift shaft + cabin (moves while scrolling) ---------- */
.pp-svc__rail {
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 0;
    width: 26px;
    pointer-events: none;
}
.pp-svc__track {
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    border-radius: 2px;
    background: var(--bl-line);
    overflow: hidden;
}
.pp-svc__fill {
    display: block;
    width: 100%;
    height: calc(var(--p, 0) * 100%);
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
}
.pp-svc__cabin {
    position: absolute;
    left: 5px;
    top: calc((100% - 24px) * var(--p, 0));
    width: 16px;
    height: 24px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--color-primary) 47%, #FFFFFF 47% 53%, var(--color-primary) 53%);
    box-shadow: 0 4px 10px rgba(75, 0, 114, 0.35);
}
.pp-svc__cabin::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -5px;
    width: 6px;
    height: 3px;
    margin-left: -3px;
    border-radius: 2px;
    background: var(--color-accent);
}

/* ---------- header band: icon | title + lead | CTA ---------- */
.pp-svc__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem 1.4rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--bl-line);
}
.pp-svc__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(75, 0, 114, 0.13), rgba(75, 0, 114, 0.04));
    color: var(--color-primary);
}
.pp-svc__icon svg { width: 32px; height: 32px; }
.pp-svc__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    border: 2px solid rgba(75, 0, 114, 0.35);
    opacity: 0;
}
.pp-svc__num {
    display: inline-block;
    margin-bottom: 0.2rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
}
.pp-svc__head h3 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
}
.pp-svc__head h3::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 0.5rem;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.pp-svc__lead { margin: 0.6rem 0 0; font-size: 1rem; }
.pp-svc__cta { position: relative; overflow: hidden; display: inline-flex; gap: 0.4rem; align-items: center; white-space: nowrap; }
.pp-svc__cta span { display: inline-block; transition: transform 0.25s ease; }
.pp-svc__cta:hover span,
.pp-svc__cta:focus-visible span { transform: translateX(5px); }

@media (max-width: 760px) {
    .pp-svc__head { grid-template-columns: auto 1fr; }
    .pp-svc__cta { grid-column: 1 / -1; justify-content: center; }
}

/* ---------- body grid ---------- */
.pp-svc__main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem 2rem;
    min-width: 0;
}
@media (min-width: 900px) {
    .pp-svc__main { grid-template-columns: 1.2fr 0.8fr; }
    .pp-svc__block--wide,
    .pp-svc__next { grid-column: 1 / -1; }
}

.pp-svc__prose p { margin: 0 0 0.9rem; font-size: 1.03rem; line-height: 1.8; }
.pp-svc__prose p:first-child { color: var(--color-text-heading); font-size: 1.1rem; }
.pp-svc__prose p:last-child { margin-bottom: 0; }

.pp-svc__block h4 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.9rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
}
.pp-svc__block h4::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--bl-line), transparent);
}
.pp-svc__block--panel {
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--bl-line);
    border-radius: var(--bl-radius-card);
    background: rgba(75, 0, 114, 0.035);
}

/* checklist */
.pp-svc__list { display: grid; gap: 0.65rem; margin: 0; padding: 0; list-style: none; }
.pp-svc__list li { position: relative; padding-left: 1.8rem; }
.pp-svc__list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0.1rem;
    display: grid;
    place-items: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 800;
}

/* steps: vertical on small screens, horizontal timeline on desktop */
.pp-steps {
    position: relative;
    display: grid;
    gap: 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ppstep;
}
.pp-steps::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    transform-origin: top;
}
.pp-steps li {
    position: relative;
    display: grid;
    gap: 0.15rem;
    padding-left: 3rem;
    counter-increment: ppstep;
}
.pp-steps li::before {
    content: counter(ppstep);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 0 0 4px #FFFFFF, 0 6px 14px rgba(75, 0, 114, 0.25);
}
.pp-steps strong { color: var(--color-text-heading); font-weight: 800; }
.pp-steps span { font-size: 0.95rem; }

@media (min-width: 900px) {
    .pp-steps { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
    .pp-steps::before {
        left: 16px;
        right: calc(25% - 30px);
        top: 15px;
        bottom: auto;
        width: auto;
        height: 2px;
        background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
        transform-origin: left;
    }
    .pp-steps li { padding: 2.9rem 0 0; }
}

/* chips */
.pp-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.pp-chips li {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(75, 0, 114, 0.08);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* callout */
.pp-callout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.1rem 1.3rem;
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--bl-radius-card) var(--bl-radius-card) 0;
    background: rgba(75, 0, 114, 0.05);
}
.pp-callout strong { display: block; margin-bottom: 0.25rem; color: var(--color-text-heading); }
.pp-callout p { margin: 0; }
.pp-callout--danger { border-left-color: var(--color-danger); background: #FFF5F6; }
.pp-callout--danger strong::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 0.55rem;
    border-radius: 50%;
    background: var(--color-danger);
}

/* next link */
.pp-svc__next {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border: 1px dashed var(--bl-line);
    border-radius: 999px;
    color: var(--color-text-body);
    text-decoration: none;
    font-size: 0.92rem;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.pp-svc__next strong { color: var(--color-primary); }
.pp-svc__next:hover,
.pp-svc__next:focus-visible { border-color: var(--color-primary); background: rgba(75, 0, 114, 0.05); }
.pp-svc__next span { display: inline-block; transition: transform 0.25s ease; }
.pp-svc__next:hover span { transform: translateY(3px); }

@media (max-width: 600px) {
    .pp-svcnav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.4rem; scrollbar-width: none; }
    .pp-svcnav__link { flex: none; }
    .pp-svc__next { justify-self: stretch; justify-content: center; text-align: center; }
}

/* ---------- animations (JS adds .pp-js; skipped for reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .pp-svc::before { animation: pp-drift 14s ease-in-out infinite alternate; }

    .pp-js .pp-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
        transition-delay: var(--d, 0s);
    }
    .pp-js .pp-reveal.is-in { opacity: 1; transform: none; }

    .pp-js .pp-stagger > li,
    .pp-js .pp-stagger > p {
        opacity: 0;
        transform: translateX(-16px);
        transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
        transition-delay: calc(0.15s + var(--i, 0) * 0.12s);
    }
    .pp-js .is-in .pp-stagger > li,
    .pp-js .is-in .pp-stagger > p,
    .pp-js .pp-stagger.is-in > li,
    .pp-js .pp-stagger.is-in > p { opacity: 1; transform: none; }

    /* title underline draws in */
    .pp-js .pp-svc__head h3::after { width: 0; transition: width 0.8s ease 0.5s; }
    .pp-js .pp-svc__head.is-in h3::after { width: 56px; }

    /* icon floats + ring pings */
    .pp-svc__head.is-in .pp-svc__icon { animation: pp-float 3.6s ease-in-out infinite; }
    .pp-svc__head.is-in .pp-svc__icon::after { animation: pp-ring 3s ease-out infinite; }

    /* ticks pop one by one */
    .pp-js .pp-svc__list li::before {
        transform: scale(0);
        transition: transform 0.45s cubic-bezier(0.3, 1.7, 0.5, 1);
        transition-delay: calc(0.35s + var(--i, 0) * 0.12s);
    }
    .pp-js .is-in .pp-svc__list li::before { transform: scale(1); }

    /* timeline line draws, numbers pop */
    .pp-js .pp-steps::before { transform: scaleY(0); transition: transform 1.2s ease 0.2s; }
    .pp-js .is-in .pp-steps::before { transform: scaleY(1); }
    .pp-js .pp-steps li::before {
        transform: scale(0);
        transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
        transition-delay: calc(0.2s + var(--i, 0) * 0.15s);
    }
    .pp-js .is-in .pp-steps li::before { transform: scale(1); }
    .pp-js .is-in .pp-steps li:hover::before { transform: scale(1.15); }
    .pp-steps li strong { transition: color 0.25s ease; }
    .pp-steps li:hover strong { color: var(--color-primary); }

    /* chips pop */
    .pp-js .pp-chips li { transform: scale(0.8) translateY(10px); }
    .pp-js .is-in .pp-chips li { transform: none; }
    .pp-js .is-in .pp-chips li:hover,
    .pp-chips li:hover { transform: translateY(-3px); background: var(--color-primary); color: #FFFFFF; }
    .pp-chips li { transition: transform 0.4s ease, background 0.25s ease, color 0.25s ease; }

    .pp-js .pp-callout { transform: translateX(24px); }
    .pp-js .pp-callout.is-in { transform: none; }
    .pp-callout--danger strong::before { animation: pp-ping 2s ease-out infinite; }

    .pp-svc { transition: transform 0.35s ease, box-shadow 0.35s ease; }
    .pp-svc:hover { transform: translateY(-3px); box-shadow: 0 20px 46px rgba(75, 0, 114, 0.12); }

    .pp-svc__cta::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: -60%;
        width: 40%;
        background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
        transform: skewX(-20deg);
    }
    .pp-svc__cta:hover::after,
    .pp-svc__cta:focus-visible::after { animation: pp-shimmer 0.9s ease; }

    .pp-svcnav__link:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
    .pp-js .pp-steps::before { transform: scaleX(0); }
    .pp-js .is-in .pp-steps::before { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@keyframes pp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes pp-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 50px) scale(1.15); } }
@keyframes pp-ring { 0% { transform: scale(1); opacity: 0.6; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes pp-shimmer { from { left: -60%; } to { left: 130%; } }

/* =====================================================================
 * "Stuck in a lift" safety section (pp-stuck*) + animated illustration
 * ===================================================================== */
.pp-svcnav__link--alert { border-color: rgba(176, 0, 32, 0.4); color: var(--color-danger); }
.pp-svcnav__link--alert .pp-svcnav__icon { background: rgba(176, 0, 32, 0.1); color: var(--color-danger); }
.pp-svcnav__link--alert:hover,
.pp-svcnav__link--alert:focus-visible { border-color: var(--color-danger); background: var(--color-danger); color: #FFFFFF; box-shadow: 0 8px 20px rgba(176, 0, 32, 0.3); }

.pp-callout__link { display: inline-block; margin-top: 0.6rem; font-weight: 800; color: var(--color-danger); text-decoration: none; }
.pp-callout__link:hover, .pp-callout__link:focus-visible { text-decoration: underline; }

.pp-stuck-sec { padding-top: 0; }

.pp-stuck {
    position: relative;
    isolation: isolate;
    overflow: clip;
    display: grid;
    gap: 2rem;
    padding: clamp(1.6rem, 4vw, 3rem);
    padding-top: calc(clamp(1.6rem, 4vw, 3rem) + 10px);
    border-radius: calc(var(--bl-radius-card) + 10px);
    background: linear-gradient(135deg, var(--color-midnight) 0%, #2a0447 55%, var(--color-primary) 100%);
    color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 60px rgba(13, 2, 26, 0.35);
}
@media (min-width: 960px) {
    .pp-stuck { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 2.5rem; }
}

/* hazard stripe on top */
.pp-stuck::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(45deg, #e0243a 0 7.07px, #FFFFFF 7.07px 14.14px);
    background-size: 20px 20px;
}
/* red glow behind the illustration */
.pp-stuck::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -90px;
    top: 15%;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 36, 58, 0.32), transparent 65%);
    pointer-events: none;
}

.pp-stuck__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(224, 36, 58, 0.18);
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.pp-stuck__badge i { width: 9px; height: 9px; border-radius: 50%; background: #ff4d5f; }

.pp-stuck__title { margin: 0.9rem 0 0.6rem; color: #FFFFFF; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; }
.pp-stuck__lead { margin: 0; font-size: 1.05rem; color: rgba(255, 255, 255, 0.82); }

.pp-stuck__steps { display: grid; gap: 0.8rem; margin: 1.5rem 0; padding: 0; list-style: none; counter-reset: pks; }
.pp-stuck__steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    counter-increment: pks;
    transition: background 0.25s ease, border-color 0.25s ease;
}
.pp-stuck__steps li::before {
    content: counter(pks);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e0243a;
    color: #FFFFFF;
    font-weight: 800;
    box-shadow: 0 0 0 4px rgba(224, 36, 58, 0.25);
}
.pp-stuck__steps strong { display: block; color: #FFFFFF; font-weight: 800; }
.pp-stuck__steps span { font-size: 0.95rem; color: rgba(255, 255, 255, 0.78); }
.pp-stuck__steps li:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 77, 95, 0.6); }

.pp-stuck__dd { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1.5rem; }
@media (min-width: 600px) { .pp-stuck__dd { grid-template-columns: 1fr 1fr; } }
.pp-stuck__do, .pp-stuck__dont { padding: 1rem 1.1rem; border-radius: 18px; border: 1px solid; }
.pp-stuck__do { border-color: rgba(76, 217, 140, 0.4); background: rgba(76, 217, 140, 0.08); }
.pp-stuck__dont { border-color: rgba(255, 77, 95, 0.45); background: rgba(255, 77, 95, 0.09); }
.pp-stuck__dd h3 { margin: 0 0 0.6rem; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: #FFFFFF; }
.pp-stuck__dd ul { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; font-size: 0.93rem; }
.pp-stuck__dd li { position: relative; padding-left: 1.6rem; }
.pp-stuck__dd li::before {
    position: absolute;
    left: 0;
    top: 0.1rem;
    display: grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 800;
    color: #0d021a;
}
.pp-stuck__do li::before { content: "\2713"; background: #4cd98c; }
.pp-stuck__dont li::before { content: "\2715"; background: #ff6b7a; }

.pp-stuck__call {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 1.6rem 0.8rem 1.1rem;
    border-radius: 999px;
    background: #e0243a;
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 0 0 0 rgba(255, 77, 95, 0.6);
    transition: background 0.25s ease, transform 0.25s ease;
}
.pp-stuck__call svg { width: 26px; height: 26px; flex: none; }
.pp-stuck__call small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.pp-stuck__call:hover, .pp-stuck__call:focus-visible { background: #c4162c; color: #FFFFFF; }

/* illustration */
.pp-stuck__art { margin: 0; width: 100%; max-width: 560px; justify-self: center; }
.pp-stuck__art figcaption { margin-top: 0.6rem; text-align: center; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.pp-stuck__svg { display: block; width: 100%; height: auto; overflow: visible; }
.pp-stuck__svg text { font-family: inherit; }
.pk-rail { stroke: rgba(255, 255, 255, 0.16); stroke-width: 2; stroke-dasharray: 4 10; }
.pk-ring { fill: none; stroke: #ff4d5f; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pk-glow { fill: none; stroke: #ff4d5f; stroke-width: 2; opacity: 0; }
.pk-trace { fill: none; stroke: #ffd15c; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 110 500; }
.pk-flow { fill: none; stroke: #ffd15c; stroke-width: 3; stroke-dasharray: 7 7; }
.pk-disp--b { opacity: 0; }
.pk-gap { opacity: 0.6; }
.pk-tagarrow { transform-box: fill-box; }

@media (prefers-reduced-motion: no-preference) {
    .pp-stuck::before { animation: pk-stripe 1.2s linear infinite; }
    .pp-stuck::after { animation: pk-glowpulse 3s ease-in-out infinite; }
    .pp-stuck__badge i { animation: pp-ping 2s ease-out infinite; box-shadow: 0 0 0 0 rgba(255, 77, 95, 0.6); }
    .pp-stuck__steps li { transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease; }
    .pp-js .is-in .pp-stuck__steps li:hover { transform: translateX(5px); }
    .pp-stuck__call { animation: pk-callping 2s ease-out infinite; }
    .pp-stuck__call:hover { transform: translateY(-2px); }
    .pp-stuck__call svg { animation: pk-ringphone 2.6s ease-in-out infinite; transform-origin: 50% 50%; }

    /* illustration parts appear one by one */
    .pp-js .pk-pop {
        opacity: 0;
        transform: translateY(14px);
        transform-box: fill-box;
        transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
        transition-delay: var(--d, 0s);
    }
    .pp-js .is-in .pk-pop { opacity: 1; transform: none; }

    .pk-rail { animation: pk-rail 1.6s linear infinite; }
    .pk-cabin { animation: pk-shake 5s ease-in-out infinite; }
    .pk-disp--a { animation: pk-a 2.4s ease-in-out infinite; }
    .pk-disp--b { animation: pk-b 2.4s ease-in-out infinite; }
    .pk-beacon { animation: pk-blink 1s ease-in-out infinite; }
    .pk-gap { animation: pk-gap 1.4s ease-in-out infinite; }
    .pk-ring { animation: pk-ping 2.4s ease-out infinite; }
    .pk-glow { animation: pk-glow 2s ease-in-out infinite; }
    .pk-trace { animation: pk-trace 3.2s linear infinite; }
    .pk-flow { animation: pk-flow 0.9s linear infinite; }
    .pk-tagarrow { animation: pk-nudge 1.2s ease-in-out infinite; }
}

@keyframes pk-stripe { from { background-position: 0 0; } to { background-position: 20px 0; } }
@keyframes pk-glowpulse { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes pk-callping { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 95, 0.55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(255, 77, 95, 0); } }
@keyframes pk-ringphone { 0%, 60%, 100% { transform: rotate(0); } 66% { transform: rotate(-14deg); } 72% { transform: rotate(12deg); } 78% { transform: rotate(-10deg); } 84% { transform: rotate(8deg); } 90% { transform: rotate(0); } }
@keyframes pk-rail { to { stroke-dashoffset: -28; } }
@keyframes pk-shake { 0%, 86%, 100% { transform: translateX(0); } 88% { transform: translateX(-2px); } 90% { transform: translateX(2px); } 92% { transform: translateX(-2px); } 94% { transform: translateX(1px); } 96% { transform: translateX(0); } }
@keyframes pk-a { 0%, 42% { opacity: 1; } 50%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes pk-b { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pk-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes pk-gap { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.95; } }
@keyframes pk-ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes pk-glow { 0%, 100% { opacity: 0; stroke-width: 2; } 50% { opacity: 0.9; stroke-width: 9; } }
@keyframes pk-trace { to { stroke-dashoffset: -610; } }
@keyframes pk-flow { to { stroke-dashoffset: -14; } }
@keyframes pk-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }

/* =====================================================================
 * Products page — wider layout + section spacing (pp-wide)
 * --pp-wide: content width of the products/services/safety sections.
 * It matches the header width (1480px); raise it to use even more of the page.
 * ===================================================================== */
:root { --pp-wide: var(--header-max-width, 1480px); }

.container.pp-wide { max-width: var(--pp-wide); }
.pp-wide {
    padding-left: clamp(1rem, 3vw, 2.5rem);
    padding-right: clamp(1rem, 3vw, 2.5rem);
}

/* products: bigger, calmer rows on wide screens */
.pp-wide .pp-product__media { aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
    .pp-wide .pp-product { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
}
.pp-wide .pp-product__body { max-width: 640px; }
.pp-wide .pp-product__desc { font-size: 1.04rem; }
.pp-list { gap: clamp(3rem, 6vw, 5rem); }

/* clear breathing room between the big blocks (no more "touching" sections) */
.pp-svcs { padding-top: clamp(4rem, 8vw, 6.5rem); padding-bottom: 0; }
.pp-svcnav { margin: var(--space-md) 0 clamp(2rem, 4vw, 3rem); }
.pp-svclist { gap: clamp(2rem, 5vw, 3.5rem); }
.pp-svc__prose { max-width: 68ch; }

.pp-stuck-sec { padding-top: clamp(4.5rem, 9vw, 7rem); padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }

/* titled header for the safety section (sits above the dark card) */
.pp-sec-head { text-align: center; margin-bottom: clamp(1.5rem, 3vw, 2.2rem); }
.pp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(176, 0, 32, 0.3);
    border-radius: 999px;
    background: #FFF5F6;
    color: var(--color-danger);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.pp-eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--color-danger); }
.pp-sec-head .home-section__lede { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
    .pp-eyebrow i { animation: pp-ping 2s ease-out infinite; }
}

/* wider safety card */
.pp-stuck { padding-left: clamp(1.6rem, 4vw, 3.5rem); padding-right: clamp(1.6rem, 4vw, 3.5rem); }
@media (min-width: 960px) { .pp-stuck { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); } }
.pp-stuck__art { max-width: 680px; }

/* =====================================================================
 * Section headers (pp-sec-head): eyebrow + gradient title + lift divider + lede
 * Used by "Our Elevators", "Services Beyond the Lift", "Emergency Help"
 * ===================================================================== */
.pp-sec-head {
    position: relative;
    isolation: isolate;
    max-width: 820px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    text-align: center;
}
.pp-sec-head--products { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.pp-sec-head--services { margin-bottom: 0; }

/* soft glow behind the title */
.pp-sec-head::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: -34px;
    width: min(620px, 95%);
    height: 240px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(75, 0, 114, 0.11), transparent 70%);
    pointer-events: none;
}
.pp-sec-head--alert::before { background: radial-gradient(ellipse at center, rgba(176, 0, 32, 0.12), transparent 70%); }

.pp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.9rem;
    padding: 0.36rem 1rem;
    border: 1px solid rgba(75, 0, 114, 0.22);
    border-radius: 999px;
    background: rgba(75, 0, 114, 0.06);
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.pp-eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--color-accent); }
.pp-eyebrow--alert { border-color: rgba(176, 0, 32, 0.3); background: #FFF5F6; color: var(--color-danger); }
.pp-eyebrow--alert i { background: var(--color-danger); }

.pp-sec-head h1,
.pp-sec-head h2 {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    font-size: clamp(2.1rem, 5vw, 3.3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.01em;
    background: var(--bl-grad);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.pp-sec-head--alert h2 { background-image: linear-gradient(90deg, var(--color-primary), var(--color-danger)); }

/* divider: a tiny lift cabin rides along the line */
.pp-sec-head__line {
    position: relative;
    display: block;
    width: min(260px, 60%);
    height: 2px;
    margin: 1.2rem auto 1.3rem;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
}
.pp-sec-head--alert .pp-sec-head__line { background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-danger), transparent); }
.pp-sec-head__line i {
    position: absolute;
    top: -9px;
    left: 50%;
    width: 12px;
    height: 20px;
    margin-left: -6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-primary) 45%, #FFFFFF 45% 55%, var(--color-primary) 55%);
    box-shadow: 0 3px 8px rgba(75, 0, 114, 0.35);
}

.pp-sec-head .home-section__lede {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.7;
}

@media (prefers-reduced-motion: no-preference) {
    .pp-sec-head h1,
    .pp-sec-head h2 { animation: pp-shine 6s ease-in-out infinite alternate; }
    .pp-sec-head__line i { animation: pp-ride 3.2s ease-in-out infinite alternate; }
    .pp-sec-head::before { animation: pp-drift 12s ease-in-out infinite alternate; }
    .pp-js .pp-sec-head__line.pp-reveal { transform: scaleX(0); opacity: 1; transition: transform 0.9s ease 0.2s; }
    .pp-js .pp-sec-head__line.pp-reveal.is-in { transform: scaleX(1); }
}
@keyframes pp-shine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes pp-ride { from { left: 4%; } to { left: 96%; } }

/* =====================================================================
 * Polish — section header spacing + product image shadow
 * ===================================================================== */
.pp-sec-head { padding-top: 0.4rem; }
.pp-eyebrow { margin-bottom: 1.15rem; }

/* give the title room (descenders were being clipped by the gradient text) */
.pp-sec-head h1,
.pp-sec-head h2 { padding-bottom: 0.12em; }

/* divider: more air above/below, calmer cabin */
.pp-sec-head__line { margin: 1.5rem auto 1.7rem; width: min(220px, 55%); }
.pp-sec-head__line i {
    top: -6px;
    width: 8px;
    height: 14px;
    margin-left: -4px;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(75, 0, 114, 0.3);
}

.pp-sec-head .home-section__lede {
    max-width: 640px;
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--color-text-body);
}

/* breathing room between the services header and the nav chips */
.pp-svcnav { margin-top: clamp(2rem, 4vw, 2.8rem); }

/* product images: soft shadow underneath */
.pp-product__media {
    box-shadow:
        0 2px 6px rgba(13, 2, 26, 0.08),
        0 26px 32px -14px rgba(75, 0, 114, 0.40),
        0 46px 70px -24px rgba(75, 0, 114, 0.32);
}
.product-detail__img {
    box-shadow:
        0 2px 6px rgba(13, 2, 26, 0.08),
        0 26px 32px -14px rgba(75, 0, 114, 0.40),
        0 46px 70px -24px rgba(75, 0, 114, 0.32);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .pp-product__media { transition: box-shadow 0.45s ease, transform 0.45s ease; }
    .pp-product__media:hover {
        transform: translateY(-4px);
        box-shadow:
            0 2px 6px rgba(13, 2, 26, 0.08),
            0 34px 40px -14px rgba(75, 0, 114, 0.46),
            0 56px 80px -24px rgba(75, 0, 114, 0.38);
    }
}

/* =====================================================================
 * Section headers — refined title + lede (badge & divider removed)
 * ===================================================================== */
.pp-sec-head h1,
.pp-sec-head h2 {
    margin: 0 auto 1.15rem;
    font-size: clamp(2.2rem, 5.2vw, 3.5rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.025em;
    text-wrap: balance;
    filter: drop-shadow(0 8px 18px rgba(75, 0, 114, 0.16));
}
.pp-sec-head--alert h2 { filter: drop-shadow(0 8px 18px rgba(176, 0, 32, 0.16)); }

/* short gradient accent bar above the lede (pure CSS, no markup) */
.pp-sec-head .home-section__lede::before {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 0 auto 1.1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.pp-sec-head--alert .home-section__lede::before {
    background: linear-gradient(90deg, var(--color-primary), var(--color-danger));
}

.pp-sec-head .home-section__lede {
    max-width: 600px;
    margin: 0 auto;
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    font-weight: 500;
    line-height: 1.75;
    letter-spacing: 0.005em;
    color: #5A4B68;
    text-wrap: balance;
}
.pp-sec-head--alert .home-section__lede { color: #6B4A55; }

/* ---- header tweak: wider text (single line on desktop) + a bit more air ---- */
.pp-sec-head {
    max-width: 980px;
    padding-top: clamp(1rem, 2.5vw, 2rem);
    padding-bottom: clamp(0.8rem, 2vw, 1.5rem);
}
.pp-sec-head h1,
.pp-sec-head h2 {
    font-size: clamp(2.1rem, 4.8vw, 3.3rem);
    text-wrap: wrap;
}
.pp-sec-head .home-section__lede {
    max-width: 840px;
    text-wrap: wrap;
}



/* ---- how it works: connected timeline ---- */
.home-steps__item::before {
    width: 2.6rem;
    height: 2.6rem;
    top: 1rem;
    box-shadow: 0 0 0 5px rgba(75, 0, 114, 0.1);
}
.home-steps__item { padding-top: 4.3rem; }
@media (min-width: 1024px) {
    .home-steps__item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: calc(1rem + 1.3rem - 1px);
        left: calc(1.5rem + 2.6rem + 8px);
        width: calc(100% - 4.1rem - 8px + var(--space-md));
        height: 2px;
        background: repeating-linear-gradient(90deg, var(--color-primary) 0 6px, transparent 6px 12px);
        opacity: 0.35;
        pointer-events: none;
    }
}

/* ---- FAQ: clearer open state ---- */
.home-faq details { transition: box-shadow 0.25s ease, border-color 0.25s ease; }
.home-faq details[open] {
    border-color: rgba(75, 0, 114, 0.35);
    box-shadow: 0 12px 28px rgba(75, 0, 114, 0.1);
}
.home-faq details[open] summary { color: var(--color-primary); }

.home-section.pp-wide .home-grid { gap: clamp(1rem, 2vw, 1.5rem); }
.home-section.pp-wide .home-faq { max-width: 1040px; }
.home-section.pp-wide .home-section__lede { max-width: 760px; }

/* =====================================================================
 * Shared "Get a Free Consultation Today" banner (.hs-consult) — the
 * lift-arrives / doors-open design from the home page. Lives here so any
 * page can use it (contact.php does). Markup: copy the <section
 * class="consultation-banner hs-consult"> block from index.php.
 * main.js (initHomeSections) runs the floor counter + door animation on
 * any page that has .hs-consult. index.css / about.php still carry their
 * own identical copies; they can be deleted later.
 * ===================================================================== */
/* ---- consultation banner: lift arrives, doors open ---- */
.hs-consult { position: relative; overflow: hidden; isolation: isolate; text-align: left; }
.hs-consult::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 72px);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
    mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.hs-consult::after {
    content: "";
    position: absolute;
    left: -140px;
    bottom: -180px;
    z-index: -1;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(142, 61, 184, 0.6), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}
.hs-consult__inner { display: grid; gap: 2.4rem; align-items: center; padding-top: 0.6rem; padding-bottom: 0.6rem; }

.hs-consult__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: var(--font-size-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
}
.hs-consult__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38F09A;
    box-shadow: 0 0 0 0 rgba(56, 240, 154, 0.5);
}
.hs-consult h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(2rem, 4.4vw, 3.3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background-image: linear-gradient(100deg, #FFFFFF 0%, #FFFFFF 55%, #A8F2CB 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hs-consult__text > p { max-width: 560px; margin: 0; font-size: 1.1rem; line-height: 1.7; }
.hs-consult__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hs-consult__call {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    color: #FFFFFF;
    font-weight: 800;
}
.hs-consult__call svg { width: 18px; height: 18px; }
.hs-consult__call:hover, .hs-consult__call:focus-visible { background: rgba(255, 255, 255, 0.14); color: #FFFFFF; }

.hs-consult__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    margin: 1.8rem 0 0;
    padding: 1.2rem 0 0;
    list-style: none;
    border-top: 1px dashed rgba(255, 255, 255, 0.28);
}
.hs-consult__checks li { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255, 255, 255, 0.92); font-weight: 600; }
.hs-consult__checks li::before {
    content: "\2713";
    display: grid;
    place-items: center;
    flex: none;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #17C46E;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 800;
}

/* the lift scene (desktop) */
.hs-consult__scene { display: none; }
@media (min-width: 900px) {
    .hs-consult__inner { grid-template-columns: 1.3fr 0.7fr; }
    .hs-consult__scene { position: relative; display: block; width: 260px; margin: 0 auto; padding: 0.9rem 0.9rem 0; }
}
.hs-consult__car {
    position: relative;
    padding: 0.8rem 0.8rem 0;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 28px 28px 6px 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hs-consult__display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: fit-content;
    min-width: 92px;
    margin: 0 auto 0.7rem;
    padding: 0.2rem 0.9rem;
    border-radius: 8px;
    background: #0D021A;
    box-shadow: inset 0 0 0 1px rgba(127, 232, 181, 0.25);
    color: #7FE8B5;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(56, 240, 154, 0.6);
}
.hs-consult__shaft {
    position: relative;
    display: block;
    height: 320px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #1B0A2A;
    box-shadow: inset 0 0 0 2px rgba(23, 196, 110, 0.35), inset 0 0 28px rgba(0, 0, 0, 0.5);
}
/* cabin interior: warm wall panels, ceiling light, handrail, floor glow */
.hs-consult__cabin {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 236, 190, 0.9) 0%, rgba(255, 236, 190, 0) 22%),
        linear-gradient(180deg, transparent 78%, rgba(255, 190, 110, 0.55) 100%),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 46px),
        linear-gradient(180deg, #C98A45 0%, #8B5526 55%, #5B3414 100%);
}
.hs-consult__cabin::before {   /* centre seam + soft light pool */
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 55% at 50% 42%, rgba(255, 226, 170, 0.55), transparent 70%),
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(0, 0, 0, 0.35) 50%, transparent calc(50% + 1px));
}
.hs-consult__cabin::after {    /* handrail */
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 58%;
    height: 7px;
    border-radius: 7px;
    background: linear-gradient(180deg, #F4E7D2, #A88A62 60%, #6E5636);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.35);
}
.hs-consult__door {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background:
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 5px),
        linear-gradient(90deg, #E2D9EA 0%, #B4A2C4 50%, #8E7AA3 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.hs-consult__door--l { left: 0; border-right: 1px solid rgba(13, 2, 26, 0.45); }
.hs-consult__door--r { right: 0; border-left: 1px solid rgba(13, 2, 26, 0.45); }
.hs-consult__sill { display: block; height: 10px; margin: 0 -0.8rem; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #CFC3DA, #7C6A90); }

/* call panel beside the doors */
.hs-consult__panel {
    position: absolute;
    right: -34px;
    top: 52%;
    display: grid;
    gap: 0.45rem;
    padding: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 14px;
    background: rgba(13, 2, 26, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.hs-consult__panel i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    font-size: 0.55rem;
    font-style: normal;
}
.hs-consult__panel i:first-child { background: #17C46E; box-shadow: 0 0 12px rgba(56, 240, 154, 0.8); }

/* floating glass chips */
.hs-consult__chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}
.hs-consult__chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #38F09A; }
.hs-consult__chip--a { left: -70px; top: 16%; }
.hs-consult__chip--b { right: -60px; bottom: 14%; }

/* motion: floor counter -> doors open (main.js adds .is-arrived) */
.hs-consult.is-arrived .hs-consult__door--l,
html:not(.hs-js) .hs-consult .hs-consult__door--l { transform: translateX(-94%); }
.hs-consult.is-arrived .hs-consult__door--r,
html:not(.hs-js) .hs-consult .hs-consult__door--r { transform: translateX(94%); }
@media (prefers-reduced-motion: no-preference) {
    .hs-consult__door { transition: transform 1.5s cubic-bezier(0.6, 0, 0.2, 1); }
    .hs-consult__dot { animation: hs-ping-green 2s ease-out infinite; }
    .hs-consult__chip--a { animation: hs-bob 5s ease-in-out infinite; }
    .hs-consult__chip--b { animation: hs-bob 6s ease-in-out -2s infinite; }
    .hs-consult.is-arrived .hs-consult__display { animation: hs-blink 2.4s ease-in-out infinite; }
}
@keyframes hs-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@keyframes hs-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}
@keyframes hs-ping-green {
    0%   { box-shadow: 0 0 0 0 rgba(56, 240, 154, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(56, 240, 154, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 240, 154, 0); }
}

/* =====================================================================
 * Product photos: cover image + "View all" viewer (products-and-services.php)
 * No slider. The listing shows ONE cover photo per product; the
 * "View all" pill opens a full-screen viewer (grid -> large photo).
 * The detail page shows the cover large, then every other photo as a grid.
 * ===================================================================== */

/* ---- listing: cover photo ---- */
.pp-product__link {
    position: absolute;
    inset: 0;
    display: block;
}

/* soft dark fade at the bottom of the photo so the button reads on any image */
.pp-product__media[data-pp-photos]::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 38%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(13, 2, 26, 0.55));
}

/* The label can be ANY text (short or long): the pill grows with it, never
   overflows the photo, and a very long label is cut with "…". */
.pp-viewall {
    position: absolute;
    right: 0.9rem;
    bottom: 0.9rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-sizing: border-box;
    max-width: calc(100% - 1.8rem);
    min-height: 40px;
    padding: 0.5rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(13, 2, 26, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 22px rgba(13, 2, 26, 0.35);
    color: #FFFFFF;
    font: inherit;
    font-size: var(--font-size-sm);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.pp-viewall > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pp-viewall svg { width: 18px; height: 18px; flex: none; }
.pp-viewall:hover,
.pp-viewall:focus-visible { background: var(--color-accent); transform: translateY(-2px); }
.pp-viewall:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }

/* ---- detail page: cover + grid of all photos ---- */
.pp-gallery { margin: var(--space-md) 0; }

.pp-gallery__hero {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--bl-radius-card);
    background: var(--color-bg-light);
    box-shadow:
        0 2px 6px rgba(13, 2, 26, 0.08),
        0 26px 32px -14px rgba(75, 0, 114, 0.40),
        0 46px 70px -24px rgba(75, 0, 114, 0.32);
}
button.pp-gallery__hero { cursor: zoom-in; }

.pp-gallery__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-gallery__grid {
    display: grid;
    grid-auto-rows: max-content;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1.1rem;
}
.pp-gallery__item {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--bl-line);
    border-radius: 14px;
    background: var(--color-bg-light);
    cursor: zoom-in;
}
.pp-gallery__item img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.pp-gallery__item:focus-visible,
.pp-gallery__hero:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .pp-gallery__item img { transition: transform 0.45s ease; }
    .pp-gallery__item:hover img { transform: scale(1.06); }
}

/* ---- the viewer (built by main.js on first open) ---- */
html.pp-viewer-open { overflow: hidden; }

.pp-viewer {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 200;
    display: flex;
    flex-direction: column;
    background: rgba(13, 2, 26, 0.96);
    color: #FFFFFF;
}
.pp-viewer[hidden] { display: none; }

.pp-viewer__bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem clamp(0.8rem, 3vw, 1.6rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.pp-viewer__title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pp-viewer__count {
    flex: none;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.75);
}
.pp-viewer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 40px;
    height: 40px;
    padding: 0 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font: inherit;
    font-size: var(--font-size-sm);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}
.pp-viewer__btn:hover,
.pp-viewer__btn:focus-visible { background: rgba(255, 255, 255, 0.2); }
.pp-viewer__btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.pp-viewer__btn--icon { width: 40px; padding: 0; font-size: 1.5rem; line-height: 1; }
.pp-viewer__btn[hidden] { display: none; }

.pp-viewer__grid {
    flex: 1 1 0;
    min-height: 0;
    display: grid;
    grid-auto-rows: max-content;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    align-content: start;
    gap: 0.75rem;
    padding: clamp(0.8rem, 3vw, 1.6rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.pp-viewer__tile {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    cursor: zoom-in;
}
.pp-viewer__tile img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.pp-viewer__tile:hover { border-color: rgba(255, 255, 255, 0.55); }
.pp-viewer__tile:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.pp-viewer__stage {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0.8rem clamp(3rem, 8vw, 5.5rem);
}
.pp-viewer__stage[hidden],
.pp-viewer__grid[hidden] { display: none; }
.pp-viewer__stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}
.pp-viewer__nav {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    padding: 0 0 3px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}
.pp-viewer__nav--prev { left: clamp(0.4rem, 2vw, 1.2rem); }
.pp-viewer__nav--next { right: clamp(0.4rem, 2vw, 1.2rem); }
.pp-viewer__nav:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

@media (max-width: 600px) {
    .pp-viewer__grid { grid-template-columns: repeat(2, 1fr); }
    .pp-viewer__stage { padding: 0.5rem; }
    .pp-viewer__nav { width: 38px; height: 38px; margin-top: -19px; background: rgba(255, 255, 255, 0.8); }
    .pp-viewall { right: 0.6rem; bottom: 0.6rem; padding: 0.45rem 0.85rem; }
}