/*
 * Homepage sections. Loaded only by index.html, after style.css.
 * Colours and fonts come from theme.css tokens.
 */

/* ---------- Shared section layout ---------- */
.home-section {
    padding: clamp(72px, 9vw, 112px) 0;
    background: var(--lv-cream);
    color: var(--lv-espresso);
}

.home-section--tint {
    background: var(--lv-linen);
}

.home-section--dark {
    background: var(--lv-espresso);
    color: var(--lv-linen);
}

.home-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.home-container--narrow {
    width: min(860px, calc(100% - 32px));
}

.home-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(40px, 5vw, 60px);
}

.home-eyebrow {
    display: block;
    margin-bottom: 14px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--lv-cocoa);
}

.home-section--dark .home-eyebrow {
    color: var(--lv-latte);
}

.home-h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.12;
    color: inherit;
}

.home-section p {
    line-height: 1.7;
}

.home-center-cta {
    margin-top: clamp(36px, 4vw, 52px);
    text-align: center;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 34px;
    border-radius: 6px;
    background: var(--lv-espresso);
    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.home-btn:hover,
.home-btn:focus-visible {
    background: var(--lv-latte);
    color: var(--lv-espresso);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(var(--lv-latte-rgb), 0.32);
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--lv-cocoa);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--lv-cocoa-rgb), 0.3);
    padding-bottom: 3px;
    transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}

.home-link i {
    font-size: 0.8em;
}

.home-link:hover,
.home-link:focus-visible {
    color: var(--lv-espresso);
    border-color: var(--lv-espresso);
    gap: 14px;
}

/* ---------- Hero ---------- */
/* Standard banner height: tall enough for the message, short enough to show the next section. */
.home-hero {
    height: auto;
    min-height: clamp(580px, 78vh, 720px);
    display: flex;
    align-items: center;
}

.home-hero .hero-inner {
    position: absolute;
    inset: 0;
}

.home-hero .p-slide-bg {
    background-image: var(--hero-bg);
    background-position: var(--hero-pos, center);
}

.home-hero .p-slide-bg::after {
    background:
        linear-gradient(90deg, rgba(30, 20, 15, 0.9) 0%, rgba(30, 20, 15, 0.78) 30%, rgba(30, 20, 15, 0.45) 58%, rgba(30, 20, 15, 0.12) 85%, rgba(30, 20, 15, 0.05) 100%);
}

.home-hero::after {
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(var(--lv-espresso-rgb), 0.55));
}

.home-hero-copy {
    position: relative;
    z-index: 3;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 140px 0 100px;
    animation: homeHeroIn 1.1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.15s both;
}

/* Banner typography: DM Serif Display for the heading, Manrope for the rest. */
.home-hero {
    --hero-display: 'DM Serif Display', 'Playfair Display', Georgia, serif;
    --hero-sans: 'Manrope', var(--font-body);
}

.home-hero-copy > * {
    max-width: 680px;
}

.home-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    font-family: var(--hero-sans);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #F0DCBC;
}

.home-hero-eyebrow::before {
    content: '';
    width: 44px;
    height: 2px;
    background: var(--lv-latte);
}

