:root {
  --ink-950: #081b24;
  --ink-900: #0d2733;
  --ink-800: #163847;
  --ink-700: #245064;
  --oxblood: #70221f;
  --oxblood-dark: #531714;
  --brass: #b68b52;
  --brass-light: #dcc29d;
  --sand: #ece3d5;
  --paper: #f8f5ef;
  --paper-warm: #f1ebdf;
  --white: #ffffff;
  --text: #18272f;
  --muted: #62727a;
  --line: #ddd4c5;
  --success: #2f6557;
  --shadow-sm: 0 10px 30px rgba(8, 27, 36, 0.08);
  --shadow-lg: 0 28px 80px rgba(8, 27, 36, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --container: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

button {
  color: inherit;
}

::selection {
  color: var(--white);
  background: var(--oxblood);
}

:focus-visible {
  outline: 3px solid var(--brass-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink-950);
  background: var(--white);
  border-radius: 8px;
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.section {
  padding: 104px 0;
}

.section-compact {
  padding: 76px 0;
}

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

.section-warm {
  background: var(--paper-warm);
  border-block: 1px solid var(--line);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--oxblood);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-dark .eyebrow,
.hero-dark .eyebrow,
.home-hero .eyebrow {
  color: var(--brass-light);
}

.display-title,
.section-title,
.card-title {
  margin: 0;
  color: var(--ink-950);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.display-title {
  max-width: 900px;
  font-size: clamp(3.25rem, 8vw, 7.5rem);
  line-height: 0.92;
}

.section-title {
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 1;
}

.card-title {
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  line-height: 1.1;
}

.section-dark .section-title,
.hero-dark .display-title,
.home-hero .display-title {
  color: var(--white);
}

.lede {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.75;
}

.section-dark .lede,
.hero-dark .lede,
.home-hero .lede {
  color: rgba(255, 255, 255, 0.78);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 44px;
  margin-bottom: 48px;
}

.section-heading > div:first-child {
  max-width: 780px;
}

.section-heading .lede {
  max-width: 420px;
  margin: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--oxblood);
  font-weight: 800;
  text-decoration: none;
}

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

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 820;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--oxblood);
  box-shadow: 0 12px 30px rgba(112, 34, 31, 0.25);
}

.button-primary:hover {
  background: var(--oxblood-dark);
}

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

.button-gold:hover {
  background: #ead1ad;
}

.button-outline {
  color: var(--ink-950);
  background: transparent;
  border-color: rgba(8, 27, 36, 0.34);
}

.button-outline:hover {
  background: rgba(8, 27, 36, 0.05);
  border-color: var(--ink-950);
}

.section-dark .button-outline,
.hero-dark .button-outline,
.home-hero .button-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.section-dark .button-outline:hover,
.hero-dark .button-outline:hover,
.home-hero .button-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* Floating site navigation */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 16px;
  right: 0;
  left: 0;
  pointer-events: none;
}

.nav-shell {
  width: min(calc(100% - 32px), 1240px);
  min-height: 76px;
  display: flex;
  align-items: center;
  margin-inline: auto;
  padding: 10px 12px 10px 15px;
  color: var(--white);
  background: rgba(8, 27, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 16px 46px rgba(4, 18, 24, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--white);
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

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

.brand-copy strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-copy span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 10px;
  color: rgba(255, 255, 255, 0.76);
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 720;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-login {
  margin-left: 10px;
}

.nav-login .button {
  min-height: 48px;
  padding-inline: 18px;
}

.menu-toggle {
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  margin-left: auto;
  padding: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  width: 21px;
  height: 2px;
  display: block;
  position: relative;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-lines::before {
  top: -7px;
}

.menu-toggle-lines::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
}

/* Homepage */
.home-hero {
  min-height: 790px;
  display: flex;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-items: end;
  color: var(--white);
  background: var(--ink-950);
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background: url("../images/texas-landscape.webp") center 42% / cover no-repeat;
  transform: scale(1.01);
}

.home-hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 20, 27, 0.94) 0%, rgba(5, 20, 27, 0.78) 42%, rgba(5, 20, 27, 0.16) 78%),
    linear-gradient(0deg, rgba(5, 20, 27, 0.58) 0%, transparent 42%);
}

