/* TLC Always Moving - shared look for every customer page (matches the home page).
   Loaded last, so it re-skins each page's own styles without changing how the pages work.
   Pages using it: freight-quote-calculator, booking, 3pl, storage-quote, my-storage. */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600&display=swap');

:root{
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --violet: #7c3aed; --violet-deep: #34166b; --hivis: #ffd60a; --hivis-ink: #2a1d00;
  --ink: #1e1236; --ink-dim: #54476f;
  --line: #ddd2f1; --field-line: #cdbfe8; --card-line: #ddd2f1;
  --app-bg: #fbf9ff; --bg: #ffffff; --panel: #ffffff; --panel-2: #f6f1fd;
  --amber: #34166b; --teal: #5b21b6;
  --glow-1: transparent; --glow-2: transparent;
  --card-shadow: 0 1px 2px rgba(30,18,54,.05), 0 16px 32px -22px rgba(30,18,54,.3);
  --focus-ring: 0 0 0 3px rgba(255,214,10,.7);
  --warn-text: #b91c1c; --warn-text-strong: #991b1b;
}
html:root[data-theme="dark"]{
  --ink: #efe8ff; --ink-dim: #b5a6d6;
  --line: #35294f; --field-line: #4b3b70; --card-line: #35294f;
  --app-bg: #120c1d; --bg: #120c1d; --panel: #1b1230; --panel-2: #22173a;
  --amber: #a78bfa; --teal: #c4b0ff;
  --card-shadow: 0 1px 2px rgba(0,0,0,.45), 0 16px 32px -22px rgba(0,0,0,.8);
  --focus-ring: 0 0 0 3px rgba(255,214,10,.55);
}

