/* T.I.E. Transportation — lightweight, original design (no framework) */

:root{
  --bg: #0b0f16;
  --panel: #111827;
  --panel2: #0f172a;
  --text: #e5e7eb;
  --muted: #a3a3a3;
  --line: rgba(255,255,255,.10);
  --accent: #38bdf8;
  --accent2: #22c55e;
  --shadow: 0 14px 40px rgba(0,0,0,.40);
  --radius: 16px;
  --radius2: 22px;
  --max: 1120px;
  --gap: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(1200px 700px at 20% -10%, rgba(56,189,248,.18), transparent 55%),
              radial-gradient(900px 600px at 80% 0%, rgba(34,197,94,.12), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.45;
}

a{color:inherit; text-decoration:none}
a.link, .mini-link{color:var(--accent)}
a.link:hover, .mini-link:hover{opacity:.9; text-decoration:underline}

.container{max-width:var(--max); margin:0 auto; padding:0 18px}
.section{padding:64px 0}
.section-alt{background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)); border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.section-head{margin-bottom:18px}
.section-head h2{margin:0 0 6px; font-size:28px}
.section-head .muted{margin:0}

.muted{color:var(--muted)}
.fineprint{font-size:12.5px; color:rgba(229,231,235,.75)}
.note{
  margin-top:16px;
  padding:14px 14px;
  border:1px solid var(--line);
  background: rgba(17,24,39,.55);
  border-radius: var(--radius);
}

.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{left:18px; top:18px; width:auto; height:auto; padding:10px 12px; background:#fff; color:#000; border-radius:12px; z-index:9999}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(11,15,22,.65);
  border-bottom:1px solid var(--line);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  height:70px;
}
.brand{display:flex; gap:10px; align-items:center}
.brand-logo{width:42px; height:42px}
.brand-text{display:flex; flex-direction:column; line-height:1.1}
.brand-text strong{font-size:15px}
.brand-text .muted{font-size:12px}

.nav{display:flex; gap:14px; align-items:center}
.nav a{font-size:14px; color:rgba(229,231,235,.90)}
.nav a:hover{color:#fff}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px;
  border-radius: 999px;
  border:1px solid rgba(56,189,248,.35);
  background: rgba(56,189,248,.14);
  color:#eaf8ff;
  font-weight:650;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0)}
.btn-sm{padding:9px 12px; font-size:13px}
.btn-ghost{
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  color:rgba(229,231,235,.95);
  box-shadow:none;
}

.nav-toggle{
  display:none;
  background:transparent; border:0; padding:10px; cursor:pointer;
}
.nav-toggle span{display:block; width:24px; height:2px; background:rgba(229,231,235,.85); margin:5px 0; border-radius:2px}

.mobile-nav{
  display:none;
  border-top:1px solid var(--line);
  padding:10px 18px 16px;
}
.mobile-nav a{display:block; padding:10px 0; color:rgba(229,231,235,.92)}

/* Hero */
.hero{padding:54px 0 20px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:28px;
  align-items:start;
}
.eyebrow{
  display:inline-block;
  margin:0 0 10px;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(229,231,235,.78);
}
.hero h1{margin:0 0 10px; font-size:40px; line-height:1.05}
.accent{color:var(--accent)}
.lead{margin:0 0 18px; font-size:16.5px; color:rgba(229,231,235,.90)}
.hero-cta{display:flex; gap:12px; flex-wrap:wrap; margin-bottom:16px}

.trust-row{display:flex; gap:10px; flex-wrap:wrap}
.trust-pill{
  font-size:12.5px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(17,24,39,.55);
}

/* Cards */
.card{
  background: rgba(17,24,39,.72);
  border:1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding:18px;
}
.card h3{margin:0 0 8px; font-size:18px}
.card p{margin:0 0 10px}

.hero-card{position:relative}
.card-head h2{margin:0 0 4px; font-size:22px}
.card-head p{margin:0 0 12px}

