/* ==========================================================================
   Prism Rail — site chrome
   Header (top bar, main bar, mega menus), search dialog, mobile drawer,
   CTA band, footer, quick actions, download modal, product search.
   Loaded after style.css; design tokens (--brand-*, --space-*, --z-*, …)
   live in style.css :root. Breakpoints follow Bootstrap: 576 / 768 / 992 / 1200.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base, accessibility
   -------------------------------------------------------------------------- */
html {
    scroll-padding-top: var(--anchor-offset);
}

#main:focus {
    outline: none;
}

/* Bootstrap's wide gutters (.row.g-5 = -1.5rem margins) poke 12px past the
   container on phones. body's clip is handed to the viewport, which mobile
   browsers still zoom out to fit; clipping these wrappers themselves keeps
   the page exactly screen-wide. clip (unlike hidden) makes no scroll
   container, so sticky sidebars and Bootstrap's scroll lock still work. */
@supports (overflow: clip) {
    main,
    .cta-band,
    .site-footer {
        overflow-x: clip;
    }
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: var(--z-skip);
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--brand-navy);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

:where(a, button, summary, [tabindex]:not(#main)):focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 6px;
}

:where(.topbar, .cta-band, .site-footer, .mega-promo) :focus-visible {
    outline-color: var(--focus-ring-on-dark);
}

/* 24 page sidebars use .sticky-top with an inline top:100px. The overflow fix
   in style.css lets them stick at last; keep them just under the header and
   follow it when it slides away. */
main .sticky-top {
    top: calc(var(--header-offset) + 1rem) !important;
    transition: top var(--dur-base) var(--ease-out);
}

@media (min-width: 992px) {
    main .sticky-top {
        max-height: calc(100vh - var(--header-offset) - 2rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

/* Headings moved to the right outline level (screen readers navigate by
   level; h2 -> h5 skipped three) keep the size they had. Weight and colour
   come from the h1–h6 rule in style.css, so only the size is set here. */
.hx-4 {
    font-size: 1.35rem;
}

.hx-5 {
    font-size: 1.25rem;
}

.hx-6 {
    font-size: 1rem;
}

/* Images now carry width/height so the browser reserves their space before
   they load. Zero specificity: any rule that sizes an image still wins. */
:where(img[width][height]) {
    height: auto;
}

/* Contrast (WCAG AA needs 4.5:1). Bootstrap 5.1's link and outline-button blue
   #0d6efd is 4.3:1 on the page background (#fafbfc); one shade darker is 6.2:1.
   The accent amber is 2.1:1 on light backgrounds, so text there uses a darker
   amber (4.9:1). */
a {
    color: #0a58ca;
}

a:hover {
    color: #084298;
}

.btn-outline-primary {
    color: #0a58ca;
    border-color: #0a58ca;
}

.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-check:checked + .btn-outline-primary {
    color: #fff;
    background-color: #0a58ca;
    border-color: #0a58ca;
}

.text-accent-strong {
    color: #b45309 !important;
}

/* The same shade for Bootstrap's .text-primary / .bg-primary utilities, which
   read this variable (text 4.3 -> 6.2:1; white on blue cards 4.5 -> 6.4:1). */
:root {
    --bs-primary-rgb: 10, 88, 202;
}

/* Bootstrap's muted grey is 4.4:1 on light cards (#f8f9fa). */
.text-muted {
    color: #5c636a !important;
}

/* Headings take the dark text colour from style.css's h1–h6 rule, which also
   applied inside white-text blue cards (2.3:1). Follow the card instead. */
:is(.text-white, .text-light) :is(h1, h2, h3, h4, h5, h6) {
    color: inherit;
}

/* 75% white on the blue cards is 4.2:1 even on the darker blue. */
.bg-primary .opacity-75 {
    opacity: 0.9 !important;
}

/* --------------------------------------------------------------------------
   Buttons used by the chrome
   -------------------------------------------------------------------------- */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-teal-dark) 0%, var(--brand-navy) 100%);
    box-shadow: 0 8px 20px -8px rgba(20, 10, 94, 0.55);
    transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease;
}

.btn-cta:hover,
.btn-cta:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -10px rgba(20, 10, 94, 0.6);
}

.btn-cta:active {
    transform: none;
}

.btn-cta.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-cta.btn-lg {
    padding: 14px 28px;
    font-size: 1.0625rem;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    color: #fff;
    background: var(--color-whatsapp);
    transition: background-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
    color: #fff;
    background: #166534;
    transform: translateY(-1px);
}

.btn-whatsapp.btn-lg {
    padding: 14px 26px;
    font-size: 1.0625rem;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #fff;
    color: var(--brand-navy);
    font-size: 1rem;
    text-decoration: none;
    transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.icon-btn:hover {
    border-color: transparent;
    background: var(--brand-teal-tint);
    color: var(--brand-navy);
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--brand-teal-tint);
    color: var(--brand-navy);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.chip:hover {
    background: var(--brand-navy);
    color: #fff;
}

.chip--ghost {
    border-color: #cbd5e1;
    background: transparent;
}

/* --------------------------------------------------------------------------
   Header: sticky shell. The top bar scrolls away (negative top); the main
   bar sticks, and slides out while scrolling down (.is-hidden, via JS).
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: calc(-1 * var(--topbar-h));
    z-index: var(--z-header);
    transition: transform var(--dur-base) var(--ease-out);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

/* Top bar (desktop only) */
.topbar {
    display: none;
    height: var(--topbar-h);
    background: var(--color-ink);
    color: var(--color-on-ink-muted);
    font-size: 0.8125rem;
}

@media (min-width: 992px) {
    .topbar {
        display: block;
    }
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    height: 100%;
}

.topbar__list,
.topbar__social {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topbar__list {
    gap: var(--space-5);
    min-width: 0;
}

.topbar__item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Hours give way first when space runs short (long hours text, or a
   translated page): they shorten with an ellipsis; the full text is in title. */
.topbar__item--hours {
    min-width: 0;
}

.topbar__item--hours span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar__item--xl {
    display: none;
}

@media (min-width: 1200px) {
    .topbar__item--xl {
        display: flex;
    }
}

.topbar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-on-ink);
    text-decoration: none;
    transition: color var(--dur-fast) ease;
}

