/*
 * About page. Shares section, heading and button styles with home.css;
 * this file adds the banner, story, team carousel and call to action.
 */

/* ---------- Banner ---------- */
.about-hero {
    position: relative;
    min-height: clamp(440px, 62vh, 560px);
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(30, 20, 15, 0.9) 0%, rgba(30, 20, 15, 0.72) 40%, rgba(30, 20, 15, 0.3) 75%, rgba(30, 20, 15, 0.15) 100%),
        url('img/Blinds/hero/living-room-with-city-view-wooden-blinds.jpg') center / cover no-repeat;
    color: #fff;
}

.about-hero__inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 140px 0 80px;
}

.about-hero__inner > * {
    max-width: 640px;
}

.about-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    font-family: 'Manrope', var(--font-body);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #F0DCBC;
}

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

.about-hero__title {
    margin: 0 0 18px;
    font-family: 'DM Serif Display', var(--font-display);
    font-size: clamp(2.5rem, 4.6vw, 4rem);
    font-weight: 400;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.about-hero__title span {
    display: block;
    font-style: italic;
    color: #F0DCBC;
}

.about-hero__text {
    margin: 0;
    font-family: 'Manrope', var(--font-body);
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    font-weight: 500;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

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

.about-story__media {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--lv-khaki);
}

.about-story__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-story__copy p {
    margin: 18px 0 22px;
    font-size: 1.05rem;
    color: var(--lv-muted);
}

.about-story__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.about-story__list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.6;
    color: var(--lv-espresso);
}

.about-story__list i {
    flex: none;
    margin-top: 3px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(var(--lv-latte-rgb), 0.35);
    color: var(--lv-cocoa);
    font-size: 0.7rem;
}

/* ---------- Team carousel ---------- */
.team-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.team-head__text {
    max-width: 560px;
    margin: 14px 0 0;
    font-size: 1.05rem;
    color: var(--lv-muted);
}

.team-nav {
    display: flex;
    gap: 10px;
    flex: none;
}

.team-nav[hidden] {
    display: none;
}

.team-nav__btn {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--lv-espresso-rgb), 0.2);
    border-radius: 50%;
    background: #fff;
    color: var(--lv-espresso);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.team-nav__btn:hover:not(:disabled) {
    background: var(--lv-espresso);
    border-color: var(--lv-espresso);
    color: #fff;
}

.team-nav__btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.team-nav__btn:focus-visible {
    outline: 2px solid var(--lv-latte);
    outline-offset: 2px;
}

.team-track {
    list-style: none;
    margin: 0;
    padding: 4px 2px 16px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 22px) / 4);
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.team-track::-webkit-scrollbar {
    display: none;
}

.team-card {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    overflow: hidden;
    background: var(--lv-khaki);
    scroll-snap-align: start;
    box-shadow: 0 14px 34px rgba(var(--lv-espresso-rgb), 0.08);
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.team-card:hover img {
    transform: scale(1.04);
}

.team-card__info {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.team-card__info h3 {
    margin: 0 0 4px;
    font-size: 1.12rem;
    color: var(--lv-espresso);
}

.team-card__info p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--lv-muted);
}

/* ---------- Values ---------- */
.about-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* The homepage's 5-card layout spans columns; here each card takes one. */
.about-values .home-why,
.about-values .home-why:nth-child(4),
.about-values .home-why:last-child {
    grid-column: auto;
}

/* ---------- Call to action ---------- */
.about-cta {
    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);
}

.about-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.about-cta__inner p {
    margin: 14px 0 0;
    max-width: 560px;
    font-size: 1.05rem;
    color: rgba(var(--lv-espresso-rgb), 0.82);
}

.about-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .team-track {
        grid-auto-columns: calc((100% - 2 * 22px) / 3);
    }

    .about-story,
    .about-values {
        grid-template-columns: 1fr;
    }

    .about-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-cta__actions {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .about-hero__inner {
        padding: 112px 0 64px;
    }

    .about-hero {
        background:
            linear-gradient(180deg, rgba(30, 20, 15, 0.8) 0%, rgba(30, 20, 15, 0.7) 100%),
            url('img/Blinds/hero/living-room-with-city-view-wooden-blinds-mobile.jpg') center / cover no-repeat;
    }

    .team-track {
        grid-auto-columns: calc((100% - 16px) / 1.6);
        gap: 16px;
    }

    .team-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-track {
        scroll-behavior: auto;
    }

    .team-card img {
        transition: none;
    }
}
