/* ===========================================================
   MSF Assist — design system v3
   Palette: deep navy (trust) + emerald green (go/action), matching
   the MSF Assist road-mark logo. Clean bold sans, pill buttons.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@700;800;900&family=Source+Sans+3:wght@400;500;600;700;800&display=swap');

:root{
  --navy: #0b2b4a;
  --navy-2: #081d33;
  --navy-3: #123a63;
  --gold: #1fa572;
  --gold-light: #29c98a;
  --ink: #1c2129;
  --paper: #f5f7f6;
  --white: #ffffff;
  --muted: #5b6472;
  --border: #e2e6e4;
  --max: 1180px;
  --radius: 12px;
  --radius-sm: 8px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--ink);
  background-color:var(--paper);
  background-image:radial-gradient(rgba(11,43,74,.06) 1px, transparent 1px);
  background-size:24px 24px;
  line-height:1.6;
  font-size:17px;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{
  font-family:'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight:800;
  line-height:1.15;
  letter-spacing:-.01em;
  margin:0 0 .5em;
  color:var(--navy);
}
h1 em, h2 em{ color:var(--gold); font-style:normal; font-weight:800; }
p{ margin:0 0 1em; color:var(--ink); }
.container{ max-width:var(--max); margin:0 auto; padding:0 28px; }
.muted{ color:var(--muted); }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'Source Sans 3',sans-serif;
  font-weight:800;
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:.7em;
}
.eyebrow::before{
  content:""; width:22px; height:2px; background:var(--gold); display:inline-block;
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:.85em 1.7em;
  border-radius:999px;
  font-weight:700;
  font-size:.98rem;
  border:1.5px solid transparent;
  cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform:translateY(-2px); box-shadow:0 12px 24px -10px rgba(0,20,60,.35); }
.btn:active{ transform:translateY(0); }
.btn::after{ content:"→"; }
.btn-gold{ background:var(--gold); color:var(--white); }
.btn-gold:hover{ background:var(--gold-light); }
.btn-outline{ background:transparent; color:var(--white); border-color:rgba(255,255,255,.55); }
.btn-outline:hover{ border-color:var(--white); }
.btn-navy{ background:var(--navy); color:var(--white); }
.btn-navy:hover{ background:var(--navy-3); }
.btn-white{ background:var(--white); color:var(--navy); }
.btn-white:hover{ background:var(--paper); }

/* Header */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--white);
  border-bottom:1px solid var(--border);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  height:86px;
}
.logo{
  display:flex; align-items:center; gap:10px;
}
.logo img{ height:40px; width:auto; }
.logo .wordmark{
  font-family:'Manrope',sans-serif; font-weight:800; font-size:1.3rem;
  color:var(--navy); line-height:1.15;
}
.logo .wordmark span{ color:var(--gold); }
.logo .tagline{
  display:block; font-family:'Source Sans 3',sans-serif; font-weight:600;
  font-size:.68rem; color:var(--muted); letter-spacing:.01em;
}
.main-nav{ display:flex; align-items:center; gap:34px; }
.main-nav a{
  font-weight:700; font-size:.96rem; color:var(--navy-2);
  padding:6px 0; border-bottom:2px solid transparent;
  transition:border-color .15s ease, color .15s ease;
}
.main-nav a:hover, .main-nav a.active{ border-color:var(--gold); color:var(--gold); }
.header-cta{ display:flex; align-items:center; gap:20px; }
.header-phone{ font-weight:700; color:var(--navy); font-size:.98rem; }
.header-phone small{ display:block; font-weight:500; color:var(--muted); font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; }
.nav-toggle{ display:none; }

/* Sections */
section{ padding:84px 0; }
.section-white{ background:var(--white); }
.section-head{ max-width:680px; margin:0 0 46px; position:relative; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(1.6rem, 3.4vw, 2.3rem); position:relative; z-index:1; }
.section-head .numeral{
  position:absolute; top:-.12em; left:50%; transform:translateX(-50%);
  font-family:'Manrope',sans-serif; font-weight:900; font-size:6.5rem;
  color:rgba(11,43,74,.05); line-height:1; z-index:0; pointer-events:none;
  user-select:none;
}
.section-head:not(.center) .numeral{ left:0; transform:none; }

