/* ==========================================================================
   California Senior Care Marketplace — shared stylesheet
   ========================================================================== */

:root {
  --navy-900: #0e2038;
  --navy-800: #14284a;
  --navy-700: #1a3a63;
  --navy-600: #234876;
  --navy-100: #eaf0f8;
  --navy-50: #f4f7fb;
  --orange-600: #e59316;
  --orange-500: #f5a623;
  --orange-100: #fdf1dc;
  --green-600: #1f9d55;
  --green-100: #e6f7ec;
  --text-900: #17202e;
  --text-700: #3c4757;
  --text-500: #6b7686;
  --text-400: #8b95a3;
  --border: #e3e8ef;
  --bg-page: #f7f9fc;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(14, 32, 56, 0.06);
  --shadow-md: 0 4px 16px rgba(14, 32, 56, 0.08);
  --shadow-lg: 0 12px 32px rgba(14, 32, 56, 0.12);
  --max-width: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-900);
  background: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { color: var(--navy-900); font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.2rem; }
p { color: var(--text-700); }

.eyebrow {
  color: var(--orange-600);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-900); }
.btn-orange { background: var(--orange-500); color: #fff; }
.btn-orange:hover { background: var(--orange-600); }
.btn-outline { background: #fff; color: var(--navy-800); border-color: var(--border); }
.btn-outline:hover { border-color: var(--navy-700); }
.btn-outline-orange { background: #fff; color: var(--orange-600); border-color: var(--orange-500); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ===================== HEADER ===================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.logo-text {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--navy-900);
}
.logo-text .accent { color: var(--orange-500); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-700);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.main-nav a:hover { color: var(--navy-800); }
.main-nav a.active { color: var(--navy-800); border-bottom-color: var(--orange-500); }
.main-nav a.active.provider-active { color: var(--orange-600); }
.badge-new {
  background: var(--navy-800);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.favorites-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
}
.fav-count {
  background: var(--orange-500);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle { display: none; background: none; border: none; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  min-width: 200px;
  display: none;
  margin-top: 10px;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 500;
  border: none;
}
.dropdown-menu a:hover { background: var(--navy-50); }

/* ===================== HERO / PAGE HEADER ===================== */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-500);
  padding: 14px 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { font-weight: 600; color: var(--text-500); }
.breadcrumb .current { color: var(--navy-800); font-weight: 600; }

.page-hero {
  background: linear-gradient(180deg, var(--navy-50) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 44px;
}
.page-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p.lead { font-size: 1.05rem; max-width: 540px; margin-bottom: 24px; }
.page-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 260px;
  box-shadow: var(--shadow-md);
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.stat-row {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.stat-item { display: flex; align-items: center; gap: 10px; }
.stat-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--navy-800);
}
.stat-num { font-weight: 800; font-size: 1.05rem; color: var(--navy-900); }
.stat-label { font-size: 0.78rem; color: var(--text-500); }

/* ===================== SECTIONS / LAYOUT ===================== */
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head .view-all { font-weight: 700; color: var(--navy-800); font-size: 0.9rem; white-space: nowrap; }
.section-bg-tint { background: var(--navy-50); }

.two-col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* ===================== CARDS ===================== */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px; }

.icon-badge-circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--navy-800);
}

/* Category grid (types of care) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card { display: flex; flex-direction: column; }
.category-card .thumb { height: 130px; overflow: hidden; position: relative; }
.category-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-card .thumb .icon-badge-circle { position: absolute; top: 12px; left: 12px; }
.category-card .body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.category-card h4 { font-size: 1rem; margin-bottom: 6px; }
.category-card p { font-size: 0.85rem; margin-bottom: 12px; flex: 1; }
.learn-more { font-size: 0.85rem; font-weight: 700; color: var(--navy-800); display: inline-flex; align-items: center; gap: 4px; }

/* Sidebar nav list (types of care categories, resources sidebar) */
.sidebar-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-700);
}
.sidebar-list a:hover { background: var(--navy-50); }
.sidebar-list a.active { background: var(--navy-100); color: var(--navy-800); }
.sidebar-list a .row-icon { display: flex; align-items: center; gap: 10px; }

.callout-card {
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 20px;
}
.callout-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
.callout-card p { font-size: 0.85rem; margin-bottom: 14px; }

