/* ==========================================================================
   LOCAL SCAFFOLDING LTD - Homepage
   ========================================================================== */

/* ---------- Hero: full background image with overlay content ---------- */
.ls-home-hero {
    position: relative;
    background-image:
        linear-gradient(135deg, rgba(59, 19, 68, 0.82) 0%, rgba(31, 31, 46, 0.74) 100%),
        url('/images/heritage-scaffold-period-house-chimney-access.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--ls-white);
    padding: var(--ls-space-4xl) 0;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.ls-home-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.ls-home-hero .ls-eyebrow {
    color: var(--ls-yellow);
    margin-bottom: var(--ls-space-md);
    display: block;
}

.ls-home-hero h1 {
    font-size: 3rem;
    color: var(--ls-white);
    margin-bottom: var(--ls-space-md);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.ls-home-hero h1 .accent {
    color: var(--ls-yellow);
}

.ls-home-hero-lede {
    font-size: 1.1875rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: var(--ls-space-lg);
    line-height: 1.6;
    max-width: 620px;
}

.ls-home-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ls-space-md) var(--ls-space-lg);
    margin-bottom: var(--ls-space-xl);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ls-white);
    list-style: none;
}

.ls-home-hero-features li {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ls-home-hero-features li i {
    color: var(--ls-yellow);
}

.ls-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ls-space-md);
    margin-bottom: var(--ls-space-lg);
}

.ls-home-hero-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
}

.ls-home-hero-call a {
    color: var(--ls-white);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--ls-yellow);
    padding-bottom: 2px;
}

.ls-home-hero-call a:hover {
    color: var(--ls-yellow);
}

/* ---------- Trust strip ---------- */
.ls-home-trust {
    background: linear-gradient(180deg, var(--ls-off-white) 0%, var(--ls-white) 100%);
    padding: var(--ls-space-2xl) 0;
}

.ls-home-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ls-space-md);
}

.ls-home-trust-item {
    background: var(--ls-white);
    border-radius: var(--ls-radius-lg);
    padding: var(--ls-space-xl) var(--ls-space-lg);
    text-align: center;
    border: 1px solid var(--ls-border);
    transition: transform var(--ls-transition), box-shadow var(--ls-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.ls-home-trust-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(59, 19, 68, 0.12);
}

/* Solid colour icon backgrounds, rotating across the four items */
.ls-home-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: var(--ls-white);
    border-radius: 50%;
    font-size: 1.375rem;
    margin-bottom: var(--ls-space-md);
}

.ls-home-trust-item:nth-child(1) .ls-home-trust-icon { background: var(--ls-purple); }
.ls-home-trust-item:nth-child(2) .ls-home-trust-icon { background: var(--ls-teal); }
.ls-home-trust-item:nth-child(3) .ls-home-trust-icon { background: var(--ls-yellow); color: var(--ls-text); }
.ls-home-trust-item:nth-child(4) .ls-home-trust-icon { background: var(--ls-teal); }

.ls-home-trust-item h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: var(--ls-space-sm);
    position: relative;
    padding-bottom: 10px;
}

.ls-home-trust-item h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    border-radius: 1px;
}

.ls-home-trust-item:nth-child(1) h3::after { background: var(--ls-purple); }
.ls-home-trust-item:nth-child(2) h3::after { background: var(--ls-teal); }
.ls-home-trust-item:nth-child(3) h3::after { background: var(--ls-yellow); }
.ls-home-trust-item:nth-child(4) h3::after { background: var(--ls-teal); }

.ls-home-trust-item p {
    font-size: 0.9375rem;
    color: var(--ls-text-muted);
    margin-bottom: var(--ls-space-md);
    flex: 1;
    line-height: 1.6;
}

.ls-home-trust-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ls-white);
    background: var(--ls-purple);
    text-decoration: none;
    padding: 9px 16px;
    border-radius: var(--ls-radius-md);
    transition: background var(--ls-transition), transform var(--ls-transition);
    border: 2px solid var(--ls-purple);
}

