/*
Theme Name: Aldridge Legacy
Theme URI: https://rlaldridgelaw.com/
Author: Boise Hosting
Description: A custom, accessible theme for Robert L. Aldridge, Chartered.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: aldridge-legacy
*/

:root {
  --ink: #172b3a;
  --ink-deep: #0d1d29;
  --blue: #29485d;
  --brass: #b08a4a;
  --brass-text: #8a6428;
  --brass-light: #d6bd89;
  --paper: #f4f0e8;
  --cream: #fbf9f5;
  --white: #fff;
  --text: #28343c;
  --muted: #65717a;
  --line: rgba(23, 43, 58, 0.14);
  --shadow: 0 18px 50px rgba(13, 29, 41, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content: 1180px;
  --reading: 760px;
  --page-section-space: clamp(2rem, 4vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink-deep);
  text-decoration-thickness: 0.12em;
}

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

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--ink);
}

.screen-reader-text {
  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 {
  position: fixed;
  z-index: 9999;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 0;
  clip: auto;
  color: var(--white);
  background: var(--ink);
}

.shell {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.reading-width {
  width: min(100%, var(--reading));
}

.eyebrow {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin: 0 0 1rem;
  color: var(--brass-text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.5rem;
  height: 1px;
  content: "";
  background: currentColor;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65em;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.8rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

p {
  margin: 0 0 1.3rem;
}

.button {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.button--light {
  border-color: var(--brass-light);
  color: var(--ink);
  background: var(--brass-light);
}

.button--light:hover {
  color: var(--ink-deep);
  background: var(--white);
  border-color: var(--ink-deep);
}

.text-link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.site-header {
  position: relative;
  z-index: 100;
  color: var(--white);
  background: var(--ink-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  min-height: 88px;
}

.compact-intro {
  color: var(--text);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.compact-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(270px, 0.5fr);
  gap: clamp(2.5rem, 8vw, 7rem);
  align-items: center;
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
}

.compact-intro h1 {
  max-width: 780px;
  color: var(--ink);
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.compact-intro .intro-lead {
  max-width: 720px;
  font-size: 1.15rem;
}

.office-summary {
  padding: 2rem;
  color: var(--text);
  background: var(--white);
  border-top: 4px solid var(--brass);
}

.office-summary h2 {
  font-size: 1.8rem;
}

.office-summary address {
  margin-bottom: 1rem;
  font-style: normal;
}

.office-phone {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
}

.home-links {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.home-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.home-links article {
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-links h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.home-links .card-number {
  margin-bottom: 1.5rem;
}

.brand {
  display: inline-flex;
  gap: 0.9rem;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible,
.header-phone:hover,
.header-phone:focus-visible {
  color: var(--white);
}

.brand-mark {
  width: 54px;
  height: 64px;
  flex: 0 0 auto;
}

.brand-name {
  display: grid;
  line-height: 1;
}

.brand-name strong {
  font-family: var(--serif);
  font-size: 1.33rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-name span {
  margin-top: 0.4rem;
  color: var(--brass-light);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  justify-self: end;
}

.site-nav ul {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--brass-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-phone {
  display: grid;
  color: var(--white);
  line-height: 1.1;
  text-align: right;
  text-decoration: none;
}

.header-phone span {
  margin-bottom: 0.35rem;
  color: var(--brass-light);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-phone strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--white);
  background: transparent;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 20px;
  height: 1px;
  margin: 5px auto;
  content: "";
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  background:
    radial-gradient(circle at 82% 20%, rgba(176, 138, 74, 0.18), transparent 28rem),
    linear-gradient(115deg, var(--ink-deep), var(--ink));
}

.hero::after {
  position: absolute;
  top: -18rem;
  right: -12rem;
  width: 42rem;
  height: 42rem;
  border: 1px solid rgba(214, 189, 137, 0.18);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
  min-height: 690px;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.hero h1 {
  max-width: 900px;
  color: var(--white);
}

.hero h1 em {
  color: var(--brass-light);
  font-weight: inherit;
}

.hero-copy {
  max-width: 670px;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

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

.hero-card {
  position: relative;
  padding: 2rem 0 0 2rem;
  border-left: 1px solid var(--brass);
}

.hero-card::before {
  position: absolute;
  top: 0;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--brass-light);
}

.hero-card p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.hero-card span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--brass-light);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 500;
}

.hero-card strong a {
  color: var(--white);
  text-decoration-thickness: 1px;
}

.trust-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

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

.trust-item {
  padding: 1.8rem clamp(1rem, 3vw, 2.5rem);
  border-left: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding-block: clamp(5rem, 9vw, 9rem);
}

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

.section--ink {
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
}

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.5fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.section-heading > p {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 220px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: border-color 180ms ease, background 180ms ease;
}

.service-card:hover {
  background: var(--paper);
}

.card-number {
  display: block;
  margin-bottom: 2.2rem;
  color: var(--brass-text);
  font-family: var(--serif);
  font-size: 0.85rem;
}

.section-action {
  margin-top: 2rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: start;
}

.profile-mark {
  position: sticky;
  top: 2rem;
  display: grid;
  min-height: 520px;
  padding: clamp(2rem, 5vw, 5rem);
  place-items: center;
  background:
    linear-gradient(rgba(23, 43, 58, 0.92), rgba(23, 43, 58, 0.92)),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(255, 255, 255, 0.06) 16px 17px);
}

.profile-mark img {
  width: min(260px, 70%);
  opacity: 0.96;
}

.profile-copy .lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.45;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-block: 2.5rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.credential {
  padding: 1.4rem;
  background: var(--cream);
}

.credential strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.credential span {
  color: var(--muted);
  font-size: 0.75rem;
}

.legacy-band {
  position: relative;
  overflow: hidden;
}

.legacy-band::before {
  position: absolute;
  inset: 1.5rem;
  border: 1px solid rgba(214, 189, 137, 0.25);
  content: "";
  pointer-events: none;
}

.legacy-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.5fr) 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.legacy-number {
  color: var(--brass-light);
  font-family: var(--serif);
  font-size: clamp(6rem, 16vw, 12rem);
  letter-spacing: -0.08em;
  line-height: 0.75;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.resource-card {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  min-height: 120px;
  padding: 1.5rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(13, 29, 41, 0.05);
  transition: border-color 180ms ease, transform 180ms ease;
}

.resource-card:hover {
  color: var(--ink);
  border-color: var(--brass);
  transform: translateY(-3px);
}

.resource-icon {
  display: grid;
  width: 44px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  font-family: var(--serif);
  font-size: 0.7rem;
}

.resource-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.resource-card span {
  color: var(--muted);
  font-size: 0.75rem;
}

.page-hero {
  padding-block: clamp(4rem, 8vw, 7rem);
  color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(105deg, rgba(13, 29, 41, 0.98), rgba(23, 43, 58, 0.94)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255, 255, 255, 0.04) 18px 19px);
}

.page-hero h1 {
  max-width: 900px;
  color: var(--white);
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
}

.page-hero p {
  max-width: 650px;
  font-size: 1.15rem;
}

.compact-page-head {
  padding-block: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.compact-page-head h1 {
  max-width: 900px;
  margin-bottom: 0.3em;
  color: var(--ink);
  font-size: clamp(2.3rem, 4vw, 3.5rem);
}

.compact-page-head p:last-child {
  max-width: 720px;
  margin-bottom: 0;
}

.compact-page-content {
  padding-block: var(--page-section-space);
}

.compact-page-content .has-large-font-size {
  font-size: 1.5rem !important;
  line-height: 1.5;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: clamp(2.25rem, 6vw, 5rem);
  align-items: start;
}

.entry-content {
  min-width: 0;
}

.entry-content > * {
  max-width: var(--reading);
}

.entry-content > .alignwide {
  max-width: 100%;
}

.entry-content > :first-child {
  margin-top: 0;
}

.entry-content > h2:first-child {
  padding-top: 0;
  border-top: 0;
}

.entry-content h2 {
  margin-top: 1.15em;
  padding-top: 0.5em;
  border-top: 1px solid var(--line);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.entry-content h3 {
  margin-top: 1.4em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.2rem;
}

.entry-content li {
  margin-bottom: 0.4rem;
  padding-left: 0.35rem;
}

.entry-content blockquote {
  padding: 1.5rem 0 1.5rem 1.5rem;
  margin: 2.2rem 0;
  border-left: 2px solid var(--brass);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.entry-content .practice-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 100%;
  padding: 0;
  margin-block: 2rem;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.entry-content .practice-list li {
  padding: 1.25rem;
  margin: 0;
  color: var(--ink);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.entry-content .downloads {
  display: grid;
  gap: 0.8rem;
  max-width: 100%;
}

.entry-content .downloads a {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.15rem;
  text-decoration: none;
}

.entry-content .downloads a::after {
  color: var(--brass-text);
  content: "PDF ↓";
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.entry-content .downloads a:hover {
  border-color: var(--brass);
}

.page-aside {
  position: sticky;
  top: 2rem;
  padding: 1.8rem;
  color: rgba(255, 255, 255, 0.75);
  background: var(--ink);
}

.page-aside h2 {
  color: var(--white);
  font-size: 1.55rem;
}

.page-aside address {
  margin-bottom: 1.5rem;
  font-style: normal;
}

.page-aside a:not(.button) {
  color: var(--brass-light);
}

.page-aside a:not(.button):hover {
  color: var(--white);
}

.page-aside .eyebrow,
.section--ink .eyebrow,
.cta .eyebrow,
.site-footer .eyebrow {
  color: var(--brass-light);
}

.page-aside .button {
  width: 100%;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.contact-panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
}

.contact-panel address {
  font-style: normal;
}

.map-frame {
  width: 100%;
  min-height: 350px;
  border: 0;
  background: var(--paper);
}

.cta {
  padding-block: clamp(4rem, 8vw, 7rem);
  color: rgba(255, 255, 255, 0.74);
  background: var(--ink-deep);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.cta h2 {
  max-width: 750px;
  margin-bottom: 0.25rem;
  color: var(--white);
}

.site-footer {
  color: rgba(255, 255, 255, 0.63);
  background: #08141d;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.65fr 0.75fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: 1.75rem;
}

.footer-main h2,
.footer-main h3 {
  color: var(--white);
}

.footer-main h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.1;
}

.footer-main p,
.footer-main address {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.footer-main h3 {
  margin: 0 0 0.65rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-main ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-main li {
  margin: 0;
}

.footer-main a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration-thickness: 1px;
}

.footer-main a:hover {
  color: var(--brass-light);
}

.footer-bottom {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-block: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
}

.notice {
  padding: 1rem 1.2rem;
  color: #694f1c;
  background: #f7edcf;
  border-left: 3px solid var(--brass);
  font-size: 0.9rem;
}

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

  .menu-toggle {
    display: block;
  }

  .header-phone {
    display: none;
  }

  .site-nav {
    position: fixed;
    z-index: 90;
    inset: 88px 0 0;
    display: none;
    padding: 2rem;
    background: var(--ink-deep);
  }

  .menu-open .site-nav {
    display: block;
  }

  .site-nav ul {
    display: grid;
    gap: 0;
  }

  .site-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav a {
    display: block;
    padding: 1.2rem 0;
    font-family: var(--serif);
    font-size: 1.5rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .compact-intro-grid,
  .hero-grid,
  .section-heading,
  .profile-grid,
  .legacy-grid,
  .page-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
  }

  .hero-card,
  .page-aside,
  .profile-mark {
    position: static;
  }

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

  .page-aside {
    max-width: 520px;
  }
}

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

  .shell {
    width: min(calc(100% - 1.3rem), var(--content));
  }

  .header-inner {
    min-height: 84px;
  }

  .site-nav {
    inset-block-start: 84px;
  }

  .brand-mark {
    width: 42px;
    height: 50px;
  }

  .brand-name strong {
    font-size: 1.05rem;
  }

  .brand-name span {
    font-size: 0.56rem;
  }

  .hero-grid {
    gap: 3rem;
    padding-block: 4.5rem;
  }

  .compact-page-content {
    padding-block: 2rem;
  }

  .page-layout,
  .contact-grid {
    gap: 2rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-grid,
  .home-links-grid,
  .services-grid,
  .resource-grid,
  .credentials,
  .entry-content .practice-list,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .service-card {
    min-height: 220px;
  }

  .profile-mark {
    min-height: 360px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta .button {
    width: 100%;
  }

  .footer-bottom {
    display: grid;
  }

  .footer-main {
    gap: 1rem;
    padding-block: 1.35rem;
  }

  .footer-bottom {
    padding-block: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid CanvasText;
    box-shadow: none;
  }
}
