/* ═══════════════════════════════════════════════════
   RecoveryRoots — Premium Behavioral Health Directory
   Palette: Deep forest green, warm sage, clean white
════════════════════════════════════════════════════ */

:root {
  --forest:       #1a3d2b;
  --forest-mid:   #245234;
  --forest-light: #2f6641;
  --sage:         #4a7c59;
  --sage-light:   #6fa382;
  --sage-pale:    #a8c9b0;
  --teal:         #2d8a7a;
  --cream:        #f5f7f4;
  --white:        #ffffff;
  --warm-white:   #fafcf9;
  --gray-50:      #f4f6f3;
  --gray-100:     #e8ede6;
  --gray-200:     #d4dbd1;
  --gray-400:     #8fa988;
  --gray-600:     #5a6b56;
  --gray-800:     #2d3d2a;
  --text:         #1c2b18;
  --text-muted:   #5a7054;
  --crisis:       #1a5c8a;
  --crisis-light: #2a7ab8;

  --radius:       12px;
  --radius-lg:    20px;
  --shadow-sm:    0 2px 8px rgba(26,61,43,.06);
  --shadow-md:    0 4px 20px rgba(26,61,43,.10);
  --shadow-lg:    0 12px 40px rgba(26,61,43,.16);
  --shadow-xl:    0 24px 60px rgba(26,61,43,.22);
  --transition:   .25s cubic-bezier(.4,0,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.d-only { display: block; }

/* ── Typography ─── */
.section-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600; line-height: 1.2;
  color: var(--forest);
}
.section-sub { color: var(--text-muted); font-size: 16px; margin-top: 8px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-badge-green {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(74,124,89,.12); color: var(--sage);
  border: 1px solid rgba(74,124,89,.25);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 16px;
}

/* ── Buttons ─── */
.btn-primary-green {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sage), var(--forest-light));
  color: var(--white);
  font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: var(--radius);
  border: none; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 16px rgba(74,124,89,.4);
  transition: var(--transition);
  width: 100%; justify-content: center;
}
.btn-primary-green:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,124,89,.5); }
.btn-retry { background: var(--forest); color: var(--white); padding: 10px 22px; border-radius: var(--radius); border: none; cursor: pointer; font-weight: 600; transition: var(--transition); }
.btn-load-more {
  background: var(--white); color: var(--forest); border: 2px solid var(--gray-200);
  font-weight: 600; font-size: 15px; padding: 13px 32px; border-radius: var(--radius);
  cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-sm);
}
.btn-load-more:hover { border-color: var(--sage); color: var(--sage); box-shadow: var(--shadow-md); }

/* ── Header ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(26,61,43,.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { background: rgba(26,61,43,.98); box-shadow: 0 4px 24px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-icon { font-size: 22px; }
.logo-text { font-size: 18px; font-weight: 500; color: rgba(255,255,255,.85); }
.logo-text strong { color: var(--white); font-weight: 700; }
.header-nav { display: flex; gap: 24px; margin-left: auto; }
.header-nav a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 14px; font-weight: 500; transition: color var(--transition); }
.header-nav a:hover { color: var(--sage-pale); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.btn-crisis {
  background: rgba(26,92,138,.9); border: 1px solid rgba(26,92,138,.5);
  color: var(--white); font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 100px;
  text-decoration: none; transition: var(--transition);
  animation: pulse-crisis 3s ease-in-out infinite;
}
@keyframes pulse-crisis { 0%, 100% { box-shadow: 0 0 0 0 rgba(26,92,138,.4); } 50% { box-shadow: 0 0 0 8px rgba(26,92,138,0); } }
.btn-list {
  background: linear-gradient(135deg, var(--sage), var(--forest-light));
  color: var(--white); font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 100px; text-decoration: none;
  transition: var(--transition);
}
.btn-list:hover { opacity: .9; transform: translateY(-1px); }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer; }
@media (max-width: 900px) { .header-nav, .header-actions { display: none; } .mobile-menu-btn { display: block; margin-left: auto; } .d-only { display: none; } }

/* ── Hero ─── */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    150deg,
    #0f2418 0%,
    #1a3d2b 40%,
    #1e4530 70%,
    #0f2418 100%
  );
}
.hero-bokeh {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-bokeh span {
  position: absolute;
  border-radius: 50%;
  opacity: .12;
  animation: bokeh-drift 12s ease-in-out infinite alternate;
}
.hero-bokeh span:nth-child(1) { width: 400px; height: 400px; background: var(--sage); top: -100px; left: -80px; animation-delay: 0s; }
.hero-bokeh span:nth-child(2) { width: 300px; height: 300px; background: var(--teal); top: 20%; right: 5%; animation-delay: -3s; }
.hero-bokeh span:nth-child(3) { width: 500px; height: 500px; background: var(--sage-light); bottom: -150px; left: 30%; animation-delay: -6s; }
.hero-bokeh span:nth-child(4) { width: 200px; height: 200px; background: var(--sage-pale); top: 60%; left: 60%; animation-delay: -9s; opacity: .08; }
.hero-bokeh span:nth-child(5) { width: 350px; height: 350px; background: var(--teal); bottom: -50px; right: 20%; animation-delay: -4s; }
.hero-bokeh span:nth-child(6) { width: 250px; height: 250px; background: var(--forest-light); top: 15%; left: 40%; animation-delay: -7s; }
@keyframes bokeh-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.05); }
}

