:root {
  --ink: #29378f;
  --graphite: #29378f;
  --slate: #3b4380;
  --fog: #d3ddfc;
  --paper: #ffffff;
  --porcelain: #d2d3dc;
  --cinnabar: #ed1f27;
  --marigold: #ed1f27;
  --teal: #29378f;
  --line: #d3ddfc;
  --light-line: rgba(211, 221, 252, 0.35);
  --shadow: 0 28px 80px rgba(41, 55, 143, 0.18);
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Albert Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(41, 55, 143, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 55, 143, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
blockquote,
figure {
  margin: 0;
}

h1,
h2,
h3,
.brand {
  font-family: var(--font-heading);
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.25rem);
  align-items: center;
  padding: 0.8rem clamp(1rem, 4vw, 5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.2rem;
  border: 1px solid rgba(211, 221, 252, 0.32);
  background: #ffffff;
  object-fit: contain;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  color: rgba(41, 55, 143, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav a,
.header-call {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

nav a:hover,
.header-call:hover {
  color: var(--cinnabar);
}

.header-call {
  justify-self: end;
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.64rem 0.9rem;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.28fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  overflow: hidden;
  padding: clamp(5.5rem, 8vw, 8rem) clamp(1rem, 4vw, 5rem) clamp(2.5rem, 5vw, 5rem);
  background: var(--graphite);
  color: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(41, 55, 143, 0.96) 0%, rgba(41, 55, 143, 0.78) 34%, rgba(41, 55, 143, 0.28) 52%, rgba(41, 55, 143, 0) 68%);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 2;
}

.hero-content {
  width: min(1040px, 100%);
}

.hero h1 {
  max-width: 14.4ch;
  margin-top: 0;
  font-size: clamp(4rem, 8.2vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
}

.hero-content > p {
  width: min(650px, 100%);
  margin-top: 1.6rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
  padding: 0.86rem 1.1rem;
  border: 1px solid currentColor;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button.primary {
  border-color: var(--marigold);
  background: var(--marigold);
  color: #ffffff;
}

.button.primary:hover {
  border-color: #c9151d;
  background: #c9151d;
}

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

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.88);
}

.button svg,
.header-call svg,
.signal-row svg,
.practice-grid svg,
.contact-panel svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  stroke-width: 1.8;
}

.hero-card {
  align-self: end;
  padding: 1rem;
  border: 1px solid rgba(211, 221, 252, 0.34);
  background: rgba(41, 55, 143, 0.84);
  box-shadow: var(--shadow);
}

.hero-card p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  margin-top: 0.4rem;
  color: var(--marigold);
  font-family: var(--font-heading);
  font-size: clamp(4.2rem, 8vw, 7rem);
  line-height: 0.9;
}

.hero-card span {
  display: block;
  margin-top: 0.7rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  line-height: 1.25;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.signal-row p {
  min-height: 6.25rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem clamp(0.95rem, 2vw, 1.5rem);
  border-right: 1px solid var(--line);
  color: var(--graphite);
  font-size: 0.95rem;
  font-weight: 900;
}

.signal-row p:last-child {
  border-right: 0;
}

.signal-row svg {
  color: var(--cinnabar);
}

.intro-section,
.practice-section,
.reviews-section,
.contact-section {
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1rem, 4vw, 5rem);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.68fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  background: var(--porcelain);
}

.intro-section h2,
.section-heading h2,
.experience-copy h2,
.reviews-heading h2,
.contact-section h2 {
  margin-top: 0;
  font-size: clamp(2.6rem, 5.8vw, 6.6rem);
  font-weight: 700;
  line-height: 0.9;
}

.intro-copy {
  display: grid;
  gap: 1.1rem;
  color: var(--slate);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.section-heading {
  display: block;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-heading h2 {
  max-width: 1180px;
}

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

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.practice-grid article {
  min-height: 21rem;
  padding: 1.2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.practice-grid article:nth-child(3n) {
  border-right: 0;
}

.practice-grid article:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.practice-grid span {
  display: inline-flex;
  width: 2.65rem;
  height: 2.65rem;
  align-items: center;
  justify-content: center;
  background: var(--graphite);
  color: #ffffff;
}

.practice-grid h3 {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  color: var(--graphite);
  font-size: clamp(1.9rem, 3vw, 2.85rem);
  font-weight: 700;
  line-height: 0.95;
}

.practice-grid p {
  margin-top: 1rem;
  color: var(--slate);
  font-size: 0.98rem;
}

.experience-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.62fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: stretch;
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1rem, 4vw, 5rem);
  background: var(--graphite);
  color: var(--paper);
}

.experience-image {
  min-height: 32rem;
  border: 1px solid rgba(211, 221, 252, 0.25);
  overflow: hidden;
}

.experience-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05);
}

.experience-copy {
  align-self: end;
  max-width: 820px;
}

.experience-copy h2 {
  color: var(--paper);
}

.experience-copy ul {
  display: grid;
  gap: 1px;
  padding: 0;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  list-style: none;
  background: rgba(211, 221, 252, 0.24);
  border: 1px solid rgba(211, 221, 252, 0.24);
}

.experience-copy li {
  padding: 1rem;
  background: var(--graphite);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.reviews-section {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  background: var(--teal);
  color: var(--paper);
}

.reviews-heading {
  position: sticky;
  top: 6rem;
}

.reviews-heading h2 {
  color: var(--paper);
}

.review-grid {
  display: grid;
  gap: 1px;
  background: rgba(211, 221, 252, 0.24);
  border: 1px solid rgba(211, 221, 252, 0.24);
}

.review-grid figure {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--teal);
}

.review-grid blockquote {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
}

.review-grid figcaption {
  margin-top: 1rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  background:
    linear-gradient(90deg, rgba(41, 55, 143, 0.96), rgba(41, 55, 143, 0.78)),
    url("./images/chad-office.jpg") center / cover;
  color: var(--paper);
}

.contact-copy {
  max-width: 860px;
}

.contact-copy h2 {
  color: var(--paper);
}

.contact-copy p {
  max-width: 650px;
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.contact-panel {
  display: grid;
  border: 1px solid rgba(211, 221, 252, 0.28);
  background: rgba(41, 55, 143, 0.72);
}

.contact-panel a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.8rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(211, 221, 252, 0.24);
}

.contact-panel a:last-child {
  border-bottom: 0;
}

.contact-panel svg {
  grid-row: span 2;
  color: var(--marigold);
}

.contact-panel span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-panel strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--paper);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

