/* Marketing site styles. Loads alongside ../../colors_and_type.css */

/* ---------- Layout shell ---------- */
.tf-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.tf-page main { flex: 1; }
.tf-section { max-width: 1200px; margin: 0 auto; padding: var(--space-20) var(--space-8); }
.tf-section--dark { max-width: none; background: var(--asphalt-900); color: #fff; padding: var(--space-20) var(--space-8); }
.tf-section--dark h2.tf-section__title { color: #fff; }
.tf-section--dark .tf-section { padding-left: 0; padding-right: 0; }
.tf-section__title { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1.05; letter-spacing: -0.025em; margin: 8px 0 16px; max-width: 800px; }
.tf-section__lead { font-size: 18px; line-height: 1.5; color: var(--fg-muted); max-width: 640px; margin: 0 0 32px; }

/* ---------- Top nav ---------- */
.tf-nav { position: sticky; top: 0; z-index: 50; background: rgba(250,250,248,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); height: 64px; display: flex; align-items: center; padding: 0 var(--space-8); gap: var(--space-8); }
.tf-nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.tf-nav__mark { width: 36px; height: 36px; object-fit: contain; }
.tf-nav__wordmark { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.tf-nav__wordmark strong { font-family: var(--font-display); font-weight: 900; font-size: 14px; letter-spacing: 0.02em; color: var(--fg); }
.tf-nav__wordmark em { font-family: var(--font-display); font-style: normal; font-weight: 700; font-size: 10px; letter-spacing: 0.18em; color: var(--accent); }
.tf-nav__links { display: flex; gap: var(--space-6); margin-left: var(--space-8); flex: 1; }
.tf-nav__link { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--fg-muted); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: color 120ms var(--ease-out), border-color 120ms var(--ease-out); }
.tf-nav__link:hover { color: var(--fg); }
.tf-nav__link.is-active { color: var(--fg); border-bottom-color: var(--accent); }
.tf-nav__cta { display: flex; gap: 10px; align-items: center; }

/* ---------- Buttons ---------- */
.tf-btn { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; padding: 10px 18px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 120ms var(--ease-out), color 120ms var(--ease-out), border-color 120ms var(--ease-out); white-space: nowrap; }
.tf-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.tf-btn--sm { padding: 7px 12px; font-size: 12px; }
.tf-btn--lg { padding: 14px 22px; font-size: 15px; }
.tf-btn--primary { background: var(--forest-500); color: #fff; }
.tf-btn--primary:hover { background: var(--forest-600); }
.tf-btn--primary:active { background: var(--forest-700); }
.tf-btn--secondary { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.tf-btn--secondary:hover { background: var(--accent-soft); border-color: var(--forest-300); }
.tf-btn--ghost { background: transparent; color: var(--accent); padding-left: 8px; padding-right: 8px; }
.tf-btn--ghost:hover { color: var(--accent-hover); }
.tf-btn--dark { background: var(--asphalt-800); color: #fff; border: 1px solid var(--asphalt-700); box-shadow: var(--shadow-inset); }
.tf-btn--dark:hover { background: var(--asphalt-700); }

/* ---------- Hero ---------- */
.tf-hero { position: relative; background: var(--asphalt-900); color: #fff; overflow: hidden; }
.tf-hero__accent { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--forest-500); z-index: 2; }
.tf-hero__inner { max-width: 1200px; margin: 0 auto; padding: var(--space-20) var(--space-8); display: block; min-height: 540px; }
.tf-hero__copy { max-width: 720px; }
.tf-hero h1.tf-hero__title { font-family: var(--font-display); font-weight: 900; font-size: 84px; line-height: 0.95; letter-spacing: -0.035em; margin: 12px 0 24px; color: #fff; }
.tf-hero__lead { font-size: 18px; line-height: 1.55; color: var(--asphalt-200); max-width: 480px; margin: 0 0 28px; }
.tf-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.tf-hero__stats { display: flex; gap: var(--space-8); margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--asphalt-700); }
.tf-hero__stats > div { display: flex; flex-direction: column; gap: 4px; }
.tf-hero__stats strong { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; color: #fff; }
.tf-hero__stats span { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--asphalt-400); }
.tf-hero__art { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.tf-hero__art-bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, var(--forest-700) 0%, var(--asphalt-900) 70%); border-radius: var(--radius-xl); }
.tf-hero__art-mark { position: relative; width: 80%; max-width: 380px; filter: drop-shadow(0 16px 32px rgba(0,0,0,0.45)); }
.tf-hero__art-tag { position: absolute; bottom: 18px; left: 18px; background: rgba(22,23,23,0.75); border: 1px solid var(--asphalt-700); padding: 8px 12px; border-radius: var(--radius-md); font-size: 12px; display: flex; align-items: center; gap: 8px; color: var(--asphalt-200); }

/* ---------- Services ---------- */
.tf-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.tf-service { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); transition: border-color 120ms var(--ease-out), transform 120ms var(--ease-out); }
.tf-service:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.tf-service__icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--forest-700); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.tf-service__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 6px; letter-spacing: -0.01em; }
.tf-service__desc { font-size: 14px; line-height: 1.5; color: var(--fg-muted); margin: 0; }

/* ---------- Lanes table ---------- */
.tf-lanes { width: 100%; max-width: 1200px; margin: 0 auto; border-collapse: collapse; font-size: 14px; }
.tf-lanes th { text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--asphalt-400); padding: 12px 16px; border-bottom: 1px solid var(--asphalt-700); }
.tf-lanes td { padding: 16px; border-bottom: 1px solid var(--asphalt-800); color: var(--asphalt-100); }
.tf-lanes td:first-child, .tf-lanes td:nth-child(2) { display: flex; align-items: center; gap: 8px; }
.tf-lanes td:first-child i, .tf-lanes td:nth-child(2) i { color: var(--forest-300); }
.tf-link-light { color: var(--forest-300); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.tf-link-light:hover { color: #fff; }

/* ---------- Quote form ---------- */
.tf-quote { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-12); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-12); box-shadow: var(--shadow-sm); }
.tf-quote__side h2 { margin-top: 4px; }
.tf-quote__bullets { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.tf-quote__bullets li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-muted); }
.tf-quote__bullets li i { color: var(--accent); }
.tf-quote__form { display: flex; flex-direction: column; gap: 14px; }
.tf-quote__success { padding: 24px 0; }
.tf-quote__success h3 { font-family: var(--font-display); font-weight: 800; font-size: 28px; margin: 16px 0 8px; }
.tf-quote__success p { font-size: 15px; color: var(--fg-muted); line-height: 1.5; margin: 0 0 24px; }
.tf-quote__check { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--forest-700); display: flex; align-items: center; justify-content: center; }