.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(74,124,89,.2); border: 1px solid rgba(74,124,89,.4);
  color: var(--sage-pale);
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 28px;
}
.hero-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 600; line-height: 1.12;
  color: var(--white); margin-bottom: 20px;
}
.hero-em {
  font-style: italic;
  color: var(--sage-pale);
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,.62);
  line-height: 1.75; margin-bottom: 40px;
}

/* Search */
.hero-search { max-width: 720px; margin: 0 auto 32px; }
.search-row { display: flex; gap: 10px; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 8px; backdrop-filter: blur(10px); }
.search-field { flex: 1; position: relative; display: flex; align-items: center; }
.sf-icon { position: absolute; left: 12px; font-size: 16px; pointer-events: none; }
.search-field input {
  width: 100%; background: none; border: none; outline: none;
  padding: 10px 12px 10px 38px;
  color: var(--white); font-size: 15px; font-family: inherit;
}
.search-field input::placeholder { color: rgba(255,255,255,.45); }
.search-cat {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px; color: rgba(255,255,255,.8);
  font-size: 14px; font-family: inherit;
  padding: 8px 14px; cursor: pointer; outline: none;
}
.search-cat option { background: var(--forest); color: var(--white); }
.search-btn {
  background: linear-gradient(135deg, var(--sage), var(--forest-light));
  color: var(--white); border: none;
  font-weight: 600; font-size: 14px; font-family: inherit;
  padding: 10px 20px; border-radius: 8px;
  cursor: pointer; white-space: nowrap; transition: var(--transition);
}
.search-btn:hover { opacity: .9; }
.search-quick { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.quick-label { color: rgba(255,255,255,.4); font-size: 13px; }
.quick-pill {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.75); font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 100px; cursor: pointer;
  transition: var(--transition);
}
.quick-pill:hover { background: rgba(74,124,89,.3); border-color: var(--sage); color: var(--white); }
@media (max-width: 600px) { .search-row { flex-direction: column; } .search-cat, .search-btn { width: 100%; } }