.topbar a:hover {
    color: #fff;
}

.topbar i {
    color: var(--brand-teal);
    font-size: 0.8rem;
}

.topbar__meta {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--space-4);
}

.topbar__note {
    display: none;
    max-width: 320px;
    margin: 0;
    overflow: hidden;
    color: var(--color-on-ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .topbar__note {
        display: block;
    }
}

.topbar__dealer {
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}

.topbar__dealer:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.topbar__social {
    gap: 2px;
    padding-left: var(--space-3);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar__social a {
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.topbar__social a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.topbar__social i {
    color: inherit;
}

/* Main bar */
.mainbar {
    position: relative; /* anchors the full-width mega panels */
    height: var(--header-h);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
    transition: box-shadow var(--dur-base) ease, border-color var(--dur-base) ease;
}

@media (min-width: 992px) {
    .mainbar {
        background: rgba(255, 255, 255, 0.9);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        backdrop-filter: saturate(180%) blur(14px);
    }
}

.site-header.is-scrolled .mainbar {
    border-bottom-color: transparent;
    box-shadow: 0 10px 30px -14px rgba(15, 23, 42, 0.22);
}

.mainbar__inner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    height: 100%;
}

.brand {
    display: inline-flex;
    flex: none;
    align-items: center;
    border-radius: 8px;
}

.brand__logo {
    width: auto;
    height: 38px;
}

@media (min-width: 992px) {
    .brand__logo {
        height: 44px;
    }
}

/* Primary navigation (desktop) */
.primary-nav {
    display: none;
}

@media (min-width: 992px) {
    .primary-nav {
        display: flex;
        flex: 1 1 auto;
        justify-content: center;
        height: 100%;
    }
}

.primary-nav__list {
    display: flex;
    align-items: stretch;
    gap: 2px;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav__item {
    display: flex;
    align-items: center;
}

.primary-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: #334155;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

@media (min-width: 1200px) {
    .primary-nav__link {
        padding: 0 16px;
    }
}

.primary-nav__link::after {
    content: '';
    position: absolute;
    right: 12px;
    bottom: 5px;
    left: 12px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-navy));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dur-base) var(--ease-out);
}

.primary-nav__link:hover,
.primary-nav__item.is-open > .primary-nav__link {
    background: rgba(6, 159, 196, 0.08);
    color: var(--brand-navy);
}

.primary-nav__item.is-active > .primary-nav__link {
    color: var(--brand-navy);
    font-weight: 600;
}

.primary-nav__item.is-active > .primary-nav__link::after,
.primary-nav__link:hover::after {
    transform: scaleX(1);
}

.primary-nav__link .fa-chevron-down,
.primary-nav__toggle .fa-chevron-down {
    font-size: 0.625rem;
    transition: transform var(--dur-base) var(--ease-out);
}

.primary-nav__item.is-open .fa-chevron-down {
    transform: rotate(180deg);
}

/* "Products" = real link + separate disclosure button */
.has-mega > a.primary-nav__link {
    padding-right: 6px;
}

.primary-nav__toggle {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 44px;
    margin-left: -2px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #64748b;
}

.primary-nav__toggle:hover,
.primary-nav__item.is-open > .primary-nav__toggle {
    color: var(--brand-navy);
}

/* Mega panels */
.mega-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
    box-shadow: 0 34px 60px -24px rgba(15, 23, 42, 0.28);
}

.mega-panel.is-open {
    display: block;
    animation: megaIn 0.18s var(--ease-out);
}

/* Without JS the panels still open on hover / keyboard focus. */
html:not(.js) .has-mega:hover > .mega-panel,
html:not(.js) .has-mega:focus-within > .mega-panel {
    display: block;
}

@keyframes megaIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.mega-panel__inner {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
}

.mega-title {
    margin: 0 0 var(--space-3);
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mega-title a {
    color: inherit;
    text-decoration: none;
}

.mega-title a:hover {
    color: var(--brand-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Products panel */
.mega-products {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--space-6);
}

.mega-cats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.mega-cat {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px;
    border-radius: 14px;
    color: var(--color-text);
    text-decoration: none;
    transition: background-color var(--dur-fast) ease;
}

.mega-cat:hover,
.mega-cat[aria-current] {
    background: var(--brand-teal-tint);
}

.mega-cat__thumb {
    display: grid;
    flex: none;
    place-items: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    background: #f1f5f9;
    color: var(--brand-teal-dark);
}

.mega-cat__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s var(--ease-out);
}

.mega-cat:hover .mega-cat__thumb img {
    transform: scale(1.07);
}

.mega-cat__text {
    min-width: 0;
}

.mega-cat__name {
    display: block;
    color: var(--brand-navy);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}

.mega-cat__desc {
    display: -webkit-box;
    margin-top: 2px;
    overflow: hidden;
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.4;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.mega-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--space-4);
    color: var(--brand-teal-dark);
    font-weight: 600;
    text-decoration: none;
}

.mega-more i,
.mega-promo__link i {
    transition: transform var(--dur-fast) var(--ease-out);
}

.mega-more:hover i,
.mega-promo__link:hover i {
    transform: translateX(3px);
}

.mega-promo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5);
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(6, 159, 196, 0.55), transparent 55%),
        linear-gradient(160deg, var(--brand-navy), var(--color-ink));
    color: #fff;
}

.mega-promo__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-4);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.25rem;
}

