/*
Theme Name:   SmileMerit
Theme URI:    https://smilemerit.com
Description:  Astra child theme for SmileMerit — a US teeth whitening directory built on Directorist. Adds the sm_place location CPT, distance and density queries, indexation gating, and the SmileMerit design system.
Author:       SmileMerit
Version:      1.16.0
Template:     astra
Text Domain:  smilemerit
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================================
   Design tokens
   All text pairings verified against WCAG AA. See README.md.
   ============================================================ */

:root {
  --sm-pine:       #0F3D36;
  --sm-pine-deep:  #0A2C27;
  --sm-jade:       #2E8B7A;   /* icons, borders, fills — NOT small text */
  --sm-jade-ink:   #237063;   /* jade for text on white: 5.88:1 */
  --sm-mint:       #D8EDE6;
  --sm-mint-line:  #9FD3C4;
  --sm-mint-ink:   #14554A;   /* text on mint: 7.07:1 */
  --sm-coral:      #C9A86A;
  --sm-coral-ink:  #3D1608;   /* text on coral: 5.47:1 */
  --sm-coral-lift: #F5825F;   /* hover lightens, text stays dark */
  --sm-amber:      #F5B544;
  --sm-amber-bg:   #FAEEDA;
  --sm-amber-ink:  #633806;
  --sm-porcelain:  #FBF9F5;
  --sm-white:      #FFFFFF;
  --sm-sand:       #4A5C56;
  --sm-sand-line:  #CFC7B8;
  --sm-sand-soft:  #F1EFE8;
  --sm-ink:        #1A2C27;   /* 14.65:1 */
  --sm-ink-soft:   #4A5C56;   /* 7.10:1 — body and card copy */
  --sm-ink-mute:   #63716C;   /* 4.86:1 — metadata only */
  --sm-ink-faint:  #8A968F;   /* DECORATIVE ONLY — never text */

  --sm-display: "Fraunces", Georgia, serif;
  --sm-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --sm-fs-micro: 0.8125rem;
  --sm-fs-sm:    0.875rem;
  --sm-fs-base:  1rem;
  --sm-fs-md:    1.0625rem;
  --sm-fs-lg:    1.125rem;

  --sm-r-sm: 8px;
  --sm-r-md: 12px;
  --sm-r-lg: 20px;
  --sm-r-pill: 999px;
}

/* ============================================================
   Base
   ============================================================ */

body { font-family: var(--sm-body); line-height: 1.68; color: var(--sm-ink-soft); background: #FAF7F0 !important;}
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; color: var(--sm-ink); }
h1, h2 { font-family: var(--sm-display); letter-spacing: -.018em; }
a { color: var(--sm-jade-ink); }
a:hover { color: var(--sm-pine); }

.sm-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--sm-jade-ink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   Section scaffolding
   ============================================================ */

.sm-section { padding: 30px 0; }
.sm-section--tight { padding: 42px 0; }
.sm-section--white { background: var(--sm-white); border-block: 1px solid var(--sm-sand); }
.sm-section--mint { background: var(--sm-mint); }
.sm-section--sand { background: var(--sm-sand-soft); }
.sm-section--none { background: transparent; }

.sm-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 26px; flex-wrap: wrap;
}
.sm-section-head h2 { margin: 0; font-size: clamp(1.55rem, 2.7vw, 2.1rem); }
.sm-lede { font-size: var(--sm-fs-md); max-width: 62ch; color: var(--sm-ink-soft); margin: 8px 0 0; }

.sm-eyebrow {
  display: inline-block; background: var(--sm-mint); color: var(--sm-pine);
  font-size: var(--sm-fs-sm); font-weight: 600; letter-spacing: .03em;
  padding: 7px 15px; border-radius: var(--sm-r-pill); margin-bottom: 18px;
}

/* ============================================================
   Buttons
   ============================================================ */

.sm-btn {
  display: inline-block; padding: 13px 25px; border-radius: var(--sm-r-sm);
  font-size: var(--sm-fs-base); font-weight: 600; font-family: var(--sm-body);
  border: 1.5px solid transparent; cursor: pointer; text-align: center;
  line-height: 1.3; text-decoration: none;
}
.sm-btn:hover { text-decoration: none; }
.sm-btn--primary { background: var(--sm-coral); color: var(--sm-coral-ink); }

.sm-btn--primary:hover { background: var(--sm-coral-lift); color: var(--sm-coral-ink); }
.sm-btn--dark { background: var(--sm-pine); color: var(--sm-white); }
.sm-btn--dark:hover { background: var(--sm-pine-deep); color: var(--sm-white); }
.sm-btn--ghost { border-color: var(--sm-pine); color: var(--sm-pine); background: transparent; }
.sm-btn--ghost:hover { background: var(--sm-pine); color: var(--sm-white); }
.sm-btn--sm { padding: 9px 18px; font-size: var(--sm-fs-sm); }
.sm-btn--block { display: block; width: 100%; }

/* ============================================================
   Listing grid — 3 per row
   ============================================================ */

