/* ============================================================
   Caring Heart Home Care Services — Design System
   Palette drawn directly from the brand mark: the royal-purple
   heart, and the red / teal / green figures joined by hands.
   ============================================================ */

:root{
  /* ---- Color tokens (named, derived from the logo) ---- */
  --heart-purple:      #5B2E8C;   /* primary — the heart itself */
  --heart-purple-dark: #3D1F63;   /* deep plum for text on light, and dark sections */
  --heart-purple-tint: #F1EAF9;   /* pale purple wash for section backgrounds */
  --hearth-teal:        #1F9C88;  /* secondary — the joining hands */
  --hearth-teal-dark:   #16705F;
  --terra-red:          #C0392B;  /* accent — warmth, urgency (calls, CTAs) */
  --meadow-green:       #7FB13D;  /* accent — the smallest figure, growth/wellbeing */
  --gold:               #D9A441;  /* sparingly, for benefits/star moments */
  --linen:              #FBF7F1;  /* warm off-white background, not sterile white */
  --linen-deep:         #F3ECE1;
  --ink:                #2B2230;  /* near-black with a purple cast, for body text */
  --ink-soft:           #5B5364;
  --white:              #FFFFFF;
  --line:               #E7DFEF;

  /* ---- Type ---- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Karla", "Segoe UI", system-ui, sans-serif;

  /* ---- Rhythm ---- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-soft: 0 12px 32px -16px rgba(61, 31, 99, 0.28);
  --shadow-card: 0 6px 20px -10px rgba(61, 31, 99, 0.22);
  --container: 1160px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--linen);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; height:auto; display:block; }

/* Default inline icon size (scales with surrounding text). Specific
   contexts below (icon-badge, check-list, faq-q, hero-badge, etc.)
   override this with their own fixed pixel sizes. */
svg{ width:1.05em; height:1.05em; vertical-align:-0.18em; flex:none; }
a{ color: var(--heart-purple); text-decoration: none; }
a:hover{ color: var(--hearth-teal-dark); }
h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--heart-purple-dark);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1{ font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; }
h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3{ font-size: 1.3rem; }
p{ margin: 0 0 1em; }
ul{ margin: 0 0 1em; padding-left: 1.2em; }
.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden{ position:absolute; width:1px;height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

:focus-visible{ outline: 3px solid var(--terra-red); outline-offset: 2px; }

/* ---- Eyebrow / labels ---- */
.eyebrow{
  display:inline-flex; align-items:center; gap:.5em;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--hearth-teal-dark);
  margin-bottom: .9em;
}
.eyebrow::before{
  content:""; width: 22px; height: 2px; background: var(--terra-red); display:inline-block;
}

/* ============ Signature motif: the joined-hands arc ============
   A recurring line-art arc of linked hands, echoing the logo,
   used as a section divider / decorative signature across pages. */
.hands-divider{ display:block; width:100%; height:auto; margin: 0 auto; }
.hands-divider path{ fill:none; stroke-linecap:round; stroke-linejoin:round; }

