@font-face {
  font-family: "DM Sans Fallback";
  src: local("Arial");
  size-adjust: 97.5%;
  ascent-override: 95%;
  descent-override: 28%;
  line-gap-override: 0%;
}

:root {
  --background: #f7f4ef;
  --foreground: #142323;
  --muted: #5d6a66;
  --line: #d9ded6;
  --surface: #ffffff;
  --surface-strong: #edf7f1;
  --teal: #0e6f68;
  --teal-dark: #064c49;
  --coral: #a94635;
  --gold: #d49f36;
  --blue: #315f90;
  --font-sans: "DM Sans", "DM Sans Fallback", "Segoe UI", Helvetica, Arial, sans-serif;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  margin: 0;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  min-height: 100vh;
}

.hero {
  background:
    linear-gradient(110deg, rgba(14, 111, 104, 0.94), rgba(6, 76, 73, 0.82)),
    url("https://images.unsplash.com/photo-1606811971618-4486d14f3f99?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
  color: white;
  min-height: 610px;
  display: flex;
  align-items: flex-end;
  padding: 54px clamp(18px, 4vw, 72px) 36px;
}

.hero-content {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.eyebrow {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd2c8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.45rem, 7vw, 5.6rem);
  line-height: 0.98;
  max-width: 980px;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.08;
  margin-bottom: 0;
}

h3 {
  font-size: 1.16rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.14rem;
  line-height: 1.55;
  max-width: 710px;
  margin-bottom: 26px;
}

.search-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(4, 44, 42, 0.22);
  color: var(--foreground);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1.6fr) minmax(160px, 0.7fr) minmax(160px, 0.8fr);
  max-width: 1000px;
  padding: 12px;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select {
  background: #f8fbf8;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--foreground);
  min-height: 48px;
  outline: none;
  padding: 0 13px;
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 111, 104, 0.16);
}

.hero-stats {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 18px;
}

.hero-stats strong {
  font-size: 1.4rem;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.76);
  margin-right: 12px;
}

.content-grid,
.seo-section,
.topic-nav,
.directory-page,
.landing-hero,
footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
}

.topic-nav a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 800;
  min-height: 38px;
  padding: 9px 13px;
}

.topic-nav a[aria-current="page"] {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: white;
}

.content-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 318px;
  padding: 42px 0;
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.ghost-button,
.side-panel button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--teal-dark);
  font-weight: 800;
  min-height: 42px;
  padding: 0 14px;
}

.link-button {
  align-items: center;
  display: inline-flex;
}

.listing-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dentist-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 365px;
  padding: 18px;
}

.card-topline {
  align-items: center;
  color: var(--blue);
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: space-between;
  margin-bottom: 13px;
  text-transform: uppercase;
}

.status {
  background: #edf7f1;
  border: 1px solid #cce5d9;
  border-radius: 999px;
  color: var(--teal-dark);
  padding: 5px 8px;
  text-transform: none;
}

.area,
address,
.highlights,
.claim-panel p,
footer span,
.seo-section p,
.directory-message {
  color: var(--muted);
  line-height: 1.5;
}

address {
  font-style: normal;
  min-height: 48px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.tag-row span {
  background: #f3f6f3;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #44524f;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 9px;
}

.highlights {
  margin: 0 0 18px;
  padding-left: 19px;
}

.card-actions {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-top: auto;
}

.card-actions a,
.claim-panel a {
  color: var(--teal-dark);
  font-weight: 800;
}

.card-actions .primary-link,
.claim-panel a {
  background: var(--teal);
  border-radius: 6px;
  color: white;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  padding: 11px 14px;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  position: sticky;
  top: 18px;
}

.side-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.side-panel h2 {
  font-size: 1.15rem;
}

.seo-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 30px;
  grid-template-columns: 0.8fr 1.2fr;
  padding: 42px 0;
}

.guide-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.guide-grid p {
  margin-bottom: 0;
}

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding: 26px 0 34px;
}

footer span {
  max-width: 760px;
}

.footer-nav {
  display: flex;
  gap: 14px;
}

.footer-nav a {
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav a[aria-current="page"] {
  color: var(--foreground);
}

.page-header {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 0;
}

.landing-hero {
  padding: 54px 0 24px;
}

.landing-hero h1 {
  color: var(--foreground);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 16px;
}

.landing-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 820px;
}

.directory-page {
  padding: 34px 0 42px;
}

.brand-link {
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.privacy-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 18px;
}

.privacy-page .prose {
  max-width: 720px;
}

.privacy-page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 18px;
}

.privacy-page h2 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
}

.privacy-page p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 14px;
}

.privacy-page a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.directory-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px 0;
}

@media (max-width: 980px) {
  .search-panel,
  .content-grid,
  .seo-section {
    grid-template-columns: 1fr;
  }

  .listing-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 700px;
    padding: 34px 18px 22px;
  }

  .content-grid,
  .seo-section,
  .page-header,
  .privacy-page,
  .topic-nav,
  .directory-page,
  .landing-hero,
  footer {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 2.6rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .section-heading,
  .card-actions,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .card-actions a,
  .claim-panel a {
    text-align: center;
  }
}