/* Problem / pain points / icon-card grid (also used for Services hub) */
.pain-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:26px; }
.pain-card{
  display:block; background:var(--white); border:1px solid var(--border); border-radius:var(--radius);
  padding:26px 22px;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pain-card:hover{ transform:translateY(-5px); box-shadow:0 18px 34px -18px rgba(11,43,74,.22); border-color:var(--gold); }
.pain-icon{
  width:44px; height:44px; border-radius:50%; background:rgba(31,165,114,.1);
  display:flex; align-items:center; justify-content:center; margin-bottom:14px;
  color:var(--gold);
}
.pain-icon svg{ width:21px; height:21px; }
.pain-card h3{ font-size:1.1rem; margin-bottom:.4em; }
.pain-card p{ font-size:.95rem; color:var(--muted); margin:0 0 .8em; }
.pain-card .card-link{ font-size:.88rem; font-weight:700; color:var(--gold); display:inline-flex; align-items:center; gap:5px; }
.pain-card .card-link::after{ content:"→"; transition:transform .15s ease; }
.pain-card:hover .card-link::after{ transform:translateX(3px); }

/* Taxi council pill tags */
.pill-row{ display:flex; flex-wrap:wrap; gap:10px; margin:1em 0 1.4em; }
.pill-tag{
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.3);
  color:var(--white); font-weight:700; font-size:.85rem;
  padding:.45em 1.05em; border-radius:999px;
}
.pill-tag.pill-more{ background:var(--navy-2); border-color:var(--navy-2); }
.section-white .pill-tag, .paper .pill-tag{
  background:rgba(31,165,114,.08); border-color:rgba(31,165,114,.3); color:var(--navy);
}

/* Process / flow row */
.process-row{ display:flex; align-items:flex-start; justify-content:space-between; gap:6px; flex-wrap:wrap; }
.process-step{ display:flex; flex-direction:column; align-items:center; text-align:center; flex:1; min-width:96px; }
.process-icon{
  width:56px; height:56px; border-radius:50%; background:rgba(31,165,114,.1);
  color:var(--gold); display:flex; align-items:center; justify-content:center; margin-bottom:12px;
}
.process-icon svg{ width:26px; height:26px; }
.process-step span{ font-weight:700; font-size:.92rem; color:var(--navy); }
.process-arrow{ color:var(--border); font-size:1.4rem; padding-top:16px; flex:none; }
.process-arrow svg{ width:22px; height:22px; }

/* Quote card */
.quote-card{
  background:var(--navy); color:var(--white); border-radius:var(--radius);
  padding:26px 24px; position:relative; max-width:340px;
}
.quote-card p{ color:var(--white); font-size:1.05rem; font-weight:600; margin:0 0 .6em; }
.quote-card cite{ font-style:normal; font-size:.85rem; color:rgba(255,255,255,.65); }

/* Carousel */
.carousel{ position:relative; }
.carousel-track{ display:flex; gap:20px; overflow:hidden; scroll-behavior:smooth; }
.carousel-card{ flex:0 0 260px; }
.carousel-card img{ width:100%; height:170px; object-fit:cover; border-radius:var(--radius); margin-bottom:10px; }
.carousel-card h4{ font-size:1rem; color:var(--navy); margin:0 0 .2em; font-family:'Manrope',sans-serif; font-weight:800; }
.carousel-card p{ font-size:.88rem; color:var(--muted); margin:0; }
.carousel-nav{ display:flex; justify-content:center; gap:8px; margin-top:20px; }
.carousel-dot{ width:8px; height:8px; border-radius:50%; background:var(--border); border:0; cursor:pointer; }
.carousel-dot.active{ background:var(--gold); width:22px; border-radius:6px; transition:width .2s ease; }

/* Two column feature */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.split img{ border-radius:var(--radius); width:100%; height:380px; object-fit:cover; }
.split.reverse .media{ order:2; }
.split ul{ margin:0 0 1.4em; padding:0; list-style:none; }
.split ul li{
  position:relative; padding-left:28px; margin-bottom:.7em; color:var(--ink);
}
.split ul li::before{
  content:""; position:absolute; left:0; top:.55em; width:9px; height:9px;
  background:var(--gold); border-radius:50%;
}

