/* ============================================================
   Baratz Law — Impaired Driving Landing Page
   Brand: #212529 (ink) · #CCBD99 (gold)
   Headings: Libre Baskerville · Body: Open Sans
   ============================================================ */

:root {
  --ink: #212529;
  --ink-90: #2b3239;
  --ink-80: #3a424b;
  --gold: #CCBD99;
  --gold-dark: #a8935f;
  --gold-soft: #f4f0e6;
  --gold-line: #e6dcc4;
  --paper: #ffffff;
  --off: #faf9f6;
  --line: #e7e4dd;
  --muted: #5a6069;
  --text: #2a2e33;
  --white: #ffffff;

  --radius: 12px;
  --radius-sm: 7px;
  --shadow-sm: 0 1px 2px rgba(33,37,41,.05), 0 3px 12px rgba(33,37,41,.06);
  --shadow-md: 0 12px 40px rgba(33,37,41,.12);
  --maxw: 1180px;

  --font-head: "Libre Baskerville", Georgia, serif;
  --font-body: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.24;
  font-weight: 700;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
p { margin: 0 0 1rem; }
a { color: var(--ink); }
em { font-style: italic; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.section { padding: 92px 0; }
.section-head { max-width: 768px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.55rem); }
.section-sub { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section-head--center { max-width: 768px; margin-inline: auto; text-align: center; }
.section-head--center .hero-kicker { border-bottom: none; padding-bottom: 0; margin-bottom: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 17px 32px; font-size: 1.06rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--gold); color: var(--ink); border-color: var(--gold); box-shadow: 0 6px 18px rgba(168,147,95,.28); }
.btn-primary:hover { background: #d6c9a8; border-color: #d6c9a8; box-shadow: 0 8px 22px rgba(168,147,95,.34); }

.btn-outline { background: transparent; color: var(--ink); border-color: #cfccc4; }
.btn-outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.brand { text-decoration: none; display: inline-flex; align-items: center; }
.brand-logo { height: 42px; width: auto; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.header-phone:hover { border-color: var(--gold-dark); box-shadow: 0 4px 14px rgba(168,147,95,.22); }
.header-phone-icon {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--gold);
  flex: none;
}
.header-phone-text { display: flex; flex-direction: column; line-height: 1.15; }
.header-phone-label { font-size: .72rem; color: var(--muted); font-weight: 600; }
.header-phone-number { font-weight: 700; font-size: 1.02rem; color: var(--ink); }

/* Dark header variant (light logo needs a dark backdrop) */
.site-header--dark { background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.1); }
.site-header--dark.is-scrolled { background: rgba(28,33,38,.96); backdrop-filter: saturate(140%) blur(10px); }
.site-header--dark .header-phone { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.site-header--dark .header-phone:hover { border-color: var(--gold); box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.site-header--dark .header-phone-number { color: var(--white); }
.site-header--dark .header-phone-label { color: var(--gold); }
.site-header--dark .header-phone-icon { background: var(--gold); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 560px at 88% -12%, rgba(204,189,153,.35), transparent 58%),
    linear-gradient(180deg, var(--off) 0%, var(--paper) 100%);
  padding: 78px 0 88px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero-kicker {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-line);
}
.hero h1 { font-size: clamp(2.15rem, 5vw, 3.4rem); margin-bottom: 20px; }
.hero-lead { font-size: 1.16rem; color: var(--ink-80); max-width: 47ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-signals {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 26px;
}
.hero-signals li {
  position: relative;
  padding-left: 24px;
  font-size: .96rem;
  font-weight: 600;
  color: var(--ink);
}
.hero-signals li::before {
  content: "";
  position: absolute; left: 0; top: .28em;
  width: 15px; height: 8px;
  border-left: 2.5px solid var(--gold-dark);
  border-bottom: 2.5px solid var(--gold-dark);
  transform: rotate(-45deg);
}

.hero-visual { display: flex; justify-content: center; }
.hero-figure { position: relative; width: 100%; max-width: 440px; }
.hero-figure img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 5 / 6;
  background: var(--gold-soft);
}
.hero-figure::after {
  content: "";
  position: absolute; inset: 14px -14px -14px 14px;
  border: 2px solid var(--gold);
  border-radius: 16px;
  z-index: -1;
}
.hero-badge {
  position: absolute;
  left: -20px; bottom: 30px;
  background: var(--ink);
  color: var(--white);
  border-radius: 14px;
  padding: 16px 22px;
  display: flex; align-items: center; gap: 13px;
  box-shadow: var(--shadow-md);
}
.hero-badge-num { font-family: var(--font-head); font-weight: 700; font-size: 2.3rem; color: var(--gold); line-height: 1; }
.hero-badge-label { font-size: .82rem; line-height: 1.28; color: #e9eaeb; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--ink); color: var(--white); }
.trustbar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 24px; text-align: center; }
.trust-item { display: flex; flex-direction: column; gap: 5px; position: relative; }
.trust-item:not(:last-child)::after {
  content: ""; position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 42px; background: rgba(255,255,255,.14);
}
.trust-value { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--gold); }
.trust-label { font-size: .9rem; color: #d9dbdd; }

/* ---------- Services ---------- */
.services { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card {
  position: relative;
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.service-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 12px;
  letter-spacing: .05em;
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about { background: var(--off); }
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; align-items: center; }
.about-photo { position: relative; max-width: 420px; }
.about-photo img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 11 / 13;
  background: var(--gold-soft);
}
.about-photo-tag {
  position: absolute;
  left: 18px; bottom: 18px; right: 18px;
  background: rgba(33,37,41,.92);
  backdrop-filter: blur(4px);
  color: var(--white);
  border-radius: 10px;
  padding: 12px 18px;
  display: flex; flex-direction: column;
  border-left: 3px solid var(--gold);
}
.about-photo-tag strong { font-family: var(--font-head); font-size: 1.1rem; }
.about-photo-tag span { font-size: .84rem; color: #d9dbdd; }

.about-content h2 { font-size: clamp(1.85rem, 3.6vw, 2.55rem); margin-bottom: 16px; }
.about-content p { color: var(--ink-80); }
.about-creds { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.about-creds span {
  font-size: .86rem; font-weight: 600; color: var(--ink);
  background: var(--white); border: 1px solid var(--gold-line);
  padding: 8px 15px; border-radius: 40px;
}

/* ---------- Why choose ---------- */
.why { background: var(--paper); }
.why-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 58px; align-items: start; }
.why-intro h2 { font-size: clamp(1.85rem, 3.6vw, 2.55rem); }
.why-intro p { color: var(--muted); margin-bottom: 26px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 34px; }
.why-list li { padding-top: 18px; border-top: 2px solid var(--gold-line); }
.why-list h3 { font-size: 1.12rem; margin-bottom: 7px; }
.why-list p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Consultation form ---------- */
.consult {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(204,189,153,.14), transparent 60%),
    var(--ink);
  color: var(--white);
}
.consult-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 58px; align-items: start; }
.consult-intro h2 { color: var(--white); font-size: clamp(1.95rem, 3.8vw, 2.65rem); }
.consult-sub { font-size: 1.12rem; color: #d9dbdd; }
.consult-points { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 13px; }
.consult-points li { position: relative; padding-left: 30px; color: #e9eaeb; }
.consult-points li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 15px; height: 8px;
  border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold);
  transform: rotate(-45deg);
}
.consult-or { margin: 28px 0 12px; color: #b9bcc0; }
.consult-call { width: 100%; }

.consult-form-wrap { background: var(--white); border-radius: 16px; padding: 34px 30px; box-shadow: var(--shadow-md); }
.consult-form { color: var(--text); }
.field { margin-bottom: 17px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem; color: var(--text);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(204,189,153,.4);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; }
.field-check input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--gold-dark); }
.field-check label { font-weight: 400; font-size: .88rem; color: var(--muted); margin: 0; }
.field-check .field-error { grid-column: 1 / -1; }
.field-error { display: block; color: #b3261e; font-size: .82rem; margin-top: 5px; }
.field.invalid input, .field.invalid select { border-color: #b3261e; }
.form-note { font-weight: 600; margin: 0 0 12px; color: #1a7a3c; }
.form-note.error { color: #b3261e; }
.form-note:empty { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: .82rem; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* ---------- Why act now ---------- */
.actnow { background: var(--off); }
.actnow-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 58px; align-items: center; }
.actnow-intro h2 { font-size: clamp(1.85rem, 3.6vw, 2.55rem); margin-bottom: 16px; }
.actnow-lead { color: var(--muted); font-size: 1.08rem; margin-bottom: 26px; }
.actnow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.actnow-steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.actnow-steps li:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.step-num {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
  color: var(--ink); background: var(--gold-soft);
  border: 1px solid var(--gold-line); border-radius: 50%;
}
.actnow-steps h3 { font-size: 1.14rem; margin-bottom: 5px; }
.actnow-steps p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Service area ---------- */
.area { background: var(--paper); }
.area-eyebrow { text-align: center; }
.area-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; margin-inline: auto;
}
.area-list li {
  font-weight: 600; color: var(--ink);
  background: var(--paper); border: 1px solid var(--gold-line);
  padding: 13px 26px; border-radius: 40px; font-size: 1rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
}
.area-list li:hover { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-2px); }

/* ---------- Final CTA ---------- */
.final-cta {
  background:
    radial-gradient(900px 460px at 18% 130%, rgba(204,189,153,.26), transparent 60%),
    var(--ink);
  color: var(--white);
  text-align: center;
}
.final-inner { max-width: 780px; margin-inline: auto; }
.final-cta h2 { color: var(--white); font-size: clamp(1.95rem, 4vw, 2.75rem); }
.final-inner > p { color: #d9dbdd; font-size: 1.12rem; margin-bottom: 32px; }
.final-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-90); color: #cfd2d5; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; padding: 56px 24px 44px; align-items: center; }
.footer-col--cta { text-align: right; }
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 8px; }
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-hours { color: #9fa3a8; font-size: .92rem; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 15px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-bottom .container { display: flex; flex-direction: column; gap: 6px; }
.footer-bottom p { margin: 0; font-size: .84rem; color: #9fa3a8; }
.footer-disclaimer { max-width: 80ch; }

/* ---------- Mobile sticky bar (two buttons) ---------- */
.sticky-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(33,37,41,.12);
}
.sticky-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex: 1 1 0; min-width: 0;
  height: 52px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none; border-radius: 10px;
  white-space: nowrap;
}
.sticky-btn svg { flex: none; }
.sticky-btn--call { background: var(--gold); color: var(--ink); }
.sticky-btn--call:active { background: #d6c9a8; }
.sticky-btn--form { background: var(--ink); color: var(--white); }
.sticky-btn--form:active { background: #000; }

/* ---------- Thank-you page ---------- */
.ty-section {
  min-height: calc(100vh - 74px - 120px);
  display: grid; place-items: center;
  padding: 70px 0;
  background:
    radial-gradient(900px 460px at 50% -10%, rgba(204,189,153,.28), transparent 60%),
    linear-gradient(180deg, var(--off) 0%, var(--paper) 100%);
}
.ty-inner { max-width: 640px; text-align: center; }
.ty-check {
  width: 78px; height: 78px; margin: 0 auto 26px;
  display: grid; place-items: center;
  color: var(--white); background: var(--gold-dark);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(168,147,95,.35);
}
.ty-inner h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.ty-lead { font-size: 1.12rem; color: var(--ink-80); margin-bottom: 24px; }
.ty-urgent { color: var(--muted); margin-bottom: 20px; }
.ty-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 22px; }
.ty-note { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Accessibility ---------- */
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ============================================================ Responsive ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; }
  .hero-figure { max-width: 360px; }
  .hero-figure::after { inset: 12px -12px -12px 12px; }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-photo { max-width: 360px; margin-inline: auto; }
  .consult-grid { grid-template-columns: 1fr; gap: 38px; }
  .actnow-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 62px 0; }
  .header-phone-text { display: none; }
  .header-phone { padding: 8px; }
  .site-header--dark .header-phone { background: transparent; border: none; }
  .header-phone-icon { width: 42px; height: 42px; }
  .brand-logo { height: 34px; }
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .trust-item:not(:last-child)::after { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; text-align: left; }
  .footer-col--cta { text-align: left; }
  .hero-actions .btn, .final-actions .btn { width: 100%; }
  .sticky-bar { display: flex; }
  body { padding-bottom: 84px; }
}
@media (min-width: 681px) { .sticky-bar { display: none !important; } }
@media (max-width: 360px) {
  .sticky-btn { font-size: .92rem; gap: 6px; }
}
