:root {
    --tps-ivory: #fbfaf6;
    --tps-paper: #ffffff;
    --tps-ink: #18211f;
    --tps-muted: #65716d;
    --tps-green: #243b34;
    --tps-gold: #b18b58;
    --tps-line: #e5ded2;
}

body.home,
body.woocommerce,
body.single-product {
    background: var(--tps-ivory);
    color: var(--tps-ink);
}

.tps-wrap {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.tps-retail-nav {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(251, 250, 246, 0.96);
    border-bottom: 1px solid var(--tps-line);
    backdrop-filter: blur(14px);
}

.tps-nav-wrap {
    width: min(1240px, calc(100% - 28px));
    min-height: 68px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(260px, 340px) auto;
    gap: 14px;
    align-items: center;
}

.tps-nav-brand {
    color: var(--tps-green);
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 0;
}

.tps-nav-toggle {
    display: none;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid var(--tps-line);
    border-radius: 6px;
    background: var(--tps-paper);
    color: var(--tps-ink);
    font-weight: 800;
}

.tps-nav-menu {
    display: flex;
    gap: 6px;
    align-items: center;
    min-width: 0;
}

.tps-nav-group {
    position: relative;
}

.tps-nav-group summary,
.tps-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 6px;
    color: var(--tps-ink);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.tps-nav-group summary:hover,
.tps-nav-link:hover,
.tps-nav-group[open] summary {
    background: #efe8dc;
}

.tps-mega {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: min(620px, calc(100vw - 28px));
    padding: 18px;
    background: var(--tps-paper);
    border: 1px solid var(--tps-line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(20, 24, 22, 0.16);
}

.tps-mega-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tps-mega-links a {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 6px;
    color: var(--tps-ink);
    text-decoration: none;
}

.tps-mega-links a:hover,
.tps-mega-links a:focus {
    background: var(--tps-ivory);
}

.tps-mega-links span {
    color: var(--tps-muted);
    font-size: 0.88rem;
}

.tps-nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tps-nav-search input[type="search"] {
    width: 100%;
    min-width: 180px;
    min-height: 42px;
    border: 1px solid var(--tps-line);
    border-radius: 6px;
    padding: 9px 12px;
    background: var(--tps-paper);
    color: var(--tps-ink);
}

.tps-nav-search button,
.tps-frames-search button {
    min-height: 42px;
    padding: 9px 13px;
    border: 0;
    border-radius: 6px;
    background: var(--tps-green);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.tps-nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tps-nav-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--tps-line);
    border-radius: 6px;
    color: var(--tps-ink);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.tps-nav-actions .tps-nav-quote {
    background: var(--tps-green);
    border-color: var(--tps-green);
    color: #fff;
}

.tps-announcement {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    justify-content: center;
    padding: 10px 16px;
    background: var(--tps-green);
    color: #fff;
    font-size: 0.88rem;
    letter-spacing: 0;
}

.tps-hero {
    position: relative;
    min-height: clamp(560px, 76vh, 760px);
    display: grid;
    align-items: center;
    overflow: hidden;
    background: #111;
}

.tps-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 20, 18, 0.86), rgba(14, 20, 18, 0.44), rgba(14, 20, 18, 0.18));
}

.tps-hero__media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
        url("https://tranquilfactories.co.za/wp-content/uploads/2025/03/Snapinst.app_481203940_621378630647919_4745024492943363052_n_1080.jpg") center / cover no-repeat;
    transform: scale(1.01);
}

.tps-hero__content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding-block: 72px;
}

