/* ==========================================================================
   Sun Traders — theme components beyond the static design (main.css).
   ========================================================================== */

/* ---------- Base / accessibility ---------- */
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: 30px;
    background: var(--purple);
    color: #fff;
    font: 600 14px/1 var(--body-font);
    transition: top .2s;
}

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

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 3px;
}

.admin-hint {
    padding: 16px 20px;
    border: 1px dashed var(--purple-soft);
    border-radius: 16px;
    background: #fff;
    color: var(--muted);
    font: 400 14px/22px var(--body-font);
}

/* ---------- Header ---------- */
.header--static {
    position: absolute;
}

.admin-bar .header {
    top: 32px;
}

.admin-bar {
    scroll-padding-top: 110px;
}

@media (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    .admin-bar .header.is-scrolled {
        top: 0;
    }
}

/* ---------- Hero: videos and N slides ---------- */
.hero__media,
.hero__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    pointer-events: none;
}

.hero__iframe {
    inset: auto;
    top: 50%;
    left: 50%;
    width: max(100%, 177.78vh);
    height: max(100%, 56.25vw);
    transform: translate(-50%, -50%);
}

.hero__bg {
    overflow: hidden;
}

@media (max-width: 900px) {
    .hero__bg--photo:first-child {
        background-size: cover;
    }
}

/* ---------- Who we serve carousel ---------- */
.carousel--serve {
    margin-top: 30px;
}

.carousel__track--serve .serve__card {
    flex: 0 0 calc((100% - 66px) / 4);
}

.carousel.is-static .carousel__arrow {
    display: none;
}

@media (max-width: 1100px) {
    .carousel__track--serve .serve__card {
        flex-basis: calc((100% - 44px) / 3);
    }
}

@media (max-width: 900px) {
    .carousel__track--serve .serve__card {
        flex-basis: calc((100% - 22px) / 2);
    }
}

@media (max-width: 600px) {
    .carousel__track--serve .serve__card {
        flex-basis: 100%;
        height: 360px;
    }
}

/* Card links (titles/descriptions are links in the CMS version) */
.card h3 a,
.card p a {
    color: inherit;
    transition: color .3s var(--ease);
}

.card h3 a:hover {
    color: var(--purple);
}

.card__img {
    display: block;
}

/* ---------- Gallery: fewer than five tiles ---------- */
.gallery__grid--simple {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 320px;
}

.gallery__grid--simple .tile {
    grid-area: auto;
    height: auto;
}

/* ---------- Client logos (uniform height, no cropping maths) ---------- */
.logo__box--auto {
    display: flex;
    align-items: center;
    height: 84px;
}

.logo__box--auto img {
    position: static;
    width: auto;
    height: 64px;
    max-width: 220px;
    object-fit: contain;
}

/* ---------- Inner pages ---------- */
.page-hero {
    padding: 150px 0 56px;
    background: linear-gradient(180deg, #ece4f4 0%, var(--tint) 100%);
}

.page-hero__title {
    margin-top: 18px;
    font: 400 44px/54px var(--head-font);
    color: var(--ink);
}

.page-hero .lead {
    max-width: 720px;
    margin-top: 14px;
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    font: 500 13px/20px var(--body-font);
    color: var(--muted);
}

.crumbs li + li::before {
    content: '/';
    margin-right: 6px;
    color: var(--purple-soft);
}

.crumbs a:hover {
    color: var(--purple);
}

.crumbs + .eyebrow,
.crumbs + .page-hero__title {
    margin-top: 22px;
}

.section {
    padding: 60px 0 100px;
}

.container--narrow {
    width: min(860px, 100% - 48px);
}

/* Entry content typography */
.entry {
    font: 400 16px/30px var(--body-font);
    color: var(--muted);
}

.entry > * + * {
    margin-top: 1.1em;
}

.entry h2,
.entry h3,
.entry h4 {
    margin-top: 1.6em;
    font-family: var(--head-font);
    font-weight: 600;
    color: var(--ink);
}

.entry h2 {
    font-size: 30px;
    line-height: 1.3;
}

.entry h3 {
    font-size: 22px;
    line-height: 1.35;
}

.entry a {
    color: var(--purple);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry ul,
.entry ol {
    padding-left: 1.4em;
}

.entry ul {
    list-style: disc;
}

.entry img {
    height: auto;
    border-radius: 20px;
}

.entry blockquote {
    padding: 16px 24px;
    border-left: 3px solid var(--purple);
    border-radius: 0 20px 20px 0;
    background: var(--tint);
    color: var(--ink);
}

.entry table {
    width: 100%;
    border-collapse: collapse;
}

.entry th,
.entry td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.entry .alignleft {
    float: left;
    margin: 0 24px 16px 0;
}

.entry .alignright {
    float: right;
    margin: 0 0 16px 24px;
}

.entry .aligncenter {
    margin-inline: auto;
}

.wp-caption-text {
    font-size: 13px;
    text-align: center;
}

.entry__thumb img {
    width: 100%;
    height: auto;
    margin-bottom: 32px;
    border-radius: 30px;
}

.entry__tags {
    margin-top: 32px;
    font: 500 13px/20px var(--body-font);
}

.entry__tags a {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 4px 12px;
    border-radius: 30px;
    background: var(--tint);
    color: var(--purple);
}

.post-navigation {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font: 600 14px/22px var(--head-font);
    color: var(--purple);
}

/* Post cards */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.post-card {
    display: flex;
    flex-direction: column;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #fff;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(100, 47, 145, .14);
}

.post-card__img {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    overflow: hidden;
    background: var(--tint);
}

.post-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ece4f4, var(--purple-soft));
}

