/* ============================================
   HOME PAGE - Windsor Furniture Co
   ============================================ */

/* ---- Hero ----
   Desktop: blurred showroom photo, dark translucent title card in the middle,
   staff cutouts standing on the bottom edge at both sides (overflowing below,
   like the store's long-standing hero).
   Mobile: card on top, staff lined up in a row underneath. */
.hero {
    position: relative;
    isolation: isolate;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-charcoal);
}

.hero__bg {
    position: absolute;
    inset: -24px;
    z-index: -1;
    background: url('/assets/images/home/hero-showroom.webp') center / cover no-repeat;
    filter: blur(6px) brightness(0.85);
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding-top: 3.5rem;
    padding-bottom: 7rem;
}

.hero__card {
    width: min(600px, 100%);
    padding: 2.5rem 2.5rem 2.25rem;
    text-align: center;
    background: rgba(31, 31, 32, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 4px solid var(--color-gold);
    box-shadow: var(--shadow-lg);
    color: #ffffff;
    backdrop-filter: blur(2px);
}

.hero__eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}

.hero__title {
    color: #ffffff;
    font-size: clamp(1.6rem, 3.4vw, 2.15rem);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hero__lines {
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.92);
}

.hero__lines span {
    color: var(--color-gold);
    margin: 0 0.3rem;
}

.hero__lines--gold {
    color: var(--color-gold-light);
    font-weight: 600;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

/* Crew sits in front of the title card (z-index 3 > 2). pointer-events: none
   keeps the card's buttons clickable where the crew overlaps them. */
.hero__staff {
    position: absolute;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}

@keyframes hero-crew-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Each cutout fades in place, in the order 1, 3, 2, 4 (left to right numbering),
   starting 1s after the page appears and 0.5s apart. */
.hero__person {
    animation: hero-crew-in 0.8s ease-out both;
}

.hero__person--a { animation-delay: 1s; }
.hero__person--c { animation-delay: 1.5s; }
.hero__person--b { animation-delay: 2s; }
.hero__person--d { animation-delay: 2.5s; }

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

.hero__staff--left {
    left: max(0px, calc(50% - 720px));
}

.hero__staff--right {
    right: max(0px, calc(50% - 720px));
}

.hero__person {
    display: block;
    width: auto;
    height: 400px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.hero__person--b {
    margin-left: -40px;
}

.hero__person--d {
    margin-left: -30px;
}

/* ---- Value strip ---- */
.values {
    background: var(--color-gold);
}

.values__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.value {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--color-charcoal);
}

a.value:hover {
    color: var(--color-charcoal);
}

a.value:hover strong {
    text-decoration: underline;
}

.value > i {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.value strong {
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.value span {
    display: block;
    font-size: 0.85rem;
    color: rgba(47, 47, 48, 0.85);
}

/* ---- Shop by room ---- */
.departments__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.department-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.75rem;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-gold);
    border-radius: var(--radius);
    color: var(--color-text);
    transition: transform var(--transition), box-shadow var(--transition);
}

.department-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--color-text);
}

.department-card h3 {
    font-size: 1.45rem;
    margin: 0;
}

.department-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--color-text-light);
}

.department-card__cta {
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-gold-deep);
}

/* ---- Mission ---- */
.mission {
    padding: 5rem 0;
}

.mission__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.mission__photo img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.mission__text h2 {
    font-size: 2.1rem;
    margin-bottom: 1.25rem;
}

.mission__text p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--color-text-light);
    margin-bottom: 1.75rem;
}

/* ---- Visit / contact ---- */
.visit__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
    align-items: stretch;
}

.contact-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.contact-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 1.25rem 0.75rem;
    background: var(--color-charcoal);
    border-radius: var(--radius);
    color: #ffffff;
    text-align: center;
}

.contact-tile:hover {
    background: #000000;
    color: var(--color-gold);
}

.contact-tile i {
    font-size: 1.6rem;
    color: var(--color-gold);
    margin-bottom: 0.25rem;
}

.contact-tile span {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.contact-tile strong {
    font-size: 0.95rem;
    word-break: break-word;
}

.contact-tile--fb {
    background: #1d5fa8;
}

.contact-tile--fb i {
    color: #ffffff;
}

.hours-card {
    padding: 1.5rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-gold);
    border-radius: var(--radius);
}

.hours-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.hours-card dl {
    margin: 0 0 1rem;
}

.hours-card dl div {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px dashed var(--color-border);
}

.hours-card dt {
    font-weight: 600;
}

.hours-card dd {
    margin: 0;
}

.hours-card dd.is-closed {
    color: var(--color-text-muted);
}

.hours-card__address {
    margin: 0;
}

.hours-card__address i {
    color: var(--color-gold-deep);
    margin-right: 0.3rem;
}

.visit__map {
    min-height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.visit__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* Keep both staff groups clear of the centered 600px card */
@media (max-width: 1499.98px) {
    .hero__person {
        height: 340px;
    }
}

@media (max-width: 1299.98px) {
    .hero__person {
        height: 290px;
    }
}

/* Below 1200px: card on top, both staff groups side by side underneath */
@media (max-width: 1199.98px) {
    .hero {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "card card"
            "left right";
        align-items: end;
        min-height: 0;
    }

    .hero__inner {
        grid-area: card;
        padding-top: 2rem;
        padding-bottom: 1.25rem;
    }

    .hero__staff {
        position: relative;
        bottom: auto;
    }

    .hero__staff--left {
        grid-area: left;
        left: auto;
        justify-content: flex-end;
        margin-right: -12px;
    }

    .hero__staff--right {
        grid-area: right;
        right: auto;
        justify-content: flex-start;
        margin-left: -12px;
    }

    .hero__person {
        height: clamp(150px, 34vw, 280px);
    }

    .hero__person--b,
    .hero__person--d {
        margin-left: -6%;
    }

    /* Overlap order top to bottom: 1, 2, 3, 4 (left group above right group). */
    .hero__staff--left {
        z-index: 4;
    }

    .hero__staff--right {
        z-index: 3;
    }

    .hero__person {
        position: relative;
    }

    .hero__person--a,
    .hero__person--c {
        z-index: 2;
    }

    .hero__person--b,
    .hero__person--d {
        z-index: 1;
    }
}

@media (max-width: 991.98px) {
    .values__grid {
        grid-template-columns: 1fr 1fr;
    }

    .mission__grid,
    .visit__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero__card {
        padding: 1.75rem 1.25rem;
    }

    .hero__lines {
        font-size: 0.78rem;
        letter-spacing: 0.08em;
    }

    .hero__lines span {
        margin: 0 0.15rem;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .values__grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .mission {
        padding: 3rem 0;
    }

    .mission__text h2 {
        font-size: 1.6rem;
    }

    .contact-tiles {
        grid-template-columns: 1fr 1fr;
    }

    .visit__map,
    .visit__map iframe {
        min-height: 300px;
    }
}