.ls-home-trust-link:hover {
    background: var(--ls-purple-dark);
    border-color: var(--ls-purple-dark);
    color: var(--ls-white);
    transform: translateY(-1px);
}

/* ---------- Services grid (more breathing room) ---------- */
.ls-home-services {
    background: var(--ls-purple-light);
}

.ls-home-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ls-space-xl);
}

.ls-home-service-card {
    background: var(--ls-white);
    border-radius: var(--ls-radius-lg);
    padding: var(--ls-space-2xl) var(--ls-space-xl);
    border: 1px solid var(--ls-border);
    transition: transform var(--ls-transition), box-shadow var(--ls-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ls-home-service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ls-purple);
}

.ls-home-service-card:nth-child(2)::before {
    background: var(--ls-yellow);
}

.ls-home-service-card:nth-child(3)::before {
    background: var(--ls-teal);
}

.ls-home-service-card:nth-child(4)::before {
    background: var(--ls-yellow);
}

.ls-home-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(59, 19, 68, 0.12);
}

.ls-home-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: var(--ls-white);
    border-radius: var(--ls-radius-md);
    font-size: 1.375rem;
    margin-bottom: var(--ls-space-lg);
}

.ls-home-service-card:nth-child(1) .ls-home-service-icon { background: var(--ls-purple); }
.ls-home-service-card:nth-child(2) .ls-home-service-icon { background: var(--ls-yellow); color: var(--ls-text); }
.ls-home-service-card:nth-child(3) .ls-home-service-icon { background: var(--ls-teal); }
.ls-home-service-card:nth-child(4) .ls-home-service-icon { background: var(--ls-yellow); color: var(--ls-text); }

.ls-home-service-card h3 {
    font-size: 1.1875rem;
    font-weight: 700;
    margin-bottom: var(--ls-space-md);
    position: relative;
    padding-bottom: 12px;
}

.ls-home-service-card h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    border-radius: 1px;
    background: var(--ls-purple);
}

.ls-home-service-card:nth-child(2) h3::after { background: var(--ls-yellow); }
.ls-home-service-card:nth-child(3) h3::after { background: var(--ls-teal); }
.ls-home-service-card:nth-child(4) h3::after { background: var(--ls-yellow); }

.ls-home-service-card p {
    font-size: 0.9375rem;
    color: var(--ls-text-muted);
    margin-bottom: var(--ls-space-lg);
    flex: 1;
    line-height: 1.65;
}

.ls-home-service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ls-white);
    background: var(--ls-purple);
    border-radius: var(--ls-radius-md);
    text-decoration: none;
    transition: background var(--ls-transition), transform var(--ls-transition);
    border: 2px solid var(--ls-purple);
    margin-top: auto;
}

.ls-home-service-btn:hover {
    background: var(--ls-purple-dark);
    border-color: var(--ls-purple-dark);
    color: var(--ls-white);
    transform: translateY(-1px);
}

/* ---------- Video section ---------- */
.ls-home-video {
    background: var(--ls-white);
}

.ls-home-video-wrap {
    position: relative;
    border-radius: var(--ls-radius-xl);
    overflow: hidden;
    background: var(--ls-text);
    aspect-ratio: 16 / 9;
    box-shadow: 0 24px 48px rgba(31, 31, 46, 0.18);
}

.ls-home-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ls-home-video-poster {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 19, 68, 0.7), rgba(31, 31, 46, 0.8)),
                url('/images/heritage-scaffold-period-house-chimney-access.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity var(--ls-transition);
}

.ls-home-video-poster.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.ls-home-video-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    background: var(--ls-yellow);
    border-radius: 50%;
    color: var(--ls-text);
    font-size: 1.75rem;
    transition: transform var(--ls-transition), background var(--ls-transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ls-home-video-poster:hover .ls-home-video-play {
    transform: scale(1.08);
    background: var(--ls-yellow-dark);
}

/* ---------- Why us / split section ---------- */
.ls-home-why {
    background: var(--ls-off-white);
}

.ls-home-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ls-space-3xl);
    align-items: center;
}

