/*==================================================================*\
    Strata — base.css
    Reset + tokens + colour-scheme CONSUMPTION + grid + type + utils.

    The per-scheme colour VALUES are editable on the Theme options page
    and generated as CSS at runtime (includes/color-schemes.php +
    enqueue.php). This file only *uses* the scheme variables
    (--bg-colour, --title-colour, --btn-bg-colour, --alt-btn-bg-colour …).
    Component-specific styles live in each component's own .css.
\*==================================================================*/
:root {
    /* Chrome colours used outside the scheme system. */
    --color-white: #ffffff;
    --color-heading: #0c2340;
    /* Layout */
    --container: 1080px;
    --container-wide: 1480px;
    --gutter: 1.5rem;
    --section-pad: 5rem;
    /* Type */
    --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --fs-base: 1rem;
    --lh-base: 1.75;
    --radius: 3px;
    /* Fallback active scheme — overridden by the generated scheme CSS.
       Keeps the page usable if options/generation are unavailable. */
    --bg-colour: #fdfaf5;
    --title-colour: #2a3d2e;
    --subtitle-colour: #8a8680;
    --body-colour: #5a5752;
    --link-colour: #b8843a;
    --btn-bg-colour: #b8843a;
    --btn-txt-colour: #fdfaf5;
    --btn-hover-bg-colour: #c9974f;
    --btn-hover-txt-colour: #fdfaf5;
    --alt-btn-bg-colour: #2a3d2e;
    --alt-btn-txt-colour: #fdfaf5;
    --alt-btn-hover-bg-colour: #1f2a22;
    --alt-btn-hover-txt-colour: #fdfaf5;
}

/* --- Reset -------------------------------------------------------- */
*,*::before,*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    background: var(--bg-colour);
    color: var(--body-colour);
}

img,picture,svg,video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--link-colour);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul[class],ol[class] {
    list-style: none;
    padding: 0;
}

input,button,textarea,select {
    font: inherit;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-head);
    color: var(--title-colour);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: .5em;
}

h1 {
    font-size: clamp(2.25rem,4.5vw,3.4rem);
}

h2 {
    font-size: clamp(2rem,3.2vw,2.375rem);
}

