/* ==========================================================
   Effingham Transport — shared styles
   Brand colors: change these variables to re-theme the site.
   Logos have black text: only place them on --bg or --bg-alt.
   ========================================================== */
:root {
  --brand-red: #C60212;       /* accents, buttons, rules, icons */
  --brand-red-dark: #9E010E;  /* hover */
  --brand-black: #111111;     /* headings */
  --text: #1a1a1a;
  --muted: #555555;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --border: #dddddd;

  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --radius: 8px;
  --max: 1100px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; /* 18px */ -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img, iframe { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--brand-black); line-height: 1.15; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.1rem); }
h3 { font-size: 1.3rem; }
/* Thin red rule under section headings, echoing the logo's lines */
.section h2::after, .page-hero h1::after {
  content: ""; display: block; width: 56px; height: 3px; background: var(--brand-red); margin-top: .45em;
}
.center h2::after, .center h1::after { margin-left: auto; margin-right: auto; }
.card h2::after, .callout h2::after, .note h2::after { display: none; }
p, ul, ol { margin: 0 0 1em; }
a { color: var(--brand-black); text-decoration-color: var(--brand-red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--brand-red); }
:focus-visible { outline: 3px solid var(--brand-black); outline-offset: 3px; border-radius: 4px; }


/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--brand-black); color: #fff;
  padding: .75rem 1rem; border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.1rem; }
.section { padding: 3rem 0; }
.section--gray { background: var(--bg-alt); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 850px) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .75rem 1.4rem;
  border-radius: var(--radius); border: 2px solid transparent;
  font-size: 1.05rem; font-weight: 700; text-decoration: none; line-height: 1.2;
  cursor: pointer;
}
.btn--primary { background: var(--brand-red); color: #fff; }
.btn--primary:hover { background: var(--brand-red-dark); color: #fff; }
.btn--secondary { background: var(--bg); color: var(--brand-black); border-color: var(--brand-black); }
.btn--secondary:hover { background: var(--brand-black); color: #fff; }
.btn--lg { min-height: 60px; font-size: 1.2rem; padding: .9rem 1.6rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
@media (max-width: 499px) { .btn-row .btn { width: 100%; } }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-bottom: 3px solid var(--brand-red); position: relative; z-index: 20; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo { display: block; padding: .4rem 0; }
.logo img { height: 34px; width: auto; }
.header-phone { display: none; font-weight: 700; color: var(--brand-black); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--brand-red); }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; padding: .5rem .9rem;
  background: var(--bg); color: var(--brand-black); border: 2px solid var(--brand-black); border-radius: var(--radius);
  font: inherit; font-weight: 700; cursor: pointer;
}
.site-nav { width: 100%; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.no-js .nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 1rem; }
.site-nav a {
  display: block; padding: .8rem .25rem; min-height: 48px;
  color: var(--brand-black); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--border);
}
.site-nav a:hover { color: var(--brand-red); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--brand-red); text-decoration-thickness: 3px; }

@media (min-width: 960px) {
  .header-inner { flex-wrap: nowrap; }
  .logo img { height: 46px; }
  .nav-toggle { display: none; }
  .site-nav { display: block !important; width: auto; margin-left: auto; }
  .site-nav ul { display: flex; gap: .15rem; padding: 0; }
  .site-nav a { border: 0; padding: .6rem .65rem; display: flex; align-items: center; }
  .header-phone { display: inline-flex; align-items: center; min-height: 48px; }
}
@media (min-width: 960px) and (max-width: 1100px) {
  .logo img { height: 38px; }
  .site-nav a { padding: .6rem .45rem; }
}
.site-nav a { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { background: var(--bg); padding: 2.5rem 0 3rem; }
.hero-grid { display: grid; gap: 1.5rem; align-items: center; }
.hero-logo { width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.tagline { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.5rem; color: var(--brand-red); margin-bottom: .4rem; }
@media (min-width: 850px) {
  .hero-grid { grid-template-columns: 5fr 6fr; gap: 3rem; }
}
.page-hero { background: var(--bg-alt); padding: 2.5rem 0; }
.page-hero .lead { margin-bottom: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg); border: 1px solid var(--border); border-top: 3px solid var(--brand-red);
  border-radius: var(--radius); padding: 1.4rem;
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.trust-item { display: flex; gap: .8rem; align-items: flex-start; }
.trust-icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-red); color: #fff; display: grid; place-items: center;
}
.trust-icon svg { width: 24px; height: 24px; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.2rem; height: 1.2rem;
  background: var(--brand-red); border-radius: 50%;
}
.check-list li::after {
  content: ""; position: absolute; left: .42rem; top: .52em; width: .35rem; height: .65rem;
  border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg);
}


/* ---------- Callout / contact ---------- */
.callout {
  background: var(--bg-alt); border-top: 4px solid var(--brand-red); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center;
}
.callout .big-phone { font-family: var(--font-head); font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 700; color: var(--brand-black); text-decoration: none; display: inline-block; margin: .2rem 0 .8rem; }
.callout .big-phone:hover { color: var(--brand-red); }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 1rem; }
.contact-list strong { display: block; color: var(--brand-black); }
.map-embed { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--bg-alt); }
.note { border-left: 5px solid var(--brand-red); background: var(--bg-alt); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; }
.section--gray .note { background: var(--bg); }

/* ---------- Footer (light, so the logo's black text works) ---------- */
.site-footer { background: var(--bg-alt); color: var(--text); border-top: 3px solid var(--brand-red); padding: 2.5rem 0 6rem; font-size: .95rem; }
.site-footer h2 { font-size: 1.15rem; margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-logo { width: 240px; max-width: 100%; height: auto; margin-bottom: 1rem; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } .site-footer { padding-bottom: 2.5rem; } }
.footer-legal { border-top: 1px solid var(--border); margin-top: 1.5rem; padding-top: 1rem; font-size: .88rem; color: var(--muted); }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  background: var(--bg); box-shadow: 0 -2px 12px rgba(0,0,0,.15);
}
.call-bar .btn { width: 100%; }
@media (min-width: 800px) { .call-bar { display: none; } }

/* ---------- Misc ---------- */
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .85rem; color: var(--brand-red); margin-bottom: .4rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.logo-404 { width: 220px; height: auto; margin: 0 auto 1.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.split--top { align-items: start; }
.btn-row--center { justify-content: center; }
.card h2 { font-size: 1.5rem; }
a[href^="tel:"]:not(.btn) { white-space: nowrap; }
@media (min-width: 1000px) { .grid--4 .trust-item { flex-direction: column; } }
