﻿/* ==========================================================================
   VELOIRE — Merged Demo Styles
   ========================================================================== */

/* Root theme (dark by default) -------------------------------------------- */

:root {
    --bg: #0e0c0a;
    --bg-alt: #151111;
    --surface: #1a1816;
    --surface-soft: #211d1a;
    --border-subtle: rgba(255, 255, 255, 0.04);
    --accent: #c9a875;
    --accent-soft: rgba(201, 168, 117, 0.15);
    --accent-strong: rgba(201, 168, 117, 0.35);
    --text: #f0e6d6;
    --muted: #c7b9a3;
    --error: #ff6b6b;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Light theme variant ------------------------------------------------------ */

:root[data-theme="light"] {
    --bg: #f4eee3;
    --bg-alt: #f8f2e7;
    --surface: #ffffff;
    --surface-soft: #f3e6d6;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --accent: #c19a5b;
    --accent-soft: rgba(193, 154, 91, 0.16);
    --accent-strong: rgba(193, 154, 91, 0.35);
    --text: #20120a;
    --muted: #786658;
}

/* Base -------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.page {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header ------------------------------------------------------------------ */

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(14, 12, 10, 0.95), rgba(14, 12, 10, 0.88), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 1.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.logo-gradient {
    background: linear-gradient(to right, #d9c5a0, #f5e7cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 1.75rem;
    font-size: 0.9rem;
}

.nav a {
    color: var(--light-text, var(--text));
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.8rem;
    opacity: 0.85;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.nav a:hover {
    opacity: 1;
}

.nav a:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}
/* Hero -------------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 80vh;              /* stable on GitHub Pages, not tied to header height */
    padding: 5rem 0 4rem;
    overflow: hidden;
    display: flex;
    align-items: center;           /* vertical centering */
}

/* Background video layer (with gradient fallback) */
.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    /* fallback gradient if video fails to load */
    background:
            radial-gradient(circle at 10% 0%, rgba(201, 168, 117, 0.15), transparent 55%),
            radial-gradient(circle at 90% 0%, rgba(201, 168, 117, 0.22), transparent 60%),
            linear-gradient(120deg, #0e0c0a 0, #171311 40%, #0e0c0a 100%);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    filter: saturate(1.05) contrast(1.05);
}

/* Darken + vignette over the video so text stays readable */
.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
            radial-gradient(circle at 0% 0%, rgba(0, 0, 0, 0.55), transparent 55%),
            radial-gradient(circle at 100% 0%, rgba(0, 0, 0, 0.55), transparent 55%),
            linear-gradient(to bottom, rgba(14, 12, 10, 0.75), rgba(14, 12, 10, 0.98));
}

/* Content sits above video + gradient */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content-split {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: center;
}

/* Existing text styles (unchanged) */
.hero-copy {
    max-width: 32rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 0.9rem;
}

h1, h2, h3 {
    font-family: "Playfair Display", "Times New Roman", serif;
    letter-spacing: 0.04em;
    font-weight: 500;
}

h1 {
    font-size: clamp(2.3rem, 4vw, 2.9rem);
    margin: 0 0 1rem;
}

h2.section-title {
    font-size: 1.7rem;
}

h3 {
    font-size: 1.2rem;
    margin: 0 0 0.7rem;
}

.hero-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* You can keep hero-image styles if you ever bring the image back,
   but they're unused with the video hero. */

/* Mobile tweaks ----------------------------------------------------------- */
@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding: 3.5rem 0 3rem;
        align-items: flex-start;
    }

    .hero-content-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.8rem;
    }
}



/* Buttons ----------------------------------------------------------------- */

.btn {
    background: none;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: "Inter", sans-serif;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1a1a;
}

.btn-primary:hover {
    background: #e3cfa4;
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text);
    background: rgba(0, 0, 0, 0.2);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.5);
}

.btn-outline {
    border-color: var(--accent-soft);
    color: var(--accent);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.18);
}

.btn-sm {
    padding: 0.45rem 1.05rem;
    font-size: 0.78rem;
}

.btn-xs {
    padding: 0.25rem 0.7rem;
    font-size: 0.72rem;
}

.btn-full {
    width: 100%;
}

/* Sections ---------------------------------------------------------------- */

.section {
    padding: 3.5rem 0;
    background: var(--bg);
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.2rem;
}

/* Text helpers ------------------------------------------------------------ */

.muted {
    color: var(--muted);
}

.tiny {
    font-size: 0.75rem;
}

.section-text {
    max-width: 700px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.7;
}

/* Cards, grids ------------------------------------------------------------ */

.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.3rem 1.4rem;
    box-shadow: var(--shadow-subtle);
}

.card-soft {
    background: var(--surface-soft);
}

