/* =========================================================
   Canbury legacy onePager theme
   Uses PotionStarter / Bootstrap as the baseline.
   This file only contains legacy page brand tokens plus the
   stripped header/footer treatment.
========================================================= */



.legacy-site--canbury {
    /* Existing legacy UI tokens */
    --legacy-font-body: "arboria", "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --legacy-font-heading: "arboria", "Ubuntu", "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --legacy-page-bg: #f5f2f3;
    --legacy-surface: #ffffff;
    --legacy-text: #000000;
    --legacy-muted: #706d6b;
    --legacy-border: rgba(102, 97, 99, .16);
    --legacy-brand: #d96528;
    --legacy-brand-dark: #a94718;
    --legacy-brand-soft: #f7b58f;
    --legacy-brand-tint: #fff2ec;
    --legacy-footer-bg: #666361;
    --legacy-footer-text: #ffffff;
    --legacy-footer-muted: #e0dedc;
    /* PotionStarter section/background tokens */
    --ps-primary: #d96528;
    --ps-secondary: #666361;
    --ps-accent: #ed8c5a;
    --ps-muted: #f5f2f3;
    --ps-ink: #000000;
    --ps-light: #ffffff;
    --ps-dark: #212529;
    /* Bootstrap compatibility, if any Bootstrap utilities/buttons are used */
    --bs-primary: #d96528;
    --bs-secondary: #666361;
}


/* =========================================================
   Legacy base scope
========================================================= */

.legacy-site {
    background: var(--legacy-page-bg);
    color: var(--legacy-text);
    font-family: var(--legacy-font-body);
}

.legacy-site h1,
.legacy-site h2,
.legacy-site h3,
.legacy-site h4,
.legacy-site h5,
.legacy-site h6 {
    font-family: var(--legacy-font-heading);
    font-weight: 700;
}

.legacy-site .ps-main {
    background: var(--legacy-page-bg);
}

.legacy-site a {
    color: var(--legacy-brand-dark);
}

.legacy-site a:hover,
.legacy-site a:focus {
    color: var(--legacy-text);
}

/* =========================================================
   Stripped legacy header
========================================================= */

.legacy-header {
    position: relative;
    z-index: 20;
    background: var(--legacy-page-bg);
    border-bottom: 1px solid var(--legacy-border);
}

.legacy-header__inner {
    min-height: 118px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.25rem, 4vw, 3rem);
    padding: 1rem 0;
}

.legacy-header__brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.legacy-header__logo {
    display: block;
    width: auto;
    max-width: min(270px, 45vw);
    max-height: 96px;
    object-fit: contain;
}

.legacy-header__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.1rem;
    min-width: 0;
}

.legacy-header__phone {
    color: var(--legacy-text);
    font-weight: 700;
    font-size: .98rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.legacy-header__phone:hover,
.legacy-header__phone:focus {
    color: var(--legacy-brand-dark);
    text-decoration: underline;
}

.legacy-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .7rem;
    flex-wrap: wrap;
}

.legacy-header__nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .78rem 1.05rem;
    border: 2px solid var(--legacy-brand);
    border-radius: .55rem;
    background: var(--legacy-brand);
    color: #ffffff !important;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.legacy-header__nav-button:hover,
.legacy-header__nav-button:focus {
    background: var(--legacy-brand-soft);
    border-color: var(--legacy-brand-soft);
    color: var(--legacy-text) !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.legacy-header__nav-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--legacy-brand) 35%, transparent);
    outline-offset: 3px;
}

.legacy-header__empty {
    color: var(--legacy-muted);
    font-size: .92rem;
    font-style: italic;
}

/* Ensure old legacy navigation/search patterns do not reappear. */
.legacy-site .legacy-nav,
.legacy-site .legacy-header__search,
.legacy-site .legacy-header__burger,
.legacy-site .legacy-header__button {
    display: none !important;
}

/* =========================================================
   Stripped legacy footer
========================================================= */

.legacy-footer {
    background: var(--legacy-footer-bg);
    color: var(--legacy-footer-text);
    padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}

.legacy-footer__grid {
    display: grid;
    grid-template-columns: minmax(210px, 1.25fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(140px, .75fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
}

.legacy-footer__brand a {
    display: inline-flex;
}

.legacy-footer__logo {
    display: block;
    width: auto;
    max-width: 240px;
    max-height: 90px;
    object-fit: contain;
}

.legacy-footer h2 {
    margin: 0 0 .8rem;
    color: var(--legacy-footer-text);
    font-size: 1rem;
    line-height: 1.2;
}

.legacy-footer p,
.legacy-footer li,
.legacy-footer__bottom {
    color: var(--legacy-footer-muted);
    font-size: .95rem;
    line-height: 1.65;
}

.legacy-footer p {
    margin: 0;
}

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

.legacy-footer li + li {
    margin-top: .4rem;
}

.legacy-footer a {
    color: var(--legacy-footer-muted) !important;
    text-decoration: none;
}

.legacy-footer a:hover,
.legacy-footer a:focus {
    color: var(--legacy-footer-text) !important;
    text-decoration: underline;
}

.legacy-footer__bottom {
    margin-top: 2rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.legacy-footer__bottom p {
    color: inherit;
}

.legacy-footer__empty {
    color: var(--legacy-footer-muted);
    font-style: italic;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 991.98px) {
    .legacy-header__inner {
        min-height: auto;
        align-items: flex-start;
    }

    .legacy-header__right {
        flex-direction: column;
        align-items: flex-end;
        gap: .8rem;
    }

    .legacy-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .legacy-header__inner {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0 1.2rem;
        text-align: center;
    }

    .legacy-header__logo {
        max-width: min(230px, 82vw);
        max-height: 84px;
    }

    .legacy-header__right {
        align-items: center;
        width: 100%;
    }

    .legacy-header__nav {
        justify-content: center;
        width: 100%;
    }

    .legacy-header__nav-button {
        flex: 1 1 auto;
        min-width: 118px;
    }

    .legacy-footer__grid {
        grid-template-columns: 1fr;
    }

    .legacy-footer__logo {
        max-width: 220px;
    }
}

@media (max-width: 420px) {
    .legacy-header__nav {
        flex-direction: column;
        align-items: stretch;
    }

    .legacy-header__nav-button {
        width: 100%;
    }
}


.legacy-site--canbury .ps-promo-cards {
    --ps-promo-card-title: var(--legacy-brand);
    --ps-promo-card-text: var(--legacy-text);
}



.legacy-site--canbury .ps-promo-accordion {
    --ps-promo-accordion-active-title: var(--legacy-brand);
    --ps-promo-accordion-body: var(--legacy-text);
}



.ps-hero .ps-hero__title {
    color: var(--ps-hero-title, var(--ps-white)) !important;
    font-size: 3.6rem;
    padding: 1.0rem;
}

.ps-hero .ps-hero__desc {
    font-size: 1.4rem;
    padding: 1.0rem;
}


/* LightGallery navigation – Canbury branding */
.ps-lightgallery {
    --ps-lg-control-bg: #ed8c5a;
    --ps-lg-control-color: #666361;
    --ps-lg-control-hover-bg: #666361;
    --ps-lg-control-hover-color: #ffffff;
}

