/* ==========================================================================
   Feroolo — main stylesheet
   Palette + typography per Feroolo-Brand-Guidelines.pdf, layout/type-weight
   direction inspired by Bolt's app (bold Inter, generous whitespace, chunky
   rounded components).
   ========================================================================== */

:root {
  --navy: #0E2A3D;
  --navy-deep: #081925;
  --mint: #6DD3C6;
  --mint-wash: #DFF5F1;
  --paper: #F5F5F4;
  --fog: #9AA5AD;
  --ink: #14181B;
  --steel: #3E5C74;
  --white: #FFFFFF;
  --danger: #C23B3B;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 2px 10px rgba(14,42,61,0.06);
  --shadow-lift: 0 12px 32px rgba(14,42,61,0.12);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 16px;
}
h1 { font-size: 56px; line-height: 1.05; }
h2 { font-size: 38px; line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; }
p  { margin: 0 0 16px; color: var(--steel); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mint);
  background: var(--navy);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: var(--shadow-lift); }
.btn-mint { background: var(--mint); color: var(--navy); }
.btn-mint:hover { box-shadow: var(--shadow-lift); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 14px 28px; }
.btn-ghost-light { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); padding: 14px 28px; }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------------- Header / nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ECECEA;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo-img { height: 26px; width: auto; }
.main-nav { display: flex; gap: 32px; }
.main-nav a { font-weight: 600; font-size: 15px; color: var(--navy); opacity: .75; padding: 8px 0; }
.main-nav a:hover, .main-nav a.active { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------------- Hero ---------------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(109,211,198,0.18), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--mint); }
.hero-sub { color: rgba(255,255,255,.72); font-size: 18px; max-width: 480px; }
.hero-trust { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust-item { font-size: 13px; color: rgba(255,255,255,.6); font-weight: 600; letter-spacing: .3px; }
.hero-trust-item b { display: block; font-size: 22px; color: var(--white); font-weight: 800; }

/* ---------------- Calculator card ---------------- */
.calc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lift);
  color: var(--ink);
}
.calc-card h3 { margin-bottom: 4px; }
.calc-sub { font-size: 14px; color: var(--fog); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 700; color: var(--navy);
  margin-bottom: 6px; letter-spacing: .2px;
}
.field select, .field input[type=email], .field input[type=text] {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid #E3E3E1; font-family: inherit; font-size: 15px;
  background: var(--paper); color: var(--ink); appearance: none;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--mint); background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 20px; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--mint); }
.checkbox-row label { font-size: 14px; color: var(--steel); font-weight: 500; margin: 0; }

.quote-result {
  margin-top: 22px; padding: 22px; border-radius: var(--radius-md);
  background: var(--navy); color: var(--white); display: none;
}
.quote-result.visible { display: block; }
.quote-result .price { font-size: 40px; font-weight: 900; color: var(--mint); line-height: 1; }
.quote-result .meta { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 8px; }
.quote-result .valid { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 10px; }

/* ---------------- Sections ---------------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Steps (how it works) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card { background: var(--white); border: 1px solid #ECECEA; border-radius: var(--radius-md); padding: 28px 24px; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--mint-wash); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 18px;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { font-size: 14.5px; margin: 0; }

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--white); border: 1px solid #ECECEA; border-radius: var(--radius-md);
  padding: 26px; transition: box-shadow .15s ease, transform .15s ease;
}
.service-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.service-card .tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--steel); background: var(--mint-wash); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.service-card h3 { font-size: 18px; margin-bottom: 6px; }
.service-card p { font-size: 14px; margin: 0; }

/* Trust strip */
.trust-strip { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 40px 0; }
.trust-strip .item { text-align: center; flex: 1; min-width: 140px; }
.trust-strip .item b { display: block; font-size: 30px; color: var(--navy); font-weight: 900; }
.trust-strip .item span { font-size: 13px; color: var(--fog); font-weight: 600; }

/* CTA band */
.cta-band {
  background: var(--navy); border-radius: var(--radius-lg); padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.7); margin: 0; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid #EFEFED; font-size: 14.5px; }
.compare-table th { background: var(--paper); color: var(--navy); font-weight: 700; }
.compare-table td.yes { color: #1F7A52; font-weight: 700; }
.compare-table td.no { color: var(--fog); }
.compare-table tr.us td { background: var(--mint-wash); font-weight: 700; color: var(--navy); }

/* Cards generic */
.card {
  background: var(--white); border: 1px solid #ECECEA; border-radius: var(--radius-md); padding: 28px;
}
.card-list { display: grid; gap: 16px; }

/* Forms (contact) */
.form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 36px; border: 1px solid #ECECEA; }
textarea { width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid #E3E3E1; font-family: inherit; font-size: 15px; background: var(--paper); resize: vertical; min-height: 120px; }
textarea:focus { outline: none; border-color: var(--mint); background: var(--white); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 20px; font-weight: 600; }
.alert-success { background: var(--mint-wash); color: var(--navy); }
.alert-error { background: #FBEAEA; color: var(--danger); }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 72px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.footer-col h4 { color: var(--white); font-size: 14px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; color: rgba(255,255,255,.65); margin-bottom: 12px; }
.footer-col a:hover { color: var(--mint); }
.logo-img-footer { height: 22px; margin-bottom: 18px; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,.55); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.45);
}

/* ---------------- Auth / dashboard components ---------------- */
.role-card {
  flex: 1; display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border: 1.5px solid #E3E3E1; border-radius: var(--radius-sm); cursor: pointer; background: var(--paper);
}
.role-card input { accent-color: var(--mint); }
.role-card small { color: var(--fog); }
.role-card:has(input:checked) { border-color: var(--mint); background: var(--mint-wash); }

.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dash-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--mint-wash); color: var(--navy);
}
.dash-nav { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.dash-nav a { font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; background: var(--paper); color: var(--navy); }
.dash-nav a.active, .dash-nav a:hover { background: var(--navy); color: #fff; }

.job-card {
  background: var(--white); border: 1px solid #ECECEA; border-radius: var(--radius-md);
  padding: 22px; margin-bottom: 14px;
}
.job-card .route { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.job-card .meta { font-size: 13.5px; color: var(--fog); margin-bottom: 10px; }
.job-card .budget { font-size: 20px; font-weight: 900; color: var(--navy); }
.job-card .budget .suggested { font-size: 12px; font-weight: 600; color: var(--fog); margin-left: 8px; }
.status-pill {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.status-pill.open { background: var(--mint-wash); color: var(--navy); }
.status-pill.assigned { background: #FFF3DA; color: #8A6116; }
.status-pill.completed { background: #E7F3EC; color: #1F7A52; }
.status-pill.cancelled { background: #F0F0EE; color: var(--fog); }

.bid-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border: 1px solid #ECECEA; border-radius: var(--radius-sm); margin-bottom: 10px;
}
.bid-row .amount { font-size: 18px; font-weight: 800; color: var(--navy); }
.bid-row .carrier-name { font-size: 13.5px; color: var(--fog); }

/* Page hero (non-home pages) */
.page-hero { background: var(--paper); padding: 64px 0; }
.page-hero h1 { font-size: 42px; }
.page-hero p { font-size: 17px; max-width: 620px; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .hero-grid { grid-template-columns: 1fr; }
  .steps, .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .field-row { grid-template-columns: 1fr; }
  .steps, .services-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .trust-strip { justify-content: flex-start; }
  h1 { font-size: 32px; }
  .cta-band { padding: 36px; flex-direction: column; align-items: flex-start; }
  .hero { padding: 56px 0 72px; }
}
