/*
Theme Name: FindHolisticMiami
Theme URI: https://findholisticmiami.com
Author: FindHolisticMiami
Description: Clean, modern directory theme for FindHolisticMiami. Built for GeoDirectory.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: fhm
Tags: directory, geodirectory, holistic, health
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --green:       #1D9E75;
  --green-dark:  #0F6E56;
  --green-deep:  #085041;
  --green-light: #E1F5EE;
  --green-mid:   #9FE1CB;
  --text:        #1a1a1a;
  --text-mid:    #555;
  --text-muted:  #888;
  --border:      #e8e8e4;
  --bg:          #ffffff;
  --bg-soft:     #f7f7f4;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08);
  --font:        'DM Sans', sans-serif;
  --ease:        0.18s ease;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
h1,h2,h3,h4,h5,h6 { font-weight: 500; line-height: 1.25; color: var(--text); }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   NAV
   ============================================================ */
.fhm-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
}
.fhm-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1160px; margin: 0 auto; padding: 0 24px;
}
.fhm-logo { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.fhm-logo span { color: var(--green); }
.fhm-nav__links { display: flex; align-items: center; gap: 32px; }
.fhm-nav__links a { font-size: 14px; color: var(--text-mid); transition: color var(--ease); }
.fhm-nav__links a:hover { color: var(--text); }
.fhm-btn-cta {
  background: var(--green); color: #fff;
  font-size: 13px; font-weight: 500;
  padding: 9px 20px; border-radius: var(--radius-md); border: none;
  transition: background var(--ease);
}
.fhm-btn-cta:hover { background: var(--green-dark); }
.fhm-nav__toggle { display: none; background: none; border: none; padding: 4px; }
.fhm-nav__toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; margin: 4px 0;
  transition: all 0.2s;
}

/* ============================================================
   HERO
   ============================================================ */
.fhm-hero {
  padding: 80px 24px 64px;
  text-align: center;
  background: var(--bg);
}
.fhm-hero__tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  color: var(--green-dark); background: var(--green-light);
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
}
.fhm-hero__tag::before {
  content: ''; width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
}
.fhm-hero h1 {
  font-size: clamp(28px, 5vw, 48px); font-weight: 500;
  max-width: 600px; margin: 0 auto 16px;
  letter-spacing: -0.02em; line-height: 1.15;
}
.fhm-hero__sub {
  font-size: 16px; color: var(--text-mid);
  max-width: 460px; margin: 0 auto 36px; line-height: 1.7;
}

/* Search */
.fhm-search {
  display: flex; align-items: center;
  max-width: 600px; margin: 0 auto 20px;
  background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 6px 6px 6px 18px; gap: 10px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.fhm-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,158,117,0.1); }
.fhm-search input {
  flex: 1; border: none; background: transparent;
  font-size: 14px; font-family: var(--font); color: var(--text); outline: none;
}
.fhm-search input::placeholder { color: var(--text-muted); }
.fhm-search__div { width: 1px; height: 22px; background: var(--border); flex-shrink: 0; }
.fhm-search select {
  border: none; background: transparent;
  font-size: 13px; font-family: var(--font); color: var(--text-mid); outline: none;
  padding: 0 10px; cursor: pointer;
}
.fhm-search__btn {
  background: var(--green); color: #fff; border: none;
  border-radius: var(--radius-md); padding: 10px 22px;
  font-size: 13px; font-weight: 500; font-family: var(--font);
  white-space: nowrap; transition: background var(--ease);
}
.fhm-search__btn:hover { background: var(--green-dark); }

/* Pills */
.fhm-cats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 680px; margin: 0 auto; }
.fhm-pill {
  font-size: 12px; font-weight: 500; color: var(--text-mid);
  background: var(--bg-soft); border: 0.5px solid var(--border);
  border-radius: 20px; padding: 6px 16px;
  cursor: pointer; transition: all var(--ease); white-space: nowrap;
}
.fhm-pill:hover, .fhm-pill.active {
  background: var(--green-light); border-color: var(--green-mid); color: var(--green-deep);
}

/* ============================================================
   LISTINGS SECTION
   ============================================================ */
.fhm-section { padding: 56px 24px; background: var(--bg-soft); }
.fhm-section__hd {
  display: flex; justify-content: space-between; align-items: baseline;
  max-width: 1160px; margin: 0 auto 28px;
}
.fhm-section__hd h2 { font-size: 20px; font-weight: 500; }
.fhm-section__hd a { font-size: 13px; color: var(--green); font-weight: 500; transition: color var(--ease); }
.fhm-section__hd a:hover { color: var(--green-dark); }

.fhm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; max-width: 1160px; margin: 0 auto; }

