/*
Theme Name:   HospiceNearMe Child
Theme URI:    https://hospicenearme.org
Description:  Compassionate hospice directory. GeneratePress Free child theme. Warm sage & ivory design system.
Author:       HospiceNearMe
Template:     generatepress
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  hospicenearme
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── TOKENS ───────────────────────────────────────────── */
:root {
  --sage:        #5C7A6B;
  --sage-dk:     #3E5A4A;
  --sage-lt:     #D6E5DD;
  --cream:       #FAF7F2;
  --ivory:       #F3EDE3;
  --warm-gray:   #8A7D70;
  --charcoal:    #2E2A26;
  --gold:        #C89B5E;
  --gold-lt:     #F0DDB9;
  --border:      #EDE7DF;
  --radius-sm:   6px;
  --radius-md:   14px;
  --radius-lg:   28px;
  --shadow-sm:   0 2px 8px rgba(46,42,38,.07);
  --shadow-md:   0 6px 24px rgba(46,42,38,.11);
  --font-head:   'Playfair Display', Georgia, serif;
  --font-ui:     'DM Sans', system-ui, sans-serif;
}

/* ── RESET ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--sage-dk); text-decoration-color: var(--sage-lt); text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--gold); }

/* ── TYPOGRAPHY ───────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-head); color: var(--charcoal); line-height: 1.25; font-weight: 600; margin-top: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: .4rem;
}

/* ── LAYOUT ───────────────────────────────────────────── */
.wrap       { max-width: 1160px; margin-inline: auto; padding-inline: 1.5rem; }
.wrap--sm   { max-width: 760px;  margin-inline: auto; padding-inline: 1.5rem; }
.section    { padding-block: 4.5rem; }
.section-sm { padding-block: 2.5rem; }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-ui); font-weight: 600; font-size: .9rem;
  text-decoration: none; padding: .7rem 1.5rem;
  border-radius: 100px; border: 2px solid transparent;
  transition: all .2s; cursor: pointer; white-space: nowrap;
}
.btn-primary  { background: var(--sage);    color: #fff; border-color: var(--sage); }
.btn-primary:hover  { background: var(--sage-dk); border-color: var(--sage-dk); color: #fff; }
.btn-outline  { background: transparent; color: var(--sage-dk); border-color: var(--sage); }
.btn-outline:hover  { background: var(--sage); color: #fff; }
.btn-gold     { background: var(--gold);    color: #fff; border-color: var(--gold); }
.btn-gold:hover     { background: #a97e48; color: #fff; border-color: #a97e48; }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }

/* ── BADGES ───────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: .72rem; font-weight: 600;
  padding: .18rem .65rem; border-radius: 100px; white-space: nowrap;
}
.badge-green { background: var(--sage-lt); color: var(--sage-dk); }
.badge-gold  { background: var(--gold-lt); color: #7A5A28; }
.badge-blue  { background: #D6E5EE;        color: #3A5A6E; }
.badge-gray  { background: var(--border);  color: var(--warm-gray); }

/* ── HEADER ───────────────────────────────────────────── */
#hn-header {
  background: #fff;
  border-bottom: 2px solid var(--sage-lt);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 999;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; max-width: 1160px; margin-inline: auto;
  padding-inline: 1.5rem; padding-block: .85rem;
}
/* Logo */
.site-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-icon {
  width: 42px; height: 42px; background: var(--sage); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-icon svg { width: 22px; height: 22px; fill: #fff; }
.logo-name    { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--charcoal); display: block; line-height: 1.1; }
.logo-tagline { font-family: var(--font-ui);   font-size: .65rem; color: var(--warm-gray); letter-spacing: .04em; }
/* Nav */
.primary-nav { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  font-family: var(--font-ui); font-size: .88rem; font-weight: 500;
  color: var(--charcoal); text-decoration: none;
  padding: .45rem .85rem; border-radius: var(--radius-sm);
  transition: background .18s, color .18s; display: block;
}
.primary-nav a:hover,
.primary-nav .current-menu-item a { background: var(--sage-lt); color: var(--sage-dk); }
/* Mobile toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .35rem; color: var(--charcoal); }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #2E5040 0%, var(--sage) 55%, #7EA090 100%);
  padding-block: 4rem 5rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 70% 50%, rgba(255,255,255,.04) 0%, transparent 60%);
}
.hero-inner {
  max-width: 1160px; margin-inline: auto; padding-inline: 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  padding: .28rem .85rem; border-radius: 100px;
  font-size: .76rem; font-weight: 500; color: rgba(255,255,255,.9);
  letter-spacing: .04em; margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-head); font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700; color: #fff; line-height: 1.18; margin-bottom: 1rem;
}
.hero-title em { font-style: italic; color: var(--gold-lt); }
.hero-sub { font-size: 1.05rem; font-weight: 300; color: rgba(255,255,255,.85); line-height: 1.7; margin-bottom: 1.75rem; }
/* Search */
.hero-search {
  background: #fff; border-radius: var(--radius-md);
  padding: .4rem .4rem .4rem 1.1rem;
  display: flex; align-items: center; gap: .5rem;
  box-shadow: 0 16px 48px rgba(46,42,38,.18);
}
.hero-search input {
  border: none; outline: none; font-family: var(--font-ui); font-size: .92rem;
  color: var(--charcoal); flex: 1; background: transparent;
}
.hero-search input::placeholder { color: var(--warm-gray); }
.btn-search {
  background: var(--sage); color: #fff; border: none;
  padding: .65rem 1.3rem; border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-weight: 600; font-size: .88rem;
  cursor: pointer; transition: background .2s;
}
.btn-search:hover { background: var(--sage-dk); }
/* Hero stats */
.hero-stats { display: flex; gap: 1.5rem; margin-top: 1.4rem; flex-wrap: wrap; }
.stat-num   { font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; color: #fff; display: block; line-height: 1; }
.stat-label { font-size: .7rem; color: rgba(255,255,255,.65); letter-spacing: .04em; }
/* Hero card */
.hero-card {
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg);
  padding: 1.75rem; color: #fff;
}
.hero-card-title { font-family: var(--font-head); font-size: 1.2rem; font-style: italic; font-weight: 400; margin-bottom: .9rem; }
.comfort-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.comfort-list li { display: flex; align-items: flex-start; gap: .65rem; font-size: .88rem; color: rgba(255,255,255,.9); line-height: 1.4; }
.comfort-list li::before {
  content: '✓'; background: rgba(255,255,255,.18); width: 20px; height: 20px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .65rem; flex-shrink: 0; margin-top: .05rem;
}

/* ── TRUST BAR ────────────────────────────────────────── */
.trust-bar { background: var(--ivory); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-block: 1rem; }
.trust-bar-inner { max-width: 1160px; margin-inline: auto; padding-inline: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 500; color: var(--warm-gray); }
.trust-item-icon { color: var(--sage); }

/* ── SECTION HEAD ─────────────────────────────────────── */
.section-head { margin-bottom: 2.25rem; }
.section-head.center { text-align: center; }
.section-head h2 { margin-bottom: .4rem; }
.section-head p { font-size: 1rem; color: var(--warm-gray); margin: 0; max-width: 540px; }
.section-head.center p { margin-inline: auto; }

/* ── CARDS ────────────────────────────────────────────── */
.card {
  background: #fff; border-radius: var(--radius-md); padding: 1.4rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: box-shadow .22s, transform .22s;
  display: flex; flex-direction: column; gap: .7rem;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-type { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.card-name { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--charcoal); line-height: 1.3; margin: 0; }
.card-address { font-size: .83rem; color: var(--warm-gray); line-height: 1.4; }
.card-meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.card-link { font-size: .82rem; font-weight: 600; color: var(--sage-dk); text-decoration: none; display: inline-flex; align-items: center; gap: .25rem; margin-top: auto; }
.card-link::after { content: '→'; }
.card-link:hover { color: var(--gold); }

/* ── GRIDS ────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.1rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: .75rem; }

/* ── STATE / CITY TILES ───────────────────────────────── */
.tile {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: .9rem 1rem; text-decoration: none; display: flex;
  flex-direction: column; gap: .2rem; transition: all .18s;
}
.tile:hover { background: var(--sage-lt); border-color: var(--sage); transform: translateY(-2px); }
.tile-name  { font-family: var(--font-head); font-size: .92rem; font-weight: 600; color: var(--charcoal); }
.tile-count { font-size: .73rem; color: var(--warm-gray); }

/* ── QUALITY BARS ─────────────────────────────────────── */
.measure { margin-bottom: .9rem; }
.measure-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .28rem; }
.measure-name  { font-size: .82rem; color: var(--charcoal); line-height: 1.3; }
.measure-score { font-size: .84rem; font-weight: 700; color: var(--sage-dk); }
.measure-bar  { height: 6px; background: var(--sage-lt); border-radius: 100px; overflow: hidden; }
.measure-fill { height: 100%; background: var(--sage); border-radius: 100px; transition: width .6s ease; }

/* ── QUALITY BOXES ────────────────────────────────────── */
.qbox { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.1rem; text-align: center; }
.qbox-num   { font-family: var(--font-head); font-size: 1.85rem; font-weight: 700; color: var(--sage-dk); line-height: 1; margin-bottom: .25rem; }
.qbox-label { font-size: .76rem; color: var(--warm-gray); line-height: 1.35; }

/* ── SIDEBAR ──────────────────────────────────────────── */
.sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.3rem; margin-bottom: 1.1rem; }
.sidebar-box h4 { font-size: .88rem; margin-bottom: .9rem; padding-bottom: .55rem; border-bottom: 1px solid var(--border); }
.info-row { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; padding-block: .45rem; border-bottom: 1px solid #F5F0EA; font-size: .85rem; }
.info-row:last-child { border-bottom: none; }
.info-label { font-weight: 500; color: var(--warm-gray); flex-shrink: 0; }
.info-value { color: var(--charcoal); text-align: right; }

/* ── TWO-COL LAYOUT (facility/city page) ─────────────── */
.page-layout {
  max-width: 1160px; margin-inline: auto; padding-inline: 1.5rem; padding-block: 2.5rem;
  display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start;
}

/* ── PAGE HERO ────────────────────────────────────────── */
.page-hero { background: var(--ivory); border-bottom: 1px solid var(--border); padding-block: 2.5rem; }
.page-hero-inner { max-width: 1160px; margin-inline: auto; padding-inline: 1.5rem; }
.breadcrumb { font-size: .78rem; color: var(--warm-gray); margin-bottom: .65rem; }
.breadcrumb a { color: var(--sage-dk); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── CITY HERO ────────────────────────────────────────── */
.city-hero { background: linear-gradient(135deg, var(--ivory) 0%, var(--sage-lt) 100%); border-bottom: 1px solid var(--border); padding-block: 2.75rem; }

/* ── STATE STATS BAR ──────────────────────────────────── */
.state-stats { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.4rem; }
.state-stat  { background: var(--ivory); border-radius: var(--radius-md); padding: .85rem 1.3rem; text-align: center; flex: 1; min-width: 110px; }
.state-stat-num   { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--sage-dk); display: block; }
.state-stat-label { font-size: .73rem; color: var(--warm-gray); }

/* ── COMFORT CTA ──────────────────────────────────────── */
.comfort-cta { background: linear-gradient(135deg, #3E5A4A, #5C7A6B); padding-block: 4rem; text-align: center; position: relative; overflow: hidden; }
.comfort-cta::before { content: '"'; position: absolute; top: -1rem; left: 50%; transform: translateX(-50%); font-family: var(--font-head); font-size: 18rem; color: rgba(255,255,255,.04); line-height: 1; pointer-events: none; }
.comfort-quote { font-family: var(--font-head); font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-style: italic; font-weight: 400; color: #fff; max-width: 680px; margin-inline: auto; margin-bottom: .85rem; line-height: 1.5; }
.comfort-attr  { font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: 1.8rem; }

/* ── ARTICLE CARDS ────────────────────────────────────── */
.article-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-card-img { height: 160px; background: var(--sage-lt); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; overflow: hidden; }
.article-card-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.article-cat   { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.article-title { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--charcoal); text-decoration: none; line-height: 1.35; }
.article-title:hover { color: var(--sage-dk); }
.article-excerpt { font-size: .84rem; color: var(--warm-gray); line-height: 1.55; margin: 0; }
.article-read { font-size: .8rem; font-weight: 600; color: var(--sage-dk); text-decoration: none; margin-top: auto; display: inline-flex; align-items: center; gap: .25rem; }
.article-read::after { content: '→'; }
.article-read:hover { color: var(--gold); }

/* ── FAQ ──────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; padding-block: .9rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--charcoal); }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--sage); flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding-bottom: .9rem; font-size: .93rem; color: #4A4440; }

/* ── HIGHLIGHT BOX ────────────────────────────────────── */
.highlight-box { background: var(--sage-lt); border-left: 4px solid var(--sage); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.2rem; margin-block: 1.4rem; }
.highlight-box p { margin: 0; font-size: .93rem; }

/* ── PROSE ────────────────────────────────────────────── */
.prose { max-width: 740px; margin-inline: auto; padding-inline: 1.5rem; padding-block: 3rem; }
.prose h2 { margin-top: 2rem; margin-bottom: .55rem; font-size: 1.3rem; }
.prose h3 { margin-top: 1.4rem; margin-bottom: .35rem; font-size: 1.08rem; }
.prose ul, .prose ol { padding-left: 1.35rem; margin-bottom: 1.1em; }
.prose li { margin-bottom: .38em; font-size: .98rem; line-height: 1.7; }

/* ── FACILITY LIST ROW ────────────────────────────────── */
.facility-row {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem; display: flex; gap: 1.25rem; align-items: flex-start;
  transition: box-shadow .2s, transform .2s;
}
.facility-row:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.score-ring {
  width: 52px; height: 52px; border-radius: 50%; border: 2.5px solid var(--sage-lt);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0; text-align: center;
}
.score-ring.high { border-color: var(--sage); }
.score-ring.mid  { border-color: var(--gold); }
.score-val   { font-size: .82rem; font-weight: 700; color: var(--sage-dk); line-height: 1; }
.score-label { font-size: .52rem; color: var(--warm-gray); line-height: 1; }

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer-hn { background: var(--charcoal); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand-name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: .7rem; display: block; }
.footer-desc { font-size: .83rem; color: rgba(255,255,255,.48); line-height: 1.6; margin: 0 0 .9rem; }
.footer-disclaimer { font-size: .73rem; color: rgba(255,255,255,.32); line-height: 1.6; margin: 0; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.08); }
.footer-col h4 { font-family: var(--font-ui); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { font-size: .85rem; color: rgba(255,255,255,.6); text-decoration: none; transition: color .18s; }
.footer-col a:hover { color: var(--gold-lt); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.4rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.32); margin: 0; }
.footer-legal { display: flex; gap: 1.4rem; }
.footer-legal a { font-size: .78rem; color: rgba(255,255,255,.38); text-decoration: none; }
.footer-legal a:hover { color: var(--gold-lt); }

/* ── MOBILE NAV DRAWER ────────────────────────────────── */
#mobile-nav { background: #fff; border-top: 1px solid var(--border); padding: 1rem 1.5rem; box-shadow: 0 8px 24px rgba(46,42,38,.1); }
#mobile-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .2rem; }
#mobile-nav a { font-size: .97rem; font-weight: 500; color: var(--charcoal); text-decoration: none; display: block; padding: .6rem .75rem; border-radius: 8px; transition: background .15s; }
#mobile-nav a:hover { background: var(--sage-lt); color: var(--sage-dk); }

/* ── GP OVERRIDES ─────────────────────────────────────── */
.site-header         { display: none !important; }
.site-footer         { display: none !important; }
.main-navigation     { display: none !important; }
.inside-navigation   { display: none !important; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner    { grid-template-columns: 1fr; }
  .hero-card     { display: none; }
  .page-layout   { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .grid-3        { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-3        { grid-template-columns: 1fr; }
  .grid-2        { grid-template-columns: 1fr; }
  .grid-4        { grid-template-columns: 1fr 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .primary-nav   { display: none; }
  .nav-toggle    { display: block; }
  .trust-bar-inner { gap: 1rem; }
  .grid-auto     { grid-template-columns: repeat(2,1fr); }
  .hero-stats    { gap: 1rem; }
}