h3 {
    font-size: 1.625rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* --- Layout / container ------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container.narrow {
    max-width: 52rem;
}

.container.wide {
    max-width: var(--container-wide);
}

.container.full {
    max-width: none;
    padding-inline: clamp(1.5rem, 4vw, 3rem);
}

/* --- Flex grid (mobile-first) ------------------------------------ */
.flex-row {
    display: flex;
    flex-wrap: wrap;
    margin-inline: calc(var(--gutter) / -2);
}
.flex-col {
    width: 100%;
    padding-inline: calc(var(--gutter) / 2);
}
.no-gutters {
    margin-inline: 0;
}
.no-gutters > .flex-col {
    padding-inline: 0;
}

/* Flex alignment + text utilities (all sizes) */
.justify-content-start {
    justify-content: flex-start;
}
.justify-content-center {
    justify-content: center;
}
.justify-content-end {
    justify-content: flex-end;
}
.justify-content-between {
    justify-content: space-between;
}
.justify-content-around {
    justify-content: space-around;
}
.justify-content-evenly {
    justify-content: space-evenly;
}
.align-items-start {
    align-items: flex-start;
}
.align-items-center {
    align-items: center;
}
.align-items-end {
    align-items: flex-end;
}
.align-items-baseline {
    align-items: baseline;
}
.align-items-stretch {
    align-items: stretch;
}
.align-self-start {
    align-self: flex-start;
}
.align-self-center {
    align-self: center;
}
.align-self-end {
    align-self: flex-end;
}
.align-self-stretch {
    align-self: stretch;
}
.text-start {
    text-align: start;
}
.text-center {
    text-align: center;
}
.text-end {
    text-align: end;
}

/* Columns — n/12 widths. xs all sizes; md >=768; lg >=992; xl >=1170. */
.xs-1 {
    width: 8.3333%;
}
.xs-2 {
    width: 16.6667%;
}
.xs-3 {
    width: 25%;
}
.xs-4 {
    width: 33.3333%;
}
.xs-5 {
    width: 41.6667%;
}
.xs-6 {
    width: 50%;
}
.xs-7 {
    width: 58.3333%;
}
.xs-8 {
    width: 66.6667%;
}
.xs-9 {
    width: 75%;
}
.xs-10 {
    width: 83.3333%;
}
.xs-11 {
    width: 91.6667%;
}
.xs-12 {
    width: 100%;
}

@media (min-width:768px) {
    .md-1 {
        width: 8.3333%;
    }
    .md-2 {
        width: 16.6667%;
    }
    .md-3 {
        width: 25%;
    }
    .md-4 {
        width: 33.3333%;
    }
    .md-5 {
        width: 41.6667%;
    }
    .md-6 {
        width: 50%;
    }
    .md-7 {
        width: 58.3333%;
    }
    .md-8 {
        width: 66.6667%;
    }
    .md-9 {
        width: 75%;
    }
    .md-10 {
        width: 83.3333%;
    }
    .md-11 {
        width: 91.6667%;
    }
    .md-12 {
        width: 100%;
    }
    .justify-content-md-start {
        justify-content: flex-start;
    }
    .justify-content-md-center {
        justify-content: center;
    }
    .justify-content-md-end {
        justify-content: flex-end;
    }
    .justify-content-md-between {
        justify-content: space-between;
    }
    .justify-content-md-around {
        justify-content: space-around;
    }
    .justify-content-md-evenly {
        justify-content: space-evenly;
    }
    .align-items-md-start {
        align-items: flex-start;
    }
    .align-items-md-center {
        align-items: center;
    }
    .align-items-md-end {
        align-items: flex-end;
    }
    .align-items-md-baseline {
        align-items: baseline;
    }
    .align-items-md-stretch {
        align-items: stretch;
    }
    .align-self-md-start {
        align-self: flex-start;
    }
    .align-self-md-center {
        align-self: center;
    }
    .align-self-md-end {
        align-self: flex-end;
    }
    .align-self-md-stretch {
        align-self: stretch;
    }
    .text-md-start {
        text-align: start;
    }
    .text-md-center {
        text-align: center;
    }
    .text-md-end {
        text-align: end;
    }
    .order-md-first {
        order: -1;
    }
    .order-md-last {
        order: 1;
    }
}

@media (min-width:992px) {
    .lg-1 {
        width: 8.3333%;
    }
    .lg-2 {
        width: 16.6667%;
    }
    .lg-3 {
        width: 25%;
    }
    .lg-4 {
        width: 33.3333%;
    }
    .lg-5up {
        width: 20%;
    }
    .lg-5 {
        width: 41.6667%;
    }
    .lg-6 {
        width: 50%;
    }
    .lg-7 {
        width: 58.3333%;
    }
    .lg-8 {
        width: 66.6667%;
    }
    .lg-9 {
        width: 75%;
    }
    .lg-10 {
        width: 83.3333%;
    }
    .lg-11 {
        width: 91.6667%;
    }
    .lg-12 {
        width: 100%;
    }
    .justify-content-lg-start {
        justify-content: flex-start;
    }
    .justify-content-lg-center {
        justify-content: center;
    }
    .justify-content-lg-end {
        justify-content: flex-end;
    }
    .justify-content-lg-between {
        justify-content: space-between;
    }
    .justify-content-lg-around {
        justify-content: space-around;
    }
    .justify-content-lg-evenly {
        justify-content: space-evenly;
    }
    .align-items-lg-start {
        align-items: flex-start;
    }
    .align-items-lg-center {
        align-items: center;
    }
    .align-items-lg-end {
        align-items: flex-end;
    }
    .align-items-lg-baseline {
        align-items: baseline;
    }
    .align-items-lg-stretch {
        align-items: stretch;
    }
    .align-self-lg-start {
        align-self: flex-start;
    }
    .align-self-lg-center {
        align-self: center;
    }
    .align-self-lg-end {
        align-self: flex-end;
    }
    .align-self-lg-stretch {
        align-self: stretch;
    }
    .text-lg-start {
        text-align: start;
    }
    .text-lg-center {
        text-align: center;
    }
    .text-lg-end {
        text-align: end;
    }
    .order-lg-first {
        order: -1;
    }
    .order-lg-last {
        order: 1;
    }
}

@media (min-width:1170px) {
    .xl-1 {
        width: 8.3333%;
    }
    .xl-2 {
        width: 16.6667%;
    }
    .xl-3 {
        width: 25%;
    }
    .xl-4 {
        width: 33.3333%;
    }
    .xl-5 {
        width: 41.6667%;
    }
    .xl-6 {
        width: 50%;
    }
    .xl-7 {
        width: 58.3333%;
    }
    .xl-8 {
        width: 66.6667%;
    }
    .xl-9 {
        width: 75%;
    }
    .xl-10 {
        width: 83.3333%;
    }
    .xl-11 {
        width: 91.6667%;
    }
    .xl-12 {
        width: 100%;
    }
    .justify-content-xl-start {
        justify-content: flex-start;
    }
    .justify-content-xl-center {
        justify-content: center;
    }
    .justify-content-xl-end {
        justify-content: flex-end;
    }
    .justify-content-xl-between {
        justify-content: space-between;
    }
    .justify-content-xl-around {
        justify-content: space-around;
    }
    .justify-content-xl-evenly {
        justify-content: space-evenly;
    }
    .align-items-xl-start {
        align-items: flex-start;
    }
    .align-items-xl-center {
        align-items: center;
    }
    .align-items-xl-end {
        align-items: flex-end;
    }
    .align-items-xl-baseline {
        align-items: baseline;
    }
    .align-items-xl-stretch {
        align-items: stretch;
    }
    .align-self-xl-start {
        align-self: flex-start;
    }
    .align-self-xl-center {
        align-self: center;
    }
    .align-self-xl-end {
        align-self: flex-end;
    }
    .align-self-xl-stretch {
        align-self: stretch;
    }
    .text-xl-start {
        text-align: start;
    }
    .text-xl-center {
        text-align: center;
    }
    .text-xl-end {
        text-align: end;
    }
    .order-xl-first {
        order: -1;
    }
    .order-xl-last {
        order: 1;
    }
}

/* --- Section / component (consume the active scheme) ------------- */
.component {
    padding-block: var(--section-pad);
    background-color: var(--bg-colour);
    color: var(--body-colour);
}

.component.remove-padding-top {
    padding-top: 0;
}

.component.remove-padding-bottom {
    padding-bottom: 0;
}

/* Eyebrow / section label — oak, uppercase, tracked (matches the flat site). */
.eyebrow {
    display: block;
    color: var(--link-colour);
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: .85rem;
}

.subtitle {
    color: var(--subtitle-colour);
}

/* --- Buttons ----------------------------------------------------- */
.btn {
    display: inline-block;
    padding: .8125rem 1.625rem;
    background-color: var(--btn-bg-colour);
    color: var(--btn-txt-colour);
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    font-weight: 500;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover {
    background-color: var(--btn-hover-bg-colour);
    color: var(--btn-hover-txt-colour);
    text-decoration: none;
}

/* Contrasting alternate button — uses the section's alt scheme. */
.btn--alt {
    background-color: var(--alt-btn-bg-colour);
    color: var(--alt-btn-txt-colour);
}

.btn--alt:hover {
    background-color: var(--alt-btn-hover-bg-colour);
    color: var(--alt-btn-hover-txt-colour);
}

/* Outline variant — scheme button colour as border + text. */
.btn--outline {
    background-color: transparent;
    color: var(--btn-bg-colour);
    border-color: var(--btn-bg-colour);
}

.btn--outline:hover {
    background-color: var(--btn-bg-colour);
    color: var(--btn-txt-colour);
}

.btn-wrp {
    margin-top: 1rem;
}

/* Button groups: 12px gap between adjacent buttons. */
.btns-wrp {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Icons ------------------------------------------------------- */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
}

/* --- Elements ---------------------------------------------------- */
.img-el {
    display: block;
    width: 100%;
    height: auto;
}

/* Modal (native <dialog>) */
dialog.modal {
    width: min(600px, 92vw);
    border: 0;
    border-radius: var(--radius);
    padding: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

dialog.modal::backdrop {
    background: rgba(12,35,64,.6);
}

.modal__inner {
    position: relative;
    padding: 2.5rem;
}

.modal__close {
    position: absolute;
    top: .5rem;
    right: .75rem;
    background: none;
    border: 0;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-heading);
}

.modal__title {
    margin-bottom: 1rem;
    padding-right: 2rem;
}

/* --- Top bar ---------------------------------------------------- */
.site-top-bar {
    background-color: var(--color-heading);
    color: #fff;
    font-size: .85rem;
}
.site-top-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .4rem 1.5rem;
    padding-block: .5rem;
}
.site-top-bar__tagline {
    margin: 0;
    opacity: .85;
}
.site-top-bar__right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.site-top-bar__contact {
    display: flex;
    gap: 1.25rem;
}
.site-top-bar__contact a {
    color: #fff;
    font-weight: 600;
}
.site-top-bar__contact a:hover {
    text-decoration: underline;
}

/* --- Header ----------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #fff;
    box-shadow: 0 1px 0 rgba(12,35,64,.08), 0 6px 24px rgba(12,35,64,.05);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-block: .85rem;
}
.site-header__logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}
.site-header__logo img {
    height: 38px;
    width: auto;
}
.site-header__nav {
    margin-left: auto;
}
.site-header__nav .menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
}
.site-header__nav .menu a {
    color: var(--color-heading);
    font-weight: 600;
    padding-block: .5rem;
    position: relative;
}
.site-header__nav .menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--color-primary, #2155a8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease;
}
.site-header__nav .menu a:hover {
    text-decoration: none;
}
.site-header__nav .menu a:hover::after,
.site-header__nav .menu .current-menu-item > a::after {
    transform: scaleX(1);
}
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.site-header__cta {
    white-space: nowrap;
}
.site-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    cursor: pointer;
}
.site-header__toggle span {
    display: block;
    height: 2px;
    width: 24px;
    margin: 0 auto;
    background: var(--color-heading);
}

@media (max-width: 991px) {
    .site-header__inner {
        position: relative;
    }
    .site-header__nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        background: #fff;
        box-shadow: 0 12px 24px rgba(12,35,64,.1);
    }
    .site-header__nav.is-open {
        display: block;
    }
    .site-header__nav .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem 1.25rem 1rem;
    }
    .site-header__nav .menu a {
        display: block;
        padding-block: .75rem;
        border-bottom: 1px solid rgba(12,35,64,.08);
    }
    .site-header__nav .menu a::after {
        display: none;
    }
    .site-header__toggle {
        display: flex;
    }
    .site-header__cta {
        display: none;
    }
}

/* --- Header submenus -------------------------------------------- */
.site-header__nav .menu li {
    position: relative;
}
.site-header__nav .menu-item-has-children > a {
    padding-right: 1.1em;
}
.site-header__nav .menu-item-has-children > a::before {
    content: "";
    position: absolute;
    right: 0;
    top: 45%;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    opacity: .55;
}
.site-header__nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    min-width: 220px;
    margin: 0;
    padding: .5rem 0;
    list-style: none;
    background: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 14px 30px rgba(12, 35, 64, .14);
    display: none;
    flex-direction: column;
}
@media (min-width: 992px) {
    .site-header__nav .menu li:hover > .sub-menu,
    .site-header__nav .menu li:focus-within > .sub-menu {
        display: flex;
    }
}
.site-header__nav .sub-menu a {
    display: block;
    padding: .5rem 1.25rem;
    white-space: nowrap;
    font-weight: 500;
}
.site-header__nav .sub-menu a::after {
    display: none;
}

