/* =============================================
   SENIOR CARE LOCAL NKY — styles.css
   Aesthetic: Warm editorial authority
   Fonts: Playfair Display + Source Sans 3
   Palette: Deep teal, warm cream, gold accent
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --teal:       #1a4a4a;
  --teal-mid:   #2a6b6b;
  --teal-light: #3d8c8c;
  --gold:       #c9963a;
  --gold-light: #e8b96a;
  --cream:      #f8f4ee;
  --cream-dark: #ede7da;
  --text:       #1e1e1e;
  --text-muted: #5a5a5a;
  --white:      #ffffff;
  --border:     #d4c9b8;
  --shadow:     rgba(26,74,74,0.10);
  --radius:     8px;
  --radius-lg:  14px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--teal); margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; color: var(--teal); margin-bottom: 0.4rem; }
h4 { font-size: 1rem; font-family: 'Source Sans 3', sans-serif; font-weight: 700; color: var(--teal-mid); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .4rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }
a { color: var(--teal-mid); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

/* ---- LAYOUT ---- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--teal); }

/* ---- HEADER / NAV ---- */
.site-header {
  background: var(--teal);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.25rem;
  max-width: 1080px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: .65rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--white); text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px; background: var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.logo span { color: var(--gold-light); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 600; letter-spacing:.03em; transition: color .2s; }
.nav-links a:hover { color: var(--gold-light); text-decoration: none; }
.nav-cta {
  background: var(--gold); color: var(--teal) !important;
  padding: .45rem 1.1rem; border-radius: 20px; font-weight: 700 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--teal) 0%, #0e3333 60%, #1a4a3a 100%);
  padding: 4rem 0 3rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/images/hero.jpg') center/cover no-repeat;
  opacity: .12;
}
.hero-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(201,150,58,.2); border: 1px solid var(--gold);
  color: var(--gold-light); font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .85rem; border-radius: 20px; margin-bottom: 1.1rem;
}
.hero h1 { margin-bottom: 1rem; max-width: 700px; }
.hero .hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 560px;
  margin-bottom: 1.75rem; font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.6rem; border-radius: 6px; font-weight: 700;
  font-size: .95rem; cursor: pointer; border: 2px solid transparent;
  transition: all .2s; text-decoration: none !important; font-family: 'Source Sans 3', sans-serif;
}
.btn-primary { background: var(--gold); color: var(--teal); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--teal); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15); flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--gold-light); font-weight: 700; display: block; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .06em; }

/* ---- CARE TYPE FILTER ---- */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .9rem 0;
  position: sticky; top: 63px; z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.filter-inner { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.filter-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-right: .4rem; }
.filter-btn {
  padding: .4rem 1rem; border: 1.5px solid var(--border); border-radius: 20px;
  background: transparent; color: var(--text-muted); font-size: .85rem;
  cursor: pointer; transition: all .15s; font-family: 'Source Sans 3', sans-serif; font-weight: 600;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--teal); color: var(--white); border-color: var(--teal);
}

/* ---- SECTION INTRO ---- */
.section-intro { max-width: 640px; margin-bottom: 2.5rem; }
.section-intro p { font-size: 1.05rem; }
.eyebrow {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold); margin-bottom: .4rem; display: block;
}

/* ---- COUNTY GRID ---- */
.county-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.county-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.county-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px var(--shadow); }
.county-card-header {
  background: var(--teal); padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: .75rem;
}
.county-icon { font-size: 1.5rem; }
.county-card-header h3 { color: var(--white); margin: 0; font-size: 1.1rem; }
.county-card-header p { color: rgba(255,255,255,.7); font-size: .82rem; margin: .15rem 0 0; }
.county-card-body { padding: 1.25rem 1.5rem; }
.county-card-body ul { list-style: none; }
.county-card-body li {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .9rem; color: var(--text-muted); padding: .35rem 0;
  border-bottom: 1px solid var(--cream-dark);
}
.county-card-body li:last-child { border-bottom: none; }
.li-icon { color: var(--gold); flex-shrink: 0; margin-top: .1rem; }
.county-card-footer { padding: 1rem 1.5rem; background: var(--cream); }
.county-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--teal-mid); font-weight: 700; font-size: .9rem;
}
.county-link:hover { color: var(--gold); }