.home-hero-title {
    margin: 0 0 22px;
    font-family: var(--hero-display);
    font-size: clamp(2.6rem, 4.6vw, 4.3rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.home-hero-title span {
    display: block;
    margin-top: 10px;
    font-size: 0.7em;
    font-style: italic;
    line-height: 1.15;
    color: #F0DCBC;
}

.home-hero-desc {
    max-width: 600px;
    margin: 0 0 34px;
    font-family: var(--hero-sans);
    font-size: clamp(1.02rem, 1.3vw, 1.12rem);
    font-weight: 500;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.home-hero-actions .p-btn-gold,
.home-hero-actions .p-btn-outline {
    padding: 17px 30px;
    font-family: var(--hero-sans);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 8px;
}

.home-hero-actions .p-btn-gold {
    background: var(--lv-latte);
    color: var(--lv-espresso);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.home-hero-actions .p-btn-gold:hover {
    background: #fff;
}

.home-hero-actions .p-btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.12);
    color: #fff;
}

.home-hero-actions .p-btn-outline:hover {
    background: #fff;
    border-color: #fff;
    color: var(--lv-espresso);
}

@keyframes homeHeroIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Trust strip ---------- */
.home-trust {
    background: var(--lv-linen);
    border-bottom: 1px solid rgba(var(--lv-espresso-rgb), 0.08);
}

.home-trust-list {
    list-style: none;
    margin: 0 auto;
    padding: 22px 0;
    width: min(1200px, calc(100% - 32px));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-trust-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lv-espresso);
    text-align: left;
}

.home-trust-list li + li {
    border-left: 1px solid rgba(var(--lv-espresso-rgb), 0.12);
}

.home-trust-list i {
    color: var(--lv-cocoa);
    font-size: 1.1rem;
}

/* ---------- What we install ---------- */
.home-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-product {
    display: flex;
    flex-direction: column;
    padding: 34px 30px 30px;
    background: #fff;
    border: 1px solid rgba(var(--lv-espresso-rgb), 0.08);
    border-radius: 16px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.home-product:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--lv-latte-rgb), 0.6);
    box-shadow: 0 22px 44px rgba(var(--lv-espresso-rgb), 0.08);
}

.home-product-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: 12px;
    background: var(--lv-linen);
    color: var(--lv-cocoa);
    font-size: 1.2rem;
}

.home-product h3 {
    margin: 0 0 10px;
    font-size: 1.45rem;
}

.home-product p {
    margin: 0 0 22px;
    color: var(--lv-muted);
    flex: 1;
}

.home-product .home-link {
    align-self: flex-start;
}

/* ---------- Shop (product cards keep their behaviour from style.css) ---------- */
.home-container--wide {
    width: min(1320px, calc(100% - 32px));
}

.home-lead {
    margin: 16px auto 0;
    max-width: 620px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--lv-muted);
}

.home-shop .products-grid {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.home-shop .product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(var(--lv-espresso-rgb), 0.06);
}

.home-shop .product-image {
    height: auto;
    aspect-ratio: 4 / 3;
}

.home-shop .product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* The button sits at the bottom so buttons line up across a row */
.home-shop .product-info p {
    margin-bottom: 18px;
}

/* Wishlist and quick view stay visible on the image instead of appearing on hover */
.home-shop .product-actions,
.home-shop .product-card:hover .product-actions {
    top: 14px;
    bottom: auto;
    left: 14px;
    transform: none;
    flex-direction: column;
    gap: 8px;
}

.home-shop .product-action:not(.home-cart-btn) {
    width: 40px;
    height: 40px;
    font-size: 15px;
}

.home-shop .product-badge {
    top: 14px;
    bottom: auto;
    left: auto;
    right: 14px;
}

.home-shop .product-action.home-cart-btn {
    width: 100%;
    height: auto;
    margin-top: auto;
    padding: 13px 18px;
    gap: 10px;
    border-radius: 8px;
    background: var(--lv-espresso);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: none;
}

.home-cart-btn:hover {
    background: var(--lv-latte);
    color: var(--lv-espresso);
    transform: translateY(-2px);
}

.home-cart-btn .home-cart-added,
.home-cart-btn.is-added .home-cart-add {
    display: none;
}

.home-cart-btn.is-added .home-cart-added {
    display: inline;
}

.home-cart-btn.is-added {
    background: #e6f2ea;
    color: #2f6b3f;
}

.home-shop .home-btn i {
    margin-left: 10px;
    font-size: 0.85em;
}

/* ---------- Free from first visit ---------- */
.home-free-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-free {
    padding: 34px 30px;
    background: #fff;
    border-radius: 16px;
    border-top: 3px solid var(--lv-latte);
    box-shadow: 0 14px 34px rgba(var(--lv-espresso-rgb), 0.05);
}