.ls-home-why-image {
    border-radius: var(--ls-radius-xl);
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(31, 31, 46, 0.12);
}

.ls-home-why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 480px;
}

/* Eyebrow above h2 inside why-content too */
.ls-home-why-content {
    display: flex;
    flex-direction: column;
}

.ls-home-why-content .ls-eyebrow {
    display: block;
    margin-bottom: var(--ls-space-sm);
}

.ls-home-why-content h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 14px;
    margin-bottom: var(--ls-space-md);
}

.ls-home-why-content h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 3px;
    border-radius: 2px;
    background: var(--ls-teal);
}

.ls-home-why-content > p {
    font-size: 1.0625rem;
    color: var(--ls-text-muted);
    margin-bottom: var(--ls-space-lg);
    line-height: 1.6;
}

.ls-home-why-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--ls-space-md);
    margin-bottom: var(--ls-space-lg);
}

.ls-home-why-list li {
    display: flex;
    gap: var(--ls-space-md);
    align-items: flex-start;
}

.ls-home-why-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--ls-teal);
    color: var(--ls-white);
    border-radius: 50%;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.ls-home-why-list-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    position: relative;
    padding-bottom: 8px;
    display: inline-block;
}

.ls-home-why-list-content h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--ls-teal);
    border-radius: 1px;
}

.ls-home-why-list-content p {
    font-size: 0.9375rem;
    color: var(--ls-text-muted);
    line-height: 1.6;
    margin-top: 6px;
}

/* ---------- Contact form section ---------- */
.ls-home-contact {
    background: var(--ls-white);
}

.ls-home-contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--ls-space-3xl);
    align-items: start;
}

/* Eyebrow above h2 in contact info too */
.ls-home-contact-info {
    display: flex;
    flex-direction: column;
}

/* Keep the review pill sized to its content, not stretched by the column */
.ls-home-contact-info .ls-review-pill {
    align-self: flex-start;
}

.ls-home-contact-info .ls-eyebrow {
    display: block;
    margin-bottom: var(--ls-space-sm);
}

.ls-home-contact-info h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 14px;
    margin-bottom: var(--ls-space-md);
}

.ls-home-contact-info h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 3px;
    border-radius: 2px;
    background: var(--ls-yellow);
}

.ls-home-contact-info > p {
    font-size: 1.0625rem;
    color: var(--ls-text-muted);
    margin-bottom: var(--ls-space-xl);
    line-height: 1.6;
}

.ls-home-contact-methods {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--ls-space-md);
    margin-bottom: var(--ls-space-xl);
}

.ls-home-contact-method {
    display: flex;
    align-items: center;
    gap: var(--ls-space-md);
    padding: var(--ls-space-md);
    background: var(--ls-off-white);
    border-radius: var(--ls-radius-md);
    text-decoration: none;
    color: var(--ls-text);
    transition: background var(--ls-transition), transform var(--ls-transition);
}

/* Content wrapper (label + value) - must be able to shrink so long
   values like the email address wrap instead of overflowing the box */
.ls-home-contact-method > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.ls-home-contact-method:hover {
    background: var(--ls-purple-light);
    color: var(--ls-text);
    transform: translateX(4px);
}

.ls-home-contact-method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--ls-purple);
    color: var(--ls-white);
    border-radius: var(--ls-radius-md);
    font-size: 1rem;
    flex-shrink: 0;
}

.ls-home-contact-method-label {
    font-size: 0.8125rem;
    color: var(--ls-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.ls-home-contact-method-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ls-text);
    display: block;
    overflow-wrap: anywhere;
    min-width: 0;
}

/* ---------- Form ---------- */
.ls-home-form-wrap {
    background: var(--ls-purple-light);
    border-radius: var(--ls-radius-xl);
    padding: var(--ls-space-xl);
    border: 1px solid var(--ls-border);
}

.ls-home-form-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ls-teal);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: var(--ls-space-sm);
}

.ls-home-form-wrap h3 {
    display: block;
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: var(--ls-space-sm);
    position: relative;
    padding-bottom: 10px;
}

