:root {
  --ink: #192630;
  --slate: #263b4a;
  --slate-soft: #355469;
  --muted: #536c78;
  --sage: #526f5a;
  --sage-soft: #dce5dc;
  --clay: #975f50;
  --clay-soft: #ead9d2;
  --cream: #f7f3ec;
  --cream-deep: #e9e2d7;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(25, 38, 48, 0.10);
  --shadow-soft: 0 12px 34px rgba(25, 38, 48, 0.07);
  --display: "Playfair Display", Georgia, serif;
  --body: "Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1120px;
  --narrow: 760px;
  --header: 82px;
  --service-nav-height: 44px;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + var(--service-nav-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-weight: 600;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header);
  border-bottom: 1px solid rgba(38, 59, 74, 0.13);
  background: rgba(247, 243, 236, 0.96);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  min-height: var(--header);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--slate);
  text-decoration: none;
  line-height: 1.12;
  flex: 0 0 auto;
}

.site-header .brand {
  position: relative;
  isolation: isolate;
}

.site-header .brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -0.85rem -1.15rem;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(205, 157, 62, 0.34) 0%, rgba(205, 157, 62, 0.12) 48%, transparent 74%);
  filter: blur(8px);
  animation: brandGoldGlow 4.8s ease-in-out infinite;
}

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

.brand span {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.45rem;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--slate);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.105em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav a:not(.button-link) {
  position: relative;
  padding: 0.75rem 0;
}

.desktop-nav a:not(.button-link)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.48rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: var(--clay);
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.button-link,
.button-primary,
.button-secondary,
.button-light {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.82rem 1.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 170ms ease, background 170ms ease, color 170ms ease, border-color 170ms ease;
}

.button-link,
.button-primary {
  color: var(--white) !important;
  background: var(--slate);
}

.button-link:hover,
.button-primary:hover {
  transform: translateY(-2px);
  background: var(--slate-soft);
}

.button-secondary {
  border-color: var(--slate);
  color: var(--slate);
  background: transparent;
}

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

.button-light {
  color: var(--slate);
  background: var(--white);
}

.button-light:hover {
  transform: translateY(-2px);
  background: var(--cream);
}

.menu-toggle {
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  border: 1px solid rgba(38, 59, 74, 0.25);
  border-radius: 50%;
  color: var(--slate);
  background: transparent;
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  width: 19px;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-lines {
  position: relative;
}

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

.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }

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

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

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

.mobile-nav {
  display: none;
}

.service-nav {
  min-height: var(--service-nav-height);
  padding: 0.45rem 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.1rem, 3vw, 2.4rem);
  border-top: 1px solid rgba(38, 59, 74, 0.09);
  background: rgba(255,255,255,.42);
}

.service-nav a {
  position: relative;
  color: var(--slate);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.service-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--sage);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.service-nav a:hover::after,
.service-nav a[aria-current="page"]::after { transform: scaleX(1); }
.service-nav a span { color: var(--muted); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.035em; text-transform: none; }

