/* ============================================================
   Sovereign Grace Financial — styles.css
   Warm classical financial-services aesthetic.
   Brand palette (from real brand kit):
     Primary navy   #1C2F6B
     Silver / cool  #C5CCD6
     Champagne CTA  #B8924A  (warm accent — not in brand kit but
                              required as warm CTA color since
                              the brand green is excluded by design)
   ============================================================ */

/* ---------- TOKENS ---------- */
:root,
[data-theme='light'] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Brand palette — Light
     Navy from brand kit (#1C2F6B) on warm ivory, with silver
     (#C5CCD6) for borders/dividers/secondary surfaces and a
     refined champagne (#B8924A) reserved for CTAs. */
  --color-bg: #faf6ef;            /* warm ivory */
  --color-surface: #f4ede1;        /* soft warm gray-cream */
  --color-surface-2: #ffffff;
  --color-surface-offset: #ede4d3;
  --color-divider: #d8dde4;        /* silver-tinted divider */
  --color-border: #c5ccd6;         /* brand silver */

  --color-text: #1C2F6B;           /* brand navy */
  --color-text-muted: #5a6485;
  --color-text-faint: #97a0b3;
  --color-text-inverse: #faf6ef;

  --color-primary: #1C2F6B;        /* brand navy */
  --color-primary-hover: #142354;
  --color-primary-active: #0e1a40;

  /* Brand silver (cool gray) — secondary surface / soft tint */
  --color-silver: #C5CCD6;
  --color-silver-soft: #e6eaef;

  /* Champagne — CTA / warm accent only */
  --color-accent: #B8924A;
  --color-accent-hover: #9d7a37;
  --color-accent-soft: #e7d3a8;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-full: 9999px;

  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 80 / 0.06);
  --shadow-md: 0 8px 20px oklch(0.2 0.03 250 / 0.08);
  --shadow-lg: 0 24px 60px oklch(0.15 0.04 250 / 0.14);

  --content-default: 1140px;
  --content-narrow: 760px;

  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
}

/* DARK MODE — deep warm-leaning navy derived from brand #1C2F6B.
   Background is a darker shade of brand navy, not pure black. */
[data-theme='dark'] {
  --color-bg: #0c1430;             /* deep brand-navy */
  --color-surface: #131c40;
  --color-surface-2: #1a2452;
  --color-surface-offset: #20295c;
  --color-divider: #2a3568;
  --color-border: #3a4680;

  --color-text: #ece5d3;           /* warm cream text */
  --color-text-muted: #b3bbcf;
  --color-text-faint: #6a7596;
  --color-text-inverse: #0c1430;

  --color-primary: #ece5d3;        /* primary in dark mode = cream */
  --color-primary-hover: #f7f1e0;
  --color-primary-active: #ffffff;

  --color-silver: #C5CCD6;
  --color-silver-soft: #2a3568;

  --color-accent: #d6a85a;         /* warmer champagne in dark */
  --color-accent-hover: #e8bb6b;
  --color-accent-soft: #4a3b1f;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-md: 0 8px 20px oklch(0 0 0 / 0.45);
  --shadow-lg: 0 24px 60px oklch(0 0 0 / 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0c1430;
    --color-surface: #131c40;
    --color-surface-2: #1a2452;
    --color-surface-offset: #20295c;
    --color-divider: #2a3568;
    --color-border: #3a4680;
    --color-text: #ece5d3;
    --color-text-muted: #b3bbcf;
    --color-text-faint: #6a7596;
    --color-text-inverse: #0c1430;
    --color-primary: #ece5d3;
    --color-primary-hover: #f7f1e0;
    --color-silver: #C5CCD6;
    --color-silver-soft: #2a3568;
    --color-accent: #d6a85a;
    --color-accent-hover: #e8bb6b;
  }
}

/* ---------- BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  font-feature-settings: 'ss01', 'cv11';
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'], ol[role='list'] {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

p, li {
  text-wrap: pretty;
  max-width: 68ch;
}

a {
  color: var(--color-text);
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

::selection {
  background: oklch(from var(--color-accent) l c h / 0.3);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

a, button, [role='button'], input, textarea, select {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  z-index: 999;
  border-radius: var(--radius-md);
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-10));
}

.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.section--about {
  background: var(--color-surface);
}

.section--services {
  background: var(--color-bg);
}

.section--values {
  background: var(--color-surface);
}

.section--process {
  background: var(--color-bg);
}

.section--testimonials {
  background: var(--color-surface);
}

.section--contact {
  background: var(--color-bg);
}

.section__header {
  max-width: 720px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.section__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.section__lede {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  margin-inline: auto;
}

.section__note {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-3);
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
}

@media (min-width: 880px) {
  .grid-2 { grid-template-columns: 1.1fr 1fr; gap: clamp(var(--space-10), 6vw, var(--space-20)); }
}

.prose p + p { margin-top: var(--space-4); }
.prose p { color: var(--color-text-muted); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
  min-height: 44px;
}

.btn--primary {
  background: var(--color-accent);
  color: #1a1306;
  border-color: var(--color-accent);
  box-shadow: 0 1px 0 oklch(0 0 0 / 0.08);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
[data-theme='dark'] .btn--primary { color: #1a1306; }

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  background: color-mix(in oklab, var(--color-text) 6%, transparent);
  border-color: var(--color-text-muted);
}

.btn--block {
  width: 100%;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
  line-height: 0; /* prevents extra space under inline image */
}

