/* ============================================================
   SITE CONFIG — edit these when cloning this template
   ------------------------------------------------------------
   ARCHETYPE: "emergency / night rescue" — dark charcoal, safety
   orange, enormous phone treatment. For urgent phone-first niches
   (towing, water damage, locksmith, bail).
   1. Colors: change the five brand variables below.
   2. Brand, phone, city: search-and-replace in HTML files:
        "Fort Wayne Towing Pros"     -> new brand
        "(260) 267-9022"        -> new display phone
        "+12602679022"          -> new tel:/schema phone (E.164)
        "Fort Wayne"            -> new city
        "fortwaynetowingpros.com"   -> new domain (canonicals, og:url,
        sitemap.xml, robots.txt)
   3. Services: edit /services/ pages + nav + footer + sitemap.
   ============================================================ */

:root {
  /* Brand palette — swap these for a new niche */
  --bg: #17181b;            /* page background: charcoal */
  --bg-alt: #1e2024;        /* alternating sections */
  --panel: #24262b;         /* cards / panels */
  --accent: #ff8c1a;        /* safety orange: CTAs */
  --accent-hi: #ffb930;     /* amber: the giant phone number */

  /* Neutrals (dark theme) */
  --ink: #f2f1ec;
  --ink-soft: #c9c6bf;
  --ink-muted: #a19e96;
  --line: #35383e;
  --on-accent: #1c1200;     /* text on orange */

  /* Type & spacing */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI",
          Arial, sans-serif;
  --radius: 8px;
  --maxw: 66rem;
  --measure: 42rem;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700; text-transform: uppercase;
  line-height: 1.08; letter-spacing: 0.015em;
  margin: 0 0 0.55em;
}
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.85rem); margin-top: 0; }
h3 { font-size: 1.1rem; line-height: 1.25; margin: 0 0 0.5em; }
p, ul, ol { margin: 0 0 1em; max-width: var(--measure); }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.4em; }
a { color: var(--accent-hi); }
strong { color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
:focus-visible { outline: 3px solid var(--accent-hi); outline-offset: 2px; }

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; min-height: 62px;
}
.brand-link {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em;
  text-decoration: none; color: var(--ink); font-size: 1.1rem;
}
.brand-link span { color: var(--accent); }
.header-nav { display: none; }
.header-nav > a {
  text-decoration: none; color: var(--ink-soft); font-size: 0.95rem;
}
.header-nav > a:hover { color: var(--accent-hi); }
@media (min-width: 860px) {
  .header-nav { display: flex; align-items: center; gap: 1.25rem; }
}

/* Services dropdown — native <details>, no JS */
.nav-services { position: relative; }
.nav-services summary {
  cursor: pointer; color: var(--ink-soft); font-size: 0.95rem;
  list-style: none; display: flex; align-items: center; gap: 0.35rem;
}
.nav-services summary::-webkit-details-marker { display: none; }
.nav-services summary::after {
  content: ""; width: 0; height: 0; margin-top: 2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.nav-services summary:hover, .nav-services[open] summary { color: var(--accent-hi); }
.nav-services ul {
  position: absolute; top: calc(100% + 0.7rem); left: 0; z-index: 70;
  min-width: 16rem; margin: 0; padding: 0.4rem; list-style: none;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.nav-services li { margin: 0; }
.nav-services ul a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 6px;
  text-decoration: none; color: var(--ink-soft); font-size: 0.95rem;
  white-space: nowrap;
}
.nav-services ul a:hover { background: var(--bg-alt); color: var(--accent-hi); }

.call-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.45rem; background: var(--accent); color: var(--on-accent);
  text-decoration: none; font-weight: 800; padding: 0.65rem 1.05rem;
  border-radius: var(--radius); min-height: 48px; white-space: nowrap;
  font-size: 1rem; transition: background 0.15s;
}
.call-btn:hover { background: var(--accent-hi); }
.call-btn svg { flex: none; }

/* ---------- Hero: the giant phone number ---------- */
.hero {
  background: var(--bg);
  padding: 3rem 0 2.75rem; text-align: center;
  border-bottom: 1px solid var(--line);
}
.hero h1 { max-width: 46rem; margin-left: auto; margin-right: auto; }
.hero .sub {
  font-size: 1.15rem; color: var(--ink-soft);
  max-width: 34rem; margin: 0 auto 1.5rem;
}
.phone-hero {
  display: block; text-decoration: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 11.5vw, 5.4rem);
  letter-spacing: 0.01em; line-height: 1;
  color: var(--accent-hi); margin: 0.25rem 0 0.4rem;
  animation: beacon 2.2s ease-in-out infinite;
}
.phone-hero:hover { color: var(--accent); }
/* Emergency-beacon pulse: amber glow on the number, hazard-light feel */
@keyframes beacon {
  0%, 100% {
    text-shadow: 0 0 12px rgba(255, 185, 48, 0.25);
  }
  50% {
    text-shadow: 0 0 16px rgba(255, 220, 120, 0.55),
                 0 0 48px rgba(255, 160, 30, 0.5);
  }
}
.phone-hero-label {
  display: block; text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.85rem; font-weight: 700; color: var(--ink-muted);
  margin-bottom: 1.6rem;
}
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem 1.6rem; padding: 0; margin: 0 auto; list-style: none;
  max-width: 44rem;
}
.trust-strip li {
  font-size: 0.95rem; color: var(--ink-soft);
  display: flex; align-items: center; gap: 0.4rem;
}
.trust-strip li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.hero-ctas { margin: 0 0 1.6rem; }
.ghost-btn {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 0.7rem 1.3rem; border: 2px solid var(--line);
  border-radius: var(--radius); color: var(--ink-soft);
  text-decoration: none; font-weight: 600;
}
.ghost-btn:hover { border-color: var(--accent-hi); color: var(--accent-hi); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--bg-alt); padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}
.page-hero p { font-size: 1.1rem; color: var(--ink-soft); max-width: var(--measure); margin-bottom: 1.25rem; }
.phone-inline {
  display: inline-block; text-decoration: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 6vw, 2.6rem); letter-spacing: 0.01em;
  color: var(--accent-hi);
}
.phone-inline:hover { color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: 2.6rem 0; }
.section-alt { background: var(--bg-alt); }
.answer-block {
  font-size: 1.25rem; line-height: 1.65; text-align: center;
  max-width: 40rem; margin: 0 auto; color: var(--ink-soft);
}
.answer-block strong { color: var(--accent-hi); font-weight: 700; }

