/* =========================================================
   Ark Learning — site styles
   Palette from the logo and the Ark Standard PPT background:
     logo blue  #0082C8   (decorative only; text uses --blue-700)
     sky        #8FD8F8 -> white   waves #26ABE3 / #45C8F4
     yellow     #FFE45C   (accents only, never text on white)
   ========================================================= */

:root {
  --blue-900: #0B3550;
  --blue-700: #006BA6;   /* 5.7:1 on white */
  --blue-500: #0082C8;
  --blue-300: #45C8F4;
  --blue-100: #E7F6FD;
  --sky-top:  #8FD8F8;
  --yellow:   #FFE45C;
  --yellow-600: #F2C500;
  --ink:      #1C2B36;
  --muted:    #4A5D6B;   /* 6.6:1 on white */
  --line:     #DCE9F1;
  --white:    #FFFFFF;
  --tint:     #F4FAFE;

  --radius: 16px;
  --shadow: 0 6px 24px rgba(11, 53, 80, .08);
  --container: 1180px;
  --header-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; color: var(--blue-900); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }

a { color: var(--blue-700); text-underline-offset: .2em; }
a:hover { color: var(--blue-900); }

:focus-visible {
  outline: 3px solid var(--blue-700);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: .6em 1em;
  background: var(--blue-900);
  color: var(--white);
  border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- buttons ---------- */
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--blue-700); color: var(--white); }
.btn-primary:hover { background: var(--blue-900); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--blue-900); border-color: var(--yellow-600); }
.btn-secondary:hover { background: var(--yellow); color: var(--blue-900); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand img { width: clamp(170px, 22vw, 230px); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0; padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: .55em .9em;
  border-radius: 8px;
  font-weight: 600;
  font-size: .97rem;
  color: var(--blue-900);
  text-decoration: none;
}
.site-nav a:hover { background: var(--blue-100); }
.site-nav a[aria-current="true"] { color: var(--blue-700); box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 8px 8px 0 0; }
.site-nav .nav-cta { background: var(--blue-700); color: var(--white); margin-left: 8px; border-radius: 999px; padding-inline: 1.2em; }
.site-nav .nav-cta:hover { background: var(--blue-900); color: var(--white); }
.site-nav .nav-cta[aria-current="true"] { box-shadow: none; border-radius: 999px; color: var(--white); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--blue-900);
  font: 600 .95rem var(--font);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

/* ---------- sky background (from the PPT master) ---------- */
.sky {
  position: relative;
  background: linear-gradient(180deg, var(--sky-top) 0%, #C9EAFD 28%, #EDF8FE 60%, var(--white) 100%);
}
.sky-reverse {
  background: linear-gradient(0deg, #CFEFFD 0%, #EDF8FE 45%, var(--white) 100%);
}

.clouds { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cloud { position: absolute; fill: var(--white); height: auto; }
.cloud.c1 { width: 92px;  top: 26px;  left: 4%; }
.cloud.c2 { width: 56px;  top: 70px;  left: 30%; opacity: .9; }
.cloud.c3 { width: 74px;  top: 18px;  left: 58%; }
.cloud.c4 { width: 104px; top: 54px;  right: 4%; }

/* ---------- hero ---------- */
.hero { overflow: hidden; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(56px, 8vw, 104px) clamp(90px, 9vw, 130px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.1em;
  padding: .3em .9em;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-700);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.underline {
  background: linear-gradient(transparent 68%, var(--yellow) 68%, var(--yellow) 92%, transparent 92%);
  padding-inline: .05em;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 1.6em;
}

.hero-media { margin: 0; }
.hero-media img {
  width: 100%;
  border-radius: 20px;
  border: 6px solid var(--white);
  box-shadow: 0 16px 40px rgba(11, 53, 80, .16);
  aspect-ratio: 1600 / 840;
  object-fit: cover;
}

.waves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  pointer-events: none;
}
.wave { width: 100%; height: clamp(48px, 6vw, 80px); }
.boat {
  position: absolute;
  right: 9%;
  bottom: clamp(26px, 3.2vw, 44px);
  width: clamp(64px, 7vw, 104px);
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 8vw, 104px); }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }

.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p:last-child { margin-bottom: 0; }
.section-head > p:not(.kicker) { color: var(--muted); font-size: 1.08rem; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: .6em;
  color: var(--blue-700);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 28px; height: 4px;
  border-radius: 4px;
  background: var(--yellow-600);
}

/* ---------- about ---------- */
.vmv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.vmv-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue-300);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.vmv-card:nth-child(2) { border-top-color: var(--yellow-600); }
.vmv-card:nth-child(3) { border-top-color: var(--blue-500); }
.vmv-card img {
  width: auto;
  height: 132px;
  margin: 0 auto 20px;
}
.vmv-card p { color: var(--muted); margin: 0; }

.tick-list, .pill-list, .topic-list { list-style: none; margin: 0; padding: 0; }

.tick-list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: .6em;
  color: var(--muted);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: .7em; height: .38em;
  border-left: 2px solid var(--blue-700);
  border-bottom: 2px solid var(--blue-700);
  transform: rotate(-45deg);
}

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li {
  padding: .35em .9em;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-900);
  font-size: .95rem;
  font-weight: 600;
}

