/* ==========================================================================
   Law Office of William K. Barth — Shared Stylesheet
   Modern & approachable workers' comp firm site
   ========================================================================== */

:root {
  --green: #2d6348;
  --green-deep: #1e2d26;
  --green-mid: #3d8a61;
  --green-light: #f0f7f3;
  --stone: #f2f0ec;
  --stone-dark: #e4e1da;
  --text: #1e2d26;
  --text-muted: #7a7670;
  --border: #dce8e2;
  --shadow-sm: 0 1px 3px rgba(30,45,38,0.06), 0 1px 2px rgba(30,45,38,0.04);
  --shadow-md: 0 8px 24px rgba(30,45,38,0.08), 0 2px 6px rgba(30,45,38,0.04);
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-deep); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--green-deep);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

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

/* ---------- Top utility bar ---------- */
.utility-bar {
  background: var(--green-deep);
  color: #a8c4b4;
  font-size: 0.86rem;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.utility-bar a { color: #ffffff; font-weight: 600; }

/* ---------- Header / nav ---------- */
.site-header {
  background: #ffffff;
  border-bottom: 2px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-weight: 700;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .name { font-size: 1rem; font-weight: 700; color: var(--green); }
.logo-text .tag  { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--green); text-decoration: none; }
.nav a.active { color: var(--green); border-bottom-color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--green); color: #ffffff; }
.btn-primary:hover { background: var(--green-mid); color: #ffffff; }
.btn-secondary { background: var(--green-deep); color: #fff; }
.btn-secondary:hover { background: var(--green); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); padding: 11px 24px; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(18,35,25,0.88) 0%, rgba(30,45,38,0.78) 60%, rgba(45,99,72,0.62) 100%),
    url('images/hero-longbeach-skyline.jpg') center/cover no-repeat,
    #1e2d26;
  color: #ffffff;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: #ffffff; margin-bottom: 18px; }
.hero .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8d4bc;
  margin-bottom: 16px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: #c8ddd2;
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--green);
}
.hero-card h3 { color: var(--green-deep); margin-bottom: 6px; }
.hero-card .sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }
.hero-card .stat-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--border); }
.hero-card .stat-row:first-of-type { border-top: none; }
.hero-card .stat-label { color: var(--text-muted); font-size: 0.92rem; }
.hero-card .stat-value { color: var(--green); font-weight: 700; }

/* page header (interior pages) */
.page-header {
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: #fff;
  padding: 64px 0 56px;
}
.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header p { color: #b8d4c4; max-width: 620px; margin: 0; }

/* page header with image overlay */
.page-header.with-image {
  background:
    linear-gradient(135deg, rgba(18,35,25,0.86), rgba(30,45,38,0.78)),
    var(--ph-image, none) center top/cover no-repeat,
    var(--green-deep);
  padding: 88px 0 76px;
}

/* ---------- Bilingual banner ---------- */
.bilingual-banner {
  background: var(--stone);
  color: var(--green-deep);
  padding: 14px 0;
  text-align: center;
  font-weight: 600;
  border-top: 1px solid var(--stone-dark);
  border-bottom: 1px solid var(--stone-dark);
}
.bilingual-banner strong { font-weight: 700; color: var(--green); }
.bilingual-banner a { color: var(--green); text-decoration: underline; }
.bilingual-banner .sep { opacity: 0.45; margin: 0 14px; }

/* ---------- Spanish callout (image + text) ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.feature-split .fs-image {
  background: var(--stone) center/cover no-repeat;
  min-height: 380px;
}
.feature-split .fs-text {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-split.reverse { grid-template-columns: 1fr 1fr; }
.feature-split.reverse .fs-image { order: 2; }
.feature-split .fs-text .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.feature-split h2 { margin-bottom: 14px; }
.feature-split p { color: var(--text-muted); }

/* ---------- Image strip ---------- */
/* Contained, centered figure. Avoids face-cropping by defaulting
   to top alignment and using a balanced aspect ratio. */
.image-strip-wrap {
  padding: 56px 24px;
  background: var(--stone);
}
.image-strip-wrap.cream { background: #f5f3ee; }
.image-strip-wrap.white { background: #ffffff; }

.image-strip {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background-color: var(--green-deep);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.image-strip.square { aspect-ratio: 1 / 1; max-width: 620px; }
.image-strip.portrait { aspect-ratio: 4 / 5; max-width: 620px; }
.image-strip.wide { aspect-ratio: 21 / 9; max-width: 1180px; }
.image-strip.pos-center { background-position: center center; }
.image-strip.pos-bottom { background-position: center bottom; }

.image-strip .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #fff;
  pointer-events: none;
}
.image-strip .overlay span {
  background: rgba(18,35,25,0.82);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 600px;
  backdrop-filter: blur(4px);
}

/* ---------- Service-area pills ---------- */
.service-areas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}
.service-areas .pill {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--green);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Es. español inline tag ---------- */
.es-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 8px;
  text-transform: uppercase;
  border: 1px solid var(--border);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--stone); }
