:root {
  --blue: #051f51;
  --blue-dark: #001746;
  --green: #1d5f24;
  --green-dark: #10541a;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --line: #d9d9d6;
  --soft: #f4f4f2;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(5, 31, 81, 0.08);
  --radius: 18px;
  --header-height: 92px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: Inter, Aptos, Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--green); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4, h5, p { margin-top: 0; }
h1, h2, h3, h4 {
  color: var(--blue);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.018em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.85rem); margin-bottom: 1.4rem; }
h2 { font-size: clamp(2rem, 3.5vw, 3.35rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: clamp(1.4rem, 2vw, 2rem); }
h5 {
  color: var(--green-dark);
  font-family: Inter, Aptos, Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
}

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 132px) 0; }
.section-soft { background: var(--soft); }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 10000;
  padding: 12px 18px;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
}
.skip-link:focus { top: 16px; color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--green); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.65; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border: 2px solid var(--blue);
  border-radius: 7px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.button:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(5,31,81,.16); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(29, 95, 36, 0.38);
  outline-offset: 3px;
}
.button-small { min-height: 43px; padding: 10px 18px; font-size: 0.85rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(217,217,214,.8);
  backdrop-filter: blur(12px);
  transition: box-shadow 180ms ease, height 180ms ease;
}
.site-header.is-scrolled { box-shadow: 0 9px 26px rgba(5,31,81,.08); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 270px; height: auto; }
.brand-mobile { display: none; }
.main-nav { display: flex; align-items: center; gap: clamp(15px, 2vw, 28px); }
.main-nav > a:not(.button) { color: var(--text); font-size: 0.88rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.main-nav > a:not(.button):hover, .main-nav > a[aria-current="true"] { color: var(--green-dark); }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 11px; border: 0; border-radius: 6px; background: transparent; }
.menu-toggle span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px auto; background: var(--blue); transition: transform 180ms ease, opacity 180ms ease; }
.menu-toggle[aria-expanded="true"] span:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-of-type(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { min-height: calc(100vh - var(--header-height)); display: flex; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .98fr) minmax(420px, 1.02fr); align-items: center; gap: clamp(42px, 7vw, 88px); }
.hero-copy { padding: 42px 0; }
.hero-copy h1 { max-width: 900px; }
.hero-copy .lead { max-width: 720px; color: #3f3f3f; }
.hero-actions { margin: 34px 0 28px; }
.signature-line { color: var(--green-dark); font-family: Georgia, Cambria, serif; font-size: 1.02rem; font-style: italic; }
.hero-media { position: relative; }
.hero-media::before { content: ""; position: absolute; inset: -24px 34% 26% -32px; z-index: -1; background: var(--soft); border-radius: 24px; }
.hero-media::after { content: ""; position: absolute; right: -22px; bottom: -22px; width: 44%; height: 42%; z-index: -1; border: 2px solid var(--green); border-radius: 18px; }
.hero-media img { aspect-ratio: 16/9; object-fit: cover; object-position: center; border-radius: 18px; box-shadow: var(--shadow); }

.intro-grid, .firm-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(38px, 7vw, 100px); align-items: start; }
.section-heading h2 { max-width: 760px; }
.intro-copy, .firm-copy { font-size: 1.05rem; }
.intro-copy p:last-child, .firm-copy p:last-child { margin-bottom: 0; }
.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(45px, 6vw, 78px); }
.practice-card { display: flex; flex-direction: column; min-height: 310px; padding: 32px 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.practice-card:hover { transform: translateY(-5px); border-color: rgba(29,95,36,.5); box-shadow: var(--shadow); }
.practice-card .icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 24px; color: var(--green-dark); }
.practice-card svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.practice-card h3 { margin-bottom: 14px; }
.practice-card p { color: #4b4b4b; font-size: .95rem; line-height: 1.58; }
.practice-card a { margin-top: auto; color: var(--blue); font-weight: 700; font-size: .9rem; text-decoration: none; }
.inline-cta { margin-top: clamp(40px, 6vw, 72px); padding: 30px 34px; display: flex; align-items: center; justify-content: space-between; gap: 34px; border-left: 4px solid var(--green); background: var(--white); }
.inline-cta h3 { margin-bottom: 8px; }
.inline-cta p { max-width: 780px; margin-bottom: 0; }
.inline-cta .button { flex: 0 0 auto; }

.quote-block { margin-top: clamp(42px, 6vw, 76px); padding: clamp(34px, 5vw, 62px); background: var(--soft); border-radius: var(--radius); border-left: 4px solid var(--green); }
.quote-block p { max-width: 950px; color: var(--blue); font-family: Georgia, Cambria, serif; font-size: clamp(1.45rem, 2.4vw, 2.3rem); line-height: 1.35; margin-bottom: 18px; }
.quote-block span { color: var(--green-dark); font-weight: 650; }

.heading-centered { max-width: 900px; text-align: center; }
.heading-centered .eyebrow { justify-content: center; }
.heading-centered h2 { margin-inline: auto; }
.heading-centered > p:last-child { color: #4b4b4b; font-size: 1.05rem; }
.accordion { margin-top: 46px; }
.service-item { border-top: 1px solid var(--line); }
.service-item:last-child { border-bottom: 1px solid var(--line); }
.service-item h3 { margin: 0; font-family: inherit; }
.service-trigger { width: 100%; min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 4px; border: 0; background: transparent; color: var(--blue); font-family: Georgia, Cambria, serif; font-size: clamp(1.45rem, 2.5vw, 2.15rem); text-align: left; }
.service-trigger > span:first-child { display: flex; align-items: center; gap: 22px; }
.service-number { color: var(--green-dark); font-family: Inter, Aptos, Arial, sans-serif; font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.service-toggle { position: relative; flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; }
.service-toggle::before, .service-toggle::after { content: ""; position: absolute; left: 8px; right: 8px; top: 15px; height: 1.5px; background: var(--blue); }
.service-toggle::after { transform: rotate(90deg); transition: transform 180ms ease; }
.service-trigger[aria-expanded="true"] .service-toggle::after { transform: rotate(0); }
.service-panel { padding: 8px 0 48px; }
.service-panel[hidden] { display: none; }
.service-layout { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); gap: clamp(34px, 6vw, 72px); align-items: start; }
.service-layout > img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; }
.service-content h4 { margin-bottom: 17px; }
.service-content > p { color: #444; }
.service-content ul { margin: 0; padding-left: 1.15rem; }
.service-content li { margin-bottom: 8px; }
.service-content li::marker { color: var(--green); }
.service-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; margin: 28px 0; }
.useful { margin: 28px 0 0; padding: 18px 20px; background: var(--white); border-left: 3px solid var(--green); font-size: .95rem; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; padding-left: 0; list-style: none; }
.process-card { position: relative; min-height: 280px; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.process-card::after { content: ""; position: absolute; top: 47px; left: 76px; right: 32px; height: 1px; background: var(--line); }
.process-card > span { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 24px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: .78rem; font-weight: 800; }
.process-card h3 { font-size: 1.35rem; }
.process-card p { color: #4a4a4a; font-size: .94rem; margin-bottom: 0; }
.method-statement { margin-top: 44px; text-align: center; }
.method-statement p { color: var(--blue); font-family: Georgia, Cambria, serif; font-size: clamp(1.45rem, 2.6vw, 2.25rem); margin-bottom: 8px; }
.method-statement span { color: var(--muted); }
.section-action { margin-top: 32px; text-align: center; }

.section-contact { background: var(--blue-dark); color: rgba(255,255,255,.9); }
.section-contact h2, .section-contact h3 { color: var(--white); }
.section-contact .eyebrow { color: #bcdcbf; }
.section-contact .eyebrow::before { background: #bcdcbf; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(460px, 1.18fr); gap: clamp(45px, 7vw, 92px); align-items: start; }
.contact-copy > p { max-width: 600px; }
.contact-email { display: inline-block; color: var(--white); font-size: 1.18rem; font-weight: 700; margin: 18px 0 8px; }
.contact-email:hover { color: #cce4ce; }
.contact-location { color: rgba(255,255,255,.7); font-size: .92rem; }
.contact-copy img { margin-top: 34px; aspect-ratio: 16/9; object-fit: cover; border-radius: 14px; opacity: .92; }
.form-card { padding: clamp(28px, 4vw, 46px); background: var(--white); color: var(--text); border-radius: var(--radius); box-shadow: 0 25px 70px rgba(0,0,0,.22); }
.form-heading { margin-bottom: 28px; }
.form-heading h3 { margin-bottom: 8px; font-size: 1.75rem; }
.form-heading p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--blue); font-size: .89rem; font-weight: 700; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #bfc4ca;
  border-radius: 7px;
  background: var(--white);
  color: var(--text);
  padding: 12px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input, .field select { min-height: 48px; }
.field textarea { resize: vertical; min-height: 145px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #7d8795; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,95,36,.11); outline: none; }
.field small { color: var(--muted); font-size: .79rem; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; margin: 25px 0; color: #4b4b4b; font-size: .79rem; line-height: 1.55; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.consent a { font-weight: 700; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.submit-button { width: 100%; position: relative; }
.submit-button .spinner { display: none; width: 18px; height: 18px; margin-left: 10px; border: 2px solid rgba(255,255,255,.45); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite; }
.submit-button.is-loading .spinner { display: inline-block; }
.submit-button:disabled { opacity: .72; cursor: wait; transform: none; }
.form-status { min-height: 24px; margin: 16px 0 0; font-size: .9rem; font-weight: 650; }
.form-status.success { color: var(--green-dark); }
.form-status.error { color: #9a2424; }
.privacy-note { color: var(--muted); font-size: .76rem; line-height: 1.5; margin: 12px 0 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer { padding: 65px 0 24px; background: #031638; color: rgba(255,255,255,.74); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1.25fr; gap: 46px; }
.footer-brand img { width: 190px; max-height: 150px; object-fit: contain; object-position: left center; filter: none; opacity: .92; }
.site-footer h2 { color: var(--white); font-family: Inter, Aptos, Arial, sans-serif; font-size: .84rem; font-weight: 800; letter-spacing: .08em; margin-bottom: 18px; text-transform: uppercase; }
.site-footer nav, .site-footer > .container > div { min-width: 0; }
.footer-grid a { display: block; width: fit-content; margin-bottom: 8px; color: rgba(255,255,255,.8); text-decoration: none; }
.footer-grid a:hover, .footer-bottom a:hover { color: var(--white); }
.footer-grid p { margin-bottom: 7px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); font-size: .8rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.78); text-decoration: none; }

/* Legal pages */
.legal-header .header-inner { justify-content: space-between; }
.legal-main { padding: 46px 0 100px; background: var(--soft); }
.legal-layout { max-width: 920px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; color: var(--muted); font-size: .85rem; }
.breadcrumbs a { text-decoration: none; }
.legal-article { padding: clamp(32px, 6vw, 72px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.legal-article > header { margin-bottom: 44px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal-article h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.legal-date { color: var(--muted); font-size: .88rem; }
.legal-article section { margin-top: 38px; }
.legal-article section:first-of-type { margin-top: 0; }
.legal-article h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin-bottom: 15px; }
.legal-article ul { padding-left: 1.25rem; }
.legal-article li { margin-bottom: 8px; }
.legal-article li::marker { color: var(--green); }
.legal-footer { padding-top: 20px; }
.legal-footer .footer-bottom { margin-top: 0; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.legal-footer nav a { color: rgba(255,255,255,.78); text-decoration: none; }

/* Progressive enhancement */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 520ms ease, transform 520ms ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  :root { --header-height: 78px; }
  .brand img { width: 225px; }
  .main-nav { gap: 16px; }
  .main-nav > a:not(.button) { font-size: .82rem; }
  .nav-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 45px; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 48px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  :root { --header-height: 72px; }
  .container { width: min(calc(100% - 30px), var(--container)); }
  .brand-desktop { display: none; }
  .brand-mobile { display: block; }
  .brand img { width: 190px; max-height: 52px; object-fit: contain; object-position: left center; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 20px 28px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(5,31,81,.12);
  }
  .main-nav.is-open { display: flex; }
  .main-nav > a:not(.button) { padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-cta { display: inline-flex; margin-top: 18px; }
  .hero { min-height: auto; }
  .hero-grid, .intro-grid, .firm-grid, .service-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 20px; }
  .hero-media { max-width: 680px; }
  .hero-media::before { inset: -15px 28% 35% -15px; }
  .section-heading h2 { max-width: none; }
  .service-layout { gap: 30px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-copy img { max-width: 650px; }
}

@media (max-width: 580px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  h1 { font-size: clamp(2.25rem, 12vw, 3.2rem); }
  h2 { font-size: clamp(1.9rem, 9.5vw, 2.6rem); }
  .hero-grid { gap: 30px; }
  .hero-media::after { right: -8px; bottom: -8px; }
  .practice-grid, .process-grid, .service-columns, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .practice-card { min-height: 265px; }
  .inline-cta { align-items: flex-start; flex-direction: column; padding: 25px; }
  .inline-cta .button { width: 100%; }
  .service-trigger { min-height: 82px; font-size: 1.35rem; }
  .service-trigger > span:first-child { gap: 14px; }
  .service-number { display: none; }
  .service-panel { padding-bottom: 36px; }
  .process-card { min-height: auto; }
  .field { grid-column: 1 / -1; }
  .form-card { padding: 25px 20px; border-radius: 12px; }
  .footer-bottom, .legal-footer .footer-bottom { align-items: flex-start; flex-direction: column; }
  .legal-article { padding: 28px 22px; }
  .legal-header .button { padding-inline: 13px; font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 0; background: var(--soft); }
.error-card { max-width: 720px; padding: clamp(38px, 7vw, 75px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.error-card img { width: min(360px, 80%); margin: 0 auto 45px; }
.error-card .eyebrow { justify-content: center; }
.error-card h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
.error-card p:not(.eyebrow) { margin-bottom: 28px; color: var(--muted); }
