/* Global Variables */
:root {
    --bg-milk: #FFF8F0;
    --text-dark-burgundy: #4A001F;
    --bg-cream-pink: #F5E6D3;
    --btn-burgundy: #8B003D;
    --border-cream: #E8DCC8;
}

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

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

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

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

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

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

/* Border Utilities */
.border-cream {
    border-color: var(--border-cream) !important;
}

.border-burgundy {
    border-color: var(--btn-burgundy) !important;
}

/* Button Styles */
.btn-burgundy {
    background-color: var(--btn-burgundy);
    border-color: var(--btn-burgundy);
    color: #FFFFFF;
}

.btn-burgundy:hover,
.btn-burgundy:focus,
.btn-burgundy:active {
    background-color: #6d0031;
    border-color: #6d0031;
    color: #FFFFFF;
    box-shadow: none;
}

.btn-burgundy:disabled {
    background-color: var(--btn-burgundy);
    border-color: var(--btn-burgundy);
    opacity: 0.65;
    color: #FFFFFF;
}

.btn-outline-burgundy {
    background-color: transparent;
    border-color: var(--btn-burgundy);
    color: var(--btn-burgundy);
}

.btn-outline-burgundy:hover,
.btn-outline-burgundy:focus,
.btn-outline-burgundy:active {
    background-color: var(--btn-burgundy);
    border-color: var(--btn-burgundy);
    color: #FFFFFF;
    box-shadow: none;
}

/* Navbar & Links */
.navbar-brand {
    font-size: 1.25rem;
}

.nav-link {
    color: var(--text-dark-burgundy);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--btn-burgundy) !important;
    text-decoration: underline;
}

a.text-dark-burgundy {
    text-decoration: underline;
}

a.text-dark-burgundy:hover {
    color: var(--btn-burgundy) !important;
    text-decoration-thickness: 2px;
}

/* Forms & Inputs */
.form-control {
    border: 1px solid #ced4da;
    padding: 0.75rem;
}

.form-control:focus {
    border-color: var(--btn-burgundy);
    box-shadow: 0 0 0 0.2rem rgba(139, 0, 61, 0.25);
}

/* Cards */
.card {
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

/* Accordion */
.accordion-button {
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bg-cream-pink);
    color: var(--text-dark-burgundy);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(139, 0, 61, 0.25);
    border-color: var(--btn-burgundy);
}

.accordion-body {
    background-color: var(--bg-milk);
}

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

/* Accessibility Focus States */
*:focus-visible {
    outline: 2px solid var(--btn-burgundy);
    outline-offset: 2px;
}

/* Animation for scroll (Subtle Fade-in) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Apply animation to sections if needed via JS intersection observer, 
   or simple CSS hover/scroll effect. Here we define the class. */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* High Contrast Overrides for Dark Sections */
.bg-burgundy .text-white,
.bg-burgundy .text-white-50 {
    opacity: 1 !important;
    color: #FFFFFF !important;
}

.bg-burgundy a {
    color: #FFFFFF;
    text-decoration: underline;
}

.bg-burgundy a:hover {
    color: #F5E6D3;
}

/* Ensure buttons inside dark sections maintain contrast */
.bg-burgundy .btn-burgundy {
    background-color: #F5E6D3;
    color: var(--text-dark-burgundy);
    border-color: #F5E6D3;
}

.bg-burgundy .btn-burgundy:hover {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
}

.bg-burgundy .btn-outline-burgundy {
    border-color: #FFFFFF;
    color: #FFFFFF;
    background-color: transparent;
}

.bg-burgundy .btn-outline-burgundy:hover {
    background-color: #FFFFFF;
    color: var(--text-dark-burgundy);
}

/* Image Styling */
img[data-ai-prompt] {
    object-fit: cover;
    width: 100%;
    height: auto;
    background-color: var(--bg-cream-pink);
    border-radius: 0.375rem;
}
.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);
}

