:root {
  --navy: #071f3b;
  --navy-deep: #041529;
  --red: #bf3d31;
  --red-dark: #9f2f27;
  --gold: #a47438;
  --gold-dark: #875d29;
  --paper: #f8f5ef;
  --cream: #f0ede7;
  --ink: #102848;
  --muted: #4a5970;
  --line: #ded9d0;
  --shadow: 0 10px 30px rgba(23, 34, 46, 0.14);
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

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

.site-header {
  background: var(--paper);
  border-bottom: 1px solid rgba(7, 31, 59, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(250px, 1fr) auto minmax(210px, 1fr);
  margin: 0 auto;
  max-width: 1090px;
  min-height: 84px;
  padding: 0 44px;
}

.brand {
  display: inline-block;
  width: fit-content;
}

.brand img {
  display: block;
  height: auto;
  max-width: 100%;
  width: 250px;
}

.primary-nav {
  align-items: center;
  display: flex;
  gap: 36px;
  justify-content: center;
  white-space: nowrap;
}

.primary-nav a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  transition: color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.active {
  color: var(--red);
}

.primary-nav a.active {
  position: relative;
}

.primary-nav a.active::after {
  background: var(--gold);
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
}

.title-mark {
  align-items: center;
  border-left: 2px solid rgba(7, 31, 59, 0.65);
  display: inline-flex;
  justify-self: end;
  padding-left: 28px;
}

.title-mark img {
  display: block;
  height: auto;
  width: 150px;
}

.hero {
  background:
    linear-gradient(90deg, rgba(248, 245, 239, 0.28) 0%, rgba(248, 245, 239, 0.12) 42%, rgba(248, 245, 239, 0) 100%),
    url("./assets/hero-background.jpg") center center / cover no-repeat;
  min-height: 492px;
  overflow: hidden;
}

.hero-inner {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(400px, 520px) minmax(420px, 1fr);
  margin: 0 auto;
  max-width: 1220px;
  min-height: 492px;
  padding: 62px 28px 0 44px;
}

.hero-copy {
  align-self: center;
  padding-bottom: 56px;
}

.hero-figure {
  align-self: end;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  overflow: visible;
}

.hero-team {
  display: block;
  height: auto;
  max-width: none;
  pointer-events: none;
  transform: translateX(56px);
  width: clamp(570px, 52vw, 660px);
}

.hero h1 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 24px;
  max-width: 520px;
}

.hero p {
  color: var(--navy);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 500px;
  padding-right: 0;
}

.button {
  align-items: center;
  border: 0;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
}

.button-red {
  background: var(--gold);
  color: #ffffff;
  padding: 11px 19px;
  transition: background 160ms ease, transform 160ms ease;
}

.button-red:hover,
.button-red:focus-visible {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.intro-section {
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(0, 1fr) 420px;
  margin: 0 auto;
  max-width: 1090px;
  padding: 48px 74px 28px;
}

.intro-copy {
  padding: 12px 0 0;
}

.intro-copy h2,
.contact-card h2 {
  color: var(--red);
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px;
}

.intro-copy p {
  color: var(--navy);
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 28px;
  max-width: 520px;
}

.affiliations {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 4px;
}

.affiliations span,
.affiliations img {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--navy);
  display: inline-flex;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-height: 50px;
  min-width: 102px;
  padding: 8px 12px;
  text-align: center;
}

.affiliations img {
  height: 54px;
  min-width: 0;
  object-fit: contain;
  padding: 0;
  width: auto;
}

.affiliations .affiliation-wide {
  height: 54px;
  width: auto;
}

.affiliations .affiliation-strip {
  height: auto;
  max-width: 100%;
  width: 430px;
}

.contact-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 241, 234, 0.9)),
    var(--paper);
  border: 1px solid #e4ded5;
  box-shadow: var(--shadow);
  padding: 24px 30px 18px;
}

.contact-card h2 {
  color: var(--navy);
  margin-bottom: 10px;
}

.contact-card p {
  color: #344158;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 18px;
}

form {
  display: grid;
  gap: 10px;
}

label span {
  display: none;
}

input,
textarea {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #d5d0c8;
  color: var(--navy);
  font: 500 14px var(--sans);
  min-height: 40px;
  padding: 10px 13px;
  width: 100%;
}

textarea {
  min-height: 83px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--red);
  outline: 2px solid rgba(191, 61, 49, 0.16);
}

textarea::placeholder {
  color: #6e7480;
}

input[name="name"],
input[name="email"],
input[name="phone"],
textarea {
  caret-color: var(--red);
}

input::placeholder {
  color: #6e7480;
}

form button {
  background: var(--gold);
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font: 800 12px var(--sans);
  min-height: 41px;
  text-transform: uppercase;
  transition: background 160ms ease;
}

form button:hover,
form button:focus-visible {
  background: var(--gold-dark);
}

.contact-card small {
  color: #4d5460;
  display: block;
  font-size: 12px;
  margin-top: 14px;
  padding-left: 22px;
  position: relative;
}

.contact-card small::before {
  color: #b37a2b;
  content: "▣";
  left: 0;
  position: absolute;
  top: 0;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1090px;
}

