/* ==========================================================================
   Elevate Care Connect — base styles, v2 (10/16).
   v1 (a measured copy of the WordPress theme) is archived in
   src/archive/home-v1-2026-10-16/. v2 keeps the brand (teal, deep green,
   Playfair headings, same copy) and fixes what read as "template":
   two families instead of three (Playfair for headings, DM Sans for
   everything else), readable body text (AA contrast), one button style,
   one spacing rhythm, a smaller header.
   ========================================================================== */

@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../assets/fonts/playfair-display-latin-wght-normal.woff2') format('woff2-variations'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url('../assets/fonts/dm-sans-latin-wght-normal.woff2') format('woff2-variations'); }

:root {
  --teal:       #85A6A6;   /* brand teal: lines, icons, numbers, on-dark accents */
  --teal-deep:  #4E7575;   /* teal for text and buttons on light (5:1 on white) */
  --green:      #163838;   /* dark bands, footer, cards */
  --green-2:    #1F4848;
  --heading:    #1F2A2A;
  --body:       #5B6262;   /* body text (6:1 on white) */
  --muted:      #7A8383;
  --line:       #E3E8E7;
  --card:       #F2F4F3;
  --tint:       #F6F9FA;
  --foot-link:  #B9C3C3;
  --foot-line:  #2C5252;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --container: 1320px;
  --pad: 40px;
  --section: 120px;
  --radius: 15px;
  --shadow: 0 18px 50px rgba(22, 56, 56, .10);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--body); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease); }
h1, h2, h3, h4 { margin: 0; color: var(--heading); font-family: var(--serif); font-weight: 700; letter-spacing: -.005em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--green); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; }

/* --- Type ------------------------------------------------------------------ */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; font-family: var(--sans); font-size: 13px; line-height: 1;
  font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--teal-deep); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--teal); }
.h-xl { font-size: 50px; line-height: 1.16; }
.h-lg { font-size: 40px; line-height: 1.2; }
.h-card { font-size: 25px; line-height: 1.3; }
.lede { font-size: inherit; line-height: inherit; } /* 10/16: intro paragraphs match body text */