.post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.post-card__meta {
    margin-top: 18px;
    font: 500 12px/18px var(--body-font);
    color: var(--purple);
}

.post-card__title {
    margin-top: 8px;
    font: 400 19px/26px var(--head-font);
    color: var(--ink);
}

.post-card__title a:hover {
    color: var(--purple);
}

.post-card__excerpt {
    margin: 10px 0 22px;
    font: 400 13px/22px var(--body-font);
    color: var(--muted);
}

/* Pagination */
.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pager .page-numbers,
.pager > span,
.pager > a {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #fff;
    font: 600 14px/1 var(--head-font);
    color: var(--ink);
    transition: background-color .3s var(--ease), color .3s var(--ease);
}

.pager .page-numbers.current,
.pager a:hover {
    border-color: var(--purple);
    background: var(--purple);
    color: #fff;
}

/* Search */
.search-form {
    display: flex;
    gap: 10px;
    max-width: 520px;
}

.search-form__input,
.st-input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #fff;
    font: 400 15px/1 var(--body-font);
    color: var(--ink);
}

.search-form__input:focus,
.st-input:focus {
    border-color: var(--purple);
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 47, 145, .15);
}

.search-bar {
    margin-bottom: 40px;
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 24px;
    padding: 40px 0;
    text-align: center;
}

.empty-state .hero__btns {
    justify-content: center;
    margin-top: 0;
}

/* Comments */
.comments {
    margin-top: 56px;
}

.comments__title,
.comment-reply-title {
    font: 400 26px/34px var(--head-font);
}

.comments__list {
    margin: 24px 0;
    padding-left: 0;
    list-style: none;
}

.comments__list .comment-body {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font: 400 15px/26px var(--body-font);
    color: var(--muted);
}

.comment-form p {
    margin-top: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    font: inherit;
}

.comment-form .submit {
    padding: 12px 22px;
    border: 0;
    border-radius: 30px;
    background: var(--purple);
    color: #fff;
    font: 700 13px/1 var(--head-font);
    cursor: pointer;
}

@media (max-width: 1100px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .page-hero {
        padding: 120px 0 40px;
    }

    .page-hero__title {
        font-size: 32px;
        line-height: 40px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 40px 0 72px;
    }
}

/* ==========================================================================
   Module 3 — popups, floating buttons, mobile quick-links bar
   ========================================================================== */
.has-modal,
.has-modal body {
    overflow: hidden;
}

.modal {
    width: min(620px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 30px;
    background: transparent;
    color: var(--ink);
    overflow: visible;
}

.modal::backdrop {
    background: rgba(41, 23, 58, .62);
    backdrop-filter: blur(4px);
}

.modal[open] {
    animation: modal-in .45s var(--ease);
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.98);
    }
}

.modal__panel {
    position: relative;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 36px 36px 32px;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 30px 60px rgba(50, 22, 77, .35);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tint);
    color: var(--purple);
    font: 400 26px/1 var(--body-font);
    transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}

