/* ============================================================
   Your Community Care — design system
   Palette derived from the original build's CSS variables.
   ============================================================ */
:root {
  --bg:        #f6f2ee;   /* warm cream page background        */
  --surface:   #ffffff;   /* cards / panels                    */
  --surface-2: #efeae3;   /* subtle alt section background     */
  --ink:       #09222a;   /* near-black teal text              */
  --ink-soft:  #3f5158;   /* muted body text                   */
  --primary:   #a3c8b5;   /* sage / mint (hsl 150 25% 71%)     */
  --primary-d: #7fae97;   /* darker sage for hover             */
  --secondary: #29597a;   /* deep teal-blue (205 50% 32%)      */
  --secondary-d:#1e4258;  /* darker deep teal                  */
  --accent:    #3676a0;   /* medium teal (205 50% 42%)         */
  --line:      #e2dbd2;   /* hairline borders on cream         */
  --line-2:    #d9e6df;   /* hairline on light teal areas      */
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(9,34,42,.04), 0 8px 24px rgba(9,34,42,.06);
  --shadow-lg: 0 12px 40px rgba(9,34,42,.12);
  --maxw:      1160px;
  --gut:       clamp(20px, 5vw, 48px);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--secondary); }
h1,h2,h3,h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--alt { background: var(--surface-2); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--secondary); margin-bottom: 14px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font: inherit; font-weight: 600; font-size: .98rem; cursor: pointer;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .06s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--secondary); color: #fff; }
.btn--primary:hover { background: var(--secondary-d); color: #fff; box-shadow: var(--shadow); }
.btn--sage { background: var(--primary); color: var(--ink); }
.btn--sage:hover { background: var(--primary-d); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--secondary); }
.btn--light:hover { background: rgba(255,255,255,.88); color: var(--secondary-d); }
.btn--on-dark.btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.btn--on-dark.btn--ghost:hover { background: #fff; color: var(--secondary); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,242,238,.85);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-links a {
  color: var(--ink); font-weight: 500; font-size: .96rem;
  padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav-links a:hover { background: rgba(41,89,122,.08); color: var(--secondary); }
.nav-links a[aria-current="page"] { color: var(--secondary); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; cursor: pointer; transition: border-color .15s, color .15s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; color: var(--ink);
}
.nav-toggle svg { width: 100%; height: 100%; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 2px; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px var(--gut) 20px; box-shadow: var(--shadow-lg);
    transform: translateY(-130%); transition: transform .28s ease; visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { padding: 14px 12px; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .nav-links .nav-actions { margin-top: 10px; flex-direction: column; align-items: stretch; }
  .nav-links .nav-actions .btn { width: 100%; }
}

/* ============================================================
   Hero (image masthead + teal overlay)
   ============================================================ */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; object-fit: cover; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(13,49,64,.92) 0%, rgba(20,74,98,.82) 45%, rgba(41,89,122,.55) 100%);
}
.hero__inner { padding-block: clamp(88px, 16vw, 168px); max-width: 760px; }
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.03em; margin-bottom: 18px;
}
.hero p { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255,255,255,.92); max-width: 52ch; margin-bottom: 30px; }
.hero .btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* compact hero for interior pages */
.page-hero { position: relative; color: #fff; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; object-fit: cover; width: 100%; height: 100%; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(13,49,64,.90), rgba(41,89,122,.62));
}
.page-hero__inner { padding-block: clamp(64px, 10vw, 116px); max-width: 720px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.92); font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 56ch; }

/* ============================================================
   Cards / grids
   ============================================================ */
.grid { display: grid; gap: 26px; }
.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: 880px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(41,89,122,.10); color: var(--secondary); margin-bottom: 16px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card .card__link { margin-top: 16px; font-weight: 600; font-size: .92rem; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.card .card__link:hover { gap: 10px; color: var(--secondary); }

/* media card (image on top) */
.media-card { padding: 0; overflow: hidden; }
.media-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.media-card .body { padding: 22px 24px 26px; }
.media-card .tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px; display: inline-block;
}

/* ============================================================
   Feature rows (alternating text / image)
   ============================================================ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(48px, 7vw, 88px); }
.feature__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.feature--reverse .feature__media { order: -1; }
.feature h2 { margin-bottom: 14px; }
.feature ul { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 12px; }
.feature li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.feature li strong { color: var(--ink); }
.feature li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background: var(--primary); border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(41,89,122,.0);
}
.feature li::after {
  content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 9px;
  border-right: 2px solid var(--secondary); border-bottom: 2px solid var(--secondary);
  transform: rotate(40deg);
}
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
}

/* ============================================================
   Steps (numbered)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; counter-reset: step; }
@media (max-width: 760px){ .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--secondary); color: #fff;
  font-weight: 700; display: grid; place-items: center; margin-bottom: 16px; font-size: 1.1rem;
}

/* ============================================================
   Testimonials
   ============================================================ */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.quote p { color: var(--ink); font-size: 1.02rem; }
.quote .who { margin-top: 18px; font-weight: 700; color: var(--secondary); }
.quote .stars { color: #e6b800; margin-bottom: 14px; letter-spacing: 2px; }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 24px 22px; color: var(--ink-soft); }

/* ============================================================
   Contact section + widget skin
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-info .detail { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; }
.contact-info .detail svg { width: 22px; height: 22px; color: var(--secondary); flex: none; margin-top: 3px; }
.contact-info .detail strong { display: block; color: var(--ink); }
.contact-info .detail span { color: var(--ink-soft); }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow); }
/* make the injected widget fill its card and match brand */
#contact-form-root .gtc-form { max-width: 100% !important; font-family: var(--font) !important; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: var(--secondary); color: #fff; border-radius: var(--radius); padding: clamp(34px, 6vw, 60px); text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 56ch; margin: 0 auto 24px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.74); padding-block: 56px 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer img { height: 40px; margin-bottom: 14px; }
.site-footer p { color: rgba(255,255,255,.6); font-size: .94rem; max-width: 34ch; }
.site-footer .col-title { color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.74); font-size: .95rem; }
.site-footer a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.5);
}

/* utilities */
.muted { color: var(--ink-soft); }
.mt-0 { margin-top: 0; }
[hidden] { display: none !important; }
.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--secondary); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 100; transition: top .15s;
}
.skip-link:focus { top: 12px; color: #fff; }