@media (max-width: 991px) {
    .site-header__nav .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 0 1rem;
        background: transparent;
        box-shadow: none;
    }
    .site-header__nav .sub-menu a {
        padding-block: .6rem;
        border-bottom: 1px solid rgba(12, 35, 64, .06);
    }
}

/* --- Footer (adopts the secondary scheme) ----------------------- */
.site-footer {
    background-color: var(--bg-colour);
    color: var(--body-colour);
}

.site-footer a {
    color: var(--link-colour);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-block: 4rem 2.5rem;
}

.site-footer__logo {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.site-footer__logo img {
    height: 40px;
    width: auto;
}

.site-footer__about {
    max-width: 34rem;
    opacity: .8;
}

.site-footer__about > *:last-child {
    margin-bottom: 0;
}

.site-footer__brand .social-list {
    margin-top: 1.5rem;
}

.site-footer__heading {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .7;
    margin-bottom: 1.1rem;
}

.site-footer__col .menu {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin: 0;
}

.site-footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    opacity: .9;
}

.site-footer__contact li {
    margin-bottom: .65rem;
}

.site-footer__contact address {
    font-style: normal;
}

.site-footer__bar {
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.site-footer__bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding-block: 1.25rem;
    font-size: .85rem;
    opacity: .75;
}