.practice-card {
  align-items: center;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  display: flex;
  aspect-ratio: 390 / 477;
  overflow: hidden;
  padding: 44px 28px;
  position: relative;
  text-align: center;
}

.practice-card::before {
  background: rgba(9, 35, 62, 0.68);
  content: "";
  inset: 0;
  position: absolute;
}

.practice-card + .practice-card {
  border-left: 2px solid rgba(255, 255, 255, 0.88);
}

.practice-card div {
  margin: 0 auto;
  max-width: 245px;
  position: relative;
  z-index: 1;
}

.practice-card h2 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.16;
  margin: 0 0 16px;
}

.practice-card p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.42;
  margin: 0 0 30px;
}

.button-small {
  font-size: 11px;
  min-height: 31px;
  padding: 8px 14px;
}

.real-estate {
  background-image: url("./assets/commercial-real-estate.jpg");
}

.title-curative {
  background-image: url("./assets/practice-title-graphic.jpg");
}

.energy {
  background-image: url("./assets/practice-energy-services.jpg");
}

.additional {
  background-image: url("./assets/practice-land-title.jpg");
}

.interior-hero {
  background:
    linear-gradient(90deg, rgba(248, 245, 239, 0.86), rgba(248, 245, 239, 0.76)),
    url("./assets/hero-background.jpg") center center / cover no-repeat;
  border-bottom: 1px solid rgba(222, 217, 208, 0.75);
}

.interior-hero-inner {
  margin: 0 auto;
  max-width: 1090px;
  padding: 64px 44px 58px;
  text-align: center;
}

.interior-hero h1 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1.15;
  margin: 0;
}

.section-rule,
.mini-rule {
  background: var(--gold);
  display: block;
  height: 2px;
  width: 70px;
}

.section-rule {
  margin: 18px auto 16px;
}

.interior-hero p {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 620px;
}

.attorney-list {
  display: grid;
  gap: 0;
  margin: 0 auto;
  max-width: 1090px;
  padding: 42px 44px 54px;
}

.attorney-row {
  align-items: start;
  border-bottom: 1px solid rgba(164, 116, 56, 0.28);
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
  padding: 52px 0;
}

.attorney-row:last-child {
  border-bottom: 0;
}

.attorney-row-reverse {
  padding-top: 80px;
}

.attorney-row-reverse .attorney-photo {
  order: 2;
}

.attorney-row-reverse .attorney-copy {
  order: 1;
}

.attorney-photo {
  align-items: center;
  aspect-ratio: 597 / 660;
  background: var(--cream);
  display: flex;
  justify-content: center;
  overflow: visible;
}

.attorney-photo img {
  display: block;
  height: auto;
  object-fit: contain;
  object-position: center top;
  width: 100%;
}

.attorney-copy h2 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.2;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.attorney-copy .mini-rule {
  margin: 0 0 20px;
  width: 52px;
}

.attorney-copy p:not(.eyebrow) {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  margin: 0 0 14px;
  max-width: 560px;
}

.attorney-contact {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.attorney-contact a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.attorney-contact a:hover,
.attorney-contact a:focus-visible {
  color: var(--gold);
}

.practice-overview {
  margin: 0 auto;
  max-width: 1090px;
  padding: 50px 44px 58px;
}

.practice-intro {
  margin-bottom: 34px;
  max-width: 760px;
}

.practice-intro h2 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.practice-intro p:not(.eyebrow) {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  margin: 0;
}

.practice-service-grid {
  display: grid;
  gap: 24px;
}

.service-panel {
  border: 1px solid rgba(222, 217, 208, 0.95);
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 280px;
}

.service-panel-muted {
  background: rgba(248, 245, 239, 0.52);
}

.service-media {
  background-position: center;
  background-size: cover;
  min-height: 100%;
}

.service-content {
  padding: 30px 34px;
}

.service-content h2 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.service-content p {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
  margin: 0 0 18px;
  max-width: 670px;
}

.service-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.service-content ul {
  column-gap: 30px;
  columns: 2;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-content li {
  break-inside: avoid;
  color: #344158;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 9px;
  padding-left: 17px;
  position: relative;
}

.service-content li::before {
  background: var(--gold);
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  top: 9px;
  width: 5px;
}

.contact-page {
  align-items: start;
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 1fr) 420px;
  margin: 0 auto;
  max-width: 1090px;
  padding: 52px 44px 60px;
}

.contact-content h2 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 18px;
}

.contact-content h3 {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 26px 0 8px;
  text-transform: uppercase;
}

.contact-content p {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
  margin: 0 0 18px;
  max-width: 660px;
}

.contact-detail-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 30px 0 22px;
}

