/* ==========================================================================
   Montezine Nursery — montezinenursery.qa
   Palette drawn from Montessori materials: natural wood, the pink tower,
   and the deep green of a shaded garden.
   ========================================================================== */

:root {
  /* Palette sampled from the Montezine logo: brand blue #0060B0,
     sky #A8D8F0, black outline. Navy extends the blue into text weight;
     amber is the one warm note, used sparingly. */
  --ink:        #072E52;   /* deep navy — text and dominant blocks */
  --ink-soft:   #1A4C77;
  --brand:      #0060B0;   /* logo blue */
  --sky:        #A8D8F0;   /* logo light blue */
  --paper:      #FBFCFD;   /* cool off-white page */
  --mist:       #E9F2F9;   /* pale section tint */
  --mist-deep:  #B7D6EC;
  --accent:     #D9963C;   /* warm amber, complementary to the blue */
  --slate:      #55697C;   /* secondary text */
  --rule:       #D2E0EC;

  --measure: 34rem;
  --page-max: 74rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);

  --sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1.0rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --step-3:  clamp(1.95rem, 1.6rem + 1.7vw, 3.1rem);
  --step-4:  clamp(2.5rem, 1.8rem + 3.2vw, 4.6rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
a { color: inherit; }

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

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

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --- Layout ------------------------------------------------------------- */

.wrap {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(3.5rem, 8vw, 7rem); }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.band--mist { background: var(--mist); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--ink h2, .band--ink h3 { color: var(--paper); }
.band--ink p { color: #CBDCEA; }

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 32rem;
}

/* --- Header ------------------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 253, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.brand img { height: 42px; width: auto; display: block; }
.site-head .brand { gap: 0; }

.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex; align-items: baseline; gap: 0.5rem;
}
.brand span {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--slate);
  font-weight: 500;
}

.nav ul {
  display: flex; gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none; margin: 0; padding: 0;
  align-items: center;
}
.nav a {
  text-decoration: none;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  padding-block: 0.35rem;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.18s ease;
}
.nav a:hover { border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--rule);
  border-radius: 3px; padding: 0.5rem 0.75rem;
  font: inherit; font-size: var(--step--1); cursor: pointer;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .nav[hidden] { display: none; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .nav a { font-size: var(--step-0); padding-block: 0.6rem; }
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  font: inherit; font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border: 1.5px solid var(--brand);
  background: var(--brand); color: #fff;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--sky); border-color: var(--sky); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* --- Photo slots -------------------------------------------------------- */
/* Replace each .photo block with <img src="..." alt="..."> once you have
   real photography. The data-note text is a shot brief for the photographer. */

.photo {
  position: relative;
  background: var(--mist);
  border: 1px dashed var(--mist-deep);
  display: grid; place-items: center;
  padding: 1.5rem; text-align: center;
  overflow: hidden;
}
.photo::after {
  content: attr(data-note);
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--slate);
  max-width: 22ch;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo:has(img) { border: 0; padding: 0; }
.photo:has(img)::after { content: none; }

.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-11 { aspect-ratio: 1 / 1; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-169 { aspect-ratio: 16 / 9; }

/* --- Hero --------------------------------------------------------------- */

.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3.5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
}

.hero h1 { margin-bottom: 0.45em; }
.hero h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1;
}

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  margin-top: 2.25rem; padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: var(--step--1); color: var(--slate);
  max-width: var(--measure);
}

/* --- Age rail ----------------------------------------------------------- */
/* A genuine sequence: the five stages a child moves through, 3 months to 6 years. */

.rail { border-block: 1px solid var(--rule); background: var(--paper); }
.rail__head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 1rem;
  margin-bottom: 2.5rem;
}
.rail__head h2 { font-size: var(--step-2); margin: 0; }
.rail__head p { margin: 0; color: var(--slate); font-size: var(--step--1); }

.stages {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.stages::before {
  content: ""; position: absolute;
  top: 6px; left: 10%; right: 10%;
  height: 1.5px; background: var(--mist-deep);
}
.stage { position: relative; padding: 1.9rem 1rem 0 0; }
.stage::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
}
.stage:nth-child(1)::before { background: var(--sky); }
.stage:nth-child(2)::before { background: var(--mist-deep); }
.stage:nth-child(3)::before { background: var(--brand); }
.stage:nth-child(4)::before { background: var(--ink-soft); }
.stage:nth-child(5)::before { background: var(--ink); }

