/* ========================================================================== 
   Care 4 All — Newsletter page
   Page-specific styles only. Loaded after assets/css/site.css.
   ========================================================================== */

.nwl-page {
  --nwl-navy: #173d62;
  --nwl-navy-deep: #102f4c;
  --nwl-teal: #1597a5;
  --nwl-gold: #d99b4e;
  --nwl-green: #4d9a69;
  --nwl-purple: #76538f;
  --nwl-blue: #4d79a5;
  --nwl-text: #334955;
  --nwl-muted: #71828b;
  --nwl-line: #dfe7eb;
  --nwl-soft: #f4f8fa;
  background: #f4f7f8;
  color: var(--nwl-text);
}

/* Hero */
.nwl-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 87% 15%, rgba(255,255,255,.08) 0 90px, transparent 91px),
    radial-gradient(circle at 92% 36%, rgba(255,255,255,.045) 0 180px, transparent 181px),
    linear-gradient(125deg, var(--nwl-navy-deep), var(--nwl-navy) 62%, #245478);
  color: #fff;
}

.nwl-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -92px 40%;
  height: 185px;
  border-radius: 50% 50% 0 0;
  background: rgba(255,255,255,.035);
  transform: rotate(-4deg);
  pointer-events: none;
}

.nwl-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 26px;
  padding-bottom: 56px;
}

.nwl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 42px;
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  font-weight: 600;
}

.nwl-breadcrumb a { color: #fff; }
.nwl-breadcrumb a:hover { color: #d9f3f5; }
.nwl-breadcrumb span[aria-hidden="true"] { opacity: .48; }

.nwl-hero__content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
}

.nwl-hero__copy { max-width: 800px; }

.nwl-eyebrow {
  margin: 0 0 9px;
  color: #bfe9ed;
  font-size: .78rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .18em;
}

.nwl-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-family: "Lato", "Open Sans", Arial, sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .98;
}

.nwl-subtitle {
  margin: 18px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: .01em;
}

.nwl-date {
  flex: 0 0 auto;
  min-width: 150px;
  padding: 18px 20px 16px;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
  text-align: left;
}

.nwl-date span,
.nwl-date strong { display: block; color: #fff; }
.nwl-date span {
  margin-bottom: 2px;
  font-size: .77rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .72;
}
.nwl-date strong {
  font-family: "Lato", "Open Sans", Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -.03em;
}

.nwl-hero__rule {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(400px, 44%);
  height: 4px;
  margin-top: 35px;
  border-radius: 999px;
  overflow: hidden;
}
.nwl-hero__rule i:nth-child(1) { background: var(--nwl-teal); }
.nwl-hero__rule i:nth-child(2) { background: var(--nwl-gold); }
.nwl-hero__rule i:nth-child(3) { background: var(--nwl-green); }
.nwl-hero__rule i:nth-child(4) { background: #78a8cf; }

/* Main newsletter grid */
.nwl-content { padding: 58px 0 78px; }

.nwl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.nwl-card {
  --card-accent: var(--nwl-teal);
  position: relative;
  min-width: 0;
  padding: 31px 32px 30px;
  overflow: hidden;
  border: 1px solid var(--nwl-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 65, 82, .065);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.nwl-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--card-accent);
}

.nwl-card::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -64px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent) 8%, transparent);
  pointer-events: none;
}

.nwl-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--card-accent) 28%, var(--nwl-line));
  box-shadow: 0 18px 42px rgba(31, 65, 82, .11);
}

.nwl-card--safeguarding { --card-accent: var(--nwl-teal); }
.nwl-card--medication { --card-accent: var(--nwl-blue); }
.nwl-card--nutrition { --card-accent: var(--nwl-green); }
.nwl-card--governance { --card-accent: var(--nwl-purple); }

.nwl-card__top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  margin-bottom: 21px;
}

.nwl-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--card-accent) 12%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-accent) 18%, transparent);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.55rem;
}

.nwl-card__number {
  margin: 0 0 3px;
  color: var(--card-accent);
  font-size: .7rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .15em;
}

.nwl-card h2 {
  margin: 0;
  color: var(--nwl-navy-deep);
  font-family: "Lato", "Open Sans", Arial, sans-serif;
  font-size: 1.28rem;
  line-height: 1.22;
  letter-spacing: -.01em;
}

.nwl-kicker {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 10px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--card-accent) 9%, white);
  color: color-mix(in srgb, var(--card-accent) 75%, #253845);
  font-size: .78rem;
  line-height: 1.35;
  font-weight: 800;
}

