/* =========================================================
   Senior Living Alliance — Find a Community directory
   Brand: navy #003B5C (primary), cyan #00BCD4 (accent),
   cyan light #E0F7FA (tints), text #16202B, Inter.

   The layout rules below predate the rebrand and reference the
   old --teal / --lime variable names; those names are kept as
   aliases (teal = navy primary, lime = cyan accent) so every
   builder's inline CSS keeps working.
   ========================================================= */

:root {
  /* Lilisity (family directory on lilisity.com). The token names are shared
     with the SLA palette below, so components style once for both brands. */
  /* Text-bearing teals are darkened to pass WCAG AA (4.5:1) on every
     background the site uses; the bright brand teal (#00afbb) and lime live
     in the logo and in decoration only. Older readers are the audience. */
  --navy: #00666e;
  --navy-dark: #004f55;
  --navy-light: #006e76;
  --cyan: #00747c;
  --cyan-dark: #006e76;
  --cyan-light: #e0f5f6;
  --teal: #00747c;
  --teal-dark: #006e76;
  --teal-darker: #005a61;
  --brand-teal: #00afbb;
  --lime: #b0d133;
  --lime-dark: #8fb32a;
  --text: #25292e;
  --text-muted: #5d636b;
  --bg: #ffffff;
  --bg-alt: #f3f5f5;
  --bg-alt-2: #e6eaea;
  --border: #dfe3e4;
  --overlay-teal: rgba(0, 102, 110, 0.78);
  --radius: 6px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --max-width: 1280px;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Senior Living Alliance (Excellence Awards pages on seniorlivingalliance.com). */
body.brand-sla {
  --navy: #003B5C;
  --navy-dark: #002B44;
  --navy-light: #00507A;
  --cyan: #00BCD4;
  --cyan-dark: #00A5BB;
  --cyan-light: #E0F7FA;
  --teal: var(--navy);
  --teal-dark: var(--navy-light);
  --teal-darker: var(--navy-dark);
  --lime: var(--cyan);
  --lime-dark: var(--cyan-dark);
  --text: #16202B;
  --text-muted: #5b6672;
  --bg-alt: #f4f7f9;
  --bg-alt-2: #e6ebef;
  --border: #dde3e8;
  --overlay-teal: rgba(0, 59, 92, 0.78);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--teal-darker); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.6em;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ===== HEADER (teal top bar) ===== */
.header-top {
  background: var(--teal);
  color: #fff;
  font-size: 0.85rem;
}
.header-top .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 36px;
}
.header-top ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 26px;
}
.header-top a {
  color: #fff;
  text-transform: none;
}
.header-top a:hover { color: rgba(255,255,255,0.85); text-decoration: underline; }

/* ===== HEADER (main) ===== */
.header-main {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 20;
}
.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
  min-height: 74px;
}
.header-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex-shrink: 0; text-decoration: none; }
.header-brand img { height: 46px; width: auto; }
/* Lilisity is endorsed by SLA: the line sits under the wordmark. */
.header-endorsement { font-size: 0.72rem; line-height: 1.2; color: var(--text-muted); letter-spacing: 0.01em; }
@media (max-width: 560px) { .header-endorsement { display: none; } }
.header-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav a {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
}
.header-nav a:hover { color: var(--navy); border-bottom-color: var(--cyan); }
.header-nav li.active a { color: var(--navy); border-bottom-color: var(--cyan); }
.header-nav .nav-phone a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  border-bottom: 0;
  white-space: nowrap;
}
.header-nav .nav-phone a:hover { background: var(--navy-dark); color: #fff; }
.header-nav .nav-phone i { color: var(--cyan); }
.header-nav .nav-phone-label { font-weight: 400; opacity: 0.9; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
  padding: 6px 10px;
}

@media (max-width: 1080px) {
  .header-nav .nav-phone-label { display: none; }
  .header-nav ul { gap: 20px; }
}
@media (max-width: 900px) {
  .header-top { display: none; }
  .menu-toggle { display: block; }
  .header-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: none;
  }
  .header-nav.open { display: block; }
  .header-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .header-nav li {
    border-bottom: 1px solid var(--border);
  }
  .header-nav a {
    display: block;
    padding: 14px 20px;
    border-bottom: 0;
  }
  .header-nav .nav-phone { padding: 12px 20px; border-bottom: 0; }
  .header-nav .nav-phone a { display: inline-flex; }
  .header-nav .nav-phone-label { display: inline; }
}

