/* =========================================================
   Ford Agency, Inc. — parent brand website
   Design system, layout, components, and responsive states
   ========================================================= */

:root {
  --navy-950: #06192b;
  --navy-900: #0b2742;
  --navy-800: #123756;
  --blue-600: #315f82;
  --blue-200: #c8d7e2;
  --red-700: #8c1f24;
  --red-600: #a52329;
  --red-100: #f4dddd;
  --ink: #0a1b2b;
  --slate-700: #425366;
  --slate-500: #667789;
  --line: #d8dee3;
  --paper: #fffdfa;
  --off-white: #f5f2ec;
  --white: #ffffff;
  --green: #1f7254;
  --shadow-sm: 0 10px 30px rgba(6, 25, 43, 0.08);
  --shadow-md: 0 22px 60px rgba(6, 25, 43, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shell: 1450px;
  --header-height: 78px;
  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.1rem, 5vw, 6.25rem);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.3rem, 3.6vw, 3.9rem);
}

h3 {
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
}

p {
  color: var(--slate-700);
}

address {
  font-style: normal;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.shell {
  width: min(calc(100% - 64px), var(--shell));
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 4.6vw, 86px);
}

.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 {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 12px 18px;
  color: var(--white);
  background: var(--red-600);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #e0a7aa;
  outline-offset: 4px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  flex: 0 0 auto;
  content: "";
  background: var(--red-600);
}

.eyebrow-dark {
  color: var(--blue-600);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 25, 43, 0.15);
}

.button-red {
  color: var(--white);
  background: var(--red-600);
  border-color: var(--red-600);
}

.button-red:hover {
  background: var(--red-700);
  border-color: var(--red-700);
}

.button-navy {
  color: var(--white);
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.button-navy:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
}

.button-light {
  color: var(--navy-950);
  background: var(--white);
  border-color: var(--white);
}

.button-light:hover {
  background: var(--off-white);
  border-color: var(--off-white);
}

.button-outline-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.75);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-800);
  font-size: 0.9rem;
  font-weight: 780;
  text-decoration: none;
  transition: color var(--transition), gap var(--transition);
}

.text-link:hover {
  gap: 12px;
  color: var(--red-600);
}

.text-link-on-dark {
  color: rgba(255, 255, 255, 0.84);
}

.text-link-on-dark:hover {
  color: var(--white);
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--ink);
  background: rgba(255, 253, 250, 0.96);
  border-bottom: 1px solid rgba(10, 27, 43, 0.1);
  backdrop-filter: blur(14px);
  transition:
    box-shadow var(--transition),
    background var(--transition);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(6, 25, 43, 0.1);
}

.header-inner {
  position: relative;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  min-width: 286px;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}

.brand-logo-wrap {
  display: grid;
  width: 62px;
  height: 54px;
  flex: 0 0 62px;
  place-items: center;
  overflow: hidden;
}

.brand-logo {
  width: 60px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-copy strong {
  font-size: 1.04rem;
  letter-spacing: -0.015em;
}

.brand-copy small {
  color: var(--slate-500);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.7vw, 28px);
}

.primary-nav > a {
  position: relative;
  color: #223447;
  font-size: 0.83rem;
  font-weight: 730;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--red-600);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.primary-nav > a:not(.nav-cta):hover::after,
.primary-nav > a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.primary-nav .nav-cta {
  min-height: 46px;
  padding: 13px 17px;
  color: var(--white);
  background: var(--red-600);
  border-radius: var(--radius-sm);
}

.primary-nav .nav-cta:hover {
  background: var(--red-700);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.menu-toggle span:not(.sr-only) {
  width: 21px;
  height: 2px;
  background: currentColor;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-of-type(4) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(
      circle at 9% 15%,
      rgba(49, 95, 130, 0.25),
      transparent 32%
    ),
    linear-gradient(
      118deg,
      var(--navy-950) 0%,
      var(--navy-900) 67%,
      #113956 100%
    );
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.3;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px
    );
  background-size: 88px 88px;
  mask-image: linear-gradient(to right, black, transparent 72%);
}

.hero-rule {
  position: absolute;
  top: 0;
  right: 0;
  width: 32%;
  height: 6px;
  background: var(--red-600);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100vh - var(--header-height));
  grid-template-columns: minmax(0, 1.14fr) minmax(370px, 0.76fr);
  gap: clamp(48px, 6vw, 92px);
  align-items: center;
  padding-block: clamp(52px, 5vw, 78px);
}

