/* Global Variables */
:root {
    --primary-blue: #2563eb;
    --primary-dark-blue: #1e40af;
    --text-dark: #1f2937;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
}

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

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

/* Links */
a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--primary-dark-blue);
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark-blue);
    border-color: var(--primary-dark-blue);
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.btn-primary:active {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
    color: #ffffff;
}

.btn-outline-dark {
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-outline-dark:hover {
    background-color: var(--text-dark);
    color: #ffffff;
    border-color: var(--text-dark);
}

.btn-outline-dark:focus {
    box-shadow: 0 0 0 0.2rem rgba(31, 41, 55, 0.25);
}

/* Navbar */
.navbar-brand {
    color: var(--primary-blue) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-blue) !important;
}

.nav-link.active {
    color: var(--primary-blue) !important;
    border-bottom: 2px solid var(--primary-blue);
}

/* Cards */
.card {
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

/* Forms */
.form-control,
.form-select {
    border: 1px solid #d1d5db;
    padding: 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: #eff6ff;
    color: var(--primary-dark-blue);
    font-weight: 600;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.accordion-body {
    background-color: #ffffff;
}

/* Utility Classes for Colors */
.text-primary {
    color: var(--primary-blue) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

.text-secondary {
    color: #4b5563 !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.bg-dark {
    background-color: var(--text-dark) !important;
}

.bg-white {
    background-color: var(--bg-white) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* Hero Section Specifics */
.hero-section {
    border-bottom: 1px solid #e5e7eb;
}

/* Footer Specifics */
footer a {
    color: #e5e7eb;
}

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

/* Accessibility Focus */
*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Cookie Banner */
#cookie-banner {
    border-top: 2px solid var(--primary-blue);
}

/* Image Placeholders */
img[data-ai-prompt] {
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-style: italic;
    min-height: 200px;
    object-fit: cover;
}

/* Min Height Utility */
.min-vh-75 {
    min-height: 75vh;
}
.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);
}