.tps-eyebrow {
    margin: 0 0 12px;
    color: var(--tps-gold);
    font-weight: 760;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.tps-hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.8rem, 6vw, 5.75rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.tps-hero p:not(.tps-eyebrow) {
    max-width: 620px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.tps-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.tps-btn,
.tps-card__buy,
.tps-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 750;
    text-decoration: none;
    line-height: 1.1;
}

.tps-btn--primary,
.tps-card__buy {
    background: var(--tps-gold);
    color: #111 !important;
}

.tps-btn--secondary,
.tps-card__link {
    border: 1px solid currentColor;
    color: inherit !important;
}

.tps-section {
    padding-block: clamp(44px, 7vw, 86px);
}

.tps-section__head {
    display: grid;
    gap: 10px;
    max-width: 860px;
    margin-bottom: 24px;
}

.tps-section h2 {
    margin: 0;
    color: var(--tps-ink);
    font-size: clamp(1.8rem, 3.4vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.tps-cats,
.tps-products,
.tps-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.tps-cat,
.tps-card,
.tps-trust article {
    background: var(--tps-paper);
    border: 1px solid var(--tps-line);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--tps-ink);
}

.tps-cat {
    min-height: 260px;
}

.tps-cat.no-image,
.tps-link-card.no-image {
    min-height: 180px;
    align-content: center;
}

.tps-cat__image {
    display: block;
    aspect-ratio: 4 / 3;
    background-color: #ddd4c8;
    background-position: center;
    background-size: cover;
}

.tps-cat__label,
.tps-cat__copy {
    display: block;
    padding-inline: 16px;
}

.tps-cat__label {
    padding-top: 16px;
    font-weight: 800;
    font-size: 1.05rem;
}

.tps-cat__copy {
    padding-top: 7px;
    padding-bottom: 18px;
    color: var(--tps-muted);
    font-size: 0.94rem;
}

.tps-card__image {
    display: block;
    aspect-ratio: 1 / 1;
    background: #eee7dc;
}

.tps-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tps-card__body {
    padding: 16px;
}

.tps-card h3 {
    min-height: 3.2em;
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.tps-card h3 a {
    color: var(--tps-ink);
    text-decoration: none;
}

.tps-price {
    min-height: 1.8em;
    margin: 12px 0;
    color: var(--tps-green);
    font-weight: 760;
}

.tps-card__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}

.tps-decision-grid,
.tps-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tps-decision-grid article,
.tps-link-card {
    background: var(--tps-paper);
    border: 1px solid var(--tps-line);
    border-radius: 8px;
    padding: 22px;
    color: var(--tps-ink);
    text-decoration: none;
}

.tps-decision-grid span {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--tps-gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tps-decision-grid h2 {
    font-size: clamp(1.35rem, 2.1vw, 1.9rem);
}

.tps-decision-grid a,
.tps-link-card strong {
    color: var(--tps-green);
    font-weight: 900;
}

.tps-link-card {
    display: grid;
    gap: 8px;
    overflow: hidden;
}

.tps-link-card span {
    color: var(--tps-muted);
}

.tps-premium,
.tps-commercial {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 28px;
    align-items: center;
    border-block: 1px solid var(--tps-line);
}

.tps-decision-grid p,
.tps-premium p,
.tps-commercial p,
.tps-trust p {
    color: var(--tps-muted);
}

.tps-room__links {
    display: grid;
    gap: 10px;
}

.tps-room__links a {
    display: flex;
    justify-content: space-between;
    padding: 16px 18px;
    border: 1px solid var(--tps-line);
    border-radius: 8px;
    background: var(--tps-paper);
    color: var(--tps-ink);
    font-weight: 760;
    text-decoration: none;
}

.tps-room__links a::after {
    content: attr(data-action);
    color: var(--tps-gold);
}

.tps-frames-shop {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
    padding-block: clamp(44px, 7vw, 86px);
}

.tps-frames-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    margin: 0 0 18px;
}

.tps-frames-search label {
    display: grid;
    gap: 6px;
    font-weight: 800;
}

.tps-frames-search input[type="search"] {
    min-height: 42px;
    min-width: min(100%, 320px);
    border: 1px solid var(--tps-line);
    border-radius: 6px;
    padding: 9px 12px;
}

.tps-frame-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tps-frame-filters a,
.tps-pagination a,
.tps-pagination span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--tps-line);
    border-radius: 6px;
    background: var(--tps-paper);
    color: var(--tps-ink);
    text-decoration: none;
    font-weight: 800;
}

.tps-service-page {
    background: var(--tps-ivory);
    color: var(--tps-ink);
}

