/*
Theme Name: Lone Star Muslim
Theme URI: https://lonestarmuslim.com
Author: Lone Star Muslim
Description: The Trusted Muslim Business Directory for Dallas-Fort Worth. Texas flag palette on white, built to pair with the Directorist directory plugin.
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: lonestarmuslim
*/

/* ==========================================================================
   Lone Star Muslim - design system
   Modern directory UI. Neutral, professional, non-denominational styling:
   Texas flag palette (#002868 blue, #BF0A30 red) on white.
   ========================================================================== */

:root {
  --ink: #0E1B33;
  --ink-2: #33415E;
  --muted: #67748C;
  --line: #DBE2EC;
  --line-2: #EFF3F8;
  --canvas: #FFFFFF;
  --surface: #FFFFFF;

  --brand: #002868;
  --brand-dark: #001B47;
  --brand-tint: #E7EDF6;
  --brand-ink: #001B47;

  --accent: #BF0A30;
  --star: #BF0A30;

  --ok: #002868;
  --ok-tint: #E7EDF6;
  --info: #3A5C93;
  --info-tint: #EDF1F7;
  --plum: #BF0A30;
  --plum-tint: #FBE9ED;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --sh-1: 0 1px 2px rgba(15, 28, 46, .06), 0 1px 3px rgba(15, 28, 46, .04);
  --sh-2: 0 4px 6px rgba(15, 28, 46, .05), 0 10px 24px rgba(15, 28, 46, .08);
  --sh-3: 0 12px 20px rgba(15, 28, 46, .08), 0 24px 48px rgba(15, 28, 46, .10);

  --wrap: 1240px;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.021em; line-height: 1.18; }
h1 { font-size: clamp(30px, 4.2vw, 46px); }
h2 { font-size: clamp(22px, 2.6vw, 31px); }
h3 { font-size: 18px; }
p  { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- header - */

.site-head {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 30px; height: 82px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo:hover { text-decoration: none; }
.logo-symbol { width: 58px; height: 58px; flex: none; display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 40, 104, .20)); }
.logo-symbol img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { display: flex; flex-direction: column; font-size: 20px; font-weight: 900;
  text-transform: uppercase; letter-spacing: -.035em; line-height: .9; }
.logo-name span { color: var(--brand); }
.logo-name strong { color: var(--accent); font: inherit; }
.logo-rule { width: 2px; height: 34px; background: var(--brand); margin-left: 8px; }
.logo-sub {
  font-size: 8px; line-height: 1.45; font-weight: 800; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .14em;
}

/* Give the primary header brand more presence without enlarging the footer mark. */
.site-head .wrap { height: 102px; }
.site-head .logo-symbol { width: 78px; height: 78px; }
.site-head .logo-name { font-size: 26px; }
.site-head .logo-rule { height: 46px; }
.site-head .logo-sub { font-size: 9px; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  color: var(--ink-2); font-size: 14.5px; font-weight: 600;
  padding: 9px 13px; border-radius: var(--r-sm); text-decoration: none;
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--line-2); color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 9px 12px; font: inherit; font-weight: 600;
  font-size: 14px; color: var(--ink-2); cursor: pointer;
}

/* ----------------------------------------------------------------- button - */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 650; line-height: 1;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s, box-shadow .16s, transform .12s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(0, 40, 104, .26); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 5px 14px rgba(0, 40, 104, .32); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); background: #fff; }
.btn-onDark { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .34); }
.btn-onDark:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .6); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ------------------------------------------------------------------- hero - */

