/* Core Variables */
:root {
    --primary-color: #0056b3;
    --secondary-color: #2c3e50;
    --bg-light: #ffffff;
    --bg-alt: #eef2f5;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
}

/* Base Reset & Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Accessibility & Colors */
.text-primary { color: var(--primary-color) !important; }
.text-dark { color: var(--secondary-color) !important; }
.text-secondary { color: #5a6c7d !important; }
.bg-light { background-color: var(--bg-alt) !important; }
.bg-dark { background-color: var(--secondary-color) !important; }

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover, a:focus {
    color: #003d80;
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #004494;
    border-color: #004494;
    color: #ffffff;
}
.btn-primary:active {
    background-color: #003d80;
    border-color: #003d80;
    color: #ffffff;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.btn-outline-secondary:hover, .btn-outline-secondary:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}
.nav-link {
    font-weight: 500;
    color: var(--secondary-color);
}
.nav-link:hover, .nav-link:focus {
    color: var(--primary-color) !important;
}
.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

/* Cards */
.card {
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1) !important;
}

/* Sections */
section {
    padding: 4rem 0;
}

/* Hero Section */
.hero-section {
    background-color: #ffffff;
}

/* Footer */
footer {
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
}
footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Cookie Banner */
#cookie-banner {
    z-index: 9999;
    border-top: 3px solid var(--primary-color);
}

/* Hover utility for footer links */
.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Utility for contrast fixes */
.bg-dark-brown {
    background-color: #2c3e50 !important;
}
.card img,
.bg-light img,
.container img {
  display: block;
  width: 100%;
  height: auto;
}
/* Font safety overrides */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
.navbar,
.btn,
input,
textarea,
select {
  font-family: var(--font-sans);
}
/* WP Generator feature helpers */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  z-index: 9999;
  transition: width 120ms ease-out;
}
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 9998;
}
.scroll-top.is-visible {
  opacity: 0.95;
  transform: translateY(0);
}
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