/* Crisis Banner */
.crisis-banner {
  display: flex; justify-content: center;
}
.crisis-banner-inner {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(26,92,138,.25);
  border: 1px solid rgba(26,92,138,.4);
  border-radius: 100px; padding: 10px 20px;
  color: rgba(255,255,255,.75); font-size: 14px;
  flex-wrap: wrap; justify-content: center;
}
.crisis-pulse { animation: pulse-fade 2s ease-in-out infinite; }
@keyframes pulse-fade { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.crisis-cta {
  background: var(--crisis); color: var(--white); border-radius: 100px;
  padding: 5px 14px; font-size: 13px; text-decoration: none; font-weight: 600;
  transition: var(--transition);
}
.crisis-cta:hover { background: var(--crisis-light); }

/* ── Category Cards ─── */
.categories-section { padding: 80px 0; background: var(--white); }
.cat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  background: var(--warm-white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.cat-card:hover {
  border-color: var(--sage);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.cc-icon { font-size: 36px; margin-bottom: 12px; }
.cc-name { font-size: 16px; font-weight: 700; color: var(--forest); margin-bottom: 8px; }
.cc-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.cc-tag {
  display: inline-block;
  background: rgba(74,124,89,.1); color: var(--sage);
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
}
@media (max-width: 900px) { .cat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .cat-cards { grid-template-columns: 1fr; } }

/* ── Directory ─── */
.directory-section { padding: 60px 0 80px; }
.dir-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.dir-count { color: var(--text-muted); font-size: 15px; margin-top: 6px; }
.dir-controls { display: flex; align-items: center; gap: 12px; }
.sort-select { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: 8px; padding: 8px 28px 8px 12px; font-size: 14px; font-family: inherit; color: var(--text); cursor: pointer; outline: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235a7054'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; transition: var(--transition); }
.view-toggle { display: flex; gap: 4px; }
.view-btn { background: var(--gray-50); border: 1.5px solid var(--gray-200); color: var(--gray-600); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.view-btn.active, .view-btn:hover { background: var(--forest); border-color: var(--forest); color: var(--white); }

/* Loading */
.loading-state { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 80px 0; text-align: center; color: var(--text-muted); }
.loading-spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--gray-200); border-top-color: var(--sage); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 80px 0; text-align: center; color: var(--text-muted); }
.empty-icon { font-size: 48px; }
.empty-state h3 { color: var(--text); font-size: 22px; }

/* Facility Grid */
.fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.fac-grid.list-view { grid-template-columns: 1fr; gap: 12px; }

/* Facility Card */
.fac-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: card-in .35s ease both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fac-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.fc-photo { width: 100%; height: 180px; object-fit: cover; display: block; background: var(--gray-100); }
.fc-photo-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, var(--forest), var(--forest-mid)); display: flex; align-items: center; justify-content: center; font-size: 52px; }
.fc-body { padding: 20px; }
.fc-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fc-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--sage); background: rgba(74,124,89,.1); padding: 3px 10px; border-radius: 100px; }
.fc-verified { font-size: 11px; color: var(--teal); font-weight: 600; }
.fc-name { font-size: 17px; font-weight: 700; color: var(--forest); margin-bottom: 8px; line-height: 1.3; }
.fc-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fc-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--gray-100); gap: 8px; flex-wrap: wrap; }
.fc-location { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.fc-actions { display: flex; gap: 6px; }
.fc-btn { background: var(--gray-50); border: 1px solid var(--gray-200); color: var(--gray-600); font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 8px; cursor: pointer; text-decoration: none; transition: var(--transition); white-space: nowrap; }
.fc-btn:hover { background: var(--forest); border-color: var(--forest); color: var(--white); }
.fc-btn.cta { background: var(--sage); border-color: var(--sage); color: var(--white); }
.fc-btn.cta:hover { background: var(--forest-light); }

/* List view */
.fac-grid.list-view .fac-card { display: flex; }
.fac-grid.list-view .fc-photo, .fac-grid.list-view .fc-photo-placeholder { width: 120px; min-height: 100px; height: auto; flex-shrink: 0; }
.fac-grid.list-view .fc-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* Load more */
.load-more-wrap { text-align: center; margin-top: 40px; }

/* ── Map ─── */
.map-section { background: var(--forest); }
.map-header { padding: 56px 0 24px; }
#map { height: 460px; width: 100%; }

/* ── Resources ─── */
.resources-section { padding: 80px 0; background: var(--white); }
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.resource-card { background: var(--warm-white); border: 1.5px solid var(--gray-100); border-radius: var(--radius-lg); padding: 28px 24px; text-align: center; transition: var(--transition); }
.resource-card:hover { border-color: var(--sage-light); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.rc-icon { font-size: 36px; margin-bottom: 14px; }
.resource-card h3 { font-size: 17px; font-weight: 700; color: var(--forest); margin-bottom: 10px; }
.resource-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.rc-link { color: var(--sage); font-weight: 700; font-size: 15px; text-decoration: none; transition: color var(--transition); }
.rc-link:hover { color: var(--forest); text-decoration: underline; }
@media (max-width: 900px) { .resources-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .resources-grid { grid-template-columns: 1fr; } }

/* ── About ─── */
.about-section { padding: 100px 0; background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text p { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin-top: 16px; }
.about-text strong { color: var(--text); }
.cta-card { background: linear-gradient(145deg, var(--forest), var(--forest-mid)); border-radius: var(--radius-lg); padding: 48px 40px; text-align: center; box-shadow: var(--shadow-xl); border: 1px solid rgba(255,255,255,.08); }
.cta-icon { font-size: 36px; margin-bottom: 20px; }
.cta-card h3 { font-family: 'Lora', serif; font-size: 26px; font-weight: 600; color: var(--white); margin-bottom: 16px; }
.cta-card p { color: rgba(255,255,255,.6); font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.cta-checks { display: flex; justify-content: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.cta-checks span { color: var(--sage-pale); font-size: 13px; font-weight: 500; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ── Footer ─── */
.site-footer { background: var(--forest); color: rgba(255,255,255,.6); padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand .logo-text { color: rgba(255,255,255,.8); }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 8px; color: rgba(255,255,255,.45); }
.footer-disclaimer { font-size: 12px !important; margin-top: 16px !important; }
.footer-cols { display: flex; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 14px; transition: color var(--transition); }
.footer-col a:hover { color: var(--sage-pale); }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.3); }
.footer-crisis a { color: rgba(255,255,255,.5); font-size: 13px; text-decoration: none; font-weight: 500; transition: color var(--transition); }
.footer-crisis a:hover { color: var(--sage-pale); }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; gap: 36px; } .footer-cols { flex-wrap: wrap; } }

/* ── Modal ─── */
.modal-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(10,25,15,.75); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: modal-in .2s ease both; }
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
.modal-card { background: var(--white); border-radius: var(--radius-lg); max-width: 620px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-xl); animation: modal-slide .25s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes modal-slide { from { opacity: 0; transform: scale(.96) translateY(12px); } to { opacity: 1; transform: scale(1); } }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; background: var(--gray-100); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; color: var(--gray-600); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--gray-200); }
.modal-photo { width: 100%; height: 220px; object-fit: cover; }
.modal-photo-placeholder { width: 100%; height: 220px; background: linear-gradient(135deg, var(--forest), var(--forest-mid)); display: flex; align-items: center; justify-content: center; font-size: 72px; }
.modal-body { padding: 28px; }
.modal-cat { font-size: 12px; color: var(--sage); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.modal-name { font-family: 'Lora', serif; font-size: 28px; font-weight: 600; color: var(--forest); margin-bottom: 12px; }
.modal-desc { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.modal-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.modal-info-item { display: flex; flex-direction: column; gap: 3px; }
.modal-info-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.modal-info-value { font-size: 14px; color: var(--text); font-weight: 500; }
.modal-info-value a { color: var(--sage); text-decoration: none; }
.modal-info-value a:hover { text-decoration: underline; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) { .modal-info-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   PREMIUM UPGRADES v2 — Higgsfield animated hero,
   glassmorphism cards, advanced search + sticky bar
   ATLAS 🏗️ 2026-04-03
══════════════════════════════════════════════════════ */

/* Higgsfield animated orbs (calming greens for recovery) */
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0;
  animation: orb-glow 10s ease-in-out infinite;
  z-index: 0; pointer-events: none;
}
.hero-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(47,102,65,0.35) 0%, transparent 70%);
  top: -250px; left: -200px; animation-duration: 14s;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(45,138,122,0.2) 0%, transparent 70%);
  bottom: -150px; right: -100px;
  animation-delay: 4s; animation-duration: 11s;
}
.hero-orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(168,201,176,0.15) 0%, transparent 70%);
  top: 50%; left: 55%;
  animation-delay: 7s; animation-duration: 9s;
}
@keyframes orb-glow {
  0%, 100% { opacity: 0; transform: scale(0.85) translateY(30px); }
  50%       { opacity: 1; transform: scale(1.05) translateY(0);    }
}