.hero-copy {
  max-width: 820px;
}

.hero h1 {
  margin-bottom: 26px;
  color: var(--white);
}

.hero-lead {
  max-width: 780px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.05rem, 1.35vw, 1.32rem);
  line-height: 1.68;
}

.hero .button-group {
  margin-bottom: 22px;
}

.hero-portrait {
  position: relative;
  width: min(100%, 500px);
  justify-self: end;
  margin-bottom: 0;
}

.hero-image-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 0.82;
  background: #dbe0e2;
  box-shadow: var(--shadow-md);
}

.hero-image-wrap::before {
  position: absolute;
  inset: 18px;
  z-index: 2;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
  filter: saturate(0.88) contrast(1.02);
}

.hero-portrait::before {
  position: absolute;
  top: -24px;
  right: -24px;
  bottom: 58px;
  left: 48px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-portrait::after {
  position: absolute;
  right: -28px;
  bottom: 42px;
  z-index: 2;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  content: "1935";
  color: var(--white);
  background: var(--red-600);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
}

.hero-portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 15px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================================================
   Fact strip
   ========================================================= */

.fact-strip {
  color: var(--white);
  background: var(--red-600);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact-grid > div {
  min-width: 0;
  padding: 20px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.fact-grid > div:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.fact-grid strong,
.fact-grid span {
  display: block;
}

.fact-grid strong {
  margin-bottom: 2px;
  font-size: 0.93rem;
}

.fact-grid span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
}

/* =========================================================
   Divisions
   ========================================================= */

.divisions {
  background: var(--off-white);
}

.section-intro {
  display: grid;
  max-width: 1280px;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.55fr);
  column-gap: clamp(50px, 8vw, 140px);
  align-items: end;
  margin-bottom: clamp(46px, 4vw, 64px);
}

.section-intro .eyebrow {
  grid-column: 1 / -1;
}

.section-intro h2 {
  margin-bottom: 0;
}

.section-intro > p:last-child {
  margin-bottom: 7px;
  font-size: 1.05rem;
}

.division-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 42px);
}

.division-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 480px;
  flex-direction: column;
  padding: clamp(30px, 3vw, 44px);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--red-600);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.division-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.division-real-estate {
  border-top-color: var(--navy-800);
}

.division-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  color: var(--slate-500);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.division-logo {
  display: flex;
  height: 116px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.division-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.division-logo-wide img {
  max-width: min(100%, 360px);
}

.division-logo-real-estate img {
  width: min(100%, 270px);
  max-height: 100%;
  object-fit: contain;
  box-shadow: none;
}

.division-card h3 {
  max-width: 640px;
  margin-bottom: 18px;
}

.division-card > p {
  max-width: 640px;
  margin-bottom: 28px;
  font-size: 1rem;
}

.division-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: auto;
}

/* =========================================================
   Current-client service center
   ========================================================= */

.service-center {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
}

.service-center::before {
  position: absolute;
  top: -240px;
  right: -190px;
  width: 560px;
  height: 560px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.service-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: clamp(50px, 8vw, 150px);
  align-items: end;
  margin-bottom: 42px;
}

.service-heading h2 {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--white);
}

.service-heading p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.68);
}

.service-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  display: grid;
  min-width: 0;
  min-height: 160px;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 24px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.105);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-4px);
}

.service-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #e1a9ac;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card strong,
.service-card small {
  display: block;
}

.service-card strong {
  margin-top: 7px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.service-card small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  line-height: 1.55;
}

.card-arrow {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 800;
}

/* =========================================================
   Agency story
   ========================================================= */

.agency-story {
  background: var(--paper);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.75fr);
  gap: clamp(60px, 7vw, 110px);
  align-items: center;
}

.story-photos {
  position: relative;
  min-height: 500px;
}

.story-photo {
  position: absolute;
  overflow: hidden;
  margin: 0;
  box-shadow: var(--shadow-md);
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-photo-main {
  top: 0;
  left: 0;
  width: 84%;
  height: 74%;
}

.story-photo-inset {
  right: 0;
  bottom: 0;
  width: 55%;
  height: 43%;
  border: 10px solid var(--paper);
}

.since-card {
  position: absolute;
  bottom: 40px;
  left: 8%;
  z-index: 3;
  display: flex;
  width: 122px;
  height: 122px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--white);
  background: var(--red-600);
  box-shadow: var(--shadow-sm);
}

.since-card strong,
.since-card small {
  display: block;
}

.since-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1;
}

