:root {
  --ink: #121820;
  --ink-soft: #26313d;
  --paper: #f5f2ec;
  --cream: #fbfaf7;
  --white: #ffffff;
  --green: #2f5148;
  --green-dark: #1d3833;
  --oxblood: #8a1f2d;
  --brass: #b8894b;
  --line: #ded6c8;
  --muted: #5d6670;
  --shadow: 0 20px 55px rgba(18, 24, 32, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 200;
  width: auto;
  height: auto;
  clip: auto;
  top: 12px;
  left: 12px;
  margin: 0;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid rgba(222, 214, 200, 0.72);
  backdrop-filter: blur(16px);
}

.topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 38px;
  padding: 7px 20px;
  color: var(--white);
  background: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.topline a,
.topline span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topline svg {
  width: 15px;
  height: 15px;
}

.nav-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: var(--white);
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.36rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.brand small {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 13px;
  color: var(--ink-soft);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green-dark);
  background: rgba(47, 81, 72, 0.09);
}

.nav-links .nav-cta {
  color: var(--white);
  background: var(--oxblood);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  color: var(--white);
  background: #731827;
}

.nav-links svg,
.button svg,
.text-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.hero {
  position: relative;
  min-height: 780px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/images/texas-courthouse-hero.webp");
  background-position: center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(13, 20, 24, 0.61);
}

.hero-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 76px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  width: min(760px, 100%);
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 5.15rem;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  width: min(650px, 100%);
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  transition: transform 170ms ease, background-color 170ms ease, border-color 170ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--oxblood);
}

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

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.11);
}

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

.trust-strip {
  background: var(--green-dark);
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid div {
  min-height: 104px;
  padding: 24px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.trust-grid div:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.trust-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trust-grid strong {
  display: block;
  margin-top: 8px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
}

.section {
  padding: 92px 0;
}

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

.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 58px;
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.about-copy h2,
.contact-copy h2,
.location-grid h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 3.35rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.intro-grid p:last-child,
.about-copy p,
.contact-copy p,
.location-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 42px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.practice-card,
.process-grid article {
  min-height: 228px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(18, 24, 32, 0.05);
}

.practice-card svg {
  width: 30px;
  height: 30px;
  color: var(--oxblood);
}

.practice-card h3,
.process-grid h3 {
  margin: 22px 0 10px;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.25;
}

.practice-card p,
.process-grid p,
.notice-panel p,
.form-note {
  margin: 0;
  color: var(--muted);
}

.notice-panel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 22px;
  background: #fff9ec;
  border: 1px solid #e8d2a9;
  border-radius: 8px;
}

.notice-panel svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--brass);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.portrait-frame {
  margin: 0;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.portrait-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 7%;
  transform: scale(1.18);
  transform-origin: center top;
}

.about-copy p {
  margin-top: 18px;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 900;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--oxblood);
}

.process-section {
  background: var(--ink);
  color: var(--white);
}

.process-section h2,
.process-grid h3 {
  color: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.process-grid article {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.process-grid span {
  color: var(--brass);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.process-grid p {
  color: rgba(255, 255, 255, 0.72);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 1fr);
  gap: 58px;
  align-items: start;
}

.contact-copy p {
  margin-top: 18px;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 800;
}

.contact-list svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--green);
  margin-top: 2px;
}

.consult-form {
  display: grid;
  gap: 18px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid #cfc7ba;
  border-radius: 6px;
  outline: 0;
}

input,
select {
  min-height: 48px;
  padding: 0 13px;
}

textarea {
  min-height: 144px;
  padding: 13px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 81, 72, 0.13);
}

.form-note {
  font-size: 0.84rem;
}

.form-submit {
  justify-self: start;
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 58px;
  align-items: center;
}

.location-grid p {
  margin-top: 18px;
}

.office-panel {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 28px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-style: normal;
}

.office-panel img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin-bottom: 10px;
  border: 1px solid var(--line);
}

.office-panel strong {
  font-size: 1rem;
}

.office-panel span {
  color: var(--muted);
}

.office-panel a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: var(--green-dark);
  font-weight: 900;
}

.office-panel svg {
  width: 18px;
  height: 18px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--green-dark);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 42px 0 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-grid strong {
  display: block;
  color: var(--white);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0;
}

.footer-grid p,
.footer-fineprint p {
  margin: 8px 0 0;
}

.footer-links {
  display: grid;
  gap: 8px;
  text-align: right;
  font-weight: 800;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
}

.footer-fineprint {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 30px;
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .topline {
    display: none;
  }

  .nav-shell {
    min-height: 72px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px 20px 26px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(18, 24, 32, 0.13);
  }

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

  .nav-links a {
    justify-content: space-between;
    width: 100%;
  }

  .hero {
    min-height: 720px;
  }

  .hero h1 {
    font-size: 3.45rem;
  }

  .trust-grid,
  .practice-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .about-grid,
  .contact-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid,
  .location-grid {
    gap: 38px;
  }

  .portrait-frame {
    max-width: 420px;
  }

  .portrait-frame img {
    object-position: center 7%;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-shell,
  .hero-content {
    width: min(100% - 28px, 1180px);
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 1.08rem;
  }

  .brand small {
    font-size: 0.62rem;
  }

  .hero {
    min-height: 690px;
  }

  .hero-content {
    padding-top: 70px;
  }

  .hero h1 {
    font-size: 2.8rem;
    line-height: 1.02;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .about-actions,
  .footer-grid,
  .footer-fineprint {
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
  }

  .trust-grid,
  .practice-grid,
  .process-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .trust-grid div,
  .trust-grid div:last-child {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .section {
    padding: 66px 0;
  }

  .intro-grid h2,
  .section-heading h2,
  .about-copy h2,
  .contact-copy h2,
  .location-grid h2 {
    font-size: 2.42rem;
  }

  .consult-form,
  .office-panel {
    padding: 22px;
  }

  .footer-links {
    text-align: left;
  }
}
