/* ================================================================
   BUILD SAFE DESIGNS — style.css
   Brand: Primary Navy #123B5D | Harbor Blue #4D7EA8 | Pale Ice #DCEAF2
   Fonts: DM Sans (body) + DM Serif Display (hero headings)
   ================================================================ */

/* ─── Design Tokens ─── */
:root,
[data-theme='light'] {
  /* BSD Brand Colors */
  --color-navy:       #123B5D;
  --color-navy-deep:  #0d2f4a;
  --color-harbor:     #4D7EA8;
  --color-pale-ice:   #DCEAF2;
  --color-charcoal:   #2B2F33;
  --color-navy-pale:  #edf4f9;

  /* Semantic roles */
  --color-bg:          #ffffff;
  --color-surface:     #f9fbfd;
  --color-surface-2:   #f3f7fa;
  --color-border:      #d5e4ef;
  --color-divider:     #e0edf5;
  --color-text:        #1a2d3e;
  --color-text-muted:  #4d6a80;
  --color-text-faint:  #8aa8be;
  --color-primary:     var(--color-navy);
  --color-primary-hover: var(--color-navy-deep);

  /* Safety colors (not decorative) */
  --color-safe:   #437a22;
  --color-caution:#c87a00;
  --color-risk:   #a12c2c;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 240ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(18, 59, 93, 0.08);
  --shadow-md: 0 4px 16px rgba(18, 59, 93, 0.10);
  --shadow-lg: 0 12px 40px rgba(18, 59, 93, 0.14);

  /* 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;

  /* 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.6vw, 1.375rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-hero: clamp(2.5rem, 1rem + 5vw, 5.5rem);

  /* Content widths */
  --content-default: 1100px;
  --content-narrow:  720px;

  /* Fonts */
  --font-body:    'DM Sans', 'Lato', 'Helvetica Neue', sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
}

[data-theme='dark'] {
  --color-bg:           #0e1c28;
  --color-surface:      #132233;
  --color-surface-2:    #172a3e;
  --color-border:       #1e3a54;
  --color-divider:      #1b3249;
  --color-text:         #d6e8f4;
  --color-text-muted:   #7aadcc;
  --color-text-faint:   #3d6a88;
  --color-navy:         #4D7EA8;
  --color-navy-deep:    #6898be;
  --color-harbor:       #7aaec8;
  --color-pale-ice:     #1e3a54;
  --color-charcoal:     #d6e8f4;
  --color-navy-pale:    #132233;
  --color-primary:      #6898be;
  --color-primary-hover:#7aaec8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:           #0e1c28;
    --color-surface:      #132233;
    --color-surface-2:    #172a3e;
    --color-border:       #1e3a54;
    --color-divider:      #1b3249;
    --color-text:         #d6e8f4;
    --color-text-muted:   #7aadcc;
    --color-text-faint:   #3d6a88;
    --color-navy:         #4D7EA8;
    --color-navy-deep:    #6898be;
    --color-harbor:       #7aaec8;
    --color-pale-ice:     #1e3a54;
    --color-charcoal:     #d6e8f4;
    --color-navy-pale:    #132233;
    --color-primary:      #6898be;
    --color-primary-hover:#7aaec8;
  }
}

/* ─── Reset & 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;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  transition: background-color var(--transition-base), color var(--transition-base);
}

img, picture, 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 { text-wrap: balance; line-height: 1.15; }
p, li, figcaption { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }

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

::selection {
  background: rgba(77, 126, 168, 0.25);
  color: var(--color-text);
}

a, button, [role='button'] {
  transition: color var(--transition-fast), background var(--transition-fast),
    border-color var(--transition-fast), box-shadow var(--transition-fast),
    opacity var(--transition-fast);
}

.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;
}

/* ─── Container ─── */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.625rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-navy);
  color: #ffffff;
  border-color: var(--color-navy);
}
.btn-primary:hover {
  background: var(--color-navy-deep);
  border-color: var(--color-navy-deep);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.btn-contact-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: 0.875rem;
  margin-top: var(--space-6);
  font-weight: 600;
}
.btn-contact-cta:hover {
  background: var(--color-navy-deep);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ─── Section Labels ─── */
.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-harbor);
  margin-bottom: var(--space-3);
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-navy);
  line-height: 1.15;
  margin-bottom: var(--space-6);
  transition: color var(--transition-base);
}

[data-theme='dark'] .section-heading {
  color: var(--color-text);
}

/* ═══════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

[data-theme='dark'] .site-header {
  background: rgba(14, 28, 40, 0.94);
}

.header-inner {
  max-width: var(--content-default);
  margin-inline: auto;
  padding: 0 clamp(var(--space-6), 5vw, var(--space-16));
  height: 68px;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition-fast);
}

[data-theme='dark'] .logo-img {
  /* Invert navy mark to white on dark backgrounds */
  filter: brightness(0) invert(1) opacity(0.90);
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-name {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-navy);
  line-height: 1.2;
  transition: color var(--transition-fast);
}

[data-theme='dark'] .logo-name { color: var(--color-text); }

.logo-tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-left: auto;
}

.site-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-1) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.site-nav a:hover { color: var(--color-navy); }
[data-theme='dark'] .site-nav a:hover { color: var(--color-harbor); }

.nav-cta {
  background: var(--color-navy) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--color-navy-deep) !important;
  box-shadow: var(--shadow-sm) !important;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--color-navy);
  border-color: var(--color-harbor);
}

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--color-navy) 0%, #1a4f77 55%, var(--color-harbor) 100%);
  overflow: hidden;
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(220, 234, 242, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 234, 242, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-16);
  flex: 1;
}