.callout-dark {
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
}
.callout-dark h4 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.callout-dark p { color: #cfd9e6; font-size: 0.88rem; margin-bottom: 16px; }

.banner-cta {
  background: var(--navy-100);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.banner-cta .left { display: flex; gap: 16px; align-items: flex-start; }
.banner-cta h4 { font-size: 1.02rem; margin-bottom: 4px; }
.banner-cta p { font-size: 0.88rem; }
.banner-cta .actions { display: flex; gap: 20px; align-items: center; flex-shrink: 0; }
.banner-cta .icon-circle-dark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-800); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ===================== FIND CARE PAGE ===================== */
.search-bar-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr auto;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.field {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-500);
  margin-bottom: 2px;
}
.field .value { font-size: 0.92rem; font-weight: 600; color: var(--text-900); }

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-count { font-weight: 700; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle button { padding: 8px 12px; background: #fff; border: none; }
.view-toggle button.active { background: var(--navy-100); color: var(--navy-800); }

.filters-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.filters-panel h3 { font-size: 1rem; margin-bottom: 4px; }
.filter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.filter-head .reset { font-size: 0.85rem; color: var(--navy-800); font-weight: 700; }
.filter-group { margin-bottom: 22px; }
.filter-group h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-500); margin-bottom: 10px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; font-size: 0.9rem; }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--navy-800); }
.range-input { width: 100%; accent-color: var(--navy-800); margin: 10px 0 4px; }
.range-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-500); }
.min-max-row { display: flex; gap: 10px; }
.min-max-row .field { flex: 1; padding: 8px 10px; }

.listing-card {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.listing-card .photo { position: relative; border-radius: var(--radius-md); overflow: hidden; height: 150px; }
.listing-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.match-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--green-600); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
}
.fav-heart {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-500);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.1s ease;
}
.fav-heart:hover { transform: scale(1.08); }
.fav-heart.is-fav { color: #e0335a; }
.fav-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px;
  border-radius: 20px; background: var(--orange-500, #f5a623); color: #fff;
  font-size: 0.7rem; font-weight: 700;
}
.listing-info h3 { display: flex; align-items: center; gap: 6px; font-size: 1.1rem; margin-bottom: 4px; }
.listing-meta { font-size: 0.85rem; color: var(--text-500); margin-bottom: 6px; }
.listing-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.tag {
  font-size: 0.76rem; font-weight: 600; color: var(--text-700);
  background: var(--navy-50); border: 1px solid var(--border);
  padding: 4px 9px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 4px;
}
.availability-tag {
  display: inline-block; margin-top: 6px;
  background: var(--green-100); color: var(--green-600);
  font-size: 0.78rem; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
}
.listing-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 150px; }
.listing-price { font-weight: 800; font-size: 1.05rem; color: var(--navy-900); text-align: right; }
.listing-price small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--text-500); }
.stars { color: var(--orange-500); font-size: 0.85rem; }

.map-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 640px;
  position: sticky;
  top: 90px;
  background: linear-gradient(135deg, #dce8f5 0%, #eef3f9 100%);
}

/* ===================== PRICING (FOR PROVIDERS) ===================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.1fr;
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.popular { border: 2px solid var(--orange-500); box-shadow: var(--shadow-md); }
.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--orange-500); color: #fff;
  font-size: 0.68rem; font-weight: 800;
  padding: 4px 12px; border-radius: 20px;
}
.price-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.price-card .desc { font-size: 0.85rem; margin-bottom: 16px; min-height: 40px; }
.price-amount { font-size: 2.1rem; font-weight: 800; color: var(--navy-900); }
.price-amount span { font-size: 0.95rem; font-weight: 600; color: var(--text-500); }
.price-billed { font-size: 0.78rem; color: var(--text-500); margin-bottom: 18px; }
.price-features { flex: 1; margin-bottom: 18px; }
.price-features li { display: flex; gap: 8px; font-size: 0.87rem; margin-bottom: 10px; color: var(--text-700); }
.price-features li strong { color: var(--text-900); }
.price-features .check { color: var(--green-600); flex-shrink: 0; }

/* Icon feature grid (why choose us) */
.icon-feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  text-align: center;
}
.icon-feature { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.icon-feature .circle {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--navy-100); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
}
.icon-feature h4 { font-size: 0.92rem; }
.icon-feature p { font-size: 0.8rem; }