.ls-home-form-wrap h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--ls-yellow);
    border-radius: 1px;
}

.ls-home-form-wrap > p {
    font-size: 0.9375rem;
    color: var(--ls-text-muted);
    margin-bottom: var(--ls-space-lg);
    line-height: 1.6;
}

.ls-form-field {
    margin-bottom: var(--ls-space-md);
}

.ls-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ls-text);
    margin-bottom: 6px;
}

.ls-form-label-required {
    color: var(--ls-danger);
    margin-left: 2px;
}

.ls-form-input,
.ls-form-textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--ls-font);
    font-size: 0.9375rem;
    color: var(--ls-text);
    background: var(--ls-white);
    border: 1px solid var(--ls-border);
    border-radius: var(--ls-radius-md);
    transition: border-color var(--ls-transition), box-shadow var(--ls-transition);
}

.ls-form-input:focus,
.ls-form-textarea:focus {
    outline: none;
    border-color: var(--ls-purple);
    box-shadow: 0 0 0 3px rgba(59, 19, 68, 0.15);
}

.ls-form-input::placeholder,
.ls-form-textarea::placeholder {
    color: var(--ls-text-light);
}

/* Taller message field, no resize */
.ls-form-textarea {
    min-height: 170px;
    resize: none;
    font-family: var(--ls-font);
}

.ls-form-submit {
    width: 100%;
    margin-top: var(--ls-space-sm);
}

/* ---------- Responsive ---------- */
/* ==========================================================================
   RESPONSIVE
   Breakpoints:
   - 960px: tablet and mobile (nav collapses, side-by-side grids drop to single col)
   - 540px: small mobile (grids reduce further, hero scales down, buttons stack)
   ========================================================================== */

@media (max-width: 960px) {
    .ls-home-hero {
        padding: var(--ls-space-3xl) 0;
        min-height: 500px;
        background-position: center;
    }

    .ls-home-hero h1 {
        font-size: 2.25rem;
    }

    .ls-home-hero-lede {
        font-size: 1.0625rem;
    }

    .ls-home-why-grid,
    .ls-home-contact-grid {
        grid-template-columns: 1fr;
        gap: var(--ls-space-2xl);
    }

    .ls-home-why-image img {
        min-height: auto;
        aspect-ratio: 16 / 10;
    }

    .ls-home-trust-grid,
    .ls-home-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--ls-space-md);
    }

    .ls-home-service-card {
        padding: var(--ls-space-xl) var(--ls-space-lg);
    }

    .ls-home-trust-item {
        padding: var(--ls-space-lg);
    }
}

@media (max-width: 540px) {
    .ls-home-hero {
        padding: var(--ls-space-2xl) 0;
        min-height: 440px;
    }

    .ls-home-hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .ls-home-hero-lede {
        font-size: 1rem;
    }

    .ls-home-hero-features {
        gap: 10px var(--ls-space-md);
        font-size: 0.875rem;
    }

    .ls-home-trust-grid,
    .ls-home-services-grid {
        grid-template-columns: 1fr;
        gap: var(--ls-space-md);
    }

    .ls-home-hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .ls-home-hero-actions .ls-btn {
        width: 100%;
    }

    .ls-home-hero-call {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

    .ls-home-hero-inner .ls-review-pill {
        display: flex;
        width: max-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .ls-home-form-wrap {
        padding: var(--ls-space-lg);
    }

    .ls-home-contact-method {
        padding: var(--ls-space-sm) var(--ls-space-md);
    }

    .ls-home-contact-method-value {
        font-size: 0.9375rem;
        overflow-wrap: anywhere;
    }

    .ls-home-why-content,
    .ls-home-contact-info {
        align-items: center;
        text-align: center;
    }

    .ls-home-why-content h2,
    .ls-home-contact-info h2 {
        display: block;
        text-align: center;
    }

    .ls-home-why-content h2::after,
    .ls-home-contact-info h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .ls-home-why-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--ls-space-sm);
    }

    .ls-home-why-list-content h4 {
        display: inline-block;
    }

    .ls-home-why-list-content h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
