@import url("https://fonts.googleapis.com/css?family=Montserrat:400,600,700,800&display=swap");
/* ==========================================================================
   op-home.css  —  www.dmvoperatorcourse.com home page (index.php)
   BUILD 2026-11-24-A

   Link it as the LAST line of the <head> on index.php, after css/styles.css:
     <link href="css/op-home.css" rel="stylesheet" />
   Removing that line puts the home page back as it is today.
   css/styles.css is never edited.

   Same family as op-course.css (course and registration pages):
     bright blue header #1d4ed8 -> #3b82f6 · accents #1d4ed8 · light sky sections
     green "Get Started" buttons kept · Montserrat headings

   Parts
     0  Colours and page
     1  Top bar (navigation)
     2  Section headings
     3  Welcome block (hero)
     4  "The Leader in Traffic Safety" (four points)
     5  Course cards (8-hour / 4-hour)
     6  Prices
     7  Need Help? (contact)
     8  Footer and FAQ pop-ups
     9  Wobble fix (no sliding on scroll, nothing wider than the screen)
    10  Phones
   ========================================================================== */

/* ---------- 0. Colours and page ---------- */
:root {
  --oh-navy:  #0f1f4b;
  --oh-blue1: #1d4ed8;
  --oh-blue2: #3b82f6;
  --oh-blue:  #1d4ed8;
  --oh-sky:   #eaf1ff;
  --oh-sky2:  #f5f8ff;
  --oh-maroon:#550000;
  --oh-green: #16a34a; --oh-green-hv: #15803d;
  --oh-ink:   #1c2433;
  --oh-slate: #55627a;
  --oh-rule:  #dfe5ec;
  --oh-head: "Montserrat", -apple-system, "Segoe UI", Arial, sans-serif;
  --oh-body: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
body#page-top { font-family: var(--oh-body); color: var(--oh-ink); background: #fff; overflow-x: clip; }
body#page-top p { line-height: 1.65; }
body#page-top a { color: var(--oh-blue); }
body#page-top p a { overflow-wrap: anywhere; }   /* the long trafficsafetyconsultants.com address */

/* ---------- 1. Top bar ---------- */
#mainNav, #mainNav.navbar-shrink {
  padding: 10px 0 !important;
  background: linear-gradient(100deg, var(--oh-blue1) 0%, #2563eb 50%, var(--oh-blue2) 100%) !important;
  border-bottom: 3px solid #93c5fd;
  box-shadow: 0 2px 14px rgba(30,58,138,.28);
}
#mainNav .navbar-brand { margin-right: 8px; max-width: calc(100% - 110px); }
#mainNav .navbar-brand img { height: 46px !important; width: auto; max-width: 100%; object-fit: contain; }
#mainNav .navbar-nav .nav-item .nav-link {
  margin: 0 2px; padding: 9px 16px !important; border-radius: 999px;
  font: 700 .9rem/1.2 var(--oh-head) !important; letter-spacing: .04em; color: #fff !important;
}
#mainNav .navbar-nav .nav-item .nav-link:hover { background: rgba(255,255,255,.15); }
/* Login stands out as a button */
#mainNav .nav-link[href*="login.php"] { background: #fff; color: var(--oh-blue1) !important; }
#mainNav .nav-link[href*="login.php"]:hover { background: var(--oh-sky); }
#mainNav .navbar-toggler {
  flex: 0 0 auto; padding: 8px 12px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 999px;
  font: 700 .85rem var(--oh-head); color: #fff; background: transparent;
}

/* ---------- 2. Section headings ---------- */
body#page-top .section-heading {
  font: 800 2rem/1.2 var(--oh-head) !important; letter-spacing: -.01em; text-transform: none !important;
  color: var(--oh-navy) !important; margin-bottom: 10px;
}
body#page-top .page-section .text-center > .section-heading::after {
  content: ""; display: block; width: 64px; height: 4px; margin: 14px auto 0;
  border-radius: 4px; background: linear-gradient(90deg, var(--oh-blue2), #22c55e);
}
body#page-top .section-subheading {
  font: 500 1.05rem/1.55 var(--oh-body) !important; font-style: normal !important;
  color: var(--oh-slate) !important; margin: 0 auto 40px; max-width: 720px;
}

