/* ============================================================
   USA Times — Homepage v3  (Ridelux-inspired)
   ============================================================ */

/* ── Prevent 100vw from causing horizontal overflow ───────── */
html { overflow-x: hidden; }

/* ── Full-width breakout (escapes WP content column) ──────── */
.rl-hero, .rl-vehicles, .rl-diff, .rl-reviews, .rl-cta {
    margin-left:  calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
}

/* ── Hide WP page title on /book ───────────────────────────── */
body.page-template-default .entry-title,
body.page .entry-title {
    display: none !important;
}

/* ── Zero top gap on /book ─────────────────────────────────── */
body.page .entry-content,
body.page .post-content,
body.page .page-content,
body.page .wp-block-post-content,
body.page .hentry,
body.page .type-page,
body.page .is-layout-constrained,
body.page .wp-site-blocks,
body.page .site-content,
body.page #content,
body.page #primary,
body.page .site-main,
body.page #main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ── Box sizing ───────────────────────────────────────────── */
.rl-hero, .rl-vehicles, .rl-diff, .rl-reviews, .rl-cta,
.rl-hero *, .rl-vehicles *, .rl-diff *, .rl-reviews *, .rl-cta * {
    box-sizing: border-box;
}
.rl-hero ul, .rl-vehicles ul, .rl-diff ul, .rl-reviews ul { padding: 0; margin: 0; }

/* ── Container ─────────────────────────────────────────────── */
.rl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

/* =============================================================
   HERO
============================================================= */
.rl-hero {
    position: relative;
    display: flex;
    align-items: center;
    background: #060e1f;
    overflow: hidden;
}
.rl-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1683778547049-8d969766b441?w=1920&q=80&fit=crop');
    background-size: cover;
    background-position: center 55%;
    opacity: 0.28;
}
.rl-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 52px 28px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 52px;
}

/* Hero copy */
.rl-hero-copy {
    flex: 1 1 460px;
    min-width: 0;
    color: #fff;
    padding-top: 24px;
}
.rl-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #7ba4e8;
    margin: 0 0 22px;
}
.rl-h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.07;
    color: #fff;
    margin: 0 0 22px;
}
.rl-hero-sub {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #b8cde8;
    max-width: 440px;
    margin: 0 0 30px;
}
.rl-hero-checks {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rl-hero-checks li {
    font-size: .92rem;
    color: #96b8dc;
}
.rl-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border: 2px solid rgba(255,255,255,.35);
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.rl-hero-cta:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.6);
}

/* =============================================================
   BOOKING CARD
============================================================= */
.rl-book-card {
    flex: 0 0 430px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0,0,0,.45);
    overflow: hidden;
}
.rl-card-header {
    padding: 24px 28px 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.rl-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0c1a35;
    margin: 0;
}
.rl-card-phone {
    font-size: .78rem;
    color: #64748b;
    margin: 0;
    white-space: nowrap;
}
.rl-card-phone a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
}

/* Tabs */
.rl-tabs {
    display: flex;
    padding: 16px 28px 0;
    gap: 6px;
}
.rl-tab {
    flex: 1;
    padding: 9px 6px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: .8rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    font-family: inherit;
}
.rl-tab.active {
    background: #0c1a35;
    border-color: #0c1a35;
    color: #fff;
}
.rl-tab:hover:not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #374151;
}

/* Form */
.rl-form {
    padding: 18px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.rl-pane { display: none; }
.rl-pane.active { display: flex; flex-direction: column; gap: 13px; }

.rl-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.rl-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.rl-label {
    font-size: .71rem;
    font-weight: 700;
    color: #374151;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.rl-opt {
    font-weight: 400;
    color: #9ca3af;
    text-transform: none;
    letter-spacing: 0;
}
.rl-input,
.rl-select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: .88rem;
    color: #0f172a;
    background: #fff;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}
.rl-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}
.rl-input:focus,
.rl-select:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}

/* Vehicle list inside card */
.rl-veh-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rl-veh-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    text-align: left;
    width: 100%;
    font-family: inherit;
}
.rl-veh-row.active {
    border-color: #0c1a35;
    background: #f0f4ff;
}
.rl-veh-row:hover:not(.active) {
    border-color: #94a3b8;
    background: #f8fafc;
}
.rl-veh-row-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rl-veh-row-name {
    font-size: .86rem;
    font-weight: 700;
    color: #0f172a;
}
.rl-veh-row-sub {
    font-size: .73rem;
    color: #64748b;
}
.rl-veh-row-price {
    font-size: .95rem;
    font-weight: 800;
    color: #0c1a35;
}
.rl-veh-row-rate {
    font-size: .78rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

/* Divider */
.rl-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 2px -28px;
}

