/**
 * Locali Custom Homes Landing Page - overrides on top of backyard.css.
 * Body class: .lc-custom-homes-page (combined with .lc-by-page for shared chrome).
 * Goal: brand parity (deep-green + warm-gold + cream, Playfair Display + Plus Jakarta Sans)
 * with subtle architectural / luxury cues (slightly more white space, slightly more refined
 * type scale than pools).
 */

/* ==================================================================
   LOCALI_CUSTOM_HOMES bargershon8 2026-05-17
   The Custom Homes AI flow is the only place where we deliberately HIDE
   the cost-estimate widgets. The figures still compute server-side (so the
   lead email and CRM payload still receive an estimate range), but we don't
   want the visitor to see a dollar number — pricing is dynamic, lead-killing.
   These selectors are scoped via [data-service="custom_homes"] on the wizard
   root so they affect ONLY this LP, not /pools/ or /adu/.
   ================================================================== */
.lai-wizard[data-service="custom_homes"] #lai-estimate-section,
.lai-wizard[data-service="custom_homes"] #lai-line-items-section,
.lai-wizard[data-service="custom_homes"] .lai-result__estimate,
.lai-wizard[data-service="custom_homes"] .lai-result__line-items {
    display: none !important;
}

/* ==================================================================
   "Your Custom Home Specs" — selections summary card shown after AI reveal.
   Built and injected by the inline script in page-custom-homes.php after
   locali:lead-captured fires.
   ================================================================== */
.lc-ch-choices {
    margin: 28px auto 12px;
    max-width: 720px;
    background: #FAFAF7;
    border: 1px solid #efe9d8;
    border-radius: 10px;
    padding: 24px 28px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}
.lc-ch-choices h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #1A3C2A;
    font-size: 1.45em;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--lc-gold, #C8A96E);
}
.lc-ch-choices__row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #efe9d8;
    align-items: start;
    font-size: 0.97em;
    line-height: 1.45;
}
.lc-ch-choices__row:last-child { border-bottom: none; }
.lc-ch-choices__lbl {
    color: #6b6860;
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-top: 3px;
}
.lc-ch-choices__val {
    color: #2a2a28;
    font-weight: 500;
}
@media (max-width: 640px) {
    .lc-ch-choices { padding: 18px 18px; margin: 20px 14px 8px; }
    .lc-ch-choices__row { grid-template-columns: 1fr; gap: 4px; padding: 8px 0; }
    .lc-ch-choices__lbl { padding-top: 0; }
}

/* ------------------------------------------------------------------ Gallery strip — uniform 3:2 landscape sizing.
   Override backyard.css default (height:200px;width:auto) so EVERY image in the
   auto-scrolling strip renders at the exact same dimensions, regardless of source
   aspect ratio. This works even before we crop the source images. */
.lc-custom-homes-page .lc-by-gallery-track img {
    height: 200px;
    width: 300px;          /* 3:2 landscape */
    object-fit: cover;
    object-position: center center;
    flex-shrink: 0;
    margin-right: 4px;
    border-radius: 2px;
}
@media (max-width: 900px) {
    .lc-custom-homes-page .lc-by-gallery-track img {
        height: 150px;
        width: 225px;
    }
}
@media (max-width: 540px) {
    .lc-custom-homes-page .lc-by-gallery-track img {
        height: 120px;
        width: 180px;
    }
}

/* ------------------------------------------------------------------ Hero */
.lc-custom-homes-page .lc-by-hero__bg {
    /* Twilight hero — slightly brighter than pools so the warm interior glow reads */
    filter: brightness(0.82) saturate(1.05);
}