/* ---------- 3. Welcome block ---------- */
body#page-top > br { display: none; }           /* the five line breaks under the top bar */
#services {
  padding: 120px 0 56px;                       /* room for the fixed top bar */
  background: linear-gradient(180deg, var(--oh-sky) 0%, var(--oh-sky2) 60%, #fff 100%);
}
#services .row { align-items: center; row-gap: 24px; }
#services img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 18px; box-shadow: 0 18px 40px rgba(15,31,75,.18); }
#services h1.section-heading {
  font: 800 2.3rem/1.15 var(--oh-head) !important; color: var(--oh-blue1) !important;
  text-transform: none !important; text-align: left; margin-bottom: 18px;
}
#services .col-lg-6 { text-align: left; }
#services p.section-subheading { max-width: none; margin: 0 0 14px; color: var(--oh-ink) !important; font-size: 1.05rem !important; }
#services p.section-subheading strong { font-weight: 600; }
#services p { color: var(--oh-slate); }
/* a call to action under the welcome text, using the existing pricing anchor */
#services .col-lg-6:last-child::after {
  content: "8-Hour Operator Course  ·  4-Hour Operator Renewal";
  display: inline-block; margin-top: 6px; padding: 8px 16px; border-radius: 999px;
  font: 700 .85rem/1.3 var(--oh-head); color: var(--oh-blue1); background: #fff; border: 1.5px solid #c7d6fb;
}

/* ---------- 4. Four points ---------- */
#services + .page-section { padding: 64px 0; background: #fff; }
body#page-top .fa-stack .fa-circle { color: var(--oh-blue2) !important; }
body#page-top .page-section .col-md-6.tile:has(.fa-stack) {
  padding: 26px 22px; margin-bottom: 18px;
}
body#page-top .page-section .row.text-center > .col-md-6 > .fa-stack + h4,
body#page-top .page-section h4.my-3 { font: 800 1.2rem/1.3 var(--oh-head); color: var(--oh-navy); }
body#page-top .page-section .text-muted { color: var(--oh-slate) !important; }

/* ---------- 5. Course cards ---------- */
#portfolio { padding: 64px 0; background: var(--oh-sky) !important; }
#portfolio .portfolio-item {
  overflow: hidden; border-radius: 18px; background: #fff;
  border: 1px solid var(--oh-rule); box-shadow: 0 10px 30px rgba(15,31,75,.08);
}
#portfolio .portfolio-item img { display: block; width: 100%; height: auto; }
#portfolio .portfolio-item .portfolio-link .portfolio-hover { background: rgba(30,58,138,.82); }
#portfolio .portfolio-item .portfolio-caption { padding: 18px 20px 20px; background: #fff; text-align: center; }
#portfolio .portfolio-caption-heading { font: 800 1.3rem/1.3 var(--oh-head) !important; color: var(--oh-blue1); }
#portfolio .portfolio-caption-subheading { margin-top: 6px; font-style: normal !important; }
#portfolio .portfolio-caption-subheading a {
  display: inline-block; margin-top: 4px; padding: 8px 16px; border-radius: 999px;
  font: 700 .9rem/1.3 var(--oh-head); color: var(--oh-blue); background: var(--oh-sky); text-decoration: none;
}

/* ---------- 6. Prices ---------- */
#pricing {
  padding: 72px 0; background: linear-gradient(180deg, var(--oh-sky) 0%, #dbeafe 100%) !important;
}
#pricing .card { border-top: 6px solid var(--oh-blue2) !important; }
#pricing .card {
  height: 100%; border: 0; border-radius: 20px; overflow: hidden;
  box-shadow: 0 16px 36px rgba(37,99,235,.18); transition: transform .2s;
}
#pricing .card:hover { transform: translateY(-4px); }
#pricing .card-body { padding: 30px 28px; }
#pricing .card-title {
  margin: 0 0 6px; font: 800 1rem/1.3 var(--oh-head) !important; letter-spacing: .06em;
  color: var(--oh-blue1) !important;
}
#pricing .card-price { margin: 0; font: 800 3rem/1.1 var(--oh-head) !important; color: var(--oh-navy); }
#pricing .card hr { margin: 20px 0; border-color: var(--oh-rule); opacity: 1; }
#pricing .fa-ul { margin-left: 1.9em; }
#pricing .fa-ul li { margin-bottom: 10px; font-size: 1rem; color: var(--oh-ink); }
#pricing .fa-ul .fa-check { color: var(--oh-green); }
#pricing .fa-ul li.text-muted { color: #8b97a8 !important; }
#pricing .fa-ul li.text-muted .fa-times { color: #c0392b; }
#pricing .btn-success {
  padding: 15px 20px; border: 0; border-radius: 999px;
  font: 800 1.05rem/1.2 var(--oh-head); letter-spacing: .06em;
  color: #fff !important; background: var(--oh-green); box-shadow: 0 8px 18px rgba(22,163,74,.35);
}
#pricing .btn-success:hover { background: var(--oh-green-hv); }
#pricing .row > p.text-center { margin-top: 32px; color: var(--oh-ink); font-size: 1rem; }
#pricing .row > p.text-center a { color: var(--oh-blue); font-weight: 800; text-decoration: underline; }

