/* 00-fonts.css */
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/barlow-400.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Barlow';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/barlow-500.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Barlow';font-style:normal;font-weight:600;font-display:swap;src:url('../assets/fonts/barlow-600.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-weight:600;font-display:swap;src:url('../assets/fonts/barlow-semi-condensed-600.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-weight:700;font-display:swap;src:url('../assets/fonts/barlow-semi-condensed-700.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* 01-base.css */
/* ==========================================================================
   Tokens — colors sampled from the official TFS logo file
   (red #B31E22–#C81D23 gradient, black-to-#464648 gradient).
   Replace once the official brandbook HEX values are delivered.
   ========================================================================== */
:root {
  --red: #c41e23;          /* TFS red, mid-point of the logo gradient */
  --red-700: #a3181c;      /* hover / pressed */
  --red-50: #fbeced;
  --ink: #222224;          /* logo black */
  --steel: #464648;        /* logo gray */
  --slate: #5f6064;        /* secondary text, 6.3:1 on white */
  --concrete: #f3f3f1;     /* section bands */
  --line: #dcdcd8;
  --line-strong: #c3c3be;
  --white: #ffffff;

  --ok: #1d6b3c;    --ok-50: #e8f3ec;
  --warn: #8a5a00;  --warn-50: #fdf3e0;
  --info: #1f4f86;  --info-50: #e9f0f8;
  --danger: #a3181c;--danger-50: #fbeced;

  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;

  /* type scale (major third) */
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-base: 1.0625rem; /* 17 */
  --fs-md: 1.25rem;     /* 20 */
  --fs-lg: 1.5625rem;   /* 25 */
  --fs-xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem);
  --fs-2xl: clamp(2.25rem, 1.6rem + 2.6vw, 3.6rem);

  --container: 1200px;
  --gutter: 16px;
  --section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --radius: 4px;
  --radius-lg: 8px;
  --header-h: 72px;
  --slant: 14deg;       /* the italic angle of the TFS lettering */

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 150ms;
  --t: 220ms;
  --focus: 0 0 0 3px var(--white), 0 0 0 5px var(--ink);
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 80px; } }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
picture img { width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--red); }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }
main:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
::selection { background: var(--red); color: var(--white); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--white); }
.tbc { color: var(--slate); font-style: italic; }
.lead { font-size: var(--fs-md); line-height: 1.5; color: var(--steel); max-width: 62ch; }
.muted { color: var(--slate); }
.measure { max-width: 68ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* 02-layout.css */
/* ==========================================================================
   Header + navigation (sticky)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(34, 34, 36, .06); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.site-header__logo { flex: none; display: block; }
.site-header__logo img { width: 116px; height: auto; }
@media (min-width: 1024px) { .site-header__logo img { width: 136px; } }

.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); color: var(--ink); font: 600 var(--fs-sm)/1 var(--font-body); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform var(--t) var(--ease), opacity var(--t-fast);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* mobile panel */
.site-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--white);
  padding: 8px var(--gutter) 32px; overflow-y: auto;
  border-top: 1px solid var(--line);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
