/* ============================================================
   IHPC Home Health — Design System
   Variant: WARM NEUTRAL & CALM
   The palette lives entirely in the :root block below.
   Everything beneath it is shared across color variants.
   ============================================================ */

:root {
  /* — Palette ————————————————————————————————— */
  --bg:          #faf6ef;  /* warm off-white page base */
  --bg-tint:     #f1e8da;  /* sand band for alternating sections */
  --surface:     #ffffff;  /* cards */
  --ink:         #2a2620;  /* headings / primary text */
  --ink-soft:    #4a4339;  /* body text */
  --muted:       #7a7064;  /* secondary text */
  --line:        #e8decf;  /* hairlines / borders */
  --accent:      #3e6e93;  /* brand steel blue — used sparingly */
  --accent-dark: #305877;
  --accent-soft: #e8eef4;  /* pale accent wash */
  --feature-bg:  #232019;  /* deep espresso feature band */
  --feature-ink: #f3ede2;
  --feature-line:rgba(243,237,226,.18);
  --header-bg:   #f4ede1;  /* header bar — subtly distinct from the hero */

  /* — Form (shared) ——————————————————————————— */
  --radius:      18px;
  --radius-sm:   12px;
  --radius-pill: 999px;
  --shadow-sm:   0 2px 12px rgba(42, 38, 32, .05);
  --shadow:      0 22px 48px rgba(42, 38, 32, .12);
  --maxw:        1140px;
  --ease:        cubic-bezier(.22, .61, .36, 1);

  --font-head:   "Newsreader", Georgia, "Times New Roman", serif;
  --font-body:   "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
}

/* ============================================================
   Base
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .6rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-dark); }

.container {
  width: min(var(--maxw), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ============================================================
   Section rhythm + separation
   ============================================================ */

.section { padding: clamp(3.75rem, 8vw, 6.5rem) 0; }

.section--tint    { background: var(--bg-tint); }
.section--surface { background: var(--surface); }
.section--feature { background: var(--feature-bg); color: var(--feature-ink); }

/* soft hairline between adjoining same-tone sections */
.section + .section:not([class*="--"]) { border-top: 1px solid var(--line); }

.section-head { max-width: 60ch; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.section-head.center .eyebrow::before { display: none; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(62, 110, 147, .28);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 16px 32px rgba(62, 110, 147, .34); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { color: var(--ink); border-color: var(--ink); background: rgba(0,0,0,.02); }

.btn-ghost { padding-inline: 0; background: none; color: var(--accent); font-weight: 700; }
.btn-ghost:hover { transform: none; color: var(--accent-dark); }
.btn-ghost::after { content: "\2192"; transition: transform .25s var(--ease); }
.btn-ghost:hover::after { transform: translateX(4px); }

/* on dark feature band */
.section--feature .btn-secondary { color: var(--feature-ink); border-color: var(--feature-line); }
.section--feature .btn-secondary:hover { border-color: var(--feature-ink); background: rgba(255,255,255,.06); }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--header-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(42, 38, 32, .06);
}

.nav-wrap {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-logo { height: 2.6rem; width: auto; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.site-nav { display: none; align-items: center; gap: 2rem; }
.site-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .96rem;
  position: relative;
  padding: .25rem 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { width: 100%; }
.site-nav .btn { color: #fff; }
.site-nav .btn:hover::after { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: .55rem 1rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
}

.mobile-nav { display: none; }
.mobile-nav.open {
  display: grid;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: .5rem 1.25rem 1.25rem;
}
.mobile-nav a {
  padding: .85rem .25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600;
}
.mobile-nav a:last-child { border-bottom: none; }

/* ============================================================
   Hero
   ============================================================ */

.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); position: relative; }
.hero-grid { display: grid; gap: 2.75rem; align-items: center; }

.hero-copy h1 { margin-bottom: 1.25rem; }
.hero-copy .lead { max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero-trust {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: .65rem;
}
.hero-trust svg { flex: none; }

.hero-media { position: relative; }
.hero-media .frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }

.hero-badge {
  position: absolute;
  left: -1.25rem;
  bottom: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  max-width: 16rem;
}
.hero-badge .dot {
  flex: none;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.hero-badge .dot svg { width: 1.4rem; height: 1.4rem; }
.hero-badge strong { color: var(--ink); font-family: var(--font-head); font-weight: 600; display: block; font-size: 1rem; }
.hero-badge span { font-size: .82rem; color: var(--muted); }

/* ============================================================
   Feature row (why choose) — 3 columns
   ============================================================ */

.feature-row { display: grid; gap: 2rem; }
.feature-item .ic {
  width: 3.25rem; height: 3.25rem;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.feature-item .ic svg { width: 1.6rem; height: 1.6rem; }
.feature-item h3 { margin-bottom: .4rem; }
.feature-item p { color: var(--muted); margin: 0; }

/* ============================================================
   Split (image + content)
   ============================================================ */

.split { display: grid; gap: 2.75rem; align-items: center; }
.split--reverse .split-media { order: -1; }
.split-media img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

/* check list */
.check-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .8rem; }
.check-list.cols { grid-template-columns: 1fr; }
.check-list li { display: flex; align-items: flex-start; gap: .75rem; color: var(--ink-soft); }
.check-list li svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--accent); margin-top: .2rem; }

/* ============================================================
   Service cards
   ============================================================ */

.service-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: .5rem; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.service-card .ic {
  width: 3rem; height: 3rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
}
.service-card .ic svg { width: 1.5rem; height: 1.5rem; }
.service-card h3 { margin-bottom: .5rem; }
.service-card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ============================================================
   Vision feature band
   ============================================================ */

.vision { text-align: center; }
.vision .eyebrow { color: color-mix(in srgb, var(--feature-ink) 75%, var(--accent)); justify-content: center; }
.vision .eyebrow::before { display: none; }
.vision h2 {
  color: var(--feature-ink);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 400;
  font-style: italic;
  max-width: 22ch;
  margin: .5rem auto 0;
  line-height: 1.25;
}
.vision .mark {
  font-family: var(--font-head);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: .55;
  margin-bottom: .25rem;
}

/* ============================================================
   Compliance (accreditation + nondiscrimination)
   ============================================================ */

.info-grid { display: grid; gap: 1.5rem; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
}
.info-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.info-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ============================================================
   Contact CTA strip
   ============================================================ */

.contact-strip .strip-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 2rem;
  align-items: center;
}
.contact-strip h2 { margin-bottom: .75rem; }
.contact-info { display: grid; gap: .35rem; color: var(--ink-soft); }
.contact-info a { font-weight: 600; }
.contact-info .row { display: flex; gap: .65rem; align-items: flex-start; }
.contact-info .row svg { width: 1.15rem; height: 1.15rem; color: var(--accent); flex: none; margin-top: .28rem; }
.strip-actions { display: flex; flex-direction: column; gap: .85rem; }
.strip-actions .btn { width: 100%; }

