/* ===== Rainey Racing — public giveaway page ===== */
/* loads on top of ../styles.css; only page-specific bits live here */

.gw-hero {
    position: relative; overflow: hidden;
    padding: 64px 0 56px; text-align: center;
    border-bottom: 3px solid var(--gold);
}
.gw-hero::before {
    content: ''; position: absolute; inset: 0;
    background: url('../images/brand/rainey-racing-banner.jpg') center/cover no-repeat;
    opacity: .26;
}
.gw-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13,11,24,.84), rgba(13,11,24,.95));
}
.gw-hero > .container { position: relative; z-index: 2; }

.gw-flag {
    display: inline-block; background: var(--purple); color: #fff;
    font-family: 'Bahnschrift','Arial Narrow','Segoe UI',sans-serif; font-weight: 800;
    text-transform: uppercase; letter-spacing: 3px; font-size: .9rem;
    padding: 8px 22px; border-radius: 30px; margin-bottom: 18px;
}
.gw-hero h1 {
    color: #fff; text-transform: uppercase; letter-spacing: 1px; line-height: 1.02;
    font-size: clamp(2rem, 6vw, 3.6rem); margin-bottom: 8px;
}
.gw-hero h1 span { color: var(--gold); display: block; }
.gw-free {
    display: inline-block; background: var(--gold); color: var(--carbon);
    font-family: 'Bahnschrift','Arial Narrow','Segoe UI',sans-serif; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px; font-size: 1rem;
    padding: 9px 22px; border-radius: 8px; margin: 14px 0 20px;
}
.gw-sub { color: var(--text); max-width: 620px; margin: 0 auto 24px; font-size: 1.06rem; }

/* countdown to the draw */
.gw-clock { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.gw-unit {
    background: var(--carbon-2); border: 1px solid var(--line); border-top: 3px solid var(--gold);
    border-radius: 12px; min-width: 84px; padding: 14px 10px;
}
.gw-unit b {
    display: block; font-family: 'Bahnschrift','Arial Narrow','Segoe UI',sans-serif;
    font-weight: 800; font-size: 2.1rem; color: var(--gold); line-height: 1;
}
.gw-unit small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: 1.4px; margin-top: 7px; }
.gw-drawn { color: var(--gold); font-weight: 700; font-size: 1.05rem; }

/* the prize */
.gw-prizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.gw-prize {
    margin: 0; background: var(--carbon-2); border: 1px solid var(--line);
    border-radius: 14px; overflow: hidden; text-align: center;
    transition: transform .2s, border-color .2s;
}
.gw-prize:hover { transform: translateY(-3px); border-color: var(--gold); }
.gw-prize img { width: 100%; height: 170px; object-fit: cover; display: block; background: #fff; }
.gw-prize figcaption {
    padding: 12px 10px; color: #fff; font-weight: 700; font-size: .98rem;
}
.gw-prize figcaption small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; margin-top: 3px; }

/* how to enter */
.gw-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.gw-step {
    background: var(--carbon-2); border: 1px solid var(--line);
    border-left: 4px solid var(--purple); border-radius: 12px; padding: 22px;
}
.gw-step-n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; background: var(--purple); color: #fff;
    font-family: 'Bahnschrift','Arial Narrow','Segoe UI',sans-serif; font-weight: 800;
    font-size: 1.25rem; margin-bottom: 12px;
}
.gw-step h3 { color: #fff; font-size: 1.08rem; margin-bottom: 6px; }
.gw-step p { color: var(--muted); font-size: .95rem; margin: 0; }
.gw-bonus {
    margin-top: 20px; text-align: center; background: rgba(255,212,0,.12);
    border: 1px solid rgba(255,212,0,.45); border-left: 4px solid var(--gold);
    border-radius: 10px; padding: 16px 18px; color: var(--text);
}
.gw-bonus strong { color: var(--gold); }

.gw-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

/* fine print */
.gw-rules {
    background: var(--carbon-2); border: 1px solid var(--line); border-radius: 12px;
    padding: 24px; margin-top: 10px;
}
.gw-rules h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.gw-rules ul { margin: 0; padding-left: 20px; }
.gw-rules li { color: var(--muted); font-size: .92rem; margin-bottom: 9px; line-height: 1.55; }
.gw-rules li strong { color: var(--text); }
.gw-disclaimer { color: var(--muted); font-size: .84rem; margin-top: 16px; font-style: italic; }

.gw-backlink { text-align: center; padding: 30px 0 0; }
.gw-backlink a { color: var(--gold); font-weight: 600; text-decoration: none; }
.gw-backlink a:hover { text-decoration: underline; }

@media (max-width: 760px) {
    .gw-hero { padding: 44px 0 40px; }
    .gw-unit { min-width: 70px; padding: 12px 8px; }
    .gw-unit b { font-size: 1.7rem; }
    .gw-prize img { height: 150px; }
}

/* alternating section background */
.gw-alt { background: var(--carbon-2); }
