:root {
    --bg: #07080a;
    --panel: #111419;
    --panel2: #171b22;
    --text: #f2f4f7;
    --muted: #a7adb8;
    --red: #c4161c;
    --red2: #ff3131;
    --line: rgba(255, 255, 255, .1);
    --silver: #d7dce5
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, system-ui, Arial, sans-serif;
    background: radial-gradient(circle at 80% 10%, rgba(196, 22, 28, .18), transparent 35%), linear-gradient(180deg, #06070a, #0b0d10 45%, #07080a);
    color: var(--text)
}

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

img {
    max-width: 100%
}

.container {
    width: min(1180px, 92%);
    margin: auto
}

.topbar {
    background: #090a0d;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted)
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(7, 8, 10, .86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: .3px
}

.brand img {
    width: 54px;
    height: 54px;
    object-fit: contain
}

.links {
    display: flex;
    gap: 22px;
    align-items: center
}

.links a {
    color: #dfe3eb;
    font-weight: 700;
    font-size: 14px
}

.menu {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    color: white;
    border-radius: 10px;
    padding: 8px 11px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 20px;
    font-weight: 900;
    border: 1px solid transparent;
    cursor: pointer
}

.primary {
    background: linear-gradient(135deg, var(--red), #8e0c10);
    box-shadow: 0 12px 35px rgba(196, 22, 28, .35)
}

.secondary {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .04)
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 64px
}

.hero:before {
    content: "";
    position: absolute;
    inset: -40px;
    background: linear-gradient(90deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .45)), url('assets/BG1.jpg') right center/contain no-repeat;
    opacity: .22
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 40px;
    align-items: center
}

.eyebrow {
    color: var(--red2);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px
}

.h1,
h1 {
    font-size: clamp(26px, 6vw, 50px);
    line-height: .95;
    margin: 14px 0
}

.lead {
    font-size: 19px;
    line-height: 1.75;
    color: #d5d9e1;
    max-width: 760px
}

.hero-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .45)
}

.hero-card img {
    border-radius: 24px
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px
}

.stat,
.card {
    background: linear-gradient(145deg, var(--panel), #0b0d11);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px
}

.stat strong {
    display: block;
    font-size: 24px;
    color: var(--silver)
}

.section {
    padding: 76px 0
}

.section h2 {
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.05;
    margin: 8px 0 16px
}

.grid {
    display: grid;
    gap: 20px
}

.services {
    grid-template-columns: repeat(3, 1fr)
}

.card h3 {
    margin-top: 0;
    font-size: 22px
}

.card p,
.muted {
    color: var(--muted);
    line-height: 1.7
}

.band {
    background: linear-gradient(135deg, rgba(196, 22, 28, .12), rgba(255, 255, 255, .035));
    border-block: 1px solid var(--line)
}

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center
}

.ticks {
    display: grid;
    gap: 12px
}

.ticks span {
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .04)
}

.brands {
    grid-template-columns: repeat(4, 1fr)
}

.brandbox {
    text-align: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    font-weight: 900
}

.process {
    grid-template-columns: repeat(6, 1fr)
}

.step {
    position: relative
}

.step b {
    display: flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--red);
    align-items: center;
    justify-content: center;
    margin-bottom: 10px
}

.form {
    background: linear-gradient(145deg, var(--panel), #0d0f14);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 24px
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px
}

input,
select,
textarea {
    width: 100%;
    background: #090b0f;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    color: white;
    padding: 14px;
    font: inherit
}

textarea {
    min-height: 120px;
    resize: vertical
}

.form .btn {
    margin-top: 14px
}

.contact {
    grid-template-columns: .9fr 1.1fr
}

.footer {
    border-top: 1px solid var(--line);
    padding: 30px 0;
    color: var(--muted);
    background: #050608
}

.reveal {
    opacity: 1;
    transform: none
}

.reveal.show {
    opacity: 1;
    transform: none
}

@media(max-width:900px) {
    .menu {
        display: block
    }

    .links {
        display: none;
        position: absolute;
        left: 4%;
        right: 4%;
        top: 82px;
        background: #0b0d10;
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 18px;
        flex-direction: column;
        align-items: flex-start
    }

    .links.open {
        display: flex
    }

    .hero-grid,
    .two,
    .contact {
        grid-template-columns: 1fr
    }

    .services {
        grid-template-columns: 1fr 1fr
    }

    .process,
    .brands {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:600px) {
    .topbar .container {
        flex-direction: column
    }

    .services,
    .form-grid,
    .stats {
        grid-template-columns: 1fr
    }

    .hero {
        padding-top: 54px
    }

    .btn {
        width: 100%;
        margin-bottom: 10px
    }
}

/* Phase 2B backend UI additions */
.narrow {
    max-width: 560px
}

.center {
    justify-content: center;
    margin-bottom: 28px
}

.form-status {
    margin-top: 14px;
    font-weight: 700
}

.form-status.success {
    color: #67e8a5
}

.form-status.error {
    color: #ff6b6b
}

.list-stack {
    display: grid;
    gap: 12px
}

.mini-card {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    display: grid;
    gap: 4px
}

.mini-card span,
.mini-card small {
    color: var(--muted)
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff
}

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


/* Phase 2C customer portal */
.portal-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 86px)
}

.portal-sidebar {
    border-right: 1px solid var(--line);
    background: rgba(5, 6, 8, .78);
    padding: 22px;
    position: sticky;
    top: 82px;
    height: calc(100vh - 82px)
}

.portal-sidebar .brand {
    margin-bottom: 24px
}