.site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.site-nav__list { list-style: none; }
.site-nav__item { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
.site-nav__link {
  flex: 1; display: flex; align-items: center; min-height: 56px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); text-decoration: none; color: var(--ink);
}
.site-nav__link[aria-current="page"] { color: var(--red); }
.site-nav__sub-toggle {
  width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: var(--radius);
}
.site-nav__sub-toggle svg { transition: transform var(--t) var(--ease); }
.site-nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav__sub { list-style: none; flex-basis: 100%; display: none; padding: 0 0 12px 12px; }
.has-sub.is-open .site-nav__sub { display: block; }
.site-nav__sub a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--steel); }
.site-nav__sub a:hover, .site-nav__sub a[aria-current="page"] { color: var(--red); }
.site-nav__actions { display: grid; gap: 12px; margin-top: 24px; }
.site-nav__login {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.site-nav__login[aria-current="page"] { border-color: var(--ink); }
body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; visibility: visible; opacity: 1; transform: none; transition: none;
    display: flex; align-items: center; flex: 1; padding: 0; border: 0; overflow: visible; background: none;
  }
  .site-nav__list { display: flex; gap: 4px; margin-left: 24px; }
  .site-nav__item { border: 0; position: relative; flex-wrap: nowrap; }
  .site-nav__link {
    min-height: 44px; padding: 0 12px; font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600;
    position: relative;
  }
  .site-nav__link::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red);
    transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease);
  }
  .site-nav__link:hover { color: var(--ink); }
  .site-nav__link:hover::after, .site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav__link[aria-current="page"] { color: var(--ink); }
  .has-sub .site-nav__link { padding-right: 2px; }
  .site-nav__sub-toggle { width: 28px; height: 44px; }
  .site-nav__sub {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; padding: 8px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(34, 34, 36, .12);
    display: block; visibility: hidden; opacity: 0; transform: translateY(-4px);
    transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
  }
  .site-nav__sub::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .has-sub:hover .site-nav__sub, .has-sub.is-open .site-nav__sub, .has-sub:focus-within .site-nav__sub {
    visibility: visible; opacity: 1; transform: none; transition-delay: 0s;
  }
  .site-nav__sub a { padding: 0 12px; border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 500; }
  .site-nav__sub a:hover { background: var(--concrete); }
  .site-nav__actions { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; }
  .site-nav__login { border: 0; padding: 0 12px; font-size: var(--fs-sm); min-height: 44px; }
  .site-nav__login:hover { color: var(--red); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section); }
.section--band { background: var(--concrete); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section__head { max-width: 720px; margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.section__head p { color: var(--steel); font-size: var(--fs-md); line-height: 1.5; margin: 0; }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; justify-content: space-between; }
.section__head--row > div { max-width: 640px; }

/* Interior page hero: photo + title */
.page-hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 20, 22, .86) 0%, rgba(20, 20, 22, .6) 55%, rgba(20, 20, 22, .2) 100%);
}
.page-hero__body { position: relative; padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); max-width: 720px; }
.page-hero h1 { color: var(--white); margin-bottom: .35em; }
.page-hero p { color: rgba(255, 255, 255, .88); font-size: var(--fs-md); line-height: 1.5; margin: 0; max-width: 56ch; }
.page-hero .btn-row { margin-top: 28px; }

/* Plain page header (forms, legal) */
.page-head { background: var(--concrete); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
.page-head h1 { font-size: var(--fs-xl); margin-bottom: .3em; }
.page-head p { margin: 0; color: var(--steel); font-size: var(--fs-md); max-width: 62ch; line-height: 1.5; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-sm); color: var(--slate); margin-bottom: 14px; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--slate); }
.page-hero .breadcrumb, .page-hero .breadcrumb a { color: rgba(255, 255, 255, .78); }
.page-hero .breadcrumb li + li::before { color: rgba(255, 255, 255, .4); }

/* Split: media + copy */
.split { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-copy { grid-template-columns: 5fr 6fr; }
  .split--reverse > :first-child { order: 2; }
}
.split__media { border-radius: var(--radius-lg); overflow: hidden; }
.split__media img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--concrete); border-top: 4px solid var(--red); padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); font-size: var(--fs-sm); }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.site-footer__brand { grid-column: 1 / -1; max-width: 360px; }
.site-footer__brand img { width: 150px; margin-bottom: 16px; }
.site-footer__brand p { color: var(--steel); }
.site-footer__title { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); margin: 0 0 12px; letter-spacing: 0; }
.site-footer__col ul { list-style: none; display: grid; gap: 2px; }
.site-footer__col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--steel); text-decoration: none; }
.site-footer__col a:hover { color: var(--red); text-decoration: underline; }
.site-footer__contact li { display: grid; padding: 4px 0; color: var(--steel); }
.site-footer__contact span { font-size: var(--fs-xs); color: var(--slate); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-block: 20px; border-top: 1px solid var(--line); color: var(--slate);
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { list-style: none; display: flex; gap: 20px; }
.site-footer__bottom a { color: var(--slate); display: inline-flex; min-height: 44px; align-items: center; }
.site-footer__credit { margin: 0; padding-bottom: 20px; font-size: var(--fs-xs); color: var(--slate); }
.site-footer__credit a { color: var(--slate); text-decoration: none; }
.site-footer__credit a:hover { color: var(--red); }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1.6fr repeat(4, 1fr); }
  .site-footer__brand { grid-column: auto; }
}

