/* Caribbean Curriculum Compass - main stylesheet
   Palette: deep green, navy, gold on warm cream. */

:root {
  --green: #0b3a2e;
  --green-2: #145a45;
  --navy: #14264a;
  --gold: #c9922b;
  --gold-bright: #f7b81f;
  --gold-soft: #fbe6a8;
  --cream: #fdf9f0;
  --cream-2: #f6efdd;
  --ink: #1b2a2a;
  --muted: #55655f;
  --line: #e7dcc0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 58, 46, .12);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: clamp(16px, .55vw + 11px, 26px); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; display: flex; flex-direction: column; }
main > * { flex: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-2); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }

.wrap { width: min(2600px, 100% - 7vw); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 0;
  font: 800 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.btn-dark { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(11,58,46,.25); }
.btn-gold {
  background: linear-gradient(180deg, #ffd04a, var(--gold-bright) 55%, #eaa10c);
  color: var(--navy); box-shadow: 0 8px 18px rgba(201,146,43,.4);
}
.btn-gold .ico { stroke-width: 2.4; }
.btn-lg { padding: 18px 34px; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header { background: var(--cream); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; }
.brand img { width: clamp(230px, 26vw, 560px); height: auto; mix-blend-mode: multiply; }
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
  text-decoration: none; color: var(--navy); font-weight: 700; padding: 8px 2px;
  border-bottom: 3px solid transparent;
}
.main-nav ul a:hover { color: var(--gold); }
.main-nav ul a.active { color: var(--gold); border-bottom-color: var(--gold); }
.navtoggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; width: 44px; height: 44px; cursor: pointer; border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { display: block; width: 26px; height: 3px; background: var(--green); border-radius: 2px; transition: .2s; }

/* ---------- Flash message ---------- */
.flash { padding: 14px 0; font-weight: 700; }
.flash-ok { background: #dff3e6; color: #0d4d2a; }
.flash-err { background: #fde3df; color: #7a1e12; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); isolation: isolate; }
/* a soft, blurred copy of the photo fills the whole width, so the left side is sea and mountains, not empty space */
.hero-bg { position: absolute; inset: -30px; z-index: 0; background: url(/assets/images/hero.jpg) center 35% / cover no-repeat; filter: blur(14px) saturate(1.05); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(253,249,240,.94) 0%, rgba(253,249,240,.88) 26%, rgba(253,249,240,.55) 46%, rgba(253,249,240,.12) 68%, rgba(253,249,240,0) 100%); }
.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 25%; }
.hero-inner { display: flex; align-items: center; min-height: clamp(560px, 44vw, 900px); position: relative; z-index: 3; }
.hero-copy { position: relative; padding: 34px 0 130px; max-width: min(44rem, 35vw); }
.hero h1 { font-size: clamp(2.3rem, 3.9vw, 3.6rem); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--gold); display: block; }
.hero h1 + .gold-rule { display: block; width: 230px; height: 2px; background: var(--gold); margin: 0 0 22px; }
.hero p.lead { font-size: 1.25rem; color: var(--ink); max-width: 30em; margin: 0 0 28px; }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 110px; z-index: 4; pointer-events: none; }
.wave svg { width: 100%; height: 100%; display: block; }