.contact-detail-grid h3,
.contact-attorneys h3 {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.contact-detail-grid a,
.contact-attorneys a,
.contact-social {
  color: var(--navy);
  font-weight: 500;
}

.contact-detail-grid a:hover,
.contact-detail-grid a:focus-visible,
.contact-attorneys a:hover,
.contact-attorneys a:focus-visible,
.contact-social:hover,
.contact-social:focus-visible {
  color: var(--gold);
}

.contact-line {
  align-items: baseline;
  display: grid;
  gap: 8px;
  grid-template-columns: 48px minmax(0, 1fr);
  margin: 0 0 5px;
}

.contact-line strong {
  color: var(--ink);
  font-weight: 800;
}

.contact-attorneys {
  margin-bottom: 22px;
}

.contact-social {
  display: inline-flex;
  font-weight: 700;
  margin-top: 4px;
}

.contact-side {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 110px;
}

.contact-page-card {
  position: static;
}

.contact-map {
  background: var(--paper);
  border: 1px solid #e4ded5;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-map iframe {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  width: 100%;
}

.site-footer {
  margin: 0 auto;
  max-width: 1090px;
}

.footer-main {
  align-items: start;
  background: var(--paper);
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(250px, 1.3fr) minmax(210px, 1fr) minmax(180px, 0.8fr) auto;
  padding: 34px 58px;
}

.footer-brand img {
  width: 268px;
}

address,
.footer-contact {
  color: #424a55;
  font-style: normal;
  font-size: 13px;
  line-height: 1.55;
  padding-top: 4px;
}

.footer-heading {
  color: #b27831;
  display: block;
  font-size: 13px;
  line-height: 1.2;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.footer-contact a {
  display: block;
}

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

.social-links {
  display: flex;
  gap: 14px;
}

.social-links a {
  align-items: center;
  background: var(--navy);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.copyright {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  padding: 20px 44px;
}

@media (max-width: 920px) {
  .nav-wrap {
    gap: 18px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 18px 24px;
  }

  .title-mark {
    border-left: 0;
    padding-left: 0;
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(248, 245, 239, 0.34), rgba(248, 245, 239, 0.16), rgba(248, 245, 239, 0)),
      url("./assets/hero-background.jpg") center center / cover no-repeat;
  }

  .hero-inner {
    gap: 10px;
    grid-template-columns: minmax(360px, 430px) minmax(300px, 1fr);
    padding: 54px 16px 0 28px;
  }

  .hero-team {
    transform: translateX(78px);
    width: clamp(520px, 62vw, 610px);
  }

  .hero h1 {
    font-size: 40px;
    max-width: 460px;
  }

  .hero p {
    max-width: 440px;
    padding-right: 0;
  }

  .intro-section {
    gap: 34px;
    grid-template-columns: 1fr;
    padding: 44px 28px;
  }

  .intro-copy p {
    max-width: none;
  }

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

  .practice-card:nth-child(3) {
    border-left: 0;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    padding: 32px 28px;
  }

  .attorney-row {
    gap: 32px;
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1fr);
  }

  .service-panel {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .service-content ul {
    columns: 1;
  }

  .contact-page {
    gap: 34px;
    grid-template-columns: 1fr;
    padding: 44px 28px 52px;
  }

  .contact-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero-figure {
    display: none;
  }

  .hero-inner {
    align-items: center;
    display: block;
    min-height: 0;
    padding: 44px 28px 58px;
  }

  .hero-copy {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    text-align: center;
  }

  .hero h1 {
    max-width: 560px;
  }

  .hero p {
    max-width: 520px;
    padding-right: 0;
  }

  .interior-hero-inner {
    padding: 52px 28px 46px;
  }

  .interior-hero h1 {
    font-size: 38px;
  }

  .attorney-list {
    padding: 32px 28px 44px;
  }

  .attorney-row,
  .attorney-row-reverse {
    gap: 24px;
    grid-template-columns: 1fr;
    padding: 38px 0 44px;
  }

  .attorney-row-reverse .attorney-photo,
  .attorney-row-reverse .attorney-copy {
    order: initial;
  }

  .practice-overview {
    padding: 38px 28px 46px;
  }

  .practice-intro h2 {
    font-size: 29px;
  }

  .service-panel {
    grid-template-columns: 1fr;
  }

  .service-media {
    min-height: 210px;
  }

  .service-content {
    padding: 26px 24px;
  }

  .contact-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .primary-nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .brand img,
  .footer-brand img {
    width: min(78vw, 250px);
  }

  .title-mark img {
    width: 142px;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(248, 245, 239, 0.48) 0%, rgba(248, 245, 239, 0.26) 48%, rgba(248, 245, 239, 0.12) 100%),
      url("./assets/hero-background.jpg") center center / cover no-repeat;
    min-height: 520px;
  }

  .hero-inner {
    padding: 42px 24px 72px;
  }

  .hero-copy {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    text-align: center;
  }

  .hero-figure {
    display: none;
  }

  .hero h1 {
    font-size: 40px;
    max-width: 360px;
  }

  .hero p {
    font-size: 15px;
    padding-right: 0;
  }

  .intro-section {
    padding: 34px 20px;
  }

  .contact-card {
    padding: 22px 20px 18px;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .practice-card {
    border-left: 0;
    aspect-ratio: 390 / 477;
  }

  .practice-card + .practice-card {
    border-left: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.88);
  }

  .footer-main {
    gap: 24px;
    grid-template-columns: 1fr;
  }
}
