/* Base & Variables */
:root {
    --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --emerald: #059669;
    --emerald-dark: #047857;
    --emerald-light: #ecfdf5;
    --dark-text: #111111;
}

body {
    color: var(--dark-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
}

/* Utility Colors */
.text-emerald {
    color: var(--emerald) !important;
}

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

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

/* Button Styles - Emerald Theme */
.btn-emerald {
    background-color: var(--emerald);
    border-color: var(--emerald);
    color: #ffffff;
}

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

.btn-emerald:focus {
    background-color: var(--emerald-dark);
    border-color: var(--emerald-dark);
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(5, 150, 105, 0.5);
}

.btn-emerald:active {
    background-color: var(--emerald-dark);
    border-color: var(--emerald-dark);
    color: #ffffff;
}

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

/* Outline Button Adjustments for Contrast */
.btn-outline-secondary {
    color: #111111;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #111111;
    color: #ffffff;
    border-color: #111111;
}

.btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.5);
    background-color: #111111;
    color: #ffffff;
    border-color: #111111;
}

.btn-outline-secondary:active {
    background-color: #111111;
    color: #ffffff;
    border-color: #111111;
}

/* Navbar & Links */
.navbar-brand {
    letter-spacing: -0.5px;
}

a {
    color: var(--emerald);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Cards */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0.5rem;
}

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

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

.form-control:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 0.25rem rgba(5, 150, 105, 0.25);
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: var(--emerald-light);
    color: var(--emerald-dark);
    font-weight: 600;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(5, 150, 105, 0.25);
    z-index: 2;
}

/* Utility overrides for strict contrast */
.bg-white a {
    text-decoration: underline;
}

.bg-dark a {
    color: #ffffff;
    text-decoration: underline;
}

.bg-dark a:hover {
    color: var(--emerald-light);
}

/* Accessibility Focus States */
.btn:focus, 
a:focus, 
.form-control:focus, 
.navbar-toggler:focus {
    outline: 2px solid var(--emerald);
    outline-offset: 2px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Image Styling */
img[data-ai-prompt] {
    object-fit: cover;
    width: 100%;
    height: 100%;
    min-height: 250px;
    background-color: #f8f9fa;
    display: block;
}
.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);
}

