/*
 * single-home-designs.css
 * QA-corrected against Figma node 4491:12578.
 * Loaded only on is_singular('home-designs').
 *
 * Section padding: 80px 60px  (Figma: py-80 px-60)
 * Content max:     1320px     (1440px canvas − 2×60px gutter)
 * Labels:          14px Geist Medium uppercase
 * H1:              48px heading font, line-height 1
 * H2:              40px heading font, line-height 1.15
 * Body:            16px body font, line-height 1.39
 * Buttons:         border-radius 1000px pill, px-25px py-16px, 16px body Light
 */

/* ── Shared layout ───────────────────────────────────────────────────────── */

.hd-hero,
.hd-info,
.hd-floorplan,
.hd-facades,
.hd-why,
.hd-appointment {
    width: 100%;
}

/* Section inner container — matches Figma 60px gutter, 1320px content */
.hd-info__inner,
.hd-floorplan__inner,
.hd-facades__inner,
.hd-why__inner,
.hd-appointment__inner {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 60px;
    padding-right: 60px;
    box-sizing: border-box;
}

/* ── Shared label style ──────────────────────────────────────────────────── */
.hd-info__label,
.hd-floorplan__label,
.hd-facades__label,
.hd-why__label,
.hd-appointment__label {
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #1C1C1C;
    margin: 0;
    line-height: 1;
}

/* ── Shared pill button ──────────────────────────────────────────────────── */
.hd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 25px;
    border-radius: 1000px;
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    line-height: 1;
    border: 1px solid transparent;
}

.hd-btn--dark {
    background: #1C1C1C;
    color: #fff;
    border-color: #1C1C1C;
}

.hd-btn--dark:hover,
.hd-btn--dark:focus-visible {
    background: transparent;
    color: #1C1C1C;
    outline: none;
}

.hd-btn--outline {
    background: transparent;
    color: #1C1C1C;
    border-color: #1C1C1C;
}

.hd-btn--outline:hover,
.hd-btn--outline:focus-visible {
    background: #1C1C1C;
    color: #fff;
    outline: none;
}

/* ── hd-hero ────────────────────────────────────────────────────────────── */

.hd-hero {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1C1C1C;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Gradient: covers bottom 277px of the 900px hero */
.hd-hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(28, 28, 28, 0.35) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 100% 277px;
    background-position: bottom;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Scroll CTA — centred at bottom */
.hd-hero__scroll {
    display: none;
    position: relative;
    z-index: 1;
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-bottom: 48px;
}

.hd-hero__scroll-label {
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 16px;
    font-weight: 300;
    color: #fff;
    margin: 0;
    line-height: 1.39;
}

/* Sand-coloured pill button with dark arrow — matches Figma exactly */
.hd-hero__scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E6DFD7;
    border: none;
    color: #1C1C1C;
    text-decoration: none;
    transition: opacity 0.2s;
}

.hd-hero__scroll-btn:hover,
.hd-hero__scroll-btn:focus-visible {
    opacity: 0.8;
    outline: none;
}

@media ( max-width: 768px ) {
    .hd-hero {
        min-height: 520px;
    }
}

/* ── hd-info ────────────────────────────────────────────────────────────── */

.hd-info {
    background-color: #E6DFD7;
    padding: 80px 0;
}

.hd-info__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;  /* Figma: gap-[20px] between title-block and row */
}

/* Title block: label + H1, 396px wide, gap-28px */
.hd-info__title-block {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 396px;
    max-width: 100%;
}

.hd-info__title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
    color: #1C1C1C;
    margin: 0;
}

/* Specs + desc row */
.hd-info__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Icon container: horizontal row, gap-60px between groups */
.hd-info__specs {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
    flex-shrink: 0;
}

/* Each group: icon + number side by side, min 54px wide */
.hd-info__spec-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-width: 54px;
}

.hd-info__spec-icon {
    color: #1C1C1C;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.hd-info__spec-value {
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 16px;
    font-weight: 300;
    color: #1C1C1C;
    line-height: 1.39;
    white-space: nowrap;
}

/* Description: 762px wide, Geist Light 16px */
.hd-info__desc {
    width: 762px;
    max-width: 100%;
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.39;
    color: #1C1C1C;
}

.hd-info__desc p {
    margin: 0 0 1em;
}

.hd-info__desc p:last-child {
    margin-bottom: 0;
}

@media ( max-width: 900px ) {
    .hd-info__row {
        flex-direction: column;
        gap: 32px;
    }

    .hd-info__title-block {
        width: 100%;
    }

    .hd-info__desc {
        width: 100%;
    }
}

