/*
 * Davis Web Design LLC brand system - layout-preserving repair, September 2026.
 * Branding changes are deliberately non-geometric: existing font sizes,
 * line-heights, image dimensions, spacing, portrait layout, and header geometry
 * remain controlled by the active theme.
 */
:root {
  --dwd-navy: #09266E;
  --dwd-blue: #0778FA;
  --dwd-charcoal: #23282F;
  --dwd-cloud: #F6F8FB;
  --dwd-slate: #667085;
  --dwd-white: #FFFFFF;

  --color-primary: var(--dwd-navy);
  --color-primary-dark: #061B50;
  --color-accent: var(--dwd-blue);
  --color-accent-blue: var(--dwd-blue);
  --color-accent-green: var(--dwd-blue);
  --color-text: var(--dwd-charcoal);
  --color-text-dark: var(--dwd-charcoal);
  --color-text-mid: #4D5968;
  --color-text-light: var(--dwd-slate);
  --color-text-muted: var(--dwd-slate);
  --color-bg-white: var(--dwd-white);
  --color-white: var(--dwd-white);
  --color-bg-light: var(--dwd-cloud);
  --color-border: #DDE3EA;
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
nav,
nav a,
.btn {
  font-family: var(--font-body) !important;
}

body {
  color: var(--dwd-charcoal);
  background: var(--dwd-white);
}

.btn-primary,
.button-primary,
button[type="submit"],
input[type="submit"] {
  border-color: var(--dwd-navy);
  background: var(--dwd-navy);
  color: var(--dwd-white);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.button-primary:hover,
.button-primary:focus-visible,
button[type="submit"]:hover,
input[type="submit"]:hover {
  border-color: var(--dwd-blue);
  background: var(--dwd-blue);
  color: var(--dwd-white);
}

:focus-visible {
  outline-color: var(--dwd-blue);
}

/* Never impose new logo dimensions. The old theme's established header/footer
   geometry remains the sizing source of truth. */
.dwd-brand-logo,
.dwd-brand-logo__image {
  text-decoration: none !important;
}

.dwd-brand-logo__image {
  height: auto;
  max-width: 100%;
}

/* Only a text-brand fallback needs a default width because it had no previous
   image geometry. Normal legacy-image replacements never use this rule. */
.dwd-brand-logo--inserted .dwd-brand-logo__image {
  width: 190px;
}

@media (max-width: 560px) {
  .dwd-brand-logo--inserted .dwd-brand-logo__image {
    width: 170px;
  }
}

.page-light,
.section-light,
.bg-light {
  background-color: var(--dwd-cloud);
}

.eyebrow,
.accent {
  color: var(--dwd-blue);
}

@media (prefers-reduced-motion: reduce) {
  .dwd-brand-logo,
  .dwd-brand-logo * {
    transition: none !important;
    animation: none !important;
  }
}

/* 2.4.3 - legacy theme logo-slot replacement.
   Theme v5.x can render the nav, homepage hero, and footer logos as background
   images on .brand-logo spans instead of <img> elements. Replace only the
   background artwork; keep the theme's established widths, margins, and
   surrounding geometry unchanged. */
.brand-logo,
.brand-logo--nav,
.brand-logo--hero,
.brand-logo--footer {
  background-image: url("brand/dwd-mark-full-color.svg") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
}