.sm-grid { display: grid; gap: 20px; }
.sm-grid--1 { grid-template-columns: 1fr; }
.sm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .sm-grid--3, .sm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sm-grid--2, .sm-grid--3, .sm-grid--4 { grid-template-columns: 1fr; }
}

/* ---- listing card ---- */

.sm-card {
  background: var(--sm-white);
  border: 1px solid var(--sm-sand);
  border-radius: var(--sm-r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .18s ease, transform .18s ease;
}
.sm-card:hover { border-color: var(--sm-mint-line); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .sm-card:hover { transform: none; } }

.sm-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--sm-sand-soft);
  border-bottom: 1px solid var(--sm-sand);
  overflow: hidden;
}
.sm-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* image placeholder — shown when a listing has no photo */
.sm-ph {
  width: 100%; height: 100%;
  background: var(--sm-sand-soft);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 16px;
}
.sm-ph--dashed { border: 1.5px dashed var(--sm-sand-line); border-radius: var(--sm-r-md); }
.sm-ph svg { color: var(--sm-ink-mute); }
.sm-ph__initials {
  font-family: var(--sm-display);
  font-size: 1.6rem; font-weight: 600;
  color: var(--sm-pine);
  letter-spacing: .02em;
}
.sm-ph__label { font-size: var(--sm-fs-sm); font-weight: 600; color: var(--sm-ink-soft); line-height: 1.4; }
.sm-ph__spec {
  font-size: var(--sm-fs-micro);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: #586661;
}
.sm-ph--mint { background: var(--sm-mint); }
.sm-ph--mint .sm-ph__label { color: var(--sm-pine); }
.sm-ph--mint svg, .sm-ph--mint .sm-ph__spec { color: var(--sm-mint-ink); }

.sm-card__badge {
  position: absolute; top: 12px; left: 12px;
  border-radius: var(--sm-r-pill); padding: 5px 12px;
  font-size: var(--sm-fs-sm); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sm-amber-bg); color: var(--sm-amber-ink);
}
.sm-card__badge--quiet { background: var(--sm-sand-soft); color: #3F423F; }

.sm-card__dist {
  position: absolute; bottom: 12px; right: 12px;
  background: var(--sm-pine); color: var(--sm-white);
  border-radius: var(--sm-r-pill); padding: 5px 12px;
  font-size: var(--sm-fs-sm); font-weight: 600;
}

.sm-card__body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.sm-card__title { font-size: var(--sm-fs-lg); margin: 0 0 5px; line-height: 1.3; }
.sm-card__title a { color: var(--sm-ink); text-decoration: none; }
.sm-card__title a:hover { color: var(--sm-jade-ink); }
.sm-card__type { font-size: var(--sm-fs-sm); color: var(--sm-ink-mute); margin: 0 0 12px; }
.sm-card__contact { font-size: var(--sm-fs-sm); color: var(--sm-ink-soft); line-height: 1.6; margin: 0 0 12px; }
.sm-card__contact div { display: flex; align-items: flex-start; gap: 8px; }
.sm-card__contact svg { color: var(--sm-ink-mute); flex-shrink: 0; margin-top: 4px; }

.sm-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 15px; padding: 0; }
.sm-tags li {
  background: var(--sm-sand-soft); color: #3F423F;
  border-radius: var(--sm-r-pill); padding: 5px 11px; font-size: var(--sm-fs-sm);
}
.sm-tags li.is-on { background: var(--sm-mint); color: var(--sm-pine); font-weight: 500; }

.sm-card__actions {
  margin-top: auto; padding-top: 4px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.sm-card__out {
  font-size: var(--sm-fs-sm); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}

/* ============================================================
   Category grid
   ============================================================ */

.sm-cat {
  display: flex; flex-direction: column;
  background: var(--sm-white);
  border: 1px solid var(--sm-sand);
  border-radius: var(--sm-r-md);
  padding: 22px 22px 20px;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.sm-cat:hover { border-color: var(--sm-jade); transform: translateY(-2px); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .sm-cat:hover { transform: none; } }

.sm-cat__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--sm-mint); color: var(--sm-pine);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; flex-shrink: 0;
}
.sm-cat__name { font-size: var(--sm-fs-lg); font-weight: 600; color: var(--sm-ink); margin: 0 0 6px; }
.sm-cat:hover .sm-cat__name { color: var(--sm-jade-ink); }
.sm-cat__desc { font-size: var(--sm-fs-sm); color: var(--sm-ink-soft); line-height: 1.6; margin: 0 0 12px; }
.sm-cat__count { font-size: var(--sm-fs-sm); color: var(--sm-ink-mute); margin-top: auto; }

/* feature one category without a second accent colour */
.sm-cat--lead { border-color: var(--sm-mint-line); background: var(--sm-mint); }
.sm-cat--lead .sm-cat__icon { background: var(--sm-white); }
.sm-cat--lead .sm-cat__desc { color: var(--sm-mint-ink); }
.sm-cat--lead .sm-cat__count { color: var(--sm-mint-ink); }

