/*
Theme Name: WellnessFinderPro Theme
Theme URI: https://wellnessfinderpro.com
Author: WellnessFinderPro
Description: HomeAdvisor-inspired local directory theme.
Version: 2.0.0
Text Domain: wellnessfinderpro-theme
*/

:root {
  --ubf-accent: #ff6b35;
  --ubf-accent-dark: #ea580c;
  --ubf-text: #1f2937;
  --ubf-muted: #6b7280;
  --ubf-bg: #ffffff;
  --ubf-soft: #f8fafc;
  --ubf-border: #e5e7eb;
  --ubf-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ubf-text);
  background: var(--ubf-bg);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ubf-accent-dark); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 3rem 0; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1.25rem; }
.meta { color: var(--ubf-muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--ubf-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  min-height: 72px;
}
.brand { font-weight: 800; color: var(--ubf-accent); font-size: 1.2rem; }
.main-nav .menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.main-nav .menu a { color: #374151; font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: .75rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}
.btn-primary, .btn-cta {
  background: var(--ubf-accent);
  color: #fff;
}
.btn-primary:hover, .btn-cta:hover {
  background: var(--ubf-accent-dark);
  color: #fff;
}
.btn-outline {
  background: #fff;
  border-color: var(--ubf-border);
}

.hero {
  position: relative;
  min-height: 460px;
  display: grid;
  align-items: center;
  background-image: url('https://images.unsplash.com/photo-1544161515-4ab6ce6db874?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.35));
}
.hero-content { position: relative; z-index: 2; color: #fff; }
.hero-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  max-width: 720px;
}
.hero-search {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: .6rem;
  max-width: 860px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: .6rem;
}
.hero-search input {
  border: 0;
  border-radius: 10px;
  padding: .9rem 1rem;
  font-size: 1rem;
}
.hero-trust { margin-top: .8rem; font-weight: 500; }

.category-strip-wrap {
  border-bottom: 1px solid var(--ubf-border);
  background: #fff;
}
.category-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: .7rem;
  padding: 1rem;
  overflow-x: auto;
}
.category-strip a {
  background: var(--ubf-soft);
  border: 1px solid var(--ubf-border);
  border-radius: 999px;
  font-size: .92rem;
  text-align: center;
  padding: .55rem .75rem;
  white-space: nowrap;
}

.grid { display: grid; gap: 1rem; }
.projects-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.how-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.how-card { text-align: center; }
.how-icon { font-size: 1.8rem; }

.card {
  background: #fff;
  border: 1px solid var(--ubf-border);
  border-radius: var(--radius);
  box-shadow: var(--ubf-shadow);
  padding: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(2, 6, 23, .12);
}
.project-card span { color: var(--ubf-accent-dark); font-weight: 700; }

.breadcrumbs {
  margin: 1rem auto 0;
  max-width: 1180px;
  padding: 0 1rem;
  color: var(--ubf-muted);
  font-size: .92rem;
}

.directory-head { padding-bottom: 1rem; }
.directory-filters-wrap {
  position: sticky;
  top: 72px;
  background: #fff;
  border-top: 1px solid var(--ubf-border);
  border-bottom: 1px solid var(--ubf-border);
  z-index: 50;
}
.filter-form {
  display: flex;
  gap: .6rem;
  padding: .7rem 0;
}
.filter-form select {
  border: 1px solid var(--ubf-border);
  border-radius: 10px;
  padding: .65rem .75rem;
  background: #fff;
}
.listing-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.rich-card h3 { margin: 0 0 .5rem; }
.listing-rating {
  color: #f59e0b;
  font-weight: 600;
  margin-bottom: .5rem;
}
.listing-rating strong { color: #111827; margin-left: .2rem; }
.listing-rating span { color: var(--ubf-muted); font-size: .92rem; }
.listing-actions { margin-top: .8rem; }

.single-business .business-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.business-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  align-content: start;
}
.business-section h2 { margin-top: 0; }
.business-details-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 1rem 0;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--ubf-border);
  background: #111827;
  color: #e5e7eb;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 2.25rem 1rem;
}
.site-footer h4 { margin: 0 0 .7rem; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 .45rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: .9rem 1rem 1.3rem;
  color: #9ca3af;
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero-search { grid-template-columns: 1fr; }
  .single-business .business-hero { grid-template-columns: 1fr; }
  .business-cta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .header-inner { min-height: 62px; }
  .btn-cta { font-size: .85rem; padding: .6rem .75rem; }
  .filter-form { overflow-x: auto; }
  .footer-grid { grid-template-columns: 1fr; }
}
