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

/* Color Palette Variables */
.bg-graphite {
    background-color: #2b2b2b;
}

.text-milk {
    color: #f5f5f5;
}

.bg-lavender {
    background-color: #e6e6fa;
}

.btn-primary-violet {
    background-color: #4b0082;
    border-color: #4b0082;
    color: #f5f5f5;
}

.btn-primary-violet:hover,
.btn-primary-violet:focus {
    background-color: #3a006b;
    border-color: #3a006b;
    color: #ffffff;
}

.btn-primary-violet:active {
    background-color: #29004d;
    border-color: #29004d;
    color: #ffffff;
}

/* Header & Footer */
header, footer {
    background-color: #2b2b2b;
}

header a, footer a {
    color: #f5f5f5;
    text-decoration: none;
}

header a:hover, footer a:hover {
    color: #e6e6fa;
}

/* Cards */
.card.bg-lavender {
    border: 2px solid #2b2b2b;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: #e6e6fa;
    color: #2b2b2b;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(230, 230, 250, 0.5);
}

/* Cookie Banner */
.cookie-banner {
    z-index: 1050;
}

/* Form Controls */
.form-control {
    background-color: #f5f5f5;
    border: 1px solid #2b2b2b;
    color: #2b2b2b;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: #4b0082;
    color: #2b2b2b;
    box-shadow: 0 0 0 0.25rem rgba(75, 0, 130, 0.25);
}

/* Accessibility & Focus */
a:focus, button:focus {
    outline: 2px solid #4b0082;
    outline-offset: 2px;
}

/* Navbar Toggler */
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(230, 230, 250, 0.5);
}
.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);
}

/* Contrast safety overrides (auto-generated) */
.bg-dark, .bg-dark *, [class*="bg-dark"] * { color: #f8f9fa; }
.bg-light, .bg-light *, [class*="bg-light"] * { color: #212529; }
.text-white { color: #ffffff !important; }
.text-dark { color: #212529 !important; }
section[class*="dark"] h1, section[class*="dark"] h2, section[class*="dark"] h3,
section[class*="dark"] h4, section[class*="dark"] h5, section[class*="dark"] h6,
section[class*="dark"] p, section[class*="dark"] li, section[class*="dark"] span,
section[class*="dark"] a:not(.btn) { color: #f0f0f0; }
.card { color: #212529; }
.card p, .card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.card li, .card span { color: inherit; }
/* 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);
}