/* Tabs + form */
.tabs{display:flex; gap:10px; margin:10px 0 12px}
.tab{
  flex:1;
  padding:10px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:rgba(229,231,235,.90);
  font-weight:600;
  cursor:pointer;
}
.tab.is-active{
  border-color: rgba(56,189,248,.55);
  background: rgba(56,189,248,.12);
}
.quote-form label{display:block; font-size:13px; color:rgba(229,231,235,.85); margin-bottom:10px}
.quote-form input{
  width:100%;
  margin-top:6px;
  padding:11px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(15,23,42,.65);
  color: var(--text);
  outline:none;
}
.quote-form input:focus{border-color: rgba(56,189,248,.60)}
.grid-2{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
.form-foot{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:6px}
.form-actions{display:flex; gap:14px; margin-top:10px; flex-wrap:wrap}
.mini-link{font-size:13px}

.cards-4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.bullets{margin:8px 0 0 18px; padding:0; color:rgba(229,231,235,.86)}
.bullets li{margin:6px 0}
.card-link{display:inline-block; margin-top:12px; color:var(--accent); font-weight:650}

.feature-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.feature{
  padding:16px;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background: rgba(17,24,39,.45);
}
.feature h3{margin:0 0 8px; font-size:16px}
.feature p{margin:0; color:rgba(229,231,235,.85)}

/* Accordion */
.accordion details{
  border:1px solid var(--line);
  background: rgba(17,24,39,.55);
  border-radius: var(--radius2);
  padding:12px 14px;
  margin-bottom:12px;
}
.accordion summary{
  cursor:pointer;
  font-weight:700;
}
.details-body{padding-top:10px; color:rgba(229,231,235,.88)}

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  align-items:start;
}
.contact-cards{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin:14px 0;
}

/* Footer */
.footer{
  padding:28px 0;
  border-top:1px solid var(--line);
  background: rgba(0,0,0,.22);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap:14px;
  align-items:start;
}
.footer-links{display:flex; gap:12px; flex-wrap:wrap}
.footer-links a{font-size:14px; color:rgba(229,231,235,.88)}
.footer-links a:hover{color:#fff}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr; }
  .cards-4{grid-template-columns: 1fr 1fr}
  .feature-grid{grid-template-columns: 1fr 1fr}
  .contact-grid{grid-template-columns: 1fr}
  .footer-grid{grid-template-columns: 1fr}
}
@media (max-width: 760px){
  .nav{display:none}
  .nav-toggle{display:block}
  .mobile-nav.is-open{display:block}
  .grid-2{grid-template-columns: 1fr}
  .cards-4{grid-template-columns: 1fr}
  .feature-grid{grid-template-columns: 1fr}
  .contact-cards{grid-template-columns: 1fr}
  .hero h1{font-size:34px}
}



/* === Header Logo (Safari/Chrome consistent crop) === */
.logo-wrap{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border-radius:14px;
  overflow:hidden;
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.10);
}
.brand-logo-img{
  width:72px;   /* intentionally larger to crop whitespace */
  height:auto;
  transform: translateY(2px) scale(1.08);
  transform-origin: center;
  display:block;
}

/* Mobile drawer brand row */
.mobile-nav-brand{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 0 12px;
  border-bottom:1px solid var(--line);
  margin-bottom:6px;
}
.mobile-nav-brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.mobile-nav-brand-text strong{font-size:14px}
.mobile-nav-brand-text .muted{font-size:12px}

/* Sticky CTA bar */
.sticky-cta{
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 60;
  display:none;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(11,15,22,.70);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}
.sticky-btn{
  flex:1;
  text-align:center;
  padding: 12px 14px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(229,231,235,.95);
  font-weight: 750;
}
.sticky-btn-accent{
  border-color: rgba(56,189,248,.45);
  background: rgba(56,189,248,.16);
  color:#eaf8ff;
}
@media (max-width: 760px){
  .sticky-cta{display:flex;}
  .logo-wrap{width:40px; height:40px; border-radius:13px;}
  .brand-logo-img{width:64px;}
}

/* === Header scale upgrade === */
.site-header { height: 86px; }
.header-row { height: 86px; }
.brand-text strong { font-size: 18px; }
.brand-text .muted { font-size: 14px; }
.logo-wrap { width: 60px; height: 60px; }
.brand-logo-img { width: 92px; }

/* Footer alignment */
.footer-grid {
  grid-template-columns: 1fr;
  text-align: center;
}
.footer-links {
  justify-content: center;
  margin: 10px 0;
}