.mobile-nav-label {
  margin-top: 1rem;
  padding: 0.65rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.shell-narrow {
  width: min(var(--narrow), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 6.5rem 0;
}

.section-compact {
  padding: 4.5rem 0;
}

.section-cream { background: var(--cream); }
.section-sage { background: var(--sage-soft); }
.section-dark { color: var(--white); background: var(--slate); }

.eyebrow {
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
}

.section-dark .eyebrow {
  color: #d8e6d9;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--slate);
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.14;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.85rem, 6.2vw, 5.35rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 4.2vw, 3.65rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
}

h4 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.emphasis {
  color: var(--sage);
  font-style: italic;
}

.lede {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.17rem, 2vw, 1.42rem);
  line-height: 1.65;
}

.section-dark .lede,
.section-dark p {
  color: #e3e9e7;
}

.body-copy {
  max-width: 680px;
  color: var(--muted);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero::after,
.page-hero::after {
  display: none;
}

.hero-grid {
  min-height: calc(100svh - var(--header));
  padding: 5.5rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy .lede {
  max-width: 620px;
}

.button-row {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.availability {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.87rem;
}

.availability::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 5px rgba(82, 111, 90, 0.12);
}

.portrait-card {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin-left: auto;
  padding: 1rem;
  border-radius: 220px 220px 24px 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.portrait-placeholder {
  min-height: 530px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 210px 210px 18px 18px;
  background:
    radial-gradient(circle at 66% 20%, rgba(255,255,255,0.58), transparent 24%),
    linear-gradient(145deg, var(--sage-soft), var(--clay-soft));
}

.portrait-monogram {
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(38, 59, 74, 0.27);
  border-radius: 50%;
  color: var(--slate);
  font-family: var(--display);
  font-size: 2.6rem;
  letter-spacing: 0.05em;
}

.portrait-note {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  left: 2rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  color: var(--slate);
  background: rgba(255,255,255,0.88);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.trust-bar {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(38, 59, 74, 0.12);
  border-bottom: 1px solid rgba(38, 59, 74, 0.12);
  background: var(--white);
}

.trust-bar > .shell {
  width: 100%;
  max-width: none;
}

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

.trust-item {
  min-height: 112px;
  padding: 1.25rem clamp(1.25rem, 4vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(38, 59, 74, 0.12);
}

.trust-item:last-child { border-right: 0; }

.trust-item strong {
  color: var(--slate);
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
}

.trust-item span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 7rem);
}

.split-center { align-items: center; }

.card-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

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

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid rgba(38, 59, 74, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 0 0 rgba(25, 38, 48, 0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

a.card {
  display: block;
  text-decoration: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(82, 111, 90, 0.55);
  box-shadow: var(--shadow-soft);
}

.card-number {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card-number::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--cream-deep);
}

.card p,
.detail-list li,
.credential-list li {
  color: var(--muted);
}

.card-link {
  margin-top: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-link::after {
  content: "→";
  transition: transform 170ms ease;
}

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

.tag-list {
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
}

.tag-list li {
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(38, 59, 74, 0.22);
  border-radius: 999px;
  color: var(--slate);
  background: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  line-height: 1.2;
}

.quote-block {
  margin: 0;
  padding: 2rem;
  border-left: 3px solid var(--clay);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--cream);
}

.quote-block p {
  margin-bottom: 1rem;
  color: var(--slate);
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.55;
}

.quote-block cite {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-list {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.15);
}

.step {
  padding: 2.2rem;
  background: var(--slate);
}

.step span {
  width: 38px;
  height: 38px;
  margin-bottom: 1.4rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  color: var(--white);
  font-family: var(--display);
}

.step p {
  margin-bottom: 0;
  color: #e3e9e7;
}

.section-dark .step {
  color: var(--white);
  background: #263f4f;
}

.section-dark .step:hover {
  background: #31566b;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2.4rem, 6vw, 5rem);
  border-radius: 28px;
  color: var(--white);
  background: var(--slate);
}

.cta-panel::after {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  right: -110px;
  bottom: -120px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255,255,255,0.025), 0 0 0 64px rgba(255,255,255,0.02);
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 { color: var(--white); }
.cta-panel p { max-width: 620px; color: #e3e9e7; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  background: var(--cream);
}

.page-hero .shell,
.page-hero .shell-narrow {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.65rem, 5vw, 4.55rem);
}

.breadcrumb {
  margin-bottom: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.breadcrumb a { color: var(--slate); }

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.fact-panel {
  padding: 1.45rem 1.55rem;
  border: 1px solid rgba(38, 59, 74, 0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow-soft);
}

.fact-panel h2 {
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}

.fact-list,
.detail-list,
.credential-list,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list li,
.check-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.55rem;
  border-top: 1px solid rgba(38, 59, 74, 0.12);
  color: var(--muted);
}

.fact-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  top: 1.45rem;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

.detail-list li,
.credential-list li {
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(38, 59, 74, 0.13);
}

.detail-list strong,
.credential-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--slate);
}

.credential-list span {
  display: block;
  font-size: 0.9rem;
}

.timeline {
  margin-top: 2.5rem;
  counter-reset: timeline;
}

.timeline-item {
  position: relative;
  padding: 0 0 2.2rem 4.5rem;
  counter-increment: timeline;
}

.timeline-item::before {
  content: counter(timeline, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sage);
  border-radius: 50%;
  color: var(--sage);
  font-family: var(--display);
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 42px;
  bottom: 0;
  left: 20px;
  width: 1px;
  background: var(--cream-deep);
}

.timeline-item p {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
}

.insurance-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.insurance-item {
  min-height: 80px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(38, 59, 74, 0.14);
  border-radius: 12px;
  color: var(--slate);
  background: var(--white);
  font-weight: 600;
}

.insurance-item::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sage);
}

.notice {
  margin-top: 1.5rem;
  padding: 1.2rem 1.35rem;
  border-left: 3px solid var(--clay);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  background: var(--cream);
}

.notice strong { color: var(--slate); }

.accordion { margin-top: 2rem; display: grid; gap: 1rem; }

