/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #1a0b2e;
  color: #f3e8ff;
  line-height: 1.6;
  padding-top: 60px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; color: #f3e8ff; }
h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; font-size: 1.125rem; color: #d1c4e9; }
a { color: #c4b5fd; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #8b5cf6; text-decoration: underline; }

/* Layout Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; position: relative; }
.row { display: flex; flex-wrap: wrap; margin: 0 -0.75rem; }
.col { flex: 1; padding: 0 0.75rem; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 0.75rem; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 0.75rem; }
.section { padding: 5rem 0; position: relative; overflow: hidden; }

/* Backgrounds */
.bg-dark-brown { background-color: #1a0b2e; color: #f3e8ff; }
.bg-light-violet { background-color: #f3e8ff; color: #1a0b2e; }
.bg-primary-violet { background-color: #8b5cf6; color: #f3e8ff; }
.bg-accent-lavender { background-color: #c4b5fd; color: #1a0b2e; }

/* Text Colors */
.text-white { color: #f3e8ff !important; }
.text-light { color: #d1c4e9 !important; }
.text-dark { color: #1a0b2e !important; }

/* Navbar */
.navbar { padding: 1rem 0; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.navbar-brand { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-link { margin: 0 0.5rem; font-weight: 500; position: relative; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: #8b5cf6; transition: width 0.3s; }
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #8b5cf6 !important; text-decoration: none; }

/* Buttons */
.btn { display: inline-block; padding: 0.875rem 1.75rem; border-radius: 4px; font-weight: 600; text-align: center; cursor: pointer; transition: all 0.3s ease; border: 2px solid transparent; font-size: 1rem; letter-spacing: 0.5px; }
.btn:focus { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.5); }

.btn-primary {
  background-color: #8b5cf6;
  color: #f3e8ff;
  border-color: #8b5cf6;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline-light {
  background-color: transparent;
  color: #f3e8ff;
  border-color: #f3e8ff;
}
.btn-outline-light:hover, .btn-outline-light:focus {
  background-color: #f3e8ff;
  color: #1a0b2e;
  border-color: #f3e8ff;
  text-decoration: none;
}

/* Cards */
.card {
  background: #2d1b4e;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f3e8ff;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
  border-color: #8b5cf6;
}
.card-light {
  background: #f3e8ff;
  color: #1a0b2e;
  border: none;
}
.card-light h3, .card-light p { color: #1a0b2e; }
.card-light:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }

/* Hero Section with Diagonal Cut */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 100%);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  padding-bottom: 10rem;
}
.hero-content { max-width: 600px; z-index: 2; }
.hero-image { position: absolute; right: 0; top: 0; bottom: 0; width: 50%; background: linear-gradient(45deg, #8b5cf6, #c4b5fd); opacity: 0.2; clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%); }

/* Staggered Grid */
.staggered-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.staggered-grid .card:nth-child(odd) { transform: translateY(20px); }
.staggered-grid .card:nth-child(even) { transform: translateY(-20px); }

/* Forms */
.form-control {
  background-color: #2d1b4e;
  border: 1px solid #8b5cf6;
  color: #f3e8ff;
  padding: 0.75rem;
  border-radius: 4px;
  width: 100%;
  margin-bottom: 1rem;
}
.form-control:focus {
  background-color: #2d1b4e;
  color: #f3e8ff;
  border-color: #c4b5fd;
  box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25);
}
label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #c4b5fd; }

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #2d1b4e;
  padding: 1.5rem;
  z-index: 9999;
  border-top: 3px solid #8b5cf6;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
#cookie-banner p { margin: 0; color: #f3e8ff; max-width: 600px; }
#cookie-banner .btn { margin: 0 0.5rem; padding: 0.5rem 1rem; font-size: 0.9rem; }

/* Animation Classes */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Accessibility */
:focus-visible { outline: 3px solid #8b5cf6; outline-offset: 2px; }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .col-md-6, .col-md-4 { flex: 0 0 100%; max-width: 100%; }
  .hero-section { clip-path: none; min-height: auto; padding: 4rem 0 6rem 0; }
  .hero-image { display: none; }
  .staggered-grid .card:nth-child(odd), .staggered-grid .card:nth-child(even) { transform: none; }
  #cookie-banner { flex-direction: column; text-align: center; }
}
.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);
}

