/* =============================================================
   SettlersGrove — Section Styles v2
   Mastercard-inspired layout system × baysjoinery hero
   Canvas: #F0EBE3 · Ink: #131210 · Copper: #B87240
   ============================================================= */

/* -------------------------------------------------------------
   Eyebrow
------------------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: var(--space-2);
}
.eyebrow::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-copper);
    flex-shrink: 0;
}
.eyebrow--light {
    color: rgba(255,255,255,0.6);
}
.eyebrow--light::before {
    background-color: rgba(255,255,255,0.45);
}

/* -------------------------------------------------------------
   Buttons
------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-btn);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.btn:active {
    transform: scale(0.97);
}

/* Ink pill — primary (Mastercard style) */
.btn--ink {
    background-color: var(--color-ink);
    color: var(--color-canvas);
    border-color: var(--color-ink);
}
.btn--ink:hover {
    background-color: var(--color-ink-mid);
    border-color: var(--color-ink-mid);
}

/* Outline pill — secondary */
.btn--outline {
    background-color: transparent;
    color: var(--color-ink);
    border-color: var(--color-ink);
}
.btn--outline:hover {
    background-color: var(--color-ink);
    color: var(--color-white);
}

/* Light outline — on dark sections */
.btn--light {
    background-color: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.65);
}
.btn--light:hover {
    background-color: var(--color-white);
    color: var(--color-ink);
    border-color: var(--color-white);
}

/* Hero CTA */
.btn--hero {
    background-color: var(--color-white);
    color: var(--color-ink);
    border-color: var(--color-white);
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-pill);
}
.btn--hero:hover {
    background-color: var(--color-canvas);
    border-color: var(--color-canvas);
}

/* Focus */
:focus-visible {
    outline: 2px solid var(--color-teal);
    outline-offset: 3px;
}


/* =============================================================
   FLOATING PILL NAV (Mastercard)
   ============================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    /* Padding creates the floating pill gap from edges */
    padding: 18px 32px;
    pointer-events: none;
    transition: padding 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    /* Glass state — active while over the hero */
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.45);
    pointer-events: all;
    transition:
        border-radius   0.6s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow      0.6s cubic-bezier(0.16, 1, 0.3, 1),
        background      0.5s ease,
        border-color    0.5s ease;
}

/* Slightly more opaque as you scroll down within the hero */
.site-header.is-scrolled .site-nav {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Full-width solid bar once hero is scrolled past */
.site-header.is-expanded {
    padding: 0;
}
.site-header.is-expanded .site-nav {
    max-width: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: transparent;
    box-shadow: 0 1px 0 rgba(19,18,16,0.08), 0 4px 24px rgba(19,18,16,0.06);
}

.site-nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 60px;
    padding: 0 28px;
}

/* Logo — left */
.site-nav__logo {
    display: flex;
    align-items: center;
    justify-self: start;
}
.site-logo {
    height: 38px;
    width: auto;
    color: var(--color-white);
    display: block;
    transition: color 0.5s ease;
}
/* Revert logo to ink when expanded */
.site-header.is-expanded .site-logo {
    color: var(--color-ink);
}

/* Nav links — centre */
.site-nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    justify-self: center;
}
.site-nav__links a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    transition: color 0.5s ease;
}
/* Revert links to ink when expanded */
.site-header.is-expanded .site-nav__links a {
    color: var(--color-ink);
}
.site-nav__links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(255,255,255,0.7);
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.5s ease;
    transform-origin: left;
}
.site-header.is-expanded .site-nav__links a::after {
    background-color: var(--color-copper);
}
.site-nav__links a:hover::after {
    transform: scaleX(1);
}

/* Right: CTA + hamburger */
.site-nav__right {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    justify-self: end;
}

