/* Base Variables */
:root {
    --bg-sand: #F5F0E8;
    --text-dark: #2D2A26;
    --bg-bordeaux: #722F37;
    --bg-dark-brown: #4A1C22;
    --border-color: #2D2A26;
}

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

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

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

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

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

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

.text-white {
    color: #ffffff !important;
}

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

.btn-bordeaux:hover,
.btn-bordeaux:focus {
    background-color: var(--bg-dark-brown);
    border-color: var(--bg-dark-brown);
    color: #ffffff;
}

.btn-bordeaux:active {
    background-color: #5a252c;
    border-color: #5a252c;
    color: #ffffff;
}

/* Navbar */
.navbar-light .navbar-brand {
    color: var(--text-dark);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-dark);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--bg-bordeaux);
}

/* Cards */
.card {
    border-radius: 0.5rem;
}

.card-title {
    color: var(--text-dark);
}

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

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: var(--bg-bordeaux);
    color: #ffffff;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(114, 47, 55, 0.25);
}

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

.accordion-body {
    color: var(--text-dark);
}

.accordion-item.bg-transparent .accordion-body {
    color: #ffffff;
}

/* Forms */
.form-control:focus {
    border-color: var(--bg-bordeaux);
    box-shadow: 0 0 0 0.25rem rgba(114, 47, 55, 0.25);
}

/* Utility Classes */
.min-vh-75 {
    min-height: 75vh;
}

.border-light {
    border-color: #f8f9fa !important;
}

/* Accessibility Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--bg-bordeaux);
    outline-offset: 2px;
}

/* Link Colors */
a {
    color: var(--bg-bordeaux);
    text-decoration: underline;
}

a:hover {
    color: var(--bg-dark-brown);
}

a.text-white:hover {
    color: #e0e0e0;
}

/* Blockquote */
.blockquote-footer {
    color: var(--text-dark);
}

/* Timeline (Custom simple styling) */
.timeline {
    border-left: 2px solid rgba(255,255,255,0.3);
    padding-left: 1.5rem;
}

/* Cookie Banner Specifics */
#cookie-banner {
    background-color: var(--bg-bordeaux);
}

#cookie-banner .btn-light {
    background-color: #ffffff;
    color: var(--text-dark) !important;
    border-color: #ffffff;
}

#cookie-banner .btn-light:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

#cookie-banner .btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ffffff;
}

/* High Contrast Enforcement */
.bg-dark-brown .text-white,
.bg-bordeaux .text-white {
    color: #ffffff !important;
    opacity: 1;
}

.bg-dark-brown .text-white-50,
.bg-bordeaux .text-white-50 {
    color: #ffffff !important;
    opacity: 0.7;
}

.bg-dark-brown .text-muted,
.bg-bordeaux .text-muted {
    color: #e0e0e0 !important;
}

/* Ensure text visibility on light backgrounds */
.bg-sand .text-dark,
.bg-white .text-dark {
    color: var(--text-dark) !important;
}

/* Button Hover States - Safety */
.btn-outline-light:hover {
    background-color: #ffffff;
    color: var(--text-dark) !important;
    border-color: #ffffff;
}

.btn-outline-light:focus {
    background-color: #ffffff;
    color: var(--text-dark);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5);
}

/* Card Text Safety */
.bg-white.text-dark,
.bg-white .text-dark {
    color: var(--text-dark) !important;
}

/* Navbar Toggler */
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(45, 42, 38, 0.25);
}

/* Scrollbar (Webkit) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-sand);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-bordeaux);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-dark-brown);
}
.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);
}