.home-free-tag {
    display: inline-block;
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.6rem;
    color: var(--lv-cocoa);
}

.home-free h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.home-free p {
    margin: 0;
    color: var(--lv-muted);
}

/* ---------- How it works ---------- */
.home-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    counter-reset: none;
}

.home-step {
    position: relative;
    padding-top: 26px;
    border-top: 1px solid rgba(var(--lv-espresso-rgb), 0.16);
}

.home-step-num {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 2.4rem;
    line-height: 1;
    color: var(--lv-latte);
}

.home-step h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.home-step p {
    margin: 0;
    color: var(--lv-muted);
}

.home-step a {
    color: var(--lv-cocoa);
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- Why LustreView ---------- */
.home-why-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
}

.home-why {
    grid-column: span 2;
    padding: 30px 28px;
    border: 1px solid rgba(var(--lv-latte-rgb), 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

/* Centre the last row of two cards */
.home-why:nth-child(4) {
    grid-column: 2 / span 2;
}

.home-why i {
    margin-bottom: 18px;
    font-size: 1.3rem;
    color: var(--lv-latte);
}

.home-why h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    color: #fff;
}

.home-why p {
    margin: 0;
    color: rgba(var(--lv-linen-rgb), 0.75);
}

/* ---------- Business ---------- */
.home-business {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.home-business-media {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--lv-espresso);
}

.home-business-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-business-copy p {
    margin: 18px 0 28px;
    font-size: 1.08rem;
    color: var(--lv-muted);
    max-width: 52ch;
}

/* ---------- Recent installs ---------- */
.home-installs-grid {
    width: 100%;
    margin: 0;
}

.home-installs-grid .roller-video-media {
    aspect-ratio: 3 / 4;
}

/* ---------- Reviews ---------- */
#reviews .home-center-cta {
    margin-top: 8px;
}

/* Leave a review: intro beside the form */
.home-review-panel {
    width: min(1200px, 100%);
    margin: clamp(48px, 6vw, 72px) auto 0;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    padding: clamp(28px, 4vw, 48px);
    background: var(--lv-linen);
    border: 1px solid rgba(var(--lv-espresso-rgb), 0.08);
    border-radius: 24px;
}

.home-review-intro h3 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.15;
}

.home-review-intro p {
    margin: 0 0 22px;
    color: var(--lv-muted);
    line-height: 1.7;
}

.home-review-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.home-review-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.home-review-points i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(var(--lv-latte-rgb), 0.35);
    color: var(--lv-cocoa);
    font-size: 0.7rem;
}

.home-review-form.review-form {
    margin: 0;
    padding: clamp(22px, 3vw, 32px);
    background: #fff;
    border: 1px solid rgba(var(--lv-espresso-rgb), 0.06);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(var(--lv-espresso-rgb), 0.07);
    backdrop-filter: none;
}

.home-review-form input,
.home-review-form textarea {
    border-radius: 10px;
}

.home-review-rating {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.home-review-form .btn-primary {
    width: 100%;
    justify-content: center;
    border: none;
    border-radius: 6px;
}

.home-review-form .review-form-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    border-radius: 6px;
}

/* ---------- Service area ---------- */
.home-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.home-area-copy p {
    margin: 18px 0 28px;
    font-size: 1.05rem;
    color: var(--lv-muted);
}

.home-area-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-area-list li {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--lv-linen);
    border: 1px solid rgba(var(--lv-espresso-rgb), 0.08);
    font-size: 0.95rem;
    font-weight: 500;
}

.home-area-list li:first-child {
    background: var(--lv-espresso);
    color: #fff;
    border-color: var(--lv-espresso);
}

/* ---------- FAQ ---------- */
.home-faq {
    border-top: 1px solid rgba(var(--lv-espresso-rgb), 0.14);
}