/* Steps row */
.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.step-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; flex: 1; }
.step-item .circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy-100); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
}
.step-item h4 { font-size: 0.88rem; }
.step-item p { font-size: 0.78rem; }
.step-arrow { color: var(--text-400); margin-top: 20px; flex-shrink: 0; }

/* Testimonial cards */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { display: flex; gap: 14px; }
.testimonial-card img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.testimonial-card blockquote { font-size: 0.88rem; color: var(--text-700); margin: 4px 0 8px; font-style: italic; }
.testimonial-card .name { font-weight: 700; font-size: 0.85rem; }
.testimonial-card .loc { font-size: 0.78rem; color: var(--text-500); }

/* Article / tool / video cards */
.article-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.article-card .thumb { height: 140px; overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card .body { padding: 14px 4px; }
.pill {
  display: inline-block; font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.03em;
  background: var(--navy-100); color: var(--navy-800);
  padding: 3px 8px; border-radius: 4px; margin-bottom: 8px;
}
.article-card h4 { font-size: 0.95rem; margin-bottom: 6px; line-height: 1.35; }
.article-card p { font-size: 0.82rem; margin-bottom: 8px; }
.article-meta { font-size: 0.76rem; color: var(--text-400); }

.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tool-card { padding: 20px; }
.tool-card .icon-badge-circle { margin-bottom: 12px; background: var(--navy-100); border: none; }
.tool-card h4 { font-size: 0.95rem; margin-bottom: 6px; }
.tool-card p { font-size: 0.82rem; margin-bottom: 10px; }
.tool-card .link { font-size: 0.85rem; font-weight: 700; color: var(--navy-800); }

.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.video-card .thumb { position: relative; height: 140px; overflow: hidden; border-radius: var(--radius-md); }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-800);
}
.duration-badge {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(14,32,56,0.85); color: #fff;
  font-size: 0.7rem; padding: 2px 6px; border-radius: 4px;
}
.video-card .body { padding: 12px 2px; }

/* Search hero */
.hero-search-box {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 8px; display: flex; gap: 8px; box-shadow: var(--shadow-md); max-width: 560px;
}
.hero-search-box input {
  flex: 1; border: none; padding: 12px 14px; font-size: 0.95rem; border-radius: var(--radius-sm);
}
.hero-search-box input:focus { outline: none; }
.popular-searches { font-size: 0.82rem; color: var(--text-500); margin-top: 12px; }
.popular-searches a { font-weight: 700; color: var(--navy-800); margin-left: 6px; }

/* Newsletter */
.newsletter-box input {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); margin-bottom: 10px; font-size: 0.88rem;
}

