/* iTow Cash for Cars — site styles
   Brand colours live in :root. When the logo arrives, change --brand / --brand-dark to match it. */

:root {
  --brand: #ffc20e;
  --brand-dark: #e0a800;
  --ink: #16181d;
  --ink-2: #23262e;
  --text: #2b2f38;
  --muted: #5d6472;
  --line: #e3e5ea;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --ok: #1d8a4e;
  --danger: #c0392b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 18, 24, .12);
  --wrap: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Barlow Condensed", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--brand-dark); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  font-family: var(--font); line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--brand); color: var(--ink); box-shadow: 0 6px 18px rgba(255, 194, 14, .35); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-block { width: 100%; }

/* Top bar + header */
.topbar { background: var(--ink); color: #c9cdd6; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar span + span::before { content: "•"; margin: 0 .6em; color: var(--brand); }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { height: 52px; width: auto; }
.logo-mark { width: 44px; height: 44px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; flex: none; }
.logo-mark svg { width: 30px; height: 30px; }
.logo-text { font-family: var(--display); font-weight: 800; font-size: 1.55rem; line-height: .95; text-transform: uppercase; }
.logo-text small { display: block; font-size: .72rem; letter-spacing: 2.4px; color: var(--muted); font-family: var(--font); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a, .nav .dd > button {
  text-decoration: none; font-weight: 600; font-size: .96rem; color: var(--ink);
  padding: .55em .8em; border-radius: 8px; background: none; border: 0; cursor: pointer; font-family: var(--font);
}
.nav > a:hover, .nav .dd > button:hover, .nav a[aria-current="page"] { background: var(--bg-alt); }
.nav .btn { margin-left: 8px; }
.nav > a.btn-primary { background: var(--brand); padding: .7em 1.2em; }
.nav > a.btn-primary:hover { background: var(--brand-dark); }
.dd { position: relative; }
.dd > button::after { content: ""; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.dd-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { display: block; }
.dd-menu a { display: block; padding: .5em .75em; border-radius: 8px; text-decoration: none; font-weight: 500; }
.dd-menu a:hover { background: var(--bg-alt); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 30px; height: 30px; }

/* Hero */
.hero {
  background:
    linear-gradient(115deg, rgba(22, 24, 29, .97) 0%, rgba(22, 24, 29, .9) 55%, rgba(35, 38, 46, .85) 100%),
    repeating-linear-gradient(-45deg, #2a2d35 0 22px, #1f2228 22px 44px);
  color: #e9ebf0;
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--brand) 0 18px, var(--ink) 18px 36px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { color: #c6cad3; }
.hero-points { list-style: none; padding: 0; margin: 1.4em 0 1.8em; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: #fff; }
.hero-points svg { width: 24px; height: 24px; flex: none; color: var(--brand); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-outline { color: #fff; }
.hero-small { margin-top: 1.2em; font-size: .92rem; color: #9ea4b0; }
.page-hero { padding: 52px 0 60px; }
.page-hero .wrap { grid-template-columns: 1fr; }
.page-hero.with-form .wrap { grid-template-columns: 1.15fr .85fr; }
.crumbs { font-size: .88rem; color: #9ea4b0; margin-bottom: 1em; }
.crumbs a { color: #c6cad3; }

/* Quote form card */
.quote-card { background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; border-top: 6px solid var(--brand); }
.quote-card h2 { font-size: 1.9rem; margin-bottom: .2em; }
.quote-card .sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.1em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: .65em .75em; border: 1.5px solid #cfd3db; border-radius: 10px; background: #fff; color: var(--text);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 194, 14, .45); }
.field input[type=file] { padding: .55em; font-size: 15px; background: var(--bg-alt); border-style: dashed; cursor: pointer; }
.field input[type=file]::file-selector-button { font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: .45em 1em; margin-right: .8em; background: var(--ink); color: #fff; cursor: pointer; }
.photo-hint { font-size: .82rem; color: var(--muted); margin: 4px 0 0; }
.hp { position: absolute !important; left: -9999px !important; }
.form-note { font-size: .84rem; color: var(--muted); margin: 10px 0 0; }
.form-status { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: #e8f6ee; color: var(--ok); }
.form-status.err { display: block; background: #fbeaea; color: var(--danger); }

/* Sections */
section { padding: 76px 0; }
.alt { background: var(--bg-alt); }
.dark { background: var(--ink); color: #c6cad3; }
.dark h2, .dark h3 { color: #fff; }
.section-head { margin-bottom: 40px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: var(--ink);
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.6rem; margin-bottom: 14px;
}
.step p { margin: 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  text-decoration: none; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ico { width: 54px; height: 54px; border-radius: 12px; background: var(--ink); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 32px; height: 32px; }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }
.card .more { font-weight: 700; color: var(--ink); font-size: .94rem; }
.card .more::after { content: " →"; color: var(--brand-dark); }

.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.promise { text-align: center; padding: 10px; }
.promise .ico { width: 70px; height: 70px; border-radius: 50%; background: var(--brand); color: var(--ink); display: grid; place-items: center; margin: 0 auto 14px; }
.promise .ico svg { width: 36px; height: 36px; }
.promise p { font-size: .96rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; columns: 2; column-gap: 24px; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: .55em; break-inside: avoid; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ticks.one { columns: 1; }
.panel { background: var(--ink); color: #c6cad3; border-radius: var(--radius); padding: 34px; position: relative; overflow: hidden; }
.panel h3 { color: #fff; font-size: 1.8rem; text-transform: uppercase; }
.panel .big { font-family: var(--display); font-size: 2.4rem; font-weight: 800; color: var(--brand); text-decoration: none; display: inline-block; margin: .1em 0 .3em; }
.panel::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(255, 194, 14, .14); }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0; }
.review .stars { color: var(--brand-dark); letter-spacing: 2px; font-size: 1.1rem; margin-bottom: 8px; }
.review blockquote { margin: 0 0 12px; font-size: 1.02rem; color: var(--ink); }
.review figcaption { font-weight: 700; font-size: .92rem; color: var(--muted); }

.towns { display: flex; flex-wrap: wrap; gap: 10px; }
.towns a { text-decoration: none; padding: .5em 1em; border-radius: 999px; border: 1.5px solid #3a3e48; color: #fff; font-weight: 600; font-size: .95rem; }
.towns a:hover { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.alt .towns a, section:not(.dark) .towns a { border-color: #cfd3db; color: var(--ink); }

.faq { max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; color: var(--ink); position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--brand-dark); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

.cta-band { background: var(--brand); padding: 48px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.cta-band p { margin: .3em 0 0; color: var(--ink); font-weight: 500; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.prose { max-width: 820px; }
.prose h2 { font-size: 1.9rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Footer */
.site-footer { background: #0f1115; color: #9ea4b0; padding: 60px 0 0; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45em; }
.site-footer a { color: #d4d7de; text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer .logo-text { color: #fff; }
.site-footer .logo { margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid #252830; margin-top: 44px; padding: 20px 0 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }

/* Mobile action bar */
.mobile-bar { display: none; }

@media (max-width: 1020px) {
  .cards, .promises { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 20px 20px; box-shadow: var(--shadow); max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > a, .nav .dd > button { padding: .8em .4em; text-align: left; width: 100%; }
  .dd-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; }
  .dd:hover .dd-menu { display: none; }
  .dd.open .dd-menu { display: block; }
  .nav .btn { margin: 10px 0 0; }
}

@media (max-width: 860px) {
  body { font-size: 16px; padding-bottom: 68px; }
  section { padding: 56px 0; }
  .hero, .page-hero { padding: 40px 0 52px; }
  .hero .wrap, .page-hero.with-form .wrap, .split { grid-template-columns: 1fr; gap: 32px; }
  .steps, .reviews { grid-template-columns: 1fr; }
  .topbar .hide-sm { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--ink); border-top: 3px solid var(--brand); padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; color: #fff; text-decoration: none; font-size: .78rem; font-weight: 700; }
  .mobile-bar a svg { width: 22px; height: 22px; color: var(--brand); }
  .mobile-bar a.call { background: var(--brand); color: var(--ink); }
  .mobile-bar a.call svg { color: var(--ink); }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .cards, .promises, .footer-grid, .hero-points, .form-grid { grid-template-columns: 1fr; }
  .ticks { columns: 1; }
  .quote-card { padding: 20px; }
  .logo-text { font-size: 1.3rem; }
  .logo-mark { width: 38px; height: 38px; }
  .cta-band .actions, .hero-cta { width: 100%; }
  .cta-band .btn, .hero-cta .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