.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-pale-ice);
  opacity: 0.75;
  margin-bottom: var(--space-4);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.08;
  margin-bottom: var(--space-6);
}

.hero-heading em {
  color: var(--color-pale-ice);
  font-style: italic;
}

.hero-sub {
  font-size: var(--text-lg);
  color: rgba(220, 234, 242, 0.85);
  max-width: 52ch;
  line-height: 1.6;
  margin-bottom: var(--space-10);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-credentials {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex-shrink: 0;
}

.cred-card {
  background: rgba(220, 234, 242, 0.10);
  border: 1px solid rgba(220, 234, 242, 0.20);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  text-align: center;
  min-width: 180px;
  backdrop-filter: blur(8px);
}

.cred-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #ffffff;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-1);
}

.cred-label {
  display: block;
  font-size: var(--text-xs);
  color: rgba(220, 234, 242, 0.7);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(220,234,242,0.5);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════ */
.about {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-20));
  align-items: start;
}

.about-photo-frame {
  position: sticky;
  top: 88px;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 5/6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-navy-pale);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.photo-placeholder svg { width: 100%; height: 100%; }

.photo-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: var(--radius-lg);
}

.photo-caption {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.photo-caption strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 2px;
}

[data-theme='dark'] .photo-caption strong { color: var(--color-text); }

.photo-caption span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.about-affiliations {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.affiliations-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-harbor);
  margin-bottom: var(--space-3);
}

.affiliations-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.affiliations-list li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
  line-height: 1.4;
}

.affiliations-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-harbor);
  opacity: 0.6;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.about-body p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 68ch;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--color-navy-pale);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-navy);
  border-radius: var(--radius-md);
}

[data-theme='dark'] .about-highlights {
  background: var(--color-surface-2);
  border-left-color: var(--color-harbor);
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.highlight-item svg {
  color: var(--color-harbor);
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-item span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   DIVIDER
═══════════════════════════════════════════════════════ */
.section-divider {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
  padding-block: var(--space-4);
  max-width: var(--content-default);
  margin-inline: auto;
  color: var(--color-border);
}

.divider-bar {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.divider-mark {
  width: 48px;
  flex-shrink: 0;
  color: var(--color-harbor);
  opacity: 0.4;
}

/* ═══════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════ */
.services {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-surface);
}

.services-header {
  max-width: var(--content-narrow);
  margin-bottom: var(--space-12);
}

.services-intro {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 60ch;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-navy);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--color-harbor);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-navy-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  margin-bottom: var(--space-5);
  transition: background var(--transition-base);
}

[data-theme='dark'] .service-icon {
  background: var(--color-pale-ice);
  color: var(--color-harbor);
}

.service-card:hover .service-icon {
  background: rgba(18, 59, 93, 0.08);
}

.service-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

[data-theme='dark'] .service-card h3 { color: var(--color-text); }

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: none;
}

/* ═══════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════ */
.contact {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: linear-gradient(135deg, var(--color-navy) 0%, #1a4f77 60%, var(--color-harbor) 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(220, 234, 242, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 234, 242, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(var(--space-12), 6vw, var(--space-20));
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-sub {
  font-size: var(--text-base);
  color: rgba(220, 234, 242, 0.8);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: var(--space-10);
  font-weight: 300;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(220, 234, 242, 0.9);
  font-size: var(--text-sm);
  text-decoration: none;
}

.contact-item svg { color: var(--color-pale-ice); opacity: 0.7; flex-shrink: 0; }

.contact-item:hover { color: #fff; }

.contact-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

[data-theme='dark'] .contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.contact-card-logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.contact-card-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  /* Card is always white/light — navy logo shows naturally, no inversion */
}

.contact-card-firm {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.01em;
}

[data-theme='dark'] .contact-card-firm { color: var(--color-text); }

.contact-card-desc {
  font-size: var(--text-xs);
  color: var(--color-harbor);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
  margin-bottom: var(--space-5);
}

.contact-card-divider {
  height: 1px;
  background: var(--color-border);
  margin-block: var(--space-5);
}

.contact-card-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

[data-theme='dark'] .contact-card-name { color: var(--color-text); }

.contact-card-title {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.contact-card-langs {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--color-charcoal);
  padding-block: var(--space-8);
}

[data-theme='dark'] .site-footer {
  background: #0a1520;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(220, 234, 242, 0.7);
  font-size: var(--text-sm);
  font-weight: 500;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  /* Invert navy mark to white for the dark footer */
  filter: brightness(0) invert(1) opacity(0.6);
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(220, 234, 242, 0.4);
  margin-left: auto;
}

.footer-nav {
  display: flex;
  gap: var(--space-6);
}

.footer-nav a {
  font-size: var(--text-xs);
  color: rgba(220, 234, 242, 0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav a:hover { color: rgba(220, 234, 242, 0.9); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-credentials {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .cred-card { min-width: 140px; flex: 1; }

  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo-frame {
    position: static;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: var(--space-5);
    align-items: start;
  }
  .about-affiliations {
    margin-top: 0;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }
  .logo-tagline { display: none; }
  
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-credentials {
    flex-direction: column;
  }
  .cred-card { min-width: unset; }

  .about-photo-frame {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }
  .footer-copy { margin-left: 0; }
}

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