/* Nav CTA button — teal, always visible */
.btn--nav-cta {
    background-color: var(--color-teal);
    color: var(--color-white);
    border: 1.5px solid var(--color-teal);
    border-radius: var(--radius-pill);
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.btn--nav-cta:hover {
    background-color: var(--color-teal-d);
    border-color: var(--color-teal-d);
}
.btn--nav-cta:active {
    transform: scale(0.96);
}

/* Hamburger (3-bar) — hidden on desktop */
.site-nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-btn);
    /* Glass state: transparent with white border */
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.3s, border-color 0.3s;
}
.site-nav__toggle:hover {
    background-color: rgba(255, 255, 255, 0.25);
}
/* Solid state when expanded */
.site-header.is-expanded .site-nav__toggle {
    background: var(--color-canvas);
    border-color: var(--color-border);
}
.site-header.is-expanded .site-nav__toggle:hover {
    background-color: var(--color-surface);
    border-color: var(--color-ink);
}
.site-nav__bar {
    display: block;
    width: 16px;
    height: 1.5px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s, background-color 0.5s ease;
}
.site-header.is-expanded .site-nav__bar {
    background-color: var(--color-ink);
}
/* Middle bar shortens for style */
.site-nav__bar:nth-child(2) {
    width: 11px;
    align-self: flex-start;
    margin-left: 12px;
}

/* -----------------------------------------------
   MOBILE NAV — Full-height drawer from right
----------------------------------------------- */

@media (max-width: 900px) {
    .site-header { padding: 12px 16px; }
    /* On mobile, expanded = just drop the top padding not the sides */
    .site-header.is-expanded { padding: 0; }
    .site-nav__inner {
        height: 52px;
        padding: 0 14px;
        grid-template-columns: 1fr auto;   /* logo | right-group */
    }
    .site-logo { height: 32px; }

    /* Hide desktop-only links column */
    .site-nav__links { display: none; }

    /* Right group: teal CTA (small) + hamburger */
    .site-nav__right { gap: 10px; }

    .btn--nav-cta {
        padding: 8px 14px;
        font-size: 12px;
    }

    /* Show hamburger */
    .site-nav__toggle { display: flex; }
}

/* Backdrop */
.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(13, 11, 9, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* Drawer panel */
.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 400;
    width: min(360px, 85vw);
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.nav-drawer.is-open {
    transform: translateX(0);
}

/* Drawer header */
.nav-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}
.nav-drawer__header .site-logo {
    height: 34px;
    color: var(--color-ink);
}

.nav-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: none;
    cursor: pointer;
    color: var(--color-ink);
    transition: background-color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
.nav-drawer__close:hover {
    background-color: var(--color-canvas);
    border-color: var(--color-ink);
}

/* Drawer nav links */
.nav-drawer__nav {
    flex: 1;
    padding: var(--space-4) var(--space-4);
}
.nav-drawer__nav ul {
    display: flex;
    flex-direction: column;
}
.nav-drawer__nav li {
    border-bottom: 1px solid var(--color-border);
}
.nav-drawer__nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px;
    font-size: 20px;
    font-weight: 500;
    color: var(--color-ink);
    letter-spacing: -0.02em;
    transition: color 0.2s, padding-left 0.25s;
}
.nav-drawer__nav a::after {
    content: '→';
    font-size: 16px;
    color: var(--color-muted);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-drawer__nav a:hover {
    color: var(--color-teal);
    padding-left: 6px;
}
.nav-drawer__nav a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered entrance for drawer links */
.nav-drawer.is-open .nav-drawer__nav li {
    animation: drawerLinkIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.nav-drawer.is-open .nav-drawer__nav li:nth-child(1) { animation-delay: 0.08s; }
.nav-drawer.is-open .nav-drawer__nav li:nth-child(2) { animation-delay: 0.14s; }
.nav-drawer.is-open .nav-drawer__nav li:nth-child(3) { animation-delay: 0.20s; }
.nav-drawer.is-open .nav-drawer__nav li:nth-child(4) { animation-delay: 0.26s; }

@keyframes drawerLinkIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Drawer footer */
.nav-drawer__footer {
    padding: var(--space-4) var(--space-4);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex-shrink: 0;
}
.nav-drawer__cta {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    background-color: var(--color-teal);
    color: var(--color-white);
    border: 1.5px solid var(--color-teal);
    transition: background-color 0.2s, border-color 0.2s;
}
.nav-drawer__cta:hover {
    background-color: var(--color-teal-d);
    border-color: var(--color-teal-d);
}
.nav-drawer__phone {
    text-align: center;
    font-size: 14px;
    color: var(--color-muted);
    transition: color 0.2s;
}
.nav-drawer__phone:hover {
    color: var(--color-ink);
}

/* Lock body scroll when drawer open */
body.nav-is-open {
    overflow: hidden;
}


/* =============================================================
   HERO (baysjoinery reference + slider)
   ============================================================= */

/* Slider wrapper — sits above the static bg */
.hero__slides {
    position: absolute;
    inset: 0;
    z-index: 2;
}
/* Each slide is content-only — no bg image */
.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.hero__slide--active {
    opacity: 1;
    pointer-events: auto;
}
.hero__slide .hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 96px 96px;
    z-index: 2;
}

/* Dots — thin line indicators, bottom-right */
.hero__dots {
    position: absolute;
    bottom: 40px;
    right: 96px;
    display: flex;
    gap: 6px;
    z-index: 10;
    align-items: center;
}
.hero__dot {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: width 350ms cubic-bezier(0.16, 1, 0.3, 1), background-color 350ms ease;
    padding: 0;
    flex-shrink: 0;
}
.hero__dot--active {
    width: 48px;
    background: var(--color-white);
}
@media (max-width: 900px) {
    .hero__dots {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Prev / Next arrows — bottom-right, square, just above the dot row */
.hero__prev,
.hero__next {
    position: absolute;
    bottom: 58px; /* sits above the 40px dots with breathing room */
    z-index: 10;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 2px;
    color: var(--color-white);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 200ms, border-color 200ms;
}
.hero__prev { right: 148px; } /* 96 (dot right) + 44 (next btn) + 8 (gap) */
.hero__next { right: 96px; }
.hero__prev:hover,
.hero__next:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.65);
}

@media (max-width: 900px) {
    .hero__prev,
    .hero__next { display: none; }
}
@media (max-width: 768px) {
    .hero__slide .hero__content { padding: 0 var(--space-6) 80px; }
}

.hero {
    position: relative;
    height: 100svh;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    transform: scale(1.02);
    will-change: transform;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 11, 9, 0.72) 0%,
        rgba(13, 11, 9, 0.4) 50%,
        rgba(13, 11, 9, 0.25) 100%
    );
}

