/* ============================================================
   RIVET & WELD — HOMEPAGE STYLES
   homepage.css — loaded only on the front page
   ============================================================ */

/* ============================================================
   SHARED HOMEPAGE PRIMITIVES
   ============================================================ */
.rw-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}

.rw-section {
    padding: 96px 0;
}

.rw-section-header {
    margin-bottom: 48px;
}

.rw-section-header--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.rw-section-header h2 {
    margin-top: 6px;
    margin-bottom: 0;
}

.rw-eyebrow {
    font-family: 'Special Elite', monospace;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--rw-rust);
    display: block;
}

.rw-btn {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.24em !important;
    text-transform: uppercase !important;
    padding: 14px 30px !important;
    border-radius: 0 !important;
    transition: all 0.2s !important;
    cursor: pointer;
    text-decoration: none;
}

.rw-btn--primary {
    background: var(--rw-rust) !important;
    color: var(--rw-cream) !important;
    border: 2px solid var(--rw-rust) !important;
}

.rw-btn--primary:hover {
    background: transparent !important;
    color: var(--rw-rust) !important;
}

.rw-btn--ghost {
    background: transparent !important;
    color: var(--rw-cream) !important;
    border: 2px solid var(--rw-cream) !important;
}

.rw-btn--ghost:hover {
    background: var(--rw-cream) !important;
    color: var(--rw-black) !important;
}

.rw-btn--sm {
    padding: 10px 20px !important;
    font-size: 11px !important;
}

/* ============================================================
   HERO
   ============================================================ */
.rw-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--rw-black);
}

.rw-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 60% 50%, rgba(196, 80, 26, 0.08) 0%, transparent 70%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(240, 228, 196, 0.015) 40px,
            rgba(240, 228, 196, 0.015) 41px
        );
}

.rw-hero__content {
    position: relative;
    z-index: 2;
    padding: 120px 32px 80px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.rw-hero__eyebrow {
    font-family: 'Special Elite', monospace;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--rw-rust);
    margin-bottom: 24px;
    display: block;
    animation: fadeUp 0.8s ease 0.1s both;
}

.rw-hero__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(80px, 16vw, 200px);
    line-height: 0.88;
    letter-spacing: 0.02em;
    color: var(--rw-cream);
    text-transform: uppercase;
    margin-bottom: 32px;
    animation: fadeUp 0.8s ease 0.2s both;
}

.rw-hero__title-line {
    display: block;
}

.rw-hero__title-amp {
    display: block;
    color: var(--rw-rust);
    font-size: 0.7em;
    line-height: 0.9;
}

.rw-hero__tagline {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--rw-cream-dim);
    margin-bottom: 48px;
    animation: fadeUp 0.8s ease 0.3s both;
}

.rw-hero__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease 0.4s both;
}

.rw-hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
    animation: fadeUp 0.8s ease 0.6s both;
}

.rw-hero__scroll span {
    font-family: 'Special Elite', monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rw-leather);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.rw-hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--rw-rust), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.rw-hero__stripe {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rw-rust), var(--rw-brass), var(--rw-rust));
    background-size: 200% 100%;
    animation: gradientShift 4s ease infinite;
    z-index: 3;
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(1.1); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.rw-marquee {
    background: var(--rw-rust);
    overflow: hidden;
    padding: 12px 0;
    border-top: 1px solid var(--rw-rust-dark);
    border-bottom: 1px solid var(--rw-rust-dark);
}

.rw-marquee__track {
    display: flex;
    gap: 0;
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.rw-marquee__item {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rw-cream);
    padding: 0 24px;
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-25%); }
}

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.rw-categories {
    background: var(--rw-charcoal);
}

.rw-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.rw-cat-card {
    display: block;
    text-decoration: none;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--rw-charcoal-lt);
}

.rw-cat-card__img {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.rw-cat-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.rw-cat-card:hover .rw-cat-card__img img {
    transform: scale(1.06);
}

.rw-cat-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rw-charcoal-lt);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(240,228,196,0.02) 20px,
        rgba(240,228,196,0.02) 21px
    );
}

.rw-cat-card__placeholder-icon {
    color: var(--rw-rule-strong);
    font-size: 48px;
}

.rw-cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14,12,10,0.92) 0%, rgba(14,12,10,0.3) 50%, transparent 100%);
    transition: opacity 0.3s;
}

.rw-cat-card:hover .rw-cat-card__overlay {
    opacity: 0.85;
}

.rw-cat-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
}

.rw-cat-card__title {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 32px !important;
    letter-spacing: 0.05em !important;
    color: var(--rw-cream) !important;
    line-height: 1 !important;
    margin-bottom: 4px !important;
    text-transform: uppercase !important;
}

.rw-cat-card__desc {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--rw-cream-dim);
    margin: 0 0 10px;
    line-height: 1.3;
}

.rw-cat-card__cta {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rw-rust);
    opacity: 0;
    transform: translateY(6px);
    display: block;
    transition: all 0.25s;
}

.rw-cat-card:hover .rw-cat-card__cta {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   NEW DROPS
   ============================================================ */
.rw-drops-preview {
    background: var(--rw-black);
}

.rw-drops-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.rw-product-card {
    display: block;
    text-decoration: none;
    background: var(--rw-charcoal);
    border: 1px solid var(--rw-rule);
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
    position: relative;
}

.rw-product-card:hover {
    border-color: var(--rw-rust);
    transform: translateY(-3px);
}

.rw-product-card__img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--rw-charcoal-lt);
}

.rw-product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.rw-product-card:hover .rw-product-card__img img {
    transform: scale(1.04);
}