/* Header logo (horizontal lockup) — transparent PNG, no background hacks needed. */
.brand__logo {
  display: block;
  height: 60px;
  width: auto;
  max-width: 100%;
  transition: transform var(--transition-interactive);
}
@media (min-width: 700px) {
  .brand__logo { height: 64px; }
}
@media (min-width: 1100px) {
  .brand__logo { height: 72px; }
}
@media (max-width: 480px) {
  .brand__logo { height: 52px; }
}

/* Footer stacked logo */
.brand__logo--stacked {
  height: 150px;
  width: auto;
}
@media (max-width: 480px) {
  .brand__logo--stacked { height: 130px; }
}

.nav__list {
  display: none;
  gap: var(--space-6);
}
@media (min-width: 960px) {
  .nav__list { display: flex; }
}

.nav__list a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
}
.nav__list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-interactive);
}
.nav__list a:hover { color: var(--color-text); }
.nav__list a:hover::after { transform: scaleX(1); }

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid transparent;
}
.icon-btn:hover {
  color: var(--color-text);
  background: color-mix(in oklab, var(--color-text) 6%, transparent);
}
.icon-btn svg { width: 20px; height: 20px; }

.icon-btn--menu { display: inline-flex; }
@media (min-width: 960px) {
  .icon-btn--menu { display: none; }
}

.header__cta {
  display: none;
}
@media (min-width: 700px) {
  .header__cta { display: inline-flex; }
}

/* Mobile nav */
.mobile-nav {
  border-top: 1px solid var(--color-divider);
  background: var(--color-bg);
  padding: var(--space-6) clamp(var(--space-4), 4vw, var(--space-10)) var(--space-8);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul {
  list-style: none;
  display: grid;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
}
.mobile-nav a {
  display: block;
  padding: var(--space-3) 0;
  font-size: var(--text-lg);
  font-family: var(--font-display);
  border-bottom: 1px solid var(--color-divider);
}
.mobile-nav__cta { width: 100%; margin-top: var(--space-4); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 820px);
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-bg);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      color-mix(in oklab, var(--color-bg) 92%, transparent) 0%,
      color-mix(in oklab, var(--color-bg) 75%, transparent) 40%,
      color-mix(in oklab, var(--color-bg) 25%, transparent) 75%,
      transparent 100%
    );
}

[data-theme='dark'] .hero__scrim {
  background:
    linear-gradient(
      to right,
      color-mix(in oklab, var(--color-bg) 96%, transparent) 0%,
      color-mix(in oklab, var(--color-bg) 82%, transparent) 45%,
      color-mix(in oklab, var(--color-bg) 45%, transparent) 80%,
      color-mix(in oklab, var(--color-bg) 25%, transparent) 100%
    );
}