/* Content: anchored bottom-left, not centered */
.hero__content {
    position: relative;
    z-index: 2;
    padding: 0 var(--space-12) var(--space-12) var(--space-12);
    max-width: 900px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: var(--space-2);
}
.hero__eyebrow-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--color-copper);
}

.hero__headline {
    display: block;
    line-height: 0.95;
    margin-bottom: var(--space-4);
}

/* Line 1: italic, light — "Life at the" */
.hero__line-1 {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(52px, 6.5vw, 88px);
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: -0.01em;
    line-height: 1.05;
}

/* Line 2: bold, massive — "Shore." */
.hero__line-2 {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(72px, 10vw, 148px);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.03em;
    line-height: 0.92;
}

.hero__desc {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255,255,255,0.65);
    margin-bottom: var(--space-4);
    max-width: 380px;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* Social links — right edge, vertically stacked */
.hero__social {
    position: absolute;
    right: var(--space-8);
    bottom: var(--space-12);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}
.hero__social-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    margin-bottom: 4px;
}
.hero__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.hero__social-link:hover {
    color: var(--color-white);
    border-color: rgba(255,255,255,0.6);
    background-color: rgba(255,255,255,0.08);
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.45);
    animation: bounce 2.4s ease-in-out infinite;
    transition: color 0.2s;
}
.hero__scroll:hover { color: var(--color-white); }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 900px) {
    .hero__content { padding: 0 var(--space-6) var(--space-8) var(--space-6); }
    .hero__social { display: none; }
    .hero__line-2 { font-size: clamp(60px, 13vw, 100px); }
}
@media (max-width: 600px) {
    .hero__content { padding: 0 var(--space-4) 80px var(--space-4); }
    .hero__line-1 { font-size: clamp(36px, 9vw, 60px); }
    .hero__line-2 { font-size: clamp(52px, 14vw, 84px); }
    .hero__scroll { display: none; }
}


/* =============================================================
   ABOUT (homechch reference, Mastercard card)
   ============================================================= */

.about {
    padding-block: var(--space-16);
    background-color: var(--color-canvas);
}
.about__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}
.about__image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-hero);
}
.about__image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-hero);
    will-change: transform;
}
.about__image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(19, 18, 16, 0.72);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
}
.about__content { padding-left: var(--space-3); }
.about__heading {
    font-family: var(--font-display);
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 600;
    color: var(--color-ink);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}
