/* ==========================================================================
   Kontritok.org - Base Design System & Styling
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,600;0,700;0,800;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Core Brand Colors (Matching Kontritok Mobile App) */
  --color-primary: #E67E22;            /* Orange Terre de Sienne (Signature) */
  --color-primary-hover: #D35400;
  --color-primary-light: #FAD7A0;
  --color-primary-glow: rgba(230, 126, 34, 0.25);

  --color-secondary: #27AE60;          /* Vert Émeraude */
  --color-secondary-light: #E8F2EB;
  
  --color-gold: #D4AF37;               /* Or Ambré / Badges & Streaks */
  --color-amber: #FFBF00;              /* Ambre Braise */
  --color-ochre: #CC7722;              /* Ocre Terre */

  /* Neutral & Dark Palette */
  --color-bg: #FDFCFB;                /* Soft Off-White */
  --color-bg-warm: #FFF5E6;            /* Light Parchment Accent */
  --color-surface: #FFFFFF;
  --color-surface-hover: #F8F9FA;
  
  --color-text-headline: #1C1C1E;      /* Charcoal Headline */
  --color-text-body: #3A3A3C;          /* Muted Dark Body */
  --color-text-subtle: #6C757D;        /* Secondary Gray */

  --color-dark-bg: #121212;
  --color-dark-surface: #1E100B;
  --color-night-wood: #2C1E16;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(230, 126, 34, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);

  /* Typography */
  --font-heading: 'EB Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Spacing & Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode {
  --color-bg: #12100E;
  --color-bg-warm: #1E1813;
  --color-surface: #1C1714;
  --color-surface-hover: #26201C;
  --color-text-headline: #FDFCFB;
  --color-text-body: #E2DCD5;
  --color-text-subtle: #A39B92;
  --glass-bg: rgba(28, 23, 20, 0.85);
  --glass-border: rgba(230, 126, 34, 0.3);
  background-color: var(--color-bg) !important;
  color: var(--color-text-body) !important;
}

body.dark-mode section {
  background-color: var(--color-bg) !important;
}

body.dark-mode .feature-card,
body.dark-mode .pricing-card,
body.dark-mode .testimonial-card,
body.dark-mode .partner-card,
body.dark-mode .faq-item,
body.dark-mode .modal-card {
  background-color: var(--color-surface) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--color-text-body) !important;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select,
body.dark-mode .faq-search-input {
  background-color: #26201C !important;
  color: #FDFCFB !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder,
body.dark-mode .faq-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode .faq-question,
body.dark-mode .pricing-price {
  color: var(--color-text-headline) !important;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text-headline);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  text-align: center;
  margin-bottom: 0.75rem;
}

p {
  font-size: 1.1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Styling */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-subtitle {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem auto;
  color: var(--color-text-subtle);
  font-size: 1.15rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--color-bg-warm);
  border: 1px solid var(--color-primary-light);
  color: var(--color-primary-hover);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