@media (max-width: 760px) {
  .hero__scrim {
    background:
      linear-gradient(
        to bottom,
        color-mix(in oklab, var(--color-bg) 70%, transparent) 0%,
        color-mix(in oklab, var(--color-bg) 90%, transparent) 60%,
        var(--color-bg) 100%
      );
  }
  .hero__media img { object-position: 65% 30%; }
}

.hero__content {
  position: relative;
  padding-block: clamp(var(--space-16), 12vw, var(--space-24));
  max-width: 720px;
}

.hero__title {
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-6);
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
}

.hero__lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 56ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---------- ABOUT ---------- */
.about__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.about__media figcaption {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-4);
  background: color-mix(in oklab, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(8px);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---------- SERVICES CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
}

.card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--transition-interactive),
    box-shadow var(--transition-interactive),
    border-color var(--transition-interactive);
}
[data-theme='dark'] .card { background: var(--color-surface-2); }

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-soft);
}

.card__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--color-accent) 12%, transparent);
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.card__icon svg { width: 24px; height: 24px; }

.card__title {
  font-size: var(--text-lg);
  font-weight: 500;
}
.card p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* ---------- VALUES ---------- */
.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  counter-reset: value-counter;
}
@media (min-width: 720px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .values { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); } }

.value {
  padding: var(--space-8) var(--space-5) var(--space-6);
  border-top: 1px solid var(--color-accent);
  background: transparent;
}
.value__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-3);
}
.value h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.value p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* ---------- PROCESS ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  position: relative;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  position: relative;
}
.step::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--color-accent);
}
.step__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-accent);
  line-height: 1;
}
.step h3 {
  font-size: var(--text-lg);
}
.step p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* ---------- LIGHTHOUSE BREAK ---------- */
.break {
  position: relative;
  padding: clamp(var(--space-16), 12vw, var(--space-32)) 0;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
[data-theme='dark'] .break {
  background: #060c18;
}

.break__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.break__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.45;
}
.break::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      ellipse at 50% 50%,
      transparent 0%,
      oklch(0.18 0.04 250 / 0.55) 100%
    );
}
[data-theme='dark'] .break::after {
  background:
    radial-gradient(
      ellipse at 50% 50%,
      transparent 0%,
      oklch(0.08 0.03 250 / 0.65) 100%
    );
}

.break__content {
  text-align: center;
  max-width: 760px;
}
.pullquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-xl);
  color: var(--color-text-inverse);
  line-height: 1.4;
  margin-inline: auto;
  max-width: 24ch;
  text-wrap: balance;
}
[data-theme='dark'] .pullquote p { color: var(--color-text); }

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 760px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }

.testimonial {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.35;
  font-style: italic;
}
.testimonial blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.45;
}
.testimonial figcaption {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial figcaption strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ---------- CONTACT ---------- */
.contact {
  align-items: start;
}
.contact__details {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-5);
}
.contact__details dt {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.contact__details dd {
  font-size: var(--text-base);
  color: var(--color-text);
}
.contact__details a {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.contact__details a:hover { border-color: var(--color-accent); color: var(--color-accent); }

.contact__form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  display: grid;
  gap: var(--space-4);
  box-shadow: var(--shadow-md);
}

.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}
.field .optional {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: var(--text-xs);
}
.field input,
.field textarea {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  font-size: var(--text-base);
  min-height: 44px;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-accent) 22%, transparent);
}

.form-success {
  margin-top: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: color-mix(in oklab, var(--color-accent) 14%, transparent);
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.form-success a { color: var(--color-text); border-bottom: 1px solid var(--color-accent); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding-block: var(--space-16) var(--space-8);
}
[data-theme='dark'] .site-footer {
  background: #060c18;
  color: var(--color-text);
  border-top: 1px solid var(--color-divider);
}

.site-footer .brand { color: var(--color-text-inverse); }
[data-theme='dark'] .site-footer .brand { color: var(--color-text); }

/* Footer sits on dark navy. The shield reads beautifully directly on it,
   but the navy "SOVEREIGN GRACE / FINANCIAL" wordmark below the shield
   would disappear into the navy background. We sit the stacked logo on a
   subtle ivory card so the full lockup stays legible — same idea as a
   business-card placement. The card is gentle enough that the transparent
   shield still reads as the focal point. */
.site-footer .brand__logo--stacked {
  background: #faf6ee;
  padding: 18px 26px 14px;
  border-radius: 14px;
  box-shadow: 0 6px 22px oklch(0 0 0 / 0.28);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-12); }
}

