/**
 * Home Page — Styles
 * Depends on tribute-grid.css for shared tg- grid system.
 */

.home-page {
    background-color: var(--color-black);
}

/* ───────────────────────────────
   Hero — Full-width animated
   ─────────────────────────────── */

.home-hero {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    position: relative;
    overflow: hidden;
}

.home-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% 50%;
}

.home-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.home-hero-center {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-word {
    position: absolute;
    font-family: 'Ano', sans-serif;
    font-size: 160px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    opacity: 0;
}

.home-hero-word:nth-child(1) {
    animation: homeWordShow 1s ease forwards 0.5s;
}
.home-hero-word:nth-child(2) {
    animation: homeWordShow 1s ease forwards 1.5s;
}
.home-hero-word:nth-child(3) {
    animation: homeWordShow 1s ease forwards 2.5s;
}

@keyframes homeWordShow {
    0%   { opacity: 0; transform: scale(0.9); }
    10%  { opacity: 1; transform: scale(1); }
    90%  { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.05); }
}

/* ───────────────────────────────
   Marquee
   ─────────────────────────────── */

.home-marquee {
    overflow: hidden;
    background-color: var(--color-brandpink);
    padding: 16px 0;
    white-space: nowrap;
}

.home-marquee-track {
    display: inline-flex;
    animation: homeMarqueeScroll 16s linear infinite;
}

.home-marquee-text {
    font-family: 'Ano', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-black);
    letter-spacing: 0.05em;
}

@keyframes homeMarqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ───────────────────────────────
   Products
   ─────────────────────────────── */

.home-products {
    padding: 60px 40px;
    background-color: var(--color-orange);
}

.home-products-title {
    font-family: 'Ano', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: left;
    color: var(--color-black);
}

.home-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 56px 40px;
}

.home-product-card {
    text-align: center;
    transition: transform 0.2s;
}

.home-product-card:hover {
    transform: translateY(-4px);
}

.home-product-card .shop-product-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background-color: #f5f5f5;
    margin-bottom: 16px;
}

.home-product-name {
    font-family: 'Ano', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--color-black);
}

.home-product-price {
    font-family: 'Ano', sans-serif;
    font-size: 16px;
    color: var(--color-black);
}

.home-products-footer {
    text-align: center;
    margin-top: 30px;
}

.home-products-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Ano', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-black);
    transition: opacity 0.2s;
}

.home-products-link:hover {
    opacity: 0.6;
}

.home-products-arrow {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.home-products-link:hover .home-products-arrow {
    transform: translateX(6px);
}

/* ───────────────────────────────
   Story — Linked grid cells
   ─────────────────────────────── */


.home-modes {
    background-color: var(--color-black);
    border-top: 2px solid var(--color-black);
}

.home-modes .tg-row {
    min-height: 70vh;
}

/* One 2px seam only — tribute-grid puts 1px on both cells, which reads as a double line. */
.home-modes .tg-row > .tg-cell:first-child {
    border-right: 2px solid var(--color-black);
}

.home-modes .tg-row > .tg-cell:last-child {
    border-left: none;
}

/* Keep a bottom line on the last mode row so it does not stack with .jf-payoff border-top. */
.home-modes .tg-row:last-child {
    border-bottom: 2px solid var(--color-black);
}

.home-page .jf-payoff {
    border-top: none;
    border-bottom: none;
}

.home-story {
    border-top: 2px solid var(--color-black);
}   

.home-story .tg-row {
    min-height: 50vh;
}

.home-story-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-black);
}

.home-story-arrow {
    position: absolute;
    bottom: 30px;
    right: 30px;
    color: var(--color-black);
    transition: transform 0.3s ease;
}

a.home-story-cell:hover .home-story-arrow {
    transform: translateX(8px);
}

/* ───────────────────────────────
   Instagram + Newsletter
   ─────────────────────────────── */

.home-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 2px solid var(--color-black);
}

.home-instagram {
    background-color: var(--color-seashellpink);
    padding: 60px 40px;
    border-right: 1px solid var(--color-black);
}

.home-instagram-title {
    font-family: 'Ano', sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--color-black);
}

.home-instagram-title a {
    color: inherit;
    text-decoration: none;
}

.home-instagram-title a:hover {
    font-style: italic;
    color: var(--color-orange);
}

.home-instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.home-instagram-item {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
    display: block;
}

.home-newsletter {
    background-color: var(--color-orange);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-left: 1px solid var(--color-black);
}

/* .home-deco {
    position: absolute;
    width: 280px;
    right: -30px;
    top: -40px;
    opacity: 0.15;
    transform: rotate(-10deg);
    z-index: 0;
    pointer-events: none;
} */

