/*
 * NWR Group booking theme (TenantBookingTheme): colours and fonts from the new NWR Group website
 * (https://nwrgroup.omnidev.co.za/) and the NWRG header/footer (LegacyForm/Tenant/Nwrg).
 * Shared components live in css/tenant-booking.css.
 */
@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=Outfit:wght@400;500&display=swap");

body.tb-theme.site--nwrg {
    --tb-brand: #638d23;
    --tb-brand-hover: #55791e;
    --tb-brand-dark: #16432c;
    --tb-brand-ink: #ffffff;
    --tb-brand-soft: #eef4e4;
    --tb-accent: #ffd64f;
    --tb-accent-ink: #16432c;
    --tb-ink: #16432c;
    --tb-muted: #5b6b62;
    --tb-line: #dfe7e1;
    --tb-surface: #f2f6f1;
    --tb-page: #f5f5f3;
    --tb-hero-from: #16432c;
    --tb-hero-to: #1f5c3d;
    --tb-footer-bg: #16432c;
    --tb-footer-ink: #ccdbd7;
    --tb-radius: 16px;
    --tb-font: Figtree, "Segoe UI", Arial, sans-serif;
}

.site--nwrg .tb-picker__hero h1,
.site--nwrg .tb-start__hero h1,
.site--nwrg .tb-confirmed h1,
.site--nwrg .tb-steps h2 {
    font-family: Figtree, "Segoe UI", Arial, sans-serif;
    font-weight: 800;
}

/* NWR Group buttons are rounded pills with uppercase labels, like "Book a collection" on the main site. */
.site--nwrg .tb-btn,
.site--nwrg .tb-start__journey .journey-submit {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---------- Header ---------- */
.tb-theme .nwrg-header {
    border-bottom: 1px solid #ececec;
    background: #fff;
    font-family: Figtree, "Segoe UI", Arial, sans-serif;
}

.tb-theme .nwrg-header__main {
    padding: 0;
    background: #fff;
}

.tb-theme .nwrg-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    min-height: 5.5rem;
    padding: 0.6rem 0;
}

.tb-theme .nwrg-header__logo img {
    display: block;
    width: auto;
    height: 45px;
    max-width: 60vw;
    object-fit: contain;
}

.tb-theme .nwrg-header__collapse {
    flex-basis: 100%;
}

.tb-theme .nwrg-nav {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0.25rem 0 0.5rem;
    list-style: none;
}

.tb-theme .nwrg-nav > li > a {
    display: block;
    padding: 0.65rem 0.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.tb-theme .nwrg-nav > li > a:hover,
.tb-theme .nwrg-nav > li > a:focus-visible {
    color: #638d23;
}

.tb-theme .nwrg-nav .dropdown-toggle::after {
    margin-left: 0.4em;
    border-top-color: #638d23;
    vertical-align: 0.2em;
}

.tb-theme .nwrg-nav__menu {
    min-width: 15rem;
    margin: 0;
    padding: 0.5rem;
    border: 1px solid #ececec;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(22, 67, 44, 0.12);
}

.tb-theme .nwrg-nav__menu .dropdown-item {
    display: grid;
    gap: 0.1rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    color: #16432c;
    font-size: 15px;
    font-weight: 700;
    white-space: normal;
}

.tb-theme .nwrg-nav__menu .dropdown-item small {
    color: #638d23;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tb-theme .nwrg-nav__menu .dropdown-item:hover,
.tb-theme .nwrg-nav__menu .dropdown-item:focus {
    background: #eef4e4;
    color: #16432c;
}

.tb-theme .nwrg-header__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    padding: 0.5rem 0 0.75rem;
}

.tb-theme .nwrg-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    white-space: nowrap;
}

.tb-theme .nwrg-header__phone .tb-icon {
    color: #638d23;
}

.tb-theme .nwrg-header__phone:hover {
    color: #638d23;
}

