/* ============================================================
   Racetoons Landing Page Styles
   ============================================================ */

/* --- Google Fonts import (loaded via CSS, no PHP needed) --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --rt-black:       #0d0d0d;
    --rt-white:       #ffffff;
    --rt-red:         #c0392b;
    --rt-red-dark:    #96281b;
    --rt-yellow:      #f1c40f;
    --rt-yellow-dark: #d4ac0d;
    --rt-gray-light:  #f5f5f5;
    --rt-gray:        #666;
    --rt-radius:      6px;
    --rt-shadow:      0 4px 20px rgba(0,0,0,0.15);
    --rt-font-head:   'Bebas Neue', Impact, sans-serif;
    --rt-font-body:   'Inter', system-ui, sans-serif;
    --rt-max-width:   1100px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.racetoons-body {
    font-family: var(--rt-font-body);
    font-size: 16px;
    color: var(--rt-black);
    background: var(--rt-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* --- Container --- */
.rt-container {
    max-width: var(--rt-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Sections --- */
.rt-section {
    padding: 72px 0;
}
.rt-section--dark {
    background: var(--rt-black);
    color: var(--rt-white);
}

.rt-section__heading {
    font-family: var(--rt-font-head);
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: 0.03em;
    margin-bottom: 12px;
    line-height: 1.1;
}
.rt-section__heading em {
    color: var(--rt-red);
    font-style: normal;
}
.rt-section__heading--light {
    color: var(--rt-white);
}
.rt-section__heading--light em {
    color: var(--rt-yellow);
}
.rt-section__sub {
    font-size: 1.05rem;
    color: var(--rt-gray);
    max-width: 680px;
    margin-bottom: 40px;
}

/* --- Checkered flag strip helper --- */
.rt-flag-strip,
.rt-hero__flag-strip,
.rt-footer__flag-strip {
    height: 14px;
    background-image:
        repeating-linear-gradient(
            90deg,
            var(--rt-black) 0,
            var(--rt-black) 14px,
            var(--rt-white) 14px,
            var(--rt-white) 28px
        ),
        repeating-linear-gradient(
            180deg,
            var(--rt-black) 0,
            var(--rt-black) 7px,
            var(--rt-white) 7px,
            var(--rt-white) 14px
        );
    background-blend-mode: multiply;
    background-color: var(--rt-yellow);
    background-size: 28px 14px;
}

/* ============================================================
   HERO
   ============================================================ */
.rt-hero {
    background: var(--rt-black);
    color: var(--rt-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Diagonal speed stripe behind hero */
.rt-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 55%;
    height: 130%;
    background: var(--rt-red);
    transform: skewX(-12deg);
    opacity: 0.12;
    pointer-events: none;
}

.rt-hero__inner {
    position: relative;
    z-index: 1;
    padding: 64px 24px 56px;
    max-width: 800px;
    margin: 0 auto;
}

.rt-hero__badge {
    display: inline-block;
    background: var(--rt-red);
    color: var(--rt-white);
    font-family: var(--rt-font-head);
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    padding: 6px 18px;
    border-radius: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.rt-hero__title {
    font-family: var(--rt-font-head);
    line-height: 0.9;
    margin-bottom: 24px;
}
.rt-hero__title-top {
    display: block;
    font-size: clamp(5rem, 18vw, 11rem);
    color: var(--rt-white);
    letter-spacing: -0.01em;
}
.rt-hero__title-bottom {
    display: block;
    font-size: clamp(5rem, 18vw, 11rem);
    color: var(--rt-yellow);
    letter-spacing: -0.01em;
    margin-top: -0.12em;
}

.rt-hero__tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,0.85);
    max-width: 520px;
    margin: 0 auto 36px;
}

/* --- Buttons --- */
.rt-btn {
    display: inline-block;
    text-decoration: none;
    font-family: var(--rt-font-head);
    letter-spacing: 0.08em;
    font-size: 1.15rem;
    padding: 14px 36px;
    border-radius: var(--rt-radius);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    cursor: pointer;
    border: none;
}
.rt-btn--hero {
    background: var(--rt-red);
    color: var(--rt-white);
    box-shadow: 0 4px 16px rgba(192,57,43,0.4);
}
.rt-btn--hero:hover {
    background: var(--rt-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(192,57,43,0.5);
}
.rt-btn--submit {
    background: var(--rt-yellow);
    color: var(--rt-black);
    font-size: 1.1rem;
    padding: 14px 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.rt-btn--submit:hover {
    background: var(--rt-yellow-dark);
    transform: translateY(-2px);
}
.rt-btn--submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.rt-btn__spinner {
    width: 18px; height: 18px;
    border: 3px solid rgba(0,0,0,0.3);
    border-top-color: var(--rt-black);
    border-radius: 50%;
    display: none;
}
.rt-btn--loading .rt-btn__spinner {
    display: block;
    animation: rt-spin 0.7s linear infinite;
}
.rt-btn--loading .rt-btn__text::after { content: '…'; }
@keyframes rt-spin { to { transform: rotate(360deg); } }

/* ============================================================
   INTRO SECTION
   ============================================================ */
.rt-intro__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 56px;
    align-items: center;
}
@media (max-width: 768px) {
    .rt-intro__grid {
        grid-template-columns: 1fr;
    }
    .rt-intro__cover { order: -1; }
}

.rt-intro__text .rt-section__heading { margin-bottom: 20px; }
.rt-intro__text p { margin-bottom: 16px; color: #333; }

.rt-checklist {
    list-style: none;
    margin-top: 20px;
}
.rt-checklist li {
    padding: 8px 0 8px 32px;
    position: relative;
    color: #333;
    border-bottom: 1px solid #eee;
}
.rt-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--rt-red);
    font-weight: 700;
    font-size: 1.1em;
}

/* Cover frame */
.rt-cover-frame {
    position: relative;
}
.rt-cover-frame img {
    border-radius: var(--rt-radius);
    box-shadow: var(--rt-shadow);
    width: 100%;
}
.rt-cover-frame__label {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--rt-red);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
    padding: 5px 14px;
    border-radius: 20px;
}

/* ============================================================
   HOW IT WORKS STEPS
   ============================================================ */
.rt-steps__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 40px;
}
.rt-step {
    border-top: 3px solid var(--rt-yellow);
    padding-top: 20px;
}
.rt-step__num {
    font-family: var(--rt-font-head);
    font-size: 3rem;
    color: var(--rt-yellow);
    line-height: 1;
    margin-bottom: 8px;
}
.rt-step h3 {
    font-family: var(--rt-font-head);
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    color: var(--rt-white);
    margin-bottom: 8px;
}
.rt-step p {
    font-size: 0.93rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}

