:root {
  --bg: #f4f1ea;
  --bg-deep: #ebe6db;
  --ink: #171714;
  --muted: #5d5a52;
  --card: #fffdf8;
  --line: color-mix(in srgb, var(--ink) 10%, transparent);
  --accent: #0f766e;
  --accent-ink: #fffdf8;
  --wa: #128c7e;
  --shadow: 0 18px 50px color-mix(in srgb, var(--ink) 10%, transparent);
  --radius: 1.35rem;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", "Times New Roman", serif;
}

body[data-theme="dentists"] {
  --bg: #eef3f6;
  --bg-deep: #e2ebf0;
  --ink: #12202a;
  --muted: #4d5e6a;
  --card: #f7fbfc;
}

body[data-theme="aesthetics"] {
  --bg: #f7efe8;
  --bg-deep: #f0e2d8;
  --ink: #2a171c;
  --muted: #6d4e56;
  --card: #fffaf7;
}

body[data-theme="carpentry"] {
  --bg: #f3eadc;
  --bg-deep: #e8d8c0;
  --ink: #2a1c12;
  --muted: #6b5340;
  --card: #fff8ee;
}

body[data-theme="physio"] {
  --bg: #eaf3ef;
  --bg-deep: #dceae3;
  --ink: #13241f;
  --muted: #4b635b;
  --card: #f6fbf8;
}

body[data-theme="auto"] {
  --bg: #eef1f6;
  --bg-deep: #e1e6ef;
  --ink: #12151c;
  --muted: #535864;
  --card: #f7f8fb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(920px 460px at 92% -8%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 58%),
    radial-gradient(640px 340px at -8% 8%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 52%),
    var(--bg);
  line-height: 1.55;
}

img,
svg,
iframe {
  display: block;
}

iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--card);
  border-radius: 999px;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(1120px, calc(100% - 1.5rem));
  margin-inline: auto;
}

.banner {
  margin: 0;
  padding: 0.7rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 16%, var(--card));
  border-bottom: 1px solid var(--line);
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.top-inner,
.brand,
.actions,
.service,
.foot-inner,
.cta-inner,
.nav,
.proof-card,
.place-meta {
  display: flex;
}

.top-inner {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  flex: none;
}

.brand-text {
  display: grid;
  min-width: 0;
}

.brand-text strong,
.foot strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand-text span,
.foot p,
.legal,
.eyebrow,
.reviews,
.place-full {
  color: var(--muted);
}

.brand-text span,
.legal,
.nav a:not(.btn) {
  font-size: 0.78rem;
}

.nav {
  align-items: center;
  gap: 0.9rem;
}

.nav a:not(.btn) {
  display: none;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero {
  padding: 3.25rem 0 2.25rem;
}

.hero-inner {
  max-width: 44rem;
  display: grid;
  gap: 1rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
.score {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.04em;
  line-height: 1.08;
  font-weight: 650;
}

h1 {
  font-size: clamp(2.35rem, 9vw, 4.4rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede,
.cta p,
.foot p,
.place-short,
.place-full,
.reviews {
  margin: 0;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 36rem;
}

.actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-compact {
  min-height: 2.5rem;
  padding-inline: 0.95rem;
}

.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--wa) 28%, transparent);
}

.btn-ghost {
  background: color-mix(in srgb, var(--card) 70%, transparent);
  border: 1px solid var(--line);
}

.proof,
.services,
.place {
  padding: 0.5rem 0 2.75rem;
}

.section-head {
  margin-bottom: 1.25rem;
  display: grid;
  gap: 0.35rem;
}

.proof-card,
.service,
.place-meta,
.map-frame,
.cta-inner {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.proof-card {
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.3rem;
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.proof-score {
  display: grid;
  justify-items: end;
  gap: 0.15rem;
  min-width: 8rem;
}

.score {
  font-size: 3rem;
}

.stars {
  margin: 0;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--ink) 28%, transparent);
}

.star.is-on {
  color: var(--accent);
}

.reviews {
  font-size: 0.9rem;
  font-weight: 600;
}

.service-list,
.hours {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-list {
  display: grid;
  gap: 0.75rem;
}

.service {
  align-items: flex-start;
  gap: 0.85rem;
  min-height: 6.25rem;
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.service-index {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.service-name {
  font-weight: 600;
}

.place-grid {
  display: grid;
  gap: 1rem;
}

.map-frame {
  min-height: 16.5rem;
  border-radius: calc(var(--radius) + 0.15rem);
  overflow: hidden;
}

.place-meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.3rem 1.25rem 1.4rem;
  border-radius: var(--radius);
}

.place-short {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hours-block {
  width: 100%;
  padding-top: 0.35rem;
}

.hours {
  display: grid;
  gap: 0.45rem;
}

.hours li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
  white-space: pre-wrap;
}

.cta {
  padding-bottom: 4.5rem;
}

.cta-inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: calc(var(--radius) + 0.35rem);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #111), var(--accent));
  color: var(--accent-ink);
  border-color: transparent;
}

.cta p {
  max-width: 32rem;
  color: color-mix(in srgb, var(--accent-ink) 84%, transparent);
}

.cta .btn-wa {
  background: #fff;
  color: #0f3d38;
  box-shadow: none;
}

.foot {
  padding: 2rem 0 calc(6rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-deep) 70%, transparent);
}

.foot-inner {
  flex-direction: column;
  gap: 1rem;
}

address {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-style: normal;
}

address a {
  font-weight: 600;
}

.fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--wa) 40%, transparent);
}

@media (min-width: 720px) {
  .wrap {
    width: min(1120px, calc(100% - 3rem));
  }

  .nav a:not(.btn) {
    display: inline;
  }

  .hero {
    padding: 5.75rem 0 3.25rem;
  }

  .proof-card {
    align-items: center;
    padding: 1.6rem 1.8rem;
  }

  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .place-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
    align-items: stretch;
  }

  .map-frame {
    min-height: 22rem;
  }

  .cta-inner,
  .foot-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .foot-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 2rem;
  }

  .foot {
    padding-bottom: 2.5rem;
  }

  .fab {
    display: none;
  }
}
