/*
 * Final typography, spacing and responsive refinement.
 *
 * This file intentionally loads after the established component styles. It
 * narrows the shared scale without changing page content, media assignments or
 * functional behaviour.
 */

:root {
  --section: clamp(3.5rem, 6vw, 5.5rem);
  --sparkles-section: var(--section);
  --sparkles-hero-space: clamp(3.25rem, 5.5vw, 5.25rem);
  --sparkles-card-space: clamp(1.25rem, 2.2vw, 1.85rem);
  --sparkles-title-home: clamp(3rem, 5vw, 4.8rem);
  --sparkles-title-page: clamp(2.7rem, 4.25vw, 4rem);
  --sparkles-title-section: clamp(2rem, 3.25vw, 3.15rem);
}

h1 {
  font-size: var(--sparkles-title-page);
  line-height: 1.08;
}

h2 {
  font-size: var(--sparkles-title-section);
  line-height: 1.12;
}

h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.18;
}

p {
  margin-bottom: 1.1rem;
}

.section-heading {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-heading--split,
.split-layout,
.faq-layout,
.page-content__grid {
  gap: clamp(2rem, 5vw, 4.5rem);
}

.button,
.wp-element-button,
input[type="submit"],
button[type="submit"] {
  min-height: 3.05rem;
  padding: 0.72rem 1.3rem;
}

.button--small {
  min-height: 2.75rem;
  padding-inline: 1.05rem;
}

.button-row {
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
}

/* Compact shared site chrome while preserving the approved brand component. */
.announcement-bar__inner {
  min-height: 2.3rem;
  padding-block: 0.32rem;
  font-size: 0.8rem;
}

.site-header__inner {
  min-height: 4.9rem;
  gap: 1.5rem;
}

.brand-mark__word {
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
}

.brand-mark__sub {
  margin-top: 0.28rem;
  font-size: 0.62rem;
}

.brand-mark__stars {
  top: -0.65rem;
}

.site-nav {
  gap: 1rem;
}

.site-nav ul,
.site-nav__list,
.site-nav .menu {
  gap: clamp(0.65rem, 1.25vw, 1rem);
}

.site-nav a:not(.button) {
  font-size: 0.9rem;
}

/* Shared hero rhythm and hierarchy. */
.home-hero,
.subpage-hero,
.nursery-hub-hero,
.visit-hero,
.checkpoint-hero,
.page-hero {
  padding-block: var(--sparkles-hero-space);
}

.home-hero__content h1 {
  max-width: 11.5ch;
  font-size: var(--sparkles-title-home);
}

.subpage-hero h1,
.nursery-hub-hero h1,
.nursery-hero__content h1,
.visit-hero h1,
.checkpoint-hero h1,
.page-hero h1,
.not-found-card h1 {
  font-size: var(--sparkles-title-page);
}

.home-hero__grid,
.nursery-hub-hero__grid,
.nursery-hero__grid,
.visit-hero__grid,
.checkpoint-hero__grid {
  gap: clamp(2.25rem, 5vw, 4.5rem);
}

.home-hero__lead,
.subpage-hero__lead,
.nursery-hero__lead,
.nursery-hub-hero__lead,
.visit-hero__lead,
.checkpoint-hero__lead,
.page-hero__lead {
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.home-hero__lead {
  margin-top: 1.1rem;
}

.hero-reassurance {
  margin-top: 1.35rem;
}

.home-hero__visual {
  min-height: clamp(27rem, 34vw, 31rem);
}

.trust-strip__grid > div {
  min-height: 4.8rem;
  padding: 0.8rem 1rem;
}

/* Homepage component density. */
.location-grid,
.benefit-grid {
  gap: 1rem;
}

.location-card__content,
.benefit-card {
  padding: var(--sparkles-card-space);
}

.location-card__details {
  gap: 0.65rem;
  padding-block: 0.95rem;
  margin-block: 0.95rem;
}

.benefit-card > span {
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.funding-panel {
  min-height: 26rem;
  border-radius: 2.6rem;
}

.funding-panel__content {
  padding: clamp(2.25rem, 4.5vw, 3.75rem);
}

.day-timeline {
  gap: 0.8rem;
}

.day-timeline li {
  gap: 1rem;
  padding: 1.15rem;
}

.safeguarding-panel {
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border-radius: 2.6rem;
}

.safeguarding-panel__visual {
  min-height: 18rem;
}

.safeguarding-shield {
  width: 12rem;
  height: 14.5rem;
}

.safeguarding-orbit--one {
  width: 16.5rem;
  height: 16.5rem;
}

.safeguarding-orbit--two {
  width: 20rem;
  height: 20rem;
}

.faq-list {
  gap: 0.7rem;
}

.faq-list summary {
  min-height: 4.3rem;
  padding: 1rem 1.2rem;
}

.final-cta,
.checkpoint-final-cta,
.nursery-visit-cta,
.nursery-hub-support {
  padding-block: clamp(3.25rem, 5vw, 4.75rem);
}

.final-cta__inner,
.checkpoint-final-cta__inner {
  gap: clamp(2rem, 4vw, 3rem);
}

/* Checkpoint pages and legal pages. */
.checkpoint-hero__media,
.checkpoint-hero__art {
  min-height: clamp(20rem, 29vw, 25rem);
}

.checkpoint-intro,
.checkpoint-section,
.checkpoint-editor-content,
.contact-main-section {
  padding-block: var(--section);
}

.checkpoint-highlights {
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.checkpoint-highlights li {
  padding: 0.8rem 0.9rem 0.8rem 2.8rem;
}

.checkpoint-highlights li::before {
  top: 0.75rem;
  left: 1rem;
}

.checkpoint-notice {
  padding: 1rem 1.15rem;
  margin-top: 2rem;
}

.checkpoint-card-grid {
  gap: 1rem;
}

.checkpoint-card {
  min-height: 16rem;
  padding: var(--sparkles-card-space);
}

.checkpoint-card > span {
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.4rem;
}

.checkpoint-page--funded-childcare .checkpoint-hero__media img {
  object-position: center 42%;
}

.checkpoint-page--safeguarding .checkpoint-hero__media img {
  object-position: center 38%;
}

.checkpoint-editor-content .entry-content {
  max-width: 48rem;
}

.not-found-section {
  padding-block: var(--section);
}

.not-found-card {
  padding: clamp(1.75rem, 4.5vw, 3.5rem);
}

/* Nursery hub and individual settings. */
.nursery-hub-hero__art {
  min-height: clamp(19rem, 30vw, 25rem);
}

.nursery-directory__heading,
.nursery-practical__heading {
  margin-bottom: clamp(1.8rem, 3.5vw, 2.75rem);
}

.nursery-directory__grid {
  gap: 1.25rem;
}

.nursery-directory-card__body {
  padding: var(--sparkles-card-space);
}

.nursery-directory-card__facts {
  padding-block: 0.95rem;
  margin-block: 0.95rem;
}

.nursery-hero {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3.5rem, 5.5vw, 5.25rem);
}

.nursery-back-link {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.nursery-hero__content h1 {
  max-width: 12ch;
  margin-bottom: 0.85rem;
}

.nursery-hero__note {
  margin-top: 1.1rem;
}

.nursery-hero__visual {
  border-width: 0.4rem;
}

.nursery-practical,
.nursery-story,
.nursery-visit-preview,
.nursery-facilities,
.nursery-details-panel,
.nursery-photo-gallery {
  padding-block: var(--section);
}

.nursery-practical__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.9rem;
}

.practical-card {
  min-height: 13.5rem;
  padding: var(--sparkles-card-space);
}

.practical-card > span {
  flex: 0 0 auto;
  margin-bottom: 1rem;
}

.practical-card__label {
  margin: 0 0 0.4rem;
}

.practical-card p:last-child {
  margin-bottom: 0;
}

.nursery-story__grid {
  gap: clamp(2rem, 5vw, 4rem);
}

.nursery-story__content,
.nursery-visit-preview__grid article,
.nursery-details-panel article {
  padding: var(--sparkles-card-space);
}

.nursery-visit-preview__grid {
  gap: 0.9rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.facility-grid {
  gap: 0.8rem;
  margin-top: 1.8rem;
}

/* Forms remain generous enough for accessible touch targets, but less bulky. */
.visit-hero__contact {
  margin-top: 1.4rem;
}

.visit-steps-card,
.visit-form-card {
  --sparkles-form-card-space: clamp(1.4rem, 2.8vw, 2.2rem);

  padding: var(--sparkles-form-card-space);
}

.visit-steps-card__image {
  margin: calc(var(--sparkles-form-card-space) * -1) calc(var(--sparkles-form-card-space) * -1) 1.25rem;
}

.visit-steps-card li {
  padding-block: 0.95rem;
}

.visit-form-layout,
.contact-layout {
  gap: clamp(2rem, 4.5vw, 4rem);
}

.visit-form-card__heading {
  padding-bottom: 1.25rem;
  margin-bottom: 1.4rem;
}

.visit-form-card__heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.sparkles-form {
  gap: 1.3rem;
}

.form-section {
  gap: 1rem;
}

.form-section + .form-section {
  padding-top: 1.25rem;
}

.form-section legend {
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
}

.form-grid {
  gap: 0.95rem;
}

.sparkles-form input,
.sparkles-form select,
.sparkles-form textarea {
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
}

.sparkles-form textarea {
  min-height: 6.75rem;
}

.form-consent {
  padding: 0.85rem;
}

.form-notice {
  margin-bottom: 1.2rem;
}

.contact-quick-grid a,
.contact-safeguarding-note,
.visit-contact-card {
  padding: 1rem;
}

.contact-success-card,
.visit-success-card,
.visit-success-next {
  padding: clamp(1.75rem, 4vw, 3rem);
}

/* Image grids retain every approved photograph with calmer proportions. */
.home-photo-story__grid,
.nursery-photo-gallery__grid,
.sparkles-gallery {
  gap: 0.9rem;
}

.home-photo-story img,
.home-photo-story .sparkles-media-placeholder,
.nursery-photo-gallery img,
.nursery-photo-gallery .sparkles-media-placeholder {
  height: clamp(14rem, 22vw, 19rem);
}

.sparkles-gallery__item img,
.sparkles-gallery__item .sparkles-media-placeholder {
  height: 16rem;
}

.sparkles-gallery__item--portrait img,
.sparkles-gallery__item--portrait .sparkles-media-placeholder {
  height: 27rem;
}

/* A finished footer without a second-page feeling. */
.site-footer {
  padding-top: clamp(3.25rem, 5vw, 4.75rem);
}

.site-footer__grid {
  gap: clamp(1.75rem, 3.5vw, 3rem);
}

.site-footer a.brand-mark--footer,
.site-footer a.brand-mark--footer:hover {
  padding: 0.75rem 1rem 0.65rem;
}

.brand-mark--footer .brand-mark__word {
  font-size: clamp(1.65rem, 2.2vw, 2rem);
}

.site-footer__intro > p {
  margin-top: 1.2rem;
}

.site-footer__locations {
  gap: 0.85rem;
}

.site-footer__visit h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
}

.site-footer__bottom {
  padding-block: 1.15rem;
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
}

/* Preserve the two-column homepage balance at tablet landscape widths. */
@media (min-width: 56.01rem) and (max-width: 68.74rem) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.85fr);
    gap: 2.5rem;
  }

  .home-hero__visual {
    min-height: 27rem;
  }
}

