/* Base Variables & Reset */
:root {
  --color-bg: #F5F5DC;
  --color-text: #2C3E2C;
  --color-accent: #D4AF37;
  --color-dark: #1A1A1A;
  --color-dark-brown: #2C3E2C;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font-stack);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Typography */
.text-gold { color: var(--color-accent) !important; }
.bg-dark-brown { background-color: var(--color-dark-brown) !important; }

h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.3;
}

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

a:hover {
  color: var(--color-accent);
}

/* Layout & Sections */
.section-spacer {
  padding: 4rem 0;
}

.bg-olive-light {
  background-color: var(--color-bg);
}

.bg-olive-dark {
  background-color: var(--color-dark-brown);
  color: #fff;
}

.bg-olive-dark h1, .bg-olive-dark h2, .bg-olive-dark h3, .bg-olive-dark h4, .bg-olive-dark h5, .bg-olive-dark h6,
.bg-olive-dark p, .bg-olive-dark li, .bg-olive-dark span {
  color: #fff;
}

.bg-olive-dark a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Cards */
.card {
  border: 1px solid rgba(44, 62, 44, 0.1);
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

/* Buttons */
.btn-gold {
  background-color: var(--color-accent);
  color: var(--color-dark);
  border: 2px solid var(--color-accent);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-gold:hover, .btn-gold:focus {
  background-color: #B5952F;
  border-color: #B5952F;
  color: var(--color-dark);
  transform: scale(1.02);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  font-weight: 600;
}

.btn-outline-gold:hover, .btn-outline-gold:focus {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

/* Form Elements */
.form-control {
  background-color: #fff;
  border: 1px solid var(--color-text);
  color: var(--color-text);
}

.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
  color: var(--color-text);
}

/* Images & Illustrations */
.img-placeholder-gold {
  border: 2px solid var(--color-accent);
  background-color: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-weight: bold;
}

/* Steps / Process */
.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--color-accent);
  color: var(--color-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

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

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-dark);
  color: #fff;
  padding: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top: 3px solid var(--color-accent);
}

@media (min-width: 768px) {
  #cookie-banner {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 2rem;
  }
}

#cookie-banner p {
  color: #fff;
  margin-bottom: 10px;
  margin-right: 0;
}

@media (min-width: 768px) {
  #cookie-banner p {
    margin-bottom: 0;
    margin-right: 1rem;
  }
}

#cookie-banner .btn {
  white-space: nowrap;
  margin: 2px;
}

/* Utility for dark text on light bg (ensuring high contrast) */
.text-high-contrast-dark {
  color: var(--color-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);
}

