/* ===== Brand palette — derived from the RIESW EDUCARE logo ===== */
:root {
  --navy:       #1f2a78;   /* logo wordmark */
  --navy-dark:  #161e57;
  --saffron:    #e07b16;   /* saffron bar */
  --saffron-lt: #f4a03a;
  --green:      #2c6e31;   /* green bar */
  --green-dark: #1f5224;
  --maroon:     #9b3a1b;   /* logo border */

  --ink:        #1c2233;
  --muted:      #5a6275;
  --line:       #e7e9f0;
  --bg:         #ffffff;
  --bg-soft:    #f6f7fb;
  --bg-tint:    #eef1fb;

  --radius:     16px;
  --shadow:     0 10px 30px rgba(31, 42, 120, 0.10);
  --shadow-sm:  0 4px 14px rgba(31, 42, 120, 0.08);
  --container:  1160px;
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; line-height: 1.2; color: var(--navy); margin: 0; }
p { margin: 0 0 1rem; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--saffron); color: #fff; box-shadow: 0 8px 20px rgba(224,123,22,.35); }
.btn-primary:hover { background: var(--saffron-lt); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-light { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand-logo { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { font-weight: 500; color: var(--ink); font-size: 0.97rem; position: relative; }
.main-nav a:not(.nav-cta):hover { color: var(--navy); }
.main-nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--saffron); transition: width .2s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: var(--navy); color: #fff !important; padding: 0.6rem 1.3rem; border-radius: 999px; }
.nav-cta:hover { background: var(--navy-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-media, .impact-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(22,30,87,.93) 0%, rgba(31,42,120,.82) 42%, rgba(31,42,120,.35) 100%);
}
.hero-content { position: relative; color: #fff; max-width: 720px; padding-top: 4rem; padding-bottom: 4rem; }
.eyebrow {
  display: inline-block; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  font-size: .78rem; color: var(--saffron-lt); margin-bottom: 1.1rem;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 1.2rem; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #eef0fb; max-width: 600px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Stats ===== */
.stats { background: var(--navy); margin-top: -1px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: rgba(255,255,255,.14);
}
.stat:nth-child(1), .stat:nth-child(2), .stat:nth-child(3) { grid-column: span 2; }
.stat:nth-child(4), .stat:nth-child(5) { grid-column: span 3; }
.stat { background: var(--navy); padding: 2.4rem 1.6rem; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.stat-num {
  display: block; font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; line-height: 1;
}
.stat-num span { color: var(--saffron-lt); }
.stat-logo { height: 80px; width: auto; max-width: 160px; object-fit: contain; margin-bottom: .2rem; }
.stat-label { display: block; margin-top: .7rem; color: #c3c8e8; font-size: .82rem; line-height: 1.45; }

/* ===== Section helpers ===== */
.section-tag {
  display: inline-block; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  font-size: .76rem; color: var(--saffron); margin-bottom: .9rem;
}
.section-tag.light { color: var(--saffron-lt); }
.section-head { max-width: 660px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.section-lead { color: var(--muted); margin-top: .9rem; font-size: 1.08rem; }

/* ===== About ===== */
.about { padding: 6rem 0; }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: center; }
.about-media img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 4/5; object-fit: cover;
  border-bottom: 6px solid var(--saffron);
}
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1.3rem; }
.about-text p { color: var(--muted); }
.link-arrow { display: inline-block; margin-top: .6rem; font-weight: 600; color: var(--navy); }
.link-arrow:hover { color: var(--saffron); }

/* ===== Focus cards ===== */
.focus { padding: 6rem 0; background: var(--bg-soft); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.card {
  background: #fff; border-radius: var(--radius); padding: 2.4rem 2rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 1.3rem;
}
.icon-saffron { background: #fdeedd; }
.icon-green { background: #e3f0e4; }
.icon-navy { background: var(--bg-tint); }
.card h3 { font-size: 1.25rem; margin-bottom: .8rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ===== Impact banner ===== */
.impact { position: relative; padding: 6.5rem 0; overflow: hidden; }
.impact-media img { width: 100%; height: 100%; object-fit: cover; }
.impact-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(31,82,36,.94) 0%, rgba(44,110,49,.86) 45%, rgba(44,110,49,.4) 100%);
}
.impact-content { position: relative; color: #fff; max-width: 640px; }
.impact-content h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 1.2rem; }
.impact-content p { color: #e9f3ea; }
.impact-stat { margin-top: 1.4rem; font-size: 1.15rem; }
.impact-stat strong { color: #fff; font-size: 1.5rem; font-family: 'Poppins', sans-serif; }

/* ===== Credentials ===== */
.credentials { padding: 6rem 0; }
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-bottom: 2rem; }
.cred {
  background: var(--bg-soft); border-radius: var(--radius); padding: 1.6rem 1.4rem;
  border-left: 4px solid var(--saffron); text-align: left;
}
.cred:nth-child(2) { border-left-color: var(--green); }
.cred:nth-child(3) { border-left-color: var(--navy); }
.cred:nth-child(4) { border-left-color: var(--maroon); }
.cred-key { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.cred-val { display: block; margin-top: .4rem; font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--navy); font-size: 1.02rem; word-break: break-word; }
.cred-note { max-width: 880px; margin: 0 auto; text-align: center; color: var(--muted); }

/* ===== CTA strip ===== */
.cta-strip {
  background: linear-gradient(100deg, var(--saffron) 0%, var(--maroon) 100%);
  padding: 3.5rem 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.9rem); max-width: 720px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: #c8cdec; padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { height: 52px; background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 1.2rem; }
.footer-brand p { color: #aab1da; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.footer-col p { color: #aab1da; margin: 0; }
.footer-col a:hover { color: var(--saffron-lt); }
.footer-bar { border-top: 1px solid rgba(255,255,255,.12); padding: 1.3rem 0; }
.footer-bar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #8a91bf; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: #aab1da; }
.footer-links a:hover { color: var(--saffron-lt); }

/* ===== Vision & Mission ===== */
.vm { padding: 5rem 0; background: var(--bg-soft); }
.vm-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.8rem; align-items: stretch; }
.vm-card { border-radius: var(--radius); padding: 2.6rem 2.4rem; box-shadow: var(--shadow-sm); }
.vm-vision { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; }
.vm-vision h2 { color: #fff; font-size: 1.6rem; margin-bottom: 1rem; }
.vm-vision p { color: #d3d8f3; margin: 0; }
.vm-mission { background: #fff; border: 1px solid var(--line); }
.mission-list { list-style: none; margin: .4rem 0 0; padding: 0; }
.mission-list li { position: relative; padding-left: 1.9rem; margin-bottom: .85rem; color: var(--muted); font-size: .98rem; }
.mission-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
  background: #e3f0e4; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem;
}

/* ===== Card list (programs) ===== */
.card-list { list-style: none; margin: 1.2rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); }
.card-list li { position: relative; padding-left: 1.4rem; margin-bottom: .55rem; color: var(--ink); font-size: .92rem; }
.card-list li::before { content: '›'; position: absolute; left: .2rem; color: var(--saffron); font-weight: 700; }

/* ===== Leadership ===== */
.leaders { padding: 6rem 0; }
.leader-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.leader {
  display: flex; gap: 1.5rem; background: var(--bg-soft); border-radius: var(--radius);
  padding: 2rem; border: 1px solid var(--line);
}
.leader-avatar {
  flex: none; width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--maroon));
  color: #fff; display: grid; place-items: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.5rem;
}
.avatar-green { background: linear-gradient(135deg, var(--green), var(--navy)); }
.leader-body h3 { font-size: 1.2rem; }
.leader-role { display: block; color: var(--saffron); font-weight: 600; font-size: .9rem; margin: .2rem 0 .8rem; }
.leader-body p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ===== Process ===== */
.process { padding: 6rem 0; background: var(--bg-soft); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: step; }
.step {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.8rem;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative;
}
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--navy); color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 1.15rem; margin-bottom: 1rem;
}
.step:nth-child(3n+2) .step-num { background: var(--saffron); }
.step:nth-child(3n) .step-num { background: var(--green); }
.step h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.step p { color: var(--muted); margin: 0; font-size: .94rem; }

/* ===== Why Choose Us ===== */
.why { padding: 6rem 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; background: var(--bg-soft); border-radius: 14px; }
.why-tick {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem; margin-top: .15rem;
}
.why-item p { margin: 0; color: var(--muted); font-size: .96rem; }
.why-item strong { color: var(--ink); }

/* ===== Reach & Partnerships ===== */
.reach { padding: 0 0 6rem; }
.reach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.reach-card { background: var(--bg-tint); border-radius: var(--radius); padding: 2.6rem; }
.reach-card h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.reach-card p { color: var(--muted); }
.reach-tags { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.reach-tags span { background: var(--navy); color: #fff; padding: .4rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 500; }
.reach-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.reach-list li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; color: var(--ink); font-weight: 500; }
.reach-list li::before { content: '🤝'; position: absolute; left: 0; }

/* ===== FAQs ===== */
.faqs { padding: 6rem 0; background: var(--bg-soft); }
.faqs-inner { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: .9rem; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 1.4rem; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.2rem 0; font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--saffron); font-weight: 400; transition: transform .2s ease; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 0; padding: 0 0 1.3rem; font-size: .97rem; }

/* ===== Contact ===== */
.contact { padding: 6rem 0; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact-info h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.contact-lead { color: #c3c8e8; max-width: 420px; }
.contact-points { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-points li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; color: #dfe3f6; line-height: 1.6; }
.contact-points a { color: #dfe3f6; }
.contact-points a:hover { color: var(--saffron-lt); }
.ci-ic { flex: none; font-size: 1.1rem; }
.contact-form { background: #fff; border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--bg-soft);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); background: #fff;
}
.field textarea { resize: vertical; }
.contact-form .btn { width: 100%; border: 0; margin-top: .4rem; }

/* ===== Gallery ===== */
.gallery { padding: 6rem 0; }

/* Slider */
.slider { position: relative; max-width: 940px; margin: 0 auto; }
.slider-viewport { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.slider-track { display: flex; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.slide { flex: 0 0 100%; margin: 0; position: relative; }
.slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.5rem 1.2rem; color: #fff; font-weight: 600; font-size: 1.02rem;
  background: linear-gradient(transparent, rgba(22, 30, 87, .88));
}
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: var(--navy); font-size: 1.1rem;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: background .15s ease, transform .15s ease;
}
.slider-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.4rem; }
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: var(--line); transition: background .2s ease, transform .2s ease;
}
.slider-dot.active { background: var(--saffron); transform: scale(1.25); }

.gallery-subhead {
  margin: 3rem 0 1.4rem; font-size: 1.4rem; color: var(--navy);
  padding-left: .9rem; border-left: 4px solid var(--saffron);
}
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.video-grid video {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #000;
  border-radius: 14px; box-shadow: var(--shadow-sm);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(1), .stat:nth-child(2), .stat:nth-child(3),
  .stat:nth-child(4), .stat:nth-child(5) { grid-column: span 1; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-media { order: -1; }
  .about-media img { aspect-ratio: 16/10; }
  .cards { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .vm-grid { grid-template-columns: 1fr; }
  .leader-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .reach-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1.2rem; box-shadow: var(--shadow-sm);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { width: 100%; padding: .8rem 0; }
  .nav-cta { margin-top: .5rem; }
  .hero { min-height: 80vh; }
  .cred-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .leader { flex-direction: column; gap: 1rem; }
  .slider-btn { width: 38px; height: 38px; }
  .slide figcaption { font-size: .9rem; padding: 1.8rem 1rem 1rem; }
}