/* 03-components.css */
/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font: 600 var(--fs-sm)/1 var(--font-body); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--radius);
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-700); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000; color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: var(--white); background: transparent; }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--sm { min-height: 40px; padding: 0 16px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; color: var(--ink); text-decoration: none;
}
.link-arrow svg { transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ==========================================================================
   Service cards
   ========================================================================== */
.service-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.service-card__media { position: relative; overflow: hidden; }
.service-card__media img { aspect-ratio: 3 / 2; object-fit: cover; transition: transform 300ms var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.03); }
.service-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.service-card h3 { font-size: var(--fs-lg); margin-bottom: 10px; }
.service-card p { color: var(--steel); }
.service-card__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 8px; }

/* ==========================================================================
   Feature list (Why TFS, service details)
   ========================================================================== */
.feature-list { list-style: none; display: grid; gap: 0; }
.feature-list li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list svg { color: var(--red); margin-top: 3px; }
.feature-list h3 { font-size: var(--fs-md); margin: 0 0 4px; }
.feature-list p { margin: 0; color: var(--steel); }

.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ''; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg);
}

/* ==========================================================================
   Steps (How it works — a real sequence)
   ========================================================================== */
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding: 0 0 28px 64px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px;
  display: grid; place-items: center; background: var(--ink); color: var(--white);
  font: 700 var(--fs-md)/1 var(--font-display);
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);   /* logo slant */
}
.steps li::after { content: ''; position: absolute; left: 21px; top: 52px; bottom: 8px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li:last-child { padding-bottom: 0; }
.steps h3 { font-size: var(--fs-md); margin: 8px 0 6px; }
.steps p { margin: 0; color: var(--steel); }
@media (min-width: 960px) {
  .steps--row { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .steps--row li { padding: 64px 0 0; }
  .steps--row li::after { left: 56px; right: -16px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .steps--row li:last-child::after { display: none; }
  .steps--row li:first-child::before { background: var(--red); }
  .steps--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Notices, badges
   ========================================================================== */
.notice {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 16px 18px;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--concrete); font-size: var(--fs-sm);
}
.notice svg { margin-top: 2px; }
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; }
.notice strong { color: var(--ink); }
.notice--info { background: var(--info-50); border-color: #c5d6eb; color: #183f6b; }
.notice--warn { background: var(--warn-50); border-color: #ecd3a2; color: #5e3e00; }
.notice--ok { background: var(--ok-50); border-color: #bcdcc8; color: #154d2c; }
.notice--danger { background: var(--danger-50); border-color: #efc2c4; color: #7c1215; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; background: var(--concrete); color: var(--steel); border: 1px solid var(--line);
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--demo { background: var(--warn-50); color: var(--warn); border-color: #ecd3a2; }
.badge--transit { background: var(--info-50); color: var(--info); border-color: #c5d6eb; }
.badge--ok { background: var(--ok-50); color: var(--ok); border-color: #bcdcc8; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.cta-band__inner { position: relative; display: grid; gap: 24px; padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.cta-band h2 { color: var(--white); font-size: var(--fs-xl); margin: 0 0 8px; }
.cta-band p { color: rgba(255, 255, 255, .82); margin: 0; max-width: 52ch; font-size: var(--fs-md); line-height: 1.5; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; align-items: center; } }

/* ==========================================================================
   Accordion (FAQ)
   ========================================================================== */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 14px 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); line-height: 1.25;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ''; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-3px); transition: transform var(--t) var(--ease);
}
.accordion details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.accordion summary:hover { color: var(--red); }
.accordion__body { padding: 0 0 22px; color: var(--steel); max-width: 72ch; }
.accordion__body p:last-child { margin: 0; }

/* ==========================================================================
   Tabs
   ========================================================================== */
.tabs__list { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tabs__tab {
  position: relative; min-height: 48px; padding: 0 18px; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font: 600 var(--fs-sm)/1 var(--font-body); color: var(--slate);
}
.tabs__tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red); transform: scaleX(0); transition: transform var(--t) var(--ease); }
.tabs__tab[aria-selected="true"] { color: var(--ink); }
.tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabs__tab:hover { color: var(--ink); }
.tabs__panel[hidden] { display: none; }
.tabs__panel { animation: fade-in var(--t) var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Timeline (tracking)
   ========================================================================== */
.timeline { list-style: none; position: relative; }
.timeline li { position: relative; padding: 0 0 22px 34px; }
.timeline li::before {
  content: ''; position: absolute; left: 5px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--line-strong);
}
.timeline li::after { content: ''; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.is-done::before { background: var(--ink); border-color: var(--ink); }
.timeline li.is-current::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px var(--red-50); }
.timeline li.is-pending { color: var(--slate); }
.timeline__title { font-weight: 600; display: block; }
.timeline__meta { font-size: var(--fs-sm); color: var(--slate); }

/* Generic content card */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
.panel--band { background: var(--concrete); }

/* Legal / long-form prose */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-lg); margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }

.link-inline { display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-inline:hover { color: var(--red); }

/* 04-public.css */
/* ==========================================================================
   Home hero — real TFS tractor photo, headline, quick actions
   ========================================================================== */
.hero { position: relative; background: var(--ink); color: var(--white); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 18, 20, .88) 0%, rgba(18, 18, 20, .66) 42%, rgba(18, 18, 20, .08) 78%),
    linear-gradient(0deg, rgba(18, 18, 20, .55) 0%, rgba(18, 18, 20, 0) 40%);
}
.hero__body { position: relative; padding-top: clamp(4rem, 2rem + 8vw, 8.5rem); padding-bottom: clamp(9rem, 6rem + 8vw, 12rem); }
.hero h1 {
  color: var(--white); max-width: 15ch; margin-bottom: 20px;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.75rem); line-height: 1.02;
}
.hero__sub { max-width: 46ch; font-size: var(--fs-md); line-height: 1.5; color: rgba(255, 255, 255, .9); margin-bottom: 32px; }