.modal__close:hover {
    background: var(--purple);
    color: #fff;
    transform: rotate(90deg);
}

.modal__title {
    margin-top: 16px;
    padding-right: 40px;
    font: 400 28px/36px var(--head-font);
}

.modal__text,
.modal__product {
    margin-top: 10px;
    font: 400 15px/26px var(--body-font);
    color: var(--muted);
}

.modal__product {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    background: var(--tint);
    color: var(--purple);
    font-weight: 600;
}

.modal__product:empty {
    display: none;
}

.contact-options {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.contact-options .btn {
    justify-content: flex-start;
    gap: 10px;
}

.contact-options .icon {
    width: 20px;
    height: 20px;
}

/* Floating buttons */
.float-ui {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    transition: bottom .3s var(--ease);
}

.float-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(50, 22, 77, .25);
    transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s, background-color .3s var(--ease);
}

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

.float-btn--top {
    width: 44px;
    height: 44px;
    background: #fff;
    color: var(--purple);
    border: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
}

.is-scrolled-far .float-btn--top {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.float-btn--top:hover {
    background: var(--purple);
    color: #fff;
}

.float-btn--wa {
    background: #25d366;
    color: #fff;
}

.float-btn--wa::after {
    content: '';
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: wa-pulse 2.4s var(--ease) infinite;
    pointer-events: none;
}

.float-btn--wa .icon {
    width: 28px;
    height: 28px;
}

@keyframes wa-pulse {
    0% {
        opacity: .7;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

/* Mobile quick-links bar */
.mobile-bar {
    display: none;
}

@media (max-width: 900px) {
    .has-mobile-bar {
        padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 70;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(12px);
        box-shadow: 0 -8px 24px rgba(100, 47, 145, .12);
    }

    .mobile-bar__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: 54px;
        border-radius: 16px;
        color: var(--nav);
        font: 600 11px/14px var(--body-font);
    }

    .mobile-bar__item:active {
        background: var(--tint);
    }

    .mobile-bar__item--main {
        background: var(--purple);
        color: #fff;
        margin-inline: 4px;
    }

    .mobile-bar__item--main:active {
        background: #7a3dae;
    }

    .mobile-bar__item--wa {
        color: #1da851;
    }

    .mobile-bar__item .icon {
        width: 22px;
        height: 22px;
    }

    .has-mobile-bar .float-ui {
        bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    }

    /* WhatsApp lives in the bar on mobile; keep only back-to-top floating. */
    .has-mobile-bar .float-btn--wa {
        display: none;
    }
}

@media (max-width: 600px) {
    .modal__panel {
        padding: 28px 20px 24px;
    }

    .modal__title {
        font-size: 23px;
        line-height: 30px;
    }

    .float-ui {
        right: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .float-btn--wa::after,
    .modal[open] {
        animation: none;
    }
}

/* ==========================================================================
   Module 5 — product listing, filters, product details
   ========================================================================== */
.shop__layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.shop__filters {
    position: sticky;
    top: 100px;
}

.filters {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #fff;
}

.filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filters__title {
    font: 600 18px/26px var(--head-font);
}

.filters__close {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tint);
    color: var(--purple);
    font-size: 24px;
    line-height: 1;
}

.filter {
    margin-top: 22px;
    padding: 0;
    border: 0;
}

.filter__label {
    display: block;
    margin-bottom: 10px;
    font: 700 12px/16px var(--body-font);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--purple);
}

.filter .st-input {
    width: 100%;
}

select.st-input {
    appearance: none;
    padding-right: 40px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23642f91' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
}

.filter__list {
    display: grid;
    gap: 4px;
    max-height: 340px;
    overflow-y: auto;
}

.filter__check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px 7px calc(8px + var(--depth, 0) * 18px);
    border-radius: 12px;
    font: 500 14px/20px var(--body-font);
    color: var(--ink);
    cursor: pointer;
    transition: background-color .2s;
}

.filter__check:hover {
    background: var(--tint);
}

.filter__check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.filter__box {
    flex: none;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--purple-soft);
    border-radius: 6px;
    transition: background-color .2s, border-color .2s;
}