.about__heading em {
    font-style: italic;
    font-weight: 300;
    color: var(--color-muted);
}
.about__content p {
    font-size: 16px;
    color: var(--color-ink-mid);
    line-height: 1.75;
    margin-bottom: var(--space-3);
}
.about__content .btn {
    margin-top: var(--space-3);
}
.about__stat-row {
    display: flex;
    gap: var(--space-6);
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}
.about__stat-value {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
    color: var(--color-ink);
    letter-spacing: -0.03em;
    line-height: 1;
    display: block;
}
.about__stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 4px;
    display: block;
}
@media (max-width: 960px) {
    .about__inner { grid-template-columns: 1fr; }
    .about__image { order: -1; }
    .about__image img { height: 400px; }
    .about__content { padding-left: 0; }
}


/* =============================================================
   OFFERS — dark ink section
   ============================================================= */

.offers {
    background-color: var(--color-ink);
    padding-block: var(--space-16);
    color: var(--color-white);
}
.offers__header {
    max-width: 640px;
    margin-bottom: var(--space-10);
}
.offers__header h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-top: var(--space-2);
}
.offers__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}
.offer-card {
    padding: var(--space-6) var(--space-4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-card);
    background-color: rgba(255,255,255,0.03);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
.offer-card:hover {
    background-color: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
}
.offer-card__icon {
    color: var(--color-copper);
    margin-bottom: var(--space-3);
    opacity: 0.9;
}
.offer-card__heading {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-2);
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.offer-card__body {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}
@media (max-width: 900px) {
    .offers__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .offers__grid { grid-template-columns: 1fr; }
}


/* =============================================================
   LISTINGS
   ============================================================= */

.listings {
    padding-block: var(--space-16);
    background-color: var(--color-surface);
}
.listings__header {
    margin-bottom: var(--space-8);
}
.listings__header h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 700;
    color: var(--color-ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-top: var(--space-2);
}
.listings__layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-8);
    align-items: start;
}
.listings__map {
    position: sticky;
    top: 100px;
}
.listings__map img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    display: block;
}
.listings__grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.listing-card {
    background: var(--color-white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.listing-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}
.listing-card__image {
    position: relative;
    overflow: hidden;
}
.listing-card__image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.listing-card:hover .listing-card__image img {
    transform: scale(1.04);
}
.listing-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    color: var(--color-white);
    background-color: var(--color-teal);
}
.listing-card--sold .listing-card__badge {
    background-color: var(--color-muted);
}
.listing-card--coming_soon .listing-card__badge {
    background-color: var(--color-copper);
    color: var(--color-white);
}
.listing-card__body { padding: var(--space-3) var(--space-4) var(--space-4); }
.listing-card__address {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-ink);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.listing-card__price {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--color-ink);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-2);
    line-height: 1;
}
.listing-card__meta {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-3);
}
.listing-card__meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--color-muted);
    font-weight: 400;
}
.listing-card__meta-item svg { color: var(--color-copper); }
.listing-card__cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-teal);
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}
.listing-card__cta:hover { gap: 9px; }
.listings__empty {
    color: var(--color-muted);
    text-align: center;
    padding: var(--space-12) 0;
    font-size: 15px;
}
@media (max-width: 1024px) {
    .listings__layout { grid-template-columns: 1fr; }
    .listings__map { position: static; min-height: 320px; }
}


/* =============================================================
   COMMUNITY — full-bleed feature
   ============================================================= */

.community {
    position: relative;
    padding-block: var(--space-16);
    background-image: var(--community-bg, url('../images/community-bg.jpg'));
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    overflow: hidden;
}
.community__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 11, 9, 0.72);
}
.community__content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}
.community__heading {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--color-white);
    margin-top: var(--space-2);
    margin-bottom: var(--space-4);
}
.community__heading em {
    font-style: italic;
    font-weight: 300;
    opacity: 0.75;
}
.community__body {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,0.72);
    margin-bottom: var(--space-6);
    max-width: 520px;
}
@media (max-width: 600px) {
    .community__heading { font-size: clamp(32px, 8vw, 52px); }
}


/* =============================================================
   CONTACT
   ============================================================= */