/* ---------- 7. Need Help? ---------- */
#contact { padding: 72px 0; background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important; background-image: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important; }
body#page-top #contact .section-heading { color: #fff !important; }
body#page-top #contact .section-heading::after { background: #fff !important; }
body#page-top #contact .section-subheading { color: #eaf1ff !important; }
#contact .timeline::before { background: rgba(255,255,255,.18); }
#contact .timeline > li .timeline-image { background: #fff; border: 6px solid rgba(255,255,255,.35); }
#contact .timeline-panel { padding: 18px 22px !important; border-radius: 16px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.30); }
#contact .timeline-body p { margin: 0; color: #fff !important; font-size: 1rem; }
#contact .timeline-body strong { color: #fff; }
#contact .timeline-body a { color: #fff; font-weight: 800; text-decoration: underline; }

/* ---------- 8. Footer and FAQ pop-ups ---------- */
body#page-top .footer { padding: 22px 0 !important; background: #1d4ed8; color: #eaf1ff; font-size: .9rem; }
.portfolio-modal .modal-content { border-radius: 20px; padding: 48px 0 32px !important; }
.portfolio-modal h2 { font: 800 1.8rem/1.2 var(--oh-head) !important; color: var(--oh-blue1) !important; text-transform: none !important; }
.portfolio-modal .section-heading::after { display: none; }
.portfolio-modal p { text-align: left; font-size: 1.02rem; color: var(--oh-ink); }
.portfolio-modal img.img-fluid { border-radius: 14px; margin-bottom: 20px; }
.portfolio-modal .btn-primary { color: #fff !important; border: 0; border-radius: 999px; background: var(--oh-green); font-family: var(--oh-head); font-weight: 800; padding: 16px 30px; }
.portfolio-modal .btn-primary:hover { background: var(--oh-green-hv); }
.portfolio-modal .accordion-item { border-color: var(--oh-rule); }
.portfolio-modal .accordion-button { font: 700 1rem/1.35 var(--oh-head); color: var(--oh-navy); }
.portfolio-modal .accordion-button:not(.collapsed) { color: var(--oh-blue1); background: var(--oh-sky); box-shadow: none; }
.portfolio-modal .accordion-button:focus { box-shadow: 0 0 0 4px rgba(37,99,235,.2); }
.portfolio-modal .accordion-body { text-align: left; color: var(--oh-ink); line-height: 1.6; }

/* ---------- 9. Wobble fix ----------
   The page slides every block 150% of its height as you scroll (ScrollReveal),
   which is the wobble. These lines keep every block still and in place. */
body#page-top .tile, body#page-top [data-sr-id] {
  transform: none !important; opacity: 1 !important; visibility: visible !important; transition: none !important;
}
body#page-top img { max-width: 100%; height: auto; }

/* ---------- 10. Phones ---------- */
@media (max-width: 991.98px) {
  #mainNav .navbar-collapse { margin-top: 10px; padding: 8px; border-radius: 14px; background: rgba(15,31,75,.35); }
  #mainNav .navbar-nav .nav-item .nav-link { padding: 12px 16px !important; }
  #services { padding-top: 100px; }
  #services h1.section-heading { font-size: 1.8rem !important; text-align: center; }
  #services .col-lg-6 { text-align: center; }
  #services p.section-subheading, #services p { text-align: left; }
  #pricing .card { margin-bottom: 20px; }
}
@media (max-width: 575.98px) {
  body#page-top .section-heading { font-size: 1.6rem !important; }
  #services { padding: 92px 0 40px; }
  #services h1.section-heading { font-size: 1.55rem !important; }
  #services .col-lg-6:last-child::after { font-size: .78rem; }
  #services + .page-section, #portfolio, #pricing, #contact { padding: 48px 0; }
  #pricing .card-price { font-size: 2.5rem !important; }
  #mainNav .navbar-brand img { height: 36px !important; }
  #mainNav .container { padding-left: 12px; padding-right: 12px; }
}