/* Quick actions panel overlapping the hero edge */
.quick { position: relative; z-index: 2; margin-top: calc(clamp(9rem, 6rem + 8vw, 12rem) * -1 + 40px); }
.quick__card {
  background: var(--white); color: var(--ink); border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(18, 18, 20, .18); border: 1px solid var(--line); overflow: hidden;
}
.quick__tabs { display: flex; border-bottom: 1px solid var(--line); }
.quick__tab {
  position: relative; flex: 1; min-height: 56px; border: 0; background: var(--concrete); cursor: pointer;
  font: 700 var(--fs-md)/1 var(--font-display); color: var(--slate); padding: 0 20px; text-align: left;
  display: flex; align-items: center; gap: 10px;
}
.quick__tab + .quick__tab { border-left: 1px solid var(--line); }
.quick__tab[aria-selected="true"] { background: var(--white); color: var(--ink); }
.quick__tab[aria-selected="true"]::before {
  content: ''; width: 12px; height: 22px; background: var(--red);
  clip-path: polygon(45% 0, 100% 0, 55% 100%, 0 100%);
}
@media (min-width: 720px) { .quick__tab { flex: none; padding: 0 28px; } }
.quick__panel { padding: 22px 20px 24px; }
@media (min-width: 720px) { .quick__panel { padding: 26px 28px 28px; } }
.quick__form { display: grid; gap: 14px; align-items: end; }
@media (min-width: 720px) { .quick__form--quote { grid-template-columns: 1fr 1fr 1fr; } .quick__form--quote .btn { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .quick__form--quote { grid-template-columns: 1fr 1fr 1fr auto; } .quick__form--quote .btn { grid-column: auto; } }
@media (min-width: 720px) { .quick__form--track { grid-template-columns: 1fr auto; } }
.quick__hint { margin: 12px 0 0; font-size: var(--fs-sm); color: var(--slate); }
.quick__hint a { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Home sections
   ========================================================================== */
.why__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.why__media img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 899px) { .why__media img { aspect-ratio: 16 / 10; } }

.track-band { background: var(--concrete); }
.track-band__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .track-band__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.track-band h2 { margin-bottom: 10px; }
.track-band p { color: var(--steel); margin: 0; max-width: 50ch; }
.track-form { display: grid; gap: 12px; }
@media (min-width: 560px) { .track-form { grid-template-columns: 1fr auto; align-items: end; } }
.track-form .field { margin: 0; }
.track-band__links { margin-top: 12px; font-size: var(--fs-sm); color: var(--slate); }
.track-band__links a { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Service detail pages
   ========================================================================== */
.detail-grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); }
@media (min-width: 960px) { .detail-grid { grid-template-columns: 7fr 5fr; align-items: start; } }
.detail-grid h2 { font-size: var(--fs-lg); }
.detail-aside { display: grid; gap: 20px; }
@media (min-width: 960px) { .detail-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.detail-aside h2 { font-size: var(--fs-md); margin-bottom: 12px; }
.detail-aside p { color: var(--steel); font-size: var(--fs-sm); }
.audience { display: grid; gap: 12px; }
@media (min-width: 640px) { .audience { grid-template-columns: 1fr 1fr; } }
.audience li { list-style: none; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.audience strong { display: block; font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; margin-bottom: 2px; }
.audience span { color: var(--steel); font-size: var(--fs-sm); }

/* Services overview rows */
.service-rows { display: grid; gap: clamp(3rem, 2rem + 3vw, 5rem); }
.service-row h2 { font-size: var(--fs-xl); }
.service-row p { color: var(--steel); }
.service-row .check-list { margin: 20px 0 28px; }

/* Values (About) */
.values { display: grid; gap: 0; list-style: none; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .values { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
.values li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.values h3 { margin: 0 0 6px; font-size: var(--fs-md); }
.values p { margin: 0; color: var(--steel); }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 7fr 4fr; align-items: start; } }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.contact-list .icon { width: 40px; height: 40px; border-radius: var(--radius); background: var(--concrete); display: grid; place-items: center; color: var(--red); }
.contact-list span { display: block; font-size: var(--fs-xs); color: var(--slate); }
.contact-list a { font-weight: 600; text-decoration: none; }

/* Track page result */
.track-result { margin-top: 32px; }
.track-summary { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin: 20px 0 28px; }
@media (min-width: 720px) { .track-summary { grid-template-columns: repeat(4, 1fr); } }
.track-summary div { padding: 14px 16px; background: var(--concrete); border-radius: var(--radius); }
.track-summary dt { font-size: var(--fs-xs); color: var(--slate); }
.track-summary dd { margin: 2px 0 0; font-weight: 600; }
.track-result__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.track-result__head h2 { margin: 0; font-size: var(--fs-lg); }

/* 404 */
.not-found { padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.not-found h1 { font-size: var(--fs-2xl); }

/* Mobile hero: let the truck show above the headline */
@media (max-width: 719px) {
  .hero__media img { object-position: 70% 30%; }
  .hero__media::after { background: linear-gradient(0deg, rgba(18, 18, 20, .94) 0%, rgba(18, 18, 20, .86) 52%, rgba(18, 18, 20, .15) 82%); }
  .hero__body { padding-top: 15rem; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .page-hero__media::after { background: linear-gradient(0deg, rgba(20, 20, 22, .9) 0%, rgba(20, 20, 22, .72) 100%); }
}

/* Background photos fill their box at every size */
.hero__media picture, .page-hero__media picture { position: absolute; inset: 0; }
.hero__media picture img, .page-hero__media picture img { height: 100%; }

/* 05-forms.css */
/* ==========================================================================
   Forms
   ========================================================================== */
.form { display: grid; gap: 36px; }
.form-section { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-section legend, .form-section__title {
  display: block; width: 100%; padding: 0 0 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
  font: 700 var(--fs-lg)/1.2 var(--font-display); color: var(--ink);
}
.form-section__hint { margin: -10px 0 20px; color: var(--slate); font-size: var(--fs-sm); }
.form-grid { display: grid; gap: 18px 20px; }
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .form-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .form-grid .span-2 { grid-column: span 2; }
  .form-grid .span-all { grid-column: 1 / -1; }
}

.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .label { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.field .opt { font-weight: 400; color: var(--slate); }
.field .help { font-size: var(--fs-xs); color: var(--slate); margin: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 400 var(--fs-base)/1.4 var(--font-body); color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  appearance: none; -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #8b8c90; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--steel); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(34, 34, 36, .14); }
.textarea { min-height: 120px; resize: vertical; }
.select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23222224' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input-group { display: flex; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .addon {
  display: grid; place-items: center; padding: 0 14px; background: var(--concrete); border: 1px solid var(--line-strong);
  border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; color: var(--slate); font-size: var(--fs-sm); white-space: nowrap;
}

/* invalid state — only after the user interacted / submitted */
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-50); }
.field__error { display: none; align-items: center; gap: 6px; margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--danger); }
.field.is-invalid .field__error { display: flex; }
.field__error::before { content: '!'; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: var(--white); font-size: 11px; }

/* checkboxes & radio cards */
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); }
.check-group { display: grid; gap: 10px; }
@media (min-width: 640px) { .check-group--cols { grid-template-columns: 1fr 1fr; } }
.field.is-invalid .check { color: var(--danger); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 8px; }
.form-actions p { margin: 0; font-size: var(--fs-sm); color: var(--slate); }
.form-summary { scroll-margin-top: calc(var(--header-h) + 24px); }
.form-summary ul { margin: 6px 0 0; padding-left: 18px; }
.form-summary a { color: inherit; font-weight: 600; }