footer {
  background: var(--graphite);
  color: rgba(255, 255, 255, 0.72);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 5rem);
  border-bottom: 1px solid rgba(211, 221, 252, 0.18);
  font-size: 0.84rem;
}

.footer-main a {
  color: var(--paper);
  font-weight: 900;
}

@media (max-width: 1100px) {
  .hero,
  .intro-section,
  .experience-section,
  .reviews-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-card {
    width: min(420px, 100%);
  }

  .reviews-heading {
    position: static;
  }
}

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

  nav {
    display: none;
  }

  .signal-row,
  .practice-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .signal-row p,
  .practice-grid article,
  .practice-grid article:nth-child(3n),
  .practice-grid article:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-row p:last-child,
  .practice-grid article:last-child {
    border-bottom: 0;
  }

  .practice-grid article {
    min-height: 14rem;
  }

  .practice-grid h3 {
    margin-top: 2.5rem;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding-block: 0.65rem;
  }

  .brand span {
    max-width: 9rem;
    line-height: 0.95;
  }

  .brand img {
    width: 2.35rem;
    height: 2.35rem;
  }

  .header-call {
    padding: 0.56rem 0.68rem;
    font-size: 0.78rem;
  }

  .header-call svg {
    display: none;
  }

  .hero {
    min-height: 84svh;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 15vw, 4.8rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .experience-image {
    min-height: 20rem;
  }

  .footer-main {
    display: grid;
  }
}