.portal-nav {
    display: grid;
    gap: 10px
}

.portal-nav a,
.portal-nav button {
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .035);
    color: #e8ecf3;
    text-align: left;
    font-weight: 800
}

.portal-nav a.active {
    background: linear-gradient(135deg, rgba(196, 22, 28, .55), rgba(255, 255, 255, .06));
    border-color: rgba(255, 49, 49, .45)
}

.portal-main {
    padding: 36px
}

.portal-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.metric strong {
    font-size: 28px;
    display: block
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: rgba(255, 255, 255, .025)
}

.portal-table th,
.portal-table td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid var(--line)
}

.portal-table th {
    color: var(--silver);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px
}

.badge {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: 5px 10px;
    color: #dfe3eb;
    background: rgba(255, 255, 255, .06);
    font-size: 12px;
    font-weight: 900
}

.portal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.hide {
    display: none !important
}

@media(max-width:900px) {
    .portal-shell {
        grid-template-columns: 1fr
    }

    .portal-sidebar {
        position: relative;
        top: auto;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

    .portal-main {
        padding: 24px 4%
    }

    .metric-grid {
        grid-template-columns: 1fr 1fr
    }

    .portal-top {
        align-items: flex-start;
        flex-direction: column
    }
}

@media(max-width:600px) {
    .metric-grid {
        grid-template-columns: 1fr
    }
}

/* Phase 2D Admin Panel */
.portal {
    display: flex;
    min-height: 100vh;
    background: #08090b;
    color: #f5f5f5
}

.portal-nav {
    width: 260px;
    background: #111319;
    border-right: 1px solid rgba(255, 255, 255, .08);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 0;
    height: 100vh
}

.portal-nav img {
    width: 130px;
    border-radius: 16px;
    margin-bottom: 18px
}

.portal-nav a,
.portal-nav button {
    color: #ddd;
    text-decoration: none;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 12px;
    text-align: left
}

.portal-nav a.active,
.portal-nav a:hover,
.portal-nav button:hover {
    border-color: #d71920;
    color: #fff;
    background: rgba(215, 25, 32, .12)
}

.portal-main {
    flex: 1;
    padding: 34px;
    overflow: auto
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
    margin: 20px 0
}

.stat-card {
    background: linear-gradient(145deg, #171a21, #0d0f13);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 20px;
    color: #fff;
    text-decoration: none
}

.stat-card span {
    display: block;
    font-size: 34px;
    color: #d71920;
    margin-top: 10px
}

.table-card {
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 16px;
    margin: 16px 0;
    overflow: auto
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    text-align: left;
    vertical-align: top
}

.admin-table th {
    color: #ccc;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em
}

.toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px 0 18px
}

.toolbar select,
.toolbar button,
.admin-table select,
.admin-table button {
    background: #101218;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    padding: 10px
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 18px
}

.form-grid input,
.form-grid textarea,
.form-grid select {
    background: #101218;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    padding: 12px
}

.form-grid textarea {
    grid-column: 1/-1;
    min-height: 90px
}

.form-grid button {
    background: #d71920;
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700
}

@media(max-width:850px) {
    .portal {
        display: block
    }

    .portal-nav {
        position: relative;
        width: auto;
        height: auto
    }

    .stats-grid {
        grid-template-columns: 1fr
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .portal-main {
        padding: 20px
    }
}

/* Vehicle dropdown update */
.field {
    display: grid;
    gap: 7px;
    color: var(--silver);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em
}

.field>span {
    padding-left: 2px
}

.field textarea {
    margin-top: 0
}

.form-grid .field {
    min-width: 0
}

input:disabled {
    opacity: .58;
    cursor: not-allowed
}

.btn:disabled {
    opacity: .65;
    cursor: wait
}

/* Floating quick-contact buttons */
.floating-contact {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px
}

.floating-contact__button {
    position: relative;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .38);
    border: 1px solid rgba(255, 255, 255, .18);
    transition: transform .2s ease, box-shadow .2s ease;
    isolation: isolate
}

.floating-contact__button svg {
    width: 27px;
    height: 27px;
    display: block
}

.floating-contact__button::before {
    content: attr(data-label);
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translate(10px, -50%);
    padding: 8px 11px;
    border-radius: 9px;
    background: rgba(8, 10, 14, .94);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .3)
}

.floating-contact__button:hover,
.floating-contact__button:focus-visible {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .5);
    outline: none
}

.floating-contact__button:hover::before,
.floating-contact__button:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%)
}

.floating-contact__button--whatsapp {
    background: #25D366
}

.floating-contact__button--call {
    background: #1677ff
}

.floating-contact__button--email {
    background: #d83b35
}

.floating-contact__button--map {
    background: #353a43
}

@media(max-width:600px) {
    .floating-contact {
        right: 12px;
        bottom: 12px;
        gap: 9px
    }

    .floating-contact__button {
        width: 49px;
        height: 49px
    }

    .floating-contact__button svg {
        width: 24px;
        height: 24px
    }

    .floating-contact__button::before {
        display: none
    }
}

/* Admin website settings */
.settings-form {
    display: grid;
    gap: 22px;
    max-width: 1000px
}

.settings-section {
    background: var(--panel, #111820);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 22px
}

.settings-section h2 {
    margin-top: 0;
    margin-bottom: 8px
}

.settings-section .form-grid {
    margin-top: 16px
}

.settings-wide {
    grid-column: 1/-1
}

@media (max-width:760px) {
    .settings-wide {
        grid-column: auto
    }
}