:root {
  /* Teo's Towing brand tokens */
  --brand-navy: #041E42;      /* primary brand color: nav, footer, dark sections */
  --brand-blue: #6FA8DC;      /* accents, links, icons, primary CTA */
  --brand-blue-dark: #2E5F8A; /* hover / higher-contrast blue for text on white */
  --brand-silver: #B7BDC3;    /* borders, dividers, metallic accents */
  --brand-white: #FFFFFF;
  --brand-light: #F5F7F9;     /* section background */
  --brand-dark: #071522;      /* near-black, body text */
  --muted: #55636e;           /* readable secondary text (navy-tinted gray) */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--brand-dark);
  background: var(--brand-white);
}

a { color: inherit; }

.wrap { max-width: 720px; margin: 0 auto; }

/* Buttons */
.btn {
  display: block;
  padding: 20px 16px;
  border-radius: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  border: 3px solid transparent;
}

.btn-call { background: var(--brand-blue); color: var(--brand-navy); }
.btn-call:hover, .btn-call:focus-visible { background: var(--brand-navy); color: var(--brand-white); }
.btn-call .num { display: block; font-size: 1.9rem; }
.btn-outline { border-color: currentColor; }

.btn-row { display: flex; gap: 12px; }
.btn-row .btn { flex: 1; padding: 16px 8px; font-size: 1.15rem; }

/* Home hero (photo-ready: set --hero-image on the element) */
.hero {
  padding: 40px 16px 48px;
  color: var(--brand-white);
  background-color: var(--brand-navy);
  background-image: linear-gradient(rgba(4, 30, 66, 0.35), rgba(4, 30, 66, 0.55)), var(--hero-image, none);
  background-size: cover;
  background-position: center;
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
  text-align: center;
}

