/*
 * Land Home Properties — layout layer
 * Container, sections, header and navigation, inner-page intros,
 * breadcrumbs, call-to-action panel, in-page navigation and footer.
 */

.container {
    margin-inline: auto;
    max-width: calc(var(--container) + 2 * var(--gutter));
    padding-inline: var(--gutter);
    width: 100%;
}

.container--narrow {
    max-width: calc(860px + 2 * var(--gutter));
}

.section {
    padding-block: var(--section-space);
}

.section--tight {
    padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem);
}

.section--soft {
    background: var(--surface-soft);
}

.section--tint {
    background: var(--brand-tint);
}

.section--sage {
    background: var(--sage);
}

.section--portfolio {
    background: var(--portfolio-surface);
}

.section--locations {
    background: var(--location-surface);
}

.section-head {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
    margin-bottom: var(--space-l);
}

.section-head > div {
    max-width: 44rem;
}

.section-head h2 {
    margin-bottom: 0;
}

.section-head p:not(.eyebrow) {
    color: var(--muted);
    margin: .85rem 0 0;
}

.section-head--center {
    justify-content: center;
    text-align: center;
}

/* ------------------------------------------------------------------ Header */
/*
 * A sticky bar exactly --header-height tall, so sticky in-page navigation and
 * scroll padding line up beneath it. Wide screens show the links inline;
 * narrower screens use a disclosure (never an ARIA menu): its links remain
 * ordinary links and are unavailable to the keyboard while hidden.
 */
.site-header {
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    background: rgb(255 255 255 / 92%);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    transition: background-color var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
    z-index: 1030;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px -22px rgb(24 37 43 / 45%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header {
        background: var(--white);
    }
}

.site-navigation {
    align-items: center;
    display: flex;
    gap: 1rem;
    height: var(--header-height);
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    flex: none;
    line-height: 0;
    padding: .15rem 0;
}

.brand-logo {
    display: block;
    height: 43px;
    max-width: 62vw;
    width: auto;
}

.site-menu-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--ink);
    display: inline-flex;
    font-family: var(--font-display);
    font-size: .8125rem;
    font-stretch: 110%;
    font-weight: 600;
    gap: .6rem;
    letter-spacing: .12em;
    line-height: 1.2;
    min-height: 2.75rem;
    padding: .5rem .95rem .5rem 1.1rem;
    text-transform: uppercase;
    transition: background-color var(--duration), border-color var(--duration), color var(--duration);
}

.site-menu-toggle:hover,
.site-menu-toggle[aria-expanded='true'] {
    background: var(--brand-tint);
    border-color: var(--brand-deep);
    color: var(--brand-deep);
}

/* Three bars that fold into a cross while the menu is open. */
.site-menu-toggle__bars,
.site-menu-toggle__bars::before,
.site-menu-toggle__bars::after,
.site-menu-toggle__bars > span {
    display: block;
    height: 2px;
    width: 1.1rem;
}

.site-menu-toggle__bars {
    position: relative;
}

.site-menu-toggle__bars::before,
.site-menu-toggle__bars::after,
.site-menu-toggle__bars > span {
    background: currentColor;
    border-radius: 2px;
    content: '';
    left: 0;
    position: absolute;
    transition: transform var(--duration) var(--ease-out), opacity var(--duration-fast);
}

.site-menu-toggle__bars::before { transform: translateY(-5px); }
.site-menu-toggle__bars::after { transform: translateY(5px); }

.site-menu-toggle[aria-expanded='true'] .site-menu-toggle__bars > span { opacity: 0; }
.site-menu-toggle[aria-expanded='true'] .site-menu-toggle__bars::before { transform: rotate(45deg); }
.site-menu-toggle[aria-expanded='true'] .site-menu-toggle__bars::after { transform: rotate(-45deg); }

.site-menu-panel[hidden] {
    display: none;
}

.site-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav > li {
    position: relative;
}

.site-nav a,
.site-nav summary {
    color: var(--ink);
    font-size: .9375rem;
    font-weight: 550;
    line-height: 1.4;
    text-decoration: none;
}

.site-nav > li > a {
    display: block;
    padding: .5rem 0;
    position: relative;
}

