/* ==========================================================================
   S Cube Foundation — Stylesheet
   Design brief: professional organization, not a charity.
   Palette: healthcare blue + white, warm accent. Reference: Akshaya Patra.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colours */
  --navy:        #0b2545;   /* deep trustworthy navy */
  --blue:        #13639e;   /* primary mid-blue */
  --blue-bright: #1f7fc4;   /* hover / active */
  --sky:         #eaf3fb;   /* very light blue background */
  --sky-2:       #e4edf6;   /* deeper tint for alternating section bands */
  --teal:        #0d9488;   /* secondary support colour */

  /* Warm accent (CTA) */
  --accent:      #f4a52a;   /* amber */
  --accent-dark: #d98a12;
  --green:       #2e9c5a;   /* environment / success */

  /* Neutrals */
  --ink:         #16324f;   /* body text on light */
  --muted:       #5c728a;   /* secondary text */
  --line:        #dbe6f0;   /* borders */
  --white:       #ffffff;

  /* Structure */
  --container: 1180px;
  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 18px 50px rgba(11, 37, 69, 0.14);
  --transition: 0.25s ease;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tint { background: var(--sky-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy { background: var(--navy); color: #dce8f4; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section__eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue); background: var(--sky);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 16px;
}
.section__title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section__lead { color: var(--muted); font-size: 1.06rem; }
.section--navy .section__title,
.section--navy .section__eyebrow { color: #fff; }
.section--navy .section__eyebrow { background: rgba(255,255,255,0.12); }
.section--navy .section__lead { color: #b9cde3; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.98rem; font-weight: 600; padding: 13px 26px; border-radius: 100px;
  border: 2px solid transparent; cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #3a2600; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }
.btn--solid { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--solid:hover { background: var(--blue-bright); border-color: var(--blue-bright); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--ghost:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--line); }
.btn--outline:hover { border-color: var(--blue); background: var(--sky); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar { background: var(--navy); color: #cddcec; font-size: 0.86rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #cddcec; }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__social { display: flex; gap: 14px; align-items: center; }
.topbar__social a { display: grid; place-items: center; }
.topbar__social .social-icon { width: 16px; height: 16px; }

.header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 14px rgba(11,37,69,0.06); }
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 58px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; color: var(--navy); font-size: 1.18rem; letter-spacing: 0.2px; }
.brand__tag { font-size: 0.72rem; color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  color: var(--ink); font-weight: 600; font-size: 0.94rem; padding: 10px 11px;
  border-radius: 8px; transition: var(--transition); white-space: nowrap;
}
.nav a:hover { color: var(--blue); background: var(--sky); }
.nav__cta { margin-left: 10px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 44px; height: 44px;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px auto; border-radius: 2px; transition: var(--transition); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; }
.hero__slides { position: relative; height: min(80vh, 640px); }
.hero__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
  background-size: cover; background-position: center;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(11,37,69,0.88) 0%, rgba(11,37,69,0.6) 45%, rgba(11,37,69,0.25) 100%);
}
.hero__inner {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center;
}
.hero__content { max-width: 640px; color: #fff; }
.hero__badge {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 7px 16px; border-radius: 100px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25); margin-bottom: 20px;
}
.hero__title { color: #fff; font-size: clamp(2rem, 4.5vw, 3.3rem); margin-bottom: 18px; }
.hero__sub { font-size: clamp(1rem, 2vw, 1.25rem); color: #dbe8f5; font-weight: 500; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__dots { position: absolute; bottom: 24px; left: 0; right: 0; z-index: 3; display: flex; gap: 10px; justify-content: center; }
.hero__dot { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.45); cursor: pointer; transition: var(--transition); }
.hero__dot.is-active { background: var(--accent); width: 30px; border-radius: 6px; }
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.18); color: #fff; font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center; transition: var(--transition);
}
.hero__arrow:hover { background: rgba(255,255,255,0.35); }
.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }

/* ==========================================================================
   WHO WE ARE
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 54px; align-items: start; }
.about__media { position: sticky; top: 110px; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about__badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--blue); color: #fff;
  padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 210px;
}
.about__badge strong { font-size: 1.9rem; display: block; color: #fff; }
.about__badge span { font-size: 0.85rem; color: #d7e7f6; }
.about__text p { color: #40566d; }
.about__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 28px 0 0; }
.about__founder-link { font-weight: 700; font-size: 0.95rem; color: var(--blue); }
.about__founder-link:hover { color: var(--blue-bright); }

.about__block { margin-top: 30px; }
.about__subhead {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 800; color: var(--navy); margin: 0 0 10px;
}
.about__subhead::before { content: ""; display: block; width: 46px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 10px; }
.about__block-lead { font-size: 1.02rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.about__block p { color: #40566d; margin-bottom: 0.7em; }

.conviction-list { list-style: none; margin: 10px 0 12px; }
.conviction-list li {
  display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line);
  font-weight: 600; color: var(--navy); font-size: 1rem;
}
.conviction-list li:last-child { border-bottom: 0; }
.conviction-list li::before {
  content: "✓"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--sky);
  color: var(--blue); display: grid; place-items: center; font-size: 0.7rem; font-weight: 800; margin-top: 2px;
}

.process-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.process-flow__step {
  background: var(--sky); color: var(--blue); font-weight: 700; font-size: 0.94rem;
  padding: 10px 20px; border-radius: 100px;
}
.process-flow__arrow { color: var(--muted); font-size: 1.1rem; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.mv-card {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--blue);
  border-radius: var(--radius); padding: 30px 30px; box-shadow: var(--shadow);
}
.mv-card--vision { border-left-color: var(--green); }
.mv-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.mv-card__icon { font-size: 1.4rem; }
.mv-card p { color: #40566d; margin: 0; }

/* ==========================================================================
   FOUNDER'S MESSAGE
   ========================================================================== */
.founder {
  max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 44px 48px; box-shadow: var(--shadow);
}
.founder__quote {
  margin: 0 0 30px; font-size: 1.28rem; font-style: italic; color: var(--navy);
  border-left: 4px solid var(--accent); padding-left: 22px; font-weight: 600; line-height: 1.5;
}
.founder__body { color: #40566d; position: relative; overflow: hidden; max-height: 230px; transition: max-height 0.5s ease; }
.founder__body:not(.is-expanded)::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 90px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}
.founder__body.is-expanded { max-height: 4000px; }
.founder__emphasis { font-style: italic; color: var(--navy); font-weight: 600; }
.founder__signoff { margin-top: 24px; }
.founder__toggle {
  display: block; margin: 24px auto 0; background: none; border: 0; color: var(--blue);
  font-weight: 700; font-size: 0.95rem; cursor: pointer; padding: 8px;
}
.founder__toggle:hover { text-decoration: underline; }

/* ==========================================================================
   CORE VALUES
   ========================================================================== */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.value-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 20px;
  cursor: pointer; transition: var(--transition); font-family: inherit; width: 100%;
}
.value-card:hover, .value-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.value-card__icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.75rem; background: var(--sky);
}
.value-card h3 { margin: 0; font-size: 1.05rem; }

.value-modal {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px;
  visibility: hidden; opacity: 0; transition: opacity 0.25s ease, visibility 0.25s ease;
}
.value-modal.is-open { visibility: visible; opacity: 1; }
.value-modal__backdrop { position: absolute; inset: 0; background: rgba(11,37,69,0.55); }
.value-modal__panel {
  position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 42px; max-width: 460px; width: 100%; text-align: center;
  transform: translateY(16px); transition: transform 0.25s ease;
}
.value-modal.is-open .value-modal__panel { transform: translateY(0); }
.value-modal__close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--sky); color: var(--blue); font-size: 1rem; cursor: pointer;
}
.value-modal__close:hover { background: var(--blue); color: #fff; }
.value-modal__icon {
  display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: var(--sky); font-size: 2rem; margin-bottom: 18px;
}
.value-modal__panel h3 { margin-bottom: 12px; }
.value-modal__panel p { color: var(--muted); margin: 0; }

/* ---------- Focus areas ---------- */
.focus-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px;
}
.focus-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: var(--transition); position: relative; overflow: hidden;
}
.focus-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.focus-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.focus-card:hover::before { transform: scaleX(1); }
.focus-card__icon {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.7rem; background: var(--sky); margin-bottom: 18px;
}
.focus-card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.focus-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.focus-card__more { font-weight: 700; font-size: 0.9rem; color: var(--blue); }
.focus-card__more::after { content: " →"; }

