/* Silver Bison site-wide brand and theme layer. Loaded after page styles. */
:root {
  color-scheme: dark;
  --gold: #d4a818;
  --gold-dark: #1e160e;
  --gold-border: #4e3a12;
  --navy: #0f1f3d;
  --navy-deep: #091326;
  --navy-mid: #172744;
  --navy-light: #31405f;
  --text-primary: #f0ece4;
  --text-secondary: #f5f2ed;
  --text-muted: #d8dde6;
  --text-dim: #b7c1d1;
  --silver: #d1d4db;
  --surface: #122440;
  --surface-strong: #0c1830;
  --hero-start: #12294c;
  --footer-bg: #071020;
  --field-bg: #172744;
  --field-border: #354767;
  --shadow-soft: rgba(0, 0, 0, 0.24);
}

html[data-theme="light"] {
  color-scheme: light;
  --gold: #b8860b;
  --gold-dark: #f4e6b5;
  --gold-border: #d7bf72;
  --navy: #e8ecf2;
  --navy-deep: #dbe2ec;
  --navy-mid: #f0ece4;
  --navy-light: #c2cad8;
  --text-primary: #1a2035;
  --text-secondary: #2a3050;
  --text-muted: #445070;
  --text-dim: #556688;
  --silver: #2a3050;
  --surface: #f7f4ed;
  --surface-strong: #f7f4ed;
  --hero-start: #eef3f8;
  --footer-bg: #dfe6ef;
  --field-bg: #fbf8f1;
  --field-border: #bdc7d6;
  --shadow-soft: rgba(26, 32, 53, 0.12);
}

body {
  background: var(--navy) !important;
  color: var(--text-primary) !important;
  transition: background-color 0.18s ease, color 0.18s ease;
}

nav {
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent) !important;
  border-bottom-color: var(--navy-light) !important;
}

.nav-logo-name { color: var(--silver) !important; }
.nav-logo-sub { color: var(--text-dim) !important; }
.breadcrumb { position: relative; }

.theme-toggle {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy-light);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: 0 8px 22px var(--shadow-soft);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
  outline: none;
}

.theme-icon {
  position: absolute;
  width: 15px;
  height: 15px;
  color: currentColor;
}

.theme-icon-sun {
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 -8px 0 -6px currentColor, 0 8px 0 -6px currentColor, 8px 0 0 -6px currentColor, -8px 0 0 -6px currentColor, 6px 6px 0 -6px currentColor, -6px -6px 0 -6px currentColor, 6px -6px 0 -6px currentColor, -6px 6px 0 -6px currentColor;
}

.theme-icon-moon {
  border-radius: 50%;
  box-shadow: inset 5px -2px 0 0 currentColor;
}

html[data-theme="light"] .theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-moon { display: none; }

.breadcrumb,
.service,
.section-band,
.final-cta,
.page-cta,
.quote-block,
.testimonial-card,
.value-card,
.expertise-card,
.profile-card,
.warning-card,
.legal-callout,
.form-status,
.contact-card,
.availability-card {
  background-color: var(--surface) !important;
  border-color: var(--navy-light) !important;
}

.hero,
.page-hero {
  background: linear-gradient(180deg, var(--hero-start) 0%, var(--navy) 100%) !important;
  border-color: var(--navy-light) !important;
}

.page-hero::after,
.section-label::after,
.section-kicker::before,
.section-kicker::after {
  background: var(--navy-light) !important;
}

footer {
  background: var(--footer-bg) !important;
  border-top-color: var(--navy-light) !important;
}

footer p,
footer strong,
.service-text,
.hero-sub,
.page-hero-sub,
.section p,
.process-step p,
.form-section > p,
.form-note,
.contact-item-value,
.credential-item,
.timeline-item p,
.value-card p,
.expertise-card p,
main p,
main li {
  color: var(--text-muted) !important;
}

h1, h2, h3,
.service-title,
.section-heading h2,
.final-cta h2,
.page-cta h2,
.form-section h2,
.profile-name,
.value-card h3,
.expertise-card h3,
.timeline-item h3 {
  color: var(--text-primary) !important;
}

.hero-eyebrow,
.page-hero-eyebrow,
.hero-eyebrow,
.section-label,
.section-kicker,
.learn-more,
a,
.call-direct a,
footer a,
.breadcrumb .current,
.breadcrumb a:hover,
.step-number,
.value-num,
.timeline-year,
.profile-title,
.contact-item-icon,
.avail-time.limited {
  color: var(--gold) !important;
}

.btn-primary,
.form-submit {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #0f1420 !important;
}

.btn-secondary {
  border-color: var(--navy-light) !important;
  color: var(--text-muted) !important;
}

.btn-secondary:hover { color: var(--gold) !important; border-color: var(--gold) !important; }

input, select, textarea,
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--field-bg) !important;
  border-color: var(--field-border) !important;
  color: var(--text-primary) !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim) !important; }
.form-group select option { background: var(--field-bg) !important; color: var(--text-primary) !important; }

.service-icon svg *,
.expertise-icon svg *,
.contact-item-icon svg *,
.call-direct svg * {
  stroke: var(--gold);
}
.service-icon svg circle[fill],
.expertise-icon svg circle[fill] { fill: var(--gold); }

.hero-photo,
.profile-photo {
  background: var(--surface) !important;
  border-color: var(--navy-light) !important;
  box-shadow: 0 22px 60px var(--shadow-soft) !important;
}

.trust-bar {
  background: var(--navy) !important;
  border-color: var(--navy-light) !important;
}

.trust-bar p { color: var(--text-muted) !important; }
.trust-bar span { color: var(--navy-light) !important; }

.attorney-support {
  background: var(--navy) !important;
  border-bottom: 1px solid var(--navy-light);
  padding: 58px 48px;
}

.attorney-support-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.attorney-support-card {
  background: var(--surface) !important;
  border: 1px solid var(--navy-light);
  border-radius: 6px;
  padding: 24px 24px 26px;
}

.attorney-support-card h3 {
  color: var(--text-primary) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.attorney-support-card p {
  color: var(--text-muted) !important;
  font-size: 14px;
  line-height: 1.75;
}

.attorney-support-card .support-kicker {
  color: var(--gold) !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

html[data-theme="light"] .hero-photo img,
html[data-theme="light"] .profile-photo img {
  filter: saturate(0.95) contrast(1.02);
}

@media (max-width: 900px) {
  .attorney-support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .theme-toggle {
    position: static;
    transform: none;
    margin: 10px auto 0;
  }
  .attorney-support { padding: 44px 24px; }
}