.site-footer__bar-inner p {
    margin: 0;
}

@media (max-width: 768px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-block: 3rem 2rem;
    }
}


.social-list {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
}
.social-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: inherit;
    transition: opacity .15s ease;
}
.social-list a:hover {
    opacity: .75;
    text-decoration: none;
}
.social-list svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}
.social-list--bar a {
    width: 26px;
    height: 26px;
}
.social-list--bar svg {
    width: 15px;
    height: 15px;
}


/* --- Cards (blog index) ----------------------------------------- */
.card {
    margin-bottom: 2rem;
}

.card__title {
    font-size: 1.25rem;
}

/* --- Errors ------------------------------------------------------ */
.strata-error {
    padding: 2rem;
    background: #fff3f3;
    border: 1px solid #f5c2c2;
    border-radius: var(--radius);
    margin: 1rem;
}

.strata-error__title {
    font-weight: 700;
    color: #b00020;
}

.strata-error__debug {
    white-space: pre-wrap;
    background: #fff;
    padding: 1rem;
    margin-top: .5rem;
    font-size: .8rem;
    overflow: auto;
}

/* --- Accessibility ---------------------------------------------- */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    background: #fff;
    padding: .5rem 1rem;
    z-index: 1000;
}

/* --- Single product --------------------------------------------- */
.product-single__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}

.product-single__media {
    border-radius: var(--radius);
    overflow: hidden;
    background-color: #3b5440;
    aspect-ratio: 4 / 3;
}

.product-single__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-single__eyebrow {
    margin-bottom: .5rem;
}

.product-single__title {
    margin-bottom: 1rem;
}

.product-single__lead {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.product-single__specs {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
}

.product-single__specs li {
    position: relative;
    padding: .55rem 0 .55rem 1.5rem;
    border-top: 1px solid var(--border, #d8d2c8);
}

.product-single__specs li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background-color: #b8843a;
}

.product-single__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

@media (max-width: 767px) {
    .product-single__grid {
        grid-template-columns: 1fr;
    }
}