.mega-promo__eyebrow {
    margin: 0 0 4px;
    color: #7dd3e8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mega-promo__title {
    margin: 0 0 var(--space-2);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.mega-promo__text {
    margin: 0 0 var(--space-4);
    color: var(--color-on-ink-muted);
    font-size: 0.875rem;
}

.mega-promo .btn-cta {
    background: #fff;
    color: var(--brand-navy);
}

.mega-promo .btn-cta:hover,
.mega-promo .btn-cta:focus-visible {
    color: var(--brand-navy);
}

.mega-promo__meta {
    margin-top: 8px;
    color: var(--color-on-ink-muted);
    font-size: 0.75rem;
}

.mega-promo__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: var(--space-4);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.mega-promo__link:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Resources panel */
.mega-resources {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    gap: var(--space-6);
}

.mega-links,
.mega-guides {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mega-links--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-4);
}

.mega-links a {
    display: block;
    margin-left: -10px;
    padding: 7px 10px;
    border-radius: 8px;
    color: #334155;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.mega-links a:hover,
.mega-links a[aria-current] {
    background: var(--brand-teal-tint);
    color: var(--brand-navy);
}

.mega-guides {
    gap: 4px;
}

.mega-guide {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-left: -10px;
    padding: 8px 10px;
    border-radius: 12px;
    color: var(--color-text);
    text-decoration: none;
    transition: background-color var(--dur-fast) ease;
}

.mega-guide:hover,
.mega-guide[aria-current] {
    background: var(--brand-teal-tint);
}

.mega-guide__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand-teal-tint);
    color: var(--brand-teal-dark);
    transition: background-color var(--dur-fast) ease;
}

.mega-guide:hover .mega-guide__icon {
    background: #fff;
}

.mega-guide__name {
    display: block;
    color: var(--brand-navy);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}

.mega-guide__desc {
    display: block;
    color: #64748b;
    font-size: 0.8125rem;
}

/* Header actions */
.header-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--space-2);
    margin-left: auto;
}

@media (min-width: 992px) {
    .header-actions {
        gap: var(--space-3);
        margin-left: 0;
    }
}

.header-phone {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 4px 4px;
    border-radius: 12px;
    color: var(--brand-navy);
    text-decoration: none;
}

@media (min-width: 1200px) {
    .header-phone {
        display: inline-flex;
    }
}

.header-phone__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-teal-tint);
    color: var(--brand-teal-dark);
}

.header-phone__label {
    display: block;
    color: #64748b;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.header-phone__number {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    transition: color var(--dur-fast) ease;
}

.header-phone:hover .header-phone__number {
    color: var(--brand-teal-dark);
}

.header-cta {
    display: none;
}

@media (min-width: 992px) {
    .header-cta {
        display: inline-flex;
    }

    .nav-burger {
        display: none;
    }
}

.nav-burger__bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
}

.nav-burger__bars span {
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.nav-burger__bars span:nth-child(2) {
    width: 70%;
    margin-left: auto;
}

/* --------------------------------------------------------------------------
   Search dialog
   -------------------------------------------------------------------------- */
@media (min-width: 576px) {
    .search-modal .modal-dialog {
        margin-top: 10vh;
    }
}

.search-modal .modal-content {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 40px 80px -20px rgba(11, 16, 48, 0.45);
}

@media (max-width: 575.98px) {
    .search-modal .modal-content {
        border-radius: 0;
    }
}

.search-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
}

.search-modal__body {
    padding: var(--space-6);
}

@media (max-width: 575.98px) {
    .search-modal__body {
        padding: var(--space-7) var(--space-4) var(--space-5);
    }
}

.search-modal__title {
    margin: 0 0 var(--space-4);
    padding-right: 40px;
    color: var(--brand-navy);
    font-size: 1.375rem;
}

.search-form {
    position: relative;
    display: flex;
    gap: var(--space-2);
}

.search-form__icon,
.product-search__icon {
    position: absolute;
    top: 50%;
    left: 18px;
    color: #94a3b8;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-form__input {
    flex: 1;
    min-width: 0;
    height: 56px;
    padding: 0 16px 0 48px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    color: var(--color-text);
    font-size: 1.0625rem;
    transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.search-form__input:focus,
.product-search__input:focus,
.drawer-search input:focus {
    border-color: var(--brand-teal-dark);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(6, 159, 196, 0.15);
}

.search-form__submit {
    height: 56px;
    padding: 0 24px;
    border-radius: 16px;
}

@media (max-width: 575.98px) {
    .search-form {
        flex-direction: column;
    }

    .search-form__icon {
        top: 28px;
    }
}

.search-modal__hint {
    margin: var(--space-5) 0 var(--space-3);
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Mobile drawer (Bootstrap offcanvas)
   -------------------------------------------------------------------------- */
.site-drawer.offcanvas-end {
    display: flex;
    flex-direction: column;
    width: min(88vw, 400px);
    border-left: 0;
    padding-right: env(safe-area-inset-right, 0px);
}

.site-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 12px 20px;
    border-bottom: 1px solid #eef2f7;
}

.site-drawer__header .brand__logo {
    height: 36px;
}

.site-drawer__header .btn-close {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    background-color: #f1f5f9;
    background-size: 12px;
    opacity: 1;
}

.site-drawer__body {
    flex: 1 1 auto;
    padding: var(--space-4) var(--space-4) var(--space-5);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.drawer-search {
    position: relative;
    display: flex;
    margin-bottom: var(--space-3);
}

.drawer-search input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 52px 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    font-size: 1rem;
}

.drawer-search button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: var(--brand-navy);
    color: #fff;
}

.drawer-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.drawer-nav__list > li {
    border-bottom: 1px solid #f1f5f9;
}

.drawer-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 8px;
    color: var(--brand-navy);
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    list-style: none;
    cursor: pointer;
}

summary.drawer-nav__link::-webkit-details-marker,
.footer-group__summary::-webkit-details-marker {
    display: none;
}