/* Secondary CTA in hero */
.lc-custom-homes-page .lc-by-hero__ai-btn--secondary {
    display: inline-flex;
    margin-top: 12px;
    background: transparent;
    border: 1.5px solid rgba(250, 250, 247, 0.55);
    color: #FAFAF7;
}
.lc-custom-homes-page .lc-by-hero__ai-btn--secondary:hover {
    border-color: var(--lc-gold, #C8A96E);
    color: var(--lc-gold, #C8A96E);
    background: rgba(0,0,0,0.15);
}

/* ------------------------------------------------------------------ Services Grid (10 items, 5-col on wide) */
@media (min-width: 1280px) {
    .lc-custom-homes-page .lc-by-services__grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ------------------------------------------------------------------ Process: 5 steps on wide */
@media (min-width: 1200px) {
    .lc-custom-homes-page .lc-by-process__cards {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ==================================================================
   STYLE SHOWCASE (NEW section unique to custom-homes)
   ================================================================== */
.lc-ch-styles {
    background: linear-gradient(180deg, #FAFAF7 0%, #f4f1ea 100%);
    padding: 90px 0;
}
.lc-ch-styles__intro {
    max-width: 760px;
    margin: 14px auto 0;
    color: #6b6860;
    font-size: 1.05em;
    line-height: 1.6;
}
.lc-ch-styles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 44px;
}
.lc-ch-style-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #efe9d8;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    padding: 0;
    font: inherit;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.lc-ch-style-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(26, 60, 42, 0.18);
    border-color: var(--lc-gold, #C8A96E);
}
.lc-ch-style-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f4f1ea;
}
.lc-ch-style-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.lc-ch-style-card:hover .lc-ch-style-card__img img {
    transform: scale(1.04);
}
.lc-ch-style-card__body {
    padding: 18px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lc-ch-style-card__body h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4em;
    color: #1A3C2A;
    margin: 0;
}
.lc-ch-style-card__body p {
    margin: 0;
    color: #6b6860;
    font-size: 0.95em;
    line-height: 1.45;
}
.lc-ch-style-card__cta {
    margin-top: 6px;
    color: var(--lc-gold, #C8A96E);
    font-weight: 600;
    font-size: 0.92em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.lc-ch-style-card__cta i {
    margin-left: 6px;
    transition: transform 0.25s ease;
}
.lc-ch-style-card:hover .lc-ch-style-card__cta i {
    transform: translateX(4px);
}

/* ==================================================================
   BEFORE / AFTER SHOWCASE (3 sliders, dark green background)
   ================================================================== */
.lc-ch-ba {
    background: #1A3C2A;
    color: #FAFAF7;
    padding: 90px 0;
}
.lc-ch-ba .lc-by-section-tag { color: var(--lc-gold, #C8A96E); }
.lc-ch-ba h2 { color: #FAFAF7; }
.lc-ch-ba .lc-ch-styles__intro { color: #cfd1c8; }

.lc-ch-ba__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 44px;
}
.lc-ch-ba__pair {
    background: #122a1f;
    border: 1px solid rgba(200, 169, 110, 0.18);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lc-ch-ba__slider {
    --lc-ba: 50%;
    position: relative;
    width: 100%;
    padding-top: 100%; /* universal 1:1 — works on every mobile browser */
    aspect-ratio: 1 / 1;
    height: 0;
    flex: 0 0 auto;
    align-self: stretch;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    background: #0f2318;
    display: block;
}
.lc-ch-ba__after,
.lc-ch-ba__before {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    display: block;
}
.lc-ch-ba__before {
    clip-path: inset(0 calc(100% - var(--lc-ba)) 0 0);
}
.lc-ch-ba__tag {
    position: absolute;
    top: 12px;
    background: rgba(0,0,0,0.72);
    color: #FAFAF7;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    pointer-events: none;
    font-weight: 600;
}
.lc-ch-ba__tag--before { left: 12px; }
.lc-ch-ba__tag--after  { right: 12px; background: rgba(200, 169, 110, 0.92); color: #1A3C2A; }
.lc-ch-ba__handle {
    position: absolute;
    top: 0; bottom: 0;
    left: var(--lc-ba);
    transform: translateX(-50%);
    width: 4px;
    background: #FAFAF7;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
}
.lc-ch-ba__knob {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #FAFAF7;
    color: #1A3C2A;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.lc-ch-ba__caption {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lc-ch-ba__caption strong {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15em;
    color: #FAFAF7;
}
.lc-ch-ba__caption span { color: #d9d4c5; font-size: 0.95em; line-height: 1.45; }
.lc-ch-ba__caption em {
    color: var(--lc-gold, #C8A96E);
    font-style: italic;
    font-size: 0.9em;
    margin-top: 4px;
}

/* ==================================================================
   PRICING TABLE
   ================================================================== */
.lc-ch-pricing {
    background: #FAFAF7;
    padding: 90px 0;
}
.lc-ch-pricing__table {
    margin-top: 36px;
    background: #fff;
    border: 1px solid #efe9d8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(26, 60, 42, 0.06);
}
.lc-ch-pricing__row {
    display: grid;
    grid-template-columns: 160px 1.6fr 1fr;
    gap: 0;
    border-bottom: 1px solid #efe9d8;
}
.lc-ch-pricing__row:last-child { border-bottom: none; }
.lc-ch-pricing__row--head {
    background: #1A3C2A;
    color: #FAFAF7;
    text-transform: uppercase;
    font-size: 0.78em;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.lc-ch-pricing__cell {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    line-height: 1.45;
}
.lc-ch-pricing__row:not(.lc-ch-pricing__row--head):hover {
    background: #fcf8ef;
}
.lc-ch-pricing__cell--tier strong {
    font-family: 'Playfair Display', Georgia, serif;
    color: #1A3C2A;
    font-size: 1.2em;
}
.lc-ch-pricing__cell--wide { color: #4a4a48; font-size: 0.95em; }
.lc-ch-pricing__disclosure {
    text-align: center;
    color: #9c958a;
    font-size: 0.85em;
    margin-top: 18px;
    line-height: 1.5;
}
.lc-ch-pricing__cta {
    text-align: center;
    margin-top: 28px;
}

@media (max-width: 760px) {
    .lc-ch-pricing__row {
        grid-template-columns: 1fr;
        padding: 14px 0;
    }
    .lc-ch-pricing__row--head { display: none; }
    .lc-ch-pricing__cell { padding: 6px 18px; }
    .lc-ch-pricing__cell[data-label]::before {
        content: attr(data-label);
        display: block;
        color: #9c958a;
        font-size: 0.74em;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-weight: 600;
        margin-bottom: 4px;
    }
    .lc-ch-pricing__cell--tier { padding-top: 16px; }
}

/* ==================================================================
   TRUST STRIP
   ================================================================== */
.lc-ch-trust {
    background: #1A3C2A;
    color: #FAFAF7;
    padding: 32px 0;
    border-top: 1px solid rgba(200, 169, 110, 0.25);
    border-bottom: 1px solid rgba(200, 169, 110, 0.25);
}
/* 6 items in one row on desktop; 3-col on tablet; 2-col on mobile.
   Horizontal layout per item (icon left, text right) so 6 fit comfortably. */
.lc-ch-trust__row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px 18px;
    align-items: center;
}
.lc-ch-trust__item {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    text-align: left;
    min-width: 0; /* allow flex children to truncate inside grid */
}
.lc-ch-trust__icon {
    flex-shrink: 0;
    color: var(--lc-gold, #C8A96E);
    font-size: 1.5em;
    width: 32px;
    text-align: center;
}
.lc-ch-trust__item > span:last-of-type,
.lc-ch-trust__item > strong {
    display: block;
}
.lc-ch-trust__label {
    display: block;
    color: #d9d4c5;
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
}
.lc-ch-trust__value {
    display: block;
    color: #FAFAF7;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1em;
    line-height: 1.25;
    margin-top: 2px;
}
.lc-ch-trust__item__text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

@media (max-width: 1100px) {
    .lc-ch-trust__row { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 560px) {
    .lc-ch-trust__row { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .lc-ch-trust__icon { font-size: 1.35em; }
    .lc-ch-trust__value { font-size: 0.95em; }
}

/* ------------------------------------------------------------------ Mobile bar */
.lc-custom-homes-page .lc-by-mobile-bar {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
    .lc-ch-styles, .lc-ch-ba, .lc-ch-pricing { padding: 60px 0; }
    .lc-ch-ba__knob { width: 34px; height: 34px; }
    .lc-ch-trust__row { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