/* Featured service + compact list (home) */
.feature-card {
  display: block; margin-top: 1.5rem; padding: 1.5rem 1.4rem;
  text-decoration: none; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius);
}
.feature-card h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  color: var(--accent-hi); font-size: 1.45rem; letter-spacing: 0.02em;
}
.feature-card p { color: var(--ink-soft); margin-bottom: 0.7rem; }
.feature-card .card-more { font-size: 0.9rem; font-weight: 700; color: var(--accent); }
.feature-card:hover { border-color: var(--accent); }
.feature-card:hover h3 { text-decoration: underline; }

.service-list { display: grid; grid-template-columns: 1fr; gap: 0 2.5rem; margin-top: 0.75rem; }
@media (min-width: 640px) { .service-list { grid-template-columns: 1fr 1fr; } }
.service-item {
  display: block; padding: 0.95rem 0; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.service-item h3 {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem;
  margin: 0 0 0.2em; font-size: 1.02rem; color: var(--accent-hi);
}
.service-item h3::after { content: "›"; color: var(--ink-muted); font-weight: 400; }
.service-item p { margin: 0; font-size: 0.92rem; color: var(--ink-muted); }
.service-item:hover h3 { text-decoration: underline; }

.steps { list-style: none; padding: 0; counter-reset: step; max-width: var(--measure); }
.steps li { counter-increment: step; display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.steps li::before {
  content: counter(step); flex: none; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 0.9rem 0; max-width: var(--measure); }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; color: var(--ink); }
.faq details p { margin: 0.6rem 0 0; color: var(--ink-soft); }

/* ---------- Inline call row (after each section) ---------- */
.inline-cta {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.85rem 1.5rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.1rem 0; margin: 1.8rem 0 0; max-width: var(--measure);
}
.inline-cta p {
  margin: 0; font-family: var(--font-display); text-transform: uppercase;
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.02em; color: var(--ink);
}

/* ---------- Cost table ---------- */
.cost-table { border-collapse: collapse; width: 100%; max-width: var(--measure); margin-bottom: 1rem; }
.cost-table th, .cost-table td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
.cost-table th { background: var(--bg-alt); color: var(--ink); }
.cost-table td { color: var(--ink-soft); }

/* ---------- CTA band (orange, with GHL form slot) ---------- */
.cta-band { background: var(--accent); color: var(--on-accent); padding: 2.75rem 0; }
.cta-band h2 { color: var(--on-accent); margin-bottom: 0.3em; }
.cta-band p { margin: 0 0 1.1rem; color: #3d2a00; font-weight: 600; }
.phone-band {
  display: inline-block; text-decoration: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 8vw, 3.6rem); line-height: 1;
  color: var(--on-accent);
}
.phone-band:hover { color: #000; }
.cta-band--form .wrap { display: grid; gap: 2.25rem; }
@media (min-width: 860px) {
  .cta-band--form .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    align-items: center;
  }
}
.quote-embed { max-width: 640px; margin: 0 auto; width: 100%; }
.quote-embed iframe { display: block; width: 100%; }

/* ---------- Footer ---------- */
.site-footer {
  background: #101114; color: var(--ink-muted);
  padding: 2.5rem 0 5.75rem; font-size: 0.95rem;
  border-top: 1px solid var(--line);
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent-hi); }
.footer-cols { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer h3 {
  color: var(--ink); font-size: 0.95rem; text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.85rem; }

/* Footer phone: >=44px tap target */
.footer-tel { display: inline-block; padding: 0.7rem 0; font-weight: 700; }

/* ---------- Hero working-shot band ---------- */
.hero-photo { max-width: 54rem; margin: 2.1rem auto 0; }
.hero-photo img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--line);
}

/* ---------- Mobile sticky call bar ---------- */
.mobile-call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; background: var(--accent);
  animation: bar-beacon 2.8s ease-in-out infinite;
}
@keyframes bar-beacon {
  0%, 100% { box-shadow: 0 -4px 16px rgba(0,0,0,0.45), 0 -2px 12px rgba(255,140,26,0.3); }
  50%      { box-shadow: 0 -4px 16px rgba(0,0,0,0.45), 0 -6px 32px rgba(255,150,30,0.55); }
}
.mobile-call-bar a {
  flex: 1; text-align: center; color: var(--on-accent); text-decoration: none;
  font-weight: 800; font-size: 1.15rem; padding: 1rem 0; min-height: 56px;
}
@media (min-width: 860px) {
  .mobile-call-bar { display: none; }
  .site-footer { padding-bottom: 2.5rem; }
}