.tps-service-hero {
    padding-block: clamp(76px, 12vw, 148px);
    background: linear-gradient(180deg, #ffffff, #f4efe6);
    border-bottom: 1px solid var(--tps-line);
}

.tps-service-hero .tps-wrap {
    max-width: 900px;
}

.tps-service-hero h1 {
    max-width: 820px;
    margin: 0;
    color: var(--tps-ink);
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.tps-service-hero p {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--tps-muted);
    font-size: clamp(1.02rem, 1.8vw, 1.22rem);
}

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

.tps-service-grid article {
    padding: 22px;
    border: 1px solid var(--tps-line);
    border-radius: 8px;
    background: var(--tps-paper);
}

.tps-service-grid h2 {
    margin-top: 0;
    font-size: 1.15rem;
    line-height: 1.2;
}

.tps-service-grid ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
    color: var(--tps-muted);
}

.tps-service-paths .tps-link-card {
    min-height: 150px;
}

.tps-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tps-trust article {
    padding: 20px;
}

.tps-trust h3 {
    margin-top: 0;
}

.tps-empty,
.tps-product-note {
    border: 1px solid var(--tps-line);
    border-radius: 8px;
    background: #fff;
    padding: 14px 16px;
    color: var(--tps-muted);
}

.tps-product-note--frame,
.tps-frame-ack {
    border-color: #d7c39c;
    background: #fff8ea;
    color: #3c2e16;
}

.tps-frame-ack {
    padding: 13px 15px;
    border-radius: 8px;
}

.single-product form.cart .tps-buy-now {
    margin-left: 8px;
    background: var(--tps-green) !important;
}

@media (max-width: 980px) {
    .tps-nav-wrap {
        grid-template-columns: auto auto 1fr;
    }

    .tps-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .tps-nav-menu {
        grid-column: 1 / -1;
        display: none;
        padding: 10px 0 14px;
        border-top: 1px solid var(--tps-line);
    }

    .tps-retail-nav.tps-nav--open .tps-nav-menu {
        display: grid;
        gap: 6px;
    }

    .tps-nav-group,
    .tps-nav-group summary,
    .tps-nav-link {
        width: 100%;
    }

    .tps-mega {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
    }

    .tps-nav-search {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .tps-nav-actions {
        grid-column: 3;
        grid-row: 1 / 3;
        justify-content: end;
        flex-wrap: wrap;
    }

    .tps-nav-actions a {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 0.88rem;
    }

    .tps-cats,
    .tps-products,
    .tps-decision-grid,
    .tps-link-grid,
    .tps-service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .tps-hero {
        min-height: 620px;
    }

    .tps-hero::after {
        background: linear-gradient(180deg, rgba(14, 20, 18, 0.3), rgba(14, 20, 18, 0.9) 58%, rgba(14, 20, 18, 0.98));
    }

    .tps-cats,
    .tps-products,
    .tps-trust,
    .tps-decision-grid,
    .tps-link-grid,
    .tps-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .tps-premium,
    .tps-commercial,
    .tps-section__head {
        grid-template-columns: 1fr;
        display: block;
    }

    .single-product form.cart {
        position: sticky;
        bottom: 0;
        z-index: 20;
        padding: 10px;
        background: rgba(251, 250, 246, 0.96);
        border-top: 1px solid var(--tps-line);
    }

    .single-product form.cart .button {
        width: 100%;
        margin: 6px 0 0;
    }
}

@media (max-width: 460px) {
    .tps-nav-wrap {
        width: min(100% - 20px, 1240px);
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    .tps-nav-brand {
        grid-column: 1;
    }

    .tps-nav-toggle {
        grid-column: 2;
    }

    .tps-nav-search,
    .tps-nav-actions {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-content: stretch;
    }

    .tps-nav-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tps-nav-actions a {
        white-space: normal;
        text-align: center;
    }

    .tps-mega-links {
        grid-template-columns: 1fr;
    }

    .tps-cats,
    .tps-products,
    .tps-trust,
    .tps-decision-grid,
    .tps-link-grid,
    .tps-service-grid {
        grid-template-columns: 1fr;
    }

    .tps-card__body,
    .tps-cat__label,
    .tps-cat__copy {
        padding-inline: 12px;
    }

    .tps-card h3 {
        font-size: 0.94rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.tps-hero__media{background-image:linear-gradient(90deg,rgba(0,0,0,.55),rgba(0,0,0,.12)),url(https://tranquilfactories.co.za/wp-content/plugins/tranquil-video-release/assets/video/2026-07-25/hero/tranquil-hero-desktop-poster.webp);background-size:cover;background-position:center}