.since-card small {
  margin-top: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-copy > p:not(.eyebrow) {
  margin-bottom: 26px;
  font-size: 1.06rem;
}

.principles-list {
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.principles-list li {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(0, 1fr);
  gap: 26px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.principles-list strong {
  color: var(--ink);
  font-size: 0.93rem;
}

.principles-list span {
  color: var(--slate-700);
  font-size: 0.9rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* =========================================================
   Team
   ========================================================= */

.team-section {
  padding-block: 0;
  color: var(--white);
  background: var(--navy-950);
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(480px, 0.8fr);
  gap: clamp(60px, 8vw, 140px);
  align-items: stretch;
}

.team-copy {
  align-self: center;
  padding-block: clamp(70px, 7vw, 104px);
}

.team-copy h2 {
  color: var(--white);
}

.team-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.08rem;
}

.team-photo {
  position: relative;
  min-height: 580px;
  margin: 0;
  overflow: hidden;
}

.team-photo::before {
  position: absolute;
  inset: 24px;
  z-index: 1;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 39%;
  filter: saturate(0.88);
}

/* =========================================================
   Reviews
   ========================================================= */

.reviews {
  background: var(--off-white);
}

.reviews-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 46px;
}

.reviews-heading > div {
  max-width: 890px;
}

.reviews-heading h2 {
  margin-bottom: 0;
}

.reviews-heading .button {
  flex: 0 0 auto;
}

.review-wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  display: flex;
  min-width: 0;
  min-height: 215px;
  grid-column: span 3;
  flex-direction: column;
  padding: clamp(24px, 2.2vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(6, 25, 43, 0.04);
}

.review-featured {
  min-height: 260px;
  grid-column: span 6;
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.rating {
  margin-bottom: 24px;
  color: var(--red-600);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
}

.review-featured .rating {
  color: #efc6c8;
}

.review-card blockquote {
  margin-bottom: 26px;
  color: #314254;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  line-height: 1.62;
}

.review-featured blockquote {
  max-width: 690px;
  color: var(--white);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.45;
}

.review-card cite {
  margin-top: auto;
  color: var(--ink);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-featured cite {
  color: rgba(255, 255, 255, 0.68);
}

/* =========================================================
   Notary
   ========================================================= */

.notary-callout {
  color: var(--white);
  background: var(--red-600);
}

.notary-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.notary-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
}

.notary-inner strong {
  color: var(--white);
}

.notary-inner a {
  flex: 0 0 auto;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

/* =========================================================
   Contact and Netlify form
   ========================================================= */

.contact {
  color: var(--white);
  background: var(--navy-900);
}

.contact-heading {
  display: grid;
  max-width: 1260px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  column-gap: clamp(60px, 8vw, 150px);
  align-items: end;
  margin-bottom: 62px;
}

.contact-heading .eyebrow {
  grid-column: 1 / -1;
}

.contact-heading h2 {
  margin-bottom: 0;
  color: var(--white);
}

.contact-heading > p:last-child {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.7);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(500px, 1.12fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: stretch;
}

.contact-details {
  display: grid;
  grid-template-rows: auto minmax(300px, 1fr);
}

.contact-card,
.form-card {
  color: var(--ink);
  background: var(--paper);
}

.contact-card {
  padding: clamp(30px, 3.2vw, 46px);
  border-bottom: 1px solid var(--line);
}

.contact-label {
  margin-bottom: 20px;
  color: var(--red-600);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-card address {
  margin-bottom: 30px;
  color: var(--slate-700);
  font-size: 1.05rem;
}

.contact-card address strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.contact-card dl {
  display: grid;
  grid-template-columns:
    minmax(110px, 0.75fr)
    minmax(170px, 1.35fr)
    minmax(130px, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.contact-card dl div {
  min-width: 0;
}

.contact-card dt {
  margin-bottom: 7px;
  color: var(--slate-500);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card dd {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 650;
  line-height: 1.5;
}

.contact-card dd a {
  text-decoration: none;
}

.contact-card dd a[href^="mailto:"],
.contact-card dd a[href^="tel:"] {
  display: inline-block;
  white-space: nowrap;
}

.contact-card dd a:hover {
  color: var(--red-600);
}

.map-wrap {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: #dce1e3;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

.form-card {
  padding: clamp(32px, 3.8vw, 54px);
}

.form-intro {
  max-width: 670px;
  margin-bottom: 36px;
}

.form-intro h3 {
  margin-bottom: 15px;
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.form-intro p:last-child {
  margin-bottom: 0;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}

.field {
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 760;
}

.field label span {
  color: var(--red-600);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #bdc8d0;
  border-radius: 3px;
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(49, 95, 130, 0.14);
}

.button-submit {
  margin-top: 28px;
}

.form-note {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--slate-500);
  font-size: 0.75rem;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  color: var(--white);
  background: var(--navy-950);
}

.footer-main {
  display: grid;
  grid-template-columns:
    minmax(250px, 1.25fr)
    repeat(5, minmax(116px, 0.58fr));
  gap: clamp(28px, 3.4vw, 58px);
  padding-block: 78px 58px;
}

.footer-logo-wrap {
  display: flex;
  width: 210px;
  min-height: 122px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  margin-bottom: 24px;
  background: var(--paper);
  border-radius: var(--radius-sm);
}

.footer-logo-wrap img {
  width: 184px;
  height: auto;
}

.footer-brand > p {
  max-width: 390px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.social-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 750;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.44);
}

.footer-column h2 {
  margin-bottom: 21px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-column a,
.footer-column address,
.footer-column p {
  display: block;
  margin-bottom: 11px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  line-height: 1.55;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--white);
}

.compliance-strip {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.compliance-logo {
  display: flex;
  width: 122px;
  height: 64px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: var(--white);
  border-radius: 4px;
}

.compliance-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compliance-realtor,
.compliance-housing {
  width: 66px;
}

.compliance-iiav {
  width: 154px;
}

.footer-legal {
  background: #041421;
}

.legal-inner {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 26px;
}

.legal-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  line-height: 1.6;
}

.legal-inner p:first-child {
  max-width: 980px;
}

.legal-inner p:last-child {
  flex: 0 0 auto;
  text-align: right;
}

/* =========================================================
   Thank-you page
   ========================================================= */

.thank-you-main {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  place-items: center;
  padding-block: 80px;
  color: var(--white);
  background:
    radial-gradient(
      circle at 75% 20%,
      rgba(49, 95, 130, 0.35),
      transparent 34%
    ),
    var(--navy-900);
}

.thank-you-card {
  width: min(100%, 760px);
  padding: clamp(34px, 7vw, 82px);
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.thank-you-card .eyebrow {
  color: var(--blue-600);
}

.thank-you-card h1 {
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 6vw, 5.3rem);
}

.thank-you-card p {
  max-width: 620px;
  margin-bottom: 28px;
}

.thank-you-card .button-group {
  margin-top: 34px;
}

/* =========================================================
   Reveal enhancements
   ========================================================= */

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Large laptop
   ========================================================= */

@media (max-width: 1260px) {
  :root {
    --header-height: 76px;
  }

  .menu-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    display: none;
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100vh - var(--header-height) - 24px);
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    overflow-y: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav > a {
    padding: 14px 12px;
    font-size: 0.95rem;
  }

  .primary-nav > a:not(.nav-cta)::after {
    display: none;
  }

  .primary-nav .nav-cta {
    margin-top: 7px;
    text-align: center;
  }

  .header-inner {
    min-height: var(--header-height);
  }

  .hero-grid {
    min-height: 0;
    grid-template-columns:
      minmax(0, 1.05fr)
      minmax(360px, 0.75fr);
    gap: 48px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 155px;
  }

  .contact-layout {
    grid-template-columns:
      minmax(0, 0.85fr)
      minmax(460px, 1.15fr);
  }

  .contact-card dl {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-main {
    grid-template-columns: 1.25fr repeat(2, 0.75fr);
  }

  .footer-brand {
    grid-row: span 2;
  }
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 980px) {
  .shell {
    width: min(calc(100% - 44px), var(--shell));
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-block: 66px;
  }

  .hero-copy {
    max-width: 850px;
  }

  .hero-portrait {
    width: min(82%, 520px);
    justify-self: center;
  }

  .hero-image-wrap {
    aspect-ratio: 0.86;
  }

  .fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-grid > div:nth-child(2) {
    border-right: 1px solid rgba(255, 255, 255, 0.22);
  }

  .fact-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .section-intro,
  .contact-heading,
  .service-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .section-intro > p:last-child,
  .contact-heading > p:last-child {
    max-width: 680px;
    margin-bottom: 0;
  }

  .division-grid {
    grid-template-columns: 1fr;
  }

  .division-card {
    min-height: 0;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .story-photos {
    width: min(100%, 760px);
    min-height: 500px;
  }

  .story-copy {
    max-width: 760px;
  }

  .team-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .team-copy {
    max-width: 800px;
    padding-block: 72px 58px;
  }

  .team-photo {
    width: 100%;
    min-height: 540px;
  }

  .review-card,
  .review-featured {
    grid-column: span 6;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-details {
    grid-template-columns: 0.9fr 1.1fr;
    grid-template-rows: minmax(420px, auto);
  }

  .contact-card {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 420px;
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 700px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .section {
    padding-block: 66px;
  }

  .hero-grid {
    gap: 46px;
    padding-block: 58px 68px;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero .button-group,
  .team-copy .button-group {
    align-items: stretch;
    flex-direction: column;
  }

  .hero .button,
  .team-copy .button {
    width: 100%;
  }

  .hero-portrait {
    width: calc(100% - 20px);
  }

  .hero-portrait::before {
    top: -14px;
    right: -14px;
    bottom: 50px;
    left: 30px;
  }

  .hero-portrait::after {
    right: -10px;
    bottom: 35px;
    width: 78px;
    height: 78px;
    font-size: 0.95rem;
  }

  .hero-portrait figcaption {
    flex-direction: column;
    gap: 2px;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .fact-grid > div,
  .fact-grid > div:nth-child(2),
  .fact-grid > div:last-child {
    padding: 18px 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 0;
  }

  .fact-grid > div:last-child {
    border-bottom: 0;
  }

  .section-intro,
  .contact-heading {
    margin-bottom: 46px;
  }

  .division-card {
    min-height: 0;
    padding: 28px 24px;
  }

  .division-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 28px;
  }

  .division-logo {
    height: 118px;
  }

  .division-logo-wide img {
    max-width: 100%;
  }

  .division-logo-real-estate img {
    width: min(100%, 240px);
  }

  .division-links {
    align-items: stretch;
    flex-direction: column;
  }

  .division-links .button {
    width: 100%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 150px;
  }

  .story-photos {
    min-height: 400px;
  }

  .story-photo-main {
    width: 92%;
    height: 67%;
  }

  .story-photo-inset {
    width: 67%;
    height: 40%;
    border-width: 7px;
  }

  .since-card {
    bottom: 24px;
    left: 4%;
    width: 112px;
    height: 112px;
  }

  .since-card strong {
    font-size: 1.65rem;
  }

  .principles-list li {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .team-photo {
    min-height: 500px;
  }

  .reviews-heading {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 44px;
  }

  .reviews-heading .button {
    align-self: flex-start;
  }

  .review-card,
  .review-featured {
    min-height: 0;
    grid-column: span 12;
  }

  .review-featured blockquote {
    font-size: 1.3rem;
  }

  .notary-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-block: 24px;
  }

  .contact-details {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(320px, auto);
  }

  .contact-card {
    padding: 30px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-card dl {
    grid-template-columns: 1fr;
  }

  .contact-card dd a[href^="mailto:"],
  .contact-card dd a[href^="tel:"] {
    white-space: nowrap;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 340px;
  }

  .form-card {
    padding: 34px 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .button-submit {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 28px;
    padding-block: 64px 44px;
  }

  .footer-brand {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .compliance-strip {
    flex-wrap: wrap;
    padding-block: 26px;
  }

  .legal-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .legal-inner p:last-child {
    text-align: left;
  }
}

/* =========================================================
   Small mobile
   ========================================================= */

@media (max-width: 430px) {
  :root {
    --header-height: 70px;
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand-logo-wrap {
    width: 50px;
    height: 44px;
    flex-basis: 50px;
  }

  .brand-logo {
    width: 49px;
  }

  .brand-copy {
    gap: 0;
  }

  .brand-copy strong {
    font-size: 0.94rem;
  }

  .brand-copy small {
    display: none;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .hero h1 br {
    display: none;
  }

  .hero-image-wrap {
    aspect-ratio: 0.8;
  }

  .hero-portrait::after {
    right: -5px;
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .button {
    width: 100%;
  }

  .service-card {
    grid-template-columns: auto 1fr;
    padding: 23px 20px;
  }

  .card-arrow {
    display: none;
  }

  .story-photos {
    min-height: 340px;
  }

  .story-photo-main {
    height: 63%;
  }

  .story-photo-inset {
    height: 42%;
  }

  .since-card {
    width: 94px;
    height: 94px;
  }

  .team-photo {
    min-height: 470px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-contact {
    grid-column: auto;
  }
}

/* =========================================================
   Reduced-motion accessibility
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}