/* ============================================================
   mcpca.us — Federal Applications Processor Hoffenmer
   California Motor Carrier Permit — Stylesheet
   Poppins + Lato — Mobile First
   ============================================================ */

:root {
  --blue:      #438CCC;
  --blue-d:    #2d6fa8;
  --blue-pale: #EAF3FB;
  --gold:      #FFF6DD;
  --gold-a:    #E8C96A;
  --bg:        #F2F5F8;
  --white:     #FFFFFF;
  --black:     #1C1C1E;
  --charcoal:  #555555;
  --ash:       #999999;
  --border:    #D8E2EE;
  --p: 'Poppins', sans-serif;
  --l: 'Lato', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--l); color: var(--black); background: var(--white); overflow-x: hidden; line-height: 1.72; font-size: 15px; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ── LAYOUT ── */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── TOPBAR ── */
.topbar {
  background: var(--blue);
  color: rgba(255,255,255,.85);
  text-align: center;
  padding: 9px 16px;
  font-family: var(--l);
  font-size: 11.5px;
  letter-spacing: .3px;
  line-height: 1.5;
}
.topbar a { color: var(--gold); font-weight: 700; }

/* ── NAV ── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 8px 0;
  gap: 12px;
}
.logo-wrap { min-width: 0; flex: 1; }
.logo-main {
  font-family: var(--p);
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.logo-sub {
  font-family: var(--l);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 2px;
  display: block;
}
.nav-r { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-ph { display: none; font-family: var(--p); font-size: 15px; font-weight: 700; color: var(--blue); transition: color .2s; }
.nav-ph:hover { color: var(--blue-d); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--p);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  text-align: center;
}
.btn-blue  { background: var(--blue); color: var(--white); }
.btn-blue:hover  { background: var(--blue-d); }
.btn-ol    { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-ol:hover    { background: var(--blue); color: var(--white); }
.btn-gold  { background: var(--gold-a); color: var(--black); }
.btn-gold:hover  { background: #d4b55a; }
.btn-ghost { background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-lg    { padding: 14px 32px; font-size: 11px; letter-spacing: 1.2px; }

/* ── HERO ── */
.hero { background: var(--bg); overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; }
.hero-text { padding: 48px 20px 40px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-pale);
  color: var(--blue);
  font-family: var(--l);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 12px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}
