/* Fleetnexus Supply - deep navy / muted teal / light grey */
:root {
  --navy-900: #0b2545;
  --navy-800: #13315c;
  --navy-700: #1d4273;
  --teal-700: #1f6f75;
  --teal-600: #2a7f86;
  --teal-400: #4fb3a8;
  --teal-050: #e6f1f0;
  --grey-900: #1c2733;
  --grey-700: #44515f;
  --grey-500: #6b7785;
  --grey-300: #cfd6dd;
  --grey-200: #e3e8ed;
  --grey-100: #f4f6f8;
  --white: #ffffff;
  --red-700: #a12b2b;
  --red-050: #fbecec;
  --amber-800: #7a5200;
  --amber-050: #fff6e0;
  --green-700: #1e6b45;
  --green-050: #e8f5ee;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(11, 37, 69, 0.08), 0 2px 8px rgba(11, 37, 69, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--grey-900);
  background: var(--white);
}
img, svg { max-width: 100%; }
a { color: var(--teal-700); }
a:hover { color: var(--navy-800); }
h1, h2, h3 { color: var(--navy-900); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: 1.9rem; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.muted { color: var(--grey-500); }
.small { font-size: 0.86rem; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.center { text-align: center; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
[hidden] { display: none !important; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--grey-200); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); font-size: 1.15rem; white-space: nowrap; }
.brand strong { font-weight: 700; }
.site-nav { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 16px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; }
.site-nav li a { display: block; padding: 8px 10px; color: var(--grey-700); font-weight: 500; font-size: 0.95rem; border-radius: var(--radius); }
.site-nav li a:hover { background: var(--grey-100); color: var(--navy-900); }
.site-nav li a[aria-current="page"] { color: var(--navy-900); box-shadow: inset 0 -2px 0 var(--teal-600); border-radius: 0; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.cart-link { color: var(--navy-900); font-weight: 600; padding: 8px 6px; white-space: nowrap; }
.cart-count { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 11px; background: var(--teal-600); color: var(--white); font-size: 0.78rem; text-align: center; }
.nav-toggle { display: none; margin-left: auto; padding: 8px 14px; border: 1px solid var(--grey-300); border-radius: var(--radius); background: var(--white); font: inherit; font-weight: 600; color: var(--navy-900); cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius); font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; line-height: 1.25; }
.btn-sm { padding: 7px 12px; font-size: 0.88rem; }
.btn-lg { padding: 13px 24px; font-size: 1.02rem; }
.btn-block { display: block; width: 100%; }
.btn-primary { background: var(--navy-800); color: var(--white); }
.btn-primary:hover { background: var(--navy-900); color: var(--white); }
.btn-teal { background: var(--teal-600); color: var(--white); }
.btn-teal:hover { background: var(--teal-700); color: var(--white); }
.btn-outline { background: var(--white); border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline:hover { background: var(--grey-100); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn-link { background: none; border: 0; padding: 8px 0; color: var(--grey-700); text-decoration: underline; font-weight: 500; }
.text-link { font-weight: 600; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 62%, #1a4a6b 100%); color: var(--white); }
.hero-inner { padding-top: 64px; padding-bottom: 60px; max-width: 900px; margin-left: auto; margin-right: auto; }
.hero h1 { color: var(--white); font-size: 2.5rem; margin-bottom: 0.4em; }
.hero .lead { font-size: 1.15rem; color: #d7e2ee; max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--teal-400); margin-bottom: 0.8em; }
.eyebrow-dark { color: var(--teal-700); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }
.hero-note { margin: 18px 0 0; color: #b8c8da; font-size: 0.95rem; }

/* Search */
.search-form { display: flex; gap: 8px; max-width: 720px; }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--grey-300); border-radius: var(--radius); font: inherit; background: var(--white); color: var(--grey-900); }
.search-form-lg input[type="search"] { padding: 14px 16px; border-color: transparent; }

/* Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--grey-100); }
.section-navy { background: var(--navy-900); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-navy p { color: #d7e2ee; margin: 0; }
.section-intro { color: var(--grey-700); max-width: 760px; }
.page-head { background: var(--grey-100); border-bottom: 1px solid var(--grey-200); padding: 32px 0 26px; }
.page-head p { color: var(--grey-700); max-width: 820px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Flow */
.flow { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: none; }
.flow li { background: var(--white); border: 1px solid var(--grey-200); border-top: 3px solid var(--teal-600); border-radius: var(--radius); padding: 16px; }
.flow-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy-800); color: var(--white); font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
.flow h3 { margin-bottom: 0.3em; }
.flow p { margin: 0; font-size: 0.9rem; color: var(--grey-700); }

/* Cards / panels */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0; }
.card, .panel { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.category-card { display: block; text-decoration: none; color: inherit; }
.category-card:hover { border-color: var(--teal-600); color: inherit; }
.category-card h3 { margin-top: 10px; }
.category-card p { margin-bottom: 0.5em; color: var(--grey-700); }
.check-list, .plain-list { list-style: none; padding: 0; }
.check-list li { padding: 5px 0 5px 26px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 10px; height: 6px; border-left: 2px solid var(--teal-600); border-bottom: 2px solid var(--teal-600); transform: rotate(-45deg); }
.plain-list li { padding: 7px 0; border-bottom: 1px solid var(--grey-200); }
.plain-list li:last-child { border-bottom: 0; }

/* Notices / badges */
.notice { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--grey-300); background: var(--grey-100); margin: 0 0 1em; font-size: 0.93rem; }
.notice ul { margin: 0.4em 0 0; }
.notice p { margin: 0; }
.notice-info { border-color: #b9d8d6; background: var(--teal-050); color: #174f54; }
.notice-warn { border-color: #ecd49a; background: var(--amber-050); color: var(--amber-800); }
.notice-error { border-color: #e2b4b4; background: var(--red-050); color: var(--red-700); }
.notice-ok { border-color: #b5d9c5; background: var(--green-050); color: var(--green-700); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge-quote { background: var(--teal-050); color: var(--teal-700); border-color: #b9d8d6; }
.badge-ok { background: var(--green-050); color: var(--green-700); border-color: #b5d9c5; }
.badge-stock { background: var(--green-700); color: var(--white); }
.badge-hold { background: var(--amber-050); color: var(--amber-800); border-color: #ecd49a; }
.badge-draft { background: var(--grey-100); color: var(--grey-700); border-color: var(--grey-300); }
.badge-status { background: var(--navy-800); color: var(--white); }
.quote-required { font-weight: 600; color: var(--teal-700); white-space: nowrap; }
.price { font-weight: 700; color: var(--navy-900); }
.match-exact { color: var(--green-700); font-weight: 600; }
.match-partial { color: var(--amber-800); }

/* Filter chips / tabs */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.chip { display: inline-block; padding: 6px 12px; border: 1px solid var(--grey-300); border-radius: 16px; text-decoration: none; color: var(--grey-700); font-size: 0.9rem; background: var(--white); }
.chip-active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.chip-count { opacity: 0.75; font-size: 0.82em; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--grey-200); margin-bottom: 22px; }
.tab { padding: 10px 18px; text-decoration: none; font-weight: 600; color: var(--grey-700); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab-active { color: var(--navy-900); border-bottom-color: var(--teal-600); }
.result-summary { color: var(--grey-700); }
.breadcrumb { font-size: 0.88rem; color: var(--grey-500); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--grey-200); border-radius: var(--radius); margin-bottom: 14px; background: var(--white); }
.product-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.product-table th, .product-table td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--grey-200); }
.product-table thead th { background: var(--navy-800); color: var(--white); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.product-table tbody tr:last-child td { border-bottom: 0; }
.product-table tbody tr:nth-child(even) { background: #fafbfc; }
.sku-link { font-family: var(--mono); font-weight: 700; text-decoration: none; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 1em; font-size: 0.94rem; }
.spec-table th, .spec-table td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--grey-200); }
.spec-table th { width: 38%; color: var(--grey-700); font-weight: 600; background: var(--grey-100); }

/* Add to cart */
.add-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.qty-input { width: 84px; padding: 7px 8px; border: 1px solid var(--grey-300); border-radius: var(--radius); font: inherit; }
.btn-added { background: var(--green-700) !important; }

/* Product detail */
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 32px; align-items: start; }
.detail-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--grey-700); }
.buy-box { background: var(--grey-100); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 20px; position: sticky; top: 84px; }
.buy-price { font-size: 1.3rem; margin-bottom: 0.4em; }

/* Cart */
.cart-footer { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; margin-top: 8px; }
.cart-footer .panel + .panel { margin-top: 0; }
.summary-list { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0 0 1em; }
.summary-list dt { color: var(--grey-700); }
.summary-list dd { margin: 0; text-align: right; font-weight: 600; }
.summary-list .total { border-top: 2px solid var(--navy-800); padding-top: 8px; font-size: 1.05rem; color: var(--navy-900); font-weight: 700; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.radio, .check { display: inline-flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.radio input, .check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.shipping-box { margin: 10px 0; }
.remove-btn { background: none; border: 0; color: var(--red-700); cursor: pointer; font: inherit; text-decoration: underline; padding: 6px 0; }
.empty-state { text-align: center; padding: 40px 16px; background: var(--grey-100); border: 1px dashed var(--grey-300); border-radius: var(--radius); }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.form-narrow { max-width: 820px; }
.form fieldset { border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 16px 18px 6px; margin: 0 0 18px; min-width: 0; }
.form legend { font-weight: 700; color: var(--navy-900); padding: 0 6px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-grid-5 { grid-template-columns: repeat(5, 1fr); }
.field { margin-bottom: 14px; min-width: 0; }
.field label, .field .label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 4px; color: var(--grey-900); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="password"], .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--grey-300); border-radius: var(--radius); font: inherit; background: var(--white); color: var(--grey-900);
}
.field textarea { resize: vertical; }
.field-check label { font-weight: 400; }
.field-error input, .field-error select, .field-error textarea { border-color: var(--red-700); }
.error-text { color: var(--red-700); font-size: 0.86rem; margin: 4px 0 0; font-weight: 600; }
.hint { color: var(--grey-500); font-size: 0.84rem; margin: 4px 0 0; }
.req { color: var(--red-700); }
.opt { color: var(--grey-500); font-weight: 400; font-size: 0.85em; }
.rfq-cart { position: sticky; top: 84px; }
.rfq-cart ul { list-style: none; padding: 0; }
.rfq-cart li { padding: 8px 0; border-bottom: 1px solid var(--grey-200); font-size: 0.92rem; }
.confirm { border-top: 4px solid var(--teal-600); }
.ref-no { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--navy-900); background: var(--grey-100); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 12px 16px; display: inline-block; overflow-wrap: anywhere; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.4em; }
.contact-list dt { font-weight: 600; color: var(--grey-700); }
.contact-list dd { margin: 0 0 10px; }

/* Calculator */
.formula { background: var(--grey-100); border-left: 3px solid var(--teal-600); padding: 10px 14px; font-size: 0.93rem; }
.pkg-row { border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 12px 14px 0; margin-bottom: 14px; }
.pkg-title { font-weight: 700; color: var(--navy-900); margin-bottom: 8px; }
.pkg-extra { margin-bottom: 16px; }
.pkg-extra summary { cursor: pointer; font-weight: 600; color: var(--teal-700); margin-bottom: 12px; }
.result { margin-top: 26px; border-top: 4px solid var(--teal-600); }
.result .summary-list { max-width: 560px; }

/* Footer */
.site-footer { background: var(--navy-900); color: #c9d6e5; padding: 40px 0 24px; margin-top: 24px; font-size: 0.92rem; }
.site-footer a { color: #dfe9f3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.site-footer .muted { color: #9fb2c8; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { padding: 3px 0; }
.footer-brand { font-size: 1.15rem; color: var(--white); }
.footer-title { font-weight: 700; color: var(--white); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 22px; padding-top: 18px; font-size: 0.82rem; color: #9fb2c8; }

/* Admin */
.admin { background: var(--grey-100); }
.admin-header { background: var(--navy-900); color: var(--white); }
.admin-header .brand { color: var(--white); }
.admin-tag { font-size: 0.7rem; background: var(--teal-600); padding: 2px 8px; border-radius: 10px; margin-left: 6px; text-transform: uppercase; letter-spacing: 0.05em; vertical-align: middle; }
.admin-nav { flex: 1; }
.admin-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.admin-nav a { display: block; padding: 8px 10px; color: #d7e2ee; text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.admin-nav a:hover, .admin-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--teal-400); }
.logout-form { display: flex; align-items: center; gap: 10px; }
.admin-main { padding-top: 26px; padding-bottom: 60px; }
.admin .header-inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.login-box { margin: 40px auto; max-width: 420px; }
.note-list { list-style: none; padding: 0; }
.note { border-left: 3px solid var(--teal-600); padding: 6px 10px; margin-bottom: 10px; background: var(--grey-100); }
.note p { margin: 0; }
.note-status { border-left-color: var(--grey-500); }
.panel-private { border-color: #ecd49a; background: #fffdf6; }
.json { background: var(--navy-900); color: #d7e2ee; padding: 14px; border-radius: var(--radius); overflow-x: auto; font-size: 0.8rem; max-height: 420px; }

/* Responsive */
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .field-grid-5 { grid-template-columns: 1fr 1fr; }
  .cart-footer, .form-layout, .detail-grid { grid-template-columns: 1fr; }
  .buy-box, .rfq-cart { position: static; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .no-js .nav-toggle { display: none; }
  .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 6px 0 10px; }
  .site-nav.open, .no-js .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { padding: 12px 6px; border-bottom: 1px solid var(--grey-200); }
  .nav-actions { justify-content: space-between; }
  .two-col, .card-grid, .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-inner { padding-top: 40px; padding-bottom: 40px; }
  .hero h1 { font-size: 1.8rem; }
  h1 { font-size: 1.55rem; }
  .section { padding: 34px 0; }
}
@media (max-width: 720px) {
  .flow, .field-grid, .field-grid-5 { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
  .hero-cta .btn { flex: 1 1 100%; }
  /* Tables become stacked cards so no horizontal scrolling is needed */
  .product-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .product-table, .product-table tbody, .product-table tr, .product-table td { display: block; width: 100%; }
  .product-table tr { padding: 10px 12px; border-bottom: 6px solid var(--grey-100); }
  .product-table td { padding: 5px 0; border: 0; display: grid; grid-template-columns: 38% 1fr; gap: 10px; }
  .product-table td::before { content: attr(data-label); font-weight: 600; color: var(--grey-500); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
  .product-table td[data-label=""]::before { content: none; }
  .product-table td[data-label=""] { display: block; }
  .qty-input { width: 96px; padding: 10px 8px; }
  .btn-sm { padding: 10px 14px; }
  .spec-table th { width: 42%; }
  .ref-no { font-size: 1.15rem; }
}
