:root {
  --ink: #2f2923;
  --muted: #6c5f52;
  --paper: #fbf8f4;
  --cream: #f3eee6;
  --sand: #dfd2c1;
  --blue: #4d94c7;
  --blue-dark: #2773a5;
  --brown: #4a3327;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(31, 25, 18, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.anchor-offset {
  display: block;
  height: 0;
  position: relative;
  top: -5rem;
  visibility: hidden;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(31, 25, 18, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  font-size: 0.95rem;
  font-weight: 600;
}

.primary-nav a {
  text-decoration: none;
}

.phone-link {
  padding: 0.55rem 0.85rem;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: inherit;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: #262626;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 900ms ease;
}

.hero-bg.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(21, 17, 12, 0.72), rgba(21, 17, 12, 0.4) 46%, rgba(21, 17, 12, 0.16));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 2rem));
  margin-left: clamp(1rem, 7vw, 6rem);
  padding-top: 4rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow.dark {
  color: var(--blue-dark);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 9vw, 6.75rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  color: var(--brown);
}

h3 {
  font-size: 1.3rem;
  color: var(--brown);
}

.hero-copy {
  max-width: 660px;
  margin: 1.3rem 0 2rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.clinic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--blue);
  color: var(--white);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.25rem;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
}

.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dots span.is-active {
  background: var(--white);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
  scroll-margin-top: 5rem;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading p:last-child,
.section-copy p {
  color: var(--muted);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: 1240px;
  margin-right: auto;
  margin-left: auto;
}

.media-panel img {
  width: 100%;
  height: min(620px, 70vh);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.section-copy {
  max-width: 660px;
}

.section-copy p {
  margin: 1rem 0 0;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.fact-grid div,
.service-card,
.product-card {
  border: 1px solid rgba(93, 70, 50, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(31, 25, 18, 0.06);
}

.fact-grid div {
  padding: 1rem;
}

.fact-grid strong {
  display: block;
  color: var(--brown);
}

.fact-grid span {
  color: var(--muted);
  font-size: 0.94rem;
}

.band {
  background: var(--cream);
}

#clinics .eyebrow.dark {
  color: var(--brown);
}

.service-grid,
.product-grid {
  display: grid;
  gap: 0.9rem;
  margin-right: auto;
  margin-left: auto;
}

.service-grid {
  max-width: 920px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-grid {
  max-width: 1080px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  padding: 1.15rem;
}

.service-card h3,
.product-card h3 {
  font-size: 1.2rem;
}

.service-card p,
.product-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.product-card {
  background: #fff;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #fff;
  padding: 0.8rem;
}

.product-card-body {
  padding: 0.95rem;
}

.clinic-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.clinic-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(246, 240, 231, 0.84);
  box-shadow:
    0 18px 36px rgba(31, 25, 18, 0.07),
    inset 0 0 0 1px rgba(74, 51, 39, 0.09);
}

.clinic-card-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(223, 210, 193, 0.6), rgba(247, 242, 234, 0.9));
  box-shadow: inset 0 -1px 0 rgba(74, 51, 39, 0.08);
}

.clinic-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92);
}

.clinic-card-media.is-logo {
  display: grid;
  place-items: center;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.78);
}

.clinic-card-media.is-logo img {
  width: min(82%, 260px);
  height: auto;
  max-height: 72%;
  object-fit: contain;
  filter: none;
}

.clinic-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.05rem;
}

.clinic-card h3 {
  color: var(--brown);
  font-size: 1.18rem;
}

.clinic-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.clinic-card-city {
  padding: 0.36rem 0.55rem;
  border-radius: 999px;
  color: var(--brown);
  background: rgba(74, 51, 39, 0.07);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.clinic-card-address {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.clinic-actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1rem;
}

.clinic-actions a {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--brown);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.clinic-actions a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
  scroll-margin-top: 5rem;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(24, 19, 14, 0.9), rgba(24, 19, 14, 0.68)),
    url("assets/hero-09.jpg") center / cover;
}

.contact-section h2 {
  color: var(--white);
}

.contact-copy {
  max-width: 620px;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.contact-list div {
  padding-left: 1rem;
  border-left: 3px solid var(--blue);
}

.contact-list dt {
  font-weight: 800;
}

.contact-list dd {
  margin: 0.25rem 0 0;
}

.contact-list a {
  color: rgba(255, 255, 255, 0.88);
}

.italic {
  font-style: italic;
}

.contact-form {
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.contact-form h3 {
  color: var(--white);
  margin-bottom: 1.1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 0.94rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(77, 148, 199, 0.25);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.submit-button {
  width: 100%;
  margin-top: 1.1rem;
  border: 0;
}

.submit-button:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.form-alert {
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.form-alert.success {
  background: rgba(205, 244, 222, 0.18);
  border: 1px solid rgba(205, 244, 222, 0.44);
}

.form-alert.error {
  background: rgba(255, 209, 209, 0.18);
  border: 1px solid rgba(255, 209, 209, 0.44);
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.site-footer {
  display: grid;
  gap: 1.5rem;
  padding: 2.2rem clamp(1rem, 5vw, 5rem);
  color: rgba(255, 255, 255, 0.74);
  background: var(--brown);
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.35rem;
}

.site-footer p {
  margin: 0.35rem 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  text-decoration: none;
}

.copyright {
  font-size: 0.9rem;
}

.legal-page,
.local-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 7rem 1.2rem 4rem;
}

.legal-page h1,
.local-page h1 {
  color: var(--brown);
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.legal-page h2,
.local-page h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.legal-page p,
.legal-page li,
.local-page p,
.local-page li {
  color: var(--muted);
}

.seo-detail-list {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 0;
  color: var(--muted);
}

.seo-detail-list div {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(93, 70, 50, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
}

.seo-detail-list dt {
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.seo-detail-list dd {
  margin: 0.25rem 0 0;
}

@media (max-width: 960px) {
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .product-grid {
    max-width: 760px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .clinic-table {
    max-width: 760px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    padding: 0.85rem 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 4rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    color: var(--ink);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 0.85rem;
  }

  .phone-link {
    border-color: rgba(47, 41, 35, 0.18);
  }

  .hero {
    min-height: 84svh;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(21, 17, 12, 0.68), rgba(21, 17, 12, 0.48));
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 5rem;
  }

  .hero-actions,
  .clinic-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .service-grid,
  .product-grid,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .product-grid,
  .clinic-table {
    max-width: 420px;
  }

  .clinic-table {
    grid-template-columns: 1fr;
  }

  .clinic-actions {
    margin-top: auto;
  }

  .clinic-actions a {
    width: auto;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }
}