.filter__check input:checked + .filter__box {
    border-color: var(--purple);
    background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") no-repeat center;
}

.filter__check input:focus-visible + .filter__box {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

.filter__name {
    flex: 1;
}

.filter__count {
    min-width: 26px;
    padding: 1px 8px;
    border-radius: 20px;
    background: var(--tint);
    font-size: 12px;
    text-align: center;
    color: var(--muted);
}

.filters__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
}

.filters.is-enhanced .filters__actions .btn {
    display: none;
}

.filters__reset {
    font: 600 13px/20px var(--head-font);
    color: var(--purple);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shop__bar {
    display: none;
}

.shop__count {
    margin-bottom: 18px;
    font: 500 14px/20px var(--body-font);
    color: var(--muted);
}

.shop__results {
    transition: opacity .25s;
}

.shop__results.is-loading {
    opacity: .45;
    pointer-events: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.product-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 30px;
}

.product-grid .card {
    min-height: 0;
}

.shop__scrim {
    display: none;
}

/* Product details */
.page-hero--compact {
    padding-bottom: 0;
    background: var(--tint);
}

.product {
    padding-top: 30px;
    background: linear-gradient(var(--tint) 0, var(--tint) 220px, #fff 220px);
}

.product__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.product__main {
    aspect-ratio: 4 / 3;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 36px rgba(100, 47, 145, .12);
}

.product__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product__thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.product__thumb {
    flex: none;
    width: 84px;
    height: 68px;
    border: 2px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    opacity: .7;
    transition: border-color .3s, opacity .3s;
}

.product__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product__thumb.is-active,
.product__thumb:hover {
    border-color: var(--purple);
    opacity: 1;
}

.product__info {
    padding-top: 10px;
}

.product__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product__cats a {
    padding: 5px 14px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid var(--line);
    font: 600 12px/18px var(--body-font);
    color: var(--purple);
    transition: background-color .3s, color .3s;
}

.product__cats a:hover {
    background: var(--purple);
    color: #fff;
}

.product__title {
    margin-top: 18px;
    font: 400 42px/52px var(--head-font);
}

.product__short {
    margin-top: 16px;
    font: 400 16px/30px var(--body-font);
    color: var(--muted);
}

.product__specs {
    width: 100%;
    margin-top: 26px;
    border-collapse: collapse;
    font: 400 14px/22px var(--body-font);
}

.product__specs th,
.product__specs td {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.product__specs th {
    width: 40%;
    font-weight: 600;
    color: var(--ink);
}

.product__specs td {
    color: var(--muted);
}

.product__btns {
    margin-top: 32px;
}

.btn--wa .icon {
    width: 18px;
    height: 18px;
}

.product__desc {
    margin-top: 64px;
}

.product__heading {
    margin-bottom: 18px;
    font: 400 28px/36px var(--head-font);
}

.product__enquire {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 48px;
    margin-top: 72px;
    padding: 48px;
    border-radius: 30px;
    background: var(--tint);
    scroll-margin-top: 100px;
}

.product__enquire .h2 {
    margin-top: 18px;
}

.product__enquire-form {
    padding: 28px;
    border-radius: 24px;
    background: #fff;
}

.product__enquire-form .contact-options {
    margin-top: 0;
}

.products--related {
    padding-bottom: 100px;
}

@media (max-width: 1100px) {
    .product-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product__enquire {
        grid-template-columns: 1fr;
        padding: 36px;
    }
}

@media (max-width: 900px) {
    .shop__layout {
        grid-template-columns: 1fr;
    }

    .shop__bar {
        display: flex;
        justify-content: flex-start;
        margin-bottom: 18px;
    }

    .shop__toggle {
        gap: 8px;
    }

    .shop__filters {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 90;
        width: min(340px, 88vw);
        overflow-y: auto;
        background: #fff;
        transform: translateX(-100%);
        transition: transform .4s var(--ease);
    }

    .shop.is-filtering .shop__filters {
        transform: none;
        box-shadow: 20px 0 40px rgba(50, 22, 77, .2);
    }

    .filters {
        min-height: 100%;
        border: 0;
        border-radius: 0;
    }

    .filters__close {
        display: grid;
        place-items: center;
    }

    .filters.is-enhanced .filters__actions .btn {
        display: inline-flex;
    }

    .shop__scrim:not([hidden]) {
        position: fixed;
        inset: 0;
        z-index: 85;
        display: block;
        background: rgba(41, 23, 58, .5);
    }

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

    .product__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .product__title {
        font-size: 34px;
        line-height: 42px;
    }
}

@media (max-width: 600px) {
    .product-grid,
    .product-grid--4 {
        grid-template-columns: 1fr;
    }

    .product__enquire {
        margin-top: 48px;
        padding: 24px 18px;
    }

    .product__enquire-form {
        padding: 18px;
    }
}

/* ==========================================================================
   Modules 7–8 — enquiry forms & captcha
   ========================================================================== */
.st-form {
    margin-top: 22px;
}

.st-form__hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.st-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.st-form__field--product,
.st-form__field--quantity,
.st-form__field--message {
    grid-column: 1 / -1;
}

.st-form__label {
    display: block;
    margin-bottom: 6px;
    font: 600 13px/18px var(--body-font);
    color: var(--ink);
}

.st-form__label span {
    color: var(--purple);
}

.st-form .st-input {
    width: 100%;
    border-radius: 14px;
}

.st-input--area {
    height: auto;
    min-height: 104px;
    padding: 12px 18px;
    line-height: 22px;
    resize: vertical;
}

.st-input[aria-invalid="true"] {
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, .12);
}

.st-form__error {
    display: block;
    min-height: 0;
    margin-top: 4px;
    font: 500 12px/16px var(--body-font);
    color: #c62828;
}

.st-form__error:empty {
    display: none;
}

.st-captcha {
    margin-top: 16px;
}

.st-captcha__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.st-captcha__img {
    display: grid;
    place-items: center;
    min-width: 170px;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--tint);
    font: 700 16px/1 var(--head-font);
    color: var(--purple);
}

.st-captcha__img:empty::before {
    content: '';
    width: 22px;
    height: 22px;
    border: 2px solid var(--purple-soft);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: st-spin .8s linear infinite;
}

.st-captcha__refresh {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--tint);
    color: var(--purple);
    font-size: 20px;
    transition: background-color .3s, color .3s, transform .4s var(--ease);
}

