/* ------------------------------------------------------------------
   Primary HomeCare Specialties — site styles
   Palette carries the heritage sage-teal (#68A598) from the original
   site, paired with a deep teal and warm cream for a calm, modern feel.
   ------------------------------------------------------------------ */

:root {
  --teal-900: #14333f;
  --teal-800: #1c4552;
  --teal-700: #245868;
  --teal-500: #1aa3a0;        /* heartbeat line in the refreshed logo */
  --sage:     #68a598;        /* heritage accent from the 2014 site */
  --sage-100: #e6f1ee;
  --sage-50:  #f2f8f6;
  --cream:    #faf8f4;
  --white:    #ffffff;
  --ink:      #1f2a30;
  --ink-soft: #4b5a62;
  --muted:    #7a878e;
  --line:     #e3e8e6;

  --serif: "Cormorant Garamond", "Didot", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius: 20px;
  --shadow: 0 20px 50px -20px rgba(20, 51, 63, 0.35);
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
section[id] { scroll-margin-top: 84px; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--teal-900);
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.45rem; }
p  { margin: 0 0 1em; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 1rem;
}
.eyebrow.light { color: var(--sage); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.35em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 0.9em 1.7em; font-size: 1.02rem; }
.btn-primary { background: var(--teal-800); color: var(--white); }
.btn-primary:hover { background: var(--teal-900); }
.btn-ghost { border-color: var(--teal-800); color: var(--teal-800); background: transparent; }
.btn-ghost:hover { background: var(--sage-50); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-wordmark {
  height: 56px;
  width: auto;
}

.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.site-nav a:hover { color: var(--teal-800); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--teal-700);
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.25rem; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.hero-badge { width: 84px; height: auto; flex: none; }
.hero-trust-text { display: flex; flex-direction: column; gap: 0.3rem; }
.stars { display: inline-flex; gap: 2px; color: var(--teal-500); }
.stars svg { width: 20px; height: 20px; fill: currentColor; }
.stars .star-outline { fill: none; stroke: currentColor; stroke-width: 1.5; }
.hero-trust strong { color: var(--ink); font-weight: 600; }

.hero-media { position: relative; }
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sage-100);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Landscape source; keep the two faces (right two-thirds) in the crop. */
  object-position: 68% 50%;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 12% -8% -10% 12%;
  border-radius: var(--radius);
  background: var(--sage-100);
  z-index: -1;
}


/* ---------- Accolades ticker ---------- */
.ticker {
  background: var(--sage-100);
  color: var(--ink);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 70s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ticker-list li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95rem 2.25rem;
  white-space: nowrap;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.ticker-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
  flex: none;
}
.ticker-list li strong { color: var(--teal-900); font-weight: 600; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Services ---------- */
.services { padding: clamp(4rem, 9vw, 7rem) 0; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.service {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}
.service h3 { font-size: 1.35rem; margin-bottom: 0.5em; }
.service p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.care-model {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--radius);
  background: var(--teal-900);
  color: var(--white);
}
.care-model h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.care-model-copy p:last-child { color: rgba(255,255,255,0.78); margin: 0; }
.care-model-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.care-model-points li {
  padding-left: 1.5rem;
  border-left: 2px solid var(--sage);
  color: rgba(255,255,255,0.78);
  font-size: 0.98rem;
}
.care-model-points strong {
  display: block;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.2em;
}

/* ---------- Recognition ---------- */
.recognition { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--cream); }
.awards {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 860px;
}
.award {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.award:last-child { border-bottom: 1px solid var(--line); }
.award-year {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: var(--teal-500);
}
.award-featured { grid-template-columns: 120px 1fr auto; align-items: center; }
.award-badge { width: 110px; height: auto; }
.award-body h3 { font-size: 1.3rem; margin-bottom: 0.3em; }
.award-body p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.award-body em { font-style: italic; }

/* ---------- Mission ---------- */
.mission {
  background: var(--teal-900);
  color: var(--white);
  padding: clamp(4rem, 9vw, 7rem) 0;
  text-align: center;
}
.mission-inner { max-width: 820px; }
.mission-statement {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.65rem, 3.4vw, 2.6rem);
  line-height: 1.35;
  color: #f4f8f7;
}
.heartbeat {
  margin: 2.5rem auto 0;
  width: min(320px, 70%);
  color: var(--sage);
  opacity: 0.9;
}

/* ---------- Quality ---------- */
.quality {
  background: var(--sage-50);
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.rating-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.rating {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.75rem;
  background: var(--teal-900);
  color: var(--white);
  border-radius: var(--radius);
}
.rating .stars { color: #f0c65a; }
.rating .stars svg { width: 26px; height: 26px; }
.rating-value {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.1;
  margin-top: 0.5rem;
}
.rating-label { font-size: 0.95rem; color: rgba(255,255,255,0.75); }
.stat-group {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.stat-grid + .stat-group { margin-top: 2.5rem; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat-value {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--teal-900);
}
.stat-label { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.45; margin-top: 0.4rem; }
.stat-compare {
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.stat-source {
  margin: 2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 60em;
}

/* ---------- Values ---------- */
.values { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-sub { color: var(--ink-soft); font-size: 1.08rem; }
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.value {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.value:hover { background: var(--white); border-color: var(--line); }
.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--sage-100);
  color: var(--teal-700);
  margin-bottom: 1.25rem;
}
.value-icon svg { width: 24px; height: 24px; }
.value h3 { margin-bottom: 0.4em; }
.value p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* ---------- Careers ---------- */
.careers { padding: clamp(4rem, 9vw, 7rem) 0; }
.careers-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.careers-copy p { color: var(--ink-soft); font-size: 1.08rem; max-width: 32em; margin-bottom: 1.75rem; }
.careers-photo {
  aspect-ratio: 4 / 4.2;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sage);
  position: relative;
  box-shadow: var(--shadow);
}
.careers-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.9;
}
.careers-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(104,165,152,0.3), rgba(28,69,82,0.5));
  mix-blend-mode: multiply;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--cream);
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 860px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-500);
}
.contact-value {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 600;
  color: var(--teal-900);
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
/* Same logo as the header, knocked out to white for the dark band. */
.footer-wordmark { width: 280px; height: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-mission {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: #f4f8f7;
}
.footer-meta { font-size: 0.85rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .value-grid, .stat-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .care-model { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { min-height: 68px; gap: 1rem; }
  .brand-wordmark { height: 44px; }
  .header-cta { font-size: 0.85rem; padding: 0.6em 1em; }
  .hero-grid, .careers-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; }
  .hero-photo { aspect-ratio: 16 / 11; }
  .hero-photo img { object-position: 60% 50%; }
  .careers-photo { max-width: 420px; aspect-ratio: 5 / 4; }
  .value-grid, .stat-grid, .service-grid { grid-template-columns: 1fr; }
  .award, .award-featured { grid-template-columns: 1fr; gap: 0.5rem; }
  .award-badge { width: 90px; margin-top: 0.5rem; }
  .award-year { font-size: 1.5rem; }
  .contact-cards, .rating-row { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .header-cta { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .contact-card, .value { transition: none; }
  /* No marquee: show the list once, wrapped and static. */
  .ticker-track { animation: none; width: auto; }
  .ticker-list { flex-wrap: wrap; justify-content: center; }
  .ticker-list[aria-hidden="true"] { display: none; }
  .ticker-list li { white-space: normal; padding: 0.6rem 1.25rem; }
}
