/* City of Hartford, WI - Custom Stylesheet */
/* Fonts: Inter + Source Sans 3 */
/* Palette: Navy #1B3A5C | Slate #4A6FA5 | Gold #C9982E | Light #F5F6F8 */

:root {
  --color-navy: #1B3A5C;
  --color-navy-dark: #132841;
  --color-slate: #4A6FA5;
  --color-slate-light: #6B8FBF;
  --color-gold: #C9982E;
  --color-gold-light: #D4AD4E;
  --color-white: #FFFFFF;
  --color-light: #F5F6F8;
  --color-gray-100: #E8EAED;
  --color-gray-200: #D1D5DB;
  --color-gray-300: #9CA3AF;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-text: #1F2937;
  --color-text-muted: #4B5563;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F6F8;
  --color-border: #E8EAED;
  --color-card-bg: #FFFFFF;
  --color-card-shadow: rgba(27, 58, 92, 0.08);
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --transition: 0.2s ease;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --max-width: 1200px;
}

[data-theme="dark"] {
  --color-text: #E8EAED;
  --color-text-muted: #9CA3AF;
  --color-bg: #0F172A;
  --color-bg-alt: #1E293B;
  --color-border: #334155;
  --color-card-bg: #1E293B;
  --color-card-shadow: rgba(0,0,0,0.3);
  --color-light: #1E293B;
  --color-gray-100: #334155;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 2.25rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--color-navy);
}

[data-theme="dark"] a:hover {
  color: var(--color-slate-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--color-white);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ========== UTILITIES ========== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

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

.section__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.section__title {
  margin-bottom: 1rem;
}

.section__desc {
  color: var(--color-text-muted);
  max-width: 640px;
  font-size: 1.075rem;
}

.section__header {
  margin-bottom: 3rem;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

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

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

.btn--primary {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn--primary:hover {
  background-color: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  color: var(--color-white);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--secondary:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
}

[data-theme="dark"] .btn--secondary {
  color: var(--color-white);
  border-color: var(--color-white);
}

[data-theme="dark"] .btn--secondary:hover {
  background-color: var(--color-white);
  color: var(--color-navy);
}

.btn--gold {
  background-color: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.btn--gold:hover {
  background-color: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-white);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ========== HEADER / NAV ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-navy);
}

[data-theme="dark"] .header__brand {
  color: var(--color-white);
}

.header__logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.header__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
}

.header__name small {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  color: var(--color-text-muted);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-navy);
  background-color: var(--color-bg-alt);
}

[data-theme="dark"] .nav__link:hover,
[data-theme="dark"] .nav__link--active {
  color: var(--color-white);
  background-color: var(--color-bg-alt);
}

.nav__cta {
  margin-left: 0.5rem;
}

.nav__phone {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-navy);
  margin-left: 0.75rem;
  white-space: nowrap;
}

[data-theme="dark"] .nav__phone {
  color: var(--color-gold);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text-muted);
  border-radius: var(--radius);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
  }

  .nav--open {
    display: flex;
  }

  .nav__link {
    width: 100%;
    padding: 0.75rem;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
  }

  .nav__phone {
    margin-left: 0;
    margin-top: 0.25rem;
    text-align: center;
  }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-color: var(--color-navy);
  color: var(--color-white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 4rem 0;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========== QUICK LINKS / SERVICES GRID ========== */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.quick-link {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--color-text);
}

.quick-link:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-slate-light);
  color: var(--color-text);
  transform: translateY(-2px);
}

.quick-link__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light);
  border-radius: var(--radius);
  color: var(--color-navy);
}

[data-theme="dark"] .quick-link__icon {
  background: var(--color-navy);
  color: var(--color-gold);
}

.quick-link__icon svg {
  width: 22px;
  height: 22px;
}

.quick-link h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.quick-link p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ========== ABOUT / TWO COLUMN ========== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.two-col__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.two-col__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== STATS ========== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}

[data-theme="dark"] .stat__number {
  color: var(--color-gold);
}