.grid {
    display: grid;
    gap: 1.4rem;
}

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

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-grid {
    gap: 0.8rem;
}

/* Fleet grid -------------------------------------------------------------- */

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.card-fleet {
    padding: 0;
    overflow: hidden;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
}

.card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.card-fleet .card-body {
    padding: 1rem 1.2rem 1.1rem;
}

.card-footer {
    margin-top: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-fleet:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(201, 168, 117, 0.15);
}

/* Tags & pills ------------------------------------------------------------ */

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pill {
    font-size: 0.74rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

/* Lists & links ----------------------------------------------------------- */

.bullet-list {
    padding-left: 1.15rem;
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.bullet-list li {
    margin-bottom: 0.45rem;
}

.step-number {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Forms ------------------------------------------------------------------- */

.form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.86rem;
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

input,
textarea,
select {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 16, 0.85);
    color: var(--text);
    font: inherit;
    padding: 0.55rem 0.7rem;
    outline: none;
}

:root[data-theme="light"] input,
:root[data-theme="light"] textarea,
:root[data-theme="light"] select {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.14);
    color: #20120a;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
}

textarea {
    resize: vertical;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

/* Vehicle page (car.html) ------------------------------------------------- */

.vehicle-hero {
    position: relative;
    padding-top: 3.2rem;
    padding-bottom: 2.4rem;
    overflow: hidden;
    background: var(--bg-alt);
}

.vehicle-media {
    position: absolute;
    inset: 0 0 30%;
    background:
            radial-gradient(circle at 15% 0%, rgba(201, 168, 117, 0.18), transparent 55%),
            radial-gradient(circle at 85% 0%, rgba(201, 168, 117, 0.3), transparent 65%),
            linear-gradient(120deg, #0e0c0a, #151111 40%, #0e0c0a 85%);
    opacity: 0.9;
}

.vehicle-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(14, 12, 10, 0.18), rgba(14, 12, 10, 0.98));
}

.vehicle-image-placeholder {
    position: absolute;
    right: 8%;
    bottom: -1rem;
    width: 260px;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
            linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 24, 0.95)),
            radial-gradient(circle at 20% 0%, rgba(201, 168, 117, 0.22), transparent 65%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0.7rem 0.9rem;
    box-shadow: var(--shadow-soft);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1.4rem;
    font-size: 0.86rem;
    color: var(--muted);
}

.spec-list dt {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.8;
}

.spec-list dd {
    margin: 0.1rem 0 0;
    color: var(--text);
}

/* Footer ------------------------------------------------------------------ */

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.8rem 0 2.1rem;
    background: rgba(14, 12, 10, 0.96);
}

:root[data-theme="light"] .footer {
    background: #f0e6d6;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.footer-newsletter {
    text-align: right;
    font-size: 0.85rem;
}

/* Admin layout (from Demo 3, restyled slightly) --------------------------- */

.page-admin {
    background: var(--bg-alt);
}

.header-admin {
    position: static;
    background: rgba(14, 12, 10, 0.98);
}

.admin-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: calc(100vh - 56px);
}

.admin-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: #07070a;
    padding-top: 1rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.admin-nav-title {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.admin-nav-item {
    text-align: left;
    padding: 0.5rem 1.25rem;
    border-radius: 0;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--muted);
    font-size: 0.86rem;
}

.admin-nav-item.is-active,
.admin-nav-item:hover {
    color: var(--text);
    background: linear-gradient(90deg, rgba(201, 168, 117, 0.16), transparent);
}

.admin-main {
    padding: 1.5rem 2rem 2.5rem;
}

.admin-section {
    display: none;
}

.admin-section.is-active {
    display: block;
}

.admin-metrics {
    margin-top: 1.6rem;
}

.metric-number {
    font-size: 1.7rem;
    margin: 0.15rem 0 0.1rem;
}

/* Admin table ------------------------------------------------------------- */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.admin-table th,
.admin-table td {
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: top;
}

.admin-table th {
    text-align: left;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
}

.status-pending {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.status-approved,
.status-live {
    background: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
}

.status-maintenance {
    background: rgba(241, 196, 15, 0.12);
    color: #f1c40f;
}

/* Testimonials list ------------------------------------------------------- */

.testimonial-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.testimonial-list li {
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

/* Fade-in animation ------------------------------------------------------- */

.fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.card-fleet.fade {
    animation-duration: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-content-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-image {
        max-width: 100%;
        margin-top: 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: left;
    }

    .footer-newsletter {
        text-align: left;
    }

    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-sidebar {
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .admin-nav {
        flex-direction: row;
        padding-bottom: 0.3rem;
        gap: 0.1rem;
    }

    .admin-nav-item,
    .admin-nav-title {
        white-space: nowrap;
    }

    .admin-main {
        padding: 1.25rem 1.5rem 2.3rem;
    }
}
