/* CORAL website. Colours, type and logo use follow CORAL-Brand-Guidelines.pdf (Edition 1):
   Green carries text and buttons; Coral Red and Lagoon Teal are for the logo and small
   graphic accents only (never text); Rust marks labels and focus rings. */
:root {
  --green: #224C42;
  --green-dark: #173B32;
  --green-light: #E9F0EB;
  --coral: #E0574B;
  --coral-on-dark: #E8695E;
  --teal: #2E9E9A;
  --teal-on-dark: #3FB8B3;
  --rust: #A84B37;
  --ink: #202D2A;
  --muted: #5A6962;
  --paper: #F6F4EF;
  --line: #E1E5DD;
  --white: #FFFFFF;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(32, 45, 42, .06), 0 12px 32px rgba(32, 45, 42, .08);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
a { color: var(--green); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rust); margin-bottom: 14px;
}
.eyebrow-light { color: #F2B8A8; }
h1, .display {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; line-height: 1.08; color: var(--green);
}
h1 { font-size: clamp(40px, 6vw, 68px); }
.display { font-size: clamp(30px, 4.2vw, 48px); max-width: 22ch; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.35; color: var(--ink); }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); line-height: 1.6; margin-top: 20px; }
.narrow { max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 16px/1.2 var(--sans); text-decoration: none; border: 1.5px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { color: var(--green); border-color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green-light); }
.btn-light { background: var(--white); color: var(--green); }
.btn-light:hover { background: var(--green-light); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.play {
  width: 0; height: 0; border-left: 10px solid currentColor;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .92); backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
/* Logo per the guidelines' on-screen reference: icon 34 px, wordmark 1.4 rem, bold, 0.1 em. */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 4px 0; }
.logo span {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700;
  font-size: 1.4rem; letter-spacing: .1em; color: var(--green);
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.site-nav a:not(.btn):hover { background: var(--green-light); color: var(--green); }
.site-nav .btn { margin-left: 10px; }
.menu-toggle {
  display: none; align-items: center; gap: 8px; background: none; border: 1.5px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font: 600 15px var(--sans); color: var(--green); cursor: pointer; min-height: 44px;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; } .menu-icon::after { top: 5px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    box-shadow: 0 16px 24px rgba(32, 45, 42, .08);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .site-nav .btn { margin: 16px 0 0; }
}

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy .lede { max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-visual { position: relative; }
.frame {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); overflow: hidden;
}
.float {
  position: absolute; background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 12px 16px; max-width: 250px; font-size: 14px; line-height: 1.45;
}
.float p { color: var(--ink); margin-top: 6px; }
.float-a { left: -28px; bottom: -28px; }
.float-b { right: -18px; top: -26px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rust); background: #F8E9E4; padding: 3px 8px; border-radius: 999px;
}
.tag-green { color: var(--green); background: var(--green-light); }
/* The coral accent: a small graphic stroke under the hero visual, never text. */
.hero-visual::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: calc(var(--radius) + 6px);
  border: 2px solid var(--coral); opacity: .35; z-index: -1;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .float-a { left: 8px; bottom: -36px; }
  .float-b { right: 8px; top: -30px; }
  .hero-visual { margin: 24px 0 24px; }
  .hero-visual::before { inset: 16px -8px -12px 16px; }
}
@media (max-width: 520px) {
  .float { max-width: 200px; font-size: 13px; padding: 10px 12px; }
  .float-b { display: none; }
  .hero-actions .btn { width: 100%; }
}