/* ---- Buttons ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.55em;
  font-family: var(--font-body); font-weight:700; font-size: .98rem;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--terra-red); color:var(--white); box-shadow: var(--shadow-soft); }
.btn-primary:hover{ background:#a6362a; color:var(--white); transform: translateY(-2px); }
.btn-secondary{ background: var(--white); color: var(--heart-purple-dark); border-color: var(--heart-purple); }
.btn-secondary:hover{ background: var(--heart-purple-tint); color: var(--heart-purple-dark); }
.btn-ghost{ background:transparent; color:var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover{ background: rgba(255,255,255,.14); color:var(--white); }
.btn-block{ width:100%; }

/* ---- Header ---- */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(251,247,241,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar{
  background: var(--heart-purple-dark); color:#fff; font-size:.85rem;
}
.topbar .container{ display:flex; justify-content:space-between; align-items:center; padding-top:6px; padding-bottom:6px; gap: 1em; flex-wrap:wrap;}
.topbar a{ color:#fff; }
.topbar a:hover{ color: var(--gold); }
.topbar-links{ display:flex; gap:1.4em; }
.nav-wrap{ display:flex; align-items:center; justify-content:space-between; padding: 12px 0; gap: 1.5rem; }
.brand{ display:flex; align-items:center; gap:.7em; font-family:var(--font-display); font-weight:700; color:var(--heart-purple-dark); font-size:1.15rem;}
.brand img{ height:72px; width:auto; }
.brand-tag{ display:block; font-family: var(--font-body); font-weight:400; font-size:.7rem; color:var(--ink-soft); letter-spacing:.03em;}
.main-nav ul{ list-style:none; display:flex; gap: 1.6em; margin:0; padding:0; align-items:center; }
.main-nav a{ color: var(--ink); font-weight:600; font-size:.96rem; }
.main-nav a:hover{ color: var(--heart-purple); }
.nav-cta{ display:flex; align-items:center; gap:.9em; }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:6px; }
.nav-toggle svg{ width:26px; height:26px; }
.nav-toggle span{ display:block; width:26px; height:3px; background:var(--heart-purple-dark); margin:5px 0; border-radius:2px;}

@media (max-width: 900px){
  .main-nav{
    position:fixed; inset: 0 0 0 30%; background:var(--white);
    padding: 90px 28px 28px; transform: translateX(100%);
    transition: transform .25s ease; box-shadow: -10px 0 30px rgba(0,0,0,.15);
    overflow-y:auto;
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav ul{ flex-direction:column; align-items:flex-start; gap: 1.1em; }
  .nav-toggle{ display:block; }
  .nav-cta .btn-secondary{ display:none; }
  .topbar-links{ gap: .9em; }
  .topbar-hours{ display:none; }
}
@media (max-width: 480px){
  .topbar-email{ display:none; }
  .brand img{ height:50px; }
  .brand-tag{ display:none; }
}

/* ---- Hero ---- */
.hero{
  position:relative; overflow:hidden;
  background: linear-gradient(155deg, var(--heart-purple-dark) 0%, var(--heart-purple) 62%, var(--hearth-teal-dark) 100%);
  color:#fff; padding: 64px 0 84px;
}
.hero .container{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items:center; }
.hero h1{ color:#fff; }
.hero p.lede{ font-size:1.15rem; color: rgba(255,255,255,.88); max-width:46ch; }
.hero .cta-row{ display:flex; gap:1em; flex-wrap:wrap; margin-top:1.6em; }
.hero-badges{ display:flex; gap:1.6em; margin-top: 2.2em; flex-wrap:wrap; }
.hero-badge{ font-size:.85rem; color:rgba(255,255,255,.85); display:flex; align-items:center; gap:.5em; }
.hero-badge svg{ width:20px; height:20px; flex:none; }
.hero-art{ position:relative; }
@media (max-width: 900px){ .hero .container{ grid-template-columns: 1fr; } .hero-art{ order:-1; max-width:280px; margin:0 auto;} }

.page-hero{
  background: linear-gradient(155deg, var(--heart-purple-dark), var(--heart-purple) 70%);
  color:#fff; padding: 52px 0 60px;
}
.page-hero h1{ color:#fff; margin-bottom:.3em; }
.page-hero p{ color:rgba(255,255,255,.85); max-width:64ch; font-size:1.08rem; }
.breadcrumb{ list-style:none; display:flex; flex-wrap:wrap; gap:.4em; padding:0; margin:0 0 1.1em; font-size:.85rem; color:rgba(255,255,255,.65);}
.breadcrumb li{ display:flex; align-items:center; gap:.4em; }
.breadcrumb a{ color:rgba(255,255,255,.8); }
.breadcrumb a:hover{ color:#fff; }

/* ---- Sections ---- */
section{ padding: 72px 0; }
.section-tight{ padding: 48px 0; }
.section-alt{ background: var(--white); }
.section-tint{ background: var(--heart-purple-tint); }
.section-dark{ background: var(--heart-purple-dark); color: #fff; }
.section-dark h2{ color:#fff; }
.section-dark p{ color: rgba(255,255,255,.82); }
.section-head{ max-width: 720px; margin: 0 0 2.6em; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---- Grids & Cards ---- */
.grid{ display:grid; gap: 1.8rem; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid-3,.grid-4{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .grid-2,.grid-3,.grid-4{ grid-template-columns: 1fr; } }

.card{
  background:#fff; border-radius: var(--radius-md); padding: 1.9rem;
  box-shadow: var(--shadow-card); border:1px solid var(--line);
  height:100%;
}
.card .icon-badge{ margin-bottom: 1em; }
.card h3{ margin-bottom:.4em; }
.card p{ color: var(--ink-soft); margin-bottom:.6em; }
.card a.card-link{ font-weight:700; color:var(--hearth-teal-dark); display:inline-flex; align-items:center; gap:.35em; }

.icon-badge{
  width:56px; height:56px; border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  background: var(--heart-purple-tint);
}
.icon-badge svg{ width:28px; height:28px; stroke: var(--heart-purple); }
.icon-badge.teal{ background: #E4F3F0; } .icon-badge.teal svg{ stroke: var(--hearth-teal-dark); }
.icon-badge.red{ background: #FBEAE8; } .icon-badge.red svg{ stroke: var(--terra-red); }
.icon-badge.green{ background: #F0F6E6; } .icon-badge.green svg{ stroke: var(--meadow-green); }
.icon-badge.gold{ background: #FBF0DD; } .icon-badge.gold svg{ stroke: var(--gold); }

.stat-row{ display:flex; gap: 2.6rem; flex-wrap:wrap; }
.stat b{ font-family:var(--font-display); font-size: 2.1rem; color:var(--heart-purple-dark); display:block;}
.stat span{ color:var(--ink-soft); font-size:.9rem; }

.check-list{ list-style:none; padding:0; margin:0; display:grid; gap:.65em; }
.check-list li{ display:flex; gap:.65em; align-items:flex-start; }
.check-list svg{ flex:none; width:20px;height:20px; stroke:var(--hearth-teal-dark); margin-top:2px; }

.step-list{ counter-reset: step; list-style:none; padding:0; margin:0; display:grid; gap:1.4em; }
.step-list li{ display:flex; gap:1.1em; }
.step-num{
  flex:none; width:42px; height:42px; border-radius:50%;
  background: var(--heart-purple); color:#fff; font-family:var(--font-display); font-weight:700;
  display:flex; align-items:center; justify-content:center;
}

/* ---- Testimonials (illustrated avatars, no stock photography) ---- */
.avatar{
  width:64px; height:64px; border-radius:50%; flex:none;
  display:flex; align-items:center; justify-content:center;
}
.testimonial{ background:#fff; border-radius: var(--radius-md); padding:1.8rem; box-shadow: var(--shadow-card); }
.testimonial .stars{ color: var(--gold); letter-spacing:.15em; margin-bottom:.6em; }
.testimonial-who{ display:flex; align-items:center; gap:1em; margin-top:1.2em; }
.testimonial-who b{ display:block; color: var(--heart-purple-dark); }
.testimonial-who span{ font-size:.85rem; color:var(--ink-soft); }

/* ---- FAQ accordion ---- */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center; gap:1em;
  padding: 1.3em 0; font-family: var(--font-display); font-weight:600; font-size:1.08rem;
  color: var(--heart-purple-dark);
}
.faq-q svg{ flex:none; width:22px; height:22px; transition: transform .2s ease; stroke: var(--hearth-teal-dark); }
.faq-item.open .faq-q svg{ transform: rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .25s ease; color: var(--ink-soft); }
.faq-item.open .faq-a{ max-height: 600px; }
.faq-a-inner{ padding-bottom:1.4em; }
.faq-cat-title{ margin-top:2.4em; }

/* ---- Forms ---- */
.form-card{ background:#fff; border-radius: var(--radius-lg); padding: 2.4rem; box-shadow: var(--shadow-soft); }
label{ display:block; font-weight:700; font-size:.88rem; margin-bottom:.4em; color:var(--heart-purple-dark);}
input, select, textarea{
  width:100%; padding:.75em .9em; border-radius: var(--radius-sm); border:1.5px solid var(--line);
  font-family: var(--font-body); font-size:1rem; background: var(--linen); margin-bottom: 1.2em; color: var(--ink);
}
input:focus, select:focus, textarea:focus{ outline:none; border-color: var(--heart-purple); background:#fff; }
fieldset{ border:none; padding:0; margin:0 0 1.2em; }
legend{ font-weight:700; font-size:.88rem; color:var(--heart-purple-dark); margin-bottom:.5em; padding:0; }
.check-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap:.5em .8em; }
.check-opt{ display:flex; align-items:center; gap:.5em; font-weight:500; color:var(--ink); font-size:.92rem;}
.check-opt input{ width:auto; margin:0; }
.form-note{ font-size:.85rem; color: var(--ink-soft); background: var(--heart-purple-tint); padding: 1em 1.2em; border-radius: var(--radius-sm); margin-bottom:1.4em; }

/* ---- CTA band ---- */
.cta-band{
  background: linear-gradient(120deg, var(--terra-red), #9c3527);
  color:#fff; border-radius: var(--radius-lg); padding: 3rem; text-align:center;
}
.cta-band h2{ color:#fff; }
.cta-band p{ color: rgba(255,255,255,.9); max-width:56ch; margin-left:auto; margin-right:auto; }
.cta-band .cta-row{ display:flex; justify-content:center; gap:1em; flex-wrap:wrap; margin-top:1.4em; }

/* ---- Area / city chips ---- */
.chip-cloud{ display:flex; flex-wrap:wrap; gap:.6em; }
.chip{
  background:#fff; border:1.5px solid var(--line); border-radius:999px; padding:.5em 1.1em;
  font-size:.9rem; font-weight:600; color: var(--heart-purple-dark);
}
.chip:hover{ border-color:var(--heart-purple); background: var(--heart-purple-tint); }

/* ---- Footer ---- */
.site-footer{ background: var(--heart-purple-dark); color: rgba(255,255,255,.82); padding: 56px 0 24px; }
.site-footer h4{ color:#fff; font-family:var(--font-body); font-size:.95rem; letter-spacing:.04em; text-transform:uppercase; margin-bottom:1em;}
.site-footer a{ color: rgba(255,255,255,.78); }
.site-footer a:hover{ color:#fff; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.4rem; }
.footer-grid ul{ list-style:none; padding:0; margin:0; display:grid; gap:.6em; }
.footer-brand{ display:flex; align-items:center; gap:.7em; margin-bottom:1em; }
.footer-brand img{ height:60px; width:auto; }
.footer-brand b{ font-family:var(--font-display); color:#fff; font-size:1.1rem; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.18); margin-top: 2.6rem; padding-top: 1.6rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:1em; font-size:.82rem; color: rgba(255,255,255,.6);}
.footer-bottom a{ color: rgba(255,255,255,.7); }
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ---- Misc ---- */
.badge-inline{ display:inline-flex; align-items:center; gap:.4em; background: var(--heart-purple-tint); color:var(--heart-purple-dark); padding:.35em .9em; border-radius:999px; font-size:.8rem; font-weight:700;}
.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items:center; }
@media (max-width:900px){ .two-col{ grid-template-columns:1fr; } }
.table-wrap{ overflow-x:auto; }
table{ width:100%; border-collapse:collapse; background:#fff; border-radius:var(--radius-md); overflow:hidden;}
th,td{ text-align:left; padding: .9em 1.1em; border-bottom:1px solid var(--line); font-size:.95rem;}
th{ background: var(--heart-purple-tint); color:var(--heart-purple-dark); font-family:var(--font-display); }
.legal-content h2{ margin-top:1.6em; }
.legal-content h3{ margin-top:1.2em; color:var(--heart-purple-dark); }
.legal-content ul{ padding-left:1.4em; }
.legal-content{ max-width: 820px; }
.back-to-top{ display:none; }
#back-to-top svg{ width:20px; height:20px; transform: rotate(-90deg); }

@media print{ .site-header,.site-footer,.cta-band{ display:none; } }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}
