/* chavarafamilywelfarecentre.com — modern homepage stylesheet (2026 redesign).
 * Loads before css/site-extras.css, which supplies the brand tokens
 * (--brand-primary, --cm-aqua, …), the Uncut Sans font-face and the shared
 * footer / cookie-consent styling. Fallback values below match the same
 * brand token sheet. */

:root {
  --ink: #1f2123;
  --ink-soft: #4a4d52;
  --ink-faint: #6f7378;
  --purple: #851f82;
  --purple-deep: #5c1259;
  --aqua: #8adee1;
  --paper: #ffffff;
  --paper-tint: #f6f3f6;
  --line: #e6e7e9;
  --radius: 16px;
  --shadow-soft: 0 6px 24px rgba(23, 4, 22, 0.08);
  --shadow-lift: 0 14px 40px rgba(23, 4, 22, 0.14);
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
}
:where(a) {
  color: var(--purple);
}
.wrap {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--purple);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  z-index: 3000;
}
.skip-link:focus {
  left: 0;
}
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-solid {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 6px 18px rgba(133, 31, 130, 0.35);
}
.btn-solid:hover {
  filter: brightness(1.12);
  box-shadow: 0 10px 26px rgba(133, 31, 130, 0.4);
}
.btn-aqua {
  background: var(--aqua);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(20, 90, 92, 0.25);
}
.btn-aqua:hover {
  filter: brightness(1.05);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}
.btn-outline:hover {
  background: var(--purple);
  color: #fff;
}

/* ------------------------------------------------------------------ header */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.site-head.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 20px rgba(23, 4, 22, 0.07);
}
.site-head-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
  margin-right: auto;
}
.brand strong {
  color: var(--purple);
  font-size: 21px;
  letter-spacing: 0.2px;
}
.brand span {
  color: var(--ink-soft);
  font-size: 12.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.site-nav a:hover {
  background: var(--paper-tint);
  color: var(--purple);
}
.site-nav .nav-cta a {
  background: var(--purple);
  color: #fff;
  margin-left: 8px;
}
.site-nav .nav-cta a:hover {
  filter: brightness(1.12);
}
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  cursor: pointer;
  /* Bars are drawn in CSS (middle bar = background, outer bars = pseudo
     elements) so an HTML formatter cannot strip them as empty markup. */
  background: linear-gradient(var(--ink), var(--ink)) center / 24px 2.5px
    no-repeat;
  border-radius: 10px;
  transition: background-size 0.2s ease;
}
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease;
}
.nav-toggle::before {
  transform: translate(-50%, -50%) translateY(-7.5px);
}
.nav-toggle::after {
  transform: translate(-50%, -50%) translateY(7.5px);
}
.nav-toggle[aria-expanded="true"] {
  background-size: 0 2.5px;
}
.nav-toggle[aria-expanded="true"]::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"]::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(23, 4, 22, 0.12);
    display: none;
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 2px;
  }
  .site-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
  }
  .site-nav .nav-cta a {
    text-align: center;
    margin: 8px 0 0;
  }
}

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 84px) 0 150px;
  color: #fff;
  /* Overlay kept as light as possible so the building photo shows through;
     it fades to near-transparent on the right, with just enough darkening
     behind the headline for the white text to stay readable. */
  background:
    linear-gradient(
      100deg,
      rgba(40, 5, 38, 0.62) 0%,
      rgba(70, 10, 68, 0.38) 42%,
      rgba(133, 31, 130, 0.1) 78%,
      rgba(133, 31, 130, 0.03) 100%
    ),
    url("../images/slider/slider-bg-1.jpg") center 35% / cover no-repeat;
}
.hero h1,
.hero p {
  text-shadow: 0 2px 14px rgba(20, 2, 19, 0.55);
}
.hero-inner {
  max-width: 720px;
}
.hero-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero h1 em {
  font-style: normal;
  color: var(--aqua);
}
.hero p {
  margin: 0 0 32px;
  max-width: 560px;
  font-size: 18.5px;
  color: rgba(255, 255, 255, 0.92);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Stats band overlapping the hero */
.stats {
  position: relative;
  z-index: 5;
  margin-top: -78px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.stat {
  background: #fff;
  padding: 30px 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  color: var(--purple);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stat > span {
  display: block;
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 15px;
  letter-spacing: 0.4px;
}
@media (max-width: 640px) {
  .hero {
    padding-bottom: 120px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 22px 20px;
  }
}

/* ---------------------------------------------------------------- sections */
.section {
  padding: 92px 0 0;
}
.section:last-of-type {
  padding-bottom: 92px;
}
.section-head {
  max-width: 680px;
  margin: 0 0 44px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-kicker {
  display: inline-block;
  color: var(--purple);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(27px, 3.6vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}
.about-media {
  position: relative;
}
.about-media::before {
  content: "";
  position: absolute;
  inset: 26px -26px -26px 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--paper-tint), #efe0ef);
  z-index: -1;
}
.about-media img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.about-copy p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}
.value-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}
.value-chips li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper-tint);
  border: 1px solid #eadfe9;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 15px;
}
.value-chips svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--purple);
}
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .about-media {
    margin-right: 26px;
  }
}
@media (max-width: 480px) {
  .value-chips {
    grid-template-columns: 1fr;
  }
}

