/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #0a2540;
    background-color: #ffffff;
}

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

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #004080;
    text-decoration: underline;
}

.btn {
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #0055aa;
    border-color: #0055aa;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-outline-dark:hover, .btn-outline-dark:focus {
    background-color: #0a2540;
    color: #ffffff;
    border-color: #0a2540;
}

.btn-light:hover, .btn-light:focus {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    color: #0a2540;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: #0066cc !important;
}

.nav-link.active {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: #0066cc;
}

.card {
    border-radius: 12px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(10, 37, 64, 0.15) !important;
}

.form-control:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.accordion-button:not(.collapsed) {
    background-color: #0066cc;
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.accordion-button::after {
    filter: invert(1);
}

/* Interactive States for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Utility overrides for contrast safety */
.bg-terracotta, .bg-dark-brown {
    color: #ffffff !important;
}

.bg-terracotta a, .bg-dark-brown a {
    color: #e6f2ff !important;
}

.bg-terracotta a:hover, .bg-dark-brown a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.btn-light {
    color: #0a2540;
}

/* Cookie Banner Specifics */
#cookie-banner button {
    min-width: 100px;
}
.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);
}