/* Facts */
.facts { background: var(--green); color: var(--white); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4vw, 52px); letter-spacing: -.03em; line-height: 1.05; }
.facts span { display: block; color: #CFDDD6; font-size: 15px; line-height: 1.5; margin-top: 6px; max-width: 26ch; }
@media (max-width: 800px) { .facts-grid { grid-template-columns: 1fr 1fr; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.tint { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Principles */
.rules { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rules li { background: var(--paper); padding: 28px 28px 32px; }
.rules .num { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--rust); margin-bottom: 14px; }
.rules p { color: var(--muted); font-size: 16px; margin-top: 8px; line-height: 1.65; }
@media (max-width: 900px) { .rules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .rules { grid-template-columns: 1fr; } }

/* Audience sections */
.audience-head { margin-bottom: clamp(36px, 5vw, 56px); }
.audience-head .display { max-width: 26ch; }
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.feature + .feature, .feature + .callout-card { margin-top: clamp(48px, 7vw, 88px); }
.feature.reverse .feature-copy { order: 2; }
.feature-copy h3 + p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.feature-copy p + h3 { margin-top: 26px; }
.feature-copy h3 { padding-left: 16px; position: relative; }
.feature-copy h3::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
}
.feature-copy p { padding-left: 16px; }
.shot {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-copy { order: 0; }
}
.callout-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; align-items: center;
  background: var(--green-light); border-radius: var(--radius); overflow: hidden;
}
.callout-card img { border-right: 1px solid var(--line); }
.callout-card > div { padding: clamp(24px, 4vw, 48px); }
.callout-card p { color: var(--ink); margin-top: 8px; }
@media (max-width: 800px) { .callout-card { grid-template-columns: 1fr; } .callout-card img { border-right: 0; } }

/* Library */
.library { background: var(--green); color: var(--white); }
.library .display { color: var(--white); }
.library .lede { color: #CFDDD6; }
.library-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.curricula { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 10px; }
.curricula li { padding-left: 22px; position: relative; color: var(--white); font-size: 16px; }
.curricula li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-on-dark);
}
.subjects { background: var(--green-dark); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.subject { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.subject span { font-weight: 600; }
.subject b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.subject i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
.subject i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--coral-on-dark); border-radius: 3px; }
.subjects .note { font-size: 14px; color: #CFDDD6; margin-top: 16px; }
@media (max-width: 900px) { .library-grid { grid-template-columns: 1fr; } }

/* Bilingual */
.bilingual-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.bilingual p:not(.eyebrow):not(.ar-sample) { color: var(--muted); margin-top: 18px; max-width: 54ch; }
/* Arabic: system sans, zero tracking (tracking breaks the joins). */
.ar-sample {
  font-family: "Geeza Pro", "Noto Sans Arabic", Tahoma, var(--sans); letter-spacing: 0;
  font-size: clamp(40px, 6vw, 72px); font-weight: 600; color: var(--green); line-height: 1.5; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px) 16px;
}
@media (max-width: 800px) { .bilingual-grid { grid-template-columns: 1fr; } }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; margin-top: 48px; }
.trust-grid > div { border-top: 2px solid var(--green); padding-top: 18px; }
.trust-grid p { color: var(--muted); font-size: 16px; margin-top: 8px; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .trust-grid { grid-template-columns: 1fr; } }

/* Films */
.film-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.film h3 { margin-top: 16px; }
.film p { color: var(--muted); font-size: 16px; margin-top: 4px; }
.dur { color: var(--rust); font-weight: 700; font-size: 14px; margin-left: 4px; white-space: nowrap; }
.film-open {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; background: var(--green-dark); box-shadow: var(--shadow); aspect-ratio: 16 / 9;
}
.film-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.film-open:hover img { transform: scale(1.03); }
.film-play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: var(--green); box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.film-play::after {
  content: ""; position: absolute; left: 26px; top: 21px;
  border-left: 18px solid var(--white); border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
@media (max-width: 900px) { .film-grid { grid-template-columns: 1fr; max-width: 640px; } }

.player {
  width: min(1100px, 100vw - 32px); padding: 0; border: 0; border-radius: var(--radius); background: #0E1F1A; color: var(--white);
}
.player::backdrop { background: rgba(14, 31, 26, .82); }
.player-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 20px; }
.player-bar h2 { font-size: 16px; font-weight: 600; }
.player-close {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: var(--white);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.player-close:hover { background: rgba(255, 255, 255, .2); }
.player video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; }

/* CTA */
.cta { background: var(--green); color: var(--white); text-align: center; padding: clamp(64px, 9vw, 112px) 0; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta img { border-radius: 18px; margin-bottom: 28px; }
.cta .display { color: var(--white); max-width: none; }
.cta p { color: #CFDDD6; margin: 14px 0 30px; font-size: 18px; }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 28px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-row img { width: 150px; }
.footer-row p { color: var(--muted); font-size: 14px; }
.footer-row a { font-weight: 600; font-size: 15px; }
