/*
 * Reasonable Compensation Advisors — shared brand layer.
 *
 * This file is byte-identical in both repositories:
 *   reasonable-comp-mainsite/public/brand.css   (marketing site)
 *   bls_database/public/brand.css               (product app)
 * Change both in the same pair of PRs. Site-specific components stay in each
 * repo's styles.css, which loads after this file.
 *
 * Owns: design tokens, site header + mobile menu, page hero, eyebrow,
 * gold/outline buttons, site footer, focus ring. The logo mark and favicon are
 * logo-mark.svg and favicon.svg, also mirrored in both repos.
 */

:root {
  /* Brand */
  --navy: #0d2b55;
  --navy-dark: #081b38;
  --navy-light: #1a3f6f;
  --gold: #c8a84b;
  --gold-light: #e0c068;
  --gold-soft: #f8f1dc;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f7f8fa;
  --gray-50: #f7f8fa;
  --gray-100: #f0f2f5;
  --gray-200: #e2e6ea;
  --gray-300: #d3d9df;
  --gray-400: #9aa4ad;
  --gray-500: #5f6b78;
  --gray-700: #3d4b5c;
  --gray-900: #1a2433;
  --text: #1a2433;

  /* Type */
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Shape & depth */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 12px rgba(13, 43, 85, 0.08);
  --shadow-raised: 0 8px 32px rgba(13, 43, 85, 0.13);

  /* Layout */
  --max-w: 1100px;
  --header-h: 68px;
}

/* ── Site header ─────────────────────────────────────────────── */

.site-header {
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  margin: 0;
  position: sticky;
  text-align: left;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  justify-content: space-between;
  margin: 0 auto;
  /* Content width plus its side padding, so the logo lines up with page content. */
  max-width: calc(var(--max-w) + 48px);
  min-height: var(--header-h);
  padding: 0 24px;
}

.logo {
  align-items: center;
  color: var(--white);
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  /* Dollar-shield mark: /logo-mark.svg (gold shield, navy two-stroke dollar). */
  display: block;
  flex-shrink: 0;
  height: 44px;
  width: 44px;
}

.logo-text {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: left;
}

.logo-text span {
  color: rgba(255, 255, 255, 0.65);
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-top: 2px;
  text-transform: uppercase;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.85);
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 6px 12px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.site-nav .btn-nav {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  margin-left: 8px;
  padding: 8px 18px;
}

.site-nav .btn-nav:hover {
  background: var(--gold-light);
  color: var(--navy);
}

/* Mobile menu: a visually hidden checkbox + label, so it works without JS
   and under a script-src 'self' CSP. */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

@media (max-width: 860px) {
  .site-header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .logo {
    flex: 1 1 0;
    min-width: 0;
  }

  .nav-toggle {
    display: block;
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
  }

  .nav-toggle-label {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    min-height: 40px;
    padding: 6px 14px;
  }

  .nav-toggle-label::before {
    border-bottom: 2px solid currentColor;
    border-top: 2px solid currentColor;
    content: '';
    height: 10px;
    width: 16px;
  }

  .nav-toggle:focus-visible + .nav-toggle-label {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
  }

  .site-nav {
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0 16px;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a {
    display: block;
    font-size: 15px;
    padding: 10px 12px;
  }

  .site-nav .btn-nav {
    margin: 8px 0 0;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .logo-mark {
    height: 38px;
    width: 38px;
  }

  .logo-text {
    font-size: 14px;
  }

  .logo-text span {
    display: none;
  }
}

/* ── Page hero band ──────────────────────────────────────────── */

.page-hero {
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: var(--white);
  padding: 52px 24px 48px;
  text-align: left;
}

.page-hero-inner {
  margin: 0 auto;
  max-width: var(--max-w);
}

.page-hero h1 {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 10px;
}

.page-hero p,
.page-hero .subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.6;
  max-width: 600px;
}

.page-hero .eyebrow {
  color: var(--gold-light);
}

.page-hero-compact {
  padding: 32px 24px 28px;
}

.page-hero-compact h1 {
  font-size: clamp(24px, 3vw, 32px);
}

/* ── Type helpers ────────────────────────────────────────────── */

.eyebrow {
  color: var(--gold);
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ── Buttons shared across both sites ────────────────────────── */

.btn-gold {
  background: var(--gold);
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(200, 168, 75, 0.3);
  color: var(--navy);
  cursor: pointer;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  color: var(--white);
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

/* ── Site footer ─────────────────────────────────────────────── */

.site-footer {
  background: var(--navy-dark);
  border: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  margin: 0;
  padding: 48px 24px 28px;
  text-align: left;
}

.site-footer-inner {
  margin: 0 auto;
  max-width: var(--max-w);
}

.site-footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 36px;
}

.site-footer-brand p {
  line-height: 1.6;
  margin-top: 12px;
  max-width: 420px;
}

.site-footer-brand .logo-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.site-footer-col h2 {
  border: 0;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  padding: 0;
  text-transform: uppercase;
}

.site-footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: none;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 20px;
}

.site-footer-disclaimer {
  flex-basis: 100%;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Accessibility ───────────────────────────────────────────── */

:where(a, button, input, select, textarea, summary, label):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

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

@media print {
  .site-header,
  .page-hero,
  .site-footer {
    display: none !important;
  }
}
