/*
 * sheco-base.css
 * Shared variables, layout utilities, and components for custom Sheco page templates.
 * Used by all page-templates/*.php — do NOT load on the homepage (page-home-edu.php uses its own inline styles).
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Open+Sans:wght@400;500;600&display=swap');

/* ── Design tokens ───────────────────────────────────── */
:root {
  --sp-primary:      #1E6937;
  --sp-primary-mid:  #2d8e50;
  --sp-secondary:    #365951;
  --sp-dark:         #192c27;
  --sp-bg:           #f0f9f4;
  --sp-offwhite:     #f9fcfa;
  --sp-accent:       #FFC107;
  --sp-orange:       #FF6B35;
  --sp-white:        #ffffff;
  --sp-muted:        #666666;
  --sp-text:         #333333;
  --sp-shadow-green: 0 10px 40px rgba(30,105,55,.15);
  --sp-radius:       16px;
  --sp-trans:        .3s ease;
}

/* ── Scoped reset ────────────────────────────────────── */
.sp-page *,
.sp-page *::before,
.sp-page *::after { box-sizing: border-box; margin: 0; padding: 0; }

.sp-page {
  font-family: 'Open Sans', sans-serif;
  color: var(--sp-text);
  overflow-x: hidden;
}
.sp-page h1, .sp-page h2, .sp-page h3, .sp-page h4 {
  font-family: 'Montserrat', sans-serif;
}
.sp-page a   { text-decoration: none; }
.sp-page img { max-width: 100%; display: block; }

/* ── Layout ──────────────────────────────────────────── */
.sp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Badge (edu-tag equivalent) ──────────────────────── */
.sp-badge {
  display: inline-block;
  background: var(--sp-bg);
  color: var(--sp-primary);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(30,105,55,.2);
  margin-bottom: 14px;
}

/* ── Buttons ─────────────────────────────────────────── */
.sp-btn-pri {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--sp-accent), var(--sp-orange));
  color: #fff;
  padding: 15px 32px;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--sp-trans);
  box-shadow: 0 8px 24px rgba(255,193,7,.4);
}
.sp-btn-pri:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(255,107,53,.45);
  color: #fff;
}

.sp-btn-sec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  padding: 15px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,.45);
  transition: var(--sp-trans);
}
.sp-btn-sec:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.9);
  transform: translateY(-2px);
  color: #fff;
}

/* ── Section heading ─────────────────────────────────── */
.sp-section-head { text-align: center; margin-bottom: 52px; }

.sp-section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--sp-dark);
  line-height: 1.25;
  margin-bottom: 14px;
}
.sp-section-title span { color: var(--sp-primary); }

.sp-section-desc {
  font-size: 16px;
  color: var(--sp-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Scroll animations ───────────────────────────────── */
.aos {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.aos.d1 { transition-delay: .10s; }
.aos.d2 { transition-delay: .20s; }
.aos.d3 { transition-delay: .30s; }
.aos.d4 { transition-delay: .40s; }
.aos.d5 { transition-delay: .50s; }
.aos.in { opacity: 1; transform: translateY(0); }

/* ── Shared keyframes ────────────────────────────────── */
@keyframes sp-fadeup  { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes sp-rotate  { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes sp-rise    { 0%{transform:translateY(0);opacity:.1} 50%{opacity:.05} 100%{transform:translateY(-110vh);opacity:0} }

/* ── CTA Section (shared, homepage-identical) ─────────── */
.cta-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, var(--sp-primary) 0%, var(--sp-dark) 100%);
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -70px; right: -70px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,193,7,.18);
  color: var(--sp-accent);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  border: 1px solid rgba(255,193,7,.35);
}
.cta-title {
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}
.cta-desc {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  line-height: 1.6;
}
.cta-form {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 20px;
}
.cta-inp {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 100px;
  font-size: 15px;
  outline: none;
  font-family: inherit;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.cta-inp::placeholder { color: rgba(255,255,255,.55) !important; opacity: 1; }
.cta-inp:focus { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.18) !important; }
.cta-inp:-webkit-autofill,
.cta-inp:-webkit-autofill:hover,
.cta-inp:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  -webkit-box-shadow: 0 0 0 40px #2d6b47 inset !important;
}
.cta-btn {
  background: linear-gradient(90deg, var(--sp-accent), var(--sp-orange));
  color: #fff;
  border: none;
  padding: 15px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--sp-trans);
  font-family: inherit;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,53,.4); }
.cta-note { font-size: 13px; color: rgba(255,255,255,.55); }
.cta-note em { color: var(--sp-accent); font-style: normal; }
@media (max-width: 640px) { .cta-form { flex-direction: column; } }

