/* =====================================================================
   Doodlebugs Nursery — Shared Stylesheet
   Design system: Oxford blue + mint/teal, clean & trustworthy.
   Used by every page. Edit colours/spacing here once.
   ===================================================================== */

/* ---- Fonts ---------------------------------------------------------- */
/* Plain humanist sans, matching the original screenshots exactly —
   one family for headings and body, differentiated by weight only. */
@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700;800&display=swap');

/* ---- Design tokens -------------------------------------------------- */
:root {
  /* Brand colours */
  --oxford:        #1a237e;   /* deep navy — headings, nav, footer */
  --oxford-dark:   #141a5e;   /* darker navy for gradients/footer */
  --oxford-deep:   #0f1547;   /* deepest navy */
  --teal:          #1f8a8a;   /* mint/teal accent */
  --teal-bright:   #2bb6a8;   /* brighter teal for hero gradient end */
  --teal-hero:     #0d8a8a;   /* solid hero / CTA background (matches screenshots) */
  --teal-deep:     #0a6e6e;   /* darker teal for hover/borders */
  --mint-soft:     #e4f3f1;   /* soft mint tile backgrounds */
  --cream:         #fbf6ec;   /* warm callout + 'A Glimpse Inside' bg */

  /* Neutrals */
  --ink:           #1f2433;   /* primary body text */
  --ink-soft:      #5b6275;   /* secondary text */
  --line:          #e6e8ef;   /* hairline borders */
  --bg:            #ffffff;
  --bg-alt:        #f3f4f7;   /* light grey section bg */

  /* Type — single plain sans, weight-differentiated (matches screenshots) */
  --font-display: 'Mulish', system-ui, -apple-system, sans-serif;
  --font-body:    'Mulish', system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw:        1180px;
  --maxw-narrow:  900px;
  --radius:        14px;
  --radius-lg:     20px;
  --radius-pill:  999px;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(20,26,94,.06), 0 1px 2px rgba(20,26,94,.04);
  --shadow-md: 0 8px 24px rgba(20,26,94,.08);
  --shadow-lg: 0 18px 48px rgba(15,21,71,.16);
  --gradient-hero: var(--teal-hero);   /* solid teal, matches screenshots (not a gradient) */
  --transition: .22s ease;
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--oxford);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---- Layout helpers ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section--cream { background: var(--cream); }
.section--tight { padding: 56px 0; }

/* "A Glimpse Inside" — 4-col x 2-row photo grid on cream */
.glimpse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.glimpse-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius);
  transition: var(--transition);
}
.glimpse-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .98rem;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--oxford); color: #fff; }
.btn--block { display: flex; width: 100%; margin-top: 6px; }
.btn--primary:hover { background: var(--oxford-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--oxford); border-color: var(--oxford); }
.btn--ghost:hover { background: var(--oxford); color: #fff; transform: translateY(-2px); }

.btn--on-dark { background: #fff; color: var(--oxford); }
.btn--on-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn--ghost-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-on-dark:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---- Header / Nav --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
/* Header spans the full screen width; its inner nav is NOT inside the
   centred .container — logo sits hard-left, nav group hard-right. */
.site-header .container {
  max-width: none;
  width: 100%;
  padding: 0 40px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
  width: 100%;
}
/* Right-hand group: the three pill links + Enquire Now together */
.nav__group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.nav__logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav__logo img { height: 80px; width: auto; }
.nav__logo-fallback {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--oxford);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
}
.nav__links a {
  font-weight: 700;
  font-size: .95rem;
  color: var(--teal-hero);
  padding: 11px 26px;
  border: 1.5px solid var(--teal-hero);
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  background: var(--teal-hero);
  color: #fff;
}

/* Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  color: var(--teal-hero);
  cursor: pointer;
  padding: 11px 22px;
  border: 1.5px solid var(--teal-hero);
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.nav__dropdown-toggle:hover,
.nav__dropdown[data-open="true"] .nav__dropdown-toggle {
  background: var(--teal-hero);
  color: #fff;
}
.nav__dropdown-toggle svg { transition: transform var(--transition); }
.nav__dropdown[data-open="true"] .nav__dropdown-toggle svg { transform: rotate(180deg); }
.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 230px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.nav__dropdown[data-open="true"] .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-menu a {
  display: block;
  padding: 11px 16px;
  border: none;
  border-radius: 9px;
  font-size: .95rem;
  color: var(--ink);
}
.nav__dropdown-menu a:hover { background: var(--mint-soft); color: var(--teal-hero); }

.nav__cta { margin-left: 4px; }
/* The Enquire item that lives inside the menu list is mobile-only;
   on desktop the standalone .nav__cta--desktop button is used instead. */
.nav__links-cta { display: none; }
.nav__cta .btn {
  background: var(--teal-hero);
  color: #fff;
  border: 1.5px solid var(--teal-hero);
}
.nav__cta .btn:hover { background: var(--oxford); border-color: var(--oxford); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Mobile nav toggle — hidden on desktop, appears after the group on mobile */
.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  order: 9;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--oxford);
  margin: 5px 0;
  transition: var(--transition);
}