section.cream { background: #f5f3ee; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Grid utilities ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green); }
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--green-light);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); margin: 0; font-size: 0.96rem; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  position: relative;
}
.step .num {
  position: absolute;
  top: -20px;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin: 14px 0 8px; }
.step p { margin: 0; color: var(--text-muted); }

/* ---------- Testimonial ---------- */
.quote {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 18px;
  font-family: Georgia, serif;
  font-size: 4.5rem;
  color: var(--green);
  line-height: 1;
  opacity: 0.2;
}
.quote p { font-style: italic; color: var(--text); font-size: 1.02rem; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.quote .who .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mid), var(--green-deep));
  color: #fff; display: grid; place-items: center; font-weight: 700;
}
.quote .who .meta { line-height: 1.2; }
.quote .who strong { color: var(--green-deep); }
.quote .who span { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Result stat card ---------- */
.result {
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.result .amount {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: #a8d4bc;
  margin-bottom: 6px;
}
.result .kind { font-weight: 600; margin-bottom: 4px; }
.result .desc { font-size: 0.9rem; color: #b8d4c4; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .15s, border-color .15s;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--green); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--green-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--green);
  font-weight: 400;
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 22px 18px; color: var(--text-muted); }
.faq .answer p { margin: 0 0 0.8em; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--green-deep);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,99,72,0.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.required { color: #c0392b; }

.disclaimer {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--stone);
  padding: 14px 16px;
  border-radius: var(--radius);
  border-left: 3px solid var(--green);
  margin-top: 18px;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 10px; }
.cta-strip p { color: #b8d4c4; max-width: 580px; margin: 0 auto 24px; }
.cta-strip .btn-primary { background: #fff; color: var(--green-deep); }
.cta-strip .btn-primary:hover { background: var(--stone); color: var(--green-deep); }
.cta-strip-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: #a8c4b4;
  padding: 56px 0 24px;
  font-size: 0.93rem;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #a8c4b4; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.8rem;
  color: #7a9888;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Hero lead-gen form ---------- */
.hero-lead-form .field { margin-bottom: 10px; }
.hero-lead-form .field input,
.hero-lead-form .field select {
  padding: 10px 13px;
  font-size: 0.95rem;
  border-color: var(--border);
}
.hero-lead-form .field input:focus,
.hero-lead-form .field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,99,72,0.15);
}
.hero-lang-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.hero-lang-row label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
}
.hero-form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 10px 0 0;
}

/* ---------- KPI / stat row ---------- */
.kpi-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.kpi {
  flex: 1;
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid var(--border);
  background: #fff;
}
.kpi:last-child { border-right: none; }
.kpi .kpi-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}
.kpi .kpi-label {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.4;
}
@media (max-width: 880px) {
  .kpi-row { flex-direction: column; border-radius: var(--radius); }
  .kpi { border-right: none; border-bottom: 1px solid var(--border); padding: 20px 16px; }
  .kpi:last-child { border-bottom: none; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-muted); }

/* ---------- Mobile ---------- */
@media (max-width: 880px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav { display: none; }
  .grid-2, .grid-3, .grid-4, .steps, .form-row { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
  .form-wrap { padding: 24px; }
  .feature-split { grid-template-columns: 1fr; }
  .feature-split.reverse .fs-image { order: 0; }
  .feature-split .fs-image { min-height: 260px; }
  .feature-split .fs-text { padding: 32px 24px; }
  .image-strip-wrap { padding: 40px 16px; }
  .image-strip { aspect-ratio: 4 / 3; }
  .image-strip .overlay span { font-size: 0.88rem; padding: 8px 12px; }
  .page-header.with-image { padding: 60px 0 52px; }
  .bilingual-banner .sep { display: none; }
  .bilingual-banner { font-size: 0.9rem; padding: 12px 16px; }
}
@media (max-width: 540px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .utility-bar .container { font-size: 0.78rem; }
}