.contact {
    padding-block: var(--space-16);
    background-color: var(--color-canvas);
}
.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}
.contact__info-heading {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    color: var(--color-ink);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-top: var(--space-2);
    margin-bottom: var(--space-3);
}
.contact__info > p {
    font-size: 16px;
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}
.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.contact__details li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: 15px;
    color: var(--color-ink);
    line-height: 1.5;
}
.contact__details svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-copper);
}
.contact__details a:hover { color: var(--color-teal); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: var(--space-3); }
.contact-form__messages {
    padding: 12px 16px;
    border-radius: var(--radius-card);
    font-size: 14px;
    display: none;
    line-height: 1.5;
}
.contact-form__messages:not(:empty) { display: block; }
.contact-form__messages.is-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.contact-form__messages.is-error {
    background-color: #fef2f2;
    color: var(--color-error);
    border: 1px solid #fecaca;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}
@media (max-width: 540px) {
    .form-row { grid-template-columns: 1fr; }
}
.form-required { color: var(--color-copper); }
.contact__subtext {
    font-size: 15px;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}
.contact-form__submit {
    width: 100%;
    justify-content: center;
    letter-spacing: 0.08em;
    font-size: 13px;
    font-weight: 700;
}
.contact-form__btn-loading { display: none; }
.contact-form--loading .contact-form__btn-text { display: none; }
.contact-form--loading .contact-form__btn-loading { display: inline; }
.form-field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-ink);
    letter-spacing: 0.01em;
}
.form-field input,
.form-field textarea {
    padding: 13px var(--space-2);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-btn);
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--color-ink);
    background-color: var(--color-white);
    transition: border-color 0.2s;
    resize: vertical;
}
.form-field textarea {
    border-radius: var(--radius-card);
    min-height: 120px;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-teal);
}
@media (max-width: 900px) {
    .contact__inner { grid-template-columns: 1fr; }
}


/* =============================================================
   SITE FOOTER (Mastercard ink-black)
   ============================================================= */

.site-footer {
    background-color: var(--color-footer);
    color: rgba(255,255,255,0.75);
    padding-top: var(--space-12);
}
.site-footer__top {
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: var(--space-8);
}
.site-footer__headline {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 480px;
}
.site-footer__headline em {
    font-style: italic;
    font-weight: 300;
    opacity: 0.65;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.4fr;
    gap: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: var(--space-4);
}
.site-footer .site-logo { color: var(--color-white); height: 36px; opacity: 0.9; }
.site-footer__tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-top: var(--space-2);
    line-height: 1.6;
}
.site-footer__col-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: var(--space-3);
}
.site-footer__nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.site-footer__nav a {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    transition: color 0.2s;
}
.site-footer__nav a:hover { color: var(--color-white); }
.site-footer__contact p,
.site-footer__contact a {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
}
.site-footer__contact a:hover { color: var(--color-white); }
.site-footer__social {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-4);
}
.site-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    transition: color 0.2s, border-color 0.2s;
}
.site-footer__social a:hover {
    color: var(--color-white);
    border-color: rgba(255,255,255,0.4);
}
.site-footer__credit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
    flex-shrink: 0;
}
.site-footer__credit:hover {
    color: rgba(255,255,255,0.85);
}
.site-footer__credit-by {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.04em;
}
.site-footer__credit-logo {
    height: 16px;
    width: auto;
    display: block;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.site-footer__credit:hover .site-footer__credit-logo {
    opacity: 1;
}

.site-footer__bottom {
    padding-block: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.site-footer__copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}
.site-footer__legal {
    display: flex;
    gap: var(--space-3);
}
.site-footer__legal a {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    transition: color 0.2s;
}
.site-footer__legal a:hover { color: rgba(255,255,255,0.6); }
@media (max-width: 900px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}


/* =============================================================
   404
   ============================================================= */

.site-main--404 {
    padding-block: var(--space-16);
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.error-404__num {
    font-family: var(--font-display);
    font-size: clamp(80px, 15vw, 160px);
    font-weight: 700;
    color: var(--color-border);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: var(--space-4);
}
.error-404__title {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-ink);
    margin-bottom: var(--space-2);
}
.error-404__message {
    font-size: 15px;
    color: var(--color-muted);
    margin-bottom: var(--space-6);
}


/* =============================================================
   RESPONSIVE SECTION PADDING
   ============================================================= */

@media (max-width: 1023px) {
    .about,
    .offers,
    .listings,
    .builds,
    .community,
    .contact { padding-block: var(--space-12); }
}
@media (max-width: 600px) {
    .about,
    .offers,
    .listings,
    .builds,
    .community,
    .contact { padding-block: var(--space-8); }
}


/* =============================================================
   LISTINGS — TABLE LAYOUT
   ============================================================= */

.listings {
    padding-block: var(--space-16);
    background-color: var(--color-canvas);
}
.listings__header {
    text-align: center;
    margin-bottom: var(--space-8);
}
.listings__header .eyebrow { margin-bottom: var(--space-2); }
.listings__header h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    color: var(--color-ink);
}
.listings__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
    margin-bottom: var(--space-8);
}
.listings__map img {
    width: 100%;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}