/* ---------- Page ---------- */
html{ scroll-behavior: smooth; }
body{
  padding: 0 !important; margin: 0;
  background-color: var(--app-bg) !important; background-image: none !important;
  color: var(--ink);
  font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
.site-main{ padding: 28px clamp(14px, 3vw, 36px) 72px; }
:focus-visible{ outline: 3px solid var(--hivis); outline-offset: 2px; }

/* ---------- Type: one family, condensed for titles ---------- */
body :not(.site-header, .site-header *, .site-footer, .site-footer *, svg, svg *),
body :not(.site-header, .site-header *, .site-footer, .site-footer *)::before,
body :not(.site-header, .site-header *, .site-footer, .site-footer *)::after{
  font-family: var(--body) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
:is(h1, h2, h3, .masthead h1, .qc-title, .bk-title, .section-title, .card-title, .big-btn, .addtitle, .route-head .route-name,
    .stamp-total .figure, .row.total .v, #quoteSummary .detail-row:last-child .dr-value, .bk-sub, .item-name, .pickup-card-title,
    .qc-step::before, .bk-step::before):not(.site-header *, .site-footer *){
  font-family: var(--display) !important;
}
:is(button, select, .tab, .seg-btn, .check-key-btn, .submit-quote-btn, .retrieve-quote-btn){ font-weight: 600; }

/* ---------- Page title ---------- */
.masthead{ border-bottom: 2px solid var(--ink) !important; padding: 0 0 16px !important; margin: 0 0 26px !important; align-items: flex-end !important; flex-wrap: wrap; gap: 12px 20px !important; }
.masthead h1, .wrap > h1{ font-weight: 700; font-size: clamp(36px, 5vw, 56px) !important; line-height: 1 !important; margin: 0; color: var(--ink); }
.wrap > h1{ text-align: left !important; margin: 0 0 24px !important; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.masthead .tag{ display: none !important; }
.masthead .home-link[href="index.html"], .site-main #theme-toggle, .theme-row{ display: none !important; }
.masthead-right{ gap: 10px !important; }
.subtitle{ text-align: left !important; font-size: 18px !important; color: var(--ink-dim); max-width: 60ch; }

/* ---------- Surfaces ---------- */
:is(.card, .panel, .bk-panel, .list-panel, .detail-panel, .detail-box, .result-card, .center-card, .left-panel, .dialog){
  background: var(--panel); border: 1px solid var(--card-line) !important; border-radius: 12px !important; box-shadow: var(--card-shadow);
}
.bk-head, .qc-panel-head{ border-bottom: 1px solid var(--card-line) !important; }
.bk-title, .qc-title, .section-title, .card-title{ font-weight: 700; font-size: 24px !important; line-height: 1.1; color: var(--ink); }
.bk-step, .qc-step{ background: var(--violet-deep) !important; color: #fff !important; }
html[data-theme="dark"] :is(.bk-step, .qc-step){ background: var(--violet) !important; color: #120c1d !important; }

/* ---------- Fields ---------- */
label, .field-label, .mini-label, .detail-row .dr-label, .row .k{
  font-size: 15px !important; font-weight: 600; color: var(--ink-dim) !important; text-transform: none;
}
input, select, textarea{
  font-size: 16px !important; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--field-line) !important; border-radius: 8px !important;
}
input::placeholder, textarea::placeholder{ color: var(--ink-dim); opacity: .7; }
input:focus, select:focus, textarea:focus{ outline: none !important; border-color: var(--violet-deep) !important; box-shadow: var(--focus-ring) !important; }
html[data-theme="dark"] :is(input, select, textarea):focus{ border-color: var(--violet) !important; }
.notice, .option-note, .message, .multi-quote-hint, .hello, .note{ font-size: 15px !important; line-height: 1.5; }
.ledger, .unit{ font-size: 15px !important; }

/* ---------- Buttons ---------- */
button.action-btn, a.action-btn, .check-key-btn, .submit-quote-btn, .retrieve-quote-btn, .add-item-btn{
  border-radius: 8px !important; font-weight: 600; font-size: 16px;
}
button.action-btn:not(.secondary), a.action-btn:not(.secondary), .check-key-btn, .submit-quote-btn:not(:disabled){
  background: var(--violet-deep); color: #fff; border: 2px solid transparent;
}
html[data-theme="dark"] :is(button.action-btn:not(.secondary), a.action-btn:not(.secondary), .check-key-btn, .submit-quote-btn:not(:disabled)){
  background: var(--violet); color: #120c1d;
}
button.action-btn.secondary, a.action-btn.secondary{ border-color: var(--field-line) !important; color: var(--ink) !important; }
button:disabled{ cursor: not-allowed; }
.home-link{ border-radius: 8px !important; border: 1.5px solid var(--field-line) !important; font-size: 15px !important; font-weight: 600; color: var(--ink) !important; background: var(--panel) !important; padding: 9px 14px !important; }
.home-link:hover{ border-color: var(--violet) !important; }
.big-btn{ background: var(--panel); border: 1.5px solid var(--card-line) !important; border-radius: 12px !important; font-size: 30px; font-weight: 700; text-align: left; padding: 24px 26px; }
.big-btn:hover{ border-color: var(--violet) !important; }
.big-btn .sub{ font-size: 16px; font-weight: 400; color: var(--ink-dim); margin-top: 4px; }

/* ---------- Site header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--app-bg) 92%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-family: var(--body); font-size: 16px; line-height: 1.4;
}
.site-header .sh-in{ width: min(1380px, 100% - 28px); margin-inline: auto; display: flex; align-items: center; gap: 24px; height: 64px; }
.sh-brand{ font-family: var(--display); font-weight: 700; font-size: 25px; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.sh-mark{ min-width: 34px; height: 34px; padding: 0 6px; border-radius: 8px; background: var(--violet-deep); color: #fff; display: grid; place-items: center; font-size: 18px; letter-spacing: .02em; flex: none; }
html[data-theme="dark"] .sh-mark{ background: var(--violet); color: #120c1d; }
.sh-nav{ display: flex; gap: 22px; margin-left: 10px; }
.sh-nav a{ color: var(--ink-dim); text-decoration: none; font-weight: 500; font-size: 16px; padding: 4px 0; border-bottom: 3px solid transparent; }
.sh-nav a:hover{ color: var(--ink); }
.sh-nav a[aria-current="page"]{ color: var(--ink); border-bottom-color: var(--hivis); }
.sh-actions{ margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sh-cta{ background: var(--violet-deep); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 11px 18px; border-radius: 8px; }
html[data-theme="dark"] .sh-cta{ background: var(--violet); color: #120c1d; }
.site-header .theme-toggle{ width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 18px; display: grid; place-items: center; padding: 0; }
.site-header .theme-toggle:hover{ border-color: var(--violet); }
.sh-menu{ display: none; position: relative; }
.sh-menu summary{ list-style: none; cursor: pointer; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; font-size: 20px; color: var(--ink); }
.sh-menu summary::-webkit-details-marker{ display: none; }
.sh-panel{ position: absolute; right: 0; top: 48px; width: 220px; background: var(--app-bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; box-shadow: 0 16px 40px -18px rgba(30,18,54,.45); }
.sh-panel a{ display: block; padding: 11px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
.sh-panel a:hover{ background: var(--panel-2); }
@media (max-width: 900px){
  .sh-nav, .sh-cta{ display: none; }
  .sh-menu{ display: block; }
  .site-header .sh-in{ gap: 12px; }
}
@media (max-width: 420px){ .sh-brand{ font-size: 22px; } }

/* ---------- Site footer ---------- */
.site-footer{ background: #120c1d; color: #bfb1dd; font-family: var(--body); font-size: 15px; line-height: 1.6; }
.site-footer .hazard{ height: 12px; background: repeating-linear-gradient(-45deg, #ffd60a 0 18px, #1d0f3d 18px 36px); }
.site-footer .sf-in{ width: min(1160px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-block: 40px 28px; }
.site-footer h3{ font-family: var(--display); font-size: 22px; color: #fff; margin: 0 0 10px; font-weight: 700; }
.site-footer p{ margin: 0; }
.site-footer a{ color: #d8cbf7; text-decoration: none; }
.site-footer a:hover{ text-decoration: underline; }
.site-footer ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer address{ font-style: normal; }
.site-footer .legal{ border-top: 1px solid #2c2144; }
.site-footer .legal div{ width: min(1160px, 100% - 32px); margin-inline: auto; padding-block: 16px 22px; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px){ .site-footer .sf-in{ grid-template-columns: 1fr; gap: 24px; } }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }

/* ---------- Small print: nothing below a readable size ---------- */
:is(.bk-sub, .seg-btn, .add-pickup-btn, .route-code, .no-key-hint, .key-status, .sub, .retrieve-quote-toggle, .qc-hint,
    .estimate-note, .footnote, .ledger-prompt, .estimate-banner, .estimate-banner *, .stamp-label, .tag){
  font-size: 14.5px !important; line-height: 1.5;
}
.footnote{ max-width: 80ch; margin-inline: auto; }
.seg-btn, .add-pickup-btn{ font-size: 15px !important; }
.estimate-banner{ border-radius: 10px; }

/* Active toggles/tabs: readable text in dark mode, tidy masthead on phones */
html[data-theme="dark"] :is(.seg-btn.active, .tab.active, .toggle button.active, .lock-btn.locked){ color: #120c1d !important; }
@media (max-width: 640px){
  .masthead{ align-items: flex-start !important; flex-direction: column !important; }
}

/* Footer sits at the bottom even on short pages */
body{ display: flex; flex-direction: column; min-height: 100vh; }
.site-main{ flex: 1 0 auto; width: 100%; }