/* ===================== HOME PAGE ===================== */
.home-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.home-hero h1 { color: #fff; font-size: 3rem; margin-bottom: 16px; max-width: 640px; }
.home-hero p.lead { color: #cfd9e6; font-size: 1.1rem; max-width: 560px; margin-bottom: 28px; }
.home-search-panel {
  background: #fff; border-radius: var(--radius-lg); padding: 18px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 10px;
  box-shadow: var(--shadow-lg); max-width: 820px;
}
.home-stat-row { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.home-stat-row .stat-num { color: #fff; font-size: 1.7rem; }
.home-stat-row .stat-label { color: #b7c4d6; }

.quicklinks-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.quicklink { text-align: center; padding: 20px 10px; }
.quicklink .icon-badge-circle { margin: 0 auto 12px; width: 52px; height: 52px; }
.quicklink h4 { font-size: 0.85rem; }

.split-cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.split-cta .panel {
  border-radius: var(--radius-lg); padding: 32px; color: #fff;
  display: flex; flex-direction: column; justify-content: center; min-height: 220px;
}
.split-cta .panel.navy { background: var(--navy-800); }
.split-cta .panel.orange { background: linear-gradient(135deg, var(--orange-500), var(--orange-600)); }
.split-cta h3 { color: #fff; font-size: 1.4rem; margin-bottom: 10px; }
.split-cta p { color: rgba(255,255,255,0.85); margin-bottom: 18px; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy-900); color: #cfd9e6; padding: 48px 0 0; margin-top: 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .logo-text, .footer-brand .logo-text .accent { color: #fff; }
.footer-brand .logo-text .accent { color: var(--orange-500); }
.footer-brand p { color: #97a5b8; font-size: 0.85rem; margin: 12px 0 16px; max-width: 240px; }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: #97a5b8; font-size: 0.86rem; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; font-size: 0.8rem; color: #7c8aa0; flex-wrap: wrap; gap: 10px;
}
.footer-bottom .links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ===================== AI CARE FINDER ===================== */
.step-tracker {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 28px 0; flex-wrap: wrap;
}
.step-tracker .tstep { display: flex; align-items: center; gap: 10px; }
.step-tracker .circle {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy-100); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.step-tracker .tstep.done .circle { background: var(--navy-800); color: #fff; }
.step-tracker .tstep span.label { font-size: 0.85rem; font-weight: 600; color: var(--text-500); }
.step-tracker .tstep.done span.label { color: var(--navy-800); }
.step-tracker .connector { width: 40px; height: 2px; background: var(--border); }

.assess-form .field-label { font-weight: 700; font-size: 0.9rem; margin: 18px 0 10px; display: block; }
.option-pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.option-pill {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 10px; text-align: center; font-size: 0.82rem; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #fff; cursor: pointer;
}
.option-pill.selected { border-color: var(--navy-800); background: var(--navy-50); color: var(--navy-800); }
.option-pills.two-up { grid-template-columns: repeat(2, 1fr); }
.select-field {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 0.9rem; color: var(--text-700); display: flex;
  justify-content: space-between; align-items: center; background: #fff;
}

.ai-banner {
  background: var(--navy-50); border: 1px solid var(--navy-100);
  border-radius: var(--radius-lg); padding: 18px 22px;
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px;
}

.rec-card {
  border: 1.5px solid var(--green-600); border-radius: var(--radius-lg);
  padding: 22px; background: #fff; position: relative;
}
.rec-card .top-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.match-pill {
  background: var(--green-100); color: var(--green-600);
  font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 20px;
}
.best-match-pill {
  background: var(--green-600); color: #fff;
  font-size: 0.68rem; font-weight: 800; padding: 3px 9px; border-radius: 4px;
  text-transform: uppercase; display: inline-block; margin-bottom: 8px;
}
.rec-card .rec-icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--navy-100); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 1.3rem; margin-bottom: 12px;
}
.rec-check-list { margin: 14px 0; }
.rec-check-list li { display: flex; gap: 8px; font-size: 0.87rem; margin-bottom: 8px; color: var(--text-700); }
.rec-check-list .check { color: var(--green-600); flex-shrink: 0; }

.other-option-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px; margin-bottom: 12px; background: #fff;
}
.other-option-row .left { display: flex; gap: 14px; align-items: flex-start; }
.other-option-row .rec-icon-sm {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-100); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.other-option-row h4 { font-size: 0.95rem; margin-bottom: 4px; }
.other-option-row p { font-size: 0.82rem; }

.note-box {
  background: var(--orange-100); border: 1px solid #f3d9a6;
  border-radius: var(--radius-md); padding: 14px 16px;
  display: flex; gap: 10px; font-size: 0.82rem; color: var(--text-700);
  margin: 20px 0;
}

.mini-listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-listing-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: #fff;
}
.mini-listing-card .photo { position: relative; height: 130px; }
.mini-listing-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.mini-listing-card .body { padding: 14px; }
.mini-listing-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.mini-listing-card .price { font-weight: 800; color: var(--navy-900); margin: 6px 0; }
.mini-listing-card .tags-sm { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }

.how-it-works-mini li { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.how-it-works-mini .circle-sm {
  width: 36px; height: 36px; border-radius: 50%; background: var(--navy-100); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.how-it-works-mini h4 { font-size: 0.88rem; margin-bottom: 2px; }
.how-it-works-mini p { font-size: 0.8rem; }

/* ===================== CLAIM LISTING ===================== */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 0.92rem; font-family: inherit; color: var(--text-900);
}
.form-field textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 0.78rem; color: var(--text-500); margin-top: 4px; }

.tier-select-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px; }
.tier-select-card {
  border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; cursor: pointer; text-align: center; background: #fff;
}
.tier-select-card.selected { border-color: var(--navy-800); background: var(--navy-50); }
.tier-select-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.tier-select-card .price { font-weight: 800; font-size: 1.3rem; color: var(--navy-900); }
.tier-select-card .price span { font-size: 0.8rem; font-weight: 600; color: var(--text-500); }
.tier-select-card .photos { font-size: 0.78rem; color: var(--text-500); margin-top: 4px; }

.photo-upload-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 10px; }
.photo-slot {
  aspect-ratio: 1; border: 2px dashed var(--border); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  color: var(--text-400); font-size: 0.72rem; text-align: center; gap: 6px; cursor: pointer;
  overflow: hidden; position: relative; background: var(--navy-50);
}
.photo-slot.filled { border-style: solid; border-color: var(--green-600); color: transparent; }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot.locked { opacity: 0.4; cursor: not-allowed; }
.photo-slot input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.confirm-panel { text-align: center; padding: 50px 30px; }
.confirm-panel .check-circle {
  width: 72px; height: 72px; border-radius: 50%; background: var(--green-100); color: var(--green-600);
  display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 20px;
}

.claim-step-nav { display: flex; justify-content: space-between; margin-top: 24px; }

/* ===================== COMMUNITY FORUM ===================== */
.forum-cat-list a {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius-md);
  border: 1px solid var(--border); margin-bottom: 10px; background: #fff;
}
.forum-cat-list a:hover { border-color: var(--navy-700); }
.forum-cat-list a.active { background: var(--navy-50); border-color: var(--navy-800); }
.forum-cat-list .icon-badge-circle { flex-shrink: 0; background: var(--navy-100); border: none; width: 40px; height: 40px; }
.forum-cat-list h4 { font-size: 0.9rem; margin-bottom: 2px; }
.forum-cat-list p { font-size: 0.76rem; color: var(--text-500); }