.st-captcha__refresh:hover {
    background: var(--purple);
    color: #fff;
    transform: rotate(180deg);
}

.st-form .st-captcha__input {
    flex: 1;
    min-width: 130px;
    width: auto;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.st-captcha__widget {
    min-height: 65px;
}

.st-form__status {
    margin-top: 14px;
    font: 500 14px/22px var(--body-font);
    color: var(--muted);
}

.st-form__status:empty {
    display: none;
}

.st-form__status.is-error {
    padding: 12px 16px;
    border-radius: 14px;
    background: #fdecec;
    color: #a61b1b;
}

.st-form__status.is-success {
    padding: 14px 16px;
    border-radius: 14px;
    background: #e8f6ec;
    color: #1d6b34;
}

.st-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    margin-top: 18px;
}

.st-form__note {
    flex: 1;
    min-width: 200px;
    font: 400 12px/18px var(--body-font);
    color: var(--muted);
}

.st-form__submit.is-busy {
    opacity: .7;
    pointer-events: none;
}

.st-form__submit.is-busy .btn__arrow {
    animation: st-nudge .8s ease-in-out infinite;
}

@keyframes st-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes st-nudge {
    50% {
        transform: translateX(5px);
    }
}

@media (max-width: 600px) {
    .st-form__grid {
        grid-template-columns: 1fr;
    }

    .st-captcha__img {
        min-width: 150px;
    }
}

/* ==========================================================================
   Module 6 — gallery page & lightbox
   ========================================================================== */
.gallery-page__content {
    max-width: 760px;
    margin-bottom: 40px;
}

.gallery-masonry {
    columns: 3 300px;
    column-gap: 22px;
}

.gallery-masonry__item {
    display: block;
    margin-bottom: 22px;
    break-inside: avoid;
}

.gallery-masonry__link {
    display: block;
    cursor: zoom-in;
}

.gallery-masonry__item img {
    width: 100%;
    height: auto;
}

.lightbox {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(22, 12, 32, .94);
    color: #fff;
}

.lightbox[open] {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: center;
}

.lightbox::backdrop {
    background: transparent;
}