/* ---------- Learning-area tiles + survey strip ---------- */
.band { background: var(--cream); padding: 30px 0 70px; position: relative; z-index: 5; flex: 1 0 auto; }
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.feature { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.feature:hover, .feature:focus-within { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(11,58,46,.18); }
.feature-link { display: flex; flex-direction: column; align-items: center; height: 100%; text-align: center; padding: 30px 20px 24px; text-decoration: none; color: inherit; border-radius: var(--radius); }
.feature-link:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.badge { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; color: #fff; }
.badge .ico { width: 30px; height: 30px; }
.feature h3 { font: 800 1.1rem/1.25 var(--sans); color: var(--navy); margin: 0 0 8px; }
.feature p { margin: 0 0 14px; font-size: .98rem; color: var(--muted); line-height: 1.45; flex: 1; }
.feature .more { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: .95rem; color: var(--gold); }
.feature .more .ico { width: 16px; height: 16px; stroke-width: 2.6; }
.feature:hover .more { text-decoration: underline; }
.c-green { background: #1f8a45; } .c-navy { background: #1d4568; } .c-purple { background: #5a3a8e; }
.c-orange { background: #e29a12; } .c-teal { background: #1c8a8a; } .c-violet { background: #7a5fc0; }

.survey-strip {
  margin-top: 26px; display: flex; align-items: center; gap: 26px;
  background: #fff; border: 2px solid var(--gold-soft); border-radius: var(--radius);
  padding: 22px 32px; box-shadow: var(--shadow);
}
.survey-strip .ico-big { width: 52px; height: 52px; color: var(--green); }
.survey-text { flex: 1; }
.survey-strip h2 { font-size: 1.4rem; margin: 0 0 2px; }
.survey-strip p { margin: 0; color: var(--ink); }

/* ---------- Forms ---------- */
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.3rem; }
label { display: block; font-weight: 700; margin: 16px 0 6px; color: var(--navy); }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], select, textarea {
  width: 100%; padding: 13px 14px; border: 2px solid var(--line); border-radius: 12px;
  font: inherit; background: #fffdf8; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(20,90,69,.15); }
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 12px 0; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--green); }
fieldset { border: 2px solid var(--line); border-radius: 12px; padding: 4px 16px 10px; margin: 16px 0 0; }
fieldset legend { font-weight: 800; color: var(--navy); padding: 0 8px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; } /* honeypot */
.form-note { font-size: .88rem; color: var(--muted); margin-top: 12px; }
.form-card .btn { margin-top: 20px; width: 100%; justify-content: center; }

/* ---------- Inner pages ---------- */
.page-head { background: linear-gradient(135deg, var(--green), #0f4d3a); color: #fff; padding: 64px 0 54px; position: relative; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: .3em; }
.page-head p { color: #d8ece3; max-width: 40em; font-size: 1.15rem; margin: 0; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold)); }
.section { padding: 64px 0; }
.section.alt { background: var(--cream-2); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.7rem; }
.prose li { margin-bottom: .4em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 26px; }
.card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 5px solid var(--gold); }
.card h3 { font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.tag { display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: #7a5410; margin-bottom: 10px; }
.tag.soon { background: #e3dcf3; color: #3e2a7a; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }

/* ---------- Learning-area pages ---------- */
.crumbs { font-size: .95rem; margin: 0 0 10px !important; color: #b9d6c9 !important; }
.crumbs a { color: #fff; }
.head-cta { margin-top: 26px !important; }
.topic-nav { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 6; }
.topic-nav .wrap { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0; }
.topic-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--navy); border: 2px solid transparent; }
.topic-nav a:hover { background: var(--cream-2); }
.topic-nav a.on { background: var(--cream-2); border-color: var(--gold); }
.mini { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.mini .ico { width: 16px; height: 16px; }
.section-intro { max-width: 46em; color: var(--muted); font-size: 1.1rem; margin: 0 0 26px; }
.wide-left { grid-template-columns: 1.6fr 1fr; }
.note-card { border-top: 5px solid var(--gold); }
.note-card .btn { width: auto; }
.prose .tag, .grade-body .tag { margin-bottom: 6px; }
.linklist { padding-left: 1.2em; }
.linklist a { font-weight: 700; }

.grade-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 20px; }
.grade { display: flex; gap: 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border-left: 6px solid var(--green-2); }
.grade-label { flex: none; width: 5.2rem; text-align: center; background: var(--cream-2); border-radius: 12px; padding: 10px 4px; align-self: flex-start; }
.grade-word { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.grade-num { display: block; font: 700 1.9rem/1.1 var(--serif); color: var(--navy); }
.grade-body p { margin: 0 0 8px; }
.grade-body .assess { font-size: .95rem; color: var(--ink); background: #f3f8f5; border-radius: 10px; padding: 8px 12px; }
.grade-body .status { font-size: .88rem; color: var(--muted); margin: 0; }

.sample { margin-top: 18px; }
.options { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.options li { border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fffdf8; }
details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 800; color: var(--green-2); }
details[open] summary { margin-bottom: 8px; }
.tips { padding-left: 1.2em; margin: 0; }
.tips li { margin-bottom: .6em; }

.cta-band { background: linear-gradient(135deg, var(--green), #0f4d3a); color: #fff; padding: 50px 0; position: relative; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold)); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin: 0 0 8px; font-size: 1.8rem; }
.cta-inner p { margin: 0; color: #d8ece3; max-width: 44em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: #e8f3ee; padding: 26px 0 22px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 0; }
.footer-links li { display: flex; align-items: center; gap: 10px; padding: 4px 18px; font-size: .95rem; border-left: 1px solid rgba(247,184,31,.55); }
.footer-links li:first-child { border-left: 0; }
.footer-links a, .footer-links span { color: #e8f3ee; text-decoration: none; }
.footer-links a:hover { color: var(--gold-bright); text-decoration: underline; }
.footer-links .ico { color: var(--gold-bright); }
.copyright { text-align: center; margin: 20px 0 4px; display: flex; align-items: center; justify-content: center; gap: 16px; font-size: .95rem; }
.copyright .rule { flex: 0 1 90px; height: 1px; background: var(--gold); }
.legal { text-align: center; margin: 0; font-size: .85rem; }
.legal a { color: #b9d6c9; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav ul { gap: 22px; }
  .main-nav { gap: 22px; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .brand img { width: 230px; }
  .wrap { width: min(2600px, 100% - 40px); }
  .burger { display: flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--cream);
    flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav ul a { display: block; padding: 12px 4px; }
  .navtoggle:checked ~ .main-nav { display: flex; }
  .navtoggle:focus-visible ~ .burger { outline: 3px solid var(--navy); }
  .hero { display: flex; flex-direction: column; }
  .hero-inner { order: 1; min-height: 0; }
  .hero-copy { padding: 18px 0 30px; max-width: none; }
  .hero-art { order: 2; position: relative; width: 100%; height: 340px; top: auto; right: auto; bottom: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%); mask-image: linear-gradient(180deg, transparent 0, #000 18%); }
  .hero-art img { object-position: 45% 25%; }
  .hero-bg::after { background: rgba(253,249,240,.9); }
  .wave { height: 60px; }
  .survey-strip { flex-direction: column; text-align: center; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .footer-links li { border-left: 0; padding: 4px 14px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .feature-link { padding: 22px 12px 18px; }
  .grade { flex-direction: column; }
  .grade-label { width: auto; align-self: stretch; display: flex; gap: 8px; justify-content: center; align-items: baseline; }
  .btn-lg { width: 100%; justify-content: center; }
  .copyright .rule { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- CSEC pilot ---------- */
.pilot-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; margin-bottom: 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--gold); color: var(--navy); font-weight: 800; font-size: .92rem; text-decoration: none; box-shadow: 0 4px 14px rgba(20,38,74,.10); }
.pilot-pill:hover { background: var(--gold-soft); }
.pilot-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 4px rgba(31,157,85,.2); }
.journey { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: step; }
.journey li { counter-increment: step; position: relative; background: #fff; border-radius: var(--radius); padding: 30px 24px 24px; box-shadow: var(--shadow); border-top: 5px solid var(--green-2); }
.journey li::before { content: counter(step); position: absolute; top: -18px; left: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--gold-bright); color: var(--navy); font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow); }
.journey h3 { font-size: 1.15rem; margin-bottom: .3em; }
.journey p { margin: 0; color: var(--muted); }
.subject-card .tag.next { background: #e3ecf8; color: #1b3a73; }
@media (max-width: 560px) { .pilot-pill { font-size: .82rem; } }