.site-nav > li > a::after {
    background: var(--brand);
    border-radius: 2px;
    bottom: .2rem;
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration) var(--ease-out);
    width: 100%;
}

.site-nav > li > a:hover,
.site-nav > li > a:focus-visible,
.site-nav > li > a.active {
    color: var(--brand-ink);
}

.site-nav > li > a:hover::after,
.site-nav > li > a:focus-visible::after,
.site-nav > li > a.active::after {
    transform: scaleX(1);
}

.site-nav__about {
    align-items: center;
    display: flex;
    gap: .1rem;
}

.site-nav__about details {
    position: relative;
}

.site-nav__about summary {
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    list-style: none;
    padding: .5rem .2rem;
}

.site-nav__about summary:hover {
    color: var(--brand-ink);
}

.site-nav__about summary::-webkit-details-marker {
    display: none;
}

.site-nav__about summary .icon {
    height: 1.05rem;
    transition: transform var(--duration) var(--ease-out);
    width: 1.05rem;
}

.site-nav__about details[open] summary .icon {
    transform: rotate(180deg);
}

.site-nav__about ul {
    animation: dropdown-in var(--duration) var(--ease-out);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    display: grid;
    gap: .15rem;
    list-style: none;
    margin: .35rem 0 0;
    min-width: 10rem;
    padding: .4rem;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 2;
}

.site-nav__about ul a {
    border-radius: 6px;
    display: block;
    padding: .5rem .65rem;
}

.site-nav__about ul a:hover,
.site-nav__about ul a:focus-visible,
.site-nav__about ul a.active {
    background: var(--brand-tint);
    color: var(--brand-deep);
}

/* Narrow screens: the panel drops below the bar as a full-width sheet. */
@media (max-width: 991.98px) {
    .site-menu-panel {
        animation: panel-in var(--duration) var(--ease-out);
        background: var(--white);
        border-bottom: 1px solid var(--line);
        border-top: 1px solid var(--line);
        box-shadow: 0 24px 40px -28px rgb(24 37 43 / 45%);
        left: 0;
        max-height: calc(100svh - var(--header-height));
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: .5rem var(--gutter) 1.25rem;
        position: absolute;
        right: 0;
        top: 100%;
    }

    .site-nav {
        flex-direction: column;
        margin-inline: auto;
        max-width: 40rem;
    }

    .site-nav > li {
        border-bottom: 1px solid var(--line);
    }

    .site-nav > li > a {
        font-size: 1.0625rem;
        padding: .85rem 0;
    }

    .site-nav > li > a::after {
        bottom: .6rem;
        width: 1.5rem;
    }

    .site-nav__about {
        display: block;
    }

    .site-nav__about > a {
        margin-right: 3.5rem;
    }

    .site-nav__about details {
        position: static;
    }

    .site-nav__about summary {
        justify-content: center;
        padding: .85rem .75rem;
        position: absolute;
        right: 0;
        top: 0;
    }

    .site-nav__about ul {
        animation: none;
        background: var(--surface-soft);
        border: 0;
        box-shadow: none;
        margin: 0 0 .75rem;
        position: static;
    }

    .site-header__cta {
        display: flex;
        margin: 1.1rem auto 0;
        max-width: 40rem;
        min-height: var(--control-height);
        width: 100%;
    }

    /* Without JavaScript the toggle cannot work, so the links are simply listed. */
    html:not(.js) .site-menu-toggle {
        display: none;
    }

    html:not(.js) .site-navigation {
        flex-wrap: wrap;
        height: auto;
        padding-block: .6rem;
    }

    /* !important: Bootstrap's reboot hides [hidden] with !important. */
    html:not(.js) .site-menu-panel[hidden] {
        animation: none;
        border: 0;
        box-shadow: none;
        display: block !important;
        padding: 0;
        position: static;
        width: 100%;
    }
}