/* --- Buttons ------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; border: 1px solid var(--teal-deep); border-radius: 40px;
  background: var(--teal-deep); color: #fff; font-family: var(--sans); font-size: 15px; line-height: 1; font-weight: 600; letter-spacing: .2px; white-space: nowrap; }
.btn svg { width: 15px; height: 15px; flex: none; transition: transform .3s var(--ease); }
.btn:hover { background: var(--green); border-color: var(--green); color: #fff; }
.btn:hover svg { transform: translateX(3px); }
.on-dark .btn, .btn--light { background: var(--teal); border-color: var(--teal); color: var(--green); }
.on-dark .btn:hover, .btn--light:hover { background: #fff; border-color: #fff; color: var(--green); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--green); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--teal-deep);
  border-bottom: 1px solid transparent; padding-bottom: 2px; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--green); border-bottom-color: currentColor; }
.link-arrow:hover svg { transform: translateX(3px); }

/* --- Header ----------------------------------------------------------------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 100; }
.site-header__bar { border-bottom: 1px solid rgba(255,255,255,.14); transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.site-header__inner { display: flex; align-items: center; gap: 40px; height: 100px; }
.brand { flex: none; display: block; width: 250px; }
.brand img { width: 100%; height: auto; }
.brand .logo-dark { display: none; }

.nav { display: flex; align-items: center; height: 100%; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 36px; margin: 0; padding: 0; list-style: none; height: 100%; }
.nav__item { position: relative; height: 100%; display: flex; align-items: center; }
.nav__row { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav__link { display: inline-flex; align-items: center; font-family: var(--sans); font-size: 15px; line-height: 1; font-weight: 600; color: #fff; }
.nav__link:hover, .nav__link[aria-current="page"], .nav__item:has(.nav__sub-toggle[data-current]) > .nav__row > .nav__link { color: var(--teal); }
.nav__sub-toggle { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.nav__sub-toggle svg { width: 10px; height: 10px; transition: transform .25s var(--ease); }
.nav__item.is-open .nav__sub-toggle svg { transform: rotate(180deg); }

.nav__sub { position: absolute; top: calc(100% - 14px); left: -18px; min-width: 230px; margin: 0; padding: 12px 0; list-style: none; background: #fff;
  border-radius: 12px; box-shadow: 0 20px 50px rgba(22,56,56,.16); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub, .nav__item.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 9px 22px; font-family: var(--sans); font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--heading); }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { color: var(--teal-deep); background: var(--tint); }

.header-cta { flex: none; }
.site-header:not(.is-stuck) .header-cta { background: var(--teal); border-color: var(--teal); color: var(--green); }
.site-header:not(.is-stuck) .header-cta:hover { background: #fff; border-color: #fff; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; color: #fff; padding: 0; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 6px auto; background: currentColor; }

.site-header.is-stuck { position: fixed; animation: hdrIn .45s var(--ease); }
.site-header.is-stuck .site-header__bar { background: #fff; border-bottom-color: transparent; box-shadow: 0 6px 30px rgba(22,56,56,.08); }
.site-header.is-stuck .site-header__inner { height: 80px; }
.site-header.is-stuck .brand { width: 210px; }
.site-header.is-stuck .logo-light { display: none; }
.site-header.is-stuck .logo-dark { display: block; }
.site-header.is-stuck .nav__link, .site-header.is-stuck .nav__sub-toggle, .site-header.is-stuck .nav-toggle { color: var(--heading); }
.site-header.is-stuck .nav__link:hover, .site-header.is-stuck .nav__link[aria-current="page"],
.site-header.is-stuck .nav__item:has(.nav__sub-toggle[data-current]) > .nav__row > .nav__link { color: var(--teal-deep); }
@keyframes hdrIn { from { transform: translateY(-100%); } to { transform: none; } }

.solid-header .site-header { position: relative; }
.solid-header .site-header .site-header__bar { background: #fff; border-bottom-color: var(--line); }
.solid-header .site-header .logo-light { display: none; }
.solid-header .site-header .logo-dark { display: block; }
.solid-header .site-header .nav__link, .solid-header .site-header .nav__sub-toggle, .solid-header .site-header .nav-toggle { color: var(--heading); }
.solid-header .site-header:not(.is-stuck) .header-cta { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }

/* --- Footer -------------------------------------------------------------------- */
.site-footer { background: var(--green); color: var(--foot-link); padding-top: 96px; }
.site-footer__grid { display: grid; grid-template-columns: 1.35fr 1fr .8fr 1fr; gap: 48px; padding-bottom: 80px; }
.footer-logo { width: 220px; margin-bottom: 34px; }
.footer-contact__block + .footer-contact__block { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-label { font-family: var(--sans); font-size: 12px; line-height: 1; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.footer-phone { display: inline-block; font-family: var(--serif); font-size: 26px; line-height: 1.2; font-weight: 700; color: #fff; }
.footer-address { display: block; max-width: 320px; font-size: 16px; line-height: 1.6; color: #fff; }
.footer-phone:hover, .footer-address:hover { color: var(--teal); }
.footer-col h2 { font-family: var(--serif); font-size: 21px; line-height: 1.3; font-weight: 600; color: #fff; margin-bottom: 22px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.footer-col a { font-size: 15px; line-height: 1.5; color: var(--foot-link); }
.footer-col a:hover { color: #fff; }
.footer-hours { margin: 0 0 26px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 15px; line-height: 1.5; }
.footer-hours dt { color: #fff; font-weight: 500; }
.footer-hours dd { margin: 0; color: var(--foot-link); }
.footer-bar { border-top: 1px solid var(--foot-line); }
.footer-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 30px; padding-top: 24px; padding-bottom: 24px; font-size: 14px; color: var(--foot-link); }
.footer-bar a:hover { color: #fff; }

.to-top { position: fixed; right: 28px; bottom: 28px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--teal-deep); color: #fff;
  display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s, background-color .25s; box-shadow: var(--shadow); }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green); }
.to-top svg { width: 16px; height: 16px; }

/* --- Reveal --------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .site-header.is-stuck { animation: none; }
}

/* --- Responsive ------------------------------------------------------------------- */
@media (min-width: 1024px) { .nav-close, .menu-scrim { display: none; } }
@media (max-width: 1199px) {
  :root { --pad: 32px; --section: 100px; }
  .nav__list { gap: 26px; }
  .site-header__inner { gap: 28px; }
  .brand { width: 220px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 50px 48px; }
}
@media (max-width: 1023px) {
  :root { --pad: 28px; --section: 88px; }
  .site-header__inner { height: 84px; }
  .site-header.is-stuck .site-header__inner { height: 72px; }
  .brand, .site-header.is-stuck .brand { width: 190px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); height: 100dvh; margin: 0; background: #fff; display: block; padding: 96px 28px 40px;
    transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.12); z-index: 120; }
  .nav.is-open { transform: none; }
  .nav__list { display: block; height: auto; }
  .nav__item { display: block; height: auto; border-bottom: 1px solid var(--line); }
  .nav__row { justify-content: space-between; height: auto; }
  .nav__link, .site-header.is-stuck .nav__link, .solid-header .site-header .nav__link { padding: 16px 0; color: var(--heading); font-size: 17px; }
  .nav__sub-toggle, .site-header.is-stuck .nav__sub-toggle { width: 44px; height: 44px; color: var(--heading); }
  .nav__sub { position: static; min-width: 0; padding: 0 0 12px; box-shadow: none; border-radius: 0; display: none; opacity: 1; visibility: visible; transform: none; }
  .nav__item.is-open > .nav__sub { display: block; }
  .nav__item:hover > .nav__sub { display: none; }
  .nav__item.is-open:hover > .nav__sub { display: block; }
  .nav__sub a { padding: 8px 0 8px 14px; }
  .nav-close { position: absolute; top: 20px; right: 18px; width: 46px; height: 46px; border: 0; background: none; font-size: 32px; line-height: 1; color: var(--heading); cursor: pointer; }
  body.menu-open { overflow: hidden; }
  .menu-scrim { position: fixed; inset: 0; background: rgba(0,25,21,.45); z-index: 99; } /* below the header (100), which holds the drawer */
  .h-xl { font-size: 40px; }
  .h-lg { font-size: 34px; }
}
@media (max-width: 767px) {
  :root { --pad: 20px; --section: 72px; }
  body { font-size: 16px; }
  .site-header__inner { height: 72px; }
  .site-header.is-stuck .site-header__inner { height: 64px; }
  .brand, .site-header.is-stuck .brand { width: 160px; }
  .h-xl { font-size: 32px; }
  .h-lg { font-size: 30px; }
  .h-card { font-size: 22px; }
  .site-footer { padding-top: 72px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 56px; }
  .to-top { right: 16px; bottom: 16px; }
}