/* ---- Hero (solid teal band) ----------------------------------------- */
.hero {
  background: var(--teal-hero);
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* Decorative 'doodlebugs' swirl motif — spans the full height of the
   hero, extending from the bottom edge to the top. Just the curls,
   never readable as a letter. */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2%;
  width: auto;
  aspect-ratio: 279 / 271;
  height: 100%;
  background: url('logo/swirl-white.png') no-repeat center / contain;
  opacity: .09;
  transform: scaleY(1.4);
  transform-origin: center;
  pointer-events: none;
  z-index: 0;
}
.hero__inner { padding: 76px 0 88px; position: relative; z-index: 1; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 18px;
  white-space: nowrap;
}
.hero h1 .accent { color: var(--teal-bright); }
.hero p { font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 460px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero__badge::before { content: "★"; color: var(--teal-bright); }
/* Wrapper so the logo pill sits above the badge */
.hero__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.hero__badge { margin-bottom: 0; }
/* Non-interactive pill, same styling as the badge, holding the white logo */
.hero__logo-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  padding: 16px 38px;
  border-radius: var(--radius-pill);
}
.hero__logo-pill img {
  height: 84px;
  width: auto;
  display: block;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* Page hero (interior pages — shorter) */
.page-hero { background: var(--gradient-hero); color: #fff; position: relative; overflow: hidden; }
.page-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .16;
}
.page-hero__inner { padding: 64px 0 70px; position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 580px; }

/* ---- Home hero split ------------------------------------------------ */
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero__media { position: relative; }
.hero__media .img-main {
  width: 100%;
  aspect-ratio: 4/5;
  max-height: 560px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero__media .img-inset {
  position: absolute;
  bottom: -28px;
  left: -28px;
  width: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 5px solid #fff;
  box-shadow: var(--shadow-lg);
}

/* ---- Cards ---------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Nursery summary card (home) */
.nursery-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.nursery-card__body { padding: 26px; }
.nursery-card__body h3 { font-size: 1.4rem; margin-bottom: 10px; }
.nursery-card__body p { color: var(--ink-soft); margin-bottom: 16px; font-size: .98rem; }
.link-arrow {
  font-weight: 700;
  color: var(--oxford);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .95rem;
}
.link-arrow:hover { color: var(--teal); gap: 10px; }

/* Feature tile (Why Doodlebugs / Work With Us) */
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.feature__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--mint-soft);
  border-radius: 12px;
  color: var(--teal);
  margin-bottom: 18px;
}
.feature h3 { font-size: 1.15rem; margin-bottom: 9px; }
.feature p { color: var(--ink-soft); font-size: .95rem; }