.hero-survey-line {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 53%;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(220, 194, 157, 0.65), transparent);
  transform: rotate(10deg);
  transform-origin: top;
}

.home-hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.45fr);
  align-items: end;
  gap: 72px;
  padding-left: clamp(40px, 6vw, 96px);
  padding-top: 160px;
  padding-bottom: 74px;
}

.home-hero-copy {
  max-width: 820px;
}

.home-hero .display-title em {
  color: var(--brass-light);
  font-weight: 500;
}

.hero-note {
  align-self: end;
  padding: 26px;
  background: rgba(8, 27, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.hero-note-label {
  margin: 0 0 14px;
  color: var(--brass-light);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-note strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.15;
}

.hero-note p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.hero-note a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.service-ribbon {
  color: var(--white);
  background: var(--oxblood);
}

.service-ribbon-grid {
  min-height: 86px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.ribbon-item {
  padding: 11px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
}

.ribbon-item:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 88px;
}

.mission-statement {
  margin: 0;
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.mission-copy {
  padding-top: 8px;
}

.mission-copy p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.06rem;
}

.value-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.value-item {
  padding-top: 18px;
  border-top: 2px solid var(--brass);
}

.value-item strong,
.value-item span {
  display: block;
}

.value-item strong {
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
}

.value-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Shared cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--white);
  border: 1px solid rgba(8, 27, 36, 0.09);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(8, 27, 36, 0.13);
}

.feature-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 54px;
  color: var(--brass);
  font-family: var(--serif);
  font-size: 1rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--oxblood);
  background: var(--paper-warm);
  border-radius: 50%;
}

.feature-card p {
  margin: 14px 0 24px;
  color: var(--muted);
}

.feature-card .text-link {
  margin-top: auto;
}

.location-preview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.location-preview-primary,
.location-preview-stack > article {
  position: relative;
  overflow: hidden;
  padding: 34px;
  color: var(--white);
  background: var(--ink-900);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
}

.location-preview-primary {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    radial-gradient(circle at 90% 10%, rgba(182, 139, 82, 0.28), transparent 34%),
    linear-gradient(145deg, var(--ink-800), var(--ink-950));
}

.location-preview-primary::after {
  content: "171";
  position: absolute;
  top: -38px;
  right: 24px;
  color: rgba(255, 255, 255, 0.045);
  font-family: var(--serif);
  font-size: 14rem;
  line-height: 1;
}

.location-preview-stack {
  display: grid;
  gap: 24px;
}

.location-preview-stack > article {
  min-height: 198px;
  background: var(--white);
  color: var(--text);
  border-color: var(--line);
}

.location-tag {
  width: fit-content;
  margin-bottom: 16px;
  padding: 6px 10px;
  color: var(--ink-950);
  background: var(--brass-light);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.location-preview-primary h3,
.location-preview-stack h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.05;
}

.location-preview-stack h3 {
  color: var(--ink-950);
}

.location-preview-primary address,
.location-preview-stack address {
  margin: 13px 0 22px;
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
}

.location-preview-stack address {
  color: var(--muted);
}

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

.process-step {
  position: relative;
  padding: 30px 34px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  counter-increment: process;
}

.process-step:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.process-step::before {
  content: "0" counter(process);
  display: block;
  margin-bottom: 42px;
  color: var(--brass-light);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.process-step h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
}

.process-step p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.underwriter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
}