.home-faq details {
    border-bottom: 1px solid rgba(var(--lv-espresso-rgb), 0.14);
}

.home-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 4px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.home-faq summary::-webkit-details-marker {
    display: none;
}

.home-faq summary::after {
    content: '+';
    flex: none;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--lv-cocoa);
    transition: transform 0.3s ease;
}

.home-faq details[open] summary::after {
    transform: rotate(45deg);
}

.home-faq details p {
    margin: 0;
    padding: 0 4px 24px;
    color: var(--lv-muted);
    max-width: 68ch;
}

/* ---------- Closing CTA + booking form ---------- */
.home-closing {
    background:
        radial-gradient(circle at 10% 15%, rgba(255, 255, 255, 0.45), transparent 45%),
        linear-gradient(135deg, var(--lv-khaki) 0%, rgba(var(--lv-latte-rgb), 0.55) 100%),
        var(--lv-linen);
    color: var(--lv-espresso);
}

.home-closing .home-eyebrow {
    color: var(--lv-cocoa);
}

.home-closing-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.home-closing-copy p {
    margin: 18px 0 0;
    font-size: 1.1rem;
    color: rgba(var(--lv-espresso-rgb), 0.82);
}

.home-closing-call a {
    color: var(--lv-espresso);
    font-weight: 700;
    white-space: nowrap;
}

.home-closing-call a:hover {
    color: var(--lv-cocoa);
}

.home-booking-form {
    margin: 0;
    width: 100%;
    max-width: none;
    background: #fff;
    color: var(--lv-espresso);
    border: 1px solid rgba(var(--lv-espresso-rgb), 0.08);
    border-radius: 18px;
    padding: clamp(24px, 3vw, 36px);
    box-shadow: 0 24px 50px rgba(var(--lv-espresso-rgb), 0.12);
}

.home-booking-form .btn-primary {
    width: 100%;
    justify-content: center;
    border: none;
    border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .home-shop .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .home-shop .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-product-grid,
    .home-free-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-why,
    .home-why:nth-child(4) {
        grid-column: auto;
    }

    .home-why:last-child {
        grid-column: 1 / -1;
    }

    .home-trust-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-trust-list li:nth-child(3) {
        border-left: none;
    }

    .home-installs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-closing-grid,
    .home-business,
    .home-area,
    .home-review-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-hero {
        height: auto;
        min-height: 0;
    }

    .home-hero .p-slide-bg {
        background-image: var(--hero-bg-mobile, var(--hero-bg));
    }

    .home-hero .p-slide-bg::after {
        background: linear-gradient(180deg, rgba(var(--lv-espresso-rgb), 0.82) 0%, rgba(var(--lv-espresso-rgb), 0.74) 55%, rgba(var(--lv-espresso-rgb), 0.86) 100%);
    }

    .home-hero .p-slide {
        padding: 0;
    }

    .home-hero-copy {
        padding: 104px 0 96px;
    }


    .home-hero-actions a {
        flex: 1 1 100%;
    }

    .home-trust-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-trust-list li {
        justify-content: flex-start;
    }

    .home-trust-list li + li {
        border-left: none;
    }

    .home-product-grid,
    .home-free-grid,
    .home-steps,
    .home-why-grid {
        grid-template-columns: 1fr;
    }

    .home-why:last-child {
        grid-column: auto;
    }

    .home-faq summary {
        font-size: 1.1rem;
    }
}

@media (max-width: 560px) {
    .home-review-form .review-form-grid {
        grid-template-columns: 1fr;
    }

    .home-review-panel {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .home-shop .product-info p {
        margin-bottom: 12px;
    }

    .home-shop .product-action.home-cart-btn {
        padding: 11px 10px;
        font-size: 0.82rem;
    }

    .home-shop .product-action:not(.home-cart-btn) {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .home-installs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-copy {
        animation: none;
    }

    .home-product,
    .home-btn,
    .home-link {
        transition: none;
    }
}
