/* ==========================================================================
   PrimeDrive Rentals - main stylesheet
   Palette: white base, deep navy sections, charcoal text, gold accent
   ========================================================================== */

:root {
    /* Color system */
    --navy-900: #0c1524;
    --navy-800: #101d33;
    --navy-700: #16263f;
    --navy-600: #1f3350;
    --navy-100: #dde5ef;

    --charcoal-900: #191d24;
    --charcoal-700: #33383f;
    --charcoal-500: #5c636d;
    --charcoal-300: #9aa1ab;

    --gold-600: #b8862d;
    --gold-500: #d4a440;
    --gold-400: #e3b95d;
    --gold-100: #f7ecd4;

    --blue-600: #1f5fa8;
    --blue-100: #e2ecf7;

    --success-600: #2e7d4f;
    --success-100: #e2f2e8;
    --warning-600: #a8690f;
    --error-600: #b3372e;
    --error-100: #fbe7e5;

    --white: #ffffff;
    --off-white: #f7f8fa;
    --line: #e5e8ed;

    /* Typography */
    --font-heading: "Playfair Display", Georgia, serif;
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;

    /* Spacing (8px system) */
    --sp-1: 8px;
    --sp-2: 16px;
    --sp-3: 24px;
    --sp-4: 32px;
    --sp-5: 48px;
    --sp-6: 64px;
    --sp-7: 96px;

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(12, 21, 36, 0.08);
    --shadow-md: 0 6px 18px rgba(12, 21, 36, 0.10);
    --shadow-lg: 0 16px 40px rgba(12, 21, 36, 0.16);
    --radius: 10px;
    --radius-lg: 16px;
    --transition: 0.22s ease;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--charcoal-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin: 0 0 var(--sp-2);
    color: var(--navy-900);
    font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 var(--sp-2); }

a { color: var(--blue-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-600); }

ul, ol { padding-left: 1.2rem; }

.icon { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex-shrink: 0; }

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--navy-900); color: var(--white);
    padding: var(--sp-1) var(--sp-2); z-index: 200;
}
.skip-link:focus { left: var(--sp-1); color: var(--white); }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* ---------- Layout ---------- */
.container {
    width: min(1180px, 100% - var(--sp-4));
    margin-inline: auto;
}
.container--narrow { width: min(820px, 100% - var(--sp-4)); }

.section { padding: var(--sp-7) 0; }
.section-light { background: var(--white); }
.section-navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: var(--navy-100); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-head { max-width: 720px; margin: 0 auto var(--sp-5); text-align: center; }
.section-head--light { margin-bottom: var(--sp-5); }
.section-head__kicker {
    text-transform: uppercase; letter-spacing: 0.14em;
    font-size: 0.8rem; font-weight: 700; color: var(--gold-600);
    margin-bottom: var(--sp-1);
}
.section-head--light .section-head__kicker { color: var(--gold-400); }
.section-head__title { margin-bottom: var(--sp-2); }
.section-head__lead { color: var(--charcoal-500); }
.section-head--light .section-head__lead { color: var(--navy-100); }

.section-note { color: var(--charcoal-500); font-size: 0.9rem; margin: var(--sp-3) 0; }
.section-cta { text-align: center; margin-top: var(--sp-5); display: grid; gap: var(--sp-2); justify-items: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 8px;
    font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
    border: 2px solid transparent; cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition),
                background var(--transition), color var(--transition), border-color var(--transition);
    text-decoration: none; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); color: var(--navy-900); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-600); color: var(--white); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,0.65); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--navy-900); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--navy-900); color: var(--navy-100);
    font-size: 0.85rem; padding: 7px 0;
}
.topbar__inner { display: flex; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; }
.topbar a { color: var(--gold-400); font-weight: 600; }
.topbar__inner .icon { color: var(--gold-400); }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(16, 29, 51, 0.97);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 14px 0; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(140deg, var(--gold-500), var(--gold-600));
    color: var(--navy-900);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.brand__name { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--white); line-height: 1.1; }
.brand__tagline { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-400); }
.brand--light .brand__name { color: var(--white); }

.site-nav { display: flex; align-items: center; gap: var(--sp-2); }
.site-nav .nav-link {
    color: rgba(255,255,255,0.85); font-weight: 500; font-size: 0.95rem;
    padding: 8px 12px; border-radius: 6px; transition: color var(--transition), background var(--transition);
}
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--gold-400); }
.site-nav__cta { display: none; }

.site-header__actions { display: flex; align-items: center; gap: var(--sp-1); }
.site-header__actions .btn-outline-light { display: none; }

.nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: transparent; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span {
    width: 24px; height: 2px; background: var(--white);
    border-radius: 2px; transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: min(78vh, 720px);
    display: flex; align-items: center;
    overflow: hidden;
    background: var(--navy-900);
}
.hero__bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(12,21,36,0.92) 8%, rgba(12,21,36,0.72) 48%, rgba(12,21,36,0.30) 100%);
}
.hero__content { position: relative; z-index: 1; padding: var(--sp-7) 0; max-width: 720px; }
.hero__kicker {
    text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700;
    font-size: 0.82rem; color: var(--gold-400); margin-bottom: var(--sp-2);
}
.hero__title { color: var(--white); margin-bottom: var(--sp-2); }
.hero__lead { color: rgba(255,255,255,0.88); font-size: 1.08rem; max-width: 560px; margin-bottom: var(--sp-4); }
.hero__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

.page-hero {
    background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
    padding: var(--sp-6) 0;
    text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: var(--sp-2); }
.page-hero__lead { margin-inline: auto; max-width: 640px; }

/* ---------- Vehicle cards ---------- */
.vehicle-grid {
    display: grid; gap: var(--sp-3);
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.vehicle-card {
    background: var(--white); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    display: flex; flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}
.vehicle-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.vehicle-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.vehicle-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.vehicle-card:hover .vehicle-card__media img { transform: scale(1.05); }
.vehicle-card__badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(12,21,36,0.85); color: var(--gold-400);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 999px;
}
.vehicle-card__body { padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.vehicle-card__name { margin: 0; }
.vehicle-card__desc { color: var(--charcoal-500); font-size: 0.94rem; margin: 0; }
.vehicle-card__specs {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; gap: 6px;
}
.vehicle-card__specs li {
    font-size: 0.76rem; font-weight: 600; color: var(--charcoal-700);
    background: var(--off-white); border: 1px solid var(--line);
    padding: 4px 10px; border-radius: 999px;
}
.vehicle-card__actions {
    margin-top: auto; display: flex; gap: var(--sp-1);
}
.vehicle-card__actions .btn { flex: 1; padding: 11px 14px; font-size: 0.9rem; }

/* ---------- Why choose us ---------- */
.feature-grid {
    display: grid; gap: var(--sp-3);
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.feature {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-lg);
    padding: var(--sp-3);
    transition: background var(--transition), transform var(--transition);
}
.feature:hover { background: rgba(255,255,255,0.09); transform: translateY(-3px); }
.feature__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--gold-500); color: var(--navy-900);
    font-size: 1.4rem; margin-bottom: var(--sp-2);
}
.feature__icon .icon { width: 24px; height: 24px; }
.feature p { color: var(--navy-100); font-size: 0.94rem; margin: 0; }

/* ---------- Booking panel & forms ---------- */
.booking-panel {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    padding: clamp(var(--sp-3), 5vw, var(--sp-5));
    max-width: 900px; margin: 0 auto;
}
.booking-panel__intro { margin-bottom: var(--sp-4); }

.form-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, 1fr); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.9rem; color: var(--charcoal-700); }
.form-field .req { color: var(--error-600); }
.form-field input, .form-field select, .form-field textarea {
    font-family: var(--font-body); font-size: 0.98rem;
    padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
    background: var(--off-white); color: var(--charcoal-900);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; border-color: var(--blue-600); background: var(--white);
    box-shadow: 0 0 0 3px var(--blue-100);
}
.form-field textarea { resize: vertical; }
.field-error { color: var(--error-600); font-size: 0.83rem; margin: 0; font-weight: 500; }
.form-note { color: var(--charcoal-500); font-size: 0.85rem; margin: var(--sp-2) 0 0; text-align: center; }
.booking-form .btn-block { margin-top: var(--sp-2); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success {
    background: var(--success-100); border: 1px solid var(--success-600);
    border-radius: var(--radius); padding: var(--sp-3);
}
.form-success h3 { color: var(--success-600); display: flex; align-items: center; gap: 8px; }
.form-success a { color: var(--success-600); font-weight: 600; }

.form-error-banner {
    background: var(--error-100); border: 1px solid var(--error-600);
    color: var(--error-600); border-radius: var(--radius);
    padding: var(--sp-2) var(--sp-3); font-weight: 500; margin-bottom: var(--sp-3);
}

.booking-aside { text-align: center; margin-top: var(--sp-3); color: var(--charcoal-500); }

/* ---------- Category nav (Available Cars) ---------- */
.category-nav {
    display: flex; flex-wrap: wrap; gap: var(--sp-1);
    justify-content: center; margin-bottom: var(--sp-5);
}
.category-nav__link {
    padding: 9px 18px; border-radius: 999px;
    border: 1.5px solid var(--line); color: var(--charcoal-700);
    font-weight: 600; font-size: 0.9rem;
    transition: all var(--transition);
}
.category-nav__link:hover {
    border-color: var(--navy-800); background: var(--navy-800); color: var(--white);
}
.category-block { margin-bottom: var(--sp-6); }
.category-block__title {
    padding-bottom: var(--sp-1); margin-bottom: var(--sp-3);
    border-bottom: 3px solid var(--gold-500); display: inline-block;
}

/* ---------- Contact ---------- */
.contact-layout {
    display: grid; gap: var(--sp-4);
    grid-template-columns: minmax(280px, 380px) 1fr;
    align-items: start;
}
.contact-layout__info { display: grid; gap: var(--sp-3); }
.contact-card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: var(--sp-3);
    box-shadow: var(--shadow-sm);
}
.contact-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-1); }
.contact-card h3 .icon { color: var(--gold-600); }
.contact-card__link { font-weight: 600; font-size: 1.05rem; }
.contact-card__hint { color: var(--charcoal-500); font-size: 0.88rem; margin: var(--sp-1) 0 0; }
.contact-card--form { box-shadow: var(--shadow-md); }
.contact-card--form h2 { margin-bottom: var(--sp-3); }

