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

/* Color Palette */
.bg-terracotta {
    background-color: #B45309 !important;
    color: #FFFFFF !important;
}

.bg-dark-brown {
    background-color: #1F2937 !important;
}

.bg-blue-accent {
    background-color: #1E3A8A !important;
}

.text-primary {
    color: #1E3A8A !important;
}

.text-blue-accent {
    color: #1E3A8A !important;
}

.btn-primary {
    background-color: #1E3A8A;
    border-color: #1E3A8A;
    color: #FFFFFF;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #1E3A8A;
    border-color: #1E3A8A;
    color: #FFFFFF;
    filter: brightness(1.1);
}

.btn-outline-primary {
    color: #1E3A8A;
    border-color: #1E3A8A;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: #1E3A8A;
    border-color: #1E3A8A;
    color: #FFFFFF;
}

/* Accessibility & Contrast */
.bg-terracotta .btn-light,
.bg-terracotta .text-white,
.bg-terracotta .lead,
.bg-terracotta p,
.bg-terracotta h1,
.bg-terracotta h2,
.bg-terracotta h3,
.bg-terracotta h4,
.bg-terracotta h5,
.bg-terracotta h6 {
    color: #FFFFFF !important;
}

.bg-terracotta .btn-light:hover,
.bg-terracotta .btn-light:focus {
    background-color: #FFFFFF;
    color: #1F2937;
}

/* Navbar & Footer Links */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #FFFFFF;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-white-50:hover {
    color: #FFFFFF !important;
}

/* Cards */
.card {
    background-color: #FFFFFF;
    color: #333333;
}

/* Forms */
.form-control:focus {
    border-color: #1E3A8A;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: #1E3A8A;
    color: #FFFFFF;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Utility overrides for strict contrast */
.text-muted {
    color: #6c757d !important;
}

/* Ensure text on light backgrounds is dark */
.bg-light .card-text,
.bg-light p,
.bg-light span,
.bg-light li,
.bg-light label,
.bg-light div {
    color: #333333;
}

/* Ensure text on white cards is dark */
.card .card-text,
.card .card-title,
.card p,
.card li,
.card label {
    color: #333333;
}

/* Button States Safety */
.btn-outline-secondary {
    color: #333333;
    border-color: #333333;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    background-color: #333333;
    color: #FFFFFF;
    border-color: #333333;
}

/* Link States Safety */
a.text-white-50:focus {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Cookie Banner Specifics */
#cookie-banner p {
    color: #333333;
}

/* Focus visibility */
*:focus-visible {
    outline: 3px solid #1E3A8A;
    outline-offset: 2px;
}
.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);
}