/* Services grid */
.services-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:28px; }
.services-grid.cols-3{ grid-template-columns:repeat(3,1fr); }
.service-card{
  background:var(--white); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform .18s ease, box-shadow .18s ease;
}
.service-card:hover{ transform:translateY(-5px); box-shadow:0 20px 38px -18px rgba(0,20,60,.32); }
.service-card img{ height:190px; object-fit:cover; width:100%; transition:transform .35s ease; }
.service-card:hover img{ transform:scale(1.05); }
.service-card-body{ padding:26px 24px 30px; flex:1; display:flex; flex-direction:column; }
.service-card h3{ font-size:1.25rem; }
.service-card p{ color:var(--muted); font-size:.96rem; flex:1; }
.service-tag{
  display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--gold); margin-bottom:.6em;
}

/* Steps */
.steps{ counter-reset:step; display:grid; grid-template-columns:repeat(4,1fr); gap:30px; }
.step{ position:relative; padding-top:8px; }
.step::before{
  counter-increment:step; content:counter(step,decimal-leading-zero);
  font-family:'Manrope',sans-serif; font-size:2.3rem; font-weight:900;
  color:var(--gold); display:block; margin-bottom:.25em;
}
.step h3{ font-size:1.12rem; }
.step p{ color:var(--muted); font-size:.94rem; }

/* Generic dark section (taxi bands, etc.) */
.section-dark{ background:var(--navy); color:var(--white); }
.section-dark h2, .section-dark h3{ color:var(--white); }
.section-dark p{ color:rgba(255,255,255,.82); }
.section-dark .muted{ color:rgba(255,255,255,.65); }

/* Stats / assurance band */
.assurance{ background:var(--navy); color:var(--white); }
.assurance .container{
  display:grid; grid-template-columns:1.2fr .8fr; gap:50px; align-items:center;
}
.assurance h2{ color:var(--white); font-size:clamp(1.6rem, 3.2vw, 2.2rem); }
.assurance p{ color:rgba(255,255,255,.8); }
.assurance-list{ list-style:none; margin:0; padding:0; display:grid; gap:16px; }
.assurance-list li{ padding-left:30px; position:relative; color:rgba(255,255,255,.92); font-weight:500; }
.assurance-list li::before{
  content:"✓"; position:absolute; left:0; top:0; color:var(--gold); font-weight:700;
}

/* FAQ accordion */
.faq-list{ border-top:1px solid var(--border); }
.faq-item{ border-bottom:1px solid var(--border); }
.faq-q{
  width:100%; text-align:left; background:none; border:0; cursor:pointer;
  padding:22px 4px; font-family:'Source Sans 3',sans-serif; font-weight:700;
  font-size:1.05rem; color:var(--navy); display:flex; justify-content:space-between;
  align-items:center; gap:20px;
}
.faq-q::after{ content:"+"; color:var(--gold); font-size:1.4rem; font-weight:400; flex:none; }
.faq-item.open .faq-q::after{ content:"–"; }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-item.open .faq-a{ max-height:400px; }
.faq-a p{ padding:0 4px 22px; color:var(--muted); max-width:70ch; }

/* CTA banner */
.cta-banner{
  background:var(--gold); color:var(--white); text-align:center;
}
.cta-banner h2{ color:var(--white); font-size:clamp(1.6rem, 3.4vw, 2.2rem); }
.cta-banner p{ color:rgba(255,255,255,.9); max-width:56ch; margin:0 auto 1.4em; }