.thread-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-bottom: 1px solid var(--border);
}
.thread-row:last-child { border-bottom: none; }
.thread-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy-100); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.thread-row h4 { font-size: 0.98rem; margin-bottom: 4px; }
.thread-row .thread-meta { font-size: 0.78rem; color: var(--text-500); }
.thread-row .thread-tag {
  font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  background: var(--navy-100); color: var(--navy-800); margin-right: 6px;
}
.thread-stats { text-align: right; flex-shrink: 0; font-size: 0.78rem; color: var(--text-500); min-width: 80px; }
.thread-stats strong { display: block; color: var(--text-900); font-size: 1rem; }

.new-post-box textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 14px; font-family: inherit; font-size: 0.9rem; min-height: 90px; resize: vertical;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px) {
  .page-hero-inner, .two-col, .pricing-grid, .icon-feature-grid, .category-grid,
  .article-grid, .tool-grid, .video-grid, .testimonial-grid, .split-cta,
  .quicklinks-grid, .footer-grid, .listing-card { grid-template-columns: repeat(2, 1fr) !important; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .search-bar-panel { grid-template-columns: 1fr 1fr; }
  .home-search-panel { grid-template-columns: 1fr 1fr; }
  .steps-row { flex-wrap: wrap; }
  .map-panel { display: none; }
  .option-pills, .mini-listing-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .tier-select-row { grid-template-columns: 1fr !important; }
  .photo-upload-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .form-row { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.9rem; }
  .category-grid, .article-grid, .tool-grid, .video-grid, .testimonial-grid,
  .pricing-grid, .icon-feature-grid, .quicklinks-grid, .footer-grid,
  .home-search-panel, .search-bar-panel { grid-template-columns: 1fr !important; }
  .listing-card { grid-template-columns: 1fr; }
  .listing-actions { align-items: stretch; }
  .option-pills, .mini-listing-grid { grid-template-columns: 1fr !important; }
  .step-tracker .label { display: none; }
}


/* Larger text for older readers: everything sized in rem scales up together. */
html { font-size: 112.5%; }
.btn { min-height: 44px; }
.quicklink p { color: var(--text-500); }
@media (max-width: 1100px) { .quicklinks-grid { grid-template-columns: repeat(3, 1fr); } }