.hero {
  background:
    radial-gradient(900px 480px at 92% -8%, rgba(45, 90, 160, .48) 0%, transparent 62%),
    radial-gradient(720px 420px at 8% -8%, rgba(191, 10, 48, .20) 0%, transparent 62%),
    linear-gradient(145deg, #001B47 0%, #002868 55%, #0A3D86 100%);
  color: #fff;
  padding: 76px 0 84px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(1000px 460px at 78% 8%, #000 0%, transparent 72%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero .eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: #F2B8C2; margin-bottom: 18px;
}
.hero h1 { color: #fff; max-width: 17ch; font-size: clamp(44px, 6vw, 72px); letter-spacing: -.048em; }
.hero .tagline {
  font-size: clamp(18px, 2.2vw, 23px); font-weight: 650;
  color: #E9EFF7; margin-top: 16px; max-width: 34ch;
}
.hero .lede {
  font-size: 17px; color: rgba(255, 255, 255, .84);
  margin-top: 18px; max-width: 60ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 44px;
  padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats b { font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { font-size: 12.5px; color: rgba(255, 255, 255, .7); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; }

/* page header for interior pages */
.page-head {
  background:
    radial-gradient(640px 260px at 92% 0%, rgba(45, 90, 160, .40) 0%, transparent 68%),
    linear-gradient(145deg, #001B47 0%, #002868 100%);
  color: #fff; padding: 46px 0 52px;
}
.page-head h1 { color: #fff; }
.page-head .lede { color: rgba(255, 255, 255, .85); font-size: 17px; margin-top: 14px; max-width: 68ch; }
.page-head .count-line {
  font-size: 13px; font-weight: 650; color: #F2B8C2; margin-top: 18px;
  text-transform: uppercase; letter-spacing: .07em;
}
.verification-note {
  max-width: 94ch; margin-top: 12px;
  color: rgba(255, 255, 255, .7); font-size: 11.5px; line-height: 1.45;
}

.crumbs { font-size: 13px; color: rgba(255, 255, 255, .68); margin-bottom: 16px; }
.crumbs a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin: 0 7px; opacity: .5; }

/* ----------------------------------------------------------------- search - */

.searchbar {
  display: flex; align-items: stretch; gap: 0;
  background: #fff; border-radius: var(--r-xl); padding: 7px;
  box-shadow: var(--sh-3); max-width: 780px; margin-top: 32px;
}
.searchbar .field { flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 6px 16px; min-width: 0; }
.searchbar .field + .field { border-left: 1px solid var(--line); }
.searchbar label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--muted);
}
.searchbar input, .searchbar select {
  font: inherit; font-size: 15.5px; font-weight: 550; color: var(--ink);
  border: 0; background: none; padding: 2px 0; width: 100%; min-width: 0;
}
.searchbar input:focus, .searchbar select:focus { outline: none; }
.searchbar .btn { margin: 0; border-radius: 999px; padding: 0 26px; align-self: stretch; }

/* ---------------------------------------------------------------- filters - */

.filters {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 82px; z-index: 80;
}
.filters .wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 15px; padding-bottom: 15px; }
.filters input[type="search"], .filters select {
  font: inherit; font-size: 14.5px; color: var(--ink);
  padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; min-width: 0;
}
.filters input[type="search"] { flex: 1 1 260px; }
.filters select { flex: 0 1 auto; }
.filters input:focus, .filters select:focus { border-color: var(--brand); outline: none; }
.filters .toggle {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: var(--ink-2); padding: 10px 14px; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; background: #fff;
}
.filters .toggle input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
.filters .reset {
  font: inherit; font-size: 14px; font-weight: 650; color: var(--brand);
  background: none; border: 0; cursor: pointer; padding: 10px 6px;
}
.filters .reset:hover { text-decoration: underline; }
.result-count {
  font-size: 13.5px; font-weight: 650; color: var(--muted); margin-left: auto;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ cards - */

.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 62ch; }
.section-head .more { font-size: 14.5px; font-weight: 650; white-space: nowrap; }

.grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  padding: 34px 0 10px;
}

.card {
  position: relative;            /* positioning context for .card-badge */
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--sh-1);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover { box-shadow: var(--sh-2); transform: translateY(-3px); border-color: #C9D5E2; }

/* 16:9 media panel - the big change from the old 76px thumbnail */
.card-media {
  position: relative; aspect-ratio: 16 / 9; background: var(--line-2); overflow: hidden;
}
.card-media-link { display: block; color: inherit; text-decoration: none; }
.card-media-link:hover { text-decoration: none; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.card-media.is-category img { filter: saturate(.88) contrast(.96); }
.media-context {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  padding: 5px 9px; border-radius: 999px; background: rgba(0, 40, 104, .88);
  color: #fff; font-size: 10px; font-weight: 750; letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.card:hover .card-media img { transform: scale(1.045); }

.card-media.is-mono {
  display: grid; place-items: center;
  background: linear-gradient(150deg, #0A3D86 0%, #002868 58%, #001B47 100%);
}
.card-media.is-mono span {
  font-size: 46px; font-weight: 800; letter-spacing: -.03em;
  color: rgba(255, 255, 255, .93);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .22);
}
.card-media.is-mono small {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2;
  color: rgba(255, 255, 255, .78); font-size: 10px; font-weight: 750;
  letter-spacing: .08em; text-transform: uppercase; text-align: center;
}
.card-media.is-mono::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.card-badge {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .035em;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: var(--ink);
  box-shadow: 0 2px 8px rgba(15, 28, 46, .18);
  backdrop-filter: blur(4px);
}
.card-badge i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.st-mo i { background: var(--plum); }
.st-mp i { background: var(--info); }
.st-is i { background: var(--ok); }
.st-hs i { background: var(--accent); }
.st-ds i { background: var(--muted); }

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.card-body h3 { font-size: 18.5px; letter-spacing: -.024em; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--brand); text-decoration: none; }

.rating { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); }
.rating b { color: var(--ink); font-size: 14.5px; font-weight: 750; }
.stars { display: inline-flex; gap: 1px; color: var(--star); font-size: 13px; letter-spacing: .5px; }

.card-meta {
  font-size: 13.5px; color: var(--muted); font-weight: 600;
  display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center;
}
.card-meta .sep { opacity: .45; }
.card-addr { font-size: 13.5px; color: var(--ink-2); }
.card-note {
  font-size: 14px; color: var(--ink-2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
}
.card-foot a { font-size: 13.5px; font-weight: 650; }
.provenance {
  width: 100%; font-size: 11.5px; color: var(--muted); line-height: 1.5;
  display: flex; align-items: flex-start; gap: 6px;
}
.provenance svg { flex: none; margin-top: 2px; opacity: .65; }

.empty {
  display: none; text-align: center; padding: 70px 20px; color: var(--muted);
  background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.empty b { display: block; color: var(--ink); font-size: 19px; margin-bottom: 6px; }

.lsm-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; }
.lsm-pagination .page-numbers {
  min-width: 42px; min-height: 42px; padding: 9px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.lsm-pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --------------------------------------------------------- category tiles - */

.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; box-shadow: var(--sh-1);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.tile:hover { text-decoration: none; box-shadow: var(--sh-2); transform: translateY(-2px); border-color: var(--brand); }
.tile .ico {
  width: 42px; height: 42px; border-radius: 12px; background: var(--brand-tint);
  display: grid; place-items: center; margin-bottom: 8px; color: var(--brand);
}
.tile:hover .ico { background: var(--brand); color: #fff; }
.tile .ico svg { width: 21px; height: 21px; }
.tile b { font-size: 16px; color: var(--ink); letter-spacing: -.02em; }
.tile span { font-size: 13px; color: var(--muted); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 17px; font-size: 14.5px; font-weight: 650; color: var(--ink);
  text-decoration: none; transition: border-color .15s, background .15s, transform .12s;
}
.chip:hover { border-color: var(--brand); background: var(--brand-tint); text-decoration: none; transform: translateY(-1px); }
.chip em { font-style: normal; font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ------------------------------------------------------------------ prose - */

.prose { color: var(--ink-2); }
.prose h2 { color: var(--ink); margin-bottom: 12px; }
.prose h3 { color: var(--ink); margin: 26px 0 8px; font-size: 17px; }
.prose p { margin-bottom: 14px; max-width: 74ch; }
.prose ul { margin: 0 0 16px; padding-left: 20px; max-width: 74ch; }
.prose li { margin-bottom: 6px; }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 30px; box-shadow: var(--sh-1);
}

.legend { display: grid; gap: 14px 30px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.legend div { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.legend i { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 6px; }
.legend b { color: var(--ink); display: block; font-size: 13.5px; }

/* ------------------------------------------------------------------- form - */

.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field-l { display: flex; flex-direction: column; gap: 6px; }
.field-l span { font-size: 13px; font-weight: 700; color: var(--ink); }
.field-l input, .field-l select, .field-l textarea {
  font: inherit; font-size: 15px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink);
}
.field-l input:focus, .field-l select:focus, .field-l textarea:focus { border-color: var(--brand); outline: none; }
.field-full { grid-column: 1 / -1; }
.form-ok {
  display: none; background: var(--ok-tint); border: 1px solid #C6D3E4;
  border-radius: var(--r); padding: 18px 20px; color: var(--brand-ink); font-weight: 600;
}
.form-ok.show { display: block; }

/* ---------------------------------------------------------- profiles - */

.profile-head {
  background: linear-gradient(145deg, #001B47 0%, #002868 58%, #0A3D86 100%);
  color: #fff; padding: 40px 0 54px;
}
.profile-grid { display: grid; grid-template-columns: minmax(280px, .82fr) 1.18fr; gap: 44px; align-items: center; }
.profile-visual { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden;
  background: rgba(255, 255, 255, .09); box-shadow: var(--sh-3); }
.profile-visual img { width: 100%; height: 100%; object-fit: cover; }
.profile-image-note {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 999px;
  background: rgba(0, 40, 104, .9); color: #fff; font-size: 11px; font-weight: 750;
  letter-spacing: .04em;
}
.profile-mono { width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; font-size: 76px;
  font-weight: 850; background: linear-gradient(145deg, #002868, #0A3D86); color: #fff; }
.profile-mono small { font-size: 11px; font-weight: 750; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255, 255, 255, .74); }
.profile-copy h1 { color: #fff; margin-top: 14px; font-size: clamp(34px, 5vw, 58px); max-width: 18ch; }
.profile-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px;
  border-radius: 999px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22);
  font-size: 12px; font-weight: 750; }
.profile-status i { width: 8px; height: 8px; border-radius: 50%; }
.profile-type { color: #F2B8C2; margin-top: 14px; font-weight: 700; }
.profile-address, .profile-note { color: rgba(255, 255, 255, .82); margin-top: 10px; max-width: 62ch; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.profile-actions .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .38); }
.profile-actions .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.profile-content { display: grid; grid-template-columns: 1.45fr .75fr; gap: 24px; align-items: start; }
.small-disclosure { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.map-panel .section-head { margin-bottom: 18px; }
.map-embed { height: 390px; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--line-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ------------------------------------------------------ newcomer guide - */

.newcomer-head .eyebrow { color: #F2B8C2; font-size: 12px; font-weight: 750;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.guide-card { min-height: 178px; padding: 24px; border-radius: var(--r-lg); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--sh-1); display: flex; flex-direction: column;
  color: var(--ink); text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--brand);
  text-decoration: none; }
.guide-card b { font-size: 20px; letter-spacing: -.025em; }
.guide-card span { color: var(--muted); font-size: 14px; margin-top: 8px; }
.guide-card em { color: var(--brand); font-style: normal; font-size: 12px; font-weight: 750;
  text-transform: uppercase; letter-spacing: .07em; margin-top: auto; padding-top: 18px; }
.guide-note { margin-top: 28px; }
.guide-disclosure { text-align: center; margin-top: 18px; }

/* ----------------------------------------------------------------- footer - */

.site-foot { background: #001B47; color: rgba(255, 255, 255, .74); padding: 56px 0 30px; margin-top: 60px; }
.foot-grid { display: grid; gap: 34px; grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.site-foot h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 14px; }
.site-foot a { color: rgba(255, 255, 255, .74); font-size: 14.5px; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-about p { font-size: 14.5px; max-width: 42ch; margin-top: 12px; }
.foot-logo .logo-name span { color: #fff; }
.foot-logo .logo-name strong { color: #F04A64; }
.foot-logo .logo-rule { background: rgba(255, 255, 255, .45); }
.foot-logo .logo-sub { color: rgba(255, 255, 255, .55); }
.foot-base {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .13);
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  font-size: 13px; color: rgba(255, 255, 255, .55);
}

/* ------------------------------------------------------------ responsive - */

@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1040px) {
  .site-head .wrap { height: 82px; gap: 14px; }
  .logo-symbol { width: 44px; height: 44px; }
  .logo-name { font-size: 17px; }
  .logo-rule { height: 29px; margin-left: 4px; }
  .logo-sub { font-size: 7px; }
  .site-head .logo-symbol { width: 58px; height: 58px; }
  .site-head .logo-name { font-size: 21px; }
  .site-head .logo-rule { height: 36px; }
  .site-head .logo-sub { font-size: 8px; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 82px;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px;
    box-shadow: var(--sh-2); max-height: 74vh; overflow: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 16px; }
  .site-nav .btn { margin-top: 8px; }
}
@media (max-width: 860px) {
  .filters { position: static; }
  .hero { padding: 54px 0 60px; }
  .searchbar { flex-direction: column; gap: 4px; border-radius: var(--r-lg); }
  .searchbar .field + .field { border-left: 0; border-top: 1px solid var(--line); }
  .searchbar .btn { margin-top: 6px; padding: 15px; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .result-count { margin-left: 0; width: 100%; }
  .profile-grid, .profile-content { grid-template-columns: 1fr; }
  .profile-grid { gap: 26px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-stats { gap: 14px 26px; }
  .panel { padding: 22px 18px; }
  .logo-rule, .logo-sub { display: none; }
}

/* ==================================================================== v2 —
   image-forward refresh: hero collage, photo category cards, photo city cards
   ========================================================================== */

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.hero-collage { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 152px; gap: 14px; }
.hero-collage .hc {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .32);
  border: 1px solid rgba(255, 255, 255, .14);
}
.hero-collage .hc img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage .hc::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 24, 47, 0) 55%, rgba(16, 24, 47, .62) 100%);
}
.hero-collage .hc span {
  position: absolute; left: 12px; bottom: 10px; z-index: 2;
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.hero-collage .hc:nth-child(1) { grid-row: span 2; }
.hero-collage .hc:nth-child(4) { grid-column: span 1; }

/* photo category cards */
.cat-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.cat-card {
  position: relative; height: 185px; border-radius: var(--r-lg); overflow: hidden;
  display: flex; align-items: flex-end; text-decoration: none;
  box-shadow: var(--sh-1); isolation: isolate;
  transition: box-shadow .18s, transform .18s;
  background: linear-gradient(150deg, #0A3D86 0%, #001B47 100%);
}
.cat-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--sh-3); }
.cat-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .3, 1); z-index: -2;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(185deg, rgba(11, 34, 48, .04) 32%, rgba(9, 30, 42, .88) 100%);
}
.cat-card .cl { padding: 16px 18px; color: #fff; display: flex; flex-direction: column; gap: 3px; }
.cat-card b { font-size: 17.5px; font-weight: 750; letter-spacing: -.02em; line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.cat-card span { font-size: 12.5px; font-weight: 650; color: rgba(255, 255, 255, .88); }
.cat-card .go {
  position: absolute; right: 14px; bottom: 14px; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(255, 255, 255, .16); backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, .35);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 700;
  transition: background .16s, transform .16s;
}
.cat-card:hover .go { background: var(--brand); transform: translateX(2px); }

/* photo city cards */
.city-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); }
.city-card {
  position: relative; height: 135px; border-radius: var(--r); overflow: hidden;
  display: flex; align-items: flex-end; text-decoration: none;
  box-shadow: var(--sh-1); isolation: isolate;
  transition: box-shadow .18s, transform .18s;
  background: linear-gradient(150deg, #123157 0%, #001B47 100%);
}
.city-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--sh-2); }
.city-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .3, 1); z-index: -2;
}
.city-card:hover img { transform: scale(1.07); }
.city-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(185deg, rgba(11, 34, 48, .05) 34%, rgba(9, 30, 42, .87) 100%);
}
.city-card .cl { padding: 13px 15px; color: #fff; }
.city-card b { font-size: 16px; font-weight: 750; letter-spacing: -.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45); display: block; }
.city-card span { font-size: 12px; font-weight: 650; color: rgba(255, 255, 255, .85); }

/* trust steps */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--sh-1); }
.step .n {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand-tint);
  color: var(--brand); font-weight: 800; display: grid; place-items: center;
  margin-bottom: 14px; font-size: 15px;
}
.step b { display: block; font-size: 16px; margin-bottom: 6px; letter-spacing: -.015em; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.55; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-collage { display: none; }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-card { height: 150px; }
  .cat-card b { font-size: 14.5px; }
  .city-grid { grid-template-columns: 1fr 1fr; }
}