/* ---------- programs ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.program-card {
  padding: 30px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.program-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue-700);
  box-shadow: inset 0 -4px 0 var(--yellow);
}
.program-icon svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-list li {
  padding: .5em 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.topic-list li:first-child { border-top: 0; }

/* ---------- past records ---------- */
.table-wrap {
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.records { width: 100%; border-collapse: collapse; }
.records th, .records td {
  padding: 16px 22px;
  text-align: left;
  border-top: 1px solid var(--line);
}
.records thead th {
  border-top: 0;
  background: var(--blue-700);
  color: var(--white);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.records tbody th { font-weight: 600; color: var(--blue-900); }
.records tbody tr:nth-child(even) { background: var(--tint); }
.records td { font-weight: 700; color: var(--blue-700); white-space: nowrap; }

/* ---------- contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.contact { padding-bottom: clamp(110px, 12vw, 160px); }
.contact .section-head { margin-bottom: 0; }
.contact .section-head .btn { margin-top: 1.4em; overflow-wrap: anywhere; white-space: normal; text-align: center; }

.contact-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow-600);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-card dl { margin: 0; display: grid; gap: 18px; }
.contact-card dt {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-card dd { margin: 4px 0 0; }
.contact-card address { font-style: normal; }
.contact-card a { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--white);
  font-size: .95rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: 40px 24px;
}
.footer-brand img { width: 190px; margin-bottom: 14px; }
.footer-brand p { margin: 0; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0; padding: 0;
  list-style: none;
}
.footer-nav a { color: var(--blue-900); font-weight: 600; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 28px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.footer-bottom p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .vmv-grid, .card-grid { grid-template-columns: 1fr 1fr; }
  .vmv-card:last-child, .program-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .hero-inner { grid-template-columns: 1fr; }
  .lead { max-width: 46ch; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(11, 53, 80, .1);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; }
  .site-nav a { padding: .8em .4em; border-radius: 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="true"] { box-shadow: inset 4px 0 0 var(--yellow); padding-left: .9em; border-radius: 0; }
  .site-nav .nav-cta { margin: 12px 0 0; text-align: center; border-bottom: 0; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .vmv-grid, .card-grid { grid-template-columns: 1fr; }
  .vmv-card, .program-card, .contact-card { padding: 24px 20px; }
  .vmv-card img { height: 112px; }
  .button-row .btn { flex: 1 1 100%; }
  .records th, .records td { padding: 14px 16px; }
  .records td { white-space: normal; }
  .cloud.c2, .cloud.c3 { display: none; }
  .cloud.c1, .cloud.c4 { width: 56px; top: 8px; }
}

@media (max-width: 599px) {
  .hero-media img { aspect-ratio: 720 / 560; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