.hero-h1 { font-family: var(--p); font-size: 32px; font-weight: 700; line-height: 1.2; color: var(--black); margin-bottom: 14px; }
.hero-h1 span { color: var(--blue); }
.hero-body { font-family: var(--l); font-size: 14px; color: var(--charcoal); line-height: 1.82; max-width: 480px; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-ctas .btn { flex: 1; min-width: 130px; }
.hero-phone-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  padding: 16px 20px;
}
.hero-ph-label { font-family: var(--l); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--ash); margin-bottom: 4px; }
.hero-ph { font-family: var(--p); font-size: 24px; font-weight: 700; color: var(--blue); display: block; transition: color .2s; }
.hero-ph:hover { color: var(--blue-d); }
.hero-photo { height: 250px; overflow: hidden; position: relative; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-photo-badge {
  position: absolute; bottom: 16px; right: 16px;
  background: var(--white); border-left: 3px solid var(--gold-a);
  padding: 12px 16px; box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.hero-photo-badge-n { font-family: var(--p); font-size: 24px; font-weight: 700; color: var(--blue); line-height: 1; }
.hero-photo-badge-l { font-family: var(--l); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--charcoal); margin-top: 3px; }

/* ── INFO BAND ── */
.band { padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-inner { display: grid; grid-template-columns: 1fr 1fr; }
.band-item { padding: 14px 16px; border-right: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.band-item:last-child, .band-item:nth-child(even) { border-right: none; }
.band-item:nth-child(3), .band-item:nth-child(4) { border-top: 1px solid var(--border); }
.band-icon { width: 32px; height: 32px; background: var(--blue-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--blue); }
.band-text { font-family: var(--l); font-size: 12px; color: var(--charcoal); line-height: 1.45; }
.band-text strong { display: block; font-size: 12.5px; color: var(--black); margin-bottom: 1px; }

/* ── SECTIONS ── */
.sec { padding: 56px 0; }
.sec-bg { background: var(--bg); }
.sec-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--l); font-size: 10px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 10px;
}
.sec-tag::before { content: ''; width: 16px; height: 1px; background: var(--blue); }
.sec-h { font-family: var(--p); font-size: 25px; font-weight: 700; line-height: 1.22; color: var(--black); margin-bottom: 12px; }
.sec-lead { font-family: var(--l); font-size: 14px; color: var(--charcoal); line-height: 1.82; margin-bottom: 36px; }

/* ── REQUIREMENTS LIST ── */
.req-list-styled { display: flex; flex-direction: column; border: 1px solid var(--border); }
.req-row { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 14px; }
.req-row:last-child { border-bottom: none; }
.req-step { font-family: var(--p); font-size: 18px; font-weight: 700; color: var(--blue); opacity: .4; flex-shrink: 0; width: 28px; line-height: 1; margin-top: 2px; }
.req-info { flex: 1; }
.req-name { font-family: var(--p); font-size: 14px; font-weight: 700; color: var(--black); margin-bottom: 5px; }
.req-desc { font-family: var(--l); font-size: 13px; color: var(--charcoal); line-height: 1.7; }
.req-law { font-size: 10px; color: var(--blue); margin-top: 4px; display: block; font-weight: 700; }
.req-pill {
  display: inline-block; margin-top: 6px; font-size: 9.5px; letter-spacing: 1px;
  text-transform: uppercase; background: var(--blue-pale); color: var(--blue);
  border: 1px solid var(--border); padding: 3px 9px;
}

/* ── START NOW — DUAL CTA SECTION ── */
.start-section { background: var(--blue); }
.start-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.start-call {
  padding: 48px 24px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.start-file {
  padding: 48px 24px;
  background: rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.start-label {
  font-family: var(--l);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
}
.start-title {
  font-family: var(--p);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 10px;
}
.start-body {
  font-family: var(--l);
  font-size: 13.5px;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  margin-bottom: 24px;
}
.start-phone {
  font-family: var(--p);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-a);
  display: block;
  margin-bottom: 6px;
  transition: opacity .2s;
}
.start-phone:hover { opacity: .8; }
.start-hours {
  font-family: var(--l);
  font-size: 11px;
  color: rgba(255,255,255,.45);
  letter-spacing: .5px;
}
.start-file-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--gold-a);
}
.start-divider {
  display: none;
  width: 1px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}

