/* Gems & Melody — site styles
   Built from the GEMS & MELODY design system (v1, Nov 2026).
   Colour, type, spacing and radius values below are the design-system tokens. */

:root {
  /* Colour: primary */
  --gm-teal: #587D83;       /* logo, marks, large headlines (24px+) */
  --gm-teal-deep: #3E5C61;  /* any teal text: headlines, links, buttons */
  --gm-paper: #F6F3EE;      /* page background */
  /* Colour: supporting */
  --gm-ink: #22383C;        /* body text */
  --gm-slate: #526164;      /* captions, codes, ages, dimensions */
  --gm-mist: #DFE8E7;       /* cool second surface */
  --gm-birch: #EDE3D3;      /* warm second surface */
  /* Colour: accent (small doses; one per layout) */
  --gm-butter: #F3D88E;
  --gm-coral: #D9785F;      /* never text */
  --gm-white: #FFFFFF;

  /* Type */
  --f-display: "Fraunces", Georgia, serif;
  --f-label: "Poppins", "Century Gothic", Avenir, system-ui, sans-serif;
  --f-body: "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 40px; --space-6: 80px;

  /* Radius: follows the G&M mark's rounded square */
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-pill: 999px;

  --max: 1200px;
  --gutter: 24px;
  --margin: 20px;
}
@media (min-width: 760px) { :root { --margin: 40px; } }
@media (min-width: 1100px) { :root { --margin: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--gm-paper);
  color: var(--gm-ink);
  font: 400 16px/25px var(--f-body);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--gm-teal-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gm-teal-deep); outline-offset: 3px; border-radius: var(--radius-sm); }
p { margin: 0 0 var(--space-3); }
ul, ol { margin: 0 0 var(--space-3); padding-left: 1.2em; }
li { margin-bottom: var(--space-2); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--gm-teal-deep); color: var(--gm-white); padding: 10px 16px; border-radius: var(--radius-pill); z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--margin)); margin: 0 auto; padding: 0 var(--margin); }

/* ---------- Type styles (design-system scale) ---------- */
.display-xl, .display-l, .display-m, h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 100;
  color: var(--gm-teal-deep);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
.display-xl { font-size: clamp(36px, 6vw, 52px); line-height: 1.12; letter-spacing: -0.01em; }
.display-l, h1 { font-size: clamp(30px, 4.4vw, 38px); line-height: 1.16; }
.display-m, h2 { font-size: clamp(23px, 3vw, 26px); line-height: 1.23; }
h3 { font-size: 20px; line-height: 1.3; }
.quote { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 22px; line-height: 30px; color: var(--gm-teal-deep); }
.eyebrow {
  font: 500 12px/16px var(--f-label);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gm-teal-deep);
  margin: 0 0 var(--space-2);
}
.label-l { font: 500 15px/20px var(--f-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gm-teal-deep); }
.body-l, .lead { font-size: 18px; line-height: 28px; }
.caption { font-size: 13px; line-height: 19px; color: var(--gm-slate); }
.measure { max-width: 62ch; }

/* Age badge: Poppins 600 caps on a butter or mist pill */
.badge {
  display: inline-block;
  font: 600 13px/16px var(--f-label); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gm-ink);
  background: var(--gm-mist);
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.badge--butter { background: var(--gm-butter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  font: 700 15px/20px var(--f-body);
  border-radius: var(--radius-pill);
  text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--gm-teal-deep);
  background: var(--gm-teal-deep); color: var(--gm-white);
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--gm-ink); border-color: var(--gm-ink); }
.btn--ghost { background: transparent; color: var(--gm-teal-deep); }
.btn--ghost:hover { background: var(--gm-teal-deep); color: var(--gm-white); border-color: var(--gm-teal-deep); }
.btn--light { background: var(--gm-paper); color: var(--gm-teal-deep); border-color: var(--gm-paper); }
.btn--light:hover { background: var(--gm-white); border-color: var(--gm-white); color: var(--gm-teal-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-4); }

/* ---------- Header ---------- */
.site-header { background: var(--gm-paper); border-bottom: 1px solid var(--gm-mist); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 84px; }
.brand { display: block; padding: 12px 0; flex: none; }
.brand img { width: 160px; } /* final stacked logo at its 160px screen minimum */
.nav { display: flex; align-items: center; gap: var(--space-4); }
.nav a {
  font: 500 12px/16px var(--f-label); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gm-teal-deep); text-decoration: none; padding: 14px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gm-teal); }
