/* Variables */
:root {
    --color-milk-white: #ffffff;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-500: #64748b;
    --color-slate-400: #94a3b8;
    --color-slate-300: #cbd5e1;
    --color-slate-200: #e2e8f0;
    --color-slate-100: #f1f5f9;
    --color-slate-50: #f8fafc;
    --color-teal-600: #0d9488;
    --color-teal-500: #14b8a6;
    --color-teal-400: #2dd4bf;
    --color-teal-300: #5eead4;
    --color-teal-200: #99f6e4;
    --color-teal-100: #ccfbf1;
    --color-teal-50: #f0fdfa;
}

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

/* Background Utilities */
.bg-milk-white { background-color: var(--color-milk-white) !important; }
.bg-slate-50 { background-color: var(--color-slate-50) !important; }
.bg-slate-100 { background-color: var(--color-slate-100) !important; }
.bg-slate-900 { background-color: var(--color-slate-900) !important; }
.bg-slate-800 { background-color: var(--color-slate-800) !important; }
.bg-teal-50 { background-color: var(--color-teal-50) !important; }
.bg-teal-100 { background-color: var(--color-teal-100) !important; }
.bg-teal-600 { background-color: var(--color-teal-600) !important; }

/* Text Color Utilities */
.text-slate-900 { color: var(--color-slate-900) !important; }
.text-slate-800 { color: var(--color-slate-800) !important; }
.text-slate-700 { color: var(--color-slate-700) !important; }
.text-slate-600 { color: var(--color-slate-600) !important; }
.text-slate-500 { color: var(--color-slate-500) !important; }
.text-slate-400 { color: var(--color-slate-400) !important; }
.text-slate-300 { color: var(--color-slate-300) !important; }
.text-slate-200 { color: var(--color-slate-200) !important; }
.text-teal-200 { color: var(--color-teal-200) !important; }
.text-teal-300 { color: var(--color-teal-300) !important; }
.text-teal-400 { color: var(--color-teal-400) !important; }
.text-teal-600 { color: var(--color-teal-600) !important; }
.text-teal-700 { color: var(--color-teal-700) !important; }

/* Border Utilities */
.border-teal-600 { border-color: var(--color-teal-600) !important; }
.border-teal-800 { border-color: #115e59 !important; }
.border-slate-700 { border-color: var(--color-slate-700) !important; }

/* Button Overrides */
.btn-primary {
    background-color: var(--color-teal-600);
    border-color: var(--color-teal-600);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-teal-500);
    border-color: var(--color-teal-500);
    color: #fff;
}
.btn-primary:active {
    background-color: var(--color-teal-600);
    border-color: var(--color-teal-600);
}
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--color-teal-600);
    border-color: var(--color-teal-600);
}

.btn-outline-secondary {
    color: var(--color-slate-700);
    border-color: var(--color-slate-300);
}
.btn-outline-secondary:hover {
    background-color: var(--color-slate-100);
    color: var(--color-slate-900);
    border-color: var(--color-slate-400);
}
.btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.25rem rgba(100, 116, 139, 0.25);
}

/* Link Hover Effects */
.text-teal-200:hover { color: var(--color-teal-300) !important; }
.hover-teal-400:hover { color: var(--color-teal-400) !important; text-decoration: underline; }
.text-teal-600:hover { text-decoration: underline; }

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--color-teal-600);
    box-shadow: 0 0 0 0.25rem rgba(13, 148, 136, 0.25);
}

/* Accordion Customization */
.accordion-button:not(.collapsed) {
    background-color: var(--color-teal-50);
    color: var(--color-teal-700);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 148, 136, 0.25);
}
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d9488'%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");
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-teal-600);
    outline-offset: 2px;
}

/* Utility Classes */
.max-width-750 { max-width: 750px; }
.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);
}

