/* Caring Hospice Institute — Modern Minimal */
:root {
  --bg: #f6f5f1;
  --bg-alt: #efece4;
  --text: #1a1714;
  --muted: #6b665f;
  --line: #e3ddd1;
  --line-soft: #ece8de;
  --accent: #b65b3b;
  --accent-dark: #8c4528;
  --max: 1120px;
  --prose: 680px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--text); text-decoration: none; border-bottom: 1px solid currentColor; transition: color .15s var(--ease), border-color .15s var(--ease); }
a:hover { color: var(--accent); }

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

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.03em; font-weight: 500; }
h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 2em; }
h3 { font-size: 22px; margin-top: 1.5em; }
h4 { font-size: 18px; margin-top: 1.3em; }
p { margin: 0 0 1.1em; }
strong { font-weight: 600; }

/* Layout shell */
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.prose { max-width: var(--prose); margin: 0 auto; }
.prose p, .prose ul, .prose ol { font-size: 17.5px; line-height: 1.7; color: #2a2520; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose img { border-radius: 8px; margin: 2em auto; box-shadow: 0 4px 30px rgba(0,0,0,.06); }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: .6em; }
.prose blockquote { border-left: 2px solid var(--accent); padding: .2em 0 .2em 1.4em; color: #3a322a; font-style: italic; margin: 1.8em 0; }
.prose a { border-bottom-color: var(--line); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em auto; max-width: 100px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(246, 245, 241, 0.92);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; border: 0; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 13px; }
.brand-name { line-height: 1.1; }
.brand-name span { display: block; font-size: 10px; color: var(--muted); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }

nav.primary { display: flex; align-items: center; gap: 6px; }
nav.primary a, nav.primary button { border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--text); padding: 8px 14px; border-radius: 6px; cursor: pointer; }
nav.primary a:hover, nav.primary button:hover { background: var(--bg-alt); color: var(--text); }
nav.primary .has-dropdown { position: relative; }
nav.primary .has-dropdown > button::after { content: '›'; display: inline-block; margin-left: 6px; transform: rotate(90deg); font-size: 11px; opacity: .6; }
nav.primary .dropdown { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-width: 240px; box-shadow: 0 12px 36px rgba(0,0,0,.08); opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .15s var(--ease), transform .15s var(--ease); }
nav.primary .has-dropdown:hover .dropdown,
nav.primary .has-dropdown:focus-within .dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
nav.primary .dropdown a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 14px; }
nav.primary .dropdown a:hover { background: var(--bg-alt); }
nav.primary a.cta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; background: var(--accent); color: #fff; border-radius: 100px; font-weight: 500; font-size: 13.5px; margin-left: 8px; }
nav.primary a.cta:hover { background: var(--accent-dark); color: #fff; }

/* Mobile nav */
.menu-toggle { display: none; padding: 8px; border-radius: 6px; }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  nav.primary { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 16px 24px 28px; border-bottom: 1px solid var(--line); gap: 4px; }
  nav.primary.open { display: flex; }
  nav.primary a, nav.primary button { padding: 12px 14px; font-size: 16px; text-align: left; width: 100%; justify-content: flex-start; }
  nav.primary .has-dropdown > button::after { display: none; }
  nav.primary .dropdown { position: static; opacity: 1; pointer-events: auto; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; margin-bottom: 8px; background: transparent; }
  nav.primary .dropdown a { padding: 8px 12px; font-size: 14.5px; }
  .cta { align-self: flex-start; }
}