.tb-theme .nwrg-header__book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    background: #638d23;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.tb-theme .nwrg-header__book:hover,
.tb-theme .nwrg-header__book:focus-visible {
    background: #16432c;
    color: #fff;
}

@media (min-width: 1200px) {
    /* Logo, menu and actions stay on one row. */
    .tb-theme .nwrg-header__inner {
        flex-wrap: nowrap;
    }

    .tb-theme .nwrg-header__logo {
        flex-shrink: 0;
    }

    .tb-theme .nwrg-header__collapse {
        flex-basis: auto;
        min-width: 0;
        justify-content: flex-end;
        gap: 2rem;
    }

    .tb-theme .nwrg-nav {
        flex-direction: row;
        align-items: center;
        gap: 1.6rem;
        padding: 0;
    }

    .tb-theme .nwrg-nav > li > a {
        padding: 0.5rem 0;
        border-bottom: 0;
        white-space: nowrap;
    }

    .tb-theme .nwrg-header__actions {
        flex-wrap: nowrap;
        padding: 0;
    }

    /* Desktop: open the dropdowns on hover, like the main site. */
    .tb-theme .nwrg-nav__dropdown:hover > .nwrg-nav__menu {
        display: block;
        margin-top: 0;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .tb-theme .nwrg-header__logo img {
        height: 40px;
    }

    .tb-theme .nwrg-header__collapse {
        gap: 1.25rem;
    }

    .tb-theme .nwrg-nav {
        gap: 1.1rem;
    }

    .tb-theme .nwrg-nav > li > a,
    .tb-theme .nwrg-header__phone {
        font-size: 14px;
    }
}

@media (max-width: 575.98px) {
    .tb-theme .nwrg-header__logo img {
        height: 38px;
    }
}

/* ---------- Footer ---------- */
.tb-theme .nwrg-footer {
    margin-top: 3rem;
    background: #16432c;
    color: #ccdbd7;
    font-family: Figtree, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
}

.tb-theme .nwrg-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1.2fr 1fr 1fr;
    gap: 2.5rem;
    padding: 4rem 0 3rem;
}

.tb-theme .nwrg-footer__brand {
    display: grid;
    align-content: start;
    gap: 1.25rem;
}

/* The tenant logo is a dark-on-light SVG; the main site shows a white version on the green footer. */
.tb-theme .nwrg-footer__logo {
    display: block;
    width: 155px;
    max-width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.tb-theme .nwrg-footer__brand p {
    margin: 0;
    color: #cee9e6;
    font-size: 16px;
    line-height: 1.6;
}

.tb-theme .nwrg-footer h2 {
    margin: 0 0 1.1rem;
    color: #e9e9e9;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tb-theme .nwrg-footer ul {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tb-theme .nwrg-footer li:empty {
    display: none;
}

.tb-theme .nwrg-footer__list a {
    color: #ccdbd7;
    text-decoration: none;
}

.tb-theme .nwrg-footer__list a:hover,
.tb-theme .nwrg-footer__list a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.tb-theme .nwrg-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(44, 135, 88, 0.6);
}

.tb-theme .nwrg-footer__contact li:last-child {
    border-bottom: 0;
}

.tb-theme .nwrg-footer__contact .tb-icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: #8cc63f;
    font-size: 1.15rem;
}

.tb-theme .nwrg-footer__contact address {
    margin: 0;
    line-height: 1.6;
}

.tb-theme .nwrg-footer__contact a {
    color: #ccdbd7;
    text-decoration: none;
}

.tb-theme .nwrg-footer__contact a:hover {
    color: #fff;
}

.tb-theme .nwrg-footer__bottom {
    border-top: 1px solid rgba(44, 135, 88, 0.8);
    color: #cee9e6;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.tb-theme .nwrg-footer__bottom .tb-shell {
    padding: 1.4rem 0;
}

@media (max-width: 991.98px) {
    .tb-theme .nwrg-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .tb-theme .nwrg-footer__grid {
        grid-template-columns: 1fr;
        padding-top: 2.5rem;
    }
}
