/* Base Variables & Reset */
:root {
    --bg-light-gray: #f5f5f5;
    --text-dark-graphite: #333333;
    --bg-lavender-light: #e6e6fa;
    --bg-primary-violet: #8b5cf6;
    --text-white: #ffffff;
}

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

/* Background Utilities */
.bg-light-gray {
    background-color: var(--bg-light-gray) !important;
}

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

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

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

/* Text Utilities */
.text-dark-graphite {
    color: var(--text-dark-graphite) !important;
}

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

.text-primary-violet {
    color: var(--bg-primary-violet) !important;
}

/* Buttons */
.btn-primary-violet {
    background-color: var(--bg-primary-violet);
    border-color: var(--bg-primary-violet);
    color: var(--text-white);
}

.btn-primary-violet:hover,
.btn-primary-violet:focus,
.btn-primary-violet:active {
    background-color: #7c3aed;
    border-color: #7c3aed;
    color: var(--text-white);
    box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25);
}

.btn-outline-secondary {
    color: var(--text-dark-graphite);
    border-color: #6c757d;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    background-color: #6c757d;
    color: var(--text-white);
    border-color: #6c757d;
}

/* Navigation & Links */
.hover-lavender {
    transition: color 0.2s ease;
}

.hover-lavender:hover,
.hover-lavender:focus {
    color: var(--bg-lavender-light) !important;
}

.navbar-brand {
    letter-spacing: 1px;
}

/* Hero Section */
.hero-section {
    position: relative;
}

.bg-gradient-graphite {
    background: linear-gradient(to right, rgba(51, 51, 51, 0.9) 0%, rgba(51, 51, 51, 0.6) 100%);
}

.min-vh-75 {
    min-height: 75vh;
}

/* Cards & Layout */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}

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

.border-start {
    border-left-width: 4px !important;
}

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

.form-control:focus,
.form-select:focus {
    border-color: var(--bg-primary-violet);
    box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25);
}

/* Table */
.table-dark-graphite thead {
    background-color: var(--text-dark-graphite);
    color: var(--text-white);
}

.table-dark-graphite th,
.table-dark-graphite td {
    border-color: #495057;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: var(--bg-lavender-light);
    color: var(--text-dark-graphite);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25);
    z-index: 2;
}

.accordion-item:first-of-type .accordion-button {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.accordion-item:last-of-type .accordion-button.collapsed {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.accordion-item:last-of-type .accordion-collapse {
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Cookie Banner */
#cookie-banner {
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

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

/* Max Width Utilities */
.max-width-800 {
    max-width: 800px;
}
.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);
}