.stat__label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ========== NEWS / ANNOUNCEMENTS ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card__img img {
  transform: scale(1.03);
}

.news-card__body {
  padding: 1.5rem;
}

.news-card__date {
  font-size: 0.8125rem;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.news-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ========== DEPARTMENTS GRID ========== */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.dept-card {
  padding: 2rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.dept-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-slate-light);
}

.dept-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light);
  border-radius: var(--radius);
  color: var(--color-navy);
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .dept-card__icon {
  background: var(--color-navy);
  color: var(--color-gold);
}

.dept-card__icon svg {
  width: 24px;
  height: 24px;
}

.dept-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.dept-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.dept-card a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-slate);
}

.dept-card a:hover {
  color: var(--color-navy);
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: var(--color-navy);
  color: var(--color-white);
  text-align: center;
  padding: 4rem 0;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  font-size: 1.075rem;
}

/* ========== CONTACT SECTION ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light);
  border-radius: var(--radius);
  color: var(--color-navy);
}

[data-theme="dark"] .contact-info__icon {
  background: var(--color-navy);
  color: var(--color-gold);
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
}

.contact-info__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-navy);
  margin-bottom: 0.125rem;
}

[data-theme="dark"] .contact-info__label {
  color: var(--color-white);
}

.contact-info__value {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ========== FORM ========== */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text);
}

.form__input,
.form__select,
.form__textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-slate);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.15);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

.form__status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  display: none;
}

.form__status--success {
  display: block;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form__status--error {
  display: block;
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ========== MAP EMBED ========== */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========== ABOUT PAGE TIMELINE ========== */
.timeline {
  position: relative;
  max-width: 720px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline__item {
  position: relative;
  padding-left: 60px;
  padding-bottom: 2.5rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: 14px;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-gold);
}

.timeline__year {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
}

.timeline__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.375rem;
}

.timeline__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ========== LEADERSHIP GRID ========== */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.leader-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.leader-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--color-navy);
}

[data-theme="dark"] .leader-card__avatar {
  background: var(--color-navy);
  color: var(--color-gold);
}

.leader-card__avatar svg {
  width: 36px;
  height: 36px;
}

.leader-card h3 {
  font-size: 1rem;
  margin-bottom: 0.125rem;
}

.leader-card__role {
  font-size: 0.8125rem;
  color: var(--color-gold);
  font-weight: 600;
}

/* ========== SERVICE DETAIL PAGE ========== */
.service-hero {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 3.5rem 0;
}

.service-hero h1 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.service-hero p {
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  font-size: 1.075rem;
}

.service-content {
  max-width: 800px;
}

.service-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.service-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.service-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.service-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
}

.service-sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-card__links {
  list-style: none;
  padding: 0;
}

.sidebar-card__links li {
  margin-bottom: 0.5rem;
}

.sidebar-card__links a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.sidebar-card__links a:hover,
.sidebar-card__links a--active {
  background: var(--color-bg-alt);
  color: var(--color-navy);
}

.service-page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .service-page-layout {
    grid-template-columns: 1fr;
  }
}

/* ========== FOOTER ========== */
.footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer h4 {
  color: var(--color-white);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.footer p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer__links {
  list-style: none;
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.375rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
}

.footer__bottom a {
  color: rgba(255,255,255,0.5);
}

.footer__bottom a:hover {
  color: var(--color-white);
}

/* ========== 404 PAGE ========== */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.error-page__code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 12vw, 8rem);
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1;
  opacity: 0.15;
}

[data-theme="dark"] .error-page__code {
  color: var(--color-white);
}

.error-page h1 {
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  max-width: 420px;
}

/* ========== DISCLAIMER BAR ========== */
.disclaimer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
}

/* ========== ANIMATIONS (restrained) ========== */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .fade-in--visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ========== PRINT ========== */
@media print {
  .header,
  .footer,
  .disclaimer-bar,
  .theme-toggle,
  .nav-toggle {
    display: none;
  }

  body {
    padding-bottom: 0;
    color: #000;
    background: #fff;
  }
}
