:root {
  --teal: #1f7d71;
  --teal-dark: #144d45;
  --mint: #d8f1ea;
  --ink: #0f2027;
  --muted: #486b68;
  --line: #c9e0df;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: #f8fbfb;
}

.container-page {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(201,224,223,.75);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  min-height: 68px;
}

.site-logo {
  position: relative;
  display: inline-flex;
  min-width: max-content;
  flex-direction: column;
  justify-content: center;
  padding-left: 38px;
  color: var(--teal-dark);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.site-logo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 34px;
  transform: translateY(-50%);
  border: 3px solid var(--teal);
  border-right-color: transparent;
  border-radius: 50% 50% 50% 10%;
  box-shadow: inset 7px 0 0 rgba(47,159,146,.16);
}

.site-logo::after {
  content: "Chiropractic Clinic";
  margin-top: 4px;
  color: #486b68;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.main-nav {
  gap: 1.15rem;
}

.nav-link {
  color: #385a56;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal);
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .75rem 1.35rem;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--teal), #2f9f92);
  box-shadow: 0 12px 24px rgba(31,125,113,.18);
}

.btn-outline {
  color: var(--teal-dark);
  border: 1px solid var(--line);
  background: white;
}

.btn-primary:hover,
.btn-outline:hover {
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--teal-dark);
  transition: transform .2s ease, opacity .2s ease;
}

.menu-button::before {
  transform: translateY(-6px);
}

.menu-button::after {
  transform: translateY(6px);
}

.menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.menu-button[aria-expanded="true"]::before {
  transform: translateY(2px) rotate(45deg);
}

.menu-button[aria-expanded="true"]::after {
  transform: translateY(-2px) rotate(-45deg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  background: white;
  padding: .45rem .75rem;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.soft-card,
.service-card,
.review-card,
.condition-card,
.result-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 20px 40px rgba(55,87,82,.05);
}

.service-card,
.condition-card,
.review-card {
  padding: 24px;
}

.service-card h3,
.condition-card h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.service-card p,
.condition-card p,
.review-card p,
.result-card p {
  color: var(--muted);
  line-height: 1.8;
  font-size: .95rem;
}

.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1rem;
  font-size: .95rem;
  outline: none;
}

.field:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(47,159,146,.12);
}

.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--teal-dark);
}

.image-hover img {
  transition: transform .45s ease;
}

.image-hover:hover img {
  transform: scale(1.04);
}

.review-card {
  padding: 28px;
}

.result-card {
  border-color: #bde6e0;
  background: #ecfaf8;
  padding: 20px;
}

footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fcfc, #e7f4f2);
}

@media (max-width: 900px) {
  .site-header-inner {
    min-height: 64px;
  }

  .menu-button {
    display: grid;
  }

  #main-nav {
    position: absolute;
    inset: 72px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 20px 45px rgba(15, 32, 39, .14);
  }
  #main-nav.open {
    display: flex;
  }
  #main-nav .nav-link {
    border-radius: 8px;
    padding: .85rem .9rem;
    font-size: 13px;
  }

  #main-nav .nav-link:hover,
  #main-nav .nav-link.active {
    background: #ecfaf8;
  }
}

@media (max-width: 640px) {
  .container-page {
    width: min(100% - 24px, 1240px);
  }

  .site-logo {
    padding-left: 34px;
    font-size: 17px;
  }

  .site-logo::before {
    width: 25px;
    height: 31px;
  }
}
