/* Casandra Education Services
   Palette: eucalypt, paper, ink, pencil, sage, muted */
:root {
  --eucalypt: #1F4D3A;
  --eucalypt-deep: #163A2B;
  --paper: #F6F8F4;
  --ink: #17221E;
  --pencil: #F2C230;
  --sage: #DCE6DC;
  --muted: #4D5C55;
  --line: #C9D5CB;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.875rem, 1.4rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.375rem, 1.6rem + 3.4vw, 3.75rem);

  --wrap: 72rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--eucalypt); text-underline-offset: 0.18em; }
a:hover { color: var(--eucalypt-deep); }

:focus-visible {
  outline: 3px solid var(--pencil);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); max-width: 22ch; }
h3 { font-size: var(--step-1); line-height: 1.3; }

p { margin: 0 0 1em; max-width: 65ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 48rem; }

.skip {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 20;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 248, 244, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.85rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 1.375rem; line-height: 1; }
.brand-sub {
  display: block; font-family: var(--sans); font-size: 0.75rem;
  color: var(--muted); letter-spacing: 0.02em; margin-top: 0.3rem;
}
.site-nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.95rem; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--eucalypt); text-decoration: underline; }
.site-nav .nav-cta {
  background: var(--eucalypt); color: #fff; padding: 0.5rem 1rem; border-radius: 6px;
}
.site-nav .nav-cta:hover { background: var(--eucalypt-deep); color: #fff; text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block; font: inherit; font-weight: 600;
  padding: 0.85rem 1.4rem; border-radius: 6px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--eucalypt); color: #fff; }