@media (min-width: 992px) {
    .brand-logo {
        height: 50px;
    }

    .site-menu-toggle {
        display: none;
    }

    /*
     * Always visible here, whatever state the narrow-screen disclosure was
     * left in. !important: Bootstrap's reboot hides [hidden] with !important.
     */
    .site-menu-panel,
    .site-menu-panel[hidden] {
        align-items: center;
        display: flex !important;
        gap: clamp(1.25rem, .5rem + 1.5vw, 2.25rem);
    }

    .site-nav {
        align-items: center;
        gap: clamp(1rem, .2rem + 1.4vw, 2rem);
    }

    .site-header__cta .icon {
        height: 1em;
        width: 1em;
    }
}

/* Home: a glass bar over the hero image that firms up once the page scrolls. */
.page-home .site-header {
    background: rgb(255 255 255 / 66%);
    border-bottom-color: rgb(255 255 255 / 40%);
    left: 0;
    position: fixed;
    right: 0;
}

.page-home .site-header.is-scrolled,
.page-home .site-header.is-open {
    background: rgb(255 255 255 / 94%);
    border-bottom-color: var(--line);
}

.page-home .site-menu-toggle {
    background: rgb(255 255 255 / 55%);
}

.page-home .site-menu-toggle[aria-expanded='true'] {
    background: var(--brand-tint);
}

/* ---------------------------------------------------- Inner-page intro */
.page-hero {
    background: linear-gradient(112deg, var(--sand-surface), var(--surface-soft));
    border-bottom: 1px solid var(--line);
    padding-block: clamp(2.5rem, 1.75rem + 3vw, 4.5rem);
}

/* Public-page images remain decorative; the text layer has a reliable fallback surface. */
.page-hero--image {
    align-items: center;
    background: var(--ink);
    color: var(--white);
    display: flex;
    min-height: clamp(17.5rem, 28vw, 23rem);
    overflow: hidden;
    position: relative;
}