/* Hope light ray (Higgsfield warmth effect) */
.hero-ray {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  overflow: hidden;
}
.hero-ray::before {
  content: '';
  position: absolute; top: -50%; left: 30%; width: 40%; height: 200%;
  background: conic-gradient(from 180deg at 50% 50%,
    transparent 60%, rgba(255,255,255,0.04) 75%, transparent 90%);
  animation: ray-sweep 18s linear infinite;
}
@keyframes ray-sweep {
  0%   { transform: rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: rotate(20deg); opacity: 0; }
}

/* Gentle bokeh circles */
.hero-bokeh span {
  animation: bokeh-float 20s ease-in-out infinite !important;
}
@keyframes bokeh-float {
  0%, 100% { opacity: 0.08; transform: translateY(0) scale(1); }
  50%       { opacity: 0.18; transform: translateY(-20px) scale(1.1); }
}

/* Premium facility card hover */
.fac-card, .facility-card, [class*="fac-card"] {
  position: relative; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.fac-card::before, .facility-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--forest-light), var(--teal), var(--sage-light));
  background-size: 200% 100%;
  opacity: 0; transition: opacity 0.3s ease;
  animation: rr-shimmer 4s linear infinite;
}
@keyframes rr-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.fac-card:hover::before, .facility-card:hover::before { opacity: 1; }
.fac-card:hover, .facility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(26,61,43,.18), 0 0 0 1px rgba(79,124,89,.15);
  border-color: rgba(79,124,89,.3) !important;
}

