/* FleetWise VB website - the modern standard (MasterForms/Modern.Master).
   Plain CSS, no framework, so the markup and styles carry over unchanged if the site leaves Web Forms.
   Every colour, size and spacing is a token below; pages use the classes, never inline styles.
   Mobile first: base rules are the phone layout, the media queries widen it. */

:root {
    /* Brand = the web app's own palette (MudBlazor defaults, FleetWiseVB_Web AppTheme.cs): indigo #594AE2 for
       the app bar and buttons, Roboto, #424242 text, light-grey panels. Keep the two in step. */
    --fw-primary: #594ae2;
    --fw-primary-hover: #4636d4;
    --fw-primary-soft: #efedfc;
    --fw-primary-border: #d2cdf7;
    --fw-primary-glow: rgba(140, 128, 255, .55);
    --fw-primary-deep: #3b2db8;          /* bottom of the indigo bands */
    --fw-footer: #231a6e;                /* deepest indigo, for the footer */
    --fw-navy: #2b2170;                  /* heading colour on light backgrounds */
    --fw-accent: #ffffff;                /* the main CTA on indigo: a white button, indigo text */
    --fw-accent-hover: #efedfc;
    --fw-accent-text: #594ae2;

    --fw-text: #424242;
    --fw-text-muted: #666666;
    --fw-text-on-dark: #ecebfb;
    --fw-text-on-dark-muted: #c9c4f5;
    --fw-text-on-dark-strong: #ffffff;
    --fw-bg: #ffffff;
    --fw-bg-alt: #f5f5f5;
    --fw-border: #e0e0e0;
    --fw-glass: rgba(255, 255, 255, .96);
    --fw-line-on-dark: rgba(255, 255, 255, .14);
    --fw-outline-on-dark: rgba(255, 255, 255, .6);
    --fw-wash-on-dark: rgba(255, 255, 255, .1);
    --fw-browser-bar: #eeeeee;
    --fw-dot-red: #f87171;
    --fw-dot-amber: #fbbf24;
    --fw-dot-green: #34d399;
    --fw-error: #d32f2f;                 /* MudBlazor's error red */
    --fw-error-soft: #fdecea;
    --fw-input-border: #bdbdbd;

    --fw-font: "Roboto", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
    --fw-size-body: 1.0625rem;
    --fw-size-small: 0.9375rem;
    --fw-size-h1: clamp(2.1rem, 5vw, 3.4rem);
    --fw-size-h2: clamp(1.6rem, 3.2vw, 2.25rem);
    --fw-size-h3: 1.2rem;
    --fw-size-lead: clamp(1.1rem, 1.8vw, 1.3rem);

    --fw-gutter: 16px;
    --fw-container: 1180px;
    --fw-section-pad: clamp(3rem, 7vw, 5.5rem);
    --fw-gap: 1.5rem;
    --fw-radius: 10px;
    --fw-radius-small: 6px;
    --fw-radius-button: 6px;             /* squarer, like the app's buttons */
    --fw-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 20px rgba(43, 33, 112, .08);
    --fw-shadow-big: 0 24px 60px rgba(20, 12, 80, .35);
    --fw-header-height: 68px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--fw-font);
    font-size: var(--fw-size-body);
    line-height: 1.6;
    color: var(--fw-text);
    background: var(--fw-bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fw-primary); }
a:hover { color: var(--fw-primary-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--fw-navy); letter-spacing: -0.015em; }
h1 { font-size: var(--fw-size-h1); font-weight: 800; }
h2 { font-size: var(--fw-size-h2); font-weight: 750; }
h3 { font-size: var(--fw-size-h3); font-weight: 700; }
p { margin: 0 0 1em; }
.fw-form { margin: 0; }

.container { width: 100%; max-width: var(--fw-container); margin: 0 auto; padding: 0 var(--fw-gutter); }
.section { padding: var(--fw-section-pad) 0; }
.section-alt { background: var(--fw-bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--fw-text-muted); font-size: var(--fw-size-lead); }
.eyebrow {
    display: inline-block; margin-bottom: .75rem; font-size: var(--fw-size-small); font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--fw-primary);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.4rem; border-radius: var(--fw-radius-button); border: 2px solid transparent;
    font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--fw-primary); color: var(--fw-text-on-dark-strong); }
.btn-primary:hover { background: var(--fw-primary-hover); color: var(--fw-text-on-dark-strong); }
.btn-accent { background: var(--fw-accent); color: var(--fw-accent-text); }
.btn-accent:hover { background: var(--fw-accent-hover); color: var(--fw-accent-text); }
.btn-outline { border-color: currentColor; color: var(--fw-primary); background: transparent; }
.btn-outline-light { border-color: var(--fw-outline-on-dark); color: var(--fw-text-on-dark-strong); background: transparent; }
.btn-outline-light:hover { border-color: var(--fw-text-on-dark-strong); color: var(--fw-text-on-dark-strong); background: var(--fw-wash-on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---- Header ---- */
.site-header {
    position: sticky; top: 0; z-index: 50; background: var(--fw-glass);
    backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--fw-border);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    min-height: var(--fw-header-height);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--fw-navy); }