/* Contact */
.contact-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:56px; }
.contact-card{
  background:var(--navy); color:var(--white); border-radius:var(--radius);
  padding:38px 34px;
}
.contact-card h3{ color:var(--white); font-size:1.3rem; }
.contact-line{ margin-bottom:1.4em; }
.contact-line .label{ display:block; font-size:.76rem; letter-spacing:.08em; text-transform:uppercase; color:var(--gold-light); margin-bottom:.3em; }
.contact-line a, .contact-line span.value{ font-size:1.15rem; font-weight:600; }
.form-field{ margin-bottom:18px; }
.form-field label{ display:block; font-weight:600; font-size:.88rem; margin-bottom:.4em; color:var(--navy-2); }
.form-field input, .form-field select, .form-field textarea{
  width:100%; padding:.8em .9em; border:1px solid var(--border); border-radius:var(--radius);
  font-family:inherit; font-size:1rem; background:var(--white); color:var(--ink);
}
.form-field textarea{ min-height:120px; resize:vertical; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-note{ font-size:.85rem; color:var(--muted); margin-top:10px; }

/* Page hero (inner pages) */
.page-hero{
  background:var(--navy); color:var(--white); padding:64px 0;
  position:relative; background-size:cover; background-position:center;
}
.page-hero.photo::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(8,29,51,.94) 30%, rgba(8,29,51,.55) 100%);
}
.page-hero.photo{ padding:80px 0; }
.page-hero .container{ position:relative; z-index:1; }
.page-hero h1{ color:var(--white); margin-bottom:.3em; font-size:clamp(1.9rem, 4.4vw, 2.7rem); }
.page-hero p{ color:rgba(255,255,255,.8); max-width:60ch; }
.breadcrumb{ font-size:.85rem; color:var(--gold-light); margin-bottom:.8em; font-weight:600; letter-spacing:.03em; }
.breadcrumb a{ color:rgba(255,255,255,.7); }

/* Full-bleed home hero */
.hero-full{
  position:relative; min-height:640px; display:flex; align-items:flex-end;
  color:var(--white); background-size:cover; background-position:center;
  padding-top:120px;
}
.hero-full::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(8,17,28,.88) 15%, rgba(8,17,28,.25) 60%, rgba(8,17,28,.55) 100%);
}
.hero-full .container{ position:relative; z-index:1; padding-bottom:56px; }
.hero-full .eyebrow-bar{ width:44px; height:4px; background:var(--gold); border-radius:2px; margin-bottom:20px; }
.hero-full h1{ color:var(--white); font-size:clamp(2.1rem, 4.6vw, 3.2rem); max-width:16ch; margin-bottom:.35em; }
.hero-full .lead{ color:rgba(255,255,255,.88); font-size:1.1rem; max-width:46ch; margin-bottom:1.4em; }
.hero-meta{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; margin-top:1.3em; }
.hero-meta span{ display:inline-flex; align-items:center; gap:7px; color:rgba(255,255,255,.8); font-size:.92rem; font-weight:600; }
.hero-meta svg{ width:17px; height:17px; }

/* Accident-type picker card, overlaps hero bottom edge */
.accident-picker{
  position:relative; z-index:2; margin-top:-58px;
  background:var(--white); border-radius:var(--radius);
  box-shadow:0 30px 60px -24px rgba(8,17,28,.35);
  padding:22px; display:grid; grid-template-columns:repeat(3,1fr); gap:14px;
}
.accident-option{
  display:flex; align-items:center; gap:12px; padding:16px 18px;
  border:1px solid var(--border); border-radius:var(--radius-sm);
  font-weight:700; color:var(--navy); transition:border-color .15s ease, background .15s ease;
}
.accident-option:hover{ border-color:var(--gold); background:rgba(31,165,114,.05); }
.accident-option svg{ width:22px; height:22px; color:var(--gold); flex:none; }
.accident-option span{ flex:1; }
.accident-option::after{ content:"→"; color:var(--muted); }

/* Services sub-nav tabs */
.tab-nav{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:40px; }
.tab-nav a{
  padding:.65em 1.3em; border-radius:999px; border:1.5px solid var(--border);
  font-weight:700; font-size:.92rem; color:var(--navy);
}
.tab-nav a:hover{ border-color:var(--gold); }
.tab-nav a.active{ background:var(--navy); border-color:var(--navy); color:var(--white); }

/* Photo card with a script-style overlay caption */
.photo-caption{ position:relative; border-radius:var(--radius); overflow:hidden; }
.photo-caption img{ width:100%; height:320px; object-fit:cover; }
.photo-caption::before{ content:""; position:absolute; inset:0; background:linear-gradient(200deg, rgba(8,17,28,0) 45%, rgba(8,17,28,.65) 100%); }
.photo-caption span{
  position:absolute; right:20px; bottom:18px; z-index:1;
  font-family:'Manrope',sans-serif; font-style:italic; font-weight:700; font-size:1.15rem;
  color:var(--white); border-bottom:2px solid var(--gold); padding-bottom:4px;
}