@media ( max-width: 600px ) {
    .hd-info {
        padding: 48px 0;
    }

    .hd-info__specs {
        gap: 32px;
    }

    .hd-info__title {
        font-size: 36px;
    }
}

/* ── hd-floorplan ───────────────────────────────────────────────────────── */

.hd-floorplan {
    background-color: #fff;
    padding: 80px 0;
}

.hd-floorplan__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Left col: 338px, flex-col gap-60px */
.hd-floorplan__left {
    width: 338px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Title container: holds just the label with gap-28px if needed */
.hd-floorplan__title-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Details container: specs + CTA, gap-42px */
.hd-floorplan__details {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.hd-floorplan__specs {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Spec rows: border-bottom #B99980, py-12px, 16px Geist Light */
.hd-floorplan__spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #B99980;
}

.hd-floorplan__spec-label,
.hd-floorplan__spec-value {
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 16px;
    font-weight: 300;
    color: #1C1C1C;
    line-height: 1.39;
    white-space: nowrap;
}

/* CTA below specs: gap-42px from specs */
.hd-floorplan__ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Right col: 873px, flex-col gap-40px */
.hd-floorplan__right {
    width: 873px;
    max-width: calc(100% - 338px - 40px);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Floorplan image — no padding, no bg, just the image */
.hd-floorplan__image-wrap {
    aspect-ratio: 873 / 698;
    overflow: hidden;
    width: 100%;
}

.hd-floorplan__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Buttons row below image: flex-row gap-12px */
.hd-floorplan__image-ctas {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Floorplan pill buttons */
.hd-floorplan__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 25px;
    border-radius: 1000px;
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    line-height: 1;
    border: 1px solid #1C1C1C;
}

.hd-floorplan__btn--dark {
    background: #1C1C1C;
    color: #fff;
}

.hd-floorplan__btn--dark:hover,
.hd-floorplan__btn--dark:focus-visible {
    background: transparent;
    color: #1C1C1C;
    outline: none;
}

.hd-floorplan__btn--outline {
    background: transparent;
    color: #1C1C1C;
}

.hd-floorplan__btn--outline:hover,
.hd-floorplan__btn--outline:focus-visible {
    background: #1C1C1C;
    color: #fff;
    outline: none;
}

/* Lightbox */
.hd-floorplan-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(28, 28, 28, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.hd-floorplan-lightbox[hidden] {
    display: none;
}

.hd-floorplan-lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    line-height: 0;
    transition: opacity 0.2s;
}

.hd-floorplan-lightbox__close:hover {
    opacity: 0.7;
}

.hd-floorplan-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    background: #fff;
    padding: 24px;
}

@media ( max-width: 1100px ) {
    .hd-floorplan__inner {
        flex-direction: column;
        gap: 48px;
    }

    .hd-floorplan__left,
    .hd-floorplan__right {
        width: 100%;
        max-width: 100%;
    }
}

/* ── hd-facades ─────────────────────────────────────────────────────────── */

.hd-facades {
    background-color: #fff;
    padding: 80px 0;
}

/* Header: text left (label+title+desc stacked) + nav arrows right, aligned to bottom */
.hd-facades__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.hd-facades__header-text {
    display: flex;
    flex-direction: column;
    gap: 28px;  /* Figma: gap-[28px] between label, title, desc */
}

/* Title: 40px heading font, 410px wide */
.hd-facades__title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.15;
    color: #1C1C1C;
    margin: 0;
    width: 410px;
    max-width: 100%;
}

/* Desc: 16px light, up to 705px */
.hd-facades__desc {
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 16px;
    font-weight: 300;
    color: #1C1C1C;
    margin: 0;
    line-height: 1.39;
    max-width: 705px;
}

/* Nav: pill buttons, gap-6px, horizontal arrow SVG */
.hd-facades__nav {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-self: flex-end;
}

.hd-facades__nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 1000px;
    border: 1px solid #1C1C1C;
    background: transparent;
    color: #1C1C1C;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    line-height: 0;
}

.hd-facades__nav-btn:hover,
.hd-facades__nav-btn:focus-visible {
    background: #1C1C1C;
    color: #fff;
    outline: none;
}

.hd-facades__nav-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Flip prev button arrow via CSS — reliable cross-browser */
.hd-facades__nav-btn--prev .hd-facades__arrow {
    transform: scaleX(-1);
}

/* Slider: flex row, overflow hidden; card widths sized to viewport */
.hd-facades__slider {
    overflow: hidden;
    container-type: inline-size;
}

/* Track: flex (not grid) — JS slides by translating */
.hd-facades__track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

