:root {
    --ink: #101722;
    --muted: #5d6977;
    --line: #d7dde5;
    --panel: #f5f7fa;
    --white: #ffffff;
    --navy: #111a2a;
    --navy-soft: #1d2a3f;
    --steel: #c4ccd6;
    --silver: #eef2f6;
    --blue: #2f6f9f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 1px solid var(--steel);
    border-radius: 50%;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

nav {
    display: flex;
    gap: 18px;
    color: var(--muted);
    font-weight: 700;
}

nav a {
    text-decoration: none;
}

.messages {
    padding: 16px clamp(18px, 4vw, 56px) 0;
}

.message {
    margin: 0;
    padding: 12px 14px;
    background: #eaf5ef;
    border: 1px solid #b8dcc8;
    border-radius: 6px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: stretch;
    padding: clamp(42px, 8vw, 92px) clamp(18px, 4vw, 56px);
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(17, 26, 42, 0.96), rgba(29, 42, 63, 0.9)),
        radial-gradient(circle at top right, rgba(196, 204, 214, 0.32), transparent 34%);
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 16px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1;
}

h2 {
    font-size: 30px;
    line-height: 1.15;
}

.lead {
    max-width: 680px;
    color: #dce4ec;
    font-size: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--blue);
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    color: var(--white);
    background: var(--blue);
}

.button.secondary {
    color: var(--white);
    background: transparent;
    border-color: var(--steel);
}

.brand-panel {
    align-self: end;
    padding: 22px;
    color: var(--silver);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

.brand-panel img {
    display: block;
    width: min(100%, 260px);
    margin: 0 auto 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
}

.brand-panel p {
    margin-bottom: 0;
    color: #dce4ec;
}

.service-area-band {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 30px clamp(18px, 4vw, 56px);
    color: var(--white);
    background: var(--navy);
}

.service-area-band h2 {
    margin-bottom: 0;
}

.service-area-band ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-area-band li {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
}

.section {
    padding: 52px clamp(18px, 4vw, 56px);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.section-heading p {
    color: var(--muted);
}

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

.service-grid article {
    min-height: 190px;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.booking-section {
    background: var(--silver);
    border-top: 1px solid var(--line);
}

.booking-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 980px;
}

.booking-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 700;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #b9c5cf;
    border-radius: 6px;
    font: inherit;
}

.booking-form label:has(textarea),
.booking-form button {
    grid-column: 1 / -1;
}

.field-error {
    color: #a83232;
    font-size: 13px;
}

.success-panel {
    max-width: 720px;
    margin: 80px auto;
    padding: 0 20px;
}

@media (max-width: 900px) {
    .hero,
    .service-grid,
    .booking-form,
    .service-area-band,
    .service-area-band ul {
        grid-template-columns: 1fr;
    }

    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    nav {
        width: 100%;
        justify-content: space-between;
    }

    .brand small {
        display: none;
    }
}

.owner-body {
    min-height: 100vh;
    background: var(--silver);
}

.owner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px clamp(14px, 4vw, 36px);
    color: var(--white);
    background: var(--navy);
}

.owner-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
}

.owner-brand img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.owner-brand small {
    display: block;
    color: var(--steel);
    font-size: 12px;
}

.owner-admin-link {
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
}

.owner-tabs {
    position: sticky;
    top: 0;
    z-index: 9;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1px;
    background: #cbd3dd;
}

.owner-tabs a {
    min-height: 46px;
    display: grid;
    place-items: center;
    color: var(--navy);
    background: var(--white);
    font-weight: 800;
    text-decoration: none;
}

.owner-messages,
.owner-main {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 16px;
}

.owner-page-heading {
    padding: 24px 0 18px;
}

.owner-page-heading.compact {
    padding-top: 12px;
}

.owner-page-heading h1 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 34px;
    line-height: 1.05;
}

.owner-page-heading p:not(.eyebrow) {
    color: var(--muted);
}