.drawer-nav__link[aria-current] {
    color: var(--brand-teal-dark);
}

.drawer-nav__link i {
    color: #94a3b8;
    font-size: 0.75rem;
    transition: transform var(--dur-base) var(--ease-out);
}

.drawer-group[open] > summary i {
    transform: rotate(180deg);
}

.drawer-sub {
    margin: 0 0 var(--space-3);
    padding: 0 0 0 8px;
    list-style: none;
}

.drawer-sub--2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.drawer-sub a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 10px;
    color: #334155;
    font-size: 0.9375rem;
    text-decoration: none;
}

.drawer-sub a:hover,
.drawer-sub a[aria-current] {
    background: var(--brand-teal-tint);
    color: var(--brand-navy);
}

.drawer-sub a i {
    width: 18px;
    color: var(--brand-teal-dark);
    text-align: center;
}

.drawer-sub__title {
    margin: var(--space-2) 0 2px;
    padding: 0 8px 0 16px;
    color: #64748b;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.drawer-sub__title a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.drawer-contact {
    margin-top: var(--space-5);
    padding: var(--space-4);
    border-radius: 18px;
    background: #f8fafc;
}

.drawer-contact__title {
    margin: 0 0 var(--space-2);
    color: var(--brand-navy);
    font-weight: 700;
}

.drawer-contact__list {
    margin: 0 0 var(--space-3);
    padding: 0;
    list-style: none;
}

.drawer-contact__list a,
.drawer-contact__list span {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: #334155;
    font-size: 0.9375rem;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.drawer-contact__list i {
    width: 20px;
    color: var(--brand-teal-dark);
    text-align: center;
}

.site-drawer__footer {
    padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #eef2f7;
    background: #fff;
}

/* Social icon row (drawer + footer) */
.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-row a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: var(--brand-navy);
    text-decoration: none;
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.social-row a:hover {
    border-color: var(--brand-navy);
    background: var(--brand-navy);
    color: #fff;
}

.social-row--dark a {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-on-ink);
}

.social-row--dark a:hover {
    border-color: #fff;
    background: #fff;
    color: var(--brand-navy);
}

/* --------------------------------------------------------------------------
   CTA band (above the footer)
   -------------------------------------------------------------------------- */
.cta-band {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(6, 159, 196, 0.45), transparent 45%),
        radial-gradient(circle at 10% 115%, rgba(6, 159, 196, 0.22), transparent 40%),
        linear-gradient(135deg, var(--brand-navy) 0%, #101a5e 60%, #0c3f6b 100%);
    color: #fff;
}

/* Subtle baluster motif — a nod to what Prism Rail makes. */
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 36px);
    -webkit-mask-image: linear-gradient(to left, #000, transparent 65%);
    mask-image: linear-gradient(to left, #000, transparent 65%);
    pointer-events: none;
}

.cta-band__inner {
    position: relative;
    display: grid;
    align-items: center;
    gap: var(--space-5);
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
}

@media (min-width: 992px) {
    .cta-band__inner {
        grid-template-columns: 1.3fr 1fr;
        padding-top: 56px;
        padding-bottom: 56px;
    }
}

.cta-band__eyebrow {
    margin: 0 0 var(--space-2);
    color: #7dd3e8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cta-band__title {
    margin: 0 0 var(--space-2);
    color: #fff;
    font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem);
}

.cta-band__text {
    max-width: 56ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

@media (min-width: 992px) {
    .cta-band__actions {
        justify-content: flex-end;
    }
}

.cta-band__primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    color: var(--brand-navy);
    font-weight: 700;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
}

.cta-band__primary:hover {
    color: var(--brand-navy);
}

.cta-band__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.cta-band__link:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    padding-top: var(--space-7);
    /* room for the mobile action bar (0 on desktop) */
    padding-bottom: calc(var(--actionbar-h) + env(safe-area-inset-bottom, 0px));
    background: var(--color-ink);
    color: var(--color-on-ink-muted);
    font-size: 0.9375rem;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-teal), rgba(6, 159, 196, 0) 70%);
}

.footer-grid {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 1200px) {
    .footer-grid {
        grid-template-columns: minmax(260px, 1.35fr) 4fr;
        gap: var(--space-7);
    }
}

.footer-brand__logo {
    display: inline-block;
    border-radius: 8px;
}

.footer-brand__logo img {
    width: auto;
    height: 44px;
    filter: brightness(0) invert(1);
}

.footer-brand__tagline {
    max-width: 38ch;
    margin: var(--space-4) 0;
}

.footer-contact {
    margin-bottom: var(--space-4);
    font-style: normal;
}

.footer-contact__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 10px;
}

.footer-contact__row i {
    flex: none;
    width: 16px;
    margin-top: 4px;
    color: var(--brand-teal);
    text-align: center;
}

.footer-contact a {
    color: var(--color-on-ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-contact a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-nav {
    display: grid;
}

@media (min-width: 768px) {
    .footer-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-6) var(--space-5);
    }
}

@media (min-width: 992px) {
    .footer-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.footer-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-group__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    list-style: none;
    cursor: pointer;
}

.footer-group__summary i {
    color: var(--color-on-ink-muted);
    font-size: 0.75rem;
    transition: transform var(--dur-base) var(--ease-out);
}

.footer-group[open] .footer-group__summary i {
    transform: rotate(180deg);
}

