/* ============================================
   EDUCERE — Design System & Global Styles
   Font: Fraunces (display) + Plus Jakarta Sans (body)
   Palette: Deep Teal #0D4F5C | Gold #E8A030 | Cream #F9F5EE | Ink #1A1A2E
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;0,9..144,900;1,9..144,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── CSS Variables ── */
:root {
  --teal:       #0D4F5C;
  --teal-light: #1A7A8A;
  --teal-muted: #2A9BAE;
  --gold:       #E8A030;
  --gold-light: #F5C060;
  --cream:      #F9F5EE;
  --cream-dark: #EDE8DF;
  --ink:        #1A1A2E;
  --ink-soft:   #3D3D5C;
  --white:      #FFFFFF;
  --gray-100:   #F4F4F8;
  --gray-200:   #E2E2EA;
  --gray-500:   #8888AA;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 3px rgba(13,79,92,.08), 0 1px 2px rgba(13,79,92,.04);
  --shadow-md:  0 4px 16px rgba(13,79,92,.12), 0 2px 6px rgba(13,79,92,.06);
  --shadow-lg:  0 12px 40px rgba(13,79,92,.18), 0 4px 12px rgba(13,79,92,.08);
  --shadow-gold:0 4px 20px rgba(232,160,48,.30);

  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
  --max-w:      1160px;
  --header-h:   68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Typography ── */
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.18; }
h1 { font-size: clamp(2rem,5vw,3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem,3.5vw,2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem,2vw,1.5rem); font-weight: 700; }
p  { font-size: 1rem; color: var(--ink-soft); }

/* ── Layout Utilities ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section   { padding: 80px 0; }
.section--alt  { background: var(--white); }
.section--dark { background: var(--teal); color: var(--cream); }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media(max-width:900px){ .grid-3,.grid-4 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:600px){ .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--gold); color: var(--ink);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(232,160,48,.42); }
.btn-secondary {
  background: transparent; color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-secondary:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,.15); color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.badge--teal  { background: rgba(13,79,92,.1); color: var(--teal); }
.badge--gold  { background: rgba(232,160,48,.15); color: #8B5E10; }
.badge--green { background: #E6F9F0; color: #1A7A50; }

/* ── Cards ── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-200);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__body { padding: 24px; }
.card__footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); background: var(--gray-100); }

/* ── Tag Pills ── */
.tag-pill {
  display: inline-block; padding: 3px 12px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600;
  background: var(--cream-dark); color: var(--ink-soft);
}

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal-muted); margin-bottom: 12px;
  display: block;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p  { max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

/* ── Progress Bar ── */
.progress-bar {
  height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden;
}
.progress-bar__fill {
  height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-muted));
  border-radius: 3px; transition: width 0.6s ease;
}

/* ── AdSense Slots ── */
.ad-slot {
  text-align: center; padding: 16px 0; min-height: 90px;
  border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100); margin: 32px 0;
}
.ad-slot--sidebar { min-height: 250px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); }
.ad-slot--leaderboard { min-height: 90px; }
.ad-slot label {
  display: block; font-size: 0.7rem; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes pulse-gold {
  0%,100% { box-shadow: var(--shadow-gold); }
  50%      { box-shadow: 0 6px 30px rgba(232,160,48,.55); }
}
@keyframes spin { to { transform: rotate(360deg); } }
.animate-in { animation: fadeInUp 0.5s ease both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* ── Accessibility ── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
