/* Law Office of Mike Herrin — public site
   All colors and fonts come from CSS variables written by the admin panel. */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

img { max-width: 100%; height: auto; display: block; }

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

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--primary); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: color-mix(in srgb, #fff 82%, transparent); }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  font-family: var(--font-body);
}

.lede { font-size: 1.1rem; color: var(--muted); max-width: 68ch; }
.section-head { max-width: 74ch; margin-bottom: clamp(32px, 5vw, 56px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--accent); color: var(--btn-text); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 32%, transparent); }
.btn--primary:hover { box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 42%, transparent); }
.btn--solid { background: var(--primary); color: #fff; }
.btn--ghost { border-color: color-mix(in srgb, currentColor 30%, transparent); color: inherit; background: transparent; }
.btn--ghost:hover { border-color: currentColor; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--header-bg) 92%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__bar { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--header-text); margin-right: auto; }
.brand img { max-height: 52px; width: auto; }
.brand__name { font-family: var(--font-heading); font-weight: 700; font-size: 1.18rem; line-height: 1.15; }
.brand__tag { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--header-text);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--accent); }

.header__cta { display: flex; align-items: center; gap: 18px; }
.header__cta .btn { flex: none; white-space: nowrap; padding-inline: 20px; }
.header__phone { font-weight: 700; color: var(--header-text); text-decoration: none; white-space: nowrap; }
.header__phone small { display: block; font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--header-text);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 120% at 88% 0%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 55%),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: clamp(64px, 9vw, 120px) 0;
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero__sub { font-size: 1.13rem; color: color-mix(in srgb, #fff 84%, transparent); max-width: 60ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .eyebrow { color: var(--accent); }

.hero__media { position: relative; }
.hero__media img { border-radius: calc(var(--radius) * 1.6); box-shadow: 0 30px 70px rgba(0,0,0,.35); width: 100%; object-fit: cover; }
.hero__caption { margin-top: 14px; font-size: .85rem; color: color-mix(in srgb, #fff 70%, transparent); }
.hero__placeholder {
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius) * 1.6);
  border: 1px solid color-mix(in srgb, #fff 22%, transparent);
  background: color-mix(in srgb, #fff 7%, transparent);
  display: grid;
  place-items: center;
  color: color-mix(in srgb, #fff 55%, transparent);
  font-size: .9rem;
  text-align: center;
  padding: 24px;
}

.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.badge {
  flex: 1 1 150px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: color-mix(in srgb, #fff 8%, transparent);
  border: 1px solid color-mix(in srgb, #fff 15%, transparent);
}
.badge__value { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 700; color: var(--accent); line-height: 1; }
.badge__label { font-size: .82rem; color: color-mix(in srgb, #fff 76%, transparent); margin-top: 8px; }

/* ---------- Trust strip ---------- */
.trust { background: var(--primary-dark); color: #fff; padding: 20px 0; }
.trust__list { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.trust__list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: color-mix(in srgb, #fff 84%, transparent); }
.trust__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about__body { font-size: 1.03rem; }
.about__portrait { border-radius: calc(var(--radius) * 1.4); overflow: hidden; box-shadow: 0 20px 50px rgba(15,45,82,.16); }
.about__points { display: grid; gap: 18px; margin-top: 34px; }
.point { padding-left: 20px; border-left: 3px solid var(--accent); }
.point h3 { font-size: 1.02rem; margin-bottom: 5px; font-family: var(--font-body); font-weight: 700; }
.point p { color: var(--muted); font-size: .95rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.2);
  padding: 30px 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15,45,82,.1); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }
.card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--primary);
  margin-bottom: 18px;
}
.card__icon svg { width: 23px; height: 23px; }

/* ---------- Results ---------- */
.result {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.3);
  background: var(--bg);
  padding: clamp(26px, 3.5vw, 40px);
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 36px;
  margin-bottom: 22px;
}
.result__tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.result h3 { font-size: 1.4rem; }
.result__summary { font-size: 1.03rem; }
.result__detail { color: var(--muted); font-size: .96rem; border-top: 1px solid var(--border); margin-top: 18px; padding-top: 18px; }
.result__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.result__links a { font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.result__stat {
  align-self: start;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: center;
}
.result__stat strong { display: block; font-family: var(--font-heading); font-size: 2rem; color: var(--accent); line-height: 1.1; }
.result__stat span { display: block; font-size: .82rem; margin-top: 10px; color: color-mix(in srgb, #fff 78%, transparent); }
.disclaimer { font-size: .85rem; color: var(--muted); font-style: italic; margin-top: 26px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 12px; }
.timeline::before { content: ""; position: absolute; left: 78px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.tl-item { display: grid; grid-template-columns: 78px 1fr; gap: 30px; padding: 0 0 30px; position: relative; }
.tl-item__year { font-family: var(--font-heading); font-weight: 700; color: var(--primary); text-align: right; padding-top: 2px; }
.tl-item__body { position: relative; padding-left: 4px; }
.tl-item__body::before {
  content: "";
  position: absolute;
  left: -33px; top: 9px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-alt);
}
.tl-item h3 { font-size: 1.05rem; font-family: var(--font-body); margin-bottom: 6px; }
.tl-item p { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.tl-item a { font-size: .87rem; font-weight: 600; }

/* ---------- Testimonials ---------- */
.quote { background: var(--bg); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.2); padding: 30px 28px; }
.quote__mark { font-family: var(--font-heading); font-size: 3rem; line-height: .6; color: var(--accent); display: block; margin-bottom: 12px; }
.quote p { font-size: 1.02rem; }
.quote__name { font-weight: 700; margin-top: 18px; font-size: .95rem; }
.quote__detail { color: var(--muted); font-size: .87rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--border); padding: 6px 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 44px 18px 0;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 44px 20px 0; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__info { display: grid; gap: 22px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent); }
.info-row strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: color-mix(in srgb, currentColor 65%, transparent); margin-bottom: 3px; }
.info-row a { color: inherit; }

.form { display: grid; gap: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.3); padding: clamp(24px, 3.5vw, 38px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .97rem;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form__note { font-size: .8rem; color: var(--muted); }
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: .95rem; }
.alert--ok { background: #e8f6ec; color: #1c5f2f; border: 1px solid #b9e2c4; }
.alert--err { background: #fdecec; color: #8f2020; border: 1px solid #f4c2c2; }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: var(--footer-text); padding: 62px 0 30px; font-size: .93rem; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.footer__name { font-family: var(--font-heading); font-size: 1.25rem; color: #fff; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__bottom { border-top: 1px solid color-mix(in srgb, #fff 15%, transparent); margin-top: 44px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: .82rem; }
.footer__disclaimer { font-size: .8rem; line-height: 1.6; opacity: .75; margin-top: 20px; }

/* ---------- Sticky mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .result { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__media { max-width: 420px; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: block; order: 3; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .header { position: sticky; }
  .header__bar { position: relative; flex-wrap: wrap; }
  .header__cta .btn { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .header__bar { flex-wrap: nowrap; gap: 10px; min-height: 74px; }
  .brand { min-width: 0; }
  .brand__name { display: block; font-size: 1.05rem; }
  .brand__tag { display: block; font-size: .63rem; margin-top: 4px; }
  .nav-toggle { flex: none; margin-left: auto; }
  .hero__placeholder { aspect-ratio: 5 / 4; }
  .grid--3, .grid--2, .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .timeline::before { left: 6px; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; }
  .tl-item__year { text-align: left; color: var(--accent); font-size: .95rem; }
  .tl-item__body::before { left: -30px; top: -20px; }
  .header__phone { display: none; }
  .callbar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 70;
    background: var(--primary);
    padding: 10px 12px;
    gap: 10px;
  }
  .callbar .btn { flex: 1; padding: 13px 12px; font-size: .93rem; }
  .callbar .btn svg { width: 20px; height: 20px; flex: none; }
  body { padding-bottom: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .header, .callbar, .form, .nav-toggle { display: none !important; }
}