.footer-heading {
    margin: 0;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-links {
    margin: 0;
    padding: 0 0 var(--space-4);
    list-style: none;
}

.footer-links li + li {
    margin-top: 10px;
}

.footer-links a {
    color: var(--color-on-ink-muted);
    text-decoration: none;
    transition: color var(--dur-fast) ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a.footer-links__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7dd3e8;
    font-weight: 600;
}

/* Tablet/desktop: groups are always open, headings are plain labels. */
@media (min-width: 768px) {
    .footer-group {
        border: 0;
    }

    .footer-group__summary {
        min-height: 0;
        margin-bottom: var(--space-4);
        cursor: default;
        pointer-events: none;
    }

    .footer-group__summary i {
        display: none;
    }

    .footer-heading {
        position: relative;
        padding-bottom: 12px;
    }

    .footer-heading::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 28px;
        height: 2px;
        border-radius: 2px;
        background: var(--brand-teal);
    }

    .footer-links {
        padding-bottom: 0;
    }
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-7);
    padding: var(--space-5) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Keep the last row clear of the fixed back-to-top / quick-action buttons
   when scrolled to the very bottom. */
@media (max-width: 991.98px) {
    .footer-bottom {
        padding-bottom: 72px;
    }
}

@media (min-width: 992px) {
    .footer-bottom {
        padding-right: 150px;
    }
}

.footer-bottom__copy {
    margin: 0;
}

.footer-bottom__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-bottom__links a {
    color: var(--color-on-ink-muted);
    text-decoration: none;
}

.footer-bottom__links a:hover {
    color: #fff;
}

/* --------------------------------------------------------------------------
   Quick actions: bottom bar (< 992px) / floating stack (≥ 992px)
   -------------------------------------------------------------------------- */
.quick-actions {
    position: fixed;
    z-index: var(--z-floating);
}

.quick-actions__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 991.98px) {
    .quick-actions {
        right: 0;
        bottom: 0;
        left: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -10px 30px -14px rgba(15, 23, 42, 0.25);
        transition: transform var(--dur-base) var(--ease-out);
    }

    /* Out of the way while the on-screen keyboard is up. */
    html.is-typing .quick-actions {
        transform: translateY(110%);
    }

    .quick-actions__list {
        display: grid;
        grid-auto-columns: minmax(0, 1fr);
        grid-auto-flow: column;
    }

    .qa-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 60px;
        color: var(--brand-navy);
        font-size: 0.6875rem;
        font-weight: 600;
        text-decoration: none;
    }

    /* Long labels (translated pages) shorten instead of widening a cell. */
    .qa-btn__label {
        max-width: 100%;
        padding: 0 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .qa-btn i {
        font-size: 1.15rem;
    }

    .qa-btn--call i {
        color: var(--brand-teal-dark);
    }

    .qa-btn--whatsapp i {
        color: var(--color-whatsapp);
    }

    .qa-btn--catalogue i {
        color: #b91c1c;
    }

    .qa-btn--quote {
        background: linear-gradient(135deg, var(--brand-teal-dark), var(--brand-navy));
        color: #fff;
    }

    .qa-btn--quote:hover {
        color: #fff;
    }
}

@media (min-width: 992px) {
    .quick-actions {
        right: 24px;
        bottom: 24px;
    }

    .quick-actions__list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .qa-mobile-only {
        display: none;
    }

    .qa-btn {
        position: relative;
        display: grid;
        place-items: center;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        color: #fff;
        font-size: 1.25rem;
        text-decoration: none;
        box-shadow: 0 12px 26px -10px rgba(11, 16, 48, 0.5);
        transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease;
    }

    .qa-btn:hover,
    .qa-btn:focus-visible {
        color: #fff;
        transform: translateY(-2px) scale(1.04);
    }

    .qa-btn--call {
        background: linear-gradient(135deg, var(--brand-teal-dark), var(--brand-navy));
    }

    .qa-btn--whatsapp {
        background: var(--color-whatsapp);
    }

    .qa-btn--catalogue,
    .qa-btn--catalogue:hover,
    .qa-btn--catalogue:focus-visible {
        border: 1px solid #e2e8f0;
        background: #fff;
        color: var(--brand-navy);
    }

    /* Tooltip label; still the accessible name when not shown. */
    .qa-btn__label {
        position: absolute;
        top: 50%;
        right: calc(100% + 12px);
        padding: 6px 12px;
        border-radius: 8px;
        background: var(--color-ink);
        color: #fff;
        font-size: 0.8125rem;
        font-weight: 600;
        white-space: nowrap;
        opacity: 0;
        transform: translate(6px, -50%);
        transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
        pointer-events: none;
    }

    .qa-btn:hover .qa-btn__label,
    .qa-btn:focus-visible .qa-btn__label {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

.back-to-top {
    position: fixed;
    right: 16px;
    bottom: calc(var(--actionbar-h) + env(safe-area-inset-bottom, 0px) + 16px);
    z-index: var(--z-floating);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: var(--brand-navy);
    box-shadow: 0 10px 24px -10px rgba(11, 16, 48, 0.35);
    transition: transform var(--dur-fast) var(--ease-out);
}

.back-to-top:hover {
    transform: translateY(-2px);
}

.back-to-top[hidden] {
    display: none;
}

@media (min-width: 992px) {
    .back-to-top {
        right: 92px;
        bottom: 28px;
    }
}

/* --------------------------------------------------------------------------
   Catalogue download modal
   -------------------------------------------------------------------------- */
.download-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 20px;
}

.download-modal__header {
    align-items: flex-start;
    padding: var(--space-5) var(--space-5) var(--space-4);
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(135deg, var(--brand-teal-tint), #fff 70%);
}

.download-modal__eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 4px;
    color: var(--brand-teal-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.download-modal__title {
    margin: 0;
    color: var(--brand-navy);
    font-size: 1.25rem;
}

.download-modal .modal-body {
    padding: var(--space-5);
}

.download-modal__intro {
    margin-bottom: var(--space-4);
    color: #475569;
}

.download-modal .req {
    color: #b91c1c;
}

.download-success {
    padding: var(--space-5) 0;
    text-align: center;
}

.download-success:focus {
    outline: none;
}

.download-success__icon {
    display: block;
    margin-bottom: var(--space-3);
    color: #15803d;
    font-size: 3rem;
}

.download-success__title {
    color: var(--brand-navy);
    font-size: 1.25rem;
}

.download-success__text {
    color: #475569;
}

/* Honeypot field: off-screen for people, still in the form for bots. */
.hp-field {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Product search (products page)
   -------------------------------------------------------------------------- */
.product-search {
    position: relative;
    display: flex;
    gap: var(--space-2);
    max-width: 720px;
    margin: var(--space-3) 0 var(--space-4);
}

.product-search__icon {
    left: 16px;
}

.product-search__input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 16px 0 44px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    font-size: 1rem;
}

.product-search__submit {
    height: 50px;
    border-radius: 14px;
}

.search-results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2) var(--space-4);
    margin-bottom: var(--space-4);
}

.search-results-head h2 {
    font-size: 1.5rem;
}

.search-results-head__clear {
    color: var(--brand-teal-dark);
    font-weight: 600;
    text-decoration: none;
}

.search-results-head__clear:hover {
    text-decoration: underline;
}

.search-empty {
    padding: var(--space-7) var(--space-4);
    border: 1px dashed #cbd5e1;
    border-radius: 24px;
    background: #fff;
    text-align: center;
}

.search-empty__icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-3);
    border-radius: 50%;
    background: var(--brand-teal-tint);
    color: var(--brand-teal-dark);
    font-size: 1.5rem;
}