.owner-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.owner-metrics a,
.owner-metrics div {
    display: grid;
    gap: 4px;
    min-height: 92px;
    padding: 14px;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
}

.owner-metrics strong {
    font-size: 30px;
    line-height: 1;
}

.owner-metrics span {
    color: var(--muted);
    font-weight: 800;
}

.owner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.owner-actions form {
    margin: 0;
}

.button.secondary.dark {
    color: var(--navy);
    background: var(--white);
    border-color: var(--line);
}

.owner-section {
    margin: 18px 0;
}

.owner-section h2,
.owner-section-heading h2 {
    margin-bottom: 0;
    color: var(--navy);
    font-size: 22px;
}

.owner-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.owner-section-heading a {
    color: var(--blue);
    font-weight: 800;
}

.owner-list {
    display: grid;
    gap: 10px;
}

.owner-list-item {
    display: grid;
    gap: 4px;
    padding: 14px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
}

.owner-list-item strong {
    color: var(--navy);
}

.owner-list-item span {
    color: #334150;
}

.owner-list-item small {
    color: var(--muted);
    font-weight: 700;
}

.owner-list-item.static {
    text-decoration: none;
}

.inline-actions,
.confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.vin-scan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vin-scanner {
    display: grid;
    gap: 8px;
    padding: 12px;
    background: #101722;
    border: 1px solid #2a3748;
    border-radius: 8px;
}

.vin-scanner[hidden] {
    display: none;
}

.vin-scanner video {
    width: 100%;
    max-height: 360px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000000;
    border-radius: 6px;
}

.vin-scanner span {
    margin: 0;
    color: var(--white);
    font-weight: 800;
}

.text-action {
    color: var(--blue);
    font-weight: 800;
}

.text-action.danger {
    color: #a83232;
}

.button.danger {
    color: var(--white);
    background: #a83232;
    border-color: #a83232;
}

.compact-button {
    min-height: 38px;
    padding: 8px 12px;
}

.empty-state,
.note-panel {
    padding: 16px;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.note-panel h2 {
    color: var(--navy);
    font-size: 22px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.detail-grid div {
    display: grid;
    gap: 4px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.detail-grid strong {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.detail-grid a {
    color: var(--blue);
    font-weight: 800;
}

.filter-row,
.search-row,
.owner-form {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.filter-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.search-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
}

.search-row.customer-filter-row {
    grid-template-columns: minmax(220px, 1fr) 190px auto auto;
}

.owner-form {
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.owner-form.compact-form {
    max-width: 560px;
}

.owner-form.inline-form {
    margin-top: 14px;
}

.pending-panel {
    margin: 12px 0;
    padding: 12px;
    color: var(--navy);
    background: #fff8e3;
    border: 1px solid #e5cf78;
    border-radius: 8px;
}

.pending-panel p {
    margin-bottom: 0;
}

.quick-add-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.quick-add-grid form {
    margin: 0;
}

.quick-add-button {
    width: 100%;
    min-height: 52px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.quick-add-button span {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 520px) {
    .quick-add-grid {
        grid-template-columns: 1fr;
    }
}

.filter-row label,
.search-row label,
.owner-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 800;
}

.filter-row input,
.filter-row select,
.search-row input,
.search-row select,
.owner-form input,
.owner-form select,
.owner-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #b9c5cf;
    border-radius: 6px;
    font: inherit;
}

@media (max-width: 720px) {
    .owner-metrics,
    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-row,
    .filter-row {
        grid-template-columns: 1fr;
    }

    .search-row.customer-filter-row {
        grid-template-columns: 1fr;
    }

    .search-row .button,
    .filter-row .button,
    .owner-actions .button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .owner-main,
    .owner-messages {
        padding: 12px;
    }

    .owner-metrics,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .owner-brand small {
        display: none;
    }

    .owner-tabs a {
        font-size: 13px;
    }
}