/* ===== HERO (home) ===== */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: #333 center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.25));
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  max-width: 760px;
  width: 100%;
}
.hero-inner h1 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.hero-inner p {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.hero-search {
  display: flex;
  background: #fff;
  border-radius: 40px;
  padding: 6px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.hero-search input[type="text"] {
  flex: 1;
  border: 0;
  padding: 12px 22px;
  font-size: 1rem;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  color: var(--text);
}
.hero-search button {
  background: var(--lime);
  color: var(--navy-dark);
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.hero-search button:hover { background: var(--lime-dark); }

/* ===== Generic section ===== */
section.block { padding: 60px 0; }
.section-subtitle {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 40px;
  color: var(--navy);
}
.section-eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

/* ===== Geographic areas ===== */
.bg-light { background: var(--bg-alt); }

.geo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.geo-tile {
  position: relative;
  aspect-ratio: 3/2;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.geo-tile::before {
  content: "";
  position: absolute;
  inset: 22% 22%;
  background: var(--overlay-teal);
  transition: all 0.3s ease;
}
.geo-tile:hover::before {
  inset: 10% 10%;
}
.geo-tile:hover { transform: translateY(-3px); }
.geo-tile-name {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1.05rem;
  color: #fff;
  text-align: center;
  padding: 10px 14px;
}
.geo-tile-name::after {
  content: "";
  display: block;
  width: 30px;
  height: 10px;
  margin: 8px auto 0;
  border-bottom: 2px solid #fff;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

@media (max-width: 760px) {
  .geo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .geo-grid { grid-template-columns: 1fr; }
}

/* ===== Amenities ===== */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.amenity-tile {
  background: #fff;
  border: 1px solid #eaeaea;
  padding: 28px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.amenity-tile:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--text);
}
.amenity-tile img {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  object-fit: contain;
}
.amenity-tile-name {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.25;
}
@media (max-width: 760px) {
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Testimonial banner ===== */
.testimonial-banner {
  background: var(--teal);
  color: #fff;
  padding: 46px 0;
  position: relative;
  overflow: hidden;
}
.testimonial-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><g fill='none' stroke='rgba(255,255,255,0.12)' stroke-width='1'><path d='M0 40 Q40 0 80 40 T160 40'/><path d='M0 90 Q50 60 100 90 T200 90'/><path d='M0 150 Q40 120 80 150 T160 150'/></g></svg>");
  opacity: 0.5;
}
.testimonial-banner .container {
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}
.testimonial-avatar {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-body h3 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: 6px;
}
.testimonial-body p { margin-bottom: 8px; color: #fff; }
.testimonial-author {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  font-family: var(--font-display);
}
@media (max-width: 600px) {
  .testimonial-banner .container { flex-direction: column; text-align: center; }
}

/* ===== Care options ===== */
.care-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.care-card {
  text-decoration: none;
  color: var(--teal);
  display: block;
}
.care-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.care-card:hover img {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.care-card-name {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--teal);
}
@media (max-width: 760px) { .care-grid { grid-template-columns: 1fr; } }

.intro-text {
  max-width: 720px;
  margin: 0 auto 10px;
  text-align: center;
  color: var(--text-muted);
}

/* ===== Featured communities ===== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.community-card {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #333 center/cover no-repeat;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.community-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 45%, transparent 70%);
}
.community-card-inner {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  z-index: 1;
}
.community-card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.25;
}
.community-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #fff;
}
.stars { color: #f4c430; letter-spacing: 1px; margin-right: 6px; }
.reviews { color: rgba(255,255,255,0.85); font-size: 0.8rem; }
@media (max-width: 760px) { .community-grid { grid-template-columns: 1fr; } }

/* ===== Blog teasers ===== */
.blog-header {
  text-align: center;
  margin-bottom: 30px;
}
.blog-header p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 16px;
}
.view-all {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 3px;
}
.view-all:hover { color: var(--teal-darker); border-bottom-color: var(--teal-darker); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.blog-card {
  text-decoration: none;
  color: var(--teal);
  display: block;
}
.blog-card img {
  width: 100%;
  aspect-ratio: 5/3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover img {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.blog-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--teal);
  line-height: 1.35;
}
@media (max-width: 760px) { .blog-grid { grid-template-columns: 1fr; } }

/* ===== Interest form block ===== */
.interest-block {
  position: relative;
  background: #333 center/cover no-repeat;
  color: #fff;
  padding: 70px 0;
}
.interest-block::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 59, 92, 0.88);
}
.interest-block .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: center;
}
.interest-text h2 { color: #fff; margin-bottom: 14px; }
.interest-text p { color: rgba(255,255,255,0.95); font-size: 1.05rem; }
.interest-form-wrap { background: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,0.18); overflow: hidden; color: var(--text); }
.interest-form-title {
  background: var(--teal-dark);
  color: #fff;
  padding: 14px 18px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  font-family: var(--font-display);
  text-align: center;
}
.interest-form {
  padding: 22px;
}
.interest-form input,
.interest-form select,
.interest-form textarea {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
}
.interest-form textarea { resize: vertical; min-height: 80px; }
.interest-form .btn-submit {
  width: 100%;
  background: var(--teal);
  color: #fff;
  border: 0;
  padding: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}
.interest-form .btn-submit:hover { opacity: 0.9; }

@media (max-width: 860px) {
  .interest-block .container { grid-template-columns: 1fr; }
  .interest-form-wrap { max-width: 500px; margin: 0 auto; }
}

/* ===== Generic content pages ===== */
.page-header {
  position: relative;
  background: #333 center/cover no-repeat;
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 59, 92, 0.6);
}
.page-header h1 {
  position: relative;
  color: #fff;
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  z-index: 1;
  max-width: 1000px;
  padding: 0 20px;
  text-wrap: balance;
}

.prose {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 20px;
  font-size: 1.05rem;
  line-height: 1.75;
}
.prose h2 {
  margin-top: 2em;
  color: var(--teal-darker);
}
.prose h3 {
  margin-top: 1.6em;
  color: var(--text);
}
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  border-left: 4px solid var(--teal);
  padding: 8px 20px;
  margin: 1.4em 0;
  color: var(--text-muted);
  font-style: italic;
  background: var(--bg-alt);
}
.prose img { margin: 20px auto; border-radius: var(--radius); }
.prose .table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.prose th { text-align: left; font-size: 0.78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); padding: 8px 10px; border-bottom: 2px solid var(--teal); }
.prose td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose ul.checklist { list-style: none; padding-left: 0; }
.prose ul.checklist li { position: relative; padding-left: 1.9em; }
.prose ul.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.05em; height: 1.05em; border: 2px solid var(--teal); border-radius: 4px; }
.article-meta { font-size: .9rem; color: var(--text-muted); margin-bottom: 1.4em; }
.article-download { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--bg-alt); border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 2em; }
.article-download p { margin: 0; line-height: 1.5; }
.article-download a.btn-download { background: var(--teal); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: var(--radius); white-space: nowrap; }
.article-download a.btn-download:hover { background: var(--teal-darker); color: #fff; }
.article-sources { font-size: .88rem; line-height: 1.55; overflow-wrap: anywhere; }
.prose a { color: var(--teal); text-decoration: underline; }
.prose a:hover { color: var(--teal-darker); }

/* ===== Partners page ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 20px;
}
.partner-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.partner-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.partner-card h3 { color: var(--teal-darker); margin-bottom: 10px; font-size: 1.25rem; }
.partner-card p { color: var(--text); font-size: 0.95rem; margin-bottom: 10px; }
.partner-card .partner-link {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}
@media (max-width: 760px) { .partners-grid { grid-template-columns: 1fr; } }

/* ===== Contact form ===== */
.contact-form-wrap {
  max-width: 620px;
  margin: 40px auto;
  padding: 0 20px;
}
.contact-form {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: var(--radius);
  padding: 28px;
}
.contact-form label {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn-submit {
  background: var(--teal);
  color: #fff;
  border: 0;
  padding: 14px 40px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.contact-form .btn-submit:hover { opacity: 0.9; }

/* ===== Property search page ===== */
.search-page {
  padding: 40px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.search-controls {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 220px 150px;
  gap: 12px;
}
@media (max-width: 760px) { .search-controls { grid-template-columns: 1fr; } }
.search-controls input,
.search-controls select {
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
}
.search-controls button {
  background: var(--teal);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  cursor: pointer;
}
.search-controls button:hover { background: var(--teal-darker); }

/* ===== FOOTER ===== */
.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  position: relative;
}
.footer .container {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 30px;
  position: relative;
  z-index: 1;
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-endorsement { color: var(--navy); font-weight: 600; font-size: 0.92rem; margin: 0 0 10px; }
.footer-disclosure { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; max-width: 460px; }
.footer h5 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer a { color: var(--navy); }
.footer a:hover { color: var(--cyan-dark); }
.footer ul {
  list-style: none;
  margin: 0; padding: 0;
}
.footer ul li { margin-bottom: 8px; font-size: 0.95rem; }

.footer-bottom {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 18px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--navy); }
.footer-b2b a { font-weight: 500; }

@media (max-width: 860px) {
  .footer .container { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer .container { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}

/* ===== Lead forms (leads.js) ===== */
.hp-wrap {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-success {
  background: var(--cyan-light);
  border: 1px solid var(--cyan);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 1rem;
  line-height: 1.5;
}
.form-success i { color: var(--cyan-dark); margin-right: 6px; }
.form-error {
  margin: 10px 0 0;
  padding: 10px 14px;
  background: #fff4f4;
  border: 1px solid #f0a0a0;
  color: #8b1a1a;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.form-error a { color: #8b1a1a; text-decoration: underline; }

/* ===== Verified-review cards (home, awards) ===== */
.verified-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .verified-grid { grid-template-columns: 1fr; } }
.verified-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.verified-card .stars { color: #f4c430; letter-spacing: 2px; }
.verified-card blockquote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
}
.verified-card .verified-who { font-size: 0.85rem; color: var(--text-muted); }
.verified-card .verified-who a { font-weight: 600; color: var(--navy); }
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1f7a3d;
  background: #eef7ee;
  padding: 2px 9px;
  border-radius: 999px;
}
.trust-strip {
  background: var(--navy);
  color: #fff;
  padding: 40px 0;
}
.trust-strip h2 { color: #fff; margin-bottom: 8px; }
.trust-strip p { color: rgba(255,255,255,0.85); max-width: 720px; margin: 0 auto 16px; text-align: center; }
.trust-strip .container { text-align: center; }
.trust-strip a.view-all { color: #fff; border-bottom-color: var(--lime); }
.btn-navy {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-cyan {
  display: inline-block;
  background: var(--cyan);
  color: #fff;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.btn-cyan:hover { background: var(--cyan-dark); color: #fff; }
.hub-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hub-links a {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.92rem;
  color: var(--navy);
  background: #fff;
}
.hub-links a:hover { border-color: var(--cyan); background: var(--cyan-light); }

/* utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Listing call button: stands where a community phone number would be; it
   reaches a Lilisity advisor (community numbers are never shown). */
.advisor-call-line {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 10px 0 6px; padding: 12px 18px; border-radius: 10px;
  background: var(--navy); color: #fff; text-decoration: none;
  box-shadow: var(--shadow); max-width: 100%;
}
.advisor-call-line:hover { background: var(--navy-dark); color: #fff; }
.advisor-call-line .fa-phone { font-size: 1.1rem; }
.advisor-call-line .acl-text { display: flex; flex-direction: column; line-height: 1.25; }
.advisor-call-line .acl-label { font-size: 0.82rem; opacity: 0.9; }
.advisor-call-line strong { font-size: 1.2rem; letter-spacing: 0.01em; }
.advisor-call-line .acl-note { font-size: 0.75rem; background: rgba(255,255,255,0.16); padding: 3px 8px; border-radius: 999px; }
@media (max-width: 560px) { .advisor-call-line { display: flex; } }

/* Optional-field hint on lead forms. */
label .opt, .opt { font-weight: 400; color: var(--text-muted); font-size: 0.85em; }

/* Short "local pricing" form on pages without a lead form of their own. */
.lead-band { background: var(--cyan-light); border-top: 1px solid var(--border); padding: 36px 0; }
.lead-band-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; }
.lead-band h2 { margin: 0 0 8px; font-size: 1.45rem; color: var(--navy); }
.lead-band p { margin: 0 0 10px; color: var(--text); max-width: 46ch; }
.lead-band-phone { font-weight: 600; color: var(--navy); text-decoration: none; }
.lead-band-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-band-form input { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; background: #fff; }
.lead-band-form input[name="message"] { grid-column: 1 / -1; }
.lead-band-form button { grid-column: 1 / -1; padding: 13px 16px; border: 0; border-radius: var(--radius); background: var(--navy); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.lead-band-form button:hover { background: var(--navy-dark); }
@media (max-width: 780px) {
  .lead-band-inner { grid-template-columns: 1fr; }
  .lead-band-form { grid-template-columns: 1fr; }
}

/* Sticky "Free Advisor Help" bar (phones): on every Lilisity page. */
.advisor-float {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--teal);
  padding: 12px 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}
.advisor-float .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.advisor-float span { color: #fff; font-weight: 600; font-size: 0.92rem; }
.advisor-float span i { margin-right: 6px; }
.advisor-float-btn {
  background: #fff;
  color: var(--teal-darker);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
}
@media (max-width: 700px) {
  .advisor-float { display: block; }
  body.brand-lilisity { padding-bottom: 72px; }
}

.hero-call { display: inline-block; margin-top: 16px; color: #fff; text-decoration: none; font-size: 1rem; background: rgba(0,0,0,0.28); padding: 8px 16px; border-radius: 999px; }
.hero-call:hover { background: rgba(0,0,0,0.4); color: #fff; }
