/* =====================================================
   SFW Consultancy - site customisations
   Overrides for site.css. Loaded AFTER site.css.
   Edit this file for tweaks - it survives stylesheet re-merges.
   ===================================================== */

/* Logo sizing */
.nav-logo-img    { height: 41px; }
.footer-logo-img { height: 96px; }

@media (max-width: 600px) {
  .nav-logo-img    { height: 36px; }
  .footer-logo-img { height: 82px; }
}

/* Homepage stats strip now shows 3 stats (children's-homes stat removed) */
.stats-grid { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 860px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* Ofsted Readiness - statutory powers pill (gradient matches outcomes section) */
.ofsted-powers-pill {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 36px;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
  background-image:
    radial-gradient(ellipse 55% 45% at 15% 25%, rgba(240,120,20,0.5) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 75%, rgba(119,54,165,0.6) 0%, transparent 60%),
    radial-gradient(ellipse 75% 55% at 50% 100%, rgba(58,23,97,0.7) 0%, transparent 70%),
    linear-gradient(135deg, #2a0f48 0%, #3a1761 40%, #6a2a8f 100%);
}
.ofsted-powers-pill p {
  margin: 0 auto;
  max-width: 70ch;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  color: #fff;
}

/* Center the "Our Regulation 44 and 45 support can help with" subhead, nudged 10px right */
.reg-card-subhead { text-align: center; position: relative; left: 25px; }

@media (max-width: 768px) {
  .reg-card-subhead { left: 0; }
}

/* Breathing room on both edges of the mobile header (logo left, hamburger right) */
@media (max-width: 900px) {
  .site-header .nav { padding-left: 16px; padding-right: 16px; }
}

/* Mobile nav dropdown - show links when JS adds .is-open (open-state styles were
   missing from site.css, so the hamburger toggled a class with no visible effect) */
@media (max-width: 900px) {
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface, #fff);
    border-top: 1px solid var(--border, rgba(0,0,0,0.08));
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
    padding: 0.5rem 16px 1rem;
    z-index: 60;
  }
  .nav-links.is-open li { width: 100%; }
  .nav-links.is-open a { display: block; padding: 0.75rem 0; font-size: 1.05rem; }
}