.search-empty__title {
    color: var(--brand-navy);
    font-size: 1.25rem;
}

.search-empty__text {
    max-width: 52ch;
    margin: 0 auto var(--space-4);
    color: #475569;
}

/* --------------------------------------------------------------------------
   Products catalogue (pages/products.php; behaviour in main.js,
   initProductCatalog). --catalog-accent is a darker teal than
   --brand-teal-dark, which is only 4.4:1 on the tinted header.
   -------------------------------------------------------------------------- */
.catalog {
    --catalog-accent: #0b6580;
    padding-bottom: var(--space-7);
}

.catalog-hero {
    padding: var(--space-4) 0 var(--space-5);
    background: linear-gradient(180deg, var(--brand-teal-tint) 0%, #fff 100%);
}

.catalog-crumbs {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 var(--space-3);
    padding: 0;
    list-style: none;
    color: #475569;
    font-size: 0.875rem;
}

.catalog-crumbs li + li::before {
    content: "›";
    margin: 0 8px;
    color: #94a3b8;
}

.catalog-crumbs a {
    color: var(--catalog-accent);
    text-decoration: none;
}

.catalog-crumbs a:hover {
    text-decoration: underline;
}

.catalog-hero__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4) var(--space-6);
}

.catalog-hero__text {
    flex: 1 1 480px;
    max-width: 760px;
}

.catalog-hero__eyebrow {
    margin: 0 0 6px;
    color: var(--catalog-accent);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.catalog-hero__title {
    margin: 0 0 var(--space-2);
    color: var(--brand-navy);
    font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
    line-height: 1.1;
}

.catalog-hero__lead {
    max-width: 68ch;
    margin: 0;
    color: #475569;
    font-size: 1rem;
}

.catalog-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.catalog-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-navy);
    font-weight: 600;
    line-height: 1.2;
}

.catalog-btn-ghost:hover,
.catalog-btn-ghost:focus-visible {
    border-color: var(--brand-navy);
    color: var(--brand-navy);
}

/* Search */
.catalog-search {
    display: flex;
    gap: var(--space-2);
    max-width: 760px;
    margin-top: var(--space-4);
}

.catalog-search__field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.catalog-search__icon {
    position: absolute;
    top: 50%;
    left: 16px;
    color: #64748b;
    pointer-events: none;
    transform: translateY(-50%);
}

.catalog-search__input {
    width: 100%;
    height: 50px;
    padding: 0 48px 0 44px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    color: var(--color-text);
    font-size: 1rem;
    transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.catalog-search__input::placeholder {
    color: #64748b;
}

.catalog-search__input:focus {
    border-color: var(--catalog-accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(6, 159, 196, 0.2);
}

/* The "/" shortcut hint: keyboards only, and only while the box is empty. */
.catalog-search__key {
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 2px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #475569;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: none;
    pointer-events: none;
    transform: translateY(-50%);
}

.catalog-search__input:focus ~ .catalog-search__key,
.catalog-search__input:not(:placeholder-shown) ~ .catalog-search__key {
    display: none;
}

@media (hover: none) {
    .catalog-search__key {
        display: none;
    }
}

.catalog-search__submit {
    height: 50px;
    border-radius: 14px;
}

/* Category chips */
.catalog-cats {
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
}

.catalog-cats__list {
    position: relative; /* offsetParent for centring the active chip */
    display: flex;
    gap: var(--space-2);
    margin: 0;
    padding: 2px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.catalog-cats__list::-webkit-scrollbar {
    display: none;
}

.catalog-cats__list li {
    flex: none;
    scroll-snap-align: start;
}

.catalog-cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-navy);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.catalog-cat:hover {
    border-color: var(--brand-navy);
    color: var(--brand-navy);
}

.catalog-cat.is-active {
    border-color: var(--brand-navy);
    background: var(--brand-navy);
    color: #fff;
}

.catalog-cat__count {
    min-width: 24px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--brand-teal-tint);
    color: var(--brand-navy);
    font-size: 0.75rem;
    text-align: center;
}

.catalog-cat.is-active .catalog-cat__count {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

@media (max-width: 991.98px) {
    .catalog-cats {
        position: sticky;
        top: var(--header-offset);
        z-index: var(--z-sticky);
        transition: top var(--dur-base) var(--ease-out);
    }
}

@media (min-width: 992px) {
    .catalog-cats {
        border-bottom: 0;
    }

    .catalog-cats__list {
        flex-wrap: wrap;
        overflow: visible;
    }
}

/* Results header */
.catalog-results {
    padding-top: var(--space-5);
}

.catalog-results__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3) var(--space-5);
    margin-bottom: var(--space-4);
}