.fhm-card {
  background: var(--bg); border: 0.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
  cursor: pointer;
}
.fhm-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #d4d4ce; }
.fhm-card--claimed { border-color: var(--green-mid); }
.fhm-card--claimed:hover { border-color: var(--green); }

.fhm-card__type {
  display: inline-block; font-size: 11px; font-weight: 500;
  color: var(--green-dark); background: var(--green-light);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 12px;
}
.fhm-card__name { font-size: 15px; font-weight: 500; margin-bottom: 4px; line-height: 1.3; }
.fhm-card__addr { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.fhm-card__stars { font-size: 13px; color: #BA7517; }
.fhm-card__stars span { color: var(--text-muted); font-size: 11px; margin-left: 3px; }
.fhm-card__claimed {
  font-size: 11px; color: var(--green-dark);
  margin-top: 10px; padding-top: 10px;
  border-top: 0.5px solid var(--green-light);
  display: flex; align-items: center; gap: 4px;
}
.fhm-card__claimed::before { content: ''; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }

/* ============================================================
   STATS
   ============================================================ */
.fhm-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); }
.fhm-stat { text-align: center; padding: 36px 20px; border-right: 0.5px solid var(--border); }
.fhm-stat:last-child { border-right: none; }
.fhm-stat__n { font-size: 36px; font-weight: 500; color: var(--green); letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
.fhm-stat__l { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   CTA BAND
   ============================================================ */
.fhm-cta { background: var(--green-deep); padding: 72px 24px; text-align: center; }
.fhm-cta h2 { font-size: 28px; font-weight: 500; color: var(--green-light); margin-bottom: 10px; letter-spacing: -0.02em; }
.fhm-cta p { font-size: 15px; color: var(--green-mid); margin: 0 auto 28px; max-width: 400px; line-height: 1.7; }
.fhm-cta__btn {
  display: inline-block; background: #fff; color: var(--green-deep);
  font-size: 14px; font-weight: 500; padding: 13px 28px;
  border-radius: var(--radius-md); border: none;
  transition: background var(--ease), transform var(--ease);
}
.fhm-cta__btn:hover { background: var(--green-light); transform: translateY(-1px); }

/* ============================================================
   FOOTER
   ============================================================ */
.fhm-footer { background: var(--bg); border-top: 0.5px solid var(--border); padding: 24px; }
.fhm-footer__in {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1160px; margin: 0 auto;
}
.fhm-footer__copy { font-size: 12px; color: var(--text-muted); }
.fhm-footer__links { display: flex; gap: 20px; }
.fhm-footer__links a { font-size: 12px; color: var(--text-muted); transition: color var(--ease); }
.fhm-footer__links a:hover { color: var(--text); }

/* ============================================================
   GEODIRECTORY INTEGRATION
   ============================================================ */
.geodir-listing-title a { color: var(--text); font-weight: 500; }
.geodir-listing-title a:hover { color: var(--green); }
.gd-search-widget input[type="text"],
.gd-search-widget select {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-family: var(--font); font-size: 14px; padding: 10px 14px;
  color: var(--text); width: 100%; outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.gd-search-widget input[type="text"]:focus,
.gd-search-widget select:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,158,117,0.1);
}
.gd-search-widget .btn,
.gd-search-widget button[type="submit"] {
  background: var(--green); color: #fff; border: none;
  border-radius: var(--radius-md); font-family: var(--font);
  font-size: 14px; font-weight: 500; padding: 10px 20px;
  cursor: pointer; transition: background var(--ease);
}
.gd-search-widget .btn:hover,
.gd-search-widget button[type="submit"]:hover { background: var(--green-dark); }
.geodir-rating-stars .gd-star { color: #BA7517; }
.gd-claimed-badge { background: var(--green-light); color: var(--green-dark); border-radius: 20px; font-size: 11px; padding: 3px 10px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .fhm-nav__links { display: none; }
  .fhm-nav__toggle { display: block; }
  .fhm-nav__links.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 0.5px solid var(--border);
    padding: 16px 24px; gap: 16px;
  }
  .fhm-hero { padding: 48px 20px 40px; }
  .fhm-search { flex-wrap: wrap; padding: 10px; }
  .fhm-search__div { display: none; }
  .fhm-search select { border-top: 1px solid var(--border); padding: 8px 0; width: 100%; }
  .fhm-search__btn { width: 100%; padding: 12px; }
  .fhm-stats { grid-template-columns: 1fr; }
  .fhm-stat { border-right: none; border-bottom: 0.5px solid var(--border); }
  .fhm-stat:last-child { border-bottom: none; }
  .fhm-footer__in { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .fhm-cards { grid-template-columns: 1fr; }
}