/* form page layout: form + aside */
.form-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .form-layout { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; align-items: start; } }
.form-aside { display: grid; gap: 20px; }
@media (min-width: 1024px) { .form-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.form-aside h2 { font-size: var(--fs-md); margin-bottom: 10px; }
.form-aside p, .form-aside li { font-size: var(--fs-sm); color: var(--steel); }
.status-flow { list-style: none; display: grid; gap: 8px; }
.status-flow li { display: flex; align-items: center; gap: 10px; }
.status-flow li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.status-flow li:first-child::before { background: var(--red); }

/* result after submit */
.form-result { animation: fade-in var(--t) var(--ease); }
.form-result h2 { font-size: var(--fs-lg); }
.form-result dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: var(--fs-sm); margin: 16px 0; }
.form-result dt { color: var(--slate); }
.form-result dd { margin: 0; font-weight: 600; }
.form-layout > *, .contact-grid > *, .detail-grid > * { min-width: 0; }

/* 06-auth.css */
/* ==========================================================================
   Auth screens (login, forgot, reset)
   ========================================================================== */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; }
@media (min-width: 960px) { .auth { grid-template-columns: minmax(480px, 1fr) 1fr; } }
.auth__panel { display: flex; flex-direction: column; padding: 28px var(--gutter); }
@media (min-width: 960px) { .auth__panel { padding: 40px clamp(40px, 6vw, 96px); } }
.auth__logo img { width: 128px; }
.auth__main { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 420px; padding-block: 40px; }
@media (min-width: 960px) { .auth__main { margin-inline: 0; } }
.auth__main h1 { font-size: var(--fs-xl); margin-bottom: 8px; }
.auth__main > p { color: var(--steel); }
.auth__form { display: grid; gap: 18px; margin-top: 20px; }
.auth__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: var(--fs-sm); }
.auth__row a { font-weight: 600; }
.auth__foot { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: var(--fs-xs); color: var(--slate); }
.auth__foot a { color: var(--slate); display: inline-flex; min-height: 32px; align-items: center; }
.auth__credit { width: 100%; }
.auth__credit a { text-decoration: none; }
.auth__media { display: none; position: relative; background: var(--ink); }
@media (min-width: 960px) { .auth__media { display: block; } }
.auth__media picture, .auth__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth__media::after { content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 22%; background: var(--white); clip-path: polygon(0 0, 100% 0, 40% 100%, 0 100%); }
.portal-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--concrete); border-radius: var(--radius-lg); margin-top: 20px; }
.portal-switch button {
  min-height: 40px; border: 0; border-radius: var(--radius); background: none; cursor: pointer;
  font: 600 var(--fs-sm)/1 var(--font-body); color: var(--slate);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.portal-switch button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(34, 34, 36, .12); }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 72px; }
.password-toggle {
  position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 12px; border: 0; background: none; cursor: pointer;
  font: 600 var(--fs-xs)/1 var(--font-body); color: var(--steel); border-radius: var(--radius);
}
.password-toggle:hover { color: var(--ink); background: var(--concrete); }