.catalog-results__title {
    margin: 0 0 4px;
    font-size: 1.375rem;
}

.catalog-count {
    margin: 0;
    color: #475569;
    font-size: 0.9375rem;
}

.catalog-count__clear {
    margin-left: var(--space-2);
    color: var(--catalog-accent);
    font-weight: 600;
    text-decoration: none;
}

.catalog-count__clear:hover {
    text-decoration: underline;
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: #475569;
    font-size: 0.875rem;
}

.catalog-sort label {
    white-space: nowrap;
}

.catalog-sort .form-select {
    min-height: 38px;
    border-color: #cbd5e1;
    border-radius: 10px;
}

/* Product grid: 2-up phones, 3-up tablets, 4-up desktops */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1200px) {
    .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--space-5);
    }
}

.catalog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) ease, border-color var(--dur-base) ease;
}

.catalog-card:hover {
    border-color: #b6dce7;
    box-shadow: 0 20px 36px -20px rgba(15, 23, 42, 0.35);
    transform: translateY(-4px);
}

/* The title link covers the card (stretched-link), so show its focus on the card. */
.catalog-card:has(.stretched-link:focus-visible) {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

.catalog-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.catalog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s var(--ease-out);
}

.catalog-card:hover .catalog-card__media img {
    transform: scale(1.04);
}

.catalog-card__badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    overflow: hidden;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(20, 10, 94, 0.9);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-3);
}

.catalog-card__title {
    margin: 0;
    color: var(--brand-navy);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
}

.catalog-card__title a {
    color: inherit;
    text-decoration: none;
}

.catalog-card__title a:focus-visible {
    outline: none; /* drawn on the card instead, see :has() above */
}

.catalog-card__desc {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #475569;
    font-size: 0.8125rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.catalog-card__spec {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0;
    color: #334155;
    font-size: 0.8125rem;
}

.catalog-card__spec i {
    color: var(--catalog-accent);
}

.catalog-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-top: auto;
    padding-top: var(--space-2);
}

.catalog-card__more {
    color: var(--catalog-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.catalog-card__more i {
    margin-left: 2px;
    font-size: 0.75rem;
    transition: transform var(--dur-fast) var(--ease-out);
}

.catalog-card:hover .catalog-card__more i {
    transform: translateX(3px);
}

/* Above the stretched link, so it is its own tap target. */
.catalog-card__wa {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: #e8f6ee;
    color: #166534;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.catalog-card__wa:hover,
.catalog-card__wa:focus-visible {
    background: var(--color-whatsapp);
    color: #fff;
}

.catalog-card__wa i {
    font-size: 1rem;
}

@media (max-width: 419.98px) {
    .catalog-card__wa {
        padding: 0;
    }

    .catalog-card__wa-label {
        display: none;
    }
}

@media (min-width: 768px) {
    .catalog-card__body {
        padding: var(--space-4);
    }

    .catalog-card__title {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-card,
    .catalog-card__media img,
    .catalog-card__more i {
        transition: none;
    }

    .catalog-card:hover,
    .catalog-card:hover .catalog-card__media img,
    .catalog-card:hover .catalog-card__more i {
        transform: none;
    }
}

.catalog-nomatch {
    margin-top: var(--space-2);
}

.catalog-section {
    margin-top: var(--space-7);
}

@media (min-width: 992px) {
    .catalog-section {
        margin-top: var(--space-8);
    }
}

/* --------------------------------------------------------------------------
   Language picker (Google Translate)
   -------------------------------------------------------------------------- */
.topbar__lang {
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 500;
    white-space: nowrap;
}

.topbar__lang:hover {
    background: rgba(255, 255, 255, 0.08);
}

.topbar .topbar__lang-caret {
    color: inherit;
    font-size: 0.625rem;
    opacity: 0.7;
}

/* Mobile header globe; desktop uses the top bar. */
.lang-btn {
    position: relative;
}

@media (min-width: 992px) {
    .lang-btn {
        display: none;
    }
}

.lang-btn__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    padding: 1px 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--brand-navy);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.lang-btn__badge[hidden] {
    display: none;
}

.drawer-lang {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    margin-bottom: var(--space-3);
    padding: 8px 14px 8px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--brand-navy);
    text-decoration: none;
    transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.drawer-lang:hover {
    border-color: var(--brand-teal);
    background: #fff;
    color: var(--brand-navy);
}

.drawer-lang__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand-teal-tint);
    color: var(--brand-teal-dark);
}

.drawer-lang__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.drawer-lang__label {
    color: #475569;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.drawer-lang__value {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer-lang__chevron {
    color: #94a3b8;
    font-size: 0.75rem;
}

.footer-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-lang i {
    font-size: 0.85em;
}

/* While the widget works, the globes spin. */
@keyframes lang-spin {
    to {
        transform: rotate(360deg);
    }
}

html.is-translating [data-lang-trigger] .fa-globe {
    animation: lang-spin 1.2s linear infinite;
}

/* Dialog */
@media (min-width: 576px) {
    .lang-modal .modal-dialog-scrollable {
        height: min(calc(100% - 3.5rem), 760px);
    }
}

.lang-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 40px 80px -20px rgba(11, 16, 48, 0.45);
}

@media (max-width: 575.98px) {
    .lang-modal .modal-content {
        border-radius: 0;
    }
}

.lang-modal__head {
    position: relative;
    flex: none;
    padding: var(--space-5) var(--space-5) var(--space-4);
    border-bottom: 1px solid #eef2f7;
}

@media (max-width: 575.98px) {
    .lang-modal__head {
        padding: var(--space-5) var(--space-4) var(--space-4);
    }
}

.lang-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
}

.lang-modal__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 6px;
    padding-right: 40px;
    color: var(--brand-navy);
    font-size: 1.375rem;
}