/* ---------- About ---------- */
.about-layout {
    display: grid; gap: var(--sp-5);
    grid-template-columns: minmax(280px, 460px) 1fr;
    align-items: start;
}
.about-layout__media img {
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    position: sticky; top: 110px;
}
.about-layout__content h2 { margin-top: var(--sp-4); }
.about-layout__content h2:first-child { margin-top: 0; }
.about-layout__cta { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-4); }

.check-list { list-style: none; padding: 0; display: grid; gap: var(--sp-1); }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--success-600); margin-top: 4px; }

.steps-list { counter-reset: step; list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.steps-list li {
    counter-increment: step; position: relative;
    padding-left: 56px; color: var(--charcoal-700);
}
.steps-list li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--navy-800); color: var(--gold-400);
    font-weight: 700; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
}

/* ---------- CTA strip ---------- */
.cta-strip {
    background: linear-gradient(120deg, var(--gold-600), var(--gold-500));
    padding: var(--sp-5) 0;
}
.cta-strip__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-3); flex-wrap: wrap;
}
.cta-strip h2 { color: var(--navy-900); margin: 0 0 4px; }
.cta-strip p { color: rgba(12,21,36,0.8); margin: 0; }

/* ---------- Legal pages ---------- */
.legal h2 {
    margin-top: var(--sp-5); font-size: 1.35rem;
    padding-bottom: 8px; border-bottom: 2px solid var(--gold-100);
}
.legal__updated {
    background: var(--off-white); border: 1px solid var(--line);
    border-left: 4px solid var(--gold-500);
    border-radius: 8px; padding: var(--sp-2) var(--sp-3);
    color: var(--charcoal-500); font-size: 0.9rem;
}
.legal a { font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--charcoal-900); color: var(--charcoal-300);
    padding: var(--sp-6) 0 var(--sp-3);
}
.site-footer__grid {
    display: grid; gap: var(--sp-4);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding-bottom: var(--sp-4);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer h4 {
    color: var(--white); font-family: var(--font-body);
    font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: var(--sp-2);
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--charcoal-300); }
.site-footer a:hover { color: var(--gold-400); }
.site-footer__blurb { font-size: 0.92rem; margin-top: var(--sp-2); }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.site-footer__contact .icon { color: var(--gold-400); margin-top: 3px; }
.site-footer__bottom {
    display: flex; justify-content: space-between; gap: var(--sp-2);
    flex-wrap: wrap; padding-top: var(--sp-3);
    font-size: 0.83rem;
}
.site-footer__bottom p { margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.reveal--visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover, .vehicle-card:hover, .feature:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 1080px) {
    .site-header__actions .btn-outline-light { display: inline-flex; }
}

@media (max-width: 991px) {
    .section { padding: var(--sp-6) 0; }
    .contact-layout, .about-layout { grid-template-columns: 1fr; }
    .about-layout__media img { position: static; }
    .about-layout__media { order: -1; }

    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--navy-900);
        flex-direction: column; align-items: stretch;
        padding: var(--sp-2) var(--sp-2) var(--sp-3);
        gap: 4px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        box-shadow: var(--shadow-lg);
    }
    .site-nav.open { display: flex; }
    .site-nav .nav-link { padding: 12px 14px; font-size: 1rem; }
    .site-nav__cta { display: flex; gap: var(--sp-1); margin-top: var(--sp-2); }
    .site-nav__cta .btn { flex: 1; }
    .site-header__actions .btn-gold { display: none; }
}

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .hero { min-height: 70vh; }
    .hero__actions .btn { width: 100%; }
    .site-nav__cta { flex-direction: column; }
    .cta-strip__inner { justify-content: center; text-align: center; }
    .site-footer__bottom { justify-content: center; text-align: center; }
    .topbar__inner { justify-content: center; }
    .vehicle-card__actions { flex-direction: column; }
}