@media print {
  .site-head, .filters, .hero-cta, .site-foot, .nav-toggle { display: none !important; }
  .card { break-inside: avoid; box-shadow: none; }
  body { background: #fff; }
}

/* ===================================================== TEXAS POLISH ===== */
/* Flag stripe under the sticky header: hoist blue, then white, then red. */
.site-head { border-bottom: 0; }
.site-head::after {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg,
    #002868 0 34%, #DBE2EC 34% 35%, #FFFFFF 35% 66%, #DBE2EC 66% 67%, #BF0A30 67% 100%);
}
/* Red "List Your Business" CTA so the flag's red shows in the chrome */
.site-nav .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(191,10,48,.28); }
.site-nav .btn-primary:hover { background: #9A0826; color: #fff; box-shadow: 0 5px 14px rgba(191,10,48,.32); }
/* Crisper focus + selection in brand blue */
::selection { background: #002868; color: #fff; }
/* Star ratings in flag red already via --star; make review text steadier */
.rating b { color: var(--ink); }
/* Sharper card hover line in blue */
.card:hover { border-color: #9DB4D6; }

/* mono star watermark - photo-less tiles read as branded, not broken */
.card-media.is-mono::before {
  content: ""; position: absolute; right: -26px; bottom: -30px;
  width: 150px; height: 150px; opacity: .14; pointer-events: none;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 4l11.5 32.4 34.5 1.1-27.4 21 10.1 33.1L50 71.4 21.3 91.6l10.1-33.1L4 37.5l34.5-1.1z" fill="white"/></svg>') no-repeat center / contain;
}
.card-media.is-mono span { z-index: 1; }

/* ================================================= FEATURED LISTINGS ===== */
.featured-section {
  position: relative;
  background: linear-gradient(180deg, rgba(0, 40, 104, .07), rgba(0, 40, 104, 0) 240px), #fff;
  border-block: 1px solid var(--line);
}
.featured-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--brand) 0 74%, var(--accent) 74% 100%);
}
.featured-grid { padding-top: 26px; }
.featured-home-grid {
  gap: 28px;
  padding: 30px 0 14px;
}
.featured-home-grid .card-media { aspect-ratio: 5 / 3; }
.featured-home-grid .card-body {
  padding: 21px 23px 23px;
}
.featured-home-grid .card-body h3 { font-size: 20px; }
.featured-section-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.card.is-featured {
  isolation: isolate;
  border-color: #9DB4D6;
  background: linear-gradient(180deg, #fff 0, #F7F9FC 100%);
  box-shadow: 0 2px 0 rgba(0, 40, 104, .08), var(--sh-2);
}
.card.is-featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, var(--brand) 0 76%, var(--accent) 76% 100%);
}
.card.is-featured:hover { border-color: var(--brand); box-shadow: var(--sh-3); }
.card.is-featured:focus-within {
  border-color: var(--brand);
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  box-shadow: var(--sh-3);
}
.featured-label {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.featured-label small {
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, .45);
  color: rgba(255, 255, 255, .9);
  font-size: 9px;
  font-weight: 750;
}
.featured-key {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 12px;
  margin: 22px 0 -8px;
  padding: 12px 15px;
  border: 1px solid #C7D4E6;
  border-left: 5px solid var(--accent);
  border-radius: var(--r-sm);
  background: #F7F9FC;
}
.featured-key b { color: var(--brand-dark); }
.featured-key span { color: var(--muted); font-size: 13px; }

