/* ==========================================================================
   SCMO Foundation — original design inspired by the Invetex demo structure.
   All copy, colours, icons and layout code are original.
   ========================================================================== */

:root {
  --ink: #14342e;
  --ink-2: #1e4a3f;
  --green: #1f8a63;
  --green-dark: #126b4b;
  --gold: #e0a83b;
  --gold-dark: #c18f27;
  --cream: #faf7f0;
  --paper: #ffffff;
  --muted: #67776f;
  --line: #e4e9e3;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(20, 52, 46, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

.wrap { width: min(100% - 3rem, 1140px); margin-inline: auto; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 1rem;
}

h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border-color: rgba(20, 52, 46, 0.22); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-gold { background: var(--gold); color: #2a210c; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.text-link:hover { gap: 0.7rem; }

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow.light { color: var(--gold); }

/* ---------- Top bar & header ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 1rem;
}
.topbar p { margin: 0; }
.topbar a { color: var(--gold); text-decoration: none; font-weight: 600; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  padding: 8px;
  flex: none;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.35rem; line-height: 1; }
.brand-text small { display: block; font-family: "DM Sans", sans-serif; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--green); }

.menu-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 6rem;
  background:
    radial-gradient(600px 320px at 10% 0%, rgba(224, 168, 59, 0.1), transparent 70%),
    radial-gradient(700px 420px at 95% 90%, rgba(31, 138, 99, 0.09), transparent 70%),
    var(--cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}
.hero-copy h1 { font-size: clamp(2.7rem, 5.4vw, 4.4rem); margin-bottom: 1.4rem; }
.hero-copy h1 em { color: var(--green); font-style: normal; display: block; }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 33rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-note { display: flex; align-items: center; gap: 0.6rem; margin-top: 2rem; color: var(--muted); font-size: 0.88rem; }
.note-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(31, 138, 99, 0.12); color: var(--green); font-size: 0.75rem; }

.hero-visual { position: relative; min-height: 490px; }
.hero-main {
  position: absolute;
  inset: 0 13% 9% 4%;
  border-radius: 160px 160px 14px 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-small {
  position: absolute;
  width: 40%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 6px solid var(--cream);
  box-shadow: var(--shadow);
}
.hero-small img { width: 100%; height: 100%; object-fit: cover; }
.hero-small-a { right: 0; top: 8%; }
.hero-small-b { right: 2%; bottom: 0; }
.hero-badge {
  position: absolute;
  left: 0;
  bottom: 16%;
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow);
  display: grid;
  line-height: 1.3;
}
.hero-badge strong { font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; }
.hero-badge span { font-size: 0.76rem; color: var(--muted); }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 1.9rem 0; }
.trust-item { display: flex; align-items: center; gap: 0.85rem; }
.trust-item > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: rgba(31, 138, 99, 0.1);
  color: var(--green);
  font-size: 1.1rem;
}
.trust-item strong { display: block; font-size: 0.92rem; }
.trust-item small { color: var(--muted); font-size: 0.78rem; }

/* ---------- Generic sections ---------- */
.section { padding: 6rem 0; }
.section-tinted { background: var(--cream); }
.section.alt { background: #f5f8f5; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}
.section-head.center { justify-content: center; text-align: center; }
.section-intro { max-width: 27rem; color: var(--muted); margin: 0 0 0.3rem; }

/* ---------- Cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(31, 138, 99, 0.3); }
.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(31, 138, 99, 0.1);
  color: var(--green);
  margin-bottom: 1.4rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: 0.94rem; margin-bottom: 1.1rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.about-visual { position: relative; }
.about-visual img { width: 100%; height: 520px; object-fit: cover; border-radius: 160px 14px 14px 14px; box-shadow: var(--shadow); }
.about-visual-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(20, 52, 46, 0.92);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
}
.about-copy p { color: var(--muted); }
.about-copy blockquote {
  margin: 1.8rem 0 2rem;
  padding: 1.2rem 0 1.2rem 1.5rem;
  border-left: 3px solid var(--gold);
}
.about-copy blockquote p { font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; color: var(--ink); font-style: italic; margin-bottom: 0.4rem; }
.about-copy blockquote cite { font-style: normal; font-size: 0.85rem; color: var(--muted); }

/* ---------- Impact ---------- */
.impact {
  background:
    radial-gradient(600px 300px at 15% 10%, rgba(224, 168, 59, 0.12), transparent 70%),
    var(--ink);
  color: #fff;
}
.impact h2 { color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat { border-right: 1px solid rgba(255, 255, 255, 0.14); padding: 1rem 0.5rem; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: clamp(2.4rem, 5vw, 3.7rem); color: var(--gold); line-height: 1.1; margin-bottom: 0.5rem; }
.stat span { font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); }
.impact-footnote { text-align: center; margin: 2.5rem 0 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; }
.step-no { font-family: "Fraunces", Georgia, serif; font-size: 2.6rem; color: rgba(31, 138, 99, 0.22); line-height: 1; display: block; margin-bottom: 1rem; }
.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- Quotes ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote-card {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
}
.quote-mark { font-family: "Fraunces", Georgia, serif; font-size: 4rem; line-height: 0.7; color: var(--gold); }
.quote-card blockquote { font-family: "Fraunces", Georgia, serif; font-size: 1.08rem; line-height: 1.5; margin: 1.2rem 0 1.8rem; }
.quote-card figcaption { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.quote-card figcaption strong { display: block; font-size: 0.92rem; }
.quote-card figcaption small { color: var(--muted); font-size: 0.78rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; }
.avatar-a { background: linear-gradient(135deg, #d9b380, #9c6c3f); }
.avatar-b { background: linear-gradient(135deg, #8fc7ad, #2f7d60); }
.avatar-c { background: linear-gradient(135deg, #b6c6de, #5a7597); }
.placeholder-note { margin-top: 1.7rem; font-size: 0.78rem; color: var(--muted); font-style: italic; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-img { height: 190px; background-size: cover; background-position: center; }
.news-img-a { background-image: linear-gradient(rgba(20,52,46,0.12), rgba(20,52,46,0.12)), url("https://images.unsplash.com/photo-1559027615-cd4628902d4a?auto=format&fit=crop&w=800&q=80"); }
.news-img-b { background-image: linear-gradient(rgba(20,52,46,0.12), rgba(20,52,46,0.12)), url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=800&q=80"); }
.news-img-c { background-image: linear-gradient(rgba(20,52,46,0.12), rgba(20,52,46,0.12)), url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=800&q=80"); }
.news-body { padding: 1.6rem; }
.news-meta { font-size: 0.75rem; color: var(--green); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.news-body h3 { font-size: 1.14rem; margin: 0.7rem 0 0.6rem; }
.news-body p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(500px 260px at 85% 20%, rgba(224, 168, 59, 0.18), transparent 70%),
    var(--ink-2);
  color: #fff;
  padding: 5rem 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); max-width: 30rem; }
.cta p:not(.eyebrow) { color: rgba(255, 255, 255, 0.72); max-width: 32rem; margin-bottom: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 0.8rem; min-width: 220px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding: 4.5rem 0 1.8rem; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.15fr; gap: 3rem; }
.brand-footer { color: #fff; margin-bottom: 1.3rem; }
.brand-footer .brand-text small { color: rgba(255, 255, 255, 0.5); }
.footer-about p { max-width: 24rem; }
.footer-verse { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 0.9rem; color: rgba(255, 255, 255, 0.5); }
.footer-col h3 { color: #fff; font-family: "DM Sans", sans-serif; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.3rem; }
.footer-col a { display: block; text-decoration: none; margin-bottom: 0.7rem; color: rgba(255, 255, 255, 0.7); }
.footer-col a:hover { color: var(--gold); }
.footer-col p { margin-bottom: 0.6rem; }
.footer-mail { color: var(--gold) !important; font-weight: 700; margin-top: 1.2rem !important; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 3.5rem; padding-top: 1.5rem; font-size: 0.8rem; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav { gap: 1rem; }
  .nav a { font-size: 0.84rem; }
  .hero-grid { gap: 2rem; }
  .cards-grid, .quote-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 2rem, 1140px); }
  .header-inner { min-height: 66px; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 0.7rem 0; font-size: 0.95rem; border-bottom: 1px solid var(--line); }
  .hero { padding: 3.5rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; margin-top: 1rem; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 4rem 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .section-head.center { align-items: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual img { height: 380px; border-radius: 120px 14px 14px 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .stat:nth-child(2) { border-right: 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 540px) {
  .topbar p { display: none; }
  .topbar-inner { justify-content: center; }
  .hero-visual { min-height: 360px; }
  .hero-small { width: 44%; border-width: 4px; }
  .hero-badge { bottom: 8%; padding: 0.65rem 0.9rem; }
  .cards-grid, .quote-grid, .news-grid, .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