/* Hero */
.hero { padding: 90px 0 70px; border-bottom: 1px solid var(--line-soft); }
.hero .accent { width: 32px; height: 2px; background: var(--accent); margin-bottom: 22px; }
.hero h1 { max-width: 18ch; }
.hero .lede { font-size: 19px; line-height: 1.55; color: #3a322a; max-width: 56ch; margin: 1em 0 1.6em; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 100px; font-size: 14.5px; font-weight: 500; border: 1px solid var(--text); background: transparent; color: var(--text); transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); cursor: pointer; }
.btn:hover { background: var(--text); color: var(--bg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* Page header (inner pages) */
.page-header { padding: 56px 0 36px; border-bottom: 1px solid var(--line-soft); }
.page-header .crumbs { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; margin-bottom: 14px; }
.page-header .crumbs a { color: var(--muted); border: 0; }
.page-header .crumbs a:hover { color: var(--accent); }
.page-header .crumbs span { margin: 0 6px; opacity: .5; }
.page-header h1 { max-width: 22ch; }
.page-header .meta { font-size: 13px; color: var(--muted); margin-top: 14px; letter-spacing: .04em; }

/* Section grid */
.section { padding: 70px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section .label { font-size: 11.5px; color: var(--muted); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 14px; display: block; }

.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.region-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 28px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.region-card:hover { border-color: var(--line); transform: translateY(-3px); }
.region-card h3 { margin: 0 0 8px; font-size: 20px; }
.region-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0 0 14px; }
.region-card a { font-size: 13.5px; color: var(--accent); border-bottom-color: rgba(182,91,59,.3); }
.region-card a:hover { border-bottom-color: var(--accent); }
@media (max-width: 760px) { .region-grid { grid-template-columns: 1fr; } }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 56px; margin-top: 36px; }
.feature-grid .feat { }
.feature-grid h3 { font-size: 17px; margin: 0 0 6px; }
.feature-grid p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; gap: 22px; } }

.callout { background: var(--bg-alt); border-radius: 18px; padding: 42px 36px; text-align: center; margin-top: 30px; }
.callout h3 { margin-top: 0; font-size: 24px; }
.callout p { color: var(--muted); margin: 0 auto 22px; max-width: 50ch; }
.callout .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Articles list */
.articles-list { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 30px; }
.article-item { padding: 28px 0; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: 100px 1fr; gap: 28px; align-items: baseline; }
.article-item:last-child { border-bottom: 1px solid var(--line-soft); }
.article-item .date { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.article-item h3 { margin: 0 0 6px; font-size: 21px; }
.article-item h3 a { border: 0; }
.article-item h3 a:hover { color: var(--accent); }
.article-item p { color: var(--muted); margin: 0; font-size: 14.5px; line-height: 1.55; }
@media (max-width: 640px) { .article-item { grid-template-columns: 1fr; gap: 6px; } .article-item .date { font-size: 12px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 60px 0 36px; margin-top: 80px; color: var(--muted); font-size: 14px; }
.site-footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--text); margin: 0 0 14px; font-weight: 500; }
.site-footer a { color: var(--muted); border: 0; display: block; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand-block p { max-width: 36ch; line-height: 1.6; margin: 12px 0 0; }
.site-footer .bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 12.5px; }
@media (max-width: 760px) { .site-footer .grid { grid-template-columns: 1fr 1fr; gap: 30px; } .site-footer .brand-block { grid-column: 1 / -1; } .site-footer .bottom { flex-direction: column; gap: 12px; align-items: flex-start; } }

/* Glossary list */
.glossary dt { font-weight: 600; font-size: 17px; margin-top: 1.6em; color: var(--text); }
.glossary dt:first-child { margin-top: 0; }
.glossary dd { margin: .25em 0 0; color: #2a2520; padding-left: 0; }

/* Stat grid (statistics article) */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin: 30px 0; }
.stat { padding: 24px 0; border-top: 1px solid var(--line); }
.stat .n { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 40px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 32px; }
.contact-card h3 { margin-top: 0; font-size: 20px; }
.contact-card .row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.contact-card .row:last-child { border: 0; }
.contact-card .row .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; width: 70px; }
.contact-card .row .val { flex: 1; }
.contact-card .row .val a { border: 0; color: var(--text); font-weight: 500; }
.contact-card .row .val a:hover { color: var(--accent); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 30px; } }

/* Form */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--text); transition: border-color .15s var(--ease); }
.form-group input:focus, .form-group textarea:focus { outline: 0; border-color: var(--accent); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-actions { margin-top: 8px; }

/* Utility: keep wp default image markup looking good */
.wp-block-image { margin: 1.5em 0; }
.wp-block-image img { border-radius: 8px; }
.wp-block-paragraph { /* inherits */ }
figure.wp-block-image figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: .6em; }
hr.wp-block-separator { border: 0; border-top: 1px solid var(--line); max-width: 100px; margin: 3em auto; }

/* Numbered ranking blocks (for "horrific reports" articles) */
.ranking-item { margin: 3em 0; }
.ranking-item h2 { font-size: 26px; }

/* Print */
@media print { .site-header, .site-footer { display: none; } body { background: #fff; } }