.underwriter-card {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.underwriter-card img {
  max-width: 190px;
  max-height: 92px;
  object-fit: contain;
}

/* Internal page heroes */
.page-hero {
  min-height: 510px;
  display: flex;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-items: end;
  padding: 176px 0 78px;
  color: var(--white);
  background: var(--ink-950);
}

.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(30deg, transparent 12%, rgba(255, 255, 255, 0.1) 12.4%, transparent 12.8%),
    linear-gradient(150deg, transparent 12%, rgba(182, 139, 82, 0.11) 12.4%, transparent 12.8%);
  background-size: 58px 58px;
  mask-image: linear-gradient(to left, #000, transparent 76%);
}

.page-hero::after {
  content: attr(data-index);
  position: absolute;
  z-index: -1;
  right: max(24px, calc((100% - var(--container)) / 2));
  bottom: -0.22em;
  color: rgba(255, 255, 255, 0.045);
  font-family: var(--serif);
  font-size: clamp(9rem, 24vw, 19rem);
  line-height: 0.8;
}

.page-hero .display-title {
  max-width: 860px;
}

.page-hero .lede {
  max-width: 650px;
}

/* Locations */
.location-list {
  display: grid;
  gap: 34px;
}

.location-panel {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(8, 27, 36, 0.09);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.location-panel:nth-child(even) .location-details {
  order: 2;
}

.location-panel:nth-child(even) .location-map {
  order: 1;
}

.location-details {
  padding: clamp(30px, 5vw, 54px);
}

.location-details h2 {
  margin: 0;
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: clamp(2.45rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.location-meta {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.location-meta li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.location-meta li:first-child {
  border-top: 0;
  padding-top: 0;
}

.meta-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--oxblood);
  background: var(--paper-warm);
  border-radius: 50%;
}

.meta-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-value,
.meta-value a {
  color: var(--ink-950);
  font-style: normal;
  font-weight: 750;
  text-decoration: none;
}

.meta-value a:hover {
  color: var(--oxblood);
}

.meta-note {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
}

.location-map {
  min-height: 540px;
  position: relative;
  background: #d9e0e2;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: 0;
  filter: saturate(0.74) contrast(0.96);
}

.map-chip {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  color: var(--white);
  background: rgba(8, 27, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.map-chip span {
  font-size: 0.84rem;
}

.map-chip a {
  flex: 0 0 auto;
  color: var(--brass-light);
  font-weight: 800;
  text-decoration: none;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.team-grid.team-grid-featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-grid.team-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
}

.team-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(8, 27, 36, 0.09);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(8, 27, 36, 0.13);
}

.portrait {
  aspect-ratio: 4 / 4.1;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(182, 139, 82, 0.34), transparent 58%),
    var(--ink-800);
}

.portrait img {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  object-fit: cover;
  object-position: center top;
  transition: transform 400ms ease;
}

.team-card:hover .portrait img {
  transform: scale(1.025);
}

.portrait-monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 7rem);
  letter-spacing: -0.06em;
}

.team-body {
  padding: 25px 25px 27px;
}

.team-role {
  min-height: 1.35em;
  margin: 0 0 9px;
  color: var(--oxblood);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-name {
  margin: 0 0 19px;
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 500;
  line-height: 1.08;
}

.team-firm {
  min-height: 1.5em;
  margin: -10px 0 19px;
  color: var(--muted);
  font-size: 0.82rem;
}

.team-contact {
  display: grid;
  gap: 8px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.team-contact a {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.team-contact a:hover {
  color: var(--oxblood);
}

.team-contact .icon {
  width: 16px;
  height: 16px;
  color: var(--brass);
}

.team-card-featured .portrait {
  aspect-ratio: 4 / 4.5;
}

.team-card-featured .team-body {
  padding: 30px;
}

.role-summary {
  margin: 0 0 22px;
  color: var(--muted);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  min-height: 350px;
  display: flex;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  padding: 36px;
  background: var(--white);
  border: 1px solid rgba(8, 27, 36, 0.09);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.service-card::after {
  content: attr(data-number);
  position: absolute;
  right: 18px;
  bottom: -0.25em;
  color: rgba(8, 27, 36, 0.035);
  font-family: var(--serif);
  font-size: 10rem;
  line-height: 1;
}

.service-card .feature-icon {
  margin-bottom: 46px;
}

.service-card p {
  max-width: 520px;
  margin: 15px 0 0;
  color: var(--muted);
}

.service-card ul {
  margin: auto 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.service-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-top: 0.58em;
  background: var(--brass);
  border-radius: 50%;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
}

.audience-item {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 26px;
  background: var(--ink-900);
  text-decoration: none;
}

.audience-item span {
  color: var(--brass-light);
  font-family: var(--serif);
  font-size: 2.8rem;
  line-height: 1;
}

.audience-item strong {
  margin-top: 20px;
  font-size: 1rem;
}

/* Resources */
.resource-actions {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 20px;
}

.resource-action {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  color: var(--ink-950);
  background: var(--white);
  border: 1px solid rgba(8, 27, 36, 0.09);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.resource-action:first-child {
  color: var(--white);
  background: var(--oxblood);
}

.resource-action:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(8, 27, 36, 0.14);
}

.resource-action-label {
  color: var(--oxblood);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.resource-action:first-child .resource-action-label {
  color: var(--brass-light);
}

.resource-action strong {
  max-width: 360px;
  margin-top: auto;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 500;
  line-height: 1.05;
}

.resource-action-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.84rem;
}

.resource-action:first-child .resource-action-footer {
  color: rgba(255, 255, 255, 0.74);
}

.resource-action-arrow {
  font-size: 1.45rem;
}

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

.resource-link-card {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

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

.resource-link-card .feature-icon {
  width: 50px;
  height: 50px;
}

.resource-link-card strong,
.resource-link-card span {
  display: block;
}

.resource-link-card strong {
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.15;
}

.resource-link-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.83rem;
}

.faq-list {
  border-top: 1px solid var(--line);
}

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 4px;
  color: var(--ink-950);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--oxblood);
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  max-width: 800px;
  padding: 0 4px 28px;
  color: var(--muted);
}

.faq-answer p {
  margin: 0;
}

.security-notice {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 30px;
  color: var(--white);
  background: var(--ink-900);
  border-left: 5px solid var(--brass);
  border-radius: var(--radius-md);
}

.security-notice .feature-icon {
  width: 64px;
  height: 64px;
  color: var(--brass-light);
  background: rgba(255, 255, 255, 0.08);
}

.security-notice h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
}

.security-notice p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

/* Calls to action and footer */
.cta-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 50px;
  padding: 54px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, rgba(182, 139, 82, 0.34), transparent 32%),
    var(--ink-950);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.cta-banner p {
  max-width: 660px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.7fr 1fr;
  gap: 46px;
  padding: 74px 0 62px;
}

.footer-brand img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 16px;
}