.listings__table-wrap { display: flex; flex-direction: column; gap: var(--space-3); }

/* Lots table */
.lots-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: var(--color-white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.lots-table thead tr {
    background-color: var(--color-ink);
    color: var(--color-white);
}
.lots-table th {
    padding: 14px 20px;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.lots-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-ink);
    font-size: 15px;
}
.lots-table tbody tr:last-child td { border-bottom: none; }
.lots-table tbody tr:hover { background-color: var(--color-surface); }

.lots-table__badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.lots-table__badge--reserved {
    background-color: rgba(184, 114, 64, 0.12);
    color: var(--color-copper);
}
.lots-table__badge--sold {
    background-color: rgba(19, 18, 16, 0.08);
    color: var(--color-muted);
}
.lots-table__badge--coming_soon {
    background-color: rgba(45, 84, 117, 0.1);
    color: var(--color-teal);
}

.listings__footnote {
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.5;
    font-style: italic;
}
.listings__links {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}
.listings__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-teal);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 200ms;
}
.listings__link:hover { color: var(--color-teal-d); }
.listings__empty {
    color: var(--color-muted);
    font-size: 15px;
}
.listings__cta {
    text-align: center;
    margin-top: var(--space-6);
}

/* btn--primary used for the listings CTA */
.btn--primary {
    background-color: var(--color-teal);
    color: var(--color-white);
    border: none;
    padding: 16px 40px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 200ms, transform 200ms;
    display: inline-block;
}
.btn--primary:hover {
    background-color: var(--color-teal-d);
    transform: translateY(-1px);
}
.btn--large { padding: 18px 52px; font-size: 16px; }

@media (max-width: 900px) {
    .listings__layout { grid-template-columns: 1fr; }
}


/* =============================================================
   BUILDS — PARTNERS + HOME PACKAGES
   ============================================================= */

.builds {
    padding-block: var(--space-16);
    background-color: var(--color-surface);
}
.builds__header {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: var(--space-8);
}
.builds__header h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 700;
    color: var(--color-ink);
    margin-bottom: var(--space-3);
}
.builds__subtext {
    font-size: 16px;
    color: var(--color-muted);
    line-height: 1.7;
    max-width: 560px;
    margin-inline: auto;
}

/* Partner logo cards */
.builds__partners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}
.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: var(--radius-card);
    padding: var(--space-6);
    box-shadow: var(--shadow-nav);
    transition: box-shadow 250ms, transform 250ms;
    min-height: 120px;
}
.partner-card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
}
.partner-card img {
    max-height: 64px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
}

/* Packages sub-section */
.builds__packages-header {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: var(--space-8);
}
.builds__packages-heading {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.8vw, 36px);
    font-weight: 700;
    color: var(--color-ink);
    margin-bottom: var(--space-3);
}
.builds__packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

/* Package card */
.package-card {
    background: var(--color-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 250ms, box-shadow 250ms;
}
.package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}
.package-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.package-card__image img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.package-card__logo {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    background: rgba(255,255,255,0.92);
    border-radius: var(--radius-xs);
    padding: 6px 10px;
    display: flex;
    align-items: center;
}
.package-card__logo img {
    max-height: 28px;
    max-width: 100px;
    width: auto;
    object-fit: contain;
}
.package-card__body {
    padding: var(--space-3) var(--space-4) var(--space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.package-card__title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-2);
}
.package-card__title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-ink);
}
.package-card__price {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-teal);
    white-space: nowrap;
}
.package-card__desc {
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.6;
}
.package-card__specs {
    display: flex;
    gap: var(--space-3);
    list-style: none;
    margin-top: auto;
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border);
}
.package-card__specs li {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--color-muted);
}
.package-card__area {
    font-size: 12px;
    color: var(--color-muted);
}
.package-card__area strong { color: var(--color-ink); }

@media (max-width: 900px) {
    .builds__partners { grid-template-columns: repeat(2, 1fr); }
    .builds__packages { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .builds__partners { grid-template-columns: 1fr; }
}


/* =============================================================
   REDUCED MOTION
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .hero__scroll { animation: none; }
}