/* ---------- Fields ---------- */
.tf-field { display: flex; flex-direction: column; gap: 6px; }
.tf-field label { font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.tf-field input, .tf-field select { padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); font-family: var(--font-body); font-size: 14px; background: #fff; color: var(--fg); transition: border-color 120ms var(--ease-out), box-shadow 120ms var(--ease-out); }
.tf-field input:focus, .tf-field select:focus { outline: none; border-color: var(--forest-500); box-shadow: var(--focus-ring); }
.tf-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Tracking ---------- */
.tf-track__form { display: flex; gap: 12px; align-items: flex-end; max-width: 720px; margin-bottom: var(--space-8); }
.tf-track__result { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-sm); }
.tf-track__head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: var(--space-6); border-bottom: 1px solid var(--border); margin-bottom: var(--space-6); }
.tf-track__route { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.tf-track__route i { color: var(--accent); }
.tf-track__steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.tf-track__step { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; position: relative; }
.tf-track__step:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 32px; bottom: -8px; width: 2px; background: var(--border); }
.tf-track__step.is-done:not(:last-child)::after { background: var(--forest-500); }
.tf-track__dot { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; flex: none; color: var(--fg-subtle); }
.tf-track__step.is-done .tf-track__dot { background: var(--forest-500); border-color: var(--forest-500); color: #fff; }
.tf-track__step.is-active .tf-track__dot { border-color: var(--forest-500); }
.tf-track__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--forest-500); animation: tf-pulse 1.4s ease-in-out infinite; }
@keyframes tf-pulse { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.4); opacity: 0.5 } }
.tf-track__label { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.tf-track__step.is-done .tf-track__label, .tf-track__step.is-active .tf-track__label { color: var(--fg); }
.tf-track__step:not(.is-done):not(.is-active) .tf-track__label { color: var(--fg-subtle); }
.tf-track__time { font-size: 12px; color: var(--fg-muted); margin-top: 2px; font-family: var(--font-mono); }

/* ---------- Badges ---------- */
.tf-badge { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); }
.tf-badge--active { background: var(--accent-soft); color: var(--forest-700); border-color: var(--forest-200); }

