/**
 * Curve CMS — Design Tokens
 * These override Bootstrap 5.3 defaults.
 * Import this file after Bootstrap CSS in every page.
 */

:root {

  /* ─── Color Palette ─── */
  --curve-bg:           #F8F7F4;   /* Warm off-white background */
  --curve-dark:         #1A1A1A;   /* Near-black text */
  --curve-green:        #2D6A4F;   /* Primary accent — deep forest green */
  --curve-green-light:  #40916C;   /* Hover state for green */
  --curve-tan:          #C9B99A;   /* Secondary accent — warm tan */
  --curve-white:        #FFFFFF;
  --curve-muted:        #6B6B6B;   /* Secondary text */
  --curve-border:       #E5E2DC;   /* Subtle borders and dividers */

  /* ─── Bootstrap Overrides ─── */
  --bs-body-bg:         var(--curve-bg);
  --bs-body-color:      var(--curve-dark);
  --bs-primary:         var(--curve-green);
  --bs-border-color:    var(--curve-border);
  --bs-border-radius-pill: 100px;

  /* ─── Typography ─── */
  --curve-font-display: 'Playfair Display', Georgia, serif;
  --curve-font-body:    'Inter', system-ui, sans-serif;

  /* ─── Type Scale ─── */
  --curve-text-hero:    clamp(2.8rem, 6vw, 4.5rem);
  --curve-text-h2:      clamp(1.8rem, 3vw, 2.5rem);
  --curve-text-h3:      1.25rem;
  --curve-text-body:    1rem;
  --curve-text-small:   0.875rem;
  --curve-text-label:   0.75rem;

  /* ─── Spacing ─── */
  --curve-section-y:    100px;
  --curve-section-y-sm: 60px;

  /* ─── Shadows ─── */
  --curve-shadow-card:  0 8px 40px rgba(0, 0, 0, 0.06);
  --curve-shadow-nav:   0 1px 0 var(--curve-border);

  /* ─── Border Radius ─── */
  --curve-radius-card:  16px;
  --curve-radius-btn:   100px;
  --curve-radius-badge: 100px;
}

/* ─── Base ─── */
body {
  font-family: var(--curve-font-body);
  background-color: var(--curve-bg);
  color: var(--curve-dark);
}

/* ─── Display / Headings ─── */
.curve-display {
  font-family: var(--curve-font-display);
  font-size: var(--curve-text-hero);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1, h2, h3, .curve-heading {
  font-family: var(--curve-font-display);
}

/* ─── Buttons ─── */
.btn-curve {
  background-color: var(--curve-green);
  color: var(--curve-white);
  font-family: var(--curve-font-body);
  font-size: var(--curve-text-small);
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--curve-radius-btn);
  border: none;
  transition: background-color 0.2s, transform 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-curve:hover {
  background-color: var(--curve-green-light);
  color: var(--curve-white);
  transform: translateY(-1px);
}

.btn-curve-outline {
  background-color: transparent;
  color: var(--curve-green);
  border: 1.5px solid var(--curve-green);
  font-family: var(--curve-font-body);
  font-size: var(--curve-text-small);
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--curve-radius-btn);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-curve-outline:hover {
  background-color: var(--curve-green);
  color: var(--curve-white);
}

/* ─── Signature: Animated arc underline on .curve-word ─── */
.curve-word {
  position: relative;
  display: inline-block;
  color: var(--curve-green);
}

.curve-arc {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 8px;
  overflow: visible;
}

.curve-arc path {
  stroke: var(--curve-tan);
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawArc 1s ease forwards 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  .curve-arc path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

@keyframes drawArc {
  to { stroke-dashoffset: 0; }
}

/* ─── Section Spacing ─── */
.curve-section {
  padding: var(--curve-section-y) 0;
}

@media (max-width: 768px) {
  .curve-section {
    padding: var(--curve-section-y-sm) 0;
  }
}

/* ─── Eyebrow Labels ─── */
.curve-eyebrow {
  font-family: var(--curve-font-body);
  font-size: var(--curve-text-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--curve-green);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.curve-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background-color: var(--curve-green);
}

/* ─── Cards ─── */
.curve-card {
  background-color: var(--curve-white);
  border: 1px solid var(--curve-border);
  border-radius: var(--curve-radius-card);
  padding: 28px;
  box-shadow: var(--curve-shadow-card);
}

/* ─── Do Better ─── */
.curve-do-better {
  font-family: var(--curve-font-display);
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  color: var(--curve-tan);
  letter-spacing: 0.01em;
}
