/* ============================================================
   Forward Metric — styles.css
   Brand v3: light executive theme, blue accent, CSS variables
   ============================================================ */

/* --- Variables --- */
:root {
  --bg:      #ffffff;
  --panel:   #f6f7f9;
  --panel2:  #ffffff;
  --text:    #1e2530;
  --muted:   #5b6777;
  --line:    #e6e9ee;
  --accent:  #1FA3FF;
  --accent2: #0B6FBF;
  --shadow:  rgba(30, 37, 48, 0.08);
  --radius:  14px;
  --font:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* --- Base --- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- Typography --- */
h1 {
  font-size: 2.375rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}
h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}
h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
p { color: var(--muted); line-height: 1.7; }

@media (min-width: 640px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.375rem; }
}

.text-sm   { font-size: 0.875rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent); }
.leading-relaxed { line-height: 1.7; }
.max-w-xl  { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

.link {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.15s;
}
.link:hover { color: var(--accent2); }

/* --- Spacing utilities --- */
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mt-1  { margin-top: 0.25rem; }
.mt-8  { margin-top: 2rem; }

/* --- Layout helpers --- */
.container      { max-width: 48rem;  margin: 0 auto; }
.container-wide { max-width: 64rem;  margin: 0 auto; }

.section       { padding: 4rem 1.5rem; }
.section-alt   { background: var(--panel);  padding: 4rem 1.5rem; }
.section-panel { background: var(--panel2); padding: 4rem 1.5rem; }

@media (min-width: 640px) {
  .section, .section-alt, .section-panel { padding: 6rem 1.5rem; }
}

/* Tighten spacing directly below the nav */
.section:first-of-type,
.section-alt:first-of-type { padding-top: 2rem; }

.divider { border: none; border-top: 1px solid var(--line); }

/* --- Grid layouts --- */
.grid-2,
.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Six Drivers grid — 3 cols on desktop */
.grid-6 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

/* Steps grid */
.steps-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Two-column content rows --- */
.two-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .two-col { flex-direction: row; gap: 3rem; }
  .two-col > .col-1-3 { flex: 0 0 33.333%; }
  .two-col > .col-2-3 { flex: 1; }
}

/* --- Button group --- */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}
@media (min-width: 640px) {
  .btn-group { flex-direction: row; }
}