/* Journey timeline */
.journey {
  background: linear-gradient(180deg, #fff 0%, var(--paper-tint) 120px);
}
.timeline {
  position: relative;
  margin: 0;
  padding: 8px 0 8px 34px;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--aqua), var(--purple));
  border-radius: 2px;
}
.milestone {
  position: relative;
  padding: 0 0 40px;
}
.milestone:last-child {
  padding-bottom: 0;
}
.milestone::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 30px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--purple);
}
.milestone-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.milestone-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.milestone-era {
  display: inline-block;
  background: var(--bg-brand-primary-weakest, #f3e9f3);
  color: var(--purple);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.milestone-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
}
.milestone-card p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}
.milestone-card p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-grid.two {
  grid-template-columns: 1fr 1fr;
  max-width: 860px;
  margin-inline: auto;
}
.contact-flex {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: center;
  margin-top: 44px;
}
.contact-media img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}
.contact-details {
  margin-top: 26px;
}
.contact-details h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--purple);
}
.contact-details h4 + .contact-short-info {
  margin-bottom: 22px;
}
.contact-short-info {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
}
.contact-short-info li {
  margin: 0 0 6px;
}
.contact-short-info address {
  font-style: normal;
  margin: 0;
  line-height: 1.7;
}
.contact-short-info a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
}
.contact-short-info a:hover {
  text-decoration: underline;
}
.contact-form .form-group {
  margin: 0 0 16px;
}
.contact-form .form-control {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  color: var(--ink);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.contact-form .form-control::placeholder {
  color: var(--ink-faint);
}
.contact-form .form-control:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(133, 31, 130, 0.15);
}
.contact-form textarea.form-control {
  resize: vertical;
  min-height: 140px;
}
.contact-form .btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.contact-form .btn[disabled] {
  opacity: 0.6;
  cursor: default;
}
/* Honeypot: off-screen for people, still fillable by bots. Not display:none —
   some bots skip hidden fields. */
.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form .success,
.contact-form .error {
  display: none;
  margin: 0 0 16px;
  font-weight: 600;
}
.contact-form .success {
  color: #1a7f37;
}
.contact-form .error {
  color: var(--bg-error-strong, #b91c1c);
}
@media (max-width: 860px) {
  .contact-flex {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
}
.contact-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-brand-primary-weakest, #f3e9f3);
  color: var(--purple);
  margin-bottom: 16px;
}
.contact-card .icon svg {
  width: 22px;
  height: 22px;
}
.contact-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
}
.contact-card p,
.contact-card address {
  margin: 0;
  font-style: normal;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}
.contact-card a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
}
.contact-card a:hover {
  text-decoration: underline;
}
.contact-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------- interior content pages */
/* The interior pages (about, services, offices, faq, contact) reuse the
   homepage components. Only the pieces below are specific to them: a shorter
   hero, a readable single-column prose column and a tinted section band. */
.hero-page {
  padding: calc(var(--header-h) + 64px) 0 78px;
}
.hero-page .hero-inner {
  max-width: 760px;
}
.hero-page h1 {
  font-size: clamp(30px, 4.4vw, 46px);
}
.hero-page p {
  margin-bottom: 0;
}

.prose {
  max-width: 780px;
}
.prose > p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}
.prose h3 {
  margin: 32px 0 10px;
  font-size: 20px;
  font-weight: 800;
}
.prose ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--ink-soft);
}
.prose li {
  margin: 0 0 9px;
}
.prose > p:last-child,
.prose > ul:last-child {
  margin-bottom: 0;
}

/* Tinted band used to separate two consecutive sections on interior pages.
   .section only gets bottom padding when it is the last of its type, so the
   band restores its own. */
.section.tint {
  background: var(--paper-tint);
  padding-bottom: 92px;
}
.section.pad-b {
  padding-bottom: 92px;
}

/* A second row of cards continuing the grid above it. */
.grid-stack {
  margin-top: 24px;
}

/* Office cards: same card as .contact-card, denser and in a wider grid. */
.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 20px;
}
.office-grid .contact-card {
  padding: 24px 24px 22px;
}
.office-grid h3 {
  font-size: 17.5px;
  margin-bottom: 8px;
}
.office-grid address {
  font-size: 15px;
  line-height: 1.6;
}
.office-note {
  margin: 26px 0 0;
  color: var(--ink-faint);
  font-size: 15px;
}

/* ------------------------------------------------------------- animations */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal.d1 {
  transition-delay: 0.1s;
}
.reveal.d2 {
  transition-delay: 0.2s;
}
.reveal.d3 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .milestone-card {
    transition: none;
  }
}