.brand img { width: 36px; height: 36px; border-radius: var(--fw-radius-small); }
.brand-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-name span { color: var(--fw-primary); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
    display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer;
}
.nav-toggle-label span { width: 24px; height: 2px; background: var(--fw-navy); border-radius: 2px; }
.site-nav { display: none; width: 100%; padding: .5rem 0 1rem; }
.nav-toggle:checked ~ .site-nav { display: block; }
.site-nav a {
    display: block; padding: .6rem 0; color: var(--fw-text); text-decoration: none; font-weight: 600;
}
.site-nav a:hover { color: var(--fw-primary); }
.site-nav .btn { margin-top: .5rem; color: var(--fw-text-on-dark-strong); }

/* ---- Hero ---- */
.hero {
    position: relative; overflow: hidden; color: var(--fw-text-on-dark);
    background:
        radial-gradient(1100px 500px at 85% -10%, var(--fw-primary-glow), transparent 60%),
        linear-gradient(160deg, var(--fw-primary) 0%, var(--fw-primary-deep) 100%);
    padding: clamp(3rem, 8vw, 6rem) 0;
}
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 { color: var(--fw-text-on-dark-strong); }
.hero h1 em { font-style: normal; color: var(--fw-text-on-dark-muted); }
.hero .lead { font-size: var(--fw-size-lead); color: var(--fw-text-on-dark); max-width: 36rem; }
.hero .eyebrow { color: var(--fw-text-on-dark-muted); }
/* An inner page's banner: one centred column, shorter than the home page's. */
.hero-page { padding: clamp(2.5rem, 6vw, 4.5rem) 0; text-align: center; }
.hero-page .lead { margin-left: auto; margin-right: auto; max-width: 46rem; }
.hero-page .btn-row { justify-content: center; }
.hero-note { margin-top: 1rem; font-size: var(--fw-size-small); color: var(--fw-text-on-dark-muted); }

/* A screenshot in a browser window. */
.browser {
    border-radius: var(--fw-radius); overflow: hidden; background: var(--fw-bg);
    box-shadow: var(--fw-shadow-big); border: 1px solid var(--fw-line-on-dark);
}
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--fw-browser-bar); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--fw-border); }
.browser-bar span:nth-child(1) { background: var(--fw-dot-red); }
.browser-bar span:nth-child(2) { background: var(--fw-dot-amber); }
.browser-bar span:nth-child(3) { background: var(--fw-dot-green); }
.section .browser { border-color: var(--fw-border); box-shadow: var(--fw-shadow); }

/* ---- Fact strip ---- */
.facts { background: var(--fw-bg); border-bottom: 1px solid var(--fw-border); }
.facts ul {
    list-style: none; margin: 0; padding: 1.25rem 0; display: grid; gap: .75rem 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.facts li { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--fw-navy); }
.facts li::before {
    content: "\2713"; display: inline-grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem;
    border-radius: 50%; background: var(--fw-primary-soft); color: var(--fw-primary); font-size: .85rem;
}

/* ---- Cards ---- */
.card-grid { display: grid; gap: var(--fw-gap); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
    background: var(--fw-bg); border: 1px solid var(--fw-border); border-radius: var(--fw-radius);
    padding: 1.6rem; box-shadow: var(--fw-shadow);
}
.card p { color: var(--fw-text-muted); margin: 0; }
.card-icon {
    display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1rem;
    border-radius: var(--fw-radius-small); background: var(--fw-primary-soft); color: var(--fw-primary);
    font-size: 1.35rem;
}
.card-icon svg { width: 1.4rem; height: 1.4rem; }
.card-link { display: inline-block; margin-top: 1rem; font-weight: 700; text-decoration: none; }
.card-link::after { content: " \2192"; }
.card-small { padding: 1.3rem; box-shadow: none; }
.card-small h3 { font-size: 1.1rem; }
.card-tag {
    display: inline-block; margin-bottom: .5rem; padding: .15rem .6rem; border-radius: 999px;
    background: var(--fw-bg-alt); color: var(--fw-text-muted); font-size: .8rem; font-weight: 700;
}