.lightbox__figure {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin: 0;
    padding: 60px 0;
}

.lightbox__img {
    max-width: 100%;
    max-height: calc(100dvh - 170px);
    border-radius: 20px;
    object-fit: contain;
    animation: modal-in .4s var(--ease);
}

.lightbox__caption {
    font: 500 15px/22px var(--body-font);
    text-align: center;
    color: #e4d8ec;
}

.lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 30px;
    line-height: 1;
}

.lightbox__nav {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: auto;
    border-radius: 50%;
    background: #fff;
    transition: transform .3s var(--ease), background-color .3s;
}

.lightbox__nav img {
    width: 18px;
    height: 18px;
}

.lightbox__nav:hover {
    background: var(--purple);
    transform: scale(1.08);
}

.lightbox__nav:hover img {
    filter: brightness(0) invert(1);
}

.lightbox.is-single .lightbox__nav,
.lightbox.is-single .lightbox__count {
    display: none;
}

.lightbox__count {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    text-align: center;
    font: 600 13px/1 var(--body-font);
    color: rgba(255, 255, 255, .7);
}

@media (max-width: 600px) {
    .lightbox[open] {
        grid-template-columns: 0 minmax(0, 1fr) 0;
    }

    .lightbox__nav {
        position: absolute;
        bottom: 46px;
    }

    .lightbox__nav--prev {
        left: calc(50% - 64px);
    }

    .lightbox__nav--next {
        right: calc(50% - 64px);
    }

    .lightbox__figure {
        padding: 70px 12px 110px;
    }
}

/* ==========================================================================
   Module 11 — responsive & accessibility fixes
   ========================================================================== */
/* Footer column headings (h2 for a correct outline, styled like the design's h4) */
.footer__col .footer__heading {
    padding-bottom: 10px;
    font: 600 14px/21px var(--head-font);
    transition: color .3s var(--ease);
}

.footer__col .footer__heading:hover {
    color: var(--purple-hover);
}

/* Visible focus on dark backgrounds */
.why :focus-visible,
.cta :focus-visible,
.footer :focus-visible,
.lightbox :focus-visible,
.btn--solid:focus-visible,
.mobile-bar__item--main:focus-visible {
    outline-color: #fff;
    box-shadow: 0 0 0 5px var(--purple);
}

/* Contrast: WhatsApp label in the mobile bar (≥4.5:1 on white) */
@media (max-width: 900px) {
    .mobile-bar__item--wa {
        color: #0e7a36;
    }

    /* Closed filter drawer must not be reachable by keyboard */
    .shop__filters {
        visibility: hidden;
        transition: transform .4s var(--ease), visibility .4s;
    }

    .shop.is-filtering .shop__filters {
        visibility: visible;
    }
}

a.logo__box {
    display: block;
}

/* Client logo marquee pauses for keyboard users too */
.carousel--logos:focus-within .carousel__track--logos {
    animation-play-state: paused;
}

/* Homepage gallery: second mosaic (images 6–10) */
.gallery__grid + .gallery__grid {
    margin-top: 22px;
}

/* ==========================================================================
   Social media icons — header, mobile menu, extra networks
   ========================================================================== */
.icon--x {
    --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E");
}

.icon--pinterest {
    --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z'/%3E%3C/svg%3E");
}

/* Header (desktop): icons sit just left of "Get a Quote" */
.header__social {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    margin-right: 22px;
}

.header__social a,
.nav__social a {
    display: grid;
    place-items: center;
    color: var(--nav);
    transition: color .3s var(--ease), transform .3s var(--ease);
}

.header__social a:hover,
.nav__social a:hover {
    color: var(--purple);
    transform: translateY(-2px);
}

.header__social .icon,
.nav__social .icon {
    width: 18px;
    height: 18px;
}

/* Copy inside the mobile menu panel; hidden on desktop */
.nav__social {
    display: none;
}

/* Not enough room beside the centred nav on mid-size screens */
@media (max-width: 1180px) {
    .header__social {
        display: none;
    }
}

@media (max-width: 900px) {
    .nav__social {
        display: flex;
        gap: 22px;
        margin-top: 10px;
        padding-top: 16px;
        border-top: 1px solid var(--line);
    }

    .nav__social .icon {
        width: 22px;
        height: 22px;
    }
}