.footer__tagline {
  margin-top: var(--space-4);
  color: color-mix(in oklab, var(--color-text-inverse) 75%, transparent);
  font-size: var(--text-sm);
  max-width: 38ch;
}
[data-theme='dark'] .footer__tagline { color: var(--color-text-muted); }

.footer__col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.footer__col ul {
  display: grid;
  gap: var(--space-3);
}
.footer__col a,
.footer__col li {
  font-size: var(--text-sm);
  color: color-mix(in oklab, var(--color-text-inverse) 78%, transparent);
}
[data-theme='dark'] .footer__col a,
[data-theme='dark'] .footer__col li { color: var(--color-text-muted); }
.footer__col a:hover { color: var(--color-accent); }

.footer__base {
  padding-top: var(--space-6);
  border-top: 1px solid color-mix(in oklab, var(--color-text-inverse) 14%, transparent);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
[data-theme='dark'] .footer__base { border-top-color: var(--color-divider); }
@media (min-width: 760px) {
  .footer__base { flex-direction: row; justify-content: space-between; align-items: baseline; }
}

.footer__disclosure {
  font-size: var(--text-xs);
  color: color-mix(in oklab, var(--color-text-inverse) 60%, transparent);
  max-width: 64ch;
  line-height: 1.55;
}
.footer__copy {
  font-size: var(--text-xs);
  color: color-mix(in oklab, var(--color-text-inverse) 60%, transparent);
  white-space: nowrap;
}
[data-theme='dark'] .footer__disclosure,
[data-theme='dark'] .footer__copy { color: var(--color-text-faint); }

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   CREED
   A reverent, centered editorial moment expressing the firm's
   spiritual foundation. Warm cream surface to set it apart from
   surrounding sections, with serif Fraunces for warmth.
   ============================================================ */
.section--creed {
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}

.section--creed::before,
.section--creed::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 56px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-accent) 50%,
    transparent
  );
  transform: translateX(-50%);
  opacity: 0.55;
}
.section--creed::before { top: var(--space-8); }
.section--creed::after  { bottom: var(--space-8); }

[data-theme='dark'] .section--creed {
  background: color-mix(in oklab, var(--color-bg) 92%, white 8%);
}

.creed {
  max-width: 760px;
  text-align: center;
}

.section__header--center {
  text-align: center;
  margin-inline: auto;
}

.creed__body {
  margin-top: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.creed__line {
  font-family: var(--font-serif, 'Fraunces', Georgia, serif);
  font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.45rem);
  line-height: 1.55;
  color: var(--color-text);
  margin: 0 auto;
  font-weight: 400;
  max-width: 56ch;
  text-align: center;
  text-wrap: balance;
}

.creed__line strong {
  color: var(--color-accent);
  font-weight: 600;
  font-style: italic;
}

.creed__line--quiet {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  font-style: italic;
}

.creed__verse {
  margin: var(--space-12) auto 0;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  max-width: 520px;
}

.creed__verse blockquote {
  margin: 0;
}

.creed__verse blockquote p {
  font-family: var(--font-serif, 'Fraunces', Georgia, serif);
  font-size: clamp(1.35rem, 1.05rem + 1vw, 1.85rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-primary);
  margin: 0;
}

.creed__verse figcaption {
  margin-top: var(--space-4);
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
}

@media (max-width: 600px) {
  .creed__body { gap: var(--space-6); }
  .section--creed::before,
  .section--creed::after { height: 36px; }
}

/* Header agent portal link */
.nav__list .nav__portal {
  color: var(--color-accent);
  font-weight: 500;
}
.nav__list .nav__portal:hover {
  color: var(--color-primary);
}
