:root {
  --ink: #173f3a;
  --ink-dark: #0d2d2a;
  --cream: #f6f0e4;
  --paper: #fffcf6;
  --coral: #ed765f;
  --gold: #e6b94a;
  --blue: #74a9c4;
  --muted: #677a77;
  --line: #ded8cb;
  --shadow: 0 16px 45px rgba(21, 57, 53, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Heebo", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.topbar {
  height: 82px;
  padding: 0 clamp(22px, 6vw, 96px);
  display: flex;
  align-items: center;
  gap: 46px;
  border-bottom: 1px solid rgba(23, 63, 58, .12);
  background: rgba(255, 252, 246, .94);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; font: 1.45rem "Secular One", sans-serif; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 42% 55%;
  color: var(--paper);
  background: var(--coral);
  transform: rotate(-5deg);
}
.brand-mark + span { letter-spacing: -.04em; }
.topbar nav { display: flex; gap: 30px; font-weight: 600; }
.topbar nav a:hover { color: var(--coral); }
.favorites-link {
  margin-inline-start: auto;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.favorites-link > span:first-child { font-size: 1.45rem; }
.count {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  border-radius: 20px;
  font-size: .74rem;
}

.hero {
  min-height: 535px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 50px;
  padding: 70px clamp(24px, 8vw, 130px);
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 20%, rgba(231, 185, 74, .18), transparent 20%),
    var(--cream);
}
.hero-copy { max-width: 700px; position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--coral);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .05em;
}
.eyebrow span { width: 24px; height: 2px; background: currentColor; }
h1, h2 { font-family: "Secular One", sans-serif; letter-spacing: -.045em; line-height: 1.05; }
h1 { margin: 0; max-width: 620px; color: var(--ink-dark); font-size: clamp(3rem, 5.7vw, 5.8rem); font-weight: 400; }
h1 em { color: var(--coral); font-style: normal; position: relative; }
h1 em::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 3%;
  width: 92%;
  height: 11px;
  border-top: 3px solid var(--coral);
  border-radius: 50%;
  transform: rotate(-2deg);
}
.hero-text { max-width: 585px; margin: 25px 0; color: #526b68; font-size: 1.15rem; line-height: 1.7; }
.search-box {
  max-width: 680px;
  height: 72px;
  padding: 8px 10px 8px 15px;
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid rgba(23, 63, 58, .15);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.search-icon { padding: 0 10px; font-size: 2rem; transform: rotate(-18deg); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 1rem; }
.search-box input::placeholder { color: #91a09e; }
.search-box button {
  align-self: stretch;
  padding: 0 30px;
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-weight: 700;
}
.search-box button:hover { background: var(--coral); }
.quick-searches { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: var(--muted); font-size: .84rem; }
.quick-searches button { border: 0; border-bottom: 1px solid #aeb9b6; background: transparent; color: var(--ink); padding: 1px 3px; }
.quick-searches button:hover { color: var(--coral); border-color: var(--coral); }

.hero-art { height: 400px; position: relative; }
.sun { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--gold); opacity: .8; top: 35px; right: 50%; transform: translateX(50%); }
.phone {
  position: absolute;
  width: 258px;
  height: 440px;
  top: 0;
  right: 50%;
  padding: 64px 18px 20px;
  border: 8px solid var(--ink-dark);
  border-radius: 38px;
  background: #fffdf7;
  transform: translateX(50%) rotate(-5deg);
  box-shadow: 25px 30px 0 rgba(23, 63, 58, .12);
}
.speaker { position: absolute; top: 21px; right: 50%; width: 55px; height: 6px; border-radius: 9px; background: var(--ink-dark); transform: translateX(50%); }
.mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 10px;
  margin-bottom: 12px;
  border: 1px solid #ded8cb;
  background: white;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(23, 63, 58, .07);
}
.mini-card > div { display: flex; flex-direction: column; }
.mini-card b { font-size: .82rem; }
.mini-card small { color: var(--muted); font-size: .65rem; }
.mini-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--coral); font-weight: 800; }
.mini-icon.blue { background: var(--blue); }
.mini-icon.yellow { background: var(--gold); }
.mini-arrow { margin-inline-start: auto; }
.spark { position: absolute; color: var(--coral); font-size: 2.3rem; }
.spark-one { top: 22px; right: 7%; }
.spark-two { bottom: 24px; left: 8%; color: var(--ink); }

.categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 0 clamp(24px, 6vw, 100px);
  border-bottom: 1px solid var(--line);
  background: white;
}
.category {
  min-height: 145px;
  padding: 23px 15px;
  border: 0;
  border-inline-start: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
}
.category:last-child { border-inline-end: 1px solid var(--line); }
.category:hover, .category.active { background: var(--cream); }
.category.active::after { content: ""; position: absolute; bottom: 0; width: 45px; height: 4px; border-radius: 4px 4px 0 0; background: var(--coral); }
.category > span:first-child:not(.category-icon) { font-weight: 800; font-size: 1.1rem; }
.category b { font-size: .94rem; }
.category small { color: var(--muted); font-size: .75rem; }
.category-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; font-weight: 800; }
.coral { background: var(--coral); }
.teal { background: var(--ink); }
.gold { background: var(--gold); }
.blue { background: var(--blue); }
.red { background: #c94f49; }

.directory { padding: 75px clamp(24px, 8vw, 130px) 110px; }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.section-heading h2, .about h2 { margin: 0 0 10px; font-size: clamp(2.1rem, 3.8vw, 3.5rem); font-weight: 400; }
.section-heading p:not(.eyebrow) { margin: 0; color: var(--muted); }
.city-filter { min-width: 220px; }
.city-filter label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.city-filter select { width: 100%; padding: 12px 15px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: white; outline: none; }
.notice { margin: 30px 0 18px; padding: 13px 16px; display: flex; gap: 12px; align-items: center; background: #f9eed2; border: 1px solid #ead39a; border-radius: 8px; color: #664f19; font-size: .86rem; }
.notice span { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font: 700 italic 1rem serif; }
.notice p { margin: 0; }
.results-meta { min-height: 36px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .88rem; }
.results-meta button { border: 0; background: transparent; color: var(--coral); font-weight: 700; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-top { display: flex; gap: 14px; }
.card-symbol { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 50%; color: white; font-weight: 800; }
.card-heading { min-width: 0; }
.card-heading h3 { margin: 0; font-size: 1.08rem; line-height: 1.25; }
.card-heading p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }
.favorite-btn { margin-inline-start: auto; align-self: start; border: 0; background: transparent; color: #879693; font-size: 1.5rem; line-height: 1; }
.favorite-btn.active { color: var(--coral); }
.service-description { min-height: 43px; margin: 18px 0 16px; color: #526b68; font-size: .88rem; }
.phone-number { display: block; direction: ltr; text-align: right; margin: 0 0 15px; color: var(--ink-dark); font: 400 1.75rem "Secular One", sans-serif; letter-spacing: .02em; }
.phone-number:has(+ .phone-type) { margin-bottom: 0; }
.phone-type { display: block; min-height: 20px; margin-bottom: 10px; color: var(--muted); }
.phone-placeholder {
  min-height: 42px;
  margin: 0 0 15px;
  display: flex;
  align-items: center;
  color: #879693;
  font-size: .82rem;
}
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.card-actions:has(.action-wide) { grid-template-columns: 1fr; }
.action { padding: 10px; border: 1px solid var(--ink); border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .82rem; font-weight: 700; }
.action.primary { color: white; background: var(--ink); }
.action:hover { border-color: var(--coral); background: var(--coral); color: white; }
.card-footer { padding-top: 14px; margin-top: 15px; border-top: 1px solid #eee9df; display: flex; justify-content: space-between; gap: 10px; color: #889693; font-size: .68rem; }
.source-link { text-decoration: underline; }
.source-link:hover { color: var(--coral); }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; }
.empty-state > span { font-size: 3rem; }
.empty-state h3 { margin: 8px 0 0; font-size: 1.4rem; }
.empty-state p { color: var(--muted); }
.empty-state button { border: 0; border-bottom: 1px solid; background: transparent; color: var(--coral); font-weight: 700; }

.about {
  padding: 75px clamp(24px, 8vw, 130px);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  background: var(--ink);
  color: white;
}
.eyebrow.light { color: var(--gold); }
.about ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.about li { display: flex; gap: 14px; }
.about li > span { color: var(--gold); font: 1rem "Secular One"; }
.about li b { font-size: 1.05rem; }
.about li p { color: #b8c7c4; font-size: .84rem; line-height: 1.6; }
footer { padding: 35px clamp(24px, 8vw, 130px); display: flex; align-items: center; gap: 25px; color: var(--muted); background: var(--paper); }
.footer-brand { color: var(--ink); }
footer p { margin: 0; }
footer small { margin-inline-start: auto; max-width: 360px; text-align: left; }
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  z-index: 50;
  padding: 11px 20px;
  border-radius: 30px;
  background: var(--ink-dark);
  color: white;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: .25s;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.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; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 45px; }
  .hero-art { display: none; }
  .categories { grid-template-columns: repeat(3, 1fr); }
  .category:nth-child(3) { border-inline-end: 1px solid var(--line); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .topbar { height: 68px; gap: 15px; padding: 0 18px; }
  .topbar nav { display: none; }
  .favorites-link { font-size: 0; gap: 4px; }
  .favorites-link > span:first-child { font-size: 1.4rem; }
  .brand { font-size: 1.2rem; }
  .brand-mark { width: 35px; height: 35px; }
  .hero { min-height: auto; padding: 50px 20px 45px; }
  h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-text { font-size: 1rem; }
  .search-box { height: 62px; padding-left: 7px; }
  .search-box button { padding: 0 17px; }
  .categories { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .category { min-height: 125px; border-bottom: 1px solid var(--line); }
  .directory { padding: 55px 20px 75px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .city-filter { min-width: 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .about { padding: 55px 20px; gap: 35px; }
  .about ol { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
  footer small { margin: 0; text-align: right; }
}