/* Live status dot for facilities */
.fac-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; margin-right: 5px; flex-shrink: 0;
}
.fac-status-dot.accepting  { background: #22c55e; animation: rdot-pulse 2s ease infinite; }
.fac-status-dot.waitlist   { background: #f59e0b; }
.fac-status-dot.unavailable { background: #94a3b8; }
@keyframes rdot-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* Category card hover upgrade */
.cat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
  cursor: pointer;
}
.cat-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(26,61,43,.15) !important;
  border-color: var(--sage) !important;
}

/* Sticky search bar */
.sticky-search-bar {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 200;
  background: rgba(26,61,43,.96); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 8px 24px;
  transform: translateY(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.sticky-search-bar.visible { transform: translateY(0); }
.sticky-search-inner {
  max-width: 700px; margin: 0 auto;
  display: flex; gap: 8px; align-items: center;
}
.sticky-search-inner input {
  flex: 1; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  padding: 9px 14px; color: #fff; font-size: 14px;
  font-family: inherit; outline: none;
}
.sticky-search-inner input:focus { border-color: rgba(111,163,130,.6); }
.sticky-search-inner input::placeholder { color: rgba(255,255,255,.35); }
.sticky-cat-rr {
  background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='rgba(255,255,255,0.4)'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  padding: 9px 30px 9px 12px; color: rgba(255,255,255,.7);
  font-size: 13px; font-family: inherit; outline: none;
  cursor: pointer; appearance: none; min-width: 160px;
}
.sticky-cat-rr option { background: #1a3d2b; }

/* Results banner */
.results-banner-rr {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: 10px; padding: 12px 18px; margin-bottom: 24px;
  font-size: 14px; color: var(--text-muted);
}
.results-banner-rr strong { color: var(--forest); }
.results-banner-rr .clear-rr {
  background: none; border: 1px solid var(--gray-200); border-radius: 6px;
  padding: 4px 12px; font-size: 13px; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
}
.results-banner-rr .clear-rr:hover { border-color: var(--sage); color: var(--sage); }

/* Crisis banner pulse */
.crisis-pulse {
  animation: crisis-throb 1.5s ease-in-out infinite;
  display: inline-block;
}
@keyframes crisis-throb {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Mobile */
@media (max-width: 768px) {
  .hero-orb { display: none; }
  .sticky-search-bar { top: 56px; }
  .sticky-search-inner { flex-direction: column; }
  .sticky-cat-rr { width: 100%; }
}

/* Insurance & Specialty Badges */
.fc-badges { display:flex; flex-wrap:wrap; gap:4px; margin-top:8px; }
.fc-badge { font-size:11px; padding:2px 8px; border-radius:12px; font-weight:600; white-space:nowrap; }
.fc-badge-ins { background:#e8f5e9; color:#2e7d32; }
.fc-badge-cash { background:#fff3e0; color:#e65100; }
.fc-badge-spec { background:#e3f2fd; color:#1565c0; }
.fc-badge-lux { background:linear-gradient(135deg,#fff8e1,#fffde7); color:#bf8a00; border:1px solid #f9d74c; }
.modal-badges { margin:16px 0; }
.modal-badges .fc-badges { justify-content:flex-start; }
.modal-detail { font-size:14px; color:var(--gray-600,#555); margin:8px 0; line-height:1.5; }
.modal-detail strong { color:var(--gray-900,#1a1a1a); }