/* Error */
.rl-form-err {
    font-size: .8rem;
    color: #dc2626;
    min-height: 18px;
    margin: 0;
}

/* Submit button */
.rl-submit {
    width: 100%;
    padding: 14px;
    background: #0c1a35;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .98rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: inherit;
    letter-spacing: .01em;
}
.rl-submit:hover { background: #1a3060; }
.rl-submit:disabled { opacity: .6; cursor: not-allowed; }
.rl-submit-price { font-weight: 400; opacity: .8; }
.rl-fine {
    font-size: .71rem;
    color: #94a3b8;
    text-align: center;
    margin: 0;
}

/* Success state */
.rl-success {
    padding: 52px 28px;
    text-align: center;
}
.rl-success-ico {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
}
.rl-success h2 { font-size: 1.3rem; font-weight: 700; color: #0f172a; margin: 0 0 10px; }
.rl-success p  { color: #64748b; margin: 0 0 26px; font-size: .92rem; }
.rl-success-link {
    display: inline-block;
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
    font-size: .9rem;
}

/* =============================================================
   FLEET SECTION
============================================================= */
.rl-vehicles {
    padding: 56px 0;
    background: #fff;
}
.rl-section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #1d4ed8;
    margin: 0 0 12px;
}
.rl-section-h {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #0c1a35;
    margin: 0 0 12px;
    line-height: 1.15;
}
.rl-section-sub {
    font-size: .98rem;
    color: #64748b;
    margin: 0 0 28px;
    max-width: 580px;
    line-height: 1.6;
}

.rl-veh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.rl-veh-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e8edf4;
    transition: box-shadow .2s, transform .2s;
    position: relative;
    background: #fff;
}
.rl-veh-card:hover {
    box-shadow: 0 20px 56px rgba(12,26,53,.13);
    transform: translateY(-4px);
}
.rl-veh-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #0c1a35;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}
.rl-veh-photo {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: #0d1829;
}
.rl-veh-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
    display: block;
}
.rl-veh-card:hover .rl-veh-photo img {
    transform: scale(1.05);
}
.rl-veh-body {
    padding: 16px 18px 18px;
}
.rl-veh-name {
    font-size: 1.08rem;
    font-weight: 800;
    color: #0c1a35;
    margin: 0 0 4px;
}
.rl-veh-sub {
    font-size: .82rem;
    color: #64748b;
    margin: 0 0 10px;
}
.rl-veh-features {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.rl-veh-features li {
    font-size: .72rem;
    font-weight: 600;
    background: #f0f4ff;
    color: #1d4ed8;
    padding: 4px 10px;
    border-radius: 20px;
}
.rl-veh-pricing {
    display: flex;
    gap: 20px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.rl-veh-price-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rl-veh-price-label {
    font-size: .68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.rl-veh-price-val {
    font-size: 1rem;
    font-weight: 800;
    color: #0c1a35;
}
.rl-veh-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px;
    border: 2px solid #0c1a35;
    border-radius: 8px;
    color: #0c1a35;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.rl-veh-btn:hover {
    background: #0c1a35;
    color: #fff;
}

/* =============================================================
   DIFFERENCE
============================================================= */
.rl-diff {
    padding: 56px 0;
    background: #f4f7fc;
}
.rl-diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 28px;
}
.rl-diff-item {
    text-align: center;
}
.rl-diff-ico {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #0c1a35;
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.rl-diff-item h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #0c1a35;
    margin: 0 0 10px;
}
.rl-diff-item p {
    font-size: .88rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* =============================================================
   REVIEWS
============================================================= */
.rl-reviews {
    padding: 56px 0;
    background: #fff;
}
.rl-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
}
.rl-review {
    background: #f4f7fc;
    border: 1px solid #e4eaf4;
    border-radius: 12px;
    padding: 20px;
}
.rl-review-stars {
    color: #f59e0b;
    font-size: 1rem;
    margin-bottom: 14px;
    letter-spacing: .05em;
}
.rl-review-text {
    font-size: .86rem;
    color: #374151;
    line-height: 1.6;
    margin: 0 0 14px;
    font-style: italic;
}
.rl-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rl-review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0c1a35;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rl-review-author strong {
    display: block;
    font-size: .86rem;
    color: #0f172a;
    font-weight: 700;
}
.rl-review-author span {
    font-size: .76rem;
    color: #94a3b8;
}

/* =============================================================
   BOTTOM CTA
============================================================= */
.rl-cta {
    padding: 56px 0;
    background: #0c1a35;
    text-align: center;
}
.rl-cta-h {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.1;
}
.rl-cta-sub {
    font-size: .98rem;
    color: #8aaede;
    margin: 0 0 34px;
}
.rl-cta-sub a { color: #fff; font-weight: 600; text-decoration: none; }
.rl-cta-btn {
    display: inline-block;
    padding: 16px 44px;
    background: #fff;
    color: #0c1a35;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity .15s;
    letter-spacing: .01em;
}
.rl-cta-btn:hover { opacity: .9; }

/* =============================================================
   RESPONSIVE
============================================================= */

/* — 1100px: 2-column grids ──────────────────────────────── */
@media (max-width: 1100px) {
    .rl-veh-grid { grid-template-columns: repeat(2, 1fr); }
    .rl-reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

/* — Desktop: copy left, card right (card is first in DOM so needs order) ── */
@media (min-width: 921px) {
    .rl-hero-copy { order: -1; } /* pull copy to the left */
    .rl-book-card { order:  0; } /* card stays right */
}

/* — 920px: tablet / stack hero ──────────────────────────── */
@media (max-width: 920px) {
    .rl-hero-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 44px 24px 36px;
    }
    /* Card is first in DOM → naturally appears first. No order needed. */
    .rl-book-card {
        flex: none;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }
    .rl-hero-copy { padding-top: 0; }
}

/* — 700px: large phone ──────────────────────────────────── */
@media (max-width: 700px) {
    /* Tighten hero — card is directly below so verbose copy wastes space */
    .rl-hero-inner { padding: 28px 16px 22px; }
    .rl-h1 { font-size: 2rem; margin-bottom: 16px; }
    .rl-eyebrow { margin-bottom: 12px; }
    .rl-hero-sub,
    .rl-hero-checks,
    .rl-hero-cta { display: none; }

    /* Card — snug */
    .rl-book-card { max-width: 100%; border-radius: 14px; }
    .rl-card-header { padding: 16px 18px 0; }
    .rl-tabs { padding: 12px 18px 0; gap: 4px; }
    .rl-tab { font-size: .76rem; padding: 8px 5px; }
    .rl-form { padding: 14px 18px 18px; gap: 11px; }
    .rl-divider { margin: 2px -18px; }

    /* Touch-friendly inputs (≥ 44px tap target) */
    .rl-input,
    .rl-select { padding: 13px 12px; font-size: .9rem; }

    /* All grids → 1 column */
    .rl-veh-grid,
    .rl-diff-grid,
    .rl-reviews-grid { grid-template-columns: 1fr; }
    .rl-form-row { grid-template-columns: 1fr; }

    /* Section spacing */
    .rl-vehicles, .rl-diff, .rl-reviews, .rl-cta { padding: 36px 0; }
}

/* =============================================================
   DRIVER STRIP
============================================================= */
.rl-driver-strip {
    background: #f0f4ff;
    border-top: 1px solid #dce6f8;
    padding: 22px 0;
}
.rl-driver-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.rl-driver-label {
    font-size: .9rem;
    font-weight: 700;
    color: #0c1a35;
    margin: 0 0 3px;
}
.rl-driver-sub {
    font-size: .82rem;
    color: #64748b;
    margin: 0;
}
.rl-appstore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0c1a35;
    color: #fff;
    border-radius: 10px;
    padding: 10px 18px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .15s;
}
.rl-appstore-btn:hover { background: #1a3060; }
.rl-apple-ico { flex-shrink: 0; }
.rl-appstore-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.rl-appstore-sub {
    font-size: .62rem;
    font-weight: 400;
    letter-spacing: .03em;
    opacity: .85;
}
.rl-appstore-main {
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: .01em;
}
@media (max-width: 600px) {
    .rl-driver-inner { justify-content: center; text-align: center; }
}

/* — 480px: small phone ──────────────────────────────────── */
@media (max-width: 480px) {
    .rl-hero-inner { padding: 20px 14px 18px; }
    .rl-eyebrow { display: none; }
    .rl-h1 { font-size: 1.8rem; }

    .rl-card-header { padding: 14px 16px 0; }
    .rl-card-title { font-size: 1rem; }
    .rl-tabs { padding: 10px 16px 0; gap: 3px; }
    .rl-tab { font-size: .72rem; padding: 7px 4px; }
    .rl-form { padding: 12px 16px 16px; gap: 10px; }
    .rl-divider { margin: 2px -16px; }

    .rl-veh-row { padding: 9px 12px; }
    .rl-submit { font-size: .9rem; }

    .rl-vehicles, .rl-diff, .rl-reviews, .rl-cta { padding: 28px 0; }
    .rl-cta-h { font-size: 1.5rem; }
}