.header-row{ height: 82px; }
.brand-text strong{ font-size: 17px; letter-spacing:.2px; }
.brand-text .muted{ font-size: 13px; }
.nav a{ font-size: 15px; }
.btn-sm{ padding: 10px 14px; font-size: 14px; }

/* Larger logo in header */
.logo-wrap{ width:54px; height:54px; border-radius:16px; }
.brand-logo-img{ width:86px; transform: translateY(2px) scale(1.08); }

/* Mobile: still comfortable */
@media (max-width: 760px){
  .header-row{ height: 78px; }
  .logo-wrap{ width:48px; height:48px; border-radius:15px; }
  .brand-logo-img{ width:78px; }
}



/* Contact section: centered single column */
.contact-grid{
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.contact-grid > div:first-child{ max-width: 720px; }
.contact-cards{
  grid-template-columns: 1fr 1fr;
  justify-content: center;
}
@media (max-width: 760px){
  .contact-cards{ grid-template-columns: 1fr; }
}



/* Footer: clean alignment */
.footer-grid{
  grid-template-columns: 1.2fr 1fr 1.2fr;
  align-items: center;
}
.footer-brand{
  display:flex;
  gap:12px;
  align-items:center;
}
.footer-brand-text p{ margin:4px 0 0; }
.footer-links{
  justify-content: center;
  gap:14px;
}
.footer-legal{
  text-align: right;
}
.footer-logo{ background: rgba(255,255,255,0.02); }
@media (max-width: 980px){
  .footer-grid{ grid-template-columns: 1fr; align-items: start; }
  .footer-links{ justify-content: flex-start; }
  .footer-legal{ text-align: left; }
}



/* Ensure sticky CTA doesn't cover footer content on small screens */
@media (max-width: 760px){
  .footer{ padding-bottom: 96px; }
}

/* === Header sizing (balanced) === */
.site-header { height:auto; }
.header-row { height: 88px; }

.logo-wrap{
  width:48px;
  height:48px;
  border-radius:14px;
}
.brand-logo-img{
  width:56px; /* ~15% increase */
  height:auto;
}

.brand-text strong{ font-size:18px; }
.brand-text .muted{ font-size:14px; }

.nav a{ font-size:16px; }
.btn-sm{ font-size:15px; padding:10px 16px; }

@media (max-width: 760px){
  .header-row{ height:80px; }
  .logo-wrap{ width:44px; height:44px; }
  .brand-logo-img{ width:52px; }
}

/* Center Call/Text section */
#contact .container{
  display:flex;
  justify-content:center;
}
#contact .contact-grid{
  max-width:900px;
  margin:0 auto;
}



/* === Logo sizing (fix double/oversize issues) === */
.logo-wrap{ overflow:hidden; display:inline-flex; align-items:center; justify-content:center; }
.header-logo{
  width: 52px;  /* ~15% bump vs 46px */
  height: 52px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.10);
}
.footer-logo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.10);
}
.brand-logo-img{
  width: 82px;     /* scaled for internal whitespace crop */
  height: auto;
  display:block;
  transform: translateY(2px) scale(1.06);
  transform-origin:center;
}

/* Header readability */
.header-row{ height: 88px; }
.brand-text strong{ font-size: 18px; }
.brand-text .muted{ font-size: 13.5px; }
.nav a{ font-size: 16px; }
.btn-sm{ font-size: 14.5px; padding: 10px 14px; }

/* Mobile tune */
@media (max-width: 760px){
  .header-row{ height: 82px; }
  .header-logo{ width: 48px; height: 48px; border-radius: 15px; }
  .brand-logo-img{ width: 76px; }
  .footer-logo{ width: 40px; height: 40px; }
}



/* Contact section: visually centered within container */
#contact .contact-grid > div:first-child{
  margin: 0 auto;
}
#contact .contact-cards{
  margin: 14px auto 0;
  max-width: 760px;
}



/* === Center all section headlines === */
.section-head{
  text-align: center;
}
.section-head h2{
  justify-content: center;
}
.section-head .muted{
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}



/* === Footer refinements === */
.footer-brand{
  align-items:flex-start; /* align text starting at logo top */
}

.footer-logo{
  width: 56px;   /* increase logo size */
  height: 56px;
  border-radius: 16px;
}

.footer-brand-text strong{
  display:block;
  margin-top:2px;
}

