/* ==========================================================================
   We Care Hub — Modern Common CSS
   Tokens, type scale, spacing utilities, buttons, motion.
   Loaded after Bootstrap 5.3 so these extend/override it.
   ========================================================================== */

:root {
  /* Brand */
  --primary-color-600: #02478D;   /* navy */
  --primary-color-700: #023A74;
  --primary-color-800: #0A2A52;   /* deep navy */
  --primary-color-400: #0B6DCE;   /* bright blue */
  --accent-color-400: #FFC45C;    /* sun */
  --accent-color-600: #A8640A;    /* amber, text-safe on white */

  /* Neutrals */
  --secondary-color-25: #EEF4FB;  /* sky */
  --page-bg: #F7F9FC;
  --text-dark: #13233B;
  --muted-text: #51607A;
  --border-color: rgba(2, 71, 141, .12);
  --white-color: #FFFFFF;

  /* Type: one family, two personalities via variable axes */
  --font-sans: 'Google Sans Flex', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --heading-rond: 100;
  --heading-weight: 700;

  /* Shape & motion */
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --shadow-sm: 0 10px 24px -14px rgba(10, 42, 82, .35);
  --shadow-lg: 0 34px 60px -30px rgba(10, 42, 82, .45);

  /* Bootstrap bridge */
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--text-dark);
  --bs-body-bg: var(--page-bg);
  --bs-link-color: var(--primary-color-600);
  --bs-link-hover-color: var(--primary-color-800);
  --bs-border-radius: var(--radius-sm);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1rem, .96rem + .2vw, 1.1rem);
  line-height: 1.65;
  color: var(--text-dark);
  background-color: var(--page-bg);
  font-variation-settings: 'ROND' 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none !important; transition: color .25s; }
img { max-width: 100%; height: auto; }
p { line-height: 1.7; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--primary-color-400); outline-offset: 3px; border-radius: 6px; }

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  color: inherit;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  font-variation-settings: 'ROND' 0;
}

/* Headline style: heavy, rounded, tight — echoes the round logo */
.display-title {
  font-family: var(--font-sans);
  font-weight: var(--heading-weight);
  font-variation-settings: 'ROND' 0;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
}

/* ---------- Type scale ---------- */
.text-xl   { font-size: clamp(2.7rem, 1.7rem + 4.4vw, 5rem); }
.text-lg   { font-size: clamp(2rem, 1.45rem + 2.4vw, 3.4rem); }
.text-semi { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.6rem); line-height: 1.1; }
.text-md   { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); }
.text-base { font-size: 1rem !important; }
.text-sm   { font-size: .875rem !important; }

.w-normal   { font-weight: 400 !important; }
.w-medium   { font-weight: 500 !important; }
.w-semibold { font-weight: 600 !important; }
.w-bold     { font-weight: 700 !important; }

.lh-tight  { line-height: 1.1 !important; }
.lh-normal { line-height: 1.5 !important; }

/* Small sentence-case section label (not an all-caps eyebrow) */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 650;
  color: var(--primary-color-400);
  font-variation-settings: 'ROND' 0;
}
.kicker::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-color-400); box-shadow: 0 0 0 4px rgba(255, 196, 92, .25); }
.kicker.on-dark { color: var(--accent-color-400); }

/* Hero-only highlight */
.hl {
  color: var(--accent-color-400);
  background: linear-gradient(transparent 72%, rgba(255, 196, 92, .28) 72% 94%, transparent 94%) no-repeat 0 0 / 0% 100%;
  transition: background-size 1s var(--ease-out) .5s;
}
.is-in .hl, html:not(.js-anim) .hl { background-size: 100% 100%; }

/* ---------- Colour helpers ---------- */
.primary-text { color: var(--primary-color-600) !important; }
.navy-text    { color: var(--primary-color-800) !important; }
.accent-text  { color: var(--accent-color-600) !important; }
.muted-text   { color: var(--muted-text) !important; }
.white-text   { color: var(--white-color) !important; }

.dark-bg  { color: var(--white-color); background-color: var(--primary-color-800) !important; }
.sky-bg   { background-color: var(--secondary-color-25) !important; }
.white-bg { background-color: var(--white-color) !important; }

/* ---------- Section spacers ---------- */
.spacer-y    { padding-block: 150px; }
.spacer-xl   { padding-block: 120px; }
.spacer-lg   { padding-block: 100px; }
.spacer-y-sm { padding-block: 80px; }
.spacer-xs   { padding-block: 40px; }