.lang-modal__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand-teal-tint);
    color: var(--brand-teal-dark);
    font-size: 1.125rem;
}

.lang-modal__note {
    margin: 0 0 var(--space-4);
    color: #475569;
    font-size: 0.875rem;
}

.lang-filter {
    position: relative;
}

.lang-filter__icon {
    position: absolute;
    top: 50%;
    left: 16px;
    color: #94a3b8;
    transform: translateY(-50%);
    pointer-events: none;
}

.lang-filter__input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--color-text);
    font-size: 1rem;
    transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.lang-filter__input:focus {
    border-color: var(--brand-teal-dark);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(6, 159, 196, 0.15);
}

.lang-modal__body {
    padding: var(--space-4) var(--space-5) var(--space-5);
}

@media (max-width: 575.98px) {
    .lang-modal__body {
        padding: var(--space-4);
    }
}

.lang-group + .lang-group {
    margin-top: var(--space-5);
}

.lang-group__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 var(--space-3);
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lang-group__count {
    padding: 1px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    letter-spacing: 0;
}

.lang-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 340px) {
    .lang-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .lang-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.lang-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 56px;
    padding: 8px 34px 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: var(--brand-navy);
    line-height: 1.25;
    text-align: left;
    transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.lang-option:hover {
    border-color: var(--brand-teal);
    background: var(--brand-teal-tint);
}

.lang-option__name {
    font-size: 0.9375rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.lang-option__sub {
    color: #475569;
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
}

.lang-option__check {
    position: absolute;
    top: 50%;
    right: 12px;
    color: var(--brand-teal-dark);
    opacity: 0;
    transform: translateY(-50%);
}

.lang-option[aria-pressed="true"] {
    border-color: var(--brand-teal-dark);
    background: var(--brand-teal-tint);
    box-shadow: inset 0 0 0 1px var(--brand-teal-dark);
}

.lang-option[aria-pressed="true"] .lang-option__check {
    opacity: 1;
}

.lang-empty {
    margin: 0;
    padding: var(--space-5) 0;
    color: #475569;
    text-align: center;
}

.lang-empty p {
    margin: 0 0 var(--space-2);
}

.lang-empty a {
    color: var(--brand-teal-dark);
    font-weight: 600;
}

.lang-modal__foot {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px var(--space-3);
    padding: 12px var(--space-5);
    border-top: 1px solid #eef2f7;
    background: #f8fafc;
    color: #475569;
    font-size: 0.8125rem;
}

.lang-modal__credit i {
    margin-right: 4px;
}

.lang-modal__reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-navy);
    font-size: 0.8125rem;
    font-weight: 600;
}

.lang-modal__reset:hover {
    border-color: var(--brand-navy);
}

html:not(.is-translated) .lang-modal__reset {
    display: none;
}

/* Translated text can hold single words far longer than the English
   (Malayalam, German compounds): let them wrap instead of widening the page. */
html.translated-ltr,
html.translated-rtl {
    overflow-wrap: break-word;
}

/* Translated pages: words get longer (German, Tamil…). Keep the desktop
   header on one line — drop the phone block (the top bar has the number),
   tighten the menu and cap the quote button. */
@media (min-width: 992px) {
    html.translated-ltr .header-phone,
    html.translated-rtl .header-phone {
        display: none;
    }

    html.translated-ltr .primary-nav__link,
    html.translated-rtl .primary-nav__link {
        padding: 0 8px;
        font-size: 0.875rem;
    }

    html.translated-ltr .header-cta,
    html.translated-rtl .header-cta {
        display: inline-block;
        max-width: 10rem;
        overflow: hidden;
        padding-right: 18px;
        padding-left: 18px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (min-width: 1400px) {
    html.translated-ltr .header-phone,
    html.translated-rtl .header-phone {
        display: inline-flex;
    }

    html.translated-ltr .primary-nav__link,
    html.translated-rtl .primary-nav__link {
        padding: 0 12px;
    }
}

/* Google's own translator UI (banner, tooltip, spinner, highlight): our
   picker replaces it. Google offsets <body> for its banner — undo that. */
#google_translate_element,
body > .skiptranslate,
iframe.skiptranslate,
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-spinner-pos,
#goog-gt-tt,
[class*="VIpgJd-ZVi9od-ORHb"],
[class*="VIpgJd-ZVi9od-aZ2wEe"],
[class*="VIpgJd-yAWNEb-L7lbkb"] {
    display: none !important;
}

body {
    top: 0 !important;
}

.goog-text-highlight,
[class*="VIpgJd-yAWNEb-VIpgJd-fmcmS"] {
    background: none !important;
    box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Reduced motion (chrome only — page carousels handle it in main.js)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html.is-translating [data-lang-trigger] .fa-globe {
        animation: none;
    }

    .site-header,
    .site-header *,
    .site-drawer,
    .site-drawer *,
    .quick-actions,
    .qa-btn,
    .back-to-top,
    .btn-cta,
    .btn-whatsapp,
    main .sticky-top {
        transition: none !important;
        animation: none !important;
    }
}

/* --------------------------------------------------------------------------
   Print: content only
   -------------------------------------------------------------------------- */
@media print {
    .skip-link,
    .topbar,
    .primary-nav,
    .header-actions,
    .quick-actions,
    .back-to-top,
    .cta-band,
    .site-drawer,
    .search-modal,
    .lang-modal,
    .download-modal,
    .footer-nav,
    .social-row {
        display: none !important;
    }

    .site-header {
        position: static;
        transform: none !important;
    }

    .mainbar {
        border: 0;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .site-footer {
        padding: 0;
        background: #fff;
        color: #000;
    }

    .site-footer::before {
        display: none;
    }

    .site-footer a {
        color: #000;
    }

    .footer-brand__logo img {
        filter: none;
    }
}