.nav .btn { font: 700 15px/20px var(--f-body); letter-spacing: 0; text-transform: none; color: var(--gm-white); padding: 10px 20px; min-height: 44px; border-bottom: 1.5px solid var(--gm-teal-deep); }
.nav .btn:hover { border-bottom-color: var(--gm-ink); }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
    background: transparent; border: 1.5px solid var(--gm-teal-deep); border-radius: var(--radius-pill);
    font: 700 15px/20px var(--f-body); color: var(--gm-teal-deep); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--gm-paper); border-bottom: 1px solid var(--gm-mist);
    padding: 8px var(--margin) 24px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--gm-mist); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gm-mist); color: var(--gm-ink); }
  .nav .btn { margin-top: 16px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--space-6) 0; }
.section--tight { padding: var(--space-5) 0; }
.band-mist { background: var(--gm-mist); }
.band-birch { background: var(--gm-birch); }
.band-white { background: var(--gm-white); }
.band-teal { background: var(--gm-teal-deep); color: var(--gm-white); }
.band-teal h2, .band-teal h3, .band-teal .eyebrow, .band-teal .display-l, .band-teal .display-m { color: var(--gm-white); }
.band-teal a { color: var(--gm-white); }
.section-head { max-width: 720px; margin-bottom: var(--space-5); }
.section-head p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: var(--gutter); }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 700px) and (max-width: 999px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Hero ---------- */
.hero { padding: var(--space-5) 0 var(--space-6); }
.hero .wrap { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: var(--space-6); } }
.hero-art {
  position: relative; aspect-ratio: 4 / 4.2; border-radius: var(--radius-lg);
  background: var(--gm-birch); overflow: hidden; display: grid; place-items: center;
}
.hero-art .circle { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; background: var(--gm-butter); right: 9%; top: 11%; }
.hero-art svg { position: relative; width: 62%; color: var(--gm-teal-deep); }
.hero-note { position: absolute; left: 20px; bottom: 16px; right: 20px; margin: 0; }

/* ---------- Cards ---------- */
.card { background: var(--gm-white); border-radius: var(--radius-md); padding: var(--space-4); }
.card--mist { background: var(--gm-mist); }
.card--paper { background: var(--gm-paper); }
.card h3 { margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }

.icon-dot { width: 56px; height: 56px; border-radius: 50%; background: var(--gm-mist); display: grid; place-items: center; margin-bottom: var(--space-3); color: var(--gm-teal-deep); }
.band-mist .icon-dot { background: var(--gm-paper); }
.icon-dot svg { width: 28px; height: 28px; }

/* Product cards */
.product { display: flex; flex-direction: column; gap: var(--space-3); }
.product-frame {
  aspect-ratio: 1; border-radius: var(--radius-md); background: var(--gm-birch);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.product-frame .circle { position: absolute; width: 64%; aspect-ratio: 1; border-radius: 50%; background: var(--gm-paper); opacity: .75; }
.product-frame svg { position: relative; width: 54%; color: var(--gm-teal-deep); }
.product-frame .photo-note { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; margin: 0; }
.product h3 { margin: 0; font-size: 23px; line-height: 1.25; }
.product p { margin: 0; }
.product .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Product detail rows (collection page) */
.piece { display: grid; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--gm-mist); align-items: center; }
.piece:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 860px) {
  .piece { grid-template-columns: 5fr 7fr; gap: var(--space-5); }
  .piece:nth-of-type(even) .product-frame { order: 2; }
}
.piece .product-frame { aspect-ratio: 5 / 4; }
.specs { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: 0; border-top: 1px solid var(--gm-mist); }
.specs li { display: grid; grid-template-columns: 130px 1fr; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--gm-mist); margin: 0; font-size: 15px; }
.specs li span:first-child { font: 500 12px/22px var(--f-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gm-slate); }

/* Lists */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gm-mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E5C61' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.band-mist .ticks li::before { background-color: var(--gm-paper); }