.footer-brand p {
  max-width: 290px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-column h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-contact a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  text-decoration: none;
}

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

.footer-contact address {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-style: normal;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

/* WordPress integration and fallback content */
.admin-bar .site-header {
  top: 48px;
}

.wp-content-page {
  min-height: 70vh;
  padding: 176px 0 104px;
  background: var(--paper);
}

.wp-content-shell {
  max-width: 900px;
}

.wp-content-header {
  margin-bottom: 42px;
}

.wp-entry-content > * + * {
  margin-top: 1.35em;
}

.wp-entry-content h2,
.wp-entry-content h3,
.wp-entry-content h4 {
  margin-bottom: 0.55em;
  color: var(--ink-950);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
}

.wp-entry-content h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.wp-entry-content h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.wp-entry-content a,
.wp-post-card a {
  color: var(--oxblood);
}

.wp-entry-content img {
  height: auto;
  border-radius: var(--radius-md);
}

.wp-post-list {
  display: grid;
  gap: 24px;
}

.wp-post-card {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.wp-post-card .card-title a {
  text-decoration: none;
}

.wp-not-found {
  padding-block: 70px;
}

.navigation.pagination {
  margin-top: 38px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  color: var(--ink-950);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.page-numbers.current {
  color: var(--white);
  background: var(--oxblood);
  border-color: var(--oxblood);
}

@media (max-width: 1080px) {
  .desktop-nav,
  .nav-login {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-shell {
    position: relative;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    overflow: hidden;
    padding: 10px;
    background: rgba(8, 27, 36, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
  }

  .mobile-menu[data-open="true"] {
    display: grid;
  }

  .mobile-menu .nav-link {
    padding: 13px 14px;
    font-size: 0.95rem;
  }

  .mobile-menu .button {
    margin-top: 8px;
  }

  .home-hero-inner {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 38px;
  }

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

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

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

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

  .resource-action:first-child {
    grid-column: 1 / -1;
  }

  .footer-main {
    grid-template-columns: 1.1fr 0.9fr 0.9fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 82px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading .lede {
    margin-top: 18px;
  }

  .home-hero {
    min-height: 760px;
  }

  .home-hero::after {
    background:
      linear-gradient(90deg, rgba(5, 20, 27, 0.94), rgba(5, 20, 27, 0.58)),
      linear-gradient(0deg, rgba(5, 20, 27, 0.62), transparent 45%);
  }

  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-left: clamp(24px, 4vw, 42px);
    padding-top: 150px;
  }

  .hero-note {
    max-width: 440px;
  }

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

  .ribbon-item:nth-child(3),
  .ribbon-item:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .mission-grid,
  .location-preview-grid,
  .location-panel,
  .services-grid,
  .cta-banner {
    grid-template-columns: 1fr;
  }

  .mission-grid {
    gap: 42px;
  }

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

  .feature-card {
    min-height: 270px;
  }

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

  .process-step,
  .process-step:last-child {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .process-step::before {
    margin-bottom: 22px;
  }

  .underwriter-row {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 470px;
    padding-top: 156px;
  }

  .location-panel:nth-child(even) .location-details,
  .location-panel:nth-child(even) .location-map {
    order: initial;
  }

  .location-map {
    min-height: 420px;
  }

  .resource-library {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 40px;
  }
}

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

  .site-header {
    top: 8px;
  }

  .admin-bar .site-header {
    top: 54px;
  }

  .nav-shell {
    width: calc(100% - 16px);
    min-height: 66px;
    padding: 8px 9px 8px 10px;
    border-radius: 16px;
  }

  .brand img {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  .brand-copy strong {
    font-size: 0.98rem;
  }

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

  .menu-toggle {
    width: 46px;
    height: 46px;
  }

  .display-title {
    font-size: clamp(3.1rem, 17vw, 5rem);
  }

  .section-title {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .home-hero {
    min-height: 720px;
  }

  .home-hero-inner {
    padding-left: 20px;
    padding-top: 130px;
    padding-bottom: 46px;
  }

  .home-hero .lede {
    font-size: 1rem;
  }

  .hero-note {
    padding: 22px;
  }

  .service-ribbon-grid {
    min-height: 0;
  }

  .ribbon-item {
    min-height: 62px;
    display: grid;
    place-items: center;
    padding: 10px;
    font-size: 0.68rem;
  }

  .value-list,
  .team-grid,
  .team-grid.team-grid-featured,
  .team-grid.team-grid-compact,
  .resource-actions,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .resource-action:first-child {
    grid-column: auto;
  }

  .location-preview-primary {
    min-height: 350px;
  }

  .page-hero {
    min-height: 430px;
    padding: 138px 0 58px;
  }

  .location-details {
    padding: 30px 24px;
  }

  .location-map {
    min-height: 360px;
  }

  .map-chip {
    align-items: flex-start;
    flex-direction: column;
  }

  .portrait {
    aspect-ratio: 4 / 3.85;
  }

  .service-card {
    min-height: 330px;
    padding: 28px;
  }

  .resource-link-card {
    grid-template-columns: 46px 1fr;
    padding: 20px;
  }

  .resource-link-card > .resource-action-arrow {
    display: none;
  }

  .security-notice {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 32px 24px;
    border-radius: var(--radius-md);
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