.nwl-points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nwl-points li {
  position: relative;
  margin: 0;
  padding-left: 23px;
  color: var(--nwl-text);
  font-size: .92rem;
  line-height: 1.58;
}

.nwl-points li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .63em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--card-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--card-accent) 10%, transparent);
}

.nwl-points strong {
  color: #223946;
  font-weight: 700;
}

/* Emergency contact panel */
.nwl-contact {
  position: relative;
  display: grid;
  grid-template-columns: .8fr 1.7fr;
  gap: 34px;
  align-items: center;
  margin-top: 30px;
  padding: 29px 31px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(118deg, var(--nwl-navy-deep), var(--nwl-navy));
  box-shadow: 0 14px 34px rgba(16, 47, 76, .17);
  color: #fff;
}

.nwl-contact::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  border: 42px solid rgba(255,255,255,.035);
  pointer-events: none;
}

.nwl-contact__heading {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: center;
}

.nwl-contact__icon {
  display: flex;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--nwl-gold);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 700;
}

.nwl-contact__eyebrow {
  margin: 0 0 4px;
  color: #bfe9ed;
  font-size: .67rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .16em;
}

.nwl-contact h2 {
  margin: 0;
  color: #fff;
  font-family: "Lato", "Open Sans", Arial, sans-serif;
  font-size: 1.22rem;
  line-height: 1.18;
}

.nwl-contact__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.055);
}

.nwl-contact__item {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.nwl-contact__item:last-child { border-right: 0; }

.nwl-contact__item span,
.nwl-contact__item strong,
.nwl-contact__item a { display: block; }

.nwl-contact__item span {
  margin-bottom: 4px;
  color: rgba(255,255,255,.63);
  font-size: .67rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.nwl-contact__item strong,
.nwl-contact__item a {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: .84rem;
  line-height: 1.35;
  font-weight: 700;
}

.nwl-contact__item a:hover { color: #d9f3f5; text-decoration: underline; }

@media (max-width: 980px) {
  .nwl-hero__inner { padding-bottom: 47px; }
  .nwl-grid { gap: 19px; }
  .nwl-card { padding: 27px 25px 26px; }
  .nwl-contact { grid-template-columns: 1fr; gap: 20px; }
  .nwl-contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nwl-contact__item:nth-child(2) { border-right: 0; }
  .nwl-contact__item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
}

@media (max-width: 760px) {
  .nwl-hero__inner { padding-top: 20px; padding-bottom: 39px; }
  .nwl-breadcrumb { margin-bottom: 31px; }
  .nwl-hero__content { align-items: flex-start; }
  .nwl-date { min-width: 126px; padding: 15px 16px; }
  .nwl-date strong { font-size: 1.65rem; }
  .nwl-hero__rule { width: 60%; margin-top: 28px; }
  .nwl-content { padding: 42px 0 58px; }
  .nwl-grid { grid-template-columns: 1fr; }
  .nwl-card { border-radius: 15px; }
}

@media (max-width: 540px) {
  .nwl-hero__content { display: block; }
  .nwl-hero h1 { font-size: clamp(2.25rem, 12vw, 3.3rem); }
  .nwl-subtitle { font-size: .95rem; }
  .nwl-date {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    margin-top: 24px;
    padding: 11px 14px;
    border-radius: 10px;
  }
  .nwl-date span { margin: 0; }
  .nwl-date strong { font-size: 1.15rem; }
  .nwl-hero__rule { width: 100%; }
  .nwl-card { padding: 24px 20px 23px; }
  .nwl-card__top { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; }
  .nwl-icon { width: 50px; height: 50px; border-radius: 13px; font-size: 1.35rem; }
  .nwl-card h2 { font-size: 1.13rem; }
  .nwl-points li { font-size: .89rem; }
  .nwl-contact { padding: 24px 20px; border-radius: 15px; }
  .nwl-contact__grid { grid-template-columns: 1fr; }
  .nwl-contact__item,
  .nwl-contact__item:nth-child(2) { border-right: 0; }
  .nwl-contact__item:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,.12); }
}

/* Browser fallback where color-mix is unavailable. */
@supports not (background: color-mix(in srgb, red, white)) {
  .nwl-card::after { background: rgba(21, 151, 165, .06); }
  .nwl-icon, .nwl-kicker { background: #f1f7f8; }
  .nwl-icon { box-shadow: inset 0 0 0 1px #e2ecef; }
  .nwl-points li::before { box-shadow: 0 0 0 4px rgba(21, 151, 165, .08); }
}