.accordion-item {
  overflow: hidden;
  border: 1px solid rgba(38, 59, 74, 0.15);
  border-radius: 24px;
  background: rgba(255,255,255,.78);
}

.accordion-trigger {
  width: 100%;
  min-height: 64px;
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  color: var(--slate);
  background: transparent;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
}

.accordion-trigger::after {
  content: "+";
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--white);
  background: var(--slate);
  font-family: var(--body);
  font-size: 1.25rem;
  line-height: 1;
}

.accordion-trigger[aria-expanded="true"]::after {
  content: "−";
  background: var(--sage);
}

.accordion-panel[hidden] { display: none; }

.accordion-panel {
  padding: 0 4.8rem 1.55rem 1.5rem;
  color: var(--muted);
}

.process-lead {
  max-width: 34rem;
  margin: 0;
  color: var(--slate);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.45;
}

.fee-card { text-align: center; }
.fee-card p:last-child { margin: 0.7rem 0 0; }
.fee-amount { margin: 0; color: var(--slate); font-family: var(--display); font-size: clamp(3.8rem, 9vw, 6.6rem); line-height: 1; }

.accordion-panel p:last-child { margin-bottom: 0; }

.form-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.contact-card {
  padding: 2rem;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--slate);
}

.contact-card h2,
.contact-card h3 { color: var(--white); }