/* Each card width from --hd-facades-cols (set on .hd-facades, default 2) */
.hd-facades__card {
    --hd-facades-gap: 20px;
    flex: 0 0 calc( ( 100cqi - ( var( --hd-facades-cols, 2 ) - 1 ) * var( --hd-facades-gap ) ) / var( --hd-facades-cols, 2 ) );
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;  /* Figma: gap-[20px] between image and name */
}

.hd-facades__card-link {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: inherit;
    text-decoration: none;
}

/* Image: 4:3 ratio */
.hd-facades__card-image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    width: 100%;
}

.hd-facades__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hd-facades__card:hover .hd-facades__card-image {
    transform: scale(1.03);
}

/* Card name: 20px Geist Medium — NOT small uppercase label */
.hd-facades__card-name {
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.1;
    color: #1C1C1C;
    margin: 0;
}

@media ( max-width: 768px ) {
    .hd-facades__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .hd-facades__title {
        font-size: 32px;
        width: 100%;
    }
}

@media ( max-width: 600px ) {
    .hd-facades__card {
        flex: 0 0 100cqi;
    }
}

/* ── hd-why ─────────────────────────────────────────────────────────────── */

.hd-why {
    background-color: #B99980;
    padding: 80px 0;
}

.hd-why__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Left col: 336px, gap-28px, DARK text (not white) */
.hd-why__left {
    width: 336px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Label: dark on clay */
.hd-why__label {
    color: #1C1C1C;
    /* font-size/weight from shared label */
}

.hd-why__title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.15;
    color: #1C1C1C;
    margin: 0;
}

/* Right col: 847px, flex-wrap with row-gap 20px, col-gap 40px */
.hd-why__grid {
    width: 847px;
    max-width: calc(100% - 336px - 40px);
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
}

/* Each feature: 403px wide, flex-col gap-10px */
.hd-why__feature {
    width: 403px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Number: heading font 40px, DARK (Figma: #1c1c1c) */
.hd-why__num {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.15;
    color: #1C1C1C;
}

/* Feature title: Geist Medium 24px */
.hd-why__feature-title {
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
    color: #1C1C1C;
    margin: 0;
}

/* Feature desc: Geist Light 16px */
.hd-why__feature-desc {
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.39;
    color: #1C1C1C;
    margin: 0;
}

@media ( max-width: 1100px ) {
    .hd-why__inner {
        flex-direction: column;
        gap: 48px;
    }

    .hd-why__left,
    .hd-why__grid {
        width: 100%;
        max-width: 100%;
    }
}

@media ( max-width: 600px ) {
    .hd-why {
        padding: 60px 0;
    }

    .hd-why__feature {
        width: 100%;
    }
}

/* ── hd-appointment ─────────────────────────────────────────────────────── */

.hd-appointment {
    background-color: #fff;
    padding: 80px 0;
}

.hd-appointment__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Left col: 500px, gap-40px between text block and button */
.hd-appointment__content {
    flex: 1 1 0;
    min-width: 0;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hd-appointment__text {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hd-appointment__title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.15;
    color: #1C1C1C;
    margin: 0;
    overflow-wrap: break-word;
}

.hd-appointment__desc {
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.39;
    color: #1C1C1C;
    margin: 0;
    overflow-wrap: break-word;
}

/* Button: pill dark */
.hd-appointment__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 25px;
    border-radius: 1000px;
    background: #1C1C1C;
    color: #fff;
    border: 1px solid #1C1C1C;
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    line-height: 1;
    align-self: flex-start;
}

.hd-appointment__btn:hover,
.hd-appointment__btn:focus-visible {
    background: transparent;
    color: #1C1C1C;
    outline: none;
}

/* Right image: 662×441 (≈ 3:2) */
.hd-appointment__image-wrap {
    flex: 1 1 0;
    min-width: 0;
    max-width: 662px;
    height: 441px;
    overflow: hidden;
}

.hd-appointment__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media ( max-width: 1200px ) {
    .hd-appointment__content {
        flex: 1 1 44%;
        max-width: none;
    }

    .hd-appointment__image-wrap {
        flex: 1 1 52%;
        max-width: none;
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .hd-appointment__content,
    .hd-appointment__image-wrap {
        min-width: 0;
    }
}

@media ( max-width: 1100px ) {
    .hd-appointment__inner {
        flex-direction: column;
        gap: 48px;
    }

    .hd-appointment__content,
    .hd-appointment__image-wrap {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .hd-appointment__image-wrap {
        aspect-ratio: 3 / 2;
    }
}