.stage__age {
  display: block; font-size: var(--step--1);
  color: var(--accent); font-weight: 700; margin-bottom: 0.2rem;
}
.stage__name {
  font-family: var(--serif); font-size: var(--step-1);
  display: block; margin-bottom: 0.35rem; line-height: 1.2;
}
.stage p { font-size: var(--step--1); color: var(--slate); margin: 0; }

@media (max-width: 900px) {
  .stages { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .stages::before { display: none; }
  .stage { padding-top: 1.6rem; }
}
@media (max-width: 520px) {
  .stages { grid-template-columns: 1fr; }
}

/* --- Editorial two-column ------------------------------------------------ */

.duo {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.duo--reverse .duo__media { order: 2; }
@media (max-width: 820px) {
  .duo { grid-template-columns: 1fr; }
  .duo--reverse .duo__media { order: 0; }
}

.pull {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.28;
  max-width: 20ch;
  margin: 0 0 1.25rem;
}

/* --- Quotes ------------------------------------------------------------- */

.quotes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.quote { border-left: 2px solid var(--accent); padding-left: 1.35rem; }
.quote blockquote {
  margin: 0 0 0.75rem;
  font-family: var(--serif); font-size: var(--step-1);
  line-height: 1.35; font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1;
}
.quote cite { font-style: normal; font-size: var(--step--1); color: var(--slate); }

/* --- Feature list ------------------------------------------------------- */

.features { list-style: none; margin: 0; padding: 0; }
.features li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem;
  align-items: baseline;
}
.features li:first-child { border-top: 1px solid var(--rule); }
.features strong { font-weight: 700; font-size: var(--step-0); }
.features span { color: var(--slate); font-size: var(--step--1); }
@media (max-width: 640px) {
  .features li { grid-template-columns: 1fr; gap: 0.3rem; }
}

.band--ink .features li,
.band--ink .features li:first-child { border-color: rgba(251, 252, 253, 0.18); }
.band--ink .features span { color: #A9C0D4; }

/* --- Activity tags ------------------------------------------------------ */

.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.tags li {
  border: 1px solid var(--mist-deep);
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  font-size: var(--step--1);
  background: var(--paper);
}

/* --- Gallery grid ------------------------------------------------------- */

.grid-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

/* --- Programme cards (list, not boxes) ---------------------------------- */

.programme {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.programme:last-of-type { border-bottom: 0; }
.programme:nth-child(even) .programme__media { order: 2; }
@media (max-width: 820px) {
  .programme { grid-template-columns: 1fr; }
  .programme:nth-child(even) .programme__media { order: 0; }
}
.programme__age {
  font-size: var(--step--1); font-weight: 700;
  color: var(--accent); display: block; margin-bottom: 0.4rem;
}

/* --- Form --------------------------------------------------------------- */

.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--step--1); font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--step-0);
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--mist-deep);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink); outline: none;
}
.field textarea { min-height: 7rem; resize: vertical; }
.form-note { font-size: var(--step--1); color: var(--slate); margin: 0; }

/* --- Contact rows ------------------------------------------------------- */

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.contact-list dt, .contact-list strong {
  display: block; font-size: var(--step--1);
  color: var(--slate); margin-bottom: 0.15rem;
}
.contact-list a { font-size: var(--step-1); font-family: var(--serif); text-decoration: none; border-bottom: 1px solid var(--mist-deep); }
.contact-list a:hover { border-bottom-color: var(--accent); }

.map-embed {
  aspect-ratio: 16 / 10; width: 100%; border: 0;
  background: var(--mist);
}

/* --- Footer ------------------------------------------------------------- */

.site-foot {
  background: var(--ink); color: #C2D5E4;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: var(--step--1);
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(251,252,253,0.15);
}
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }
.site-foot h4 { color: var(--paper); font-size: var(--step-0); margin-bottom: 0.9rem; }
.site-foot a { color: #C2D5E4; text-decoration: none; }
.site-foot a:hover { color: var(--paper); text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-foot .brand { color: var(--paper); }
.site-foot .brand span { color: #8FA9BF; }
.foot-base {
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  color: #8AA3B9;
}

/* --- Floating WhatsApp -------------------------------------------------- */

.wa {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: #1F8F5F; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(7, 46, 82, 0.3);
  text-decoration: none;
}
.wa svg { width: 1.7rem; height: 1.7rem; fill: currentColor; }

/* --- Utility ------------------------------------------------------------ */

.stack-sm > * + * { margin-top: 1rem; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3.5rem); }
.center-measure { max-width: 44rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