.btn-primary:hover { background: var(--eucalypt-deep); color: #fff; }
.btn-quiet { color: var(--eucalypt); border-color: var(--eucalypt); background: transparent; }
.btn-quiet:hover { background: var(--sage); }

/* Hero */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-status {
  display: inline-block; font-weight: 600; font-size: var(--step--1);
  color: var(--eucalypt); background: var(--sage);
  padding: 0.3rem 0.75rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.hero h1 { max-width: 14ch; }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* The term tracker: the signature element */
.term { margin: 0; }
.term-weeks {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem;
}
.term-weeks li {
  position: relative; aspect-ratio: 1 / 1.08;
  border: 2px solid var(--eucalypt); border-radius: 8px;
  padding: 0.55rem; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--eucalypt); color: #fff;
  animation: fill 0.45s ease-out both;
}
.term-weeks li span { font-size: 0.8rem; font-weight: 600; }
.term-weeks li small {
  font-size: 0.72rem; line-height: 1.25; font-weight: 500;
  border-top: 3px solid var(--pencil); padding-top: 0.3rem;
}
.term-weeks li:nth-child(1)  { animation-delay: 0.15s; }
.term-weeks li:nth-child(2)  { animation-delay: 0.27s; }
.term-weeks li:nth-child(3)  { animation-delay: 0.39s; }
.term-weeks li:nth-child(4)  { animation-delay: 0.51s; }
.term-weeks li:nth-child(5)  { animation-delay: 0.63s; }
.term-weeks li:nth-child(6)  { animation-delay: 0.75s; }
.term-weeks li:nth-child(7)  { animation-delay: 0.87s; }
.term-weeks li:nth-child(8)  { animation-delay: 0.99s; }
.term-weeks li:nth-child(9)  { animation-delay: 1.11s; }
.term-weeks li:nth-child(10) { animation-delay: 1.23s; }
@keyframes fill {
  from { background: transparent; color: var(--eucalypt); }
  to   { background: var(--eucalypt); color: #fff; }
}
.term figcaption { margin-top: 1rem; color: var(--muted); font-size: var(--step--1); max-width: 46ch; }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-tint { background: var(--sage); }
.section-lede { font-size: var(--step-1); color: var(--muted); line-height: 1.55; margin-bottom: 2.5rem; }
.section-tint .section-lede { color: #3E4D46; }

.principles {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 3.5rem;
}
.principles article { border-top: 2px solid var(--eucalypt); padding-top: 1.1rem; }
.principles p { color: var(--muted); margin: 0; }

.honest {
  margin-top: 3.5rem; padding: 1.75rem 2rem;
  border-left: 6px solid var(--pencil); background: #fff;
  border-radius: 0 8px 8px 0;
}
.honest p { margin: 0; }

/* Programs */
.programs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.program {
  background: var(--paper); border-radius: 10px; padding: 2rem;
  display: flex; flex-direction: column;
}
.program-years { font-weight: 600; color: var(--eucalypt); margin-bottom: 0.4rem; }
.program ul { margin: 0 0 1.5rem; padding-left: 1.2rem; color: var(--muted); }
.program li { margin-bottom: 0.35rem; }
.fee {
  margin: auto 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line);
  color: var(--muted);
}
.fee strong { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); color: var(--ink); margin-right: 0.35rem; }
.fine { font-size: var(--step--1); color: #3E4D46; margin-top: 1.5rem; }

/* Location */
.location { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.suburbs {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.suburbs li {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 0.4rem 0.9rem; font-size: 0.95rem;
}
.suburbs .suburb-centre {
  background: var(--eucalypt); border-color: var(--eucalypt); color: #fff; font-weight: 600;
}

/* FAQ */
details { border-bottom: 1px solid #B9C8BC; }
details:first-of-type { border-top: 1px solid #B9C8BC; }
summary {
  cursor: pointer; padding: 1.15rem 2rem 1.15rem 0; position: relative;
  font-weight: 600; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--eucalypt);
}
details[open] summary::after { content: "\2212"; }
details p { color: #3E4D46; padding-bottom: 1.1rem; margin: 0; }

/* Register */
.register { background: var(--eucalypt); color: #fff; }
.register h2 { color: #fff; }
.register a { color: var(--pencil); }
.register-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.register-copy p { color: #D6E3DA; }

.form { background: var(--paper); color: var(--ink); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 10px; }
.form a { color: var(--eucalypt); }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.1rem; flex: 1; }
.field-row { display: flex; gap: 1rem; }
label { font-weight: 600; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #A9B9AD; border-radius: 6px; padding: 0.7rem 0.8rem; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--eucalypt); outline: 3px solid var(--pencil); outline-offset: 1px; }
.form.checked :invalid { border-color: #A3341F; }
.field-check { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0.5rem 0 1.5rem; }
.field-check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; flex: none; accent-color: var(--eucalypt); }
.field-check label { font-weight: 400; font-size: 0.92rem; }
.form-status {
  background: #FBEDE9; color: #7A2414; border-left: 4px solid #A3341F;
  padding: 0.8rem 1rem; margin-bottom: 1.25rem; border-radius: 0 6px 6px 0; font-size: 0.95rem;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--eucalypt-deep); color: #C5D4CA; padding-block: 2.5rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.site-footer strong { color: #fff; font-weight: 600; }
.copyright { align-self: flex-end; }

/* Simple page (privacy, thanks) */
.page { padding-block: clamp(3rem, 7vw, 5.5rem); }
.page h2 { font-size: var(--step-2); margin-top: 2rem; }

/* Responsive */
@media (max-width: 900px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .hero-inner, .location, .register-inner { grid-template-columns: minmax(0, 1fr); }
  .programs, .principles { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { flex-direction: column; gap: 0; }
  .term-weeks { gap: 0.4rem; }
  .term-weeks li { padding: 0.4rem; border-radius: 6px; }
  .term-weeks li span { font-size: 0.68rem; }
  .term-weeks li small { font-size: 0.58rem; border-top-width: 2px; }
  .term-weeks li { aspect-ratio: 1 / 1.25; }
  .brand-sub { display: none; }
  .honest { padding: 1.25rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .term-weeks li { animation: none; }
}