/* Info box (What's included / Why choose fleet checklists) */
.info-box{ background:rgba(31,165,114,.06); border:1px solid rgba(31,165,114,.25); border-radius:var(--radius); padding:28px; display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:center; }
.info-box .check-list{ list-style:none; margin:0; padding:0; display:grid; gap:10px; grid-template-columns:1fr 1fr; }
.info-box .check-list li{ position:relative; padding-left:24px; font-weight:600; color:var(--navy); font-size:.94rem; }
.info-box .check-list li::before{ content:"✓"; position:absolute; left:0; color:var(--gold); font-weight:800; }
.info-box img{ width:100%; height:100%; min-height:160px; object-fit:cover; border-radius:var(--radius-sm); }

/* Why-choose icon row */
.why-row{ display:flex; flex-wrap:wrap; gap:28px; justify-content:space-between; }
.why-item{ flex:1; min-width:160px; text-align:center; }
.why-item .pain-icon{ margin:0 auto 12px; }
.why-item span{ font-weight:700; color:var(--navy); font-size:.95rem; display:block; }
.why-bar{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px; }

/* Reviews (empty state, ready for real client reviews) */
.review-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.review-card{
  background:var(--white); border:1px dashed var(--border); border-radius:var(--radius);
  padding:24px; text-align:center; color:var(--muted); font-size:.94rem;
}
.review-card .stars{ color:var(--gold); font-size:1.1rem; margin-bottom:.6em; letter-spacing:2px; }

/* Footer */
.site-footer{ background:var(--navy); color:rgba(255,255,255,.75); padding:60px 0 26px; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:40px; margin-bottom:40px; }
.footer-grid h4{ color:var(--white); font-size:1rem; font-family:'Source Sans 3',sans-serif; margin-bottom:1em; }
.footer-grid p{ color:rgba(255,255,255,.65); font-size:.93rem; }
.footer-grid ul{ list-style:none; margin:0; padding:0; }
.footer-grid ul li{ margin-bottom:.65em; font-size:.93rem; }
.footer-grid ul a:hover{ color:var(--gold-light); }
.footer-logo{ display:flex; align-items:center; gap:8px; color:var(--white); font-family:'Manrope',sans-serif; font-size:1.2rem; font-weight:800; margin-bottom:.6em; }
.footer-logo img{ height:30px; width:auto; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12); padding-top:22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:.82rem; color:rgba(255,255,255,.5);
}

@media (max-width: 980px){
  .assurance .container, .split, .contact-grid{ grid-template-columns:1fr; }
  .split .media{ order:-1 !important; }
  .pain-grid{ grid-template-columns:repeat(2,1fr); }
  .services-grid, .services-grid.cols-3{ grid-template-columns:repeat(2,1fr); }
  .steps{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .form-row{ grid-template-columns:1fr; }
  .section-head .numeral{ font-size:5rem; }
  .info-box{ grid-template-columns:1fr; }
  .accident-picker{ grid-template-columns:1fr; margin-top:-30px; }
  .process-row{ justify-content:center; }
  .process-arrow{ display:none; }
  .review-grid{ grid-template-columns:1fr; }
}
@media (max-width: 1040px){
  .main-nav{
    position:fixed; inset:82px 0 0 0; background:var(--white);
    flex-direction:column; align-items:flex-start; padding:30px 28px;
    gap:22px; transform:translateX(100%); transition:transform .25s ease;
    border-top:1px solid var(--border);
  }
  .main-nav.open{ transform:translateX(0); }
  .nav-toggle{
    display:flex; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:8px;
  }
  .nav-toggle span{ width:24px; height:2px; background:var(--navy); display:block; }
  .header-phone{ display:none; }
}
@media (max-width: 720px){
  .pain-grid, .services-grid, .services-grid.cols-3, .steps{ grid-template-columns:1fr; }
  section{ padding:56px 0; }
  .footer-grid{ grid-template-columns:1fr; }
  .section-head .numeral{ font-size:3.6rem; }
  body{ background-size:18px 18px; }
  .hero-full{ min-height:560px; padding-top:100px; }
  .hero-full .container{ padding-bottom:40px; }
  .accident-picker{ padding:16px; }
  .accident-option{ padding:13px 14px; font-size:.92rem; }
  .carousel-card{ flex:0 0 220px; }
  .quote-card{ max-width:none; }
}