.contact-card p,
.contact-card li,
.contact-card a { color: #edf2ef; }

.contact-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.contact-list strong {
  display: block;
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(38, 59, 74, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.form-intro {
  margin-bottom: 2rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  color: var(--slate);
  background: var(--sage-soft);
}

.form-intro strong { display: block; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.field { margin-bottom: 1.15rem; }
.field-full { grid-column: 1 / -1; }

label,
legend {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #8a9aa2;
  border-radius: 9px;
  padding: 0.78rem 0.9rem;
  color: var(--ink);
  background: var(--white);
}

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

input::placeholder,
textarea::placeholder { color: #6c7d85; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--slate);
  box-shadow: 0 0 0 4px rgba(53, 84, 105, 0.12);
  outline: 0;
}

[aria-invalid="true"] {
  border-color: #a33f35;
  box-shadow: 0 0 0 3px rgba(163, 63, 53, 0.1);
}

.field-error {
  min-height: 1.2rem;
  margin-top: 0.25rem;
  display: block;
  color: #8b2e27;
  font-size: 0.78rem;
}

.form-note {
  color: var(--muted);
  font-size: 0.83rem;
}

.turnstile-area {
  min-height: 70px;
  margin: 0.2rem 0 1.1rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.turnstile-area iframe { max-width: 100%; }

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.form-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: var(--slate);
  font-weight: 600;
}

.form-status[data-state="error"] { color: #8b2e27; }
.form-status[data-state="success"] { color: var(--sage); }

.contact-form button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.legal-copy h2 {
  margin-top: 2.5rem;
  font-size: 1.7rem;
}

.legal-copy h3 {
  margin-top: 1.75rem;
  font-size: 1.25rem;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.legal-copy a { color: var(--slate); }

.not-found {
  min-height: calc(100svh - var(--header));
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--cream);
}

.not-found-code {
  margin-bottom: 1rem;
  color: var(--sage);
  font-family: var(--display);
  font-size: clamp(5rem, 20vw, 11rem);
  line-height: 0.8;
}

.site-footer {
  color: #e4eae7;
  background: var(--ink);
}

.crisis-bar {
  padding: 1rem 20px;
  color: var(--ink);
  background: #e7ded3;
  font-size: 0.9rem;
  text-align: center;
}

.crisis-bar a {
  color: var(--slate);
  font-weight: 750;
}

.footer-grid {
  padding: 4.5rem 0 3rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.8rem;
}

.footer-brand .brand { color: var(--white); }
.footer-brand .brand strong { color: var(--white); }
.footer-brand .brand span { color: #bdcac5; }

.footer-brand p {
  max-width: 310px;
  margin-top: 1.2rem;
  color: #bdcac5;
  font-size: 0.86rem;
}

.footer-col h2 {
  margin-bottom: 1rem;
  color: var(--white);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li { margin-bottom: 0.55rem; }

.footer-col a {
  color: #c9d3cf;
  font-size: 0.84rem;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding: 1.25rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #afbeb8;
  font-size: 0.76rem;
}

.footer-bottom a { color: #d9e1de; }

@media (max-width: 940px) {
  :root { --header: 74px; --service-nav-height: 0px; }

  .desktop-nav { display: none; }
  .service-nav { display: none; }
  .menu-toggle { display: grid; }

  .mobile-nav {
    position: fixed;
    top: var(--header);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    padding: 1.5rem 20px 3rem;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
    background: var(--cream);
  }

  .mobile-nav[data-open="true"] { display: flex; }

  .mobile-nav a {
    min-height: 54px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(38, 59, 74, 0.13);
    font-size: 0.9rem;
  }

  .mobile-nav .button-link {
    margin-top: 1rem;
    border-bottom: 0;
  }

  .hero-grid,
  .split,
  .detail-hero-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid { padding: 4.5rem 0; }
  .portrait-card { max-width: 520px; margin: 0 auto; }
  .portrait-placeholder { min-height: 500px; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(38, 59, 74, 0.12); }

  .card-grid,
  .card-grid.four { grid-template-columns: 1fr 1fr; }
  .card-grid .card:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 2 / -1; }
}

@media (max-width: 680px) {
  .nav-shell,
  .shell,
  .shell-narrow {
    width: min(100% - 28px, var(--max));
  }

  .brand strong { font-size: 0.99rem; }
  .brand span { font-size: 0.58rem; letter-spacing: 0.09em; }

  .section { padding: 4.6rem 0; }
  .section-compact { padding: 3.5rem 0; }
  .page-hero { padding: 4.6rem 0 4rem; }

  h1 { font-size: clamp(2.55rem, 13vw, 3.55rem); }
  h2 { font-size: clamp(2rem, 10vw, 2.8rem); }

  .hero-grid { min-height: auto; padding: 4rem 0; }
  .hero::after { width: 480px; right: -330px; bottom: -150px; }
  .portrait-placeholder { min-height: 420px; }

  .trust-grid,
  .card-grid,
  .card-grid.two,
  .step-list,
  .insurance-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:nth-child(2) {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid rgba(38, 59, 74, 0.12);
  }

  .trust-item:last-child { border-bottom: 0; }
  .card-grid .card:last-child:nth-child(odd) { grid-column: auto; }

  .step-list { gap: 0; }
  .step { border-bottom: 1px solid rgba(255,255,255,0.15); }
  .step:last-child { border-bottom: 0; }

  .timeline-item { padding-left: 3.6rem; }
  .accordion-item { border-radius: 20px; }
  .accordion-trigger { padding: 1.2rem 1.15rem; }
  .accordion-panel { padding: 0 1.15rem 1.3rem; }

  .button-row { align-items: stretch; }
  .button-row a,
  .button-row button { width: 100%; }

  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

/* Launch polish: calming, content-safe imagery and tighter reading rhythm */
.lede { font-family: var(--body); font-weight: 400; }
.hero-grid { min-height: min(700px, calc(100vh - 90px)); }
.hero-visual,
.ambient-visual {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border-radius: 48% 48% 12px 12px;
  box-shadow: 0 28px 70px rgba(38, 59, 74, 0.18);
  background-color: var(--sage);
  background-position: center;
  background-size: cover;
}
.hero-visual { background-image: linear-gradient(90deg, rgba(247,242,233,.08), rgba(38,59,74,.08)), url("assets/california-oak-therapy-background.jpg"); }
.ambient-visual { min-height: 430px; border-radius: var(--radius); background-image: url("assets/mist-blue-foothills-background.jpg"); }
.visual-caption {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  max-width: 19rem;
  padding: .7rem .9rem;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 10px;
  color: var(--slate);
  background: rgba(255,255,255,.86);
  font-size: .82rem;
  backdrop-filter: blur(10px);
}
.page-hero,
.detail-hero,
.legal-hero {
  background-color: var(--cream);
  background-image: linear-gradient(90deg, rgba(248,244,237,.98) 0%, rgba(248,244,237,.91) 52%, rgba(235,241,244,.64) 100%), url("assets/mist-blue-foothills-background.jpg");
  background-position: center;
  background-size: cover;
}
.page-hero::after { display: none; }
.trust-grid-three { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 940px) {
  .site-header { backdrop-filter: none; }
  .hero-visual { min-height: 430px; }
  .trust-grid-three { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .hero-grid { min-height: auto; }
  .hero-visual { min-height: 330px; border-radius: 44% 44% 10px 10px; }
  .ambient-visual { min-height: 300px; }
}

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

/* Shared aliases for later-phase specialty and policy pages. */
.container {
  width: min(var(--max), calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

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

.nav-wrap {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand:has(.brand-mark) {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.brand .brand-mark {
  width: 40px;
  height: 40px;
  margin: 0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(38, 59, 74, 0.26);
  border-radius: 50%;
  color: var(--slate);
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.brand:has(.brand-mark) > span:not(.brand-mark) {
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--slate);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.brand:has(.brand-mark) small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button,
.button-small {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.82rem 1.3rem;
  color: var(--white) !important;
  background: var(--slate);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover,
.button-small:hover { background: var(--slate-soft); transform: translateY(-2px); }
.button.button-light { color: var(--slate) !important; background: var(--white); }
.text-link { color: var(--slate); font-weight: 600; }

.detail-hero,
.legal-hero { padding: 6rem 0 5rem; background: var(--cream); }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.detail-grid h1 { font-size: clamp(2.65rem, 5vw, 4.55rem); }
.fact-panel dl { margin: 0; }
.fact-panel dl div {
  padding: 0.66rem 0;
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.72fr) minmax(0, 1.55fr);
  gap: 0.8rem;
  align-items: start;
  border-top: 1px solid rgba(38, 59, 74, 0.12);
}
.fact-panel dt {
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: uppercase;
}
.fact-panel dd { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.45; }

.service-availability {
  max-width: 820px;
  margin: 1.4rem 0 0;
  padding: 0.85rem 1.05rem;
  border: 1px solid rgba(38, 59, 74, 0.16);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,0.54);
}

.service-availability strong { color: var(--slate); }

.section-tint { background: var(--cream); }
.split-heading { margin-bottom: 2.5rem; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: end; }
.split-heading > p { margin-bottom: 0; color: var(--muted); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }

.steps {
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(38, 59, 74, 0.14);
  list-style: none;
}

.steps .step {
  min-width: 0;
  color: #fff;
  background: #263f4f;
}
.steps .step:hover { background: #31566b; }
.steps .step h3 { color: var(--white); }
.steps .step p { color: #e3e9e7; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.cta > div { max-width: 700px; }
.legal-copy .notice { margin-bottom: 2rem; }

.not-found main { width: 100%; }
.not-found-card { width: min(680px, calc(100% - 40px)); margin: 0 auto; padding: 3rem; }

.site-footer .footer-grid > div h2 {
  margin-bottom: 1rem;
  color: var(--white);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer .footer-grid > div > a:not(.brand) { margin-bottom: 0.55rem; display: block; color: #bdcac5; text-decoration: none; }
.site-footer .footer-grid > div > p { color: #bdcac5; }
.site-footer .footer-brand:has(.brand-mark) { color: var(--white); }
.site-footer .footer-brand:has(.brand-mark) > span:not(.brand-mark) { color: var(--white); }
.site-footer .footer-brand .brand-mark { color: var(--white); border-color: rgba(255,255,255,0.3); }

@media (max-width: 940px) {
  .detail-grid { grid-template-columns: 1fr; }
  .split-heading { grid-template-columns: 1fr; gap: 1rem; }
  .cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  .container,
  .container.narrow,
  .narrow { width: min(100% - 28px, var(--max)); }
  .detail-hero,
  .legal-hero { padding: 4.6rem 0 4rem; }
  .card-grid.three,
  .steps { grid-template-columns: 1fr; }
  .brand:has(.brand-mark) > span:not(.brand-mark) { font-size: 0.9rem; }
}

/* Phase 5: unified cream-and-blue palette, ambient depth, and living motion. */
@property --ambient-progress {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 8%;
}

:root {
  --ink: #1b2a34;
  --slate: #263b4a;
  --slate-soft: #385a70;
  --muted: #586e7a;
  --sage: #4f7187;
  --sage-soft: #e1e9ee;
  --clay: #6f8898;
  --clay-soft: #e7edf1;
  --cream: #f8f4ed;
  --cream-deep: #e8e0d5;
  --white: #ffffff;
  --blue-glow: rgba(75, 112, 137, 0.22);
  --blue-line: rgba(38, 59, 74, 0.18);
  --shadow: 0 26px 74px rgba(25, 43, 55, 0.16), 0 5px 18px rgba(25, 43, 55, 0.08);
  --shadow-soft: 0 16px 42px rgba(25, 43, 55, 0.11), 0 3px 10px rgba(25, 43, 55, 0.06);
  --shadow-interactive: 0 16px 30px rgba(28, 51, 66, 0.16), 0 3px 8px rgba(28, 51, 66, 0.10), inset 0 1px 0 rgba(255,255,255,0.28);
  --ambient-progress: 8%;
  --ambient-y: 18%;
}

body {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(145deg,
      color-mix(in srgb, #fbf8f2 calc(100% - var(--ambient-progress)), #e8eff3 var(--ambient-progress)) 0%,
      rgba(250,247,241,.94) 42%,
      color-mix(in srgb, #f4eee5 calc(100% - var(--ambient-progress)), #dce8ee var(--ambient-progress)) 100%),
    url("assets/mist-blue-foothills-background.jpg") center top / cover no-repeat fixed;
  background-attachment: fixed;
  transition: --ambient-progress 800ms ease, background-color 800ms ease;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -12vmax;
  pointer-events: none;
  opacity: 0.22;
  background: linear-gradient(112deg, transparent 20%, rgba(255,255,255,.72) 48%, rgba(103,136,157,.16) 62%, transparent 82%);
  filter: blur(34px);
  animation: ambientDrift 26s ease-in-out infinite alternate;
}

main,
.section { background-color: transparent; }
.section-cream,
.section-tint { background: rgba(248, 244, 237, 0.88); backdrop-filter: blur(8px); }
.section-sage { background: rgba(225, 233, 238, 0.88); backdrop-filter: blur(8px); }
.section-dark { background: linear-gradient(145deg, #223744, #2f4d60); }

.site-header {
  border-color: var(--blue-line);
  background: rgba(248,244,237,.9);
  box-shadow: 0 10px 30px rgba(28, 51, 66, 0.06);
}

.hero {
  background:
    linear-gradient(90deg, rgba(248,244,237,.99) 0%, rgba(248,244,237,.94) 48%, rgba(235,241,244,.67) 100%),
    url("assets/mist-blue-foothills-background.jpg") 70% center / cover no-repeat;
}

.hero-visual,
.ambient-visual {
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 34px 90px rgba(32, 55, 70, 0.22), 0 9px 24px rgba(32, 55, 70, 0.12), inset 0 0 0 1px rgba(38,59,74,.06);
  transform: translate3d(0, 0, 0);
  animation: imageFloat 10s ease-in-out infinite;
}

.hero-visual::before,
.ambient-visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 18%, rgba(255,255,255,.22) 44%, transparent 66%);
  transform: translateX(-125%);
  animation: imageSheen 12s ease-in-out infinite;
}

.visual-caption { z-index: 2; box-shadow: 0 12px 30px rgba(28,51,66,.14); }

.page-hero,
.detail-hero,
.legal-hero {
  box-shadow: inset 0 -1px 0 rgba(38,59,74,.10), 0 18px 46px rgba(28,51,66,.06);
}

.button-link,
.button-primary,
.button-secondary,
.button-light,
.button,
.button-small {
  position: relative;
  box-shadow: var(--shadow-interactive);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.button-secondary { box-shadow: 0 10px 24px rgba(28,51,66,.09), inset 0 0 0 1px rgba(255,255,255,.4); }

.button-link:hover,
.button-primary:hover,
.button-secondary:hover,
.button-light:hover,
.button:hover,
.button-small:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 22px 42px rgba(28,51,66,.22), 0 5px 12px rgba(28,51,66,.12), inset 0 1px 0 rgba(255,255,255,.34);
}

.button-link:active,
.button-primary:active,
.button-secondary:active,
.button-light:active,
.button:active,
.button-small:active { transform: translateY(-1px) scale(.992); }

.hero .button-primary,
.cta-panel .button-light,
.section-dark .button-light { animation: ctaBreathe 5.5s ease-in-out infinite; }

.card,
.fact-panel,
.contact-card,
.contact-form,
.accordion-item,
.quote-block,
.cta-panel,
.not-found-card {
  --pointer-x: 50%;
  --pointer-y: 50%;
  position: relative;
  isolation: isolate;
  box-shadow: var(--shadow-soft);
}

.card::before,
.fact-panel::before,
.contact-card::before,
.contact-form::before,
.accordion-item::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.45), rgba(94,129,151,.10) 52%, transparent 82%);
  transition: opacity 240ms ease;
}

.card:hover::before,
.fact-panel:hover::before,
.contact-card:hover::before,
.contact-form:hover::before,
.accordion-item:hover::before { opacity: 1; }

.card:hover,
.fact-panel:hover,
.contact-card:hover,
.contact-form:hover,
.accordion-item:hover {
  transform: translateY(-5px);
  border-color: rgba(70,104,126,.42);
  box-shadow: 0 24px 56px rgba(28,51,66,.16), 0 5px 15px rgba(28,51,66,.08);
}

.fact-panel,
.contact-card,
.contact-form,
.accordion-item { transition: transform 240ms cubic-bezier(.2,.8,.2,1), box-shadow 240ms ease, border-color 240ms ease; }
.trust-item { background: rgba(255,255,255,.82); box-shadow: inset -1px 0 0 rgba(38,59,74,.08); }
.tag-list li { box-shadow: 0 6px 16px rgba(28,51,66,.07); transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.tag-list li:hover { transform: translateY(-2px); background: var(--white); box-shadow: 0 12px 24px rgba(28,51,66,.12); }
.availability::before { animation: availabilityPulse 3.6s ease-in-out infinite; }
.cta-panel { box-shadow: 0 34px 80px rgba(28,51,66,.24), inset 0 1px 0 rgba(255,255,255,.08); }
.step { box-shadow: inset 0 1px 0 rgba(255,255,255,.06); transition: background 220ms ease, transform 220ms ease; }
.step:hover { z-index: 1; transform: translateY(-3px); background: #304f62; }

.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(.2,.75,.2,1);
}
.motion-ready .reveal-item.is-visible { opacity: 1; transform: translateY(0); }

@keyframes ambientDrift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.06); }
}

@keyframes imageFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}

@keyframes imageSheen {
  0%, 62% { transform: translateX(-125%); opacity: 0; }
  72% { opacity: .55; }
  88%, 100% { transform: translateX(125%); opacity: 0; }
}

@keyframes ctaBreathe {
  0%, 100% { box-shadow: var(--shadow-interactive), 0 0 0 0 rgba(93,125,146,0); }
  50% { box-shadow: var(--shadow-interactive), 0 0 0 8px rgba(93,125,146,.10); }
}

@keyframes brandGoldGlow {
  0%, 100% { opacity: .36; transform: scale(.96); }
  50% { opacity: .68; transform: scale(1.04); }
}

@keyframes availabilityPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(93,125,146,.10), 0 0 0 0 rgba(93,125,146,.18); }
  50% { box-shadow: 0 0 0 5px rgba(93,125,146,.14), 0 0 0 10px rgba(93,125,146,0); }
}

@media (max-width: 940px) {
  body { background-attachment: scroll; }
  .site-header { background: rgba(248,244,237,.98); }
  .hero-visual,
  .ambient-visual { animation-duration: 12s; }
}

@media (prefers-reduced-motion: reduce) {
  body { --ambient-progress: 42% !important; --ambient-y: 46% !important; }
  body::before,
  .hero-visual,
  .ambient-visual,
  .hero-visual::before,
  .ambient-visual::before,
  .hero .button-primary,
  .cta-panel .button-light,
  .section-dark .button-light,
  .availability::before,
  .site-header .brand::before { animation: none !important; }
  .motion-ready .reveal-item { opacity: 1; transform: none; }

  /* Explicit preview flag is used only for visual QA in reduced-motion test environments. */
  html[data-motion-preview] body { --ambient-progress: 8% !important; --ambient-y: 18% !important; }
  html[data-motion-preview] body::before { animation: ambientDrift 18s ease-in-out infinite alternate !important; }
  html[data-motion-preview] .hero-visual,
  html[data-motion-preview] .ambient-visual { animation: imageFloat 10s ease-in-out infinite !important; }
  html[data-motion-preview] .hero-visual::before,
  html[data-motion-preview] .ambient-visual::before { animation: imageSheen 12s ease-in-out infinite !important; }
  html[data-motion-preview] .hero .button-primary,
  html[data-motion-preview] .cta-panel .button-light,
  html[data-motion-preview] .section-dark .button-light { animation: ctaBreathe 5.5s ease-in-out infinite !important; }
  html[data-motion-preview] .availability::before { animation: availabilityPulse 3.6s ease-in-out infinite !important; }
  html[data-motion-preview] .motion-ready .reveal-item:not(.is-visible) { opacity: 0; transform: translateY(18px); }
}

/* Automatic dark mode, with query-string forcing available for QA. */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef4f6;
  --slate: #e8f1f4;
  --slate-soft: #b8d0db;
  --muted: #c0ced5;
  --sage: #a8c5d1;
  --sage-soft: #203641;
  --clay: #abc4d0;
  --clay-soft: #253b47;
  --cream: #14232c;
  --cream-deep: #263a45;
  --blue-glow: rgba(143, 184, 204, 0.24);
  --blue-line: rgba(190, 216, 228, 0.22);
  --shadow: 0 28px 76px rgba(0,0,0,.38), 0 6px 20px rgba(0,0,0,.24);
  --shadow-soft: 0 18px 46px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.2);
  --shadow-interactive: 0 16px 32px rgba(0,0,0,.34), 0 3px 9px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.12);
}

html[data-theme="dark"] body {
  background:
    linear-gradient(145deg, rgba(13,25,32,.96), rgba(20,37,47,.93) 48%, rgba(28,51,63,.92)),
    url("assets/mist-blue-foothills-background.jpg") center top / cover no-repeat fixed;
}

html[data-theme="dark"] body::before { opacity: .12; }
html[data-theme="dark"] .site-header { border-color: var(--blue-line); background: rgba(16,31,40,.94); box-shadow: 0 12px 34px rgba(0,0,0,.28); }
html[data-theme="dark"] .service-nav { border-color: rgba(190,216,228,.15); background: rgba(31,52,63,.72); }
html[data-theme="dark"] .mobile-nav { background: #142630; }
html[data-theme="dark"] .mobile-nav a { border-color: rgba(190,216,228,.16); }
html[data-theme="dark"] .skip-link { color: #fff; background: #071116; }

html[data-theme="dark"] .hero {
  background:
    linear-gradient(90deg, rgba(14,27,35,.98) 0%, rgba(18,35,44,.93) 52%, rgba(25,48,60,.66) 100%),
    url("assets/mist-blue-foothills-background.jpg") 70% center / cover no-repeat;
}

html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .detail-hero,
html[data-theme="dark"] .legal-hero {
  background-color: #14232c;
  background-image: linear-gradient(90deg, rgba(15,29,37,.98) 0%, rgba(20,38,48,.92) 54%, rgba(35,60,72,.72) 100%), url("assets/mist-blue-foothills-background.jpg");
}

html[data-theme="dark"] .section-cream,
html[data-theme="dark"] .section-tint { background: rgba(20,35,44,.9); }
html[data-theme="dark"] .section-sage { background: rgba(31,53,64,.92); }
html[data-theme="dark"] .section-dark { background: linear-gradient(145deg, #0f202a, #1d3a49); }

html[data-theme="dark"] .card,
html[data-theme="dark"] .fact-panel,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .accordion-item,
html[data-theme="dark"] .insurance-item,
html[data-theme="dark"] .quote-block,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .not-found-card {
  border-color: rgba(190,216,228,.2);
  background: rgba(27,48,59,.96);
}

html[data-theme="dark"] .card::before,
html[data-theme="dark"] .fact-panel::before,
html[data-theme="dark"] .contact-card::before,
html[data-theme="dark"] .contact-form::before,
html[data-theme="dark"] .accordion-item::before {
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(145,184,202,.08) 52%, transparent 82%);
}

html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .cta-panel { background: #203c4c; }
html[data-theme="dark"] .trust-bar { background: rgba(27,48,59,.9); }
html[data-theme="dark"] .trust-item { background: rgba(27,48,59,.9); box-shadow: inset -1px 0 0 rgba(190,216,228,.14); }
html[data-theme="dark"] .tag-list li { border-color: rgba(190,216,228,.28); background: rgba(27,48,59,.68); }
html[data-theme="dark"] .tag-list li:hover { background: #243f4d; }
html[data-theme="dark"] .visual-caption { color: #eef4f6; background: rgba(16,31,40,.9); }

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  border-color: #6f8c9a;
  color: #f1f6f8;
  background: #152731;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #adbec6; }
html[data-theme="dark"] .button-secondary { border-color: #c8dce5; color: #eaf1f4; }
html[data-theme="dark"] .button-secondary:hover { color: #162832; background: #eaf1f4; }
html[data-theme="dark"] .button-link,
html[data-theme="dark"] .button-primary,
html[data-theme="dark"] .button,
html[data-theme="dark"] .button-small { color: #fff !important; background: #345d73; }
html[data-theme="dark"] .button-link:hover,
html[data-theme="dark"] .button-primary:hover,
html[data-theme="dark"] .button:hover,
html[data-theme="dark"] .button-small:hover { background: #426f87; }
html[data-theme="dark"] .button-light { color: #18303d !important; background: #f1f5f6; }
html[data-theme="dark"] .button-light:hover { background: #dbe7ec; }
html[data-theme="dark"] .accordion-trigger::after { color: #fff; background: #466d83; }
html[data-theme="dark"] .accordion-trigger[aria-expanded="true"]::after { background: #5b8195; }
html[data-theme="dark"] .site-footer { color: #dfe8eb; background: #0b171e; }
html[data-theme="dark"] .crisis-bar { background: #071116; }