/* ==========================================================================
   IMPACT
   ========================================================================== */
.impact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px;
}
.stat {
  text-align: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 30px 16px; transition: var(--transition);
}
.stat:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.stat__icon { font-size: 1.8rem; }
.stat__num { font-size: 2.3rem; font-weight: 800; color: #fff; line-height: 1; margin: 12px 0 6px; }
.stat__num .plus { color: var(--accent); }
.stat__label { font-size: 0.9rem; color: #b9cde3; }

/* ==========================================================================
   FEATURED INITIATIVES
   ========================================================================== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.init-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column;
}
.init-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.init-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.init-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.init-card:hover .init-card__media img { transform: scale(1.06); }
.init-card__tag {
  position: absolute; top: 14px; left: 14px; background: var(--accent); color: #3a2600;
  font-size: 0.74rem; font-weight: 700; padding: 5px 12px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.04em;
}
.init-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.init-card__body h3 { font-size: 1.16rem; margin-bottom: 10px; }
.init-card__body p { color: var(--muted); font-size: 0.95rem; }
.init-card__more { margin-top: auto; font-weight: 700; color: var(--blue); font-size: 0.92rem; }
.init-card__more::after { content: " →"; }

/* ==========================================================================
   PARTNERS
   ========================================================================== */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.partner {
  display: flex; align-items: center; justify-content: center; text-align: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; min-height: 110px; font-weight: 600; color: var(--navy); transition: var(--transition);
}
.partner:hover { box-shadow: var(--shadow); border-color: var(--blue); }
.partner__mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--sky); color: var(--blue);
  display: grid; place-items: center; font-weight: 800; flex-shrink: 0;
}
.partner small { display: block; font-weight: 500; color: var(--muted); font-size: 0.78rem; }

/* ==========================================================================
   GET INVOLVED (CTA band)
   ========================================================================== */
.cta {
  background: linear-gradient(120deg, var(--blue) 0%, var(--navy) 100%);
  color: #fff; text-align: center; border-radius: 0;
}
.cta .section__title, .cta h2 { color: #fff; }
.cta__lead { color: #d7e7f6; max-width: 640px; margin: 0 auto 30px; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ==========================================================================
   CONTACT + FOOTER
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: stretch; }
.contact__info { display: flex; flex-direction: column; gap: 18px; }
.contact__item { display: flex; gap: 14px; align-items: flex-start; }
.contact__item .ci-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--sky); color: var(--blue);
  display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact__item h4 { margin: 0 0 2px; font-size: 1rem; }
.contact__item p { margin: 0; color: var(--muted); }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

.footer { background: var(--navy); color: #a9c1d9; padding: 60px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 44px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer a { color: #a9c1d9; }
.footer a:hover { color: #fff; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__tag { color: #7f9cbb; }
.footer__about { font-size: 0.92rem; margin-top: 16px; color: #91accb; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; font-size: 0.94rem; }
.footer__social { display: flex; gap: 12px; margin-top: 8px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: grid; place-items: center; transition: var(--transition); font-size: 1.05rem;
}
.footer__social a:hover { background: var(--accent); color: #3a2600; }
.footer__social .social-icon { width: 18px; height: 18px; }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center;
  font-size: 0.86rem; color: #7f9cbb;
}
.footer__bar a { color: #b9cde3; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { max-width: 520px; margin: 0 auto; position: static; order: -1; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .topbar { display: none; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 14px 20px 24px; gap: 4px; box-shadow: 0 20px 40px rgba(11,37,69,0.12);
    transform: translateY(-140%); transition: transform 0.35s ease; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__cta { margin: 12px 0 0; }
  .nav__cta .btn { width: 100%; }
  .nav-toggle { display: block; }
  .section { padding: 60px 0; }
  .mv-grid { grid-template-columns: 1fr; margin-top: 44px; }
  .hero__slides { height: min(88vh, 600px); }
  .founder { padding: 32px 26px; }
  .founder__quote { font-size: 1.1rem; padding-left: 16px; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .hero__arrow { display: none; }
  .about__badge { left: 0; }
  .section__head { margin-bottom: 38px; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