/* ============================================================
   Coverage strip (density signature element)
   ============================================================ */

.sm-coverage {
  background: var(--sm-white); border: 1px solid var(--sm-sand);
  border-radius: var(--sm-r-md); padding: 22px 24px;
}
.sm-coverage__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; flex-wrap: wrap; margin-bottom: 16px;
}
.sm-coverage__head h3 { margin: 0; font-size: var(--sm-fs-base); }
.sm-coverage__head span { font-size: var(--sm-fs-sm); color: var(--sm-ink-mute); }
.sm-bars { display: flex; align-items: flex-end; gap: 6px; height: 66px; }
.sm-bars__bar { flex: 1; background: var(--sm-mint); border-radius: 3px 3px 0 0; min-height: 6px; }
.sm-bars__bar.is-strong { background: var(--sm-jade); }
.sm-bars__bar.is-empty { background: var(--sm-sand); }
.sm-bars__labels { display: flex; gap: 6px; margin-top: 8px; }
.sm-bars__labels span {
  flex: 1; text-align: center;
  font-size: var(--sm-fs-micro); color: var(--sm-ink-mute);
}
.sm-coverage__note {
  font-size: var(--sm-fs-sm); color: var(--sm-ink-soft);
  line-height: 1.6; margin: 16px 0 0;
}

/* ============================================================
   Chips, notes, at-home module
   ============================================================ */

.sm-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.sm-chips li {
  background: var(--sm-white); border: 1px solid var(--sm-sand);
  border-radius: var(--sm-r-pill); padding: 7px 15px;
  font-size: var(--sm-fs-sm); color: var(--sm-ink-soft);
}
.sm-chips li.is-mint {
  background: var(--sm-mint); border-color: var(--sm-mint-line);
  color: var(--sm-pine); font-weight: 500;
}

.sm-pricenote {
  background: var(--sm-white); border: 1px dashed var(--sm-sand-line);
  border-radius: var(--sm-r-md); padding: 18px 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.sm-pricenote svg { color: var(--sm-ink-mute); flex-shrink: 0; margin-top: 3px; }
.sm-pricenote p { margin: 0; font-size: var(--sm-fs-sm); line-height: 1.6; color: var(--sm-ink-soft); }
.sm-pricenote strong { color: var(--sm-pine); }

.sm-athome {
  background: var(--sm-mint); border: 1px solid var(--sm-mint-line);
  border-radius: var(--sm-r-md); padding: 28px 30px;
}
.sm-athome h3 { color: var(--sm-pine); font-family: var(--sm-display); font-size: 1.4rem; margin: 0 0 10px; }
.sm-athome p { color: var(--sm-mint-ink); }
.sm-athome__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }

.sm-disclosure {
  font-size: var(--sm-fs-sm); color: var(--sm-mint-ink);
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 13px; line-height: 1.5;
}
.sm-disclosure svg { flex-shrink: 0; margin-top: 3px; }

/* ============================================================
   Empty state
   ============================================================ */

.sm-empty {
  background: var(--sm-white); border: 1px dashed var(--sm-sand-line);
  border-radius: var(--sm-r-md); padding: 40px 28px; text-align: center;
}
.sm-empty h3 { margin: 0 0 8px; font-size: var(--sm-fs-lg); }
.sm-empty p { margin: 0 auto 18px; max-width: 46ch; font-size: var(--sm-fs-sm); }

/* ============================================================
   Directorist native card fallback
   Applies the 3-column grid to Directorist's own markup when the
   plugin renders listings rather than our shortcode.
   ============================================================ */

.directorist-archive-items,
.directorist-listings-grid {
  display: grid !important;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1024px) {
  .directorist-archive-items,
  .directorist-listings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .directorist-archive-items,
  .directorist-listings-grid { grid-template-columns: 1fr; }
}
.directorist-listing-single {
  border: 1px solid var(--sm-sand) !important;
  border-radius: var(--sm-r-md) !important;
  box-shadow: none !important;
}
.directorist-btn-primary,
.directorist-btn.directorist-btn-primary {
  background: var(--sm-coral) !important;
  color: var(--sm-coral-ink) !important;
  border-color: var(--sm-coral) !important;
}
.elementor-button.elementor-button-link.elementor-size-sm {
  padding: 12px 16px;
  border-radius: var(--sm-r-pill);
  background: var(--sm-coral);
  color: var(--sm-coral-ink);
  font-weight: 500; 
}
/* ============================================================
   Build-phase diagnostics (administrators only)
   These never render for logged-out visitors.
   ============================================================ */

