:root {
  --green-900: #173A2C;
  --green-600: #2E6B47;
  --green-700: #245A3B;
  --mint: #EEF3EF;
  --cream: #F8F7F3;
  --white: #fff;
  --ink: #1E2723;
  --muted: #4A5650;
  --sand: #E6DCC8;
  --line: #DCE2DE;
  --card-line: #E1E5E2;
  --input-line: #7C8782;
  --error: #B3261E;
  --radius: 8px;
  --header-h: 77px;
  --font-body: Inter, system-ui, sans-serif;
  --font-head: Manrope, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-600); }
a:hover { color: var(--green-700); }
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; }
[data-dark] :focus-visible { outline-color: var(--sand); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Drop onto any photo <img> whose container defines the box (aspect-ratio,
   position, mask, grayscale, etc.) — this just fills that box. */
.fit-photo { width: 100%; height: 100%; display: block; object-fit: cover; }

/* If a .fit-photo's container is itself a `display:flex` item, that
   container needs `min-width: 0` (or `overflow: hidden`) too — otherwise the
   photo's intrinsic size makes it overflow the box. */
.photo-box { position: relative; width: 100%; min-width: 0; overflow: hidden; border-radius: var(--radius); }

.wrap { max-width: 1248px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green-900); color: #fff; padding: 12px 18px;
  border-radius: var(--radius); text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- desktop / mobile switch (design breakpoint: 960px) ---------- */
@media (max-width: 959.98px) { .desktop-only { display: none !important; } }
@media (min-width: 960px) { .mobile-only { display: none !important; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius);
  text-decoration: none; font-weight: 500; white-space: nowrap;
  column-gap: 0.28em; /* "Call" + phone <span>: flex drops the space between them */
}
.btn-sm { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-outline { padding: 0 24px; border: 1.5px solid var(--green-900); color: var(--green-900); }
.btn-outline:hover { background: var(--mint); color: var(--green-900); }
.btn-outline-light { padding: 0 24px; border: 1.5px solid #fff; color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { display: inline-block; font-weight: 600; text-decoration: none; padding: 10px 0; align-self: flex-start; }
.text-link:hover { text-decoration: underline; }
.strong-link { font-weight: 600; }

.mt-44 { margin-top: 44px; }
.mb-40 { margin-bottom: 40px !important; }
.mb-48 { margin-bottom: 48px !important; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.header-spacer { height: var(--header-h); }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.header-bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-logo { display: flex; flex-shrink: 0; }
.header-logo img { height: 32px; width: auto; display: block; }
@media (min-width: 960px) { .header-logo img { height: 40px; } }
.header-nav { display: flex; gap: 24px; font-size: 16px; font-weight: 500; }
.header-nav a { color: var(--ink); text-decoration: none; padding: 12px 0; }
.header-nav a:hover { color: var(--green-600); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { font-size: 18px; font-weight: 600; color: var(--green-900); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--green-600); }
.header-icons { display: flex; gap: 8px; }
.icon-btn {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--green-900); border-radius: var(--radius);
  background: #fff; color: var(--green-900); cursor: pointer; padding: 0;
}
.icon-btn:hover { color: var(--green-900); background: var(--mint); }
.mobile-nav { border-top: 1px solid var(--line); padding: 8px 24px 16px; display: flex; flex-direction: column; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { color: var(--ink); text-decoration: none; padding: 12px 0; font-weight: 500; }
@media (min-width: 960px) { .mobile-nav { display: none !important; } }

main { outline: none; }

/* ---------- sections ---------- */
.section-cream { background: var(--cream); }
.section-white { background: #fff; }
.section-mint { background: var(--mint); }
.section-dark { background: var(--green-900); }
.section-pad { padding-top: 88px; padding-bottom: 88px; }
.anchor-84 { scroll-margin-top: 84px; }
.anchor-76 { scroll-margin-top: 76px; }

.h2 {
  margin: 0; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -0.01em;
  color: var(--green-900);
}

/* ---------- hero ---------- */
.hero { background: var(--cream); }
.hero-grid {
  padding-top: 24px; padding-bottom: 48px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 48px; align-items: center;
}
@media (min-width: 960px) { .hero-grid { padding-top: 56px; } }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 {
  margin: 0; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(34px, 4.4vw, 52px); line-height: 1.12; letter-spacing: -0.02em;
  color: var(--green-900);
}
.hero-lead { margin: 0; font-size: 20px; color: var(--muted); max-width: 560px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--muted); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-media { aspect-ratio: 5 / 4; }
@media (max-width: 1023.98px) { .hero-media { max-height: 220px; } }
@media (max-width: 959.98px) { .hero-media { order: -1; } }

/* ---------- trust strip ---------- */
.trust { background: var(--mint); }
.trust-list {
  list-style: none; margin: 0 auto; padding-top: 32px; padding-bottom: 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px;
}
.trust-list li { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--ink); font-weight: 500; }

/* ---------- services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.service-card {
  background: #fff; border: 1px solid var(--card-line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.service-card h3 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 21px; line-height: 1.3; color: var(--green-900); }
.service-card p { margin: 0; color: var(--muted); flex: 1; }

/* ---------- contact / form ---------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 48px; align-items: start;
}
.contact-copy { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.contact-copy .h2 { color: #fff; }
.contact-lead { margin: 0; color: var(--sand); font-size: 19px; }
.contact-alt { margin: 0; color: var(--sand); }
.contact-alt a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); color: var(--ink); }
.lead-form { display: flex; flex-direction: column; gap: 20px; }
.form-note { margin: 0; font-size: 15px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 500; font-size: 16px; }
.req { color: var(--error); }
.field input,
.field select {
  min-height: 50px; padding: 0 14px; font: inherit; font-size: 17px; color: var(--ink);
  background-color: #fff; border: 1px solid var(--input-line); border-radius: var(--radius); width: 100%;
}
.field select {
  padding-right: 40px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23173A2C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error p { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--error); font-size: 15px; }
.field-error svg { flex-shrink: 0; }
.btn-submit {
  min-height: 54px; border: 0; border-radius: var(--radius); background: var(--green-600); color: #fff;
  font: inherit; font-weight: 600; font-size: 18px; cursor: pointer; width: 100%;
}
.btn-submit:hover { background: var(--green-700); }
.btn-submit:disabled { opacity: 0.7; cursor: wait; }
.form-privacy { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--muted); }
.form-privacy svg { flex-shrink: 0; margin-top: 2px; }
.form-error-banner {
  color: var(--error); background: #FCEEEE; border: 1px solid var(--error);
  border-radius: var(--radius); padding: 12px 14px; font-size: 15px;
}
.form-error-banner[hidden] { display: none; }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px 48px; }
.why-item { display: flex; flex-direction: column; gap: 10px; }
.why-item h3 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--green-900); }
.why-item p { margin: 0; color: var(--muted); }

/* ---------- about ---------- */
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px; align-items: center;
}
.about-media { aspect-ratio: 4 / 5; max-height: 640px; }
.about-copy { display: flex; flex-direction: column; gap: 18px; }
.about-copy .h2 { margin-bottom: 6px; }
.about-copy p { margin: 0; }
.about-copy .about-sig { margin-top: 6px; font-style: italic; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 12px; }
.cta-copy h2 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.25; color: #fff; }
.cta-copy p { margin: 0; color: var(--sand); max-width: 620px; }

/* ---------- lawyers ---------- */
.lawyer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; }
.lawyer { display: flex; flex-direction: column; gap: 8px; }
.lawyer-photo { aspect-ratio: 4 / 5; margin-bottom: 12px; }
.lawyer h3 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--green-900); }
.lawyer-role { margin: 0; font-size: 16px; color: var(--muted); }
.lawyer-bio { margin: 4px 0 0; }

