/* =====================================================================
   Jac's Towing and Recovery — site styles
   Brand: magenta #ef028b on near-black, family-owned towing in Charlotte NC
   ===================================================================== */

/* ---- Design tokens ---- */
:root {
  --black: #000000;
  --header-bg: #0a0c0d;       /* near-black; blends with transparent logo */
  --header-bg-2: #14191b;     /* subtle gradient partner */
  --ink-900: #0f1e20;         /* dark charcoal-teal accent sections */

  --brand: #ef028b;           /* logo magenta */
  --brand-600: #d10277;       /* hover / links on light */
  --brand-700: #b00264;       /* active / strong text on light */

  --text: #1b2123;
  --muted: #5b676b;
  --line: #e6e8ea;
  --bg: #ffffff;
  --bg-soft: #f5f6f7;
  --bg-dark-soft: #11181a;

  --container: 1140px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(15, 30, 32, .10);
  --shadow-lg: 0 18px 50px rgba(15, 30, 32, .16);
  --ring: 0 0 0 3px rgba(239, 2, 139, .35);

  --header-h: 84px;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font); line-height: 1.18; color: var(--ink-900); margin: 0 0 .5em; }
h1 { font-weight: 800; font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -.5px; }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -.3px; }
h3 { font-weight: 700; font-size: 1.3rem; }
p { margin: 0 0 1.1rem; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: #fff; font-weight: 700;
  padding: .7rem 1.1rem; border-radius: 8px; transition: top .15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; color: #fff; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: linear-gradient(160deg, var(--ink-900), #0a1314); color: #dfe6e7; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 2.4rem; text-align: center; }
.section-head .eyebrow { color: var(--brand); }
.section-head p { color: var(--muted); margin: 0; }
.section--dark .section-head p { color: #aebac0; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: .6rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
  padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--call { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(239,2,139,.35); }
.btn--call:hover { background: var(--brand-600); color: #fff; box-shadow: 0 12px 28px rgba(239,2,139,.45); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { background: #163133; color: #fff; }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.08rem; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, var(--header-bg), var(--header-bg-2));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 48px; width: auto; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
  color: #fff;
}
.nav-toggle svg { width: 30px; height: 30px; }
.nav-menu { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu a {
  display: inline-flex; align-items: center; gap: .35rem;
  color: #eef2f3; font-weight: 600; font-size: .98rem;
  padding: .7rem .95rem; border-radius: 8px; text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.nav-menu a[aria-current="page"] { color: var(--brand); }
.has-sub > a .caret { width: 14px; height: 14px; transition: transform .2s ease; }
.has-sub.open > a .caret { transform: rotate(180deg); }

/* dropdown */
.submenu {
  list-style: none; margin: 0; padding: .4rem;
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 248px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu a { color: var(--text); width: 100%; padding: .7rem .8rem; font-weight: 600; }
.submenu a:hover { background: var(--bg-soft); color: var(--brand-700); }
.nav-cta { display: inline-flex; align-items: center; gap: 1rem; margin-left: 1.4rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-phone svg { width: 18px; height: 18px; flex: none; }
.nav-phone:hover { color: var(--brand); text-decoration: none; }

/* ---- Hero ---- */
.hero { position: relative; color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(8,12,13,.92) 0%, rgba(8,12,13,.66) 45%, rgba(8,12,13,.30) 100%),
    var(--hero-img, none) center/cover no-repeat;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 680px; padding: clamp(64px, 11vw, 132px) 0; }
.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero .lead { font-size: 1.2rem; color: #e7edee; font-weight: 300; margin-bottom: 1.8rem; }
.hero .pill {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.3rem;
  background: rgba(239,2,139,.16); border: 1px solid rgba(239,2,139,.5);
  color: #ffd9ef; font-weight: 700; font-size: .82rem; letter-spacing: 1.5px;
  text-transform: uppercase; padding: .45rem .9rem; border-radius: 999px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---- Page header (inner pages) ---- */
.page-header { background: linear-gradient(160deg, var(--ink-900), #0a1314); color: #fff; }
.page-header .container { padding-block: clamp(40px, 6vw, 68px); }
.page-header h1 { color: #fff; margin: 0; }
.breadcrumb { margin: 0 0 .8rem; font-size: .9rem; color: #9fb0b3; }
.breadcrumb a { color: #cfd9da; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--brand); }

/* ---- Service cards ---- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #f3cfe4; }
.card .icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, #ffe3f2, #ffd0ea); color: var(--brand-700);
  margin-bottom: 1.1rem;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin-bottom: 1.1rem; }
.card .card-link {
  margin-top: auto; font-weight: 700; color: var(--brand-600);
  display: inline-flex; align-items: center; gap: .4rem;
}
.card .card-link svg { width: 1em; height: 1em; transition: transform .15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* ---- Feature strip (why us) ---- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.feature { text-align: center; }
.feature .fi {
  width: 60px; height: 60px; margin: 0 auto .8rem; border-radius: 50%;
  display: grid; place-items: center; background: rgba(239,2,139,.12); color: var(--brand);
}
.feature .fi svg { width: 28px; height: 28px; }
.feature h3 { color: #fff; font-size: 1.12rem; margin-bottom: .25rem; }
.feature p { color: #aebac0; font-size: .96rem; margin: 0; }

/* ---- Content prose (inner pages) ---- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.4rem; }
.prose ul li {
  position: relative; padding: .35rem 0 .35rem 2rem; border-bottom: 1px solid var(--line);
}
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .95rem; width: 12px; height: 12px;
  border-radius: 3px; background: var(--brand);
}
.prose .checks li::before {
  content: ""; left: 2px; top: .7rem; width: 12px; height: 7px; border-radius: 0;
  background: none; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand);
  transform: rotate(-45deg);
}
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; }

/* media row */
.media { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; }
.media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.media--rev .media-text { order: 2; }

/* info callout */
.callout {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 5px solid var(--brand); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; margin: 1.6rem 0;
}
.callout h3 { margin: 0 0 .4rem; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.hours-list li:last-child { border-bottom: 0; }
.hours-list .d { font-weight: 600; color: var(--ink-900); }

/* ---- FAQ ---- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 1.3rem; margin-bottom: .8rem; box-shadow: var(--shadow);
}
.faq summary {
  list-style: none; cursor: pointer; font-weight: 700; color: var(--ink-900);
  padding: 1.15rem 2rem 1.15rem 0; position: relative; font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-weight: 700; font-size: 1.5rem; color: var(--brand); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { color: var(--muted); margin: 0 0 1.2rem; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(120deg, var(--brand), #b00264); color: #fff; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; padding-block: clamp(40px, 6vw, 64px); }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: .4rem 0 0; color: #ffe2f2; }
.cta-band .btn--call { background: #fff; color: var(--brand-700); }
.cta-band .btn--call:hover { background: #0a0c0d; color: #fff; }

/* ---- Footer ---- */
.site-footer { background: linear-gradient(180deg, #0a0c0d, #05080a); color: #c4ced0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 2rem;
  padding: clamp(48px, 6vw, 72px) 0 2.2rem;
}
.site-footer img.flogo { height: 56px; width: auto; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .5px; margin: 0 0 1rem; text-transform: uppercase; }
.site-footer a { color: #c4ced0; }
.site-footer a:hover { color: var(--brand); text-decoration: none; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .6rem; display: flex; gap: .6rem; align-items: flex-start; }
.footer-list svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: .2rem; }
.social { display: inline-flex; gap: .6rem; margin-top: .3rem; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: #fff;
}
.social a:hover { background: var(--brand); color: #fff; }
.social svg { width: 20px; height: 20px; }
.bbb-link img { background: #fff; border-radius: 6px; padding: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0; text-align: center;
  font-size: .9rem; color: #8b989b;
}
.footer-bottom a { color: #b9c4c6; font-weight: 600; }

/* ---- Mobile sticky call bar ---- */
.call-bar { display: none; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .media, .media--rev .media-text { grid-template-columns: 1fr; order: 0; }
  .media-text { order: 0; }
}
@media (max-width: 740px) {
  :root { --header-h: 70px; }
  .brand img { height: 38px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .nav-phone span { display: none; }

  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0a0c0d; border-bottom: 1px solid rgba(255,255,255,.1);
    padding: .6rem 1rem 1.2rem; max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-menu a { padding: .9rem .6rem; font-size: 1.05rem; border-radius: 8px; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; padding: 0 0 .4rem 1rem;
    display: none;
  }
  .has-sub.open .submenu { display: block; }
  .submenu a { color: #c9d3d5; }
  .submenu a:hover { background: rgba(255,255,255,.06); color: #fff; }

  .grid--3, .grid--2, .cols { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; text-align: center; align-items: stretch; }

  /* sticky tap-to-call for stranded drivers */
  .call-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: var(--brand); box-shadow: 0 -6px 20px rgba(0,0,0,.25);
  }
  .call-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: .6rem;
    color: #fff; font-weight: 800; font-size: 1.1rem; padding: 1rem; text-decoration: none;
  }
  .call-bar svg { width: 1.2em; height: 1.2em; }
  body { padding-bottom: 60px; }
}
@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
}
