/* Global & Resets */
:root {
    --graphite: #2d2d2d;
    --milk: #f5f5f5;
    --lavender: #e6e6fa;
    --purple: #9370db;
}

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

/* Typography & Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Layout Utilities */
.container { max-width: 1200px; }

/* Navigation */
.navbar {
    background-color: var(--graphite) !important;
    border-bottom: 1px solid var(--purple);
}

.navbar-brand {
    color: var(--lavender) !important;
}

.nav-link {
    color: var(--milk) !important;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link:focus {
    color: var(--purple) !important;
}

/* Hero Section - Diagonal Split */
.hero-section {
    background-color: var(--graphite);
    color: var(--milk);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 8rem;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-section h1 {
    color: var(--lavender);
    font-weight: 800;
}

.hero-section p {
    color: var(--milk);
    font-size: 1.125rem;
}

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

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #7a5fc4;
    border-color: #7a5fc4;
    color: white;
    box-shadow: 0 4px 12px rgba(147, 112, 219, 0.4);
}

.btn-outline-light {
    border-color: var(--milk);
    color: var(--milk);
}

.btn-outline-light:hover, .btn-outline-light:focus, .btn-outline-light:active {
    background-color: var(--milk);
    color: var(--graphite);
    border-color: var(--milk);
}

/* Cards & Sections */
.lavender-card {
    background-color: var(--lavender);
    border: 2px solid var(--graphite);
    color: var(--graphite);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.lavender-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(45, 45, 45, 0.15);
}

.lavender-card h3 {
    color: var(--graphite);
}

.section-alt {
    background-color: white;
}

/* Footer */
footer {
    background-color: var(--graphite);
    border-top: 4px solid var(--purple);
}

footer a {
    color: var(--lavender) !important;
}

footer a:hover {
    color: white !important;
    text-decoration: underline;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--graphite);
    color: var(--milk);
    border: 1px solid var(--purple);
    padding: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#cookie-banner p {
    margin: 0;
    color: var(--milk);
}

#cookie-banner .btn-group {
    display: flex;
    gap: 10px;
}

/* Forms */
.form-control {
    border: 1px solid #ccc;
}

.form-control:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 0.25rem rgba(147, 112, 219, 0.25);
}

/* Accessibility & Focus */
*:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

/* Image Placeholders */
img[data-ai-prompt] {
    background-color: #ddd;
    border-radius: 4px;
    width: 100%;
    height: auto;
    display: block;
}

/* Utility for sticky CTA area */
.sticky-cta-wrapper {
    position: sticky;
    bottom: 20px;
    z-index: 100;
    pointer-events: none;
}

.sticky-cta-wrapper .btn {
    pointer-events: auto;
}
.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);
}