.rw-product-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rw-product-card__no-img span {
    font-family: 'Special Elite', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rw-leather);
}

.rw-product-card__body {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--rw-rule);
}

.rw-product-card__name {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: var(--rw-cream) !important;
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
}

.rw-product-card__price {
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    color: var(--rw-brass);
    letter-spacing: 0.06em;
    display: block;
}

.rw-product-card__price del {
    color: var(--rw-leather);
    opacity: 0.7;
    margin-right: 6px;
}

/* Badges */
.rw-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: 'Special Elite', monospace;
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 4px 10px;
    z-index: 2;
}

.rw-badge--new  { background: var(--rw-rust); color: var(--rw-cream); }
.rw-badge--sale { background: var(--rw-brass); color: var(--rw-black); }

/* ============================================================
   BRAND STATEMENT (FULL BLEED)
   ============================================================ */
.rw-statement {
    background: var(--rw-charcoal);
    border-top: 1px solid var(--rw-rule);
    border-bottom: 1px solid var(--rw-rule);
    padding: 120px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rw-statement::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(196,80,26,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.rw-statement__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.rw-statement__inner .rw-eyebrow {
    margin-bottom: 24px;
}

.rw-statement__quote {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 6vw, 80px);
    letter-spacing: 0.04em;
    line-height: 1.05;
    color: var(--rw-cream);
    text-transform: uppercase;
    border: none;
    padding: 0;
    background: none;
    margin: 0 0 40px;
    font-style: normal;
}

/* ============================================================
   LOOKBOOK STRIP
   ============================================================ */
.rw-lookbook-strip {
    background: var(--rw-black);
}

.rw-lookbook-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
}

.rw-lookbook-cell {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--rw-charcoal);
}

.rw-lookbook-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.rw-lookbook-cell:hover img {
    transform: scale(1.05);
}

.rw-lookbook-cell--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rw-charcoal-lt);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(240,228,196,0.02) 20px,
        rgba(240,228,196,0.02) 21px
    );
}

.rw-lookbook-cell--empty span {
    font-family: 'Special Elite', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rw-leather);
}

/* ============================================================
   EMAIL SIGNUP
   ============================================================ */
.rw-signup {
    background: var(--rw-charcoal);
    border-top: 3px solid var(--rw-rust);
    padding: 100px 32px;
    text-align: center;
}

.rw-signup__inner {
    max-width: 560px;
    margin: 0 auto;
}

.rw-signup__inner .rw-eyebrow {
    margin-bottom: 16px;
}

.rw-signup__title {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: clamp(48px, 7vw, 88px) !important;
    line-height: 0.95 !important;
    color: var(--rw-cream) !important;
    margin-bottom: 20px !important;
}

.rw-signup__sub {
    font-family: 'Crimson Pro', serif;
    font-size: 17px;
    color: var(--rw-cream-dim);
    line-height: 1.6;
    margin-bottom: 36px;
}

.rw-signup__form {}

.rw-signup__field {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto 16px;
}

.rw-signup__field input[type="email"] {
    flex: 1;
    background: var(--rw-charcoal-lt) !important;
    border: 2px solid var(--rw-rule-strong) !important;
    border-right: none !important;
    color: var(--rw-cream) !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 14px !important;
    letter-spacing: 0.08em !important;
    padding: 14px 20px !important;
    border-radius: 0 !important;
    transition: border-color 0.2s !important;
    min-width: 0;
}

.rw-signup__field input[type="email"]:focus {
    border-color: var(--rw-rust) !important;
    outline: none !important;
}

.rw-signup__field .rw-btn {
    flex-shrink: 0;
    border-radius: 0 !important;
    border-left: none !important;
}

.rw-signup__fine {
    font-family: 'Special Elite', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rw-leather);
    margin: 0;
}

/* Mailchimp form override */
.rw-signup .mc4wp-form input[type="email"] {
    background: var(--rw-charcoal-lt) !important;
    border: 2px solid var(--rw-rule-strong) !important;
    color: var(--rw-cream) !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 14px !important;
    letter-spacing: 0.08em !important;
    padding: 14px 20px !important;
    border-radius: 0 !important;
    min-width: 260px;
}

.rw-signup .mc4wp-form input[type="submit"] {
    background: var(--rw-rust) !important;
    color: var(--rw-cream) !important;
    border: 2px solid var(--rw-rust) !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.24em !important;
    text-transform: uppercase !important;
    padding: 14px 28px !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.rw-signup .mc4wp-form input[type="submit"]:hover {
    background: transparent !important;
    color: var(--rw-rust) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .rw-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rw-lookbook-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .rw-lookbook-grid .rw-lookbook-cell:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 768px) {
    .rw-section { padding: 64px 0; }
    .rw-container { padding-left: 20px; padding-right: 20px; }

    .rw-hero__content { padding: 100px 20px 60px; }
    .rw-hero__title { font-size: clamp(72px, 22vw, 120px); }

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

    .rw-drops-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rw-drops-grid .rw-product-card:nth-child(3) {
        display: none;
    }

    .rw-lookbook-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rw-lookbook-grid .rw-lookbook-cell:nth-child(n+3) {
        display: none;
    }

    .rw-signup__field {
        flex-direction: column;
        gap: 12px;
    }
    .rw-signup__field input[type="email"] {
        border-right: 2px solid var(--rw-rule-strong) !important;
    }

    .rw-section-header--split {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .rw-cat-grid {
        grid-template-columns: 1fr;
    }
    .rw-drops-grid {
        grid-template-columns: 1fr;
    }
    .rw-drops-grid .rw-product-card:nth-child(3) {
        display: block;
    }
    .rw-hero__ctas {
        flex-direction: column;
    }
}