/* ============================================================
   SAMPLE PAGES / GALLERY
   ============================================================ */
.rt-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 700px) {
    .rt-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .rt-gallery { grid-template-columns: 1fr; }
}

.rt-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--rt-radius);
    box-shadow: var(--rt-shadow);
    background: #f9f9f9;
}
.rt-gallery__item--wide {
    grid-column: span 2;
}
@media (max-width: 700px) {
    .rt-gallery__item--wide { grid-column: span 2; }
}
@media (max-width: 480px) {
    .rt-gallery__item--wide { grid-column: span 1; }
}

.rt-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.rt-gallery__item:hover img {
    transform: scale(1.03);
}
.rt-gallery__item figcaption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.72));
    color: #fff;
    font-size: 0.82rem;
    padding: 20px 12px 10px;
    transform: translateY(100%);
    transition: transform 0.25s ease;
}
.rt-gallery__item:hover figcaption {
    transform: translateY(0);
}

/* ============================================================
   QUOTE STRIP
   ============================================================ */
.rt-quote-strip {
    background: var(--rt-red);
    padding: 48px 24px;
}
.rt-quote {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: #fff;
    font-style: italic;
    text-align: center;
    line-height: 1.7;
}
.rt-quote cite {
    display: block;
    margin-top: 12px;
    font-size: 0.9rem;
    font-style: normal;
    opacity: 0.85;
    letter-spacing: 0.04em;
}

/* ============================================================
   PHOTO GRID SECTION
   ============================================================ */
.rt-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.rt-photo-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    border: 2px dashed #ddd;
    border-radius: var(--rt-radius);
    color: #aaa;
}
.rt-photo-placeholder span { font-size: 2.5rem; display: block; margin-bottom: 8px; }
.rt-photo-placeholder p { font-size: 1rem; margin-bottom: 4px; }
.rt-photo-placeholder small { font-size: 0.8rem; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.rt-contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
@media (max-width: 768px) {
    .rt-contact__inner { grid-template-columns: 1fr; gap: 40px; }
}

.rt-contact__lead {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    margin: 16px 0 24px;
    line-height: 1.7;
}
.rt-contact__details p {
    font-weight: 600;
    color: var(--rt-yellow);
    margin-bottom: 8px;
}
.rt-contact__details ul {
    list-style: none;
}
.rt-contact__details ul li {
    color: rgba(255,255,255,0.75);
    padding: 5px 0 5px 24px;
    position: relative;
    font-size: 0.93rem;
}
.rt-contact__details ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--rt-yellow);
}

/* Form */
.rt-contact__form-wrap {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 36px;
}
@media (max-width: 480px) {
    .rt-contact__form-wrap { padding: 24px 16px; }
}

.rt-form__row { margin-bottom: 0; }
.rt-form__row--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 520px) {
    .rt-form__row--two { grid-template-columns: 1fr; }
}

.rt-form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.rt-form__group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.rt-form__optional {
    font-weight: 400;
    text-transform: none;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0;
}
.rt-form__group input,
.rt-form__group textarea {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--rt-radius);
    color: #fff;
    font-family: var(--rt-font-body);
    font-size: 0.95rem;
    padding: 11px 14px;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
    width: 100%;
    resize: vertical;
}
.rt-form__group input::placeholder,
.rt-form__group textarea::placeholder {
    color: rgba(255,255,255,0.35);
}
.rt-form__group input:focus,
.rt-form__group textarea:focus {
    border-color: var(--rt-yellow);
    background: rgba(255,255,255,0.15);
}
.rt-form__group input.rt-invalid,
.rt-form__group textarea.rt-invalid {
    border-color: var(--rt-red);
}

.rt-form__footer { margin-top: 8px; }

.rt-form__message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--rt-radius);
    font-size: 0.92rem;
    display: none;
}
.rt-form__message--success {
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid rgba(39, 174, 96, 0.5);
    color: #7dffb0;
    display: block;
}
.rt-form__message--error {
    background: rgba(192, 57, 43, 0.2);
    border: 1px solid rgba(192, 57, 43, 0.5);
    color: #ffb3ae;
    display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.rt-footer {
    background: #080808;
    text-align: center;
    padding-bottom: 28px;
}
.rt-footer__flag-strip {
    margin-bottom: 20px;
}
.rt-footer__copy {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.04em;
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.rt-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.rt-reveal.rt-visible {
    opacity: 1;
    transform: none;
}