/* ---- FACILITY DIRECTORY TABLE ---- */
.facility-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: 0 2px 12px var(--shadow); }
.facility-table {
  width: 100%; border-collapse: collapse;
  background: var(--white); font-size: .9rem;
}
.facility-table thead { background: var(--teal); }
.facility-table thead th { color: var(--white); padding: .85rem 1rem; text-align: left; font-family: 'Source Sans 3', sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.facility-table tbody tr { border-bottom: 1px solid var(--cream-dark); transition: background .15s; }
.facility-table tbody tr:hover { background: var(--cream); }
.facility-table td { padding: .85rem 1rem; vertical-align: top; }
.facility-name { font-weight: 700; color: var(--teal); display: block; }
.facility-addr { font-size: .82rem; color: var(--text-muted); }
.star-badge {
  display: inline-flex; align-items: center; gap: .2rem;
  background: var(--cream-dark); border-radius: 4px;
  padding: .2rem .5rem; font-size: .8rem; font-weight: 700;
}
.stars-5 { color: #2a7a2a; background: #e6f4e6; }
.stars-4 { color: #4a7a10; background: #eef5e0; }
.stars-3 { color: #8a6a00; background: #fdf5d0; }
.stars-2 { color: #c05000; background: #fdecd0; }
.stars-1 { color: #b00; background: #fde0e0; }
.care-tag {
  display: inline-block; padding: .15rem .5rem; border-radius: 12px;
  font-size: .75rem; font-weight: 700; margin: .1rem .15rem .1rem 0;
}
.tag-sn { background: #dceeff; color: #1a4f8a; }
.tag-al { background: #e6f5e6; color: #1a6a1a; }
.tag-mc { background: #f5e6f5; color: #6a1a6a; }
.tag-il { background: #fff3dc; color: #8a5000; }
.accepts-badge { font-size: .8rem; color: var(--text-muted); }
.yes { color: #2a7a2a; font-weight: 700; }
.no  { color: #999; }

/* ---- COST CALCULATOR ---- */
.calc-card {
  background: var(--teal); color: var(--white);
  border-radius: var(--radius-lg); padding: 2rem 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.15);
}
.calc-card h2 { color: var(--white); margin-bottom: .5rem; }
.calc-card > p { color: rgba(255,255,255,.75); margin-bottom: 1.75rem; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
.calc-field label { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.7); margin-bottom: .4rem; }
.calc-field select, .calc-field input {
  width: 100%; padding: .7rem 1rem; border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1);
  color: var(--white); font-size: 1rem; font-family: 'Source Sans 3', sans-serif;
  appearance: none; -webkit-appearance: none;
}
.calc-field select option { background: var(--teal); }
.calc-btn {
  background: var(--gold); color: var(--teal); border: none;
  padding: .8rem 2rem; border-radius: 6px; font-weight: 700;
  font-size: 1rem; cursor: pointer; font-family: 'Source Sans 3', sans-serif;
  transition: background .2s;
}
.calc-btn:hover { background: var(--gold-light); }
.calc-result {
  margin-top: 1.5rem; padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,.1); border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  display: none;
}
.calc-result.visible { display: block; }
.calc-result h4 { color: var(--gold-light); margin-bottom: .5rem; }
.cost-range { font-size: 1.75rem; font-family: 'Playfair Display', serif; color: var(--white); font-weight: 700; }
.cost-note { font-size: .82rem; color: rgba(255,255,255,.65); margin-top: .4rem; }

/* ---- CHECKLIST ---- */
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.checklist-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: 0 2px 10px var(--shadow);
}
.checklist-card h3 { margin-bottom: 1rem; font-size: 1rem; }
.checklist { list-style: none; }
.checklist li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .9rem; padding: .45rem 0;
  border-bottom: 1px dashed var(--cream-dark); color: var(--text-muted);
}
.checklist li:last-child { border-bottom: none; }
.check-icon { color: var(--teal-light); flex-shrink: 0; font-size: 1rem; }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.1rem 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Source Sans 3', sans-serif; font-size: 1rem;
  font-weight: 600; color: var(--teal);
}
.faq-q:hover { color: var(--teal-light); }
.faq-icon { font-size: 1.2rem; transition: transform .25s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 1rem; font-size: .95rem; color: var(--text-muted); }
.faq-item.open .faq-a { display: block; }

/* ---- PAYMENT GUIDE ---- */
.payment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.payment-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 1.4rem;
  box-shadow: 0 2px 10px var(--shadow);
}
.payment-icon { font-size: 2rem; margin-bottom: .6rem; display: block; }
.payment-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.payment-card p { font-size: .88rem; margin-bottom: .5rem; }
.payment-card .detail { font-size: .8rem; color: var(--teal-mid); font-weight: 700; }

/* ---- DOWNLOAD SECTION ---- */
.download-bar {
  background: linear-gradient(135deg, var(--teal-mid), var(--teal));
  border-radius: var(--radius-lg); padding: 2rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.download-bar h3 { color: var(--white); margin-bottom: .3rem; }
.download-bar p { color: rgba(255,255,255,.75); margin: 0; font-size: .92rem; }
.download-links { display: flex; gap: .75rem; flex-wrap: wrap; }
.dl-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.35);
  color: var(--white); padding: .6rem 1.1rem; border-radius: 6px;
  font-size: .88rem; font-weight: 700; cursor: pointer;
  font-family: 'Source Sans 3', sans-serif; transition: background .2s;
  text-decoration: none;
}
.dl-btn:hover { background: rgba(255,255,255,.25); color: var(--white); }

/* ---- RESOURCES GRID ---- */
.resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.resource-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.resource-card h4 { margin-bottom: .1rem; }
.resource-card a { font-size: .88rem; font-weight: 600; }

/* ---- FOOTER ---- */
.site-footer { background: #0e2e2e; color: rgba(255,255,255,.6); padding: 2.5rem 0 1.5rem; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-brand h3 { color: var(--white); font-size: 1.1rem; margin-bottom: .5rem; }
.footer-brand p { font-size: .85rem; line-height: 1.6; }
.footer-col h4 { color: rgba(255,255,255,.85); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; font-family: 'Source Sans 3', sans-serif; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: rgba(255,255,255,.55); font-size: .85rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { font-size: .8rem; margin: 0; }
.disclaimer { font-size: .75rem; color: rgba(255,255,255,.35); max-width: 680px; line-height: 1.5; }

/* ---- MOBILE NAV TOGGLE ---- */
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 63px; left: 0; right: 0; background: var(--teal); padding: 1rem 1.25rem; gap: .75rem; border-bottom: 3px solid var(--gold); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
  .filter-bar { position: relative; top: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .calc-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .download-bar { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
