/* ===========================================================
   All Care Living Home - modern static refresh
   Brand: sage green (logo/CTAs) + indigo-blue (program accents)
   =========================================================== */

/* ---------- Design tokens ---------- */
:root {
  --green:       #4f8a76;
  --green-600:   #437a67;
  --green-700:   #356254;
  --green-050:   #eef5f2;
  --blue:        #3a55c5;
  --blue-600:    #2f47a8;
  --blue-050:    #eef1fb;
  --indigo-grad: linear-gradient(135deg, #3f53c6 0%, #5a3fb6 100%);
  --gold:        #c9a227;

  --ink:         #1f2a37;
  --body:        #45525f;
  --muted:       #6b7785;
  --line:        #e4eae8;
  --surface:     #ffffff;
  --surface-2:   #f4f8f6;
  --surface-3:   #eef3f1;

  --radius:      14px;
  --radius-sm:   10px;
  --radius-lg:   22px;
  --shadow-sm:   0 1px 3px rgba(20,40,33,.06), 0 1px 2px rgba(20,40,33,.04);
  --shadow:      0 6px 20px rgba(24,48,40,.08);
  --shadow-lg:   0 18px 50px rgba(24,48,40,.16);
  --ring:        0 0 0 3px rgba(79,138,118,.35);

  --container:   1160px;
  --header-h:    76px;

  --sans:        "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display:     "Poppins", var(--sans);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--green-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--green); }
ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section--alt { background: var(--surface-2); }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); }
.eyebrow {
  display: inline-block; font-family: var(--display); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: 14px;
}
.section-head { max-width: 660px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.5rem); margin-bottom: 14px; }
.section-head.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green-600); color: #fff; box-shadow: 0 6px 16px rgba(53,98,84,.32); }
.btn--primary:hover { background: var(--green-700); color: #fff; box-shadow: 0 10px 24px rgba(53,98,84,.42); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn--outline { background: #fff; color: var(--green-700); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--outline:hover { border-color: var(--green); color: var(--green-700); transform: translateY(-1px); }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--green-700); color: #eaf3ef;
  font-size: .86rem; letter-spacing: .01em;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: #d4ece2; }
.topbar__left { display: flex; align-items: center; gap: 8px; }
.topbar__right { display: flex; align-items: center; gap: 20px; }
.topbar__right .sep { opacity: .4; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
/* direct-child selector so these never override the nav CTA button (.nav-cta a.btn) */
.nav-links > a {
  font-family: var(--display); font-weight: 500; font-size: .96rem; color: var(--ink);
  padding: 9px 14px; border-radius: 8px; position: relative;
}
.nav-links > a:hover { color: var(--green-700); background: var(--green-050); }
.nav-links > a.active { color: var(--green-700); }
.nav-links > a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--green); border-radius: 2px;
}
.nav-cta { margin-left: 6px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); }
.nav-open .nav-toggle span::after { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--surface-2); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(28,46,40,.86) 0%, rgba(31,55,80,.7) 48%, rgba(31,55,80,.25) 100%);
}
.hero__inner { position: relative; z-index: 1; padding: 96px 0 104px; max-width: 640px; }
.hero h1 {
  color: #fff; font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.5rem); line-height: 1.08; margin-bottom: 20px;
}
.hero h1 .accent { color: #bfe3d4; display: block; font-weight: 600; }
.hero p { color: rgba(255,255,255,.92); font-size: 1.16rem; max-width: 540px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges { display: flex; align-items: center; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero__badge { display: inline-flex; align-items: center; gap: 11px; background: #fff; border-radius: 14px; padding: 12px 18px; box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.hero__badge img { height: 48px; width: auto; display: block; }

/* ---------- Trust strip ---------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 30px 0; }
.trust__item { display: flex; gap: 13px; align-items: flex-start; }
.trust__item .ic {
  flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--green-050); color: var(--green-700);
}
.trust__item h4 { font-size: 1rem; margin-bottom: 2px; }
.trust__item p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.45; }

/* ---------- Programs grid ---------- */
.programs { background: var(--surface-2); }
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d7e6e0; }
.card__icon {
  width: 60px; height: 60px; border-radius: 14px; background: var(--blue-050);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon img { width: 34px; height: 34px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { font-size: .94rem; color: var(--muted); margin: 0; }
.card__link { margin-top: auto; padding-top: 14px; font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--green-700); display: inline-flex; align-items: center; gap: 6px; }
.card--cta { background: var(--indigo-grad); border: none; color: #fff; justify-content: center; text-align: center; }
.card--cta h3, .card--cta p { color: #fff; }
.card--cta p { color: rgba(255,255,255,.85); }
.card--cta .card__icon { background: rgba(255,255,255,.16); }

/* ---------- Split / feature sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--rev .split__media { order: 2; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.split__body h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.3rem); margin-bottom: 16px; }
.split__body p { margin-bottom: 16px; }
.feature-list { display: grid; gap: 12px; margin: 20px 0 26px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink); }
.feature-list .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green-050);
  color: var(--green-700); display: grid; place-items: center; margin-top: 2px;
}
.stat-pill {
  display: inline-flex; align-items: baseline; gap: 8px; background: var(--green-050);
  color: var(--green-700); font-family: var(--display); font-weight: 600;
  padding: 8px 16px; border-radius: 999px; font-size: .95rem;
}
.stat-pill b { font-size: 1.25rem; }

/* ---------- Services list (programs page) ---------- */
.svc-list { display: grid; gap: 18px; }
.svc-item {
  display: grid; grid-template-columns: 84px 1fr; gap: 22px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease;
}
.svc-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.svc-item__icon { width: 72px; height: 72px; border-radius: 16px; background: var(--blue-050); display: grid; place-items: center; }
.svc-item__icon img { width: 40px; height: 40px; }
.svc-item h3 { font-size: 1.22rem; margin-bottom: 7px; }
.svc-item p { margin: 0; color: var(--body); }
.svc-item .mini-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.svc-item .mini-list span {
  font-size: .82rem; background: var(--surface-3); color: var(--green-700);
  padding: 5px 12px; border-radius: 999px; font-weight: 500;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.06); }

/* ---------- Video ---------- */
.video-frame {
  max-width: 880px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #0c1411; aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--indigo-grad); color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 26px; }
.cta-band .phone-lg { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: #fff; }
.cta-band .btn--primary { background: #fff; color: var(--blue-600); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.cta-band .btn--primary:hover { background: #f3f5ff; color: var(--blue-600); }

/* ---------- Contact cards (home) ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d7e6e0; }
.contact-card .ic { width: 54px; height: 54px; border-radius: 14px; background: var(--green-050); color: var(--green-700); display: grid; place-items: center; }
.contact-card .lbl { font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-card .val { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
a.contact-card .val { color: var(--green-700); }

/* ---------- Contact info ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-list { display: grid; gap: 18px; margin-top: 8px; }
.info-row { display: flex; gap: 15px; align-items: flex-start; }
.info-row .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--green-050); color: var(--green-700); display: grid; place-items: center; }
.info-row .lbl { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: .95rem; }
.info-row a, .info-row span { color: var(--body); }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-top: 26px; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero { background: linear-gradient(120deg, var(--green-700), #28524a); color: #fff; padding: 70px 0 64px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.06); }
.page-hero .eyebrow { color: #bfe3d4; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 620px; font-size: 1.1rem; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.75); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.9); }

/* ---------- Footer ---------- */
.site-footer { background: #16241f; color: #b9c7c0; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-brand img { height: 40px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; max-width: 320px; }
.footer-links a { color: #b9c7c0; display: inline-block; padding: 5px 0; font-size: .94rem; }
.footer-links a:hover { color: #fff; }
.footer-contact .row { display: flex; gap: 10px; margin-bottom: 10px; font-size: .93rem; }
.footer-contact .row .ic { color: var(--green); flex: none; }
.footer-contact a { color: #dce6e1; }
.footer-accred {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.1);
}
.accred-chip { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 9px 14px; }
.accred-chip img { height: 42px; width: auto; display: block; }
.accred-chip--text {
  background: rgba(255,255,255,.06); color: #cdd9d3; font-size: .82rem; line-height: 1.32; padding: 11px 16px;
}
.accred-chip--text svg { color: var(--green); flex: none; }
.accred-chip--text strong { color: #fff; display: block; font-weight: 600; }
.footer-bottom {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: #8ea197;
}
.powered-by a { color: #cdd9d3; font-weight: 600; }
.powered-by a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .section { padding: 60px 0; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: calc(var(--header-h)) 0 auto 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 14px 18px 22px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease; max-height: calc(100vh - var(--header-h)); overflow:auto;
  }
  .nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links > a { padding: 13px 12px; font-size: 1.05rem; }
  .nav-links > a.active::after { display: none; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .split--rev .split__media { order: 0; }
  .hero__inner { padding: 70px 0 78px; }
  .topbar__right .hide-sm { display: none; }
  .cta-band { padding: 40px 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .svc-item { grid-template-columns: 1fr; gap: 14px; }
  .topbar__right { gap: 12px; }
}