.home-deco {
    position: absolute;
    width: 92%;
    right: 19px;
    top: 7px;
    opacity: 0.15;
    transform: rotate(18deg);
    z-index: 0;
    pointer-events: none;
}

.home-newsletter-title {
    font-family: 'Ano', sans-serif;
    font-size: clamp(32px, 3.4vw, 48px);
    font-weight: 700;
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--color-black);
    position: relative;
    z-index: 1;
}

.home-newsletter-text {
    font-family: 'Ano', sans-serif;
    font-size: 18px;
    line-height: 1.4;
    max-width: 36em;
    margin-bottom: 30px;
    color: var(--color-black);
    position: relative;
    z-index: 1;
}

.home-newsletter-form {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.home-newsletter-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--color-black);
    background: transparent;
    font-family: 'Ano', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--color-black);
}

.home-newsletter-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.home-newsletter-button {
    padding: 16px 32px;
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    font-family: 'Ano', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
}

.home-newsletter-button:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.home-newsletter-company {
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    opacity: 0;
}

.home-newsletter-message {
    margin: 16px 0 0;
    font-family: 'Ano', sans-serif;
    font-size: 16px;
    color: var(--color-black);
    position: relative;
    z-index: 1;
}

.home-newsletter-message.is-error {
    display: inline-block;
    padding: 12px 16px;
    border: 2px solid var(--color-black);
    border-left: 6px solid var(--color-orange);
    background: var(--color-white);
    font-weight: 700;
}

/* ───────────────────────────────
   Closing Strip
   ─────────────────────────────── */

.home-closing {
    background-color: var(--color-brandpink);
    padding: 60px 40px;
    text-align: center;
    border-top: 2px solid var(--color-black);
}

.home-closing-text {
    font-family: 'Ano', sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-black);
    letter-spacing: 0.02em;
}

/* ───────────────────────────────
   Responsive — 1024px
   ─────────────────────────────── */

@media (max-width: 1024px) {
    .home-hero-word {
        font-size: 80px;
    }

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

    .home-story .tg-row,
    .home-modes .tg-row {
        min-height: 40vh;
    }

    /* .home-deco {
        width: 200px;
    } */

    .home-newsletter-title {
        font-size: 36px;
    }
}

/* ───────────────────────────────
   Responsive — 768px (mobile)
   ─────────────────────────────── */

@media (max-width: 768px) {
    .home-hero-word {
        font-size: 48px;
    }

    .home-products {
        padding: 40px 20px;
    }

    .home-products-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .home-story .tg-row,
    .home-modes .tg-row {
        min-height: auto;
    }

    .home-story .tg-cell--image,
    .home-modes .tg-cell--image {
        display: block;
        min-height: 0;
        height: auto;
    }

    .home-story .tg-cell--image img,
    .home-modes .tg-cell--image img {
        width: 100%;
        height: auto;
    }

    .home-modes .tg-row,
    .home-story .tg-row {
        display: flex;
        flex-direction: column;
    }

    .home-modes .tg-row > .tg-cell:not(.tg-cell--image) {
        order: 1;
        border-right: none;
        border-left: none;
        border-bottom: 2px solid var(--color-black);
    }

    .home-modes .tg-row > .tg-cell--image {
        order: 2;
        border-right: none;
        border-left: none;
        border-bottom: none;
    }

    .home-story .tg-row > .tg-cell--image {
        order: 1;
        border-right: none;
        border-left: none;
        border-bottom: 2px solid var(--color-black);
    }

    .home-story .tg-row > .tg-cell:not(.tg-cell--image) {
        order: 2;
        border-right: none;
        border-left: none;
        border-bottom: none;
    }

    .home-story--about .tg-row > .tg-cell:first-child {
        border-bottom: none;
    }

    .home-story--about .tg-row > .tg-cell:not(.tg-cell--image) {
        order: 1;
        border-bottom: 2px solid var(--color-black);
    }

    .home-story--about .tg-row > .tg-cell--image {
        order: 2;
        border-bottom: none;
    }

    .home-story-arrow {
        bottom: 20px;
        right: 20px;
        width: 30px;
        height: 30px;
    }

    .home-social {
        grid-template-columns: 1fr;
    }

    .home-instagram {
        padding: 40px 20px;
        border-right: none;
        border-bottom: 2px solid var(--color-black);
    }

    .home-newsletter {
        padding: 40px 20px;
        border-left: none;
    }

    .home-deco {
        width: 300px;
        right: auto;
        opacity: 0.1;
        left: -33px;
    }

    .home-newsletter-title {
        font-size: 32px;
    }

    .home-newsletter-form {
        flex-direction: column;
    }

    .home-newsletter-button {
        width: 100%;
    }

    .home-closing-text {
        font-size: 24px;
    }
}