.footer-legal{
  max-width: 420px;
  line-height: 1.4;
}

/* Prevent awkward wrapping of ambulatory notice */
.footer-legal .fineprint{
  white-space: normal;
}


/* === Hero van (under trust bullets, left column) === */
.hero-van-inline{
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
}

.hero-van-frame{
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  overflow: hidden;
}

.hero-van-img{
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.05) brightness(0.95)
          drop-shadow(0 14px 28px rgba(0,0,0,0.55));
}

@media (max-width: 760px){
  .hero-van-inline{ justify-content: center; }
  .hero-van-frame{ max-width: 420px; }
}


/* === Center-align text inside tabs / pills (without breaking layout) === */
.tabs .tab{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.1;
}

.trust-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.trust-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  white-space:nowrap;
}

/* Optional: center text in generic "pill/chip" UI if present */
.pill, .chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

/* Hero van sits below trust-row */
.hero-van-inline{
  margin-top: 16px;
}

.hero-van-frame{
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  overflow: hidden;
}

.hero-van-img{
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.05) brightness(0.95)
          drop-shadow(0 14px 28px rgba(0,0,0,0.55));
}

@media (max-width: 760px){
  .hero-van-inline{ display:flex; justify-content:center; }
  .hero-van-frame{ max-width: 420px; }
}


/* === Footer wrap / alignment polish === */
.footer-grid{
  grid-template-columns: 1.35fr .75fr 1.25fr;
  align-items: center;
}

.footer-links{
  justify-content: center;
  text-align: center;
}

.footer-legal{
  text-align: right;
}

.footer-legal .fineprint{
  margin: 0;
  line-height: 1.35;
}

@media (min-width: 1100px){
  .footer-legal .fineprint:first-child{
    white-space: nowrap;
  }
}

@media (max-width: 980px){
  .footer-links{ justify-content:flex-start; text-align:left; }
  .footer-legal{ text-align:left; }
}


/* === HERO LAYOUT HARD FIX (desktop 2-col) === */
.hero .hero-inner{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 980px){
  .hero .hero-inner{
    grid-template-columns: 1fr;
  }
}

/* Center-align pill/tab text */
.trust-row span,
.pill,
.chip,
.quote-tabs button,
.quote-tabs .tab,
.segmented button{
  text-align: center;
  justify-content: center;
}

/* Footer wrapping cleanup */
.footer-inner{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}
.footer-inner .footer-left{
  display:flex;
  align-items:center;
  gap:14px;
  min-width: 260px;
}
.footer-inner .footer-mid{
  justify-self:center;
  text-align:center;
}
.footer-inner .footer-right{
  justify-self:end;
  text-align:right;
}
.footer-right .ambulatory{
  white-space: nowrap;
}
@media (max-width: 900px){
  .footer-inner{
    grid-template-columns: 1fr;
    text-align:center;
  }
  .footer-inner .footer-right,
  .footer-inner .footer-mid{
    justify-self:center;
    text-align:center;
  }
  .footer-right .ambulatory{ white-space: normal; }
}


/* === FIX: Hero 2-column layout + pills === */
.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
}

.hero-quote{ min-width: 0; }

.trust-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.trust-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Van under pills */
.hero-van-inline{ margin-top: 16px; display:flex; justify-content:flex-start; }
.hero-van-frame{
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  overflow: hidden;
}
.hero-van-img{ width:100%; height:auto; display:block; }
@media (max-width: 760px){
  .hero-van-inline{ justify-content:center; }
  .hero-van-frame{ max-width: 420px; }
}

/* Center tabs */
.quote-tabs button{ justify-content:center; text-align:center; }


/* === Footer alignment + wrapping fix === */
.footer-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.1fr;
  gap: 18px;
  align-items: center;
}

.footer-brand{
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand-text{
  text-align: left !important;
}

.footer-legal{
  text-align: right;
}

.footer-legal .ambulatory-only{
  white-space: nowrap;
}

@media (max-width: 920px){
  .footer-grid{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand{
    justify-content: center;
  }
  .footer-brand-text{
    text-align: center !important;
  }
  .footer-links{
    justify-content: center;
  }
  .footer-legal{
    text-align: center;
  }
  .footer-legal .ambulatory-only{
    white-space: normal;
  }
}