/* Modules: a compact two-column list. */
.module-grid { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.module { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid var(--fw-border); }
.module strong { display: block; color: var(--fw-navy); font-size: 1.05rem; }
.module span { color: var(--fw-text-muted); }
.module .card-icon { margin: 0; flex: none; }

/* ---- Showcase rows: screenshot beside text, alternating ---- */
.showcase { display: grid; gap: 4rem; }
.showcase-row { display: grid; gap: 2rem; align-items: center; }
.showcase-row ul { padding-left: 1.2rem; color: var(--fw-text-muted); }
.showcase-row li { margin-bottom: .35rem; }

/* ---- Desktop-customer callout ---- */
.callout {
    display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: var(--fw-radius); background: var(--fw-primary-soft); border: 1px solid var(--fw-primary-border);
}
.callout h2 { margin-bottom: .35em; }
.callout p { margin: 0; color: var(--fw-text); }

/* ---- Closing call to action ---- */
.cta-band {
    color: var(--fw-text-on-dark); text-align: center;
    background:
        radial-gradient(700px 300px at 50% 0%, var(--fw-primary-glow), transparent 70%),
        linear-gradient(160deg, var(--fw-primary) 0%, var(--fw-primary-deep) 100%);
}
.cta-band h2 { color: var(--fw-text-on-dark-strong); }
.cta-band p { max-width: 640px; margin: 0 auto 2rem; font-size: var(--fw-size-lead); }
.cta-band .btn-row { justify-content: center; }
.cta-phone { margin-top: 1.5rem; font-size: var(--fw-size-small); color: var(--fw-text-on-dark-muted); }
.cta-phone a { color: var(--fw-text-on-dark-strong); font-weight: 700; text-decoration: none; }

/* ---- Card variants ---- */
.card-featured { border: 2px solid var(--fw-primary); }
.card-tag-new { background: var(--fw-primary); color: var(--fw-text-on-dark-strong); }
.card-actions { margin-top: 1.25rem; }

/* Label + value rows (contact details, support lines). */
.contact-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.contact-list li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .75rem; overflow-wrap: anywhere; padding: .55rem 0; border-top: 1px solid var(--fw-border); }
.contact-list li:first-child { border-top: none; }
.contact-list span { font-weight: 600; color: var(--fw-navy); font-size: var(--fw-size-small); }

/* Company history. */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 780px; border-left: 3px solid var(--fw-primary-border); }
.timeline li { position: relative; display: grid; gap: .2rem; padding: 0 0 1.4rem 1.6rem; }
.timeline li::before {
    content: ""; position: absolute; left: -9px; top: .35rem; width: 15px; height: 15px; border-radius: 50%;
    background: var(--fw-bg); border: 3px solid var(--fw-primary);
}
.timeline strong { color: var(--fw-primary); font-size: 1.05rem; }
.timeline span { color: var(--fw-text-muted); }
.timeline-now::before { background: var(--fw-primary) !important; }
.timeline-now span { color: var(--fw-text); font-weight: 600; }

/* ---- Forms (lead / demo sign-up) ---- */
.btn-block { display: flex; width: 100%; cursor: pointer; }
.form-layout { display: grid; gap: 2.5rem; align-items: start; }
.form-card {
    background: var(--fw-bg); border: 1px solid var(--fw-border); border-radius: var(--fw-radius);
    padding: clamp(1.4rem, 4vw, 2rem); box-shadow: var(--fw-shadow);
}
.form-row { display: grid; gap: 0 1rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: var(--fw-size-small); color: var(--fw-navy); }
.form-input {
    width: 100%; padding: .7rem .85rem; font: inherit; color: var(--fw-text); background: var(--fw-bg);
    border: 1px solid var(--fw-input-border); border-radius: var(--fw-radius-small);
}
.form-input:focus { outline: 2px solid var(--fw-primary); outline-offset: 0; border-color: var(--fw-primary); }
/* Validators write color:Red inline; the token wins. */
.form-error { display: block; margin-top: .3rem; font-size: var(--fw-size-small); color: var(--fw-error) !important; }
.form-alert {
    display: block; margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--fw-radius-small);
    background: var(--fw-error-soft); color: var(--fw-error); font-weight: 600;
}
.form-note { margin-top: 1rem; font-size: var(--fw-size-small); color: var(--fw-text-muted); }
.tick-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.tick-list li { display: flex; gap: .6rem; margin-bottom: .6rem; }
.tick-list li::before {
    content: "\2713"; display: inline-grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem;
    border-radius: 50%; background: var(--fw-primary-soft); color: var(--fw-primary); font-size: .8rem; margin-top: .1rem;
}

/* ---- Footer ---- */
.site-footer { background: var(--fw-footer); color: var(--fw-text-on-dark-muted); font-size: var(--fw-size-small); padding: 3rem 0 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h3 { color: var(--fw-text-on-dark-strong); font-size: 1rem; margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: var(--fw-text-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--fw-text-on-dark-strong); }
.footer-bottom {
    margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--fw-line-on-dark);
    display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}

/* ---- Wider screens ---- */
@media (min-width: 900px) {
    .nav-toggle-label { display: none; }
    .site-header .container { flex-wrap: nowrap; }
    .site-nav { display: flex !important; align-items: center; gap: 1.6rem; width: auto; padding: 0; }
    .site-nav a { padding: 0; font-size: .975rem; }
    .site-nav .btn { margin: 0; padding: .6rem 1.15rem; }
    .hero-grid { grid-template-columns: 1fr 1.3fr; }
    .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .showcase-row { grid-template-columns: 1fr 1.25fr; gap: 3.5rem; }
    .showcase-row.reverse > :first-child { order: 2; }
    .callout { grid-template-columns: 1fr auto; }
    .form-layout { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
    .form-row { grid-template-columns: 1fr 1fr; }
}