/* Steps (How we work) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gutter); counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.steps li { counter-increment: step; background: var(--gm-white); border-radius: var(--radius-md); padding: var(--space-4); margin: 0; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gm-butter); color: var(--gm-ink); font: 600 15px/1 var(--f-label); margin-bottom: var(--space-3);
}
.steps h3 { font-size: 19px; margin-bottom: var(--space-2); }
.steps p { margin: 0; font-size: 15px; line-height: 23px; }

/* Terms table */
.terms { display: grid; gap: var(--gutter); }
@media (min-width: 800px) { .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.terms .card h3 { font-size: 21px; }

/* Split feature */
.split { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }

/* Callout panel */
.panel { border-radius: var(--radius-lg); padding: var(--space-5) var(--space-4); }
@media (min-width: 760px) { .panel { padding: var(--space-6) var(--space-6); } }
.panel--teal { background: var(--gm-teal-deep); color: var(--gm-white); }
.panel--teal h2, .panel--teal .eyebrow { color: var(--gm-white); }
.panel--teal p { color: var(--gm-paper); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-4); }
.form-row { display: grid; gap: var(--space-4); }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font: 500 12px/16px var(--f-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gm-teal-deep); }
.field .hint { font-size: 13px; line-height: 19px; color: var(--gm-slate); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 16px/24px var(--f-body); color: var(--gm-ink);
  background: var(--gm-white); border: 1.5px solid var(--gm-mist); border-radius: var(--radius-sm);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gm-teal-deep); box-shadow: 0 0 0 3px var(--gm-mist); }
.field select { appearance: none; background: var(--gm-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E5C61' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.chips legend { margin-bottom: 10px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--gm-mist); background: var(--gm-white); font: 400 15px/20px var(--f-body); cursor: pointer;
}
.chip input:checked + span { border-color: var(--gm-teal-deep); background: var(--gm-mist); color: var(--gm-ink); font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--gm-teal-deep); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--gm-mist); margin: 0; }
.form-status[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gm-teal-deep); color: var(--gm-paper); padding: var(--space-6) 0 var(--space-5); margin-top: 0; }
.site-footer a { color: var(--gm-white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; gap: var(--space-5); }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-logo { width: 200px; margin-bottom: var(--space-3); }
.footer-tagline { font-family: var(--f-display); font-style: italic; font-size: 20px; line-height: 28px; color: var(--gm-white); margin: 0 0 var(--space-3); }
.site-footer h2 { font: 500 12px/16px var(--f-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gm-paper); margin: 0 0 var(--space-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid rgba(246, 243, 238, .25); font-size: 13px; line-height: 19px; }
.footer-bottom .seal { width: 36px; flex: none; }
.footer-bottom .legal { display: flex; align-items: center; gap: var(--space-3); }

/* Utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: var(--space-3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Enquiry-type chips are labels inside a field: keep them in body type, not label caps */
.field .chip { font: 400 15px/20px var(--f-body); letter-spacing: 0; text-transform: none; color: var(--gm-ink); }

/* ---------- Photography ----------
   Mood shots only: children's hands and feet at play, never faces. Soft corners from radius tokens. */
.photo { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--gm-birch); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--hero { aspect-ratio: 4 / 4.4; }
.photo--wide { aspect-ratio: 16 / 10; }
.photo--square { aspect-ratio: 1; border-radius: var(--radius-md); }
.photo--tall { aspect-ratio: 4 / 5; border-radius: var(--radius-md); }
.moments { display: grid; gap: var(--gutter); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) { .moments { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.moment { margin: 0; }
.moment figcaption { margin-top: var(--space-3); }
.moment figcaption strong { display: block; font-family: var(--f-display); font-weight: 500; font-variation-settings: "SOFT" 100; font-size: 20px; line-height: 26px; color: var(--gm-teal-deep); margin-bottom: 4px; }
.moment figcaption span { font-size: 15px; line-height: 22px; color: var(--gm-slate); }
.hero-tagline { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 22px; line-height: 30px; color: var(--gm-teal-deep); margin: 0 0 var(--space-3); }
.credits { font-size: 13px; line-height: 19px; color: var(--gm-slate); }

/* Preschool needs cards */
.need { display: flex; flex-direction: column; }
.need .need-how { margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--gm-mist); margin-bottom: var(--space-3); }
.need > p:not(.eyebrow) { margin-bottom: var(--space-4); }
.band-birch .card .specs { border-top: 0; }
.band-birch .card .specs li:last-child { border-bottom: 0; }
