/* ============================================================
   I2FORM — Modern EdTech design system
   Fonts: Sora (headings) + Manrope (body)
   Palette: navy #0A1936 · teal #10C5A7 · paper #F7F6F2
   ============================================================ */

:root {
  --navy: #0A1936;
  --navy-soft: #12224a;
  --teal: #10C5A7;
  --teal-deep: #0B8F7B;
  --teal-soft: rgba(16, 197, 167, 0.12);
  --paper: #F7F6F2;
  --white: #FFFFFF;
  --ink: #14202E;
  --muted: #5C6672;
  --line: #E6E3DC;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 25, 54, 0.10);
  --shadow-lg: 0 18px 50px rgba(10, 25, 54, 0.16);
  --font-head: 'Sora', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--teal-deep); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--navy); }
ul { padding-left: 1.2em; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 60px 0; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 14px;
}
.section-lead {
  max-width: 720px;
  font-size: 1.08rem;
  margin-bottom: 2.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-teal { background: var(--teal); color: var(--navy); }
.btn-teal:hover { background: var(--teal-deep); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 197, 167, 0.35); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--teal-deep); color: var(--white); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  flex-shrink: 0;
  min-width: 0;
}
.brand:hover { color: var(--teal-deep); }
.brand-accent { color: var(--teal); }
.brand-light { color: var(--white); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav > a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
}
.main-nav > a:hover, .main-nav > a[aria-current="page"] { color: var(--teal-deep); }
.main-nav .nav-cta { padding: 10px 20px; font-size: 0.88rem; }
.main-nav .nav-cta:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 120;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: var(--navy);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(10, 25, 54, 0.92) 0%, rgba(10, 25, 54, 0.72) 55%, rgba(10, 25, 54, 0.45) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 120px 24px;
  width: 100%;
}
.hero-kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); max-width: 780px; margin-bottom: 22px; }
.hero h1 em {
  font-style: normal;
  color: var(--teal);
}
.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(16, 197, 167, 0.25), transparent 60%),
    var(--navy);
  padding: 96px 0 72px;
}
.page-hero h1 { color: var(--white); max-width: 820px; }
.page-hero p.page-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  max-width: 680px;
  margin-bottom: 0;
}

/* ---------- Split (text + image) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Card grids ---------- */
.card-grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.card h4 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.98rem; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--teal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--teal-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Navy card variant */
.on-navy .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.on-navy .card:hover { border-color: var(--teal); transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.on-navy .card h4 { color: var(--white); }
.on-navy .card p { color: rgba(255, 255, 255, 0.75); }
.on-navy .card-icon { background: rgba(16, 197, 167, 0.18); }
.on-navy .card-icon svg { stroke: var(--teal); }

/* ---------- Dark band ---------- */
.band-navy { background: var(--navy); }
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy .section-eyebrow { color: var(--teal); }
.band-navy p { color: rgba(255, 255, 255, 0.78); }
.band-navy .section-lead { color: rgba(255, 255, 255, 0.78); }

/* ---------- Values tiles ---------- */
.value-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 36px 26px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.value-tile:hover { transform: translateY(-6px); border-color: var(--teal); }
.value-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--teal);
  display: block;
  margin-bottom: 8px;
}
.value-tile h4 { margin-bottom: 6px; }
.value-tile p { font-size: 0.92rem; margin: 0; }

/* ---------- Stats ---------- */
.stats-band { background: var(--navy); padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat { text-align: center; padding: 12px; }
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--teal);
  display: block;
  line-height: 1.1;
}
.stat-label { color: rgba(255, 255, 255, 0.8); font-size: 0.98rem; display: block; margin-top: 8px; }

/* ---------- Offers cards (home) ---------- */
.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.offer-card .offer-media { aspect-ratio: 16 / 10; overflow: hidden; }
.offer-card .offer-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.offer-card:hover .offer-media img { transform: scale(1.05); }
.offer-card .offer-body { padding: 26px 28px 30px; }
.offer-card .offer-body p { font-size: 0.95rem; }
.offer-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal-deep);
  display: inline-block;
  margin-top: 6px;
}
.offer-link:hover { color: var(--navy); }

