/* ==========================================================================
   Strongbuilt Homes - 2026 website redesign (shared chrome + home page).
   Loaded after the legacy theme CSS. Every class is prefixed `sb-` so it
   never collides with style.css / bootsnav.css.
   ========================================================================== */

:root {
    --sb-navy: #303d50;
    --sb-navy-dark: #253041;
    --sb-green: #5cb055;
    --sb-green-dark: #4c9a46;
    --sb-accent: #26b45a;
    --sb-light: #f1f1f5;
    --sb-text: #303d50;
    /* Mockups use a heavy slab/serif face; Roboto Slab is the stand-in until
       the client confirms the font. */
    --sb-font: "Roboto Slab", Rockwell, Georgia, "Times New Roman", serif;
}

.sb-font, .sb-topbar, .sb-header, .sb-home, .sb-footer, .sb-copyright {
    font-family: var(--sb-font);
}

/* Wider content column than the legacy 1170px .container (mockups span ~85%). */
.sb-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ---------- Section heading with the green underline ---------- */
.sb-heading {
    color: var(--sb-navy);
    font-family: var(--sb-font);
    font-weight: 800;
    font-size: 30px;
    text-align: center;
    margin: 0 0 40px;
    text-transform: none;
}
.sb-heading::after {
    content: "";
    display: block;
    width: 160px;
    height: 3px;
    margin: 6px auto 0;
    /* thin grey rule with a thicker green centre */
    background:
        linear-gradient(var(--sb-accent), var(--sb-accent)) center / 50px 3px no-repeat,
        linear-gradient(#e3e3e6, #e3e3e6) center / 100% 1px no-repeat;
}

.sb-btn {
    display: inline-block;
    background: var(--sb-green);
    color: #fff !important;
    font-family: var(--sb-font);
    font-weight: 700;
    font-size: 18px;
    padding: 10px 30px;
    border: 0;
    border-radius: 0;
    text-decoration: none !important;
    transition: background .2s ease;
}
.sb-btn:hover, .sb-btn:focus { background: var(--sb-green-dark); }

/* ---------- Top bar ---------- */
.sb-topbar {
    background: var(--sb-navy);
    color: #fff;
    position: relative;
    z-index: 30;
}
.sb-topbar__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 6px 110px;
}
.sb-topbar__message {
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    text-decoration: none !important;
}
.sb-topbar__social {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sb-topbar__social a { color: #fff; font-size: 22px; line-height: 1; display: block; }
.sb-topbar__social img { height: 20px; width: auto; display: block; }

/* ---------- Header ---------- */
.sb-header {
    position: relative;
    z-index: 20;
    background: #fff;
}
.sb-header__inner {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 18px 30px;
}
.sb-header__logo img { width: 175px; height: auto; display: block; }

/* Home: header floats over the hero image */
.sb-header--overlay {
    position: absolute;
    left: 0;
    right: 0;
    background: transparent;
}
/* Listing pages (Models / Quick Possessions): short image strip behind it */
.sb-header--banner {
    background: #ddd center 40% / cover no-repeat;
}

.sb-nav { flex: 1; display: flex; justify-content: center; }
.sb-nav__toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 0;
    color: var(--sb-navy);
    font-size: 28px;
    padding: 4px 8px;
}
.sb-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sb-menu > li { position: relative; }
.sb-menu > li > a,
.sb-menu > li > button {
    display: block;
    background: none;
    border: 0;
    padding: 8px 12px;
    color: var(--sb-navy);
    font-family: var(--sb-font);
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.sb-menu > li > a:hover,
.sb-menu > li > button:hover,
.sb-menu > li.is-active > a,
.sb-menu > li.is-active > button { color: var(--sb-accent); }
.sb-menu .sb-caret { font-size: 12px; margin-left: 4px; }

.sb-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border-top: 3px solid var(--sb-accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
.sb-submenu a {
    display: block;
    padding: 9px 18px;
    color: var(--sb-navy);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}
.sb-submenu a:hover, .sb-submenu li.is-active a { background: var(--sb-light); color: var(--sb-accent); }
.sb-menu > li.has-children:hover > .sb-submenu,
.sb-menu > li.has-children:focus-within > .sb-submenu,
.sb-menu > li.has-children.is-open > .sb-submenu { display: block; }

/* ---------- Footer ---------- */
.sb-footer {
    background: var(--sb-navy);
    color: #fff;
    padding: 60px 0 50px;
}
.sb-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.sb-footer h3 {
    color: #fff;
    font-family: var(--sb-font);
    font-weight: 800;
    font-size: 22px;
    margin: 0 0 12px;
    text-transform: none;
}
.sb-footer h3 + p, .sb-footer p { margin: 0 0 4px; }
.sb-footer p, .sb-footer a { color: #fff; font-weight: 700; font-size: 16px; line-height: 1.45; }
.sb-footer a:hover { color: var(--sb-accent); text-decoration: none; }
.sb-footer__block + .sb-footer__block { margin-top: 26px; }
.sb-footer__hours { margin-top: 12px !important; }
.sb-footer__links { list-style: none; margin: 0; padding: 0; }
.sb-footer__links li { margin-bottom: 12px; }
.sb-footer__brand { text-align: center; justify-self: end; }
.sb-footer__brand img.sb-footer__logo { width: 230px; max-width: 100%; height: auto; }
.sb-footer__social {
    display: flex;
    justify-content: flex-end;
    gap: 22px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.sb-footer__social a { font-size: 26px; line-height: 1; }
.sb-footer__social img { height: 24px; width: auto; }

.sb-copyright {
    background: var(--sb-navy-dark);
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    padding: 12px 0;
}
.sb-copyright .sb-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.sb-copyright p { margin: 0; }
.sb-copyright a { color: #fff; }

/* ---------- Home: hero ---------- */
.sb-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88vh;
    background: #e9e9e9 center / cover no-repeat;
    text-align: center;
}
.sb-hero__content { padding: 180px 20px 60px; }
.sb-hero__title {
    color: var(--sb-navy);
    font-family: var(--sb-font);
    font-weight: 800;
    font-size: 54px;
    line-height: 1.1;
    margin: 0 0 14px;
    text-transform: none;
    text-shadow: 0 0 18px rgba(255, 255, 255, .55);
}

/* ---------- Home: Now Selling In ---------- */
.sb-selling { padding: 70px 0 50px; background: #fff; }
.sb-selling .sb-heading { margin-bottom: 30px; }
.sb-selling__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px 40px;
}
.sb-selling__logos img {
    height: 80px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* ---------- Home: intro with rotating gallery ---------- */
.sb-intro { padding: 30px 0 80px; background: #fff; }
.sb-intro__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 50px;
    align-items: center;
}
.sb-gallery {
    position: relative;
    aspect-ratio: 1526 / 1065;
    overflow: hidden;
    background: var(--sb-light);
}
.sb-gallery img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}
.sb-gallery img.is-active { opacity: 1; }
.sb-intro__text p {
    color: var(--sb-text);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.6;
    margin: 0 0 22px;
}

/* ---------- Model cards (home "Popular Models"; reused by Models page) ---------- */
.sb-models { padding: 50px 0 70px; background: var(--sb-light); }
.sb-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}
.sb-card {
    display: block;
    width: 340px;
    max-width: 100%;
    background: #fff;
    padding: 24px 24px 20px;
    text-align: center;
    color: var(--sb-navy);
    text-decoration: none !important;
    transition: box-shadow .2s ease, transform .2s ease;
}
a.sb-card:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .10); transform: translateY(-2px); }
.sb-card__image { aspect-ratio: 1 / 1.06; overflow: hidden; background: var(--sb-light); }
.sb-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-card__title {
    color: var(--sb-navy);
    font-family: var(--sb-font);
    font-weight: 800;
    font-size: 22px;
    margin: 14px 0 10px;
    text-transform: none;
}
.sb-card__title::after {
    content: "";
    display: block;
    width: 140px;
    height: 3px;
    margin: 4px auto 0;
    background:
        linear-gradient(var(--sb-accent), var(--sb-accent)) center / 40px 3px no-repeat,
        linear-gradient(#e3e3e6, #e3e3e6) center / 100% 1px no-repeat;
}
.sb-card__specs { display: flex; justify-content: center; gap: 14px; font-weight: 700; font-size: 16px; }

/* ---------- Button variants / heading sizes ---------- */
.sb-btn--sm { font-size: 15px; padding: 7px 22px; }
.sb-btn--navy { background: var(--sb-navy); }
.sb-btn--navy:hover, .sb-btn--navy:focus { background: var(--sb-navy-dark); }
.sb-heading--xl { font-size: 44px; margin-bottom: 14px; }
.sb-heading--sub { font-size: 24px; margin-bottom: 24px; }

/* ---------- Call to action (bottom of listing / detail pages) ---------- */
.sb-cta { text-align: center; padding: 60px 0 70px; }
.sb-cta h2 {
    color: var(--sb-navy);
    font-family: var(--sb-font);
    font-weight: 800;
    font-size: 28px;
    margin: 0 0 16px;
    text-transform: none;
}

/* ---------- Listing pages (Models; Quick Possessions later) ---------- */
.sb-listing { background: var(--sb-light); padding: 40px 0 0; }
.sb-listing__grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}
.sb-filters {
    background: #fff;
    padding: 22px 20px;
    color: var(--sb-navy);
}
.sb-filters__title { font-weight: 800; font-size: 16px; margin: 0 0 18px; }
.sb-filters fieldset { border: 0; margin: 0 0 18px; padding: 0; }
.sb-filters legend {
    border: 0;
    margin: 0 0 6px;
    padding: 0;
    width: auto;
    color: var(--sb-navy);
    font-family: var(--sb-font);
    font-weight: 800;
    font-size: 16px;
}
.sb-filters__actions { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }

/* green-square checkboxes / radios, as in the designs */
.sb-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    color: var(--sb-navy);
}
.sb-check input {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 15px;
    height: 15px;
    margin: 0;
    border: 2px solid var(--sb-accent);
    background: var(--sb-accent);
    cursor: pointer;
    position: relative;
}
.sb-check input:not(:checked) { background: #fff; }
.sb-check input:checked::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 0;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.sb-check input:focus-visible { outline: 2px solid var(--sb-navy); outline-offset: 2px; }

.sb-cards--grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.sb-cards--grid .sb-card { width: auto; }
.sb-empty { background: #fff; padding: 50px 20px; text-align: center; color: var(--sb-navy); font-weight: 700; }
.sb-listing .sb-cta { padding-top: 70px; }

/* ---------- Quick possession cards ---------- */
.sb-card--qp { text-align: left; padding: 22px 22px 18px; }
.sb-card--qp .sb-card__image { position: relative; margin-bottom: 12px; }
.sb-card__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
}
.sb-card__row--title h3 {
    margin: 0;
    color: var(--sb-navy);
    font-family: var(--sb-font);
    font-weight: 800;
    font-size: 21px;
    text-transform: none;
}
.sb-card__price { font-weight: 800; font-size: 20px; white-space: nowrap; }
.sb-card__location { margin: 2px 0 6px; font-weight: 700; font-size: 14px; color: var(--sb-navy); }

.sb-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 12px;
    background: var(--sb-navy);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.sb-badge--sold { background: #b3261e; }
.sb-badge--pending { background: #c77700; }
.sb-badge--inline { position: static; display: inline-block; }

/* ---------- Detail page (individual quick possession) ---------- */
.sb-board { max-width: 1000px; margin: 0 auto; text-align: center; }
.sb-board img { max-width: 100%; height: auto; }
.sb-detail__specs + .sb-detail__specs { margin-top: -10px; }
.sb-detail__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Detail page (individual model) ---------- */
.sb-detail { background: #fff; padding: 30px 0 0; }
.sb-elevations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    margin: 0 auto;
}
.sb-elevations img { width: 100%; aspect-ratio: 800 / 760; object-fit: cover; display: block; }
.sb-elevations--1 { grid-template-columns: 1fr; max-width: 760px; }
.sb-elevations--3 img:last-child { grid-column: 1 / -1; aspect-ratio: 1600 / 760; }
.sb-detail__head { text-align: center; padding: 40px 0 20px; }
.sb-detail__specs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 36px;
    color: var(--sb-navy);
    font-weight: 800;
    font-size: 26px;
    margin: 0 0 18px;
}
.sb-detail__description {
    max-width: 760px;
    margin: 24px auto 0;
    color: var(--sb-text);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.6;
}
.sb-plan { text-align: center; padding: 30px 0 20px; }
.sb-plan img { max-width: 100%; max-height: 720px; width: auto; height: auto; }
.sb-plan__group { margin-top: 40px; margin-bottom: 0; }
.sb-disclaimer {
    max-width: 1100px;
    margin: 40px auto 0;
    text-align: center;
    color: var(--sb-navy);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .sb-header__inner { gap: 16px; padding: 14px 20px; }
    .sb-header__logo img { width: 120px; }
    .sb-menu > li > a, .sb-menu > li > button { font-size: 14px; padding: 8px 8px; }
}

@media (max-width: 991px) {
    .sb-header__inner { flex-wrap: wrap; }
    .sb-nav__toggle { display: block; }
    .sb-nav {
        display: none;
        flex-basis: 100%;
        background: #fff;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    }
    .sb-nav.is-open { display: block; }
    .sb-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .sb-menu > li { border-bottom: 1px solid #eee; }
    .sb-menu > li > a, .sb-menu > li > button { width: 100%; text-align: left; font-size: 16px; padding: 12px 16px; }
    .sb-submenu { position: static; box-shadow: none; border-top: 0; padding: 0 0 6px 14px; }
    /* on touch, open only via tap (is-open), not hover */
    .sb-menu > li.has-children:hover > .sb-submenu { display: none; }
    .sb-menu > li.has-children.is-open > .sb-submenu { display: block; }

    .sb-hero { min-height: 70vh; }
    .sb-hero__title { font-size: 38px; }
    .sb-intro__grid { grid-template-columns: 1fr; gap: 30px; }
    .sb-selling__logos { justify-content: center; }
    .sb-listing__grid { grid-template-columns: 1fr; }
    .sb-cards--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .sb-heading--xl { font-size: 34px; }
    .sb-detail__specs { font-size: 20px; gap: 4px 20px; }
    .sb-cta h2 { font-size: 22px; }
    .sb-footer__grid { grid-template-columns: 1fr 1fr; }
    .sb-footer__brand { grid-column: 1 / -1; justify-self: center; }
    .sb-footer__social { justify-content: center; }
}

@media (max-width: 575px) {
    .sb-topbar__inner { padding: 6px 90px 6px 14px; justify-content: flex-start; }
    .sb-topbar__message { font-size: 13px; text-align: left; }
    .sb-hero__title { font-size: 30px; }
    .sb-container { padding: 0 16px; }
    .sb-cards--grid { grid-template-columns: 1fr; }
    .sb-elevations { grid-template-columns: 1fr; }
    .sb-elevations--3 img:last-child { aspect-ratio: 800 / 760; }
    .sb-intro__text p { font-size: 17px; }
    .sb-selling__logos img { height: 52px; max-width: 140px; }
    .sb-footer__grid { grid-template-columns: 1fr; text-align: center; }
    .sb-footer__social { justify-content: center; }
}