/* Room cards */
.room-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; transition: var(--transition); }
.room-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.room-card img { width:100%; aspect-ratio: 16/11; object-fit: cover; }
.room-card__body { padding: 22px; }
.room-card__age { font-size:.78rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color: var(--teal); }
/* Perth & Kinross Council logo shown in the pre-school room card */
.pk-logo {
  display: block;
  width: 150px;
  height: auto;
  margin: 14px 0 4px;
  border-radius: 6px;
}
.room-card__body .pk-logo { width: 110px; }
.room-card__body h3 { font-size: 1.25rem; margin: 6px 0 10px; }
.room-card__body p { color: var(--ink-soft); font-size: .92rem; }

/* ---- Galleries ------------------------------------------------------ */
.gallery-grid { display: grid; gap: 18px; }
.gallery-grid--4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid--quad { grid-template-columns: repeat(2, 1fr); }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery-grid--quad img { aspect-ratio: 4/3; }

/* ---- Testimonials --------------------------------------------------- */
.quote-card {
  background: #fefdfb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
}
.quote-card::before {
  content: "\201C";
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  color: var(--mint-soft);
  position: absolute;
  top: 14px;
  left: 22px;
}
.quote-card p { position: relative; z-index: 1; font-style: italic; color: var(--ink); margin-bottom: 16px; padding-top: 16px; }
.quote-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--oxford);
  font-size: .92rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5em;
}
.quote-card cite .cite-logo {
  display: block;
  height: 4em;
  width: auto;
  margin: 0;
}