.page-hero__background,
.page-hero__background picture,
.page-hero__background img {
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.page-hero__background {
    pointer-events: none;
}

.page-hero__background img {
    display: block;
    object-fit: cover;
}

.page-hero__background::after {
    background: linear-gradient(90deg, rgb(10 28 36 / 82%) 0%, rgb(10 28 36 / 61%) 48%, rgb(10 28 36 / 24%) 100%);
    content: '';
    inset: 0;
    position: absolute;
}

.page-hero--image > .container {
    position: relative;
    z-index: 1;
}

.page-hero.page-hero--image .eyebrow,
.page-hero.page-hero--image h1,
.page-hero.page-hero--image .lead,
.page-hero.page-hero--image .breadcrumb,
.page-hero.page-hero--image .breadcrumb a {
    color: var(--white);
}

.page-hero.page-hero--image .eyebrow {
    color: var(--brand-on-dark);
}

.page-hero.page-hero--image .breadcrumb {
    --bs-breadcrumb-divider-color: rgb(255 255 255 / 68%);
    --bs-breadcrumb-item-active-color: rgb(255 255 255 / 78%);
}

.page-hero--projects .page-hero__background img { object-position: 50% 57%; }
.page-hero--about .page-hero__background img { object-position: 50% 50%; }
.page-hero--blog .page-hero__background img { object-position: 50% 56%; }
.page-hero--contact .page-hero__background img { object-position: 50% 48%; }
.page-hero--process .page-hero__background img { object-position: 50% 56%; }
.page-hero--story .page-hero__background img { object-position: 50% 52%; }
.page-hero--why .page-hero__background img { object-position: 50% 42%; }
.page-hero--privacy .page-hero__background img { object-position: 50% 50%; }
.page-hero--terms .page-hero__background img { object-position: 50% 48%; }

@media (max-width: 767.98px) {
    .page-hero--image {
        min-height: 19rem;
    }

    .page-hero__background::after {
        background: linear-gradient(180deg, rgb(10 28 36 / 56%) 0%, rgb(10 28 36 / 84%) 100%);
    }

    .page-hero--projects .page-hero__background img { object-position: 62% 50%; }
    .page-hero--contact .page-hero__background img { object-position: 58% 50%; }
    .page-hero--why .page-hero__background img { object-position: 58% 40%; }
}

.page-hero .eyebrow {
    color: var(--olive);
}

.page-hero h1 {
    margin-bottom: 0;
    max-width: 20ch;
}

.page-hero .lead {
    margin: 1.1rem 0 0;
    max-width: var(--measure);
}

.page-hero__inner {
    align-items: end;
    display: grid;
    gap: 1.75rem 3rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 992px) {
    .page-hero__inner--split {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

/* Breadcrumbs */
.breadcrumb {
    --bs-breadcrumb-divider-color: var(--line-strong);
    --bs-breadcrumb-item-active-color: var(--muted);
    --bs-breadcrumb-margin-bottom: 1.25rem;
    font-size: .875rem;
}

.breadcrumb a {
    color: var(--ink);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--brand-ink);
    text-decoration: underline;
}

.breadcrumb-item.active {
    max-width: 40ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Call-to-action panel: pale brand tint, one primary and one quiet action. */
.cta-band {
    align-items: center;
    background: var(--brand-tint);
    border-radius: var(--radius-lg);
    display: grid;
    gap: 1.5rem 3rem;
    grid-template-columns: minmax(0, 1fr);
    padding: clamp(1.75rem, 1.25rem + 2.5vw, 3rem);
}

.cta-band h2 {
    font-size: clamp(1.5rem, 1.3rem + .9vw, 2.125rem);
    margin-bottom: .6rem;
    max-width: 26ch;
}

.cta-band p {
    color: var(--ink-soft);
    margin: 0;
    max-width: var(--measure);
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

@media (min-width: 992px) {
    .cta-band {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

/* Sticky in-page navigation (project detail) */
.section-nav {
    backdrop-filter: blur(10px);
    background: rgb(255 255 255 / 94%);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: var(--header-height);
    z-index: 1020;
}

.section-nav__list {
    display: flex;
    gap: .25rem;
    list-style: none;
    margin: 0;
    overflow-x: auto;
    padding: .55rem 0;
    scrollbar-width: none;
}

.section-nav__list::-webkit-scrollbar {
    display: none;
}

.section-nav a {
    border-radius: 999px;
    color: var(--muted);
    display: inline-block;
    font-size: .9375rem;
    font-weight: 500;
    padding: .45rem .95rem;
    text-decoration: none;
    transition: background-color var(--duration), color var(--duration);
    white-space: nowrap;
}

.section-nav a:hover {
    background: var(--surface-soft);
    color: var(--ink);
}

.section-nav a.is-current {
    background: var(--brand-tint);
    color: var(--brand-deep);
    font-weight: 600;
}

/* ------------------------------------------------------------------ Footer */
.site-footer {
    background: var(--ink);
    color: var(--muted-on-dark);
    font-size: .9375rem;
    padding-top: clamp(3rem, 2.5rem + 2vw, 4rem);
}

/* The logo sits on a small white plate so its dark lettering stays visible. */
.footer-logo {
    background: var(--white);
    border-radius: var(--radius-sm);
    display: inline-flex;
    line-height: 0;
    margin-bottom: 1.25rem;
    padding: .7rem .9rem;
}

.footer-logo .brand-logo {
    height: 40px;
}

.site-footer p {
    color: var(--muted-on-dark);
    margin: 0;
    max-width: 22rem;
}

.site-footer h2 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .12em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-links,
.footer-contact {
    display: grid;
    gap: .55rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a,
.footer-contact a {
    color: #e6eef0;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-contact a:hover {
    color: var(--brand-on-dark);
    text-decoration: underline;
}

.footer-contact {
    gap: .8rem;
}

.footer-contact li {
    align-items: flex-start;
    display: flex;
    gap: .65rem;
}

.footer-contact .icon {
    color: var(--brand-on-dark);
    margin-top: .2rem;
}

.footer-contact a {
    overflow-wrap: anywhere;
}

.footer-bottom {
    align-items: center;
    border-top: 1px solid rgb(255 255 255 / 12%);
    display: flex;
    flex-wrap: wrap;
    font-size: .875rem;
    gap: .5rem 2rem;
    justify-content: space-between;
    margin-top: clamp(2.25rem, 2rem + 1.5vw, 3rem);
    padding-block: 1.25rem;
}

.footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
}

.footer-bottom a {
    color: #e6eef0;
}

.footer-bottom a:hover {
    color: var(--brand-on-dark);
}