/* ---------- Footer ---------- */
.tf-footer { background: var(--asphalt-900); color: var(--asphalt-200); padding: var(--space-16) var(--space-8) var(--space-6); margin-top: auto; }
.tf-footer__top { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-12); padding-bottom: var(--space-12); border-bottom: 1px solid var(--asphalt-800); }
.tf-footer__brand { display: flex; align-items: center; gap: 10px; }
.tf-footer__mark { width: 44px; height: 44px; }
.tf-footer__pitch { font-size: 14px; line-height: 1.5; color: var(--asphalt-300); margin: 16px 0 0; max-width: 320px; }
.tf-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.tf-footer__cols h4 { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.tf-footer__cols a { display: flex; align-items: center; gap: 8px; color: var(--asphalt-300); text-decoration: none; font-size: 14px; padding: 5px 0; }
.tf-footer__cols a:hover { color: #fff; }
.tf-footer__bottom { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; padding-top: var(--space-6); font-size: 12px; color: var(--asphalt-400); font-family: var(--font-mono); }

/* ---------- Mono inline ---------- */
.tf-mono { font-family: var(--font-mono); }

/* =====================================================================
   RESPONSIVE LAYER  (added for live deployment)
   Additive only — every rule lives inside a max-width media query, so
   the desktop design above renders byte-for-byte as in the handoff.
   ===================================================================== */

/* ---- Large tablet / small laptop ---- */
@media (max-width: 1024px) {
  .tf-hero h1.tf-hero__title { font-size: 64px; }
  .tf-hero__inner { min-height: 460px; }
  .tf-section__title { font-size: 38px; }
}

/* ---- Tablet ---- */
@media (max-width: 860px) {
  /* Nav wraps to two rows; all links stay reachable (no design element removed) */
  .tf-nav { height: auto; flex-wrap: wrap; padding: 12px var(--space-5); gap: 12px; }
  .tf-nav__links { order: 3; flex-basis: 100%; margin-left: 0; gap: var(--space-5);
                   overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .tf-nav__link { padding-bottom: 4px; white-space: nowrap; }
  .tf-nav__cta { margin-left: auto; }

  .tf-section { padding: var(--space-12) var(--space-5); }
  .tf-section--dark { padding: var(--space-12) var(--space-5); }
  .tf-hero__inner { padding: var(--space-12) var(--space-5); min-height: 0; }
  .tf-hero h1.tf-hero__title { font-size: 52px; }
  .tf-section__title { font-size: 32px; }

  .tf-services { grid-template-columns: repeat(2, 1fr); }

  /* Quote: stack the two columns */
  .tf-quote { grid-template-columns: 1fr; gap: var(--space-8); padding: var(--space-8); }

  /* Footer: stack pitch over link columns */
  .tf-footer__top { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ---- Phone ---- */
@media (max-width: 600px) {
  .tf-hero h1.tf-hero__title { font-size: 40px; line-height: 1.0; }
  .tf-hero__lead { font-size: 16px; }
  .tf-hero__cta { gap: 10px; }
  .tf-hero__cta .tf-btn { flex: 1 1 auto; justify-content: center; }
  .tf-hero__stats { flex-wrap: wrap; gap: var(--space-6); margin-top: var(--space-8); }

  .tf-section__title { font-size: 28px; }
  .tf-section__lead { font-size: 16px; }

  .tf-services { grid-template-columns: 1fr; }

  /* Lanes table: drop the descriptive column so it fits a phone */
  .tf-lanes th:nth-child(2), .tf-lanes td:nth-child(2) { display: none; }
  .tf-lanes th, .tf-lanes td { padding: 12px 10px; }

  /* Tracking form stacks */
  .tf-track__form { flex-direction: column; align-items: stretch; gap: 12px; }
  .tf-track__form .tf-btn { justify-content: center; }
  .tf-track__head { flex-direction: column; gap: 12px; }

  .tf-field-row { grid-template-columns: 1fr; }

  .tf-footer__cols { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .tf-footer__bottom { flex-direction: column; gap: 8px; }
}

/* ---- Small phone ---- */
@media (max-width: 380px) {
  .tf-hero h1.tf-hero__title { font-size: 34px; }
  .tf-footer__cols { grid-template-columns: 1fr; }
}
