/* ============================================================================
   Inspire & Educate — Design System
   Warm, hopeful, editorial. Coral/blush with deep wine accents.
   ========================================================================== */

:root {
  /* Color palette */
  --cream: #FAF3EC;
  --cream-deep: #F4E8DC;
  --blush: #F8D5C8;
  --coral: #E8857B;
  --coral-deep: #D4634F;
  --wine: #5C2238;
  --wine-soft: #7A3850;
  --ink: #2A1820;
  --ink-soft: #4A3640;
  --gold: #C89B5C;

  /* Typography */
  --font-display: 'DM Serif Display', 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Layout */
  --max-width: 1280px;
  --content-width: 720px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Decorative grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--wine);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--coral-deep);
  font-weight: 500;
  margin-bottom: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--coral-deep);
}

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

/* ============================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 243, 236, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(92, 34, 56, 0.08);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--wine);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--coral);
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex: 0 0 28px;
}

.nav-logo-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--cream);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--coral-deep);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--wine);
}

.nav-cta {
  background: var(--wine);
  color: var(--cream) !important;
  padding: 0.65rem 1.4rem;
  border-radius: 100px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
}

/* ============================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.8rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--wine);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--coral-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(92, 34, 56, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--wine);
  border: 1px solid var(--wine);
}

.btn-secondary:hover {
  background: var(--wine);
  color: var(--cream);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ============================================================================
   Layout helpers
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  z-index: 2;
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
}

main {
  padding-top: 80px;
}

/* ============================================================================
   Homepage overrides
   ========================================================================== */
body .hero::before {
  background-image: url('/logo-flower.svg'), radial-gradient(circle at 40% 40%, var(--blush) 0%, var(--cream) 70%) !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: center, center !important;
  background-size: 54%, cover !important;
  opacity: 0.72 !important;
}

.hero-stat-label {
  display: none !important;
}

.hero-stat-card {
  position: relative !important;
  overflow: hidden !important;
}

.hero-stat-card::before {
  display: none !important;
}

/* ============================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--wine);
  color: var(--cream);
  padding: 5rem 0 2.5rem;
  position: relative;
  z-index: 2;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer h4 {
  color: var(--blush);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.footer-brand p {
  color: rgba(250, 243, 236, 0.7);
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: 0.6rem;
}

.footer-list a {
  color: rgba(250, 243, 236, 0.7);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: var(--blush);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 243, 236, 0.15);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(250, 243, 236, 0.5);
  font-family: var(--font-mono);
}

/* ============================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .nav { padding: 1.25rem 1.5rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .container { padding: 0 1.5rem; }
  .section { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; }
}