/* ---------- areas ---------- */
.areas { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 24px; }
.areas p { margin: 0; }
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { border: 1.5px solid var(--green-600); color: var(--green-600); border-radius: 999px; padding: 8px 20px; font-weight: 500; font-size: 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-900); color: var(--sand); }
.footer-cta {
  padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(230, 220, 200, 0.2);
}
.footer-cta-title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; color: #fff; }
.footer-main {
  padding-top: 56px; padding-bottom: 56px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 40px; font-size: 16px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand p { margin: 0; }
.footer-logo { background: var(--cream); border-radius: var(--radius); padding: 12px 14px; align-self: flex-start; }
.footer-logo img, .footer-logo svg { height: 36px; width: auto; display: block; }
.footer-address { font-style: normal; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; text-align: right; }
.footer-address a { color: #fff; font-weight: 600; text-decoration: none; padding: 4px 0; }
.footer-address a:hover { text-decoration: underline; color: #fff; }
.footer-legal-wrap { border-top: 1px solid rgba(230, 220, 200, 0.2); }
.footer-legal { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--sand); }
.footer-legal a:hover { color: #fff; }
.sticky-spacer { height: 76px; }

/* ---------- mobile sticky bar ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff;
  border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.sticky-call {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
  border-radius: var(--radius); border: 1.5px solid var(--green-900); color: var(--green-900);
  text-decoration: none; font-weight: 600; font-size: 16px;
}
.sticky-call:hover { color: var(--green-900); background: var(--mint); }
.sticky-cta {
  display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: var(--radius);
  background: var(--green-600); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  text-align: center; line-height: 1.2; padding: 0 8px;
}
.sticky-cta:hover { background: var(--green-700); color: #fff; }

/* ---------- simple pages (privacy policy) ---------- */
.page-header { background: #fff; border-bottom: 1px solid var(--line); }
.page-header-bar {
  padding-top: 14px; padding-bottom: 14px; min-height: 76px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 16px 24px;
}
.page-header-bar .header-logo img { height: 40px; }
.page-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.page-header-actions .header-phone { padding: 10px 0; }
.prose { max-width: 760px; margin: 0 auto; padding: 64px 24px 88px; display: flex; flex-direction: column; gap: 20px; }
.prose h1 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(34px, 4.5vw, 48px); line-height: 1.15; color: var(--green-900); }
.prose h2 { margin: 28px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.3; color: var(--green-900); }
.prose p { margin: 0; }
.prose strong { font-weight: 600; }
.prose .updated { color: var(--muted); font-size: 16px; }
.prose .updated strong { color: var(--ink); }
.back-link { font-size: 16px; font-weight: 500; text-decoration: none; align-self: flex-start; padding: 10px 0; }
.contact-box { background: var(--mint); border-radius: var(--radius); padding: 24px; display: grid; gap: 6px; }
.footer-main.footer-main-48 { padding-top: 48px; padding-bottom: 48px; }