/* ---------- Margin / padding scale ---------- */
.mt-10 { margin-top: 10px; }   .mb-10 { margin-bottom: 10px; }
.mt-20 { margin-top: 20px; }   .mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; }   .mb-30 { margin-bottom: 30px; }
.mt-40 { margin-top: 40px; }   .mb-40 { margin-bottom: 40px; }
.mt-50 { margin-top: 50px; }   .mb-50 { margin-bottom: 50px; }
.mt-60 { margin-top: 60px; }   .mb-60 { margin-bottom: 60px; }
.mt-80 { margin-top: 80px; }   .mb-80 { margin-bottom: 80px; }
.pt-40 { padding-top: 40px; }  .pb-40 { padding-bottom: 40px; }
.pt-60 { padding-top: 60px; }  .pb-60 { padding-bottom: 60px; }
.pt-80 { padding-top: 80px; }  .pb-80 { padding-bottom: 80px; }

.mw-560 { max-width: 560px; } .mw-640 { max-width: 640px; } .mw-720 { max-width: 720px; } .mw-820 { max-width: 820px; }

/* ---------- Shape & layering ---------- */
.br-sm { border-radius: var(--radius-sm) !important; }
.br-md { border-radius: var(--radius-md) !important; }
.br-lg { border-radius: var(--radius-lg) !important; }
.br-pill { border-radius: var(--radius-pill) !important; }
.z-1 { position: relative; z-index: 1; }
.overflow-clip { overflow: clip; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  font-variation-settings: 'ROND' 0;
  cursor: pointer;
  transition: transform .3s var(--ease-out), box-shadow .3s, background-color .3s, color .3s, border-color .3s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-sm { padding: 12px 22px; font-size: .95rem; }

.button-primary { color: var(--white-color); background-color: var(--primary-color-600); }
.button-primary:hover { color: var(--white-color); background-color: var(--primary-color-800); box-shadow: 0 16px 30px -14px rgba(10, 42, 82, .6); }
.button-accent { color: var(--primary-color-800); background-color: var(--accent-color-400); }
.button-accent:hover { color: var(--primary-color-800); background-color: #FFD07A; box-shadow: 0 16px 30px -12px rgba(255, 196, 92, .7); }
.button-white.outline { color: var(--white-color); background: transparent; border-color: rgba(255, 255, 255, .45); }
.button-white.outline:hover { color: var(--white-color); background: rgba(255, 255, 255, .1); border-color: var(--white-color); }
.button-navy.outline { color: var(--primary-color-600); background: var(--white-color); border-color: var(--border-color); }
.button-navy.outline:hover { color: var(--primary-color-600); border-color: var(--primary-color-600); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--primary-color-600);
  font-variation-settings: 'ROND' 0;
}
.link-arrow svg { transition: transform .3s var(--ease-out); }
.link-arrow:hover svg, a:hover .link-arrow svg { transform: translateX(4px); }

/* ---------- Icon box ---------- */
.icon-box {
  width: 56px; height: 56px; min-width: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--secondary-color-25);
  color: var(--primary-color-600);
}
.icon-box.sun { background: var(--accent-color-400); color: var(--primary-color-800); }
.icon-box.sm  { width: 42px; height: 42px; min-width: 42px; }

/* ---------- Scroll reveal (driven by main.js) ---------- */
.js-anim [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js-anim [data-reveal="left"]  { transform: translate3d(-32px, 0, 0); }
.js-anim [data-reveal="right"] { transform: translate3d(32px, 0, 0); }
.js-anim [data-reveal].is-in   { opacity: 1; transform: none; }
.js-anim .img-zoom img { transform: scale(1.12); transition: transform 1.8s var(--ease-out); }
.js-anim .img-zoom.is-in img, .js-anim .is-in .img-zoom img { transform: scale(1); }

@keyframes float-y { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 196, 92, .6); } 100% { box-shadow: 0 0 0 12px rgba(255, 196, 92, 0); } }
.float-anim { animation: float-y 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim [data-reveal] { opacity: 1; transform: none; transition: none; }
  .float-anim, .hero-pill .dot { animation: none; }
}

/* ---------- Container ---------- */
@media (min-width: 1400px) { .container { max-width: 1240px; } }

/* ---------- Responsive spacing ---------- */
@media (max-width: 1399px) { .spacer-y { padding-block: 110px; } .spacer-xl { padding-block: 100px; } }
@media (max-width: 991px) {
  .spacer-y, .spacer-xl { padding-block: 80px; }
  .spacer-lg { padding-block: 70px; }
  .spacer-y-sm { padding-block: 60px; }
  .mb-60, .mb-80 { margin-bottom: 40px; }
  .mb-50 { margin-bottom: 32px; }
}
@media (max-width: 767px) {
  .spacer-y, .spacer-xl { padding-block: 64px; }
  .spacer-lg { padding-block: 56px; }
  .spacer-y-sm { padding-block: 48px; }
  .button { padding: 13px 22px; }
}