/* ============================================================
   Map
   ============================================================ */

.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.map-card iframe { width: 100%; height: clamp(320px, 45vh, 460px); border: 0; display: block; }
.map-serving { margin: 1.4rem auto 0; max-width: 72ch; text-align: center; font-size: .95rem; color: var(--muted); line-height: 1.6; }
.map-serving strong { color: var(--ink); font-weight: 700; }
.map-actions { margin: 1.1rem 0 0; text-align: center; }

/* ============================================================
   Page hero (contact)
   ============================================================ */

.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); text-align: center; }
.page-hero .lead { margin-inline: auto; max-width: 52ch; }

/* ============================================================
   Contact page form
   ============================================================ */

.contact-grid { display: grid; gap: 1.75rem; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.form-status {
  border-radius: var(--radius-sm);
  padding: .9rem 1.15rem;
  margin-bottom: 1.4rem;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.5;
}
.form-status.ok  { background: #e9f1e7; color: #335c33; border: 1px solid #cfe3cd; }
.form-status.err { background: #fbeae9; color: #8a2f2a; border: 1px solid #f0d3d1; }

/* Honeypot anti-spam field — hidden from people, present for bots. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form { display: grid; gap: 1.1rem; }
.contact-form label { font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: -.55rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form .btn { margin-top: .35rem; }
.form-note { margin: .35rem 0 0; color: var(--muted); font-size: .85rem; }
.form-note code { background: var(--bg-tint); padding: .1rem .35rem; border-radius: 5px; font-size: .85em; }

.detail-list { display: grid; gap: 1.1rem; margin: 0; }
.detail-list .row { display: flex; gap: .9rem; align-items: flex-start; }
.detail-list .row svg { width: 1.3rem; height: 1.3rem; color: var(--accent); flex: none; margin-top: .25rem; }
.detail-list .row strong { display: block; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .15rem; }
.detail-list .row span, .detail-list .row a { color: var(--ink-soft); }

.callback-box {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.callback-box h3 { margin-bottom: .5rem; }
.callback-box p { color: var(--muted); font-size: .95rem; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--feature-bg);
  color: color-mix(in srgb, var(--feature-ink) 80%, transparent);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid { display: grid; gap: 2rem; }
.footer-logo {
  height: 2.6rem;
  width: auto;
  display: block;
  margin-bottom: 1.1rem;
}
.footer-brand { font-family: var(--font-head); font-size: 1.1rem; color: var(--feature-ink); margin-bottom: .35rem; }
.site-footer p { margin: 0 0 .4rem; font-size: .94rem; }
.site-footer a { color: color-mix(in srgb, var(--feature-ink) 90%, transparent); }
.site-footer a:hover { color: #fff; }
.footer-col h4 { color: var(--feature-ink); font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: .9rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--feature-line);
  font-size: .85rem;
  color: color-mix(in srgb, var(--feature-ink) 60%, transparent);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (min-width: 640px) {
  .check-list.cols { grid-template-columns: 1fr 1fr; gap: .8rem 2rem; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .strip-actions { flex-direction: row; }
  .strip-actions .btn { width: auto; }
}

@media (min-width: 860px) {
  .feature-row { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .contact-strip .strip-card { grid-template-columns: 1.5fr 1fr; }
  .contact-grid { grid-template-columns: 1.25fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (min-width: 980px) {
  .site-nav { display: inline-flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