/* ---------- Partners ---------- */
.partner-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 900px; margin: 0 auto; }
.partner-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  transition: all 0.2s ease;
}
.partner-chip:hover { border-color: var(--teal); color: var(--teal-deep); }

/* ---------- Contact form ---------- */
.contact-section {
  background:
    radial-gradient(800px 400px at 10% 110%, rgba(16, 197, 167, 0.22), transparent 60%),
    var(--navy);
}
.contact-section h2, .contact-section h3 { color: var(--white); }
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info p { color: rgba(255, 255, 255, 0.8); }
.contact-info ul { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-info li { color: rgba(255, 255, 255, 0.8); margin-bottom: 12px; }
.contact-info li a { color: var(--teal); font-weight: 600; }
.contact-info li a:hover { color: var(--white); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow-lg);
}
.contact-form label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#formStatus p { margin: 0; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: #071226;
  color: rgba(255, 255, 255, 0.72);
  padding: 72px 0 0;
  font-size: 0.95rem;
}
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-col h6 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(255, 255, 255, 0.72); }
.footer-col a:hover { color: var(--teal); }
.footer-about p { margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy, .footer-seo { margin: 0; font-size: 0.85rem; }
.footer-seo a { opacity: 0.5; font-weight: 300; color: inherit; }
.footer-seo a:hover { color: var(--teal); opacity: 0.9; }

/* ---------- Blog cards & post page ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card-link { display: block; color: inherit; height: 100%; }
.post-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card-body { padding: 24px 26px 28px; }
.post-card-tags {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: block;
  margin-bottom: 10px;
}
.post-card-title { font-size: 1.2rem; margin-bottom: 8px; }
.post-card-excerpt { font-size: 0.95rem; margin-bottom: 14px; }
.post-card-meta { font-size: 0.82rem; color: var(--muted); }

.post-page { padding: 64px 0 88px; }
.post-wrap { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.breadcrumbs { font-size: 0.85rem; margin-bottom: 28px; color: var(--muted); }
.post-header h1 { margin-bottom: 16px; }
.post-standfirst { font-size: 1.12rem; color: var(--ink); }
.post-meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 36px; }
.post-article img { border-radius: var(--radius); margin: 24px 0; }

/* ---------- Offer detail sections (offres page) ---------- */
.offer-detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; padding: 56px 0; }
.offer-detail:nth-child(even) { direction: rtl; }
.offer-detail > * { direction: ltr; }
.offer-detail-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.offer-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.offer-detail ul { margin-top: 8px; }
.offer-detail li { margin-bottom: 10px; }
.offer-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 16px;
}

/* ---------- Embed page ---------- */
.embed-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--white); }
.embed-map iframe { display: block; width: 100%; height: 420px; border: 0; }
.code-snippet {
  background: var(--navy);
  color: #D7E3F4;
  border-radius: var(--radius);
  padding: 24px 28px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  line-height: 1.8;
}
.code-snippet .tag { color: var(--teal); }

/* ---------- Education technology article ---------- */
.article-body { max-width: 800px; margin: 0 auto; }
.article-body h2 { margin-top: 2.2em; }
.article-callout {
  background: var(--white);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 32px 0;
  box-shadow: var(--shadow);
}
.feature-list { list-style: none; padding: 0; margin: 24px 0; }
.feature-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.feature-list strong { font-family: var(--font-head); color: var(--ink); display: block; margin-bottom: 4px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .value-tiles { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-wrap, .offer-detail { grid-template-columns: 1fr; }
  .offer-detail:nth-child(even) { direction: ltr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 24px;
    display: none;
    z-index: 110;
  }
  .main-nav.is-open { display: flex; }
  .main-nav > a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-nav .nav-cta { margin-top: 18px; border-bottom: none; width: auto; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .value-tiles { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .hero-content { padding: 90px 24px; }
  .contact-form { padding: 26px 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .value-tile, .post-card, .offer-card .offer-media img { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
