:root {
  --ink: #17201d;
  --muted: #566660;
  --deep-green: #12362f;
  --green: #1f5b47;
  --brass: #b98b3b;
  --brick: #7b3e30;
  --navy: #243b5a;
  --paper: #ffffff;
  --ivory: #f7f3eb;
  --mist: #e8eee9;
  --line: rgba(23, 32, 29, 0.14);
  --shadow: 0 24px 60px rgba(16, 34, 30, 0.16);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--paper);
  background: linear-gradient(145deg, var(--deep-green), var(--navy));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(18, 54, 47, 0.2);
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--deep-green);
  background: var(--mist);
  outline: none;
}

.header-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--paper);
  background: #1f8f56;
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(31, 143, 86, 0.24);
}

.header-whatsapp svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.header-whatsapp:hover,
.header-whatsapp:focus-visible {
  background: #167a48;
  outline: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(760px, calc(100vh - 98px));
  padding: 78px 0 64px;
  color: var(--paper);
  background-image: url("assets/images/hero-law-office.webp");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 27, 24, 0.88) 0%, rgba(18, 54, 47, 0.74) 38%, rgba(18, 54, 47, 0.3) 67%, rgba(9, 27, 24, 0.08) 100%),
    linear-gradient(180deg, rgba(9, 27, 24, 0.15), rgba(9, 27, 24, 0.7));
}

.hero-content {
  max-width: var(--container);
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
  font-weight: 700;
  overflow-wrap: normal;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: var(--paper);
  background: var(--brick);
  border-color: rgba(255, 255, 255, 0.16);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #8f4937;
}

.button-secondary {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
  min-width: 0;
}

.hero-metrics strong {
  color: #fff8e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1.1;
}

.hero-metrics span {
  max-width: 14rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.intro-band {
  padding: 34px 0;
  color: var(--paper);
  background: var(--deep-green);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.intro-grid h2,
.intro-grid p {
  margin: 0;
}

.intro-grid h2 {
  max-width: 520px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.12;
}

.intro-grid > p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
}

.section {
  padding: clamp(74px, 9vw, 112px) 0;
  background: var(--ivory);
}

.section:nth-of-type(even) {
  background: #fffaf2;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading.compact {
  margin-bottom: 30px;
}

.section h2,
.section-heading h2 {
  margin: 0;
  color: var(--deep-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 3.45rem);
  line-height: 1.04;
}

.section-heading p:not(.section-kicker) {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.practice-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: start;
}

.feature-media {
  position: sticky;
  top: 104px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-note {
  padding: 22px;
  border-top: 1px solid var(--line);
}

.mini-label,
.service-index {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  color: var(--brick);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-note strong,
.feature-note span {
  display: block;
}

.feature-note strong {
  color: var(--deep-green);
  line-height: 1.25;
}

.feature-note span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.practice-groups,
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.practice-card,
.experience-panel,
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(16, 34, 30, 0.08);
}

.practice-card {
  position: relative;
  min-height: 100%;
  padding: 24px;
  overflow: hidden;
}

.practice-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--deep-green), var(--brass));
  opacity: 0.85;
}

.practice-card h3,
.experience-panel h3 {
  margin: 0 0 16px;
  color: var(--deep-green);
  font-size: 1.08rem;
  line-height: 1.25;
}

.practice-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.practice-card ul,
.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.practice-card li,
.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.96rem;
}

.practice-card li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 8px;
  height: 8px;
  background: var(--brass);
  border-radius: 2px;
  transform: rotate(45deg);
}

.founder-section {
  background:
    linear-gradient(90deg, rgba(232, 238, 233, 0.75), rgba(255, 250, 242, 0.6)),
    var(--mist);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 780px;
  margin-top: 28px;
}

.person-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 32, 29, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.person-card img {
  width: 132px;
  height: 170px;
  object-fit: cover;
  object-position: center top;
  background: var(--mist);
  border: 1px solid rgba(18, 54, 47, 0.12);
  border-radius: 6px;
}