.sm-build-notice {
  background: var(--sm-amber-bg, #FAEEDA);
  border: 1px dashed var(--sm-amber, #F5B544);
  border-radius: 8px;
  color: var(--sm-amber-ink, #633806);
  padding: 14px 18px;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}
.sm-build-notice strong { font-weight: 600; }
.sm-build-notice em { font-style: normal; opacity: 0.75; }

/* ============================================================
   Homepage sections
   ============================================================ */

.sm-hero { padding: 0 0 68px; }

/* Full-width banner: photo (or gradient fallback) with the headline over it,
   and a search card overlapping its bottom edge — the homesteading.com /
   diyprojects.com pattern the client asked to match. Replaces the old
   50/50 grid, which squeezed the whole search form into a half-width
   column and read as cramped. */
.sm-hero__banner {
  position: relative;
  isolation: isolate;
  min-height: 440px;
  display: flex;
  align-items: center;
  border-radius: 0 0 26px 26px;
  overflow: hidden;
  background-color: var(--sm-pine, #0F3D36);
  background-size: cover;
  background-position: center;
}
.sm-hero__banner--tall { min-height: 560px; }
.sm-hero__banner--short { min-height: 340px; }
.sm-hero__banner--noimg {
  background-image: linear-gradient(135deg, var(--sm-pine, #0F3D36) 0%, var(--sm-jade, #2E8B7A) 100%);
}
.sm-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(10,44,39,.78) 0%, rgba(10,44,39,.5) 42%, rgba(10,44,39,.14) 72%);
}
.sm-hero__banner-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 88px clamp(20px, 5vw, 64px) 108px;
}
.sm-hero__banner-inner .sm-hero__title,
.sm-hero__banner-inner .sm-hero__sub { color: #fff; }
.sm-hero__banner--noimg .sm-hero__banner-inner .sm-hero__title,
.sm-hero__banner--noimg .sm-hero__banner-inner .sm-hero__sub { color: #fff; }
.sm-eyebrow--onbanner {
  background: rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(3px);
}

.sm-hero__searchcard {
  position: relative;
  z-index: 3;
  max-width: 1120px;
  margin: -46px auto 0;
  padding: 0 clamp(16px, 4vw, 40px);
}
.sm-hero__searchcard .sm-search--bar { border-radius: 18px; box-shadow: 0 26px 50px rgba(15,61,54,.2); }
.sm-hero__searchcard .sm-geo { margin: 16px 4px 0; }
.sm-search-dir { background: #fff; border-radius: 18px; box-shadow: 0 26px 50px rgba(15,61,54,.2); }

.sm-hero__title {
  font-family: var(--sm-display, "Fraunces", Georgia, serif);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--sm-ink, #1A2C27);
  margin: 0 0 14px;
}
.sm-hero__sub {
  font-size: 1.0625rem;
  max-width: 46ch;
  color: var(--sm-ink-soft, #4A5C56);
  margin: 0 0 28px;
}

.sm-search {
  background: #fff;
  border: 1px solid var(--sm-sand, #E6E1D8);
  border-radius: 20px;
  padding: 9px;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 2px 16px rgba(15, 61, 54, .06);
}
.sm-search__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  min-width: 0;
}
.sm-search__field svg { flex-shrink: 0; color: var(--sm-jade, #2E8B7A); }
.sm-search__field input {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  font: inherit;
  font-size: 1rem;
  color: var(--sm-ink, #1A2C27);
}
.sm-search__field input:focus { outline: none; }
.sm-search:focus-within {
  border-color: var(--sm-jade, #2E8B7A);
  box-shadow: 0 0 0 3px rgba(46, 139, 122, .16);
}

.sm-trustwrap { padding: 0; }
.sm-trust {
  list-style: none;
  margin: 0;
  padding: 21px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 18px 30px;
}
.sm-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--sm-ink-soft, #4A5C56);
}
.sm-trust svg { color: var(--sm-jade, #2E8B7A); flex-shrink: 0; }

.sm-opt {
  background: #fff;
  border: 1px solid var(--sm-sand, #E6E1D8);
  border-radius: 12px;
  padding: 27px;
}
.sm-opt__icon { color: var(--sm-jade, #2E8B7A); margin-bottom: 12px; }
.sm-opt h3 { margin: 0 0 4px; font-size: 1.125rem; }
.sm-opt__price {
  font-family: var(--sm-display, "Fraunces", Georgia, serif);
  font-size: 1.6rem;
  color: var(--sm-ink, #1A2C27);
  margin: 0 0 2px;
}
.sm-opt__sub {
  font-size: .875rem;
  color: var(--sm-ink-mute, #63716C);
  margin: 0 0 15px;
}
.sm-opt--home {
  background: var(--sm-mint, #D8EDE6);
  border-color: var(--sm-mint-line, #9FD3C4);
}
.sm-opt--home h3,
.sm-opt--home .sm-opt__price,
.sm-opt--home .sm-opt__icon { color: var(--sm-pine, #0F3D36); }
.sm-opt--home p,
.sm-opt--home .sm-opt__sub { color: var(--sm-mint-ink, #14554A); }

.sm-card--guide { display: block; color: inherit; text-decoration: none; }
.sm-card--guide:hover { text-decoration: none; }
.sm-card__tag {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sm-jade-ink, #237063);
  margin-bottom: 6px;
}
.sm-card__excerpt {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--sm-ink-soft, #4A5C56);
  margin: 0;
}

.sm-band {
  background: var(--sm-pine, #0F3D36);
  padding: 56px 24px;
  text-align: center;
  border-radius: 12px;
  margin: 62px 0;
}
.sm-band h2 { color: #fff; margin: 0 0 12px; }
.sm-band p {
  color: var(--sm-mint, #D8EDE6);
  max-width: 52ch;
  margin: 0 auto 26px;
  font-size: 1.0625rem;
}

@media (max-width: 960px) {
  .sm-hero__banner { min-height: 380px; border-radius: 0 0 18px 18px; }
  .sm-hero__banner--tall { min-height: 460px; }
  .sm-hero__banner-inner { padding: 64px clamp(18px, 5vw, 40px) 84px; }
}
@media (max-width: 640px) {
  .sm-hero { padding: 0 0 44px; }
  .sm-hero__banner { min-height: 300px; }
  .sm-hero__banner-inner { padding: 44px 18px 68px; }
  .sm-hero__searchcard { margin-top: -34px; }
  .sm-search { flex-direction: column; align-items: stretch; padding: 12px; }
  .sm-search .sm-btn { width: 100%; }
  .sm-trust { justify-content: flex-start; }
  .sm-band { padding: 40px 20px; margin: 40px 0; }
}

/* ============================================================
   Astra header + footer, restyled to the SmileMerit palette

   Astra owns this markup. We are overriding its defaults rather
   than replacing the header, so selectors are deliberately
   specific and scoped to Astra's builder classes.
   ============================================================ */

.ast-primary-header-bar,
.ast-header-break-point .ast-primary-header-bar,
.main-header-bar {
  background-color: var(--sm-pine, #0F3D36) !important;
  border-bottom: 0 !important;
}

/* Site title */
.ast-primary-header-bar .site-title,
.ast-primary-header-bar .site-title a,
.main-header-bar .site-title a {
  color: var(--sm-porcelain, #FBF9F5) !important;
  font-family: var(--sm-display, "Fraunces", Georgia, serif);
  font-weight: 600;
  letter-spacing: -.02em;
}
.ast-primary-header-bar .site-title a:hover { color: #fff !important; }
.ast-primary-header-bar .site-description {
  color: var(--sm-mint, #D8EDE6) !important;
}

/* Navigation */
.ast-primary-header-bar .main-header-menu > .menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
  color: var(--sm-mint, #D8EDE6) !important;
  font-weight: 500;
  font-size: .9375rem;
}
.ast-primary-header-bar .main-header-menu > .menu-item > .menu-link:hover,
.ast-primary-header-bar .main-header-menu > .current-menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu > .current-menu-item > .menu-link {
  color: #fff !important;
}

/* Submenus stay light for readability */
.ast-primary-header-bar .main-header-menu .sub-menu {
  background: #fff;
  border: 1px solid var(--sm-sand, #E6E1D8);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(15, 61, 54, .1);
}
.ast-primary-header-bar .main-header-menu .sub-menu .menu-link {
  color: var(--sm-ink-soft, #4A5C56) !important;
}
.ast-primary-header-bar .main-header-menu .sub-menu .menu-link:hover {
  background: var(--sm-mint, #D8EDE6);
  color: var(--sm-pine, #0F3D36) !important;
}

/* Last nav item becomes the coral CTA pill.
   Add the class 'sm-nav-cta' to a menu item under
   Appearance -> Menus -> Screen Options -> CSS Classes. */
.ast-primary-header-bar .main-header-menu .sm-nav-cta > .menu-link {
  background: var(--sm-coral, #F2704F);
  color: var(--sm-coral-ink, #3D1608) !important;
  border-radius: 999px;
  padding: 9px 18px !important;
  font-weight: 600;
  line-height: 1.3;
}
.ast-primary-header-bar .main-header-menu .sm-nav-cta > .menu-link:hover {
  background: var(--sm-coral-hover, #F5825F);
  color: var(--sm-coral-ink, #3D1608) !important;
}

/* Mobile toggle */
.ast-primary-header-bar .ast-button-wrap .menu-toggle,
.ast-mobile-menu-buttons .menu-toggle {
  background: transparent !important;
  color: var(--sm-mint, #D8EDE6) !important;
}
.ast-header-break-point .ast-primary-header-bar .main-header-menu {
  background: var(--sm-pine-deep, #0A2C27);
}
.ast-header-break-point .ast-primary-header-bar .main-header-menu .menu-link {
  color: var(--sm-mint, #D8EDE6) !important;
  border-bottom-color: rgba(216, 237, 230, .14) !important;
}

/* Footer */
.site-footer,
.ast-small-footer,
.site-below-footer-wrap,
.site-primary-footer-wrap {
  background-color: var(--sm-pine-deep, #0A2C27) !important;
}
.site-footer,
.site-footer p,
.ast-small-footer .ast-footer-copyright {
  color: #B9D6CC !important;
  font-size: .875rem;
}
.site-footer a { color: var(--sm-mint, #D8EDE6) !important; }
.site-footer a:hover { color: #fff !important; }

/* ============================================================
   Hero search extras, brand wordmark, states grid
   ============================================================ */

.sm-search__field--select { flex: 0 1 240px; }
.sm-search__field select {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--sm-ink, #1A2C27);
  cursor: pointer;
  appearance: none;
}
.sm-search__field select:focus { outline: none; }

.sm-geo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .875rem;
  color: var(--sm-ink-mute, #63716C);
  margin: 15px 0 0;
}

/* Brand wordmark accent */
.sm-brand__accent { color: var(--sm-amber, #F5B544); }

/* Browse by state */
.sm-state {
  display: block;
  background: #fff;
  border: 1px solid var(--sm-sand, #E6E1D8);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
}
.sm-state:hover {
  border-color: var(--sm-jade, #2E8B7A);
  text-decoration: none;
}
.sm-state__name {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--sm-ink, #1A2C27);
  margin-bottom: 3px;
}
.sm-state:hover .sm-state__name { color: var(--sm-jade-ink, #237063); }
.sm-state__meta {
  display: block;
  font-size: .875rem;
  color: var(--sm-ink-mute, #63716C);
}

.sm-grid--5 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

@media (max-width: 640px) {
  .sm-search__field--select { flex: 1 1 auto; }
}

.listing-with-sidebar__listing .directorist-archive-items{
      grid-template-columns: auto;
}

.ast-single-post .entry-content a, .ast-comment-content a:not(.ast-comment-edit-reply-wrap a) {
    text-decoration: none;
}

/* ============================================================
   Comparison page sections
   ============================================================ */
 
.sm-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--sm-sand, #E6E1D8);
  border-radius: 12px;
  background: #fff;
}
.sm-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.sm-table th,
.sm-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--sm-sand, #E6E1D8);
  color: var(--sm-ink-soft, #4A5C56);
}
.sm-table thead th {
  background: var(--sm-sand-soft, #F1EFE8);
  color: var(--sm-ink, #1A2C27);
  font-weight: 600;
  white-space: nowrap;
}
.sm-table tbody th {
  color: var(--sm-ink, #1A2C27);
  font-weight: 600;
}
.sm-table tbody tr:last-child th,
.sm-table tbody tr:last-child td { border-bottom: 0; }
.sm-table-note {
  font-size: .875rem;
  color: var(--sm-ink-mute, #63716C);
  margin: 10px 0 0;
}
 
.sm-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.sm-pill--home { background: var(--sm-mint, #D8EDE6); color: var(--sm-pine, #0F3D36); }
.sm-pill--pro { background: var(--sm-amber-bg, #FAEEDA); color: var(--sm-amber-ink, #633806); }
 
.sm-choose {
  border-radius: 12px;
  padding: 24px 26px;
  border: 1px solid var(--sm-sand, #E6E1D8);
  background: #fff;
}
.sm-choose h3 { margin: 0 0 12px; font-size: 1.0625rem; }
.sm-choose ul { margin: 0; padding-left: 1.2em; }
.sm-choose li { margin-bottom: .5em; font-size: .9375rem; }
.sm-choose li:last-child { margin-bottom: 0; }
.sm-choose--home {
  background: var(--sm-mint, #D8EDE6);
  border-color: var(--sm-mint-line, #9FD3C4);
}
.sm-choose--home h3 { color: var(--sm-pine, #0F3D36); }
.sm-choose--home li { color: var(--sm-mint-ink, #14554A); }
 
.sm-callout {
  background: var(--sm-sand-soft, #F1EFE8);
  border-left: 3px solid var(--sm-jade, #2E8B7A);
  padding: 20px 24px;
  margin: 0 0 1.5em;
}
.sm-callout p { margin: 0; }
.sm-callout strong { color: var(--sm-pine, #0F3D36); }
 
.sm-faq { border-top: 1px solid var(--sm-sand, #E6E1D8); }
.sm-faq details { border-bottom: 1px solid var(--sm-sand, #E6E1D8); }
.sm-faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  color: var(--sm-ink, #1A2C27);
  font-size: 1.0625rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.sm-faq summary::-webkit-details-marker { display: none; }
.sm-faq summary::after { content: "+"; color: var(--sm-jade-ink, #237063); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.sm-faq details[open] summary::after { content: "\2013"; }
.sm-faq details p { padding-bottom: 10px; margin: 0; }

.ast-primary-header-bar .main-header-menu .sm-nav-cta > .menu-link{
  max-height: 55px;
}


/* ============================================================
   Two-button layouts
   ============================================================ */
 
.sm-opt__actions,
.sm-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.sm-band__actions { justify-content: center; }
 
/* Outlined button for dark backgrounds */
.sm-btn--ghost-light {
  border-color: rgba(216, 237, 230, .55);
  color: var(--sm-mint, #D8EDE6);
  background: transparent;
}
.sm-btn--ghost-light:hover {
  background: rgba(216, 237, 230, .12);
  border-color: var(--sm-mint, #D8EDE6);
  color: #fff;
}
 
/* Secondary button inside the mint at-home card */
.sm-opt--home .sm-btn--ghost {
  border-color: var(--sm-pine, #0F3D36);
  color: var(--sm-pine, #0F3D36);
}
.sm-opt--home .sm-btn--ghost:hover {
  background: var(--sm-pine, #0F3D36);
  color: #fff;
}
 
@media (max-width: 480px) {
  .sm-opt__actions .sm-btn,
  .sm-band__actions .sm-btn { width: 100%; }
}
 
/* ------------------------------------------------------------
   Optional: restore coral primary buttons.
   Astra's global button colour currently wins on specificity.
   Delete this block if the gold is intentional.
   ------------------------------------------------------------ */
.sm-hero .sm-btn--primary,
.sm-section .sm-btn--primary,
.sm-band .sm-btn--primary,
.sm-opt .sm-btn--primary,
a.sm-btn--primary {
  background-color: var(--sm-coral, #F2704F) !important;
  border-color: var(--sm-coral, #F2704F) !important;
  color: var(--sm-coral-ink, #3D1608) !important;
}
.sm-hero .sm-btn--primary:hover,
.sm-section .sm-btn--primary:hover,
.sm-band .sm-btn--primary:hover,
.sm-opt .sm-btn--primary:hover,
a.sm-btn--primary:hover {
  background-color: var(--sm-coral-hover, #F5825F) !important;
  border-color: var(--sm-coral-hover, #F5825F) !important;
  color: var(--sm-coral-ink, #3D1608) !important;
}


.sm-guide-card {
  background: var(--sm-white, #FFFFFF);
  border: 1px solid var(--sm-sand, #E6E1D8);
  border-radius: 12px;
  padding: 28px 30px;
  height: 100%;
}
.sm-guide-card h3 {
  margin: 0 0 10px;
  font-size: 1.1875rem;
  color: var(--sm-ink, #1A2C27);
}
.sm-guide-card p {
  color: var(--sm-ink-soft, #4A5C56);
  margin: 0 0 20px;
}
.sm-guide-card .sm-btn { margin: 0; }

/* Elementor's column gap collapses to zero on some themes' resets —
   this guarantees breathing room between the two cards. */
.elementor-section .elementor-column + .elementor-column {
  padding-left: 10px;
}


/* --- value props row --- */
.sm-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sm-prop {
  display: flex;
  gap: 14px;
  background: var(--sm-white, #FFFFFF);
  border: 1px solid var(--sm-sand, #E6E1D8);
  border-radius: 12px;
  padding: 20px 22px;
}
.sm-prop__icon {
  flex-shrink: 0;
  color: var(--sm-jade, #2E8B7A);
  margin-top: 2px;
}
.sm-prop h4 {
  margin: 0 0 5px;
  font-size: 1rem;
  color: var(--sm-ink, #1A2C27);
}
.sm-prop p {
  margin: 0;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--sm-ink-soft, #4A5C56);
}
 
/* --- richer guide cards --- */
.sm-guide-card {
  background: var(--sm-white, #FFFFFF);
  border: 1px solid var(--sm-sand, #E6E1D8);
  border-radius: 12px;
  padding: 30px 32px;
  height: 100%;
}
.sm-guide-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sm-mint, #D8EDE6);
  color: var(--sm-pine, #0F3D36);
  margin-bottom: 16px;
}
.sm-guide-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--sm-ink, #1A2C27);
}
.sm-guide-card > p {
  color: var(--sm-ink-soft, #4A5C56);
  margin: 0 0 16px;
}
.sm-guide-card__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  border-top: 1px solid var(--sm-sand, #E6E1D8);
}
.sm-guide-card__list li {
  position: relative;
  padding: 9px 0 9px 24px;
  font-size: .9375rem;
  color: var(--sm-ink-soft, #4A5C56);
  border-bottom: 1px solid var(--sm-sand, #E6E1D8);
}
.sm-guide-card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sm-jade, #2E8B7A);
}
.sm-guide-card .sm-btn { margin: 0; }
 
@media (max-width: 880px) {
  .sm-props { grid-template-columns: 1fr; }
}

/* ============================================================
   v1.12.0 — append to the END of your existing style.css
   ============================================================ */

/* ============================================================
   Search filters and pagination
   ============================================================ */

.sm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 24px;
}
.sm-filter {
  display: inline-block;
  border: 1px solid var(--sm-sand, #E6E1D8);
  background: var(--sm-white, #FFFFFF);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--sm-ink-soft, #4A5C56);
  text-decoration: none;
  line-height: 1.4;
}
.sm-filter:hover {
  border-color: var(--sm-jade, #2E8B7A);
  text-decoration: none;
  color: var(--sm-ink, #1A2C27);
}
.sm-filter--on {
  background: var(--sm-pine, #0F3D36);
  border-color: var(--sm-pine, #0F3D36);
  color: #fff;
}
.sm-filter--on:hover { color: #fff; }
.sm-filter--clear {
  border-style: dashed;
  color: var(--sm-ink-mute, #63716C);
}
.sm-filter-count {
  margin-left: auto;
  font-size: .875rem;
  color: var(--sm-ink-mute, #63716C);
}

.sm-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 32px;
}
.sm-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--sm-sand, #E6E1D8);
  background: var(--sm-white, #FFFFFF);
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--sm-ink-soft, #4A5C56);
  text-decoration: none;
}
.sm-page:hover {
  border-color: var(--sm-jade, #2E8B7A);
  text-decoration: none;
}
.sm-page--on {
  background: var(--sm-pine, #0F3D36);
  border-color: var(--sm-pine, #0F3D36);
  color: #fff;
}

@media (max-width: 640px) {
  .sm-filter-count { margin-left: 0; width: 100%; }
}
/* ============================================================
   v1.14.0 — location page fixes
   ============================================================ */

/* Breadcrumb was unstyled — no .sm-crumbs rule existed */
.sm-crumbs {
  padding: 16px 0 0;
  font-size: var(--sm-fs-sm, .875rem);
}
.sm-crumbs a {
  color: var(--sm-jade-ink, #237063);
  text-decoration: none;
}
.sm-crumbs a:hover { text-decoration: underline; }
.sm-crumbs span { color: var(--sm-ink-mute, #63716C); }

/* Stat chips were stretching into tall ovals when Astra applied
   flex to the list. Pin them to their content height and keep the
   pill radius proportional to a short chip, not a stretched one. */
.sm-place .sm-chips { align-items: center; }
.sm-place .sm-chips li {
  align-self: center;
  height: auto;
  line-height: 1.4;
  white-space: nowrap;
}

/* The CTA band on the location template wraps its content in
   .ast-container; keep that centered within the band. */
.sm-band .ast-container {
  margin-left: auto;
  margin-right: auto;
}
.sm-band .ast-container p {
  margin-left: auto;
  margin-right: auto;
}

/* Browse-by-city links should read as tappable pills, not plain chips */
.sm-place .sm-section--white .sm-chips li {
  background: var(--sm-white, #fff);
  transition: border-color .15s ease;
}
.sm-place .sm-section--white .sm-chips li:hover {
  border-color: var(--sm-jade, #2E8B7A);
}
.sm-place .sm-section--white .sm-chips li a {
  color: var(--sm-ink, #1A2C27);
  text-decoration: none;
  font-weight: 500;
}
.directorist-search-contents {
    padding: 0;
}
.sm-search-dir .directorist-container-fluid {
    padding: 0;
}
@media (min-width: 1200px) {
    .home.ast-plain-container.ast-no-sidebar #primary {
        margin-top: 20px;
        margin-bottom: 0;
    }
}


/* ============================================================
   Site footer ([sm_footer])
   ============================================================ */
.sm-footer {
  background: var(--sm-pine-deep, #0A2C27);
  color: rgba(255,255,255,.82);
  margin-top: 64px;
  padding: 60px clamp(20px, 5vw, 64px) 28px;
  font-size: var(--sm-fs-sm, .9375rem);
}
.sm-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.sm-footer a:hover { color: #fff; text-decoration: underline; }

.sm-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.sm-footer__brand {
  font-family: var(--sm-display, "Fraunces", Georgia, serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  display: inline-block;
  margin-bottom: 14px;
}
.sm-footer__brand:hover { text-decoration: none; }
.sm-footer .sm-brand__accent { color: var(--sm-coral, #C9A86A); }

.sm-footer__tagline {
  margin: 0 0 18px;
  max-width: 44ch;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
}
.sm-footer__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.sm-footer__email svg { color: var(--sm-coral, #C9A86A); flex: 0 0 auto; }

.sm-footer__heading {
  font-family: var(--sm-body, sans-serif);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 0 0 16px;
}
.sm-footer__col ul { list-style: none; margin: 0; padding: 0; }
.sm-footer__col li { margin-bottom: 11px; line-height: 1.4; }
.sm-footer__more a { color: var(--sm-coral, #C9A86A); font-weight: 600; }
.sm-footer__more a:hover { color: var(--sm-coral-lift, #F5825F); text-decoration: none; }

.sm-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  max-width: 1200px;
  margin: 24px auto 0;
}
.sm-footer__copy { margin: 0; color: rgba(255,255,255,.6); font-size: var(--sm-fs-micro, .8125rem); }
.sm-footer__legal { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.sm-footer__legal li { font-size: var(--sm-fs-micro, .8125rem); }

.sm-footer__disclosure {
  max-width: 1200px;
  margin: 20px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: var(--sm-fs-micro, .8125rem);
  line-height: 1.6;
  color: rgba(255,255,255,.5);
}

@media (max-width: 900px) {
  .sm-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sm-footer__brandcol { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .sm-footer { padding: 44px 20px 24px; }
  .sm-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .sm-footer__bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .sm-hero__banner {
    background-position: 69% 86%;
  }
  .ast-plain-container.ast-no-sidebar #primary {
      padding-top: 20px;
  }
  .ast-page-builder-template .site-content > .ast-container{
    padding-left: 20px;
    padding-right: 20px;
  }
}

.page-id-527 header.entry-header, .page-id-532 header.entry-header, .page-id-530 header.entry-header {
    display: none;
}