/* ── WHO TABLE ── */
.who-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); }
.who-table th {
  font-family: var(--p); font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--white); background: var(--blue);
  padding: 13px 16px; text-align: left;
}
.who-table td {
  font-family: var(--l); font-size: 13px; color: var(--charcoal);
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  vertical-align: top; line-height: 1.55;
}
.who-table tr:last-child td { border-bottom: none; }
.who-table tr:nth-child(even) td { background: var(--bg); }
.who-table td:first-child { font-weight: 700; color: var(--black); }
.badge-r { display: inline-block; background: #fde8e8; color: #c0392b; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; margin-left: 6px; vertical-align: middle; }
.badge-g { display: inline-block; background: #e8f7e8; color: #27ae60; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; margin-left: 6px; vertical-align: middle; }

/* ── PENALTIES ── */
.pen-grid { display: flex; flex-direction: column; gap: 12px; }
.pen-card { display: flex; background: var(--white); border: 1px solid var(--border); overflow: hidden; }
.pen-accent { width: 5px; background: #e74c3c; flex-shrink: 0; }
.pen-accent.orange { background: #e67e22; }
.pen-body { padding: 18px 20px; }
.pen-title { font-family: var(--p); font-size: 14px; font-weight: 700; color: #c0392b; margin-bottom: 6px; }
.pen-title.orange { color: #c0802b; }
.pen-text { font-family: var(--l); font-size: 13.5px; color: var(--charcoal); line-height: 1.72; }
.pen-cite { font-size: 10px; color: var(--blue); margin-top: 6px; display: block; }

/* ── BOTTOM CTA ── */
.cta-section { background: var(--blue); padding: 52px 20px; }
.cta-inner-wrap { max-width: 620px; margin: 0 auto; text-align: center; }
.cta-h { font-family: var(--p); font-size: 26px; font-weight: 700; color: var(--white); margin-bottom: 10px; line-height: 1.25; }
.cta-sub { font-family: var(--l); font-size: 14px; color: rgba(255,255,255,.78); margin-bottom: 28px; line-height: 1.7; }
.cta-phone { font-family: var(--p); font-size: 36px; font-weight: 700; color: var(--gold); display: block; margin-bottom: 16px; }
.cta-phone:hover { opacity: .85; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: #f7f8fa; border-top: 1px solid var(--border); padding: 48px 0 26px; }
.foot-grid { display: flex; flex-direction: column; gap: 28px; margin-bottom: 30px; }
.foot-name { font-family: var(--p); font-size: 13px; font-weight: 700; color: var(--black); margin-bottom: 3px; }
.foot-dom { font-family: var(--l); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--ash); margin-bottom: 10px; }
.foot-desc { font-family: var(--l); font-size: 12px; color: var(--charcoal); line-height: 1.7; }
.foot-h { font-family: var(--p); font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--black); margin-bottom: 12px; }
.foot-ul { list-style: none; }
.foot-ul li { margin-bottom: 8px; }
.foot-ul a { font-family: var(--l); font-size: 12.5px; color: var(--charcoal); transition: color .2s; }
.foot-ul a:hover { color: var(--blue); }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 18px; }
.foot-disc { font-family: var(--l); font-size: 10px; color: var(--ash); line-height: 1.65; }

/* ══════════════════════════════════════════
   MODAL
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.72);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--white);
  width: 100%;
  max-width: 720px;
  border-top: 4px solid var(--blue);
  position: relative;
  transform: translateY(20px);
  transition: transform .28s ease;
  margin: auto;
}
.modal-overlay.open .modal {
  transform: translateY(0);
}
.modal-header {
  background: var(--blue-pale);
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.modal-header-text { }
.modal-header-title {
  font-family: var(--p);
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 3px;
}
.modal-header-sub {
  font-family: var(--l);
  font-size: 11.5px;
  color: var(--charcoal);
}
.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ash);
  font-size: 22px;
  line-height: 1;
  padding: 2px 4px;
  flex-shrink: 0;
  transition: color .2s;
}
.modal-close:hover { color: var(--black); }
.modal-body { padding: 24px; }

/* ── FORM ELEMENTS (shared by modal) ── */
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label {
  font-family: var(--l); font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--charcoal); font-weight: 700;
}
.form-label span { color: #c0392b; margin-left: 2px; }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); background: var(--white);
  font-family: var(--l); font-size: 14px; color: var(--black);
  outline: none; transition: border-color .2s;
  border-radius: 0; -webkit-appearance: none;
}
.form-control:focus { border-color: var(--blue); }
.form-control::placeholder { color: var(--ash); }
.form-control.error { border-color: #e74c3c; }
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 5 5-5z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
textarea.form-control { min-height: 80px; resize: vertical; }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 6px 0 2px; }
.form-section-label {
  font-family: var(--p); font-size: 10.5px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px; margin-top: 6px;
}
.form-submit {
  width: 100%; padding: 14px;
  background: var(--blue); color: var(--white);
  font-family: var(--p); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  border: none; cursor: pointer; transition: background .2s;
}
.form-submit:hover { background: var(--blue-d); }
.form-submit:disabled { background: var(--ash); cursor: default; }
.form-note {
  font-family: var(--l); font-size: 10.5px; color: var(--ash);
  margin-top: 14px; line-height: 1.6; text-align: center;
}
.form-success {
  display: none;
  background: #e8f7e8; border: 1px solid #a8d8a8;
  border-left: 3px solid #27ae60;
  padding: 16px 18px; margin-top: 16px;
  font-family: var(--l); font-size: 13.5px; color: #1a6b1a; line-height: 1.6;
}
.form-gap { margin-top: 14px; }

/* ── LIVE CHAT ── */
#cw { position: fixed; bottom: 20px; right: 20px; z-index: 500; }
#ctgl {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(67,140,204,.35);
  transition: background .2s, transform .2s; position: relative;
}
#ctgl:hover { background: var(--blue-d); transform: scale(1.06); }
#ctgl svg { color: #fff; }
.cdot {
  position: absolute; top: 2px; right: 2px;
  width: 12px; height: 12px; background: var(--gold-a);
  border-radius: 50%; border: 2px solid #fff;
  animation: cp 2s infinite;
}
@keyframes cp { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.3);opacity:.7} }
#cwin {
  display: none; flex-direction: column;
  position: absolute; bottom: 62px; right: 0; width: 300px;
  background: var(--white); border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(0,0,0,.12); overflow: hidden;
}
#cwin.open { display: flex; }
.c-head { background: var(--blue); padding: 13px 15px; display: flex; align-items: center; gap: 10px; }
.c-av { width: 32px; height: 32px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--p); font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
.c-nm { font-family: var(--p); font-size: 12px; font-weight: 600; color: #fff; }
.c-st { font-family: var(--l); font-size: 11px; color: rgba(255,255,255,.5); }
.c-x { background: none; border: none; color: rgba(255,255,255,.5); cursor: pointer; font-size: 18px; padding: 4px; margin-left: auto; }
.c-x:hover { color: #fff; }
.c-msgs { flex: 1; min-height: 160px; max-height: 230px; overflow-y: auto; padding: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 9px; }
.m { max-width: 90%; padding: 9px 12px; font-family: var(--l); font-size: 13px; line-height: 1.5; }
.m.ag { background: var(--white); color: var(--black); align-self: flex-start; border: 1px solid var(--border); }
.m.us { background: var(--blue); color: #fff; align-self: flex-end; }
.c-foot { display: flex; border-top: 1px solid var(--border); }
.c-inp { flex: 1; border: none; padding: 12px; font-family: var(--l); font-size: 13px; color: var(--black); outline: none; }
.c-snd { background: var(--blue); border: none; color: #fff; padding: 12px 14px; cursor: pointer; font-size: 16px; transition: background .2s; }
.c-snd:hover { background: var(--blue-d); }

/* ── SCROLL FADE 
.fade { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade.in { opacity: 1; transform: none; }── */

/* ══════════════════════════════════════════
   TABLET — 640px+
══════════════════════════════════════════ */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .hero-h1 { font-size: 40px; }
  .hero-photo { height: 320px; }
  .band-inner { grid-template-columns: repeat(4,1fr); }
  .band-item:nth-child(3), .band-item:nth-child(4) { border-top: none; }
  .band-item:nth-child(even) { border-right: 1px solid var(--border); }
  .band-item:last-child { border-right: none; }
  .start-inner { flex-direction: row; }
  .start-call { border-bottom: none; border-right: 1px solid rgba(255,255,255,.12); flex: 1; }
  .start-file { flex: 1; }
  .start-divider { display: block; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .pen-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-btns { flex-wrap: nowrap; }
}

/* ══════════════════════════════════════════
   DESKTOP — 1024px+
══════════════════════════════════════════ */
@media (min-width: 1024px) {
  .container { padding: 0 52px; }
  .nav-ph { display: block; }
  .logo-main { font-size: 14px; }
  .nav-inner { min-height: 66px; }
  .hero-inner { display: grid; grid-template-columns: 52% 48%; align-items: stretch; }
  .hero-text { padding: 80px 60px 72px 0; }
  .hero-photo { height: auto; min-height: 460px; }
  .hero-h1 { font-size: 48px; }
  .hero-body { font-size: 14.5px; }
  .hero-ctas .btn { flex: none; }
  .sec { padding: 84px 0; }
  .sec-h { font-size: 34px; }
  .sec-lead { font-size: 14.5px; }
  .start-call, .start-file { padding: 72px 56px; }
  .start-title { font-size: 26px; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; gap: 52px; }
  .cta-section { padding: 80px 48px; }
  .cta-h { font-size: 34px; }
  .modal { margin-top: 40px; }
}
