/* Site styles layered on Bootstrap 5.3. Brand colours are set once here. */
:root {
    --brand: #0f2a44;          /* deep navy */
    --brand-rgb: 15, 42, 68;
    --accent: #f5a623;         /* workshop amber */
    --accent-rgb: 245, 166, 35;
    --ink: #1c2530;
    --bs-primary: var(--brand);
    --bs-primary-rgb: var(--brand-rgb);
    --bs-link-color: #1d5c96;
    --bs-link-hover-color: var(--brand);
    --bs-body-color: var(--ink);
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body { -webkit-font-smoothing: antialiased; }

.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: #0a1e31;
    --bs-btn-hover-border-color: #0a1e31;
    --bs-btn-active-bg: #0a1e31;
}
.btn-accent {
    --bs-btn-color: #1c1300;
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-color: #1c1300;
    --bs-btn-hover-bg: #e29512;
    --bs-btn-hover-border-color: #e29512;
    --bs-btn-active-bg: #d08a10;
    --bs-btn-active-color: #1c1300;
    font-weight: 600;
}
.text-accent { color: var(--accent) !important; }
.bg-brand { background-color: var(--brand) !important; }

/* --- Public site ------------------------------------------------------ */
.topbar { background: #0a1e31; font-size: .85rem; }
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: #fff; }

.site-nav .navbar-brand { font-weight: 800; letter-spacing: -.02em; }
.site-nav .navbar-brand .bi { color: var(--accent); }
.site-nav .nav-link { font-weight: 500; }
.site-nav .nav-link.active { color: var(--brand) !important; box-shadow: inset 0 -3px 0 var(--accent); }

.hero {
    position: relative;
    color: #fff;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(var(--accent-rgb), .28), transparent 60%),
        linear-gradient(135deg, #0f2a44 0%, #143a5e 55%, #0f2a44 100%);
    overflow: hidden;
}
.hero::after { /* subtle road-marking stripes */
    content: "";
    position: absolute; inset: auto -10% 0 -10%; height: 10px;
    background: repeating-linear-gradient(90deg, var(--accent) 0 60px, transparent 60px 100px);
    opacity: .9;
}
.hero h1 { font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.hero .lead { color: rgba(255,255,255,.82); }

/* UK number-plate style input and badge */
.plate {
    font-family: "UKNumberPlate", "Charles Wright", "Arial Narrow", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: #ffd500;
    color: #111;
    border: 2px solid #111;
    border-radius: .35rem;
}
input.plate { font-size: 1.6rem; text-align: center; }
.plate-badge {
    display: inline-block; padding: .1rem .5rem; font-size: .95rem;
    white-space: nowrap;
}
.plate-badge.plate-front { background: #fff; }

.hero-card { background: #fff; color: var(--ink); border-radius: 1rem; box-shadow: 0 1.5rem 3rem rgba(0,0,0,.25); }

.section { padding: 5rem 0; }
.section-title { font-weight: 800; letter-spacing: -.02em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: #1d5c96; }

.service-card { border: 0; border-radius: 1rem; transition: transform .15s ease, box-shadow .15s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 1rem 2rem rgba(var(--brand-rgb), .12) !important; }
.service-icon {
    width: 3.25rem; height: 3.25rem; border-radius: .9rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--accent-rgb), .15); color: #b06f00; font-size: 1.5rem;
}

.cta-band { background: var(--brand); color: #fff; border-radius: 1.25rem; }

.site-footer { background: #0a1e31; color: rgba(255,255,255,.75); }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h6 { color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }

/* --- Portal areas (admin + customer) ---------------------------------- */
.portal-body { background: #f3f5f8; min-height: 100vh; }
.admin-nav { background: var(--brand); }
.admin-nav .navbar-brand .bi { color: var(--accent); }
.stat-card { border: 0; border-radius: .9rem; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; line-height: 1; }
.card { border-radius: .75rem; }
.table > :not(caption) > * > * { vertical-align: middle; }
.auth-wrap { min-height: calc(100vh - 4rem); display: flex; align-items: center; }

.status-overdue { --bs-badge-color: #fff; background: #c0392b !important; }
.status-due-soon { --bs-badge-color: #1c1300; background: var(--accent) !important; color: #1c1300 !important; }
.status-ok { background: #1e8449 !important; }