.person-card span {
  display: block;
  color: var(--brick);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.person-card h3 {
  margin: 5px 0 8px;
  color: var(--deep-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
  line-height: 1.16;
}

.person-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.founder-section .lead {
  margin: 20px 0 0;
  color: var(--ink);
  font-size: clamp(1.12rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.founder-section .section-heading p:not(.section-kicker):not(.lead) {
  max-width: 760px;
  color: var(--muted);
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.credential-grid div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 32, 29, 0.1);
  border-radius: 8px;
}

.credential-grid span,
.credential-grid strong {
  display: block;
}

.credential-grid span {
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.credential-grid strong {
  margin-top: 8px;
  color: var(--deep-green);
  font-size: 0.94rem;
  line-height: 1.35;
}

.experience-section {
  background: var(--paper);
}

.experience-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
}

.experience-panel {
  padding: 28px;
}

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sector-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--deep-green);
  background: var(--mist);
  border: 1px solid rgba(31, 91, 71, 0.16);
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-section {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(232, 238, 233, 0.86), rgba(255, 250, 242, 0.95)),
    var(--ivory);
}

.contact-section .section-kicker {
  color: var(--brick);
}

.contact-section h2 {
  color: var(--deep-green);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.78fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: start;
}

.contact-copy h2 {
  max-width: 720px;
}

.contact-copy,
.contact-copy a,
.contact-copy span {
  color: var(--ink);
}

.contact-copy p:not(.section-kicker) {
  max-width: 630px;
  color: var(--muted);
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.contact-methods a {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(23, 32, 29, 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(16, 34, 30, 0.08);
}

.contact-methods a:hover,
.contact-methods a:focus-visible {
  background: var(--paper);
  border-color: rgba(31, 91, 71, 0.24);
  outline: none;
}

.contact-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--deep-green);
  font-size: 0.78rem;
  font-weight: 900;
  background: var(--mist);
  border: 1px solid rgba(31, 91, 71, 0.14);
  border-radius: 8px;
}

.contact-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-methods a:first-child .contact-icon svg {
  fill: currentColor;
  stroke: none;
}

.contact-methods strong,
.contact-methods a > span:last-child {
  display: block;
}

.contact-methods strong {
  color: var(--deep-green);
}

.contact-methods a > span:last-child {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  color: var(--ink);
  background: var(--paper);
  border-color: rgba(23, 32, 29, 0.12);
  box-shadow: var(--shadow);
}

.form-heading h3,
.form-heading p {
  margin: 0;
}

.form-heading h3 {
  color: var(--deep-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.2;
}

.form-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label span {
  color: var(--deep-green);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfaf7;
  border: 1px solid rgba(23, 32, 29, 0.18);
  border-radius: 6px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(31, 91, 71, 0.16);
}

.form-note {
  min-height: 22px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 56px 0 24px;
  color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(135deg, #101715, #12362f 72%, #18233a);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) repeat(3, minmax(150px, 0.8fr));
  gap: 34px;
  align-items: start;
}

.site-footer strong {
  display: block;
  color: var(--paper);
  margin-bottom: 8px;
}

.footer-mark {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  place-items: center;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(185, 139, 59, 0.55);
  border-radius: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 800;
}

.footer-brand p {
  max-width: 330px;
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 0 14px;
  color: var(--paper);
  background: #1f8f56;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 800;
}

.footer-whatsapp:hover,
.footer-whatsapp:focus-visible {
  background: #167a48;
  outline: none;
}

.site-footer p,
.site-footer address {
  margin: 0;
  font-style: normal;
}

.footer-column {
  display: grid;
  gap: 9px;
}

.footer-column h3 {
  margin: 0 0 8px;
  color: #fff8e8;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-column a,
.footer-column address {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
  line-height: 1.55;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--paper);
  outline: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .site-nav {
    position: fixed;
    inset: 76px 16px auto 16px;
    display: none;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    color: var(--ink);
  }

  .nav-toggle {
    display: block;
    justify-self: end;
    order: 2;
  }

  .header-whatsapp {
    justify-self: end;
    order: 3;
  }

  .practice-layout,
  .experience-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-media {
    position: static;
  }

  .practice-groups,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    min-height: 68px;
    gap: 12px;
    padding: 10px 14px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    max-width: 190px;
    overflow: hidden;
    font-size: 0.92rem;
    text-overflow: ellipsis;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .site-nav {
    inset: 68px 12px auto 12px;
  }

  .hero {
    min-height: calc(100vh - 112px);
    padding: 48px 0 42px;
    background-position: 59% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(9, 27, 24, 0.92) 0%, rgba(18, 54, 47, 0.82) 58%, rgba(18, 54, 47, 0.45) 100%),
      linear-gradient(180deg, rgba(9, 27, 24, 0.1), rgba(9, 27, 24, 0.68));
  }

  .hero h1 {
    max-width: 335px;
    font-size: clamp(2.45rem, 11.2vw, 3.35rem);
    line-height: 1;
  }

  .hero-copy {
    max-width: 335px;
    font-size: 1rem;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 26px;
  }

  .button {
    min-height: 46px;
    padding-inline: 15px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(78px, 102px));
    gap: 8px;
    max-width: 335px;
    margin-top: 28px;
    padding-top: 18px;
  }

  .hero-metrics strong {
    font-size: 1.06rem;
    overflow-wrap: break-word;
  }

  .hero-metrics span {
    font-size: 0.72rem;
    line-height: 1.35;
    overflow-wrap: break-word;
  }

  .intro-grid,
  .people-grid,
  .credential-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .person-card {
    grid-template-columns: 110px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .person-card img {
    width: 110px;
    height: 142px;
  }

  .person-card h3 {
    font-size: 1.12rem;
  }

  .intro-grid {
    gap: 18px;
  }

  .section {
    padding: 64px 0;
  }

  .practice-groups,
  .service-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .contact-form {
    padding: 18px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