.feature-offer-section { padding-top: 54px; padding-bottom: 18px; }
.feature-offer,
.featured-offer-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #001B47 0%, #002868 68%, #0A3D86 100%);
  color: #fff;
  box-shadow: var(--sh-3);
}
.feature-offer::before,
.featured-offer-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #fff 0 64%, var(--accent) 64% 100%);
}
.feature-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 34px 38px;
}
.feature-offer h2,
.featured-offer-panel h2 { color: #fff; }
.feature-offer p:not(.eyebrow),
.featured-offer-panel p:not(.eyebrow) {
  max-width: 70ch;
  margin-top: 10px;
  color: rgba(255, 255, 255, .82);
}
.feature-offer .eyebrow,
.featured-offer-panel .eyebrow { color: #F2B8C2; }
.feature-offer-action { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.feature-offer-action .btn,
.featured-offer-panel .btn { background: var(--accent); color: #fff; }
.feature-offer-action small,
.featured-offer-panel small {
  max-width: 34ch;
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  line-height: 1.45;
}
.featured-offer-panel {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
  padding: 30px 32px;
}
.featured-offer-panel .btn { justify-self: start; }

.profile-featured {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.profile-featured small {
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, .45);
  color: rgba(255, 255, 255, .88);
  font-size: 9px;
  font-weight: 700;
}
.featured-profile-note {
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  background: var(--plum-tint);
}
.feature-text-link {
  display: block;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .feature-offer { grid-template-columns: 1fr; padding: 28px 24px; }
  .feature-offer-action { width: 100%; }
  .feature-offer-action .btn { width: 100%; }
}
@media (max-width: 560px) {
  .featured-grid { padding-top: 18px; gap: 18px; }
  .featured-offer-panel { padding: 26px 22px; }
  .featured-label { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .card.is-featured:hover,
  .card.is-featured:hover .card-media img { transform: none; }
}


/* ================================================== WordPress adaptations = */
.wp-site-blocks, #page { background: var(--canvas); }
.screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
img.custom-logo { width: 58px; height: 58px; }

/* ================================================ Directorist re-skinning = */
/* Cards */
.directorist-listing-single__wrap,
.directorist-listing-card-grid {
  border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important;
  box-shadow: var(--sh-1) !important; overflow: hidden; background: var(--surface) !important;
  transition: box-shadow .18s, transform .18s;
}
.directorist-listing-single__wrap:hover { box-shadow: var(--sh-2) !important; transform: translateY(-3px); }
.directorist-listing-single__image img { aspect-ratio: 16/9; object-fit: cover; }
.directorist-listing-title a { color: var(--ink) !important; font-weight: 750 !important; letter-spacing: -.02em; }
.directorist-listing-title a:hover { color: var(--brand) !important; }

/* Buttons */
.directorist-btn, .directorist-btn-primary, .directorist-btn-dark,
button[type=submit].directorist-btn {
  background: var(--brand) !important; color: #fff !important; border-radius: 999px !important;
  border: 0 !important; font-weight: 650 !important;
}
.directorist-btn:hover, .directorist-btn-primary:hover { background: var(--brand-dark) !important; }
.directorist-btn-outline { border: 1.5px solid var(--line) !important; color: var(--ink) !important; background: #fff !important; border-radius: 999px !important; }

/* Badges - featured in Texas red */
.directorist-badge-featured, .directorist-info-item-badge-featured, .directorist-featured-badge {
  background: var(--accent) !important; color: #fff !important; border-radius: 999px !important; font-weight: 700 !important;
}
.directorist-badge-new, .directorist-badge-popular { background: var(--brand) !important; color:#fff !important; border-radius:999px !important; }

/* Search + filter bars */
.directorist-search-form, .directorist-listing-filters {
  background: #fff !important; border: 1px solid var(--line) !important;
  border-radius: var(--r-lg) !important; box-shadow: var(--sh-1) !important;
}
.directorist-search-form .directorist-btn { background: var(--brand) !important; }
.directorist-form-group input, .directorist-form-group select, .directorist-form-group textarea {
  border: 1.5px solid var(--line) !important; border-radius: var(--r-sm) !important; font-size: 15px !important;
}
.directorist-form-group input:focus, .directorist-form-group select:focus { border-color: var(--brand) !important; box-shadow: none !important; }

/* Links, prices, meta */
.directorist-listing-card-location a, .directorist-listing-card-category a { color: var(--muted) !important; font-weight: 600; }
.directorist-listing-price { color: var(--brand) !important; font-weight: 750; }

/* Category/location archive headers reuse page-head look */
.directorist-archive-header, .directorist-type-nav { background: transparent; }

/* Single listing page */
.directorist-single-listing-header { border-bottom: 4px solid; border-image: linear-gradient(90deg,#002868 0 34%,#DBE2EC 34% 35%,#FFFFFF 35% 66%,#DBE2EC 66% 67%,#BF0A30 67% 100%) 1; }

/* Dashboard + forms stay on-palette */
.directorist-dashboard .directorist-tab__nav__active { color: var(--brand) !important; border-color: var(--brand) !important; }
a.directorist-links, .directorist-viewas .active { color: var(--brand) !important; }