/* --- Hero layout (2-col on desktop) --- */
.hero-cols {
  display: grid;
  gap: 3rem;
}
@media (min-width: 640px) {
  .hero-cols {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}
.hero-visual img {
  border-radius: var(--radius);
  box-shadow: 0 16px 48px var(--shadow);
  width: 100%;
}

/* --- Infographic --- */
.infographic-wrap { margin-top: 2.5rem; }
.infographic-wrap img {
  border-radius: var(--radius);
  box-shadow: 0 8px 32px var(--shadow);
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

/* --- Accent bar (hero decoration) --- */
.accent-bar {
  width: 2.5rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1.25rem 0;
}

/* --- Step numbers --- */
.step-num {
  font-size: 2.75rem;
  font-weight: 300;
  color: var(--line);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.875rem;
}

/* --- Driver number badge --- */
.driver-num {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.625rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-lg    { padding: 0.75rem 2rem;   font-size: 0.9375rem; }
.btn-sm    { padding: 0.45rem 0.9rem; font-size: 0.8125rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); color: #fff; }

.btn-secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-secondary:hover { background: rgba(31, 163, 255, 0.08); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Cards --- */
.card {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}
.card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* --- Driver card (Six Drivers) --- */
.driver-card {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.625rem;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.driver-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}
.driver-card h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.driver-card p  { font-size: 0.9rem; }

/* --- Service detail rows --- */
.service-row {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}
.service-row:first-child { border-top: none; }
.service-meta {
  font-size: 0.8125rem;
  color: var(--accent);
  margin-top: 0.25rem;
  font-weight: 500;
}
.service-price {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* --- Contact cards --- */
.contact-card {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.18s, transform 0.18s;
  text-decoration: none;
  display: block;
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.contact-card-icon  { color: var(--accent); margin-bottom: 0.75rem; }
.contact-card-title { font-weight: 600; font-size: 0.875rem; color: var(--text); margin-bottom: 0.25rem; }
.contact-card-detail { font-size: 0.8125rem; color: var(--muted); line-height: 1.5; word-break: break-all; }

/* --- Solutions sub-page breadcrumb --- */
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: var(--accent2); }

/* --- Checklist --- */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1rem;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}
.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--accent);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--panel2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px var(--shadow);
}
.nav-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo img { height: 160px; width: auto; }
.nav-logo span { display: none; }
.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
@media (min-width: 640px) { .nav-links { display: flex; } }
.nav-links a { font-size: 0.9375rem; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover,
.nav-links a.nav-active { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-icon { display: none; color: var(--muted); transition: color 0.15s; }
.nav-icon:hover { color: var(--accent); }
@media (min-width: 640px) { .nav-icon { display: flex; } }

/* Mobile menu button */
.nav-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0.375rem;
  transition: color 0.15s;
}
.nav-menu-btn:hover { color: var(--accent); }
@media (min-width: 640px) { .nav-menu-btn { display: none; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 1.5rem;
  background: var(--panel);
}
.footer-inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
.footer-brand   { font-weight: 600; color: var(--text); margin-bottom: 0.25rem; font-size: 0.9375rem; }
.footer-loc     { font-size: 0.875rem; color: var(--muted); }
.footer-contact { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.875rem; }
.footer-contact a { font-size: 0.875rem; color: var(--muted); transition: color 0.15s; }
.footer-contact a:hover { color: var(--accent); }
.footer-links   { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--accent); }
.footer-links a.active { color: var(--text); font-weight: 500; }
.footer-copy    { font-size: 0.75rem; color: var(--muted); opacity: 0.6; }
@media (min-width: 640px) { .footer-copy { align-self: flex-end; } }

/* ============================================================
   DRAWER
   ============================================================ */
#drawer {
  position: fixed;
  background: var(--panel2);
  border: 1px solid var(--line);
  box-shadow: -8px 0 40px var(--shadow);
  bottom: 0; left: 0; right: 0;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
  border-radius: var(--radius) var(--radius) 0 0;
}
#drawer.open { transform: translateY(0); }

@media (min-width: 640px) {
  #drawer {
    top: 0; right: 0; bottom: 0; left: auto;
    width: 22rem; max-height: 100vh;
    border-radius: 0;
    border-top: none; border-right: none; border-bottom: none;
    transform: translateX(110%);
  }
  #drawer.open { transform: translateX(0); }
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 37, 48, 0.35);
  z-index: 40;
  display: none;
}
#overlay.active { display: block; }

.drawer-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: none;
}
@media (min-width: 640px) { .drawer-tab { display: block; } }
.drawer-tab button {
  background: var(--panel2);
  border: 1px solid var(--accent);
  border-right: none;
  color: var(--accent);
  padding: 0.875rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 6px 0 0 6px;
  font-family: var(--font);
}
.drawer-tab button:hover { background: rgba(31, 163, 255, 0.08); }

.drawer-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 30;
  display: block;
}
@media (min-width: 640px) { .drawer-fab { display: none; } }
.drawer-fab button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(31, 163, 255, 0.30);
  font-family: var(--font);
  transition: background 0.15s;
}
.drawer-fab button:hover { background: var(--accent2); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.drawer-header-title { font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.drawer-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
  font-family: var(--font);
}
.drawer-close:hover { color: var(--text); }
.drawer-body    { padding: 1.5rem; }
.drawer-copy    { font-size: 0.875rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.5rem; }
.drawer-actions { display: flex; flex-direction: column; gap: 0.75rem; }