.hero .brand,
.hero h1,
.hero .sub,
.hero .where {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.brand {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: 200px;
  max-width: 55%;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.footer-logo {
  display: block;
  width: 140px;
  max-width: 50%;
  height: auto;
  margin: 0 auto 14px;
}

.hero h1 { margin: 8px 0 0; font-size: 2.8rem; line-height: 1.05; }
.hero .quote-note { margin: 0 0 -6px; font-size: 0.85rem; font-weight: 400; color: #cfe0f0; }
.hero .sub { margin: 0; color: #dde6ef; }
.hero .btn-outline { color: var(--brand-white); }
.hero .where { margin: 8px 0 0; font-size: 0.95rem; color: #b9c8d8; }

/* Hero Call Now: sleeker than the default .btn-call — same tap width, ~30% shorter */
.hero .btn-call {
  padding: 8px 16px;
  line-height: 1.05;
}
.hero .btn-call .num { line-height: 1.05; }

/* Sections */
section { padding: 40px 16px; }
section.alt { background: var(--brand-light); }
section.dark { background: var(--brand-navy); color: var(--brand-white); }

/* Full-width photo section (combine with .dark: class="dark photo", --hero-image inline) */
section.photo {
  position: relative;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
section.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(4, 30, 66, 0.72), rgba(4, 30, 66, 0.85));
}
section.photo > .wrap { position: relative; z-index: 1; }

@media (min-width: 700px) {
  section.photo { background-attachment: fixed; }
}

section.dark.photo .service-group { border-bottom-color: rgba(183, 189, 195, 0.35); }
section.dark.photo .service-group p { color: #cbd8e6; }

/* Stronger overlay for busy source images (their own baked-in text/icons) */
section.photo-dense::before {
  background: linear-gradient(rgba(4, 30, 66, 0.87), rgba(4, 30, 66, 0.93));
}

section h2 { margin: 0 0 14px; font-size: 1.5rem; line-height: 1.2; }
section p { margin: 0 0 12px; }

ul.list { margin: 0; padding: 0; list-style: none; }
ul.list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid var(--brand-silver);
}
ul.list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.1em;
  width: 10px;
  height: 10px;
  background: var(--brand-blue);
  border-radius: 2px;
}

ul.cities {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
ul.cities li {
  padding: 6px 14px;
  font-size: 0.95rem;
  background: var(--brand-white);
  border: 1px solid var(--brand-silver);
  border-radius: 999px;
}

.note { font-size: 0.95rem; color: var(--muted); }

.photo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

.service-group {
  padding: 16px 0;
  border-bottom: 1px solid var(--brand-silver);
}
.service-group:last-child { border-bottom: none; }
.service-group h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-group h3::before {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  background: var(--brand-blue);
  border-radius: 2px;
}
.service-group p { margin: 0; color: var(--muted); }

.area-sample {
  font-weight: 700;
  color: var(--brand-navy);
}

.text-link { font-weight: 700; color: var(--brand-blue-dark); }
section.dark .text-link { color: var(--brand-white); }

/* Live Dispatch callout */
.dispatch-section {
  background: var(--brand-white);
  border-left: 6px solid var(--brand-blue);
  padding: 28px 16px 28px 20px;
}
.dispatch-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue-dark);
  margin: 0 0 10px;
}
.dispatch-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
  flex-shrink: 0;
}
.dispatch-section h2 { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.25; }
.dispatch-section p { margin: 0 0 16px; color: var(--muted); }
.dispatch-section .btn-outline { border-color: var(--brand-navy); color: var(--brand-navy); }
.dispatch-icon { flex-shrink: 0; }
.dispatch-phone { margin: 14px 0 0 !important; font-weight: 700; }
.dispatch-phone a { color: var(--brand-blue-dark); }

/* Card grid (Who We Serve / Professional Operations) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.card {
  background: var(--brand-white);
  border: 1px solid var(--brand-silver);
  border-top: 3px solid var(--brand-silver);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(4, 30, 66, 0.06);
}
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
section.alt .card { background: var(--brand-white); }

/* About preview */
.about-tag {
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin: 0 0 12px;
}

/* Placeholder marker for facts still needed */
.todo {
  padding: 12px 14px;
  border: 2px dashed var(--brand-blue);
  border-radius: 8px;
  background: #eef5fb;
  font-size: 0.95rem;
}

/* Top bar (inner pages) */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--brand-navy);
  color: var(--brand-white);
}
.topbar a { text-decoration: none; }
.topbar .back { font-size: 0.95rem; color: #b9c8d8; }
.topbar .call {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
  background: var(--brand-blue);
  color: var(--brand-navy);
}

.page-hero {
  padding: 48px 16px;
  background: var(--brand-navy);
  color: var(--brand-white);
  border-bottom: 4px solid var(--brand-silver);
}
.page-hero h1 { margin: 0 0 12px; font-size: 2.2rem; line-height: 1.1; }
.page-hero p { margin: 0 0 10px; color: #dde6ef; }

.commercial-hero {
  padding: 48px 16px;
  color: var(--brand-white);
  background-color: var(--brand-navy);
  background-image: linear-gradient(rgba(4, 30, 66, 0.65), rgba(4, 21, 45, 0.85)), var(--hero-image, none);
  background-size: cover;
  background-position: center;
  border-bottom: 4px solid var(--brand-silver);
}
.commercial-hero .brand { text-align: left; margin-bottom: 10px; color: var(--brand-blue); }
.commercial-hero h1 { margin: 0 0 14px; font-size: 2rem; line-height: 1.15; }
.commercial-hero p { margin: 0; color: #dde6ef; font-size: 1.05rem; }

/* Request form */
form.request { display: flex; flex-direction: column; gap: 16px; }
form.request label { display: block; font-weight: 700; margin-bottom: 4px; }
form.request input,
form.request select,
form.request textarea {
  width: 100%;
  padding: 14px;
  font: inherit;
  font-size: 1.05rem;
  border: 2px solid var(--brand-silver);
  border-radius: 10px;
  background: var(--brand-white);
}
form.request input:focus,
form.request select:focus,
form.request textarea:focus { outline: 3px solid var(--brand-blue); border-color: var(--brand-blue); }
form.request button { cursor: pointer; font-family: inherit; }

/* Footer */
footer {
  padding: 28px 16px 96px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--brand-silver);
  background: var(--brand-navy);
}
footer strong { color: var(--brand-white); }
footer p { margin: 0 0 6px; }
footer a { color: var(--brand-blue); }

/* Sticky call bar (phones only) */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: none;
  gap: 10px;
  padding: 12px 16px;
  background: var(--brand-navy);
  border-top: 2px solid var(--brand-blue);
}
.callbar .btn { padding: 14px 8px; font-size: 1.1rem; white-space: nowrap; }
.callbar .btn-call { flex: 3; }
.callbar .btn-outline { flex: 1; color: var(--brand-white); }

@media (max-width: 699px) {
  .callbar { display: flex; }
}

@media (min-width: 700px) {
  .wrap { max-width: 960px; }
  .hero { padding: 72px 16px; }
  .hero h1 { font-size: 3.4rem; }
  .page-hero h1 { font-size: 2.8rem; }
  .commercial-hero { padding: 64px 16px; }
  .commercial-hero h1 { font-size: 2.6rem; }
  footer { padding-bottom: 28px; }

  /* A lone full-width button (outside the hero, outside a paired .btn-row)
     stops stretching edge-to-edge on wider screens */
  section .wrap > .btn-call,
  section .wrap > .btn-outline,
  .btn-row .btn:only-child {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Request form: keep fields a natural width instead of spanning the full column */
  form.request { max-width: 560px; margin-left: auto; margin-right: auto; }
}