/* ---- Two-column text + media (About) -------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split__text h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 18px; }
.split__text p { color: var(--ink-soft); margin-bottom: 14px; }

/* ---- Find Us -------------------------------------------------------- */
.findus { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.findus h2 { font-size: clamp(1.8rem,3vw,2.2rem); margin-bottom: 14px; }
.findus p { color: var(--ink-soft); margin-bottom: 24px; }
.info-row { display: flex; gap: 14px; margin-bottom: 18px; }
.info-row__icon { color: var(--teal); flex-shrink: 0; margin-top: 3px; }
.info-row__label { font-weight: 700; color: var(--oxford); font-size: .95rem; }
.info-row__val { color: var(--ink-soft); font-size: .95rem; }
.info-row__val a { color: var(--teal); }
.map-embed {
  width: 100%;
  min-height: 340px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

/* ---- CTA band ------------------------------------------------------- */
.cta-band {
  background: var(--gradient-hero);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Callout panel (cream — How to Apply) --------------------------- */
.callout {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 38px 40px;
}
.callout h3 { font-size: 1.5rem; margin-bottom: 14px; }
.callout p { color: var(--ink-soft); margin-bottom: 12px; }
.callout strong { color: var(--oxford); }
.callout a { color: var(--teal); font-weight: 600; }

/* ---- Forms ---------------------------------------------------------- */
.form { max-width: 660px; margin: 0 auto; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: .92rem;
  color: var(--oxford);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31,138,138,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field__error {
  display: none;
  color: #c0392b;
  font-size: .85rem;
  margin-top: 6px;
}
.field--invalid input,
.field--invalid select,
.field--invalid textarea { border-color: #c0392b; }
.field--invalid .field__error { display: block; }
.form__note {
  font-size: .86rem;
  color: var(--ink-soft);
  margin-top: 8px;
  text-align: center;
}

/* Contact cards (enquiry page) */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { font-size: 1.2rem; margin-bottom: 16px; }
.contact-card .info-row { margin-bottom: 12px; }

/* ---- Footer --------------------------------------------------------- */
.site-footer {
  background: var(--oxford-deep);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col .brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 12px;
}
/* White Doodlebugs logo in the footer (replaces the text wordmark) */
.footer-logo {
  display: block;
  height: 104px;
  width: auto;
  margin-bottom: 16px;
}
/* Inline Doodlebugs logo used inside subheadings in place of the word */
.heading-logo {
  display: inline-block;
  height: 2.1em;
  width: auto;
  vertical-align: -0.32em;
  margin: 0 0.1em;
}
.footer-col p { font-size: .92rem; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .92rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--teal-bright); }
.footer-bottom {
  text-align: center;
  padding-top: 28px;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ---- Reveal-on-scroll ---------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Placeholder image styling ------------------------------------- */
.ph {
  background: linear-gradient(135deg, var(--mint-soft), #d4e9e6);
  display: grid;
  place-items: center;
  color: var(--teal);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
  text-align: center;
}

/* ---- Responsive ----------------------------------------------------- */
@media (max-width: 960px) {
  .split, .findus { grid-template-columns: 1fr; gap: 40px; }
  .hero__media .img-inset { width: 42%; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .glimpse-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---- Gentle shrink of desktop pills before the burger takes over --- */
@media (max-width: 1120px) and (min-width: 961px) {
  .nav__links { gap: 8px; }
  .nav__links a,
  .nav__dropdown-toggle { padding: 10px 18px; font-size: .9rem; }
  .nav__cta .btn { padding: 11px 20px; font-size: .9rem; }
  .nav__logo img { height: 56px; }
  .site-header .container { padding: 0 28px; }
}

/* ---- Burger / mobile nav takes over at 960px (before pills cramp) -- */
@media (max-width: 960px) {
  .site-header .container { padding: 0 20px; }
  .nav { height: 72px; }
  .nav__logo img { height: 48px; }
  .nav__group { margin-left: 0; gap: 0; }

  /* The whole link set + Enquire Now lives inside the burger menu.
     Completely hidden until the burger is tapped. */
  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav__links[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav__links li { width: 100%; }
  .nav__links a,
  .nav__dropdown-toggle {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 0;
    border-radius: 12px;
  }
  /* Dropdown renders inline directly beneath its toggle (no off-screen) */
  .nav__dropdown { width: 100%; }
  .nav__dropdown-menu,
  .nav__dropdown[data-open="true"] .nav__dropdown-menu {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 6px;
    margin-top: 8px;
    min-width: 0;
    width: 100%;
  }
  .nav__dropdown-menu { display: none; }
  .nav__dropdown[data-open="true"] .nav__dropdown-menu { display: block; }
  .nav__dropdown-menu a { text-align: center; padding: 12px 0; }

  /* Enquire Now inside the menu (mobile) — prominent full-width last item */
  .nav__links-cta { display: block; margin-top: 6px; }
  .nav__links li.nav__links-cta a.nav__enquire,
  .nav__enquire {
    display: block;
    width: 100%;
    background: var(--teal-hero);
    color: #fff;
    border: 1.5px solid var(--teal-hero);
    padding: 16px 0;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
  }
  .nav__links li.nav__links-cta a.nav__enquire:hover,
  .nav__enquire:hover {
    background: var(--oxford);
    border-color: var(--oxford);
    color: #fff;
  }
  /* Hide the separate desktop CTA button in mobile mode */
  .nav__cta--desktop { display: none; }
  /* Bar shows only logo + burger */
  .nav__burger { display: block; margin-left: auto; }
}

/* ---- Layout-only tweaks (independent of the nav breakpoint) -------- */
/* Tablet & smaller: hero CTAs stack and share equal width so
   'Enquire Now' and 'Explore Our Nurseries' line up neatly
   instead of being mismatched. */
@media (max-width: 960px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
  }
  .hero__actions .btn { width: 100%; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  body { font-size: 16px; }
  .hero h1 { white-space: normal; }

  /* Hero images stack only at mobile (tablet keeps them side-by-side) */
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  /* Inset spans the full width of the main image, sitting just below it */
  .hero__media .img-inset {
    position: static;
    width: 100%;
    max-width: none;
    aspect-ratio: 1/1;
    margin: 16px 0 0;
  }

  .grid--2, .grid--3, .gallery-grid--4, .gallery-grid--quad,
  .glimpse-grid, .contact-cards, .form__row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .callout { padding: 28px 24px; }
}