@media (max-width: 62rem) {
  .checkpoint-hero__art,
  .checkpoint-hero__media {
    width: min(100%, 34rem);
    min-height: 21rem;
  }
}

@media (max-width: 56rem) {
  .home-hero__visual {
    min-height: 25rem;
  }

  .nursery-story__heading,
  .day-intro,
  .faq-intro,
  .visit-form-intro,
  .contact-intro {
    position: static;
  }
}

@media (max-width: 45rem) {
  :root {
    --gutter: 1rem;
    --section: clamp(3.15rem, 11vw, 4rem);
    --sparkles-hero-space: clamp(2.75rem, 10vw, 3.6rem);
    --sparkles-title-home: clamp(2.65rem, 11vw, 3.4rem);
    --sparkles-title-page: clamp(2.35rem, 10.5vw, 3.15rem);
    --sparkles-title-section: clamp(1.8rem, 8.5vw, 2.55rem);
  }

  .announcement-bar__inner {
    min-height: 2.2rem;
    padding-block: 0.28rem;
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .site-header__inner {
    min-height: 4.5rem;
  }

  .brand-mark__word {
    font-size: 1.65rem;
  }

  .brand-mark__sub {
    font-size: 0.54rem;
  }

  .site-nav-toggle {
    width: 2.85rem;
    height: 2.85rem;
  }

  .site-nav {
    gap: 0.7rem;
    padding: 0.75rem;
  }

  .site-nav a:not(.button) {
    padding: 0.75rem 0.3rem;
  }

  .home-hero,
  .nursery-hub-hero,
  .visit-hero,
  .checkpoint-hero {
    padding-top: var(--sparkles-hero-space);
  }

  .home-hero__content h1,
  .subpage-hero h1,
  .nursery-hub-hero h1,
  .nursery-hero__content h1,
  .visit-hero h1,
  .checkpoint-hero h1,
  .page-hero h1,
  .not-found-card h1 {
    max-width: 15ch;
  }

  .home-hero__grid,
  .nursery-hub-hero__grid,
  .nursery-hero__grid,
  .visit-hero__grid,
  .checkpoint-hero__grid {
    gap: 2rem;
  }

  .home-hero__visual {
    min-height: 22rem;
  }

  .hero-photo-frame__badge {
    max-width: 12rem;
    padding: 0.7rem 0.8rem;
    font-size: 0.86rem;
  }

  .trust-strip__grid > div {
    min-height: 3.9rem;
    padding: 0.65rem 0.8rem;
  }

  .funding-panel__art {
    min-height: 15rem;
  }

  .funding-panel__content,
  .safeguarding-panel,
  .visit-form-card,
  .visit-success-card,
  .visit-success-next,
  .contact-success-card,
  .not-found-card {
    padding: 1.25rem;
  }

  .safeguarding-panel__visual {
    min-height: 15rem;
  }

  .checkpoint-hero__art,
  .checkpoint-hero__media {
    min-height: 17rem;
  }

  .checkpoint-card {
    min-height: auto;
  }

  .nursery-hub-hero__art {
    min-height: 17rem;
  }

  .nursery-hero {
    padding-top: 1.25rem;
  }

  .nursery-hero__visual {
    aspect-ratio: 4 / 3;
  }

  .practical-card {
    min-height: auto;
  }

  .visit-steps-card__image {
    margin-bottom: 1.1rem;
  }

  .sparkles-gallery__item img,
  .sparkles-gallery__item--portrait img,
  .sparkles-gallery__item .sparkles-media-placeholder,
  .sparkles-gallery__item--portrait .sparkles-media-placeholder {
    width: 100%;
    height: auto;
    max-height: 32rem;
    object-fit: contain;
  }

  .site-footer {
    padding-top: 3rem;
  }

  .site-footer__grid {
    gap: 1.75rem;
  }

  .site-footer__bottom {
    margin-top: 2rem;
  }
}

@media (max-width: 24rem) {
  :root {
    --gutter: 0.9rem;
  }

  .home-hero__content h1,
  .subpage-hero h1,
  .nursery-hub-hero h1,
  .nursery-hero__content h1,
  .visit-hero h1,
  .checkpoint-hero h1,
  .page-hero h1,
  .not-found-card h1 {
    overflow-wrap: anywhere;
  }
}
