:root {
  --bg: #f7f8f5;
  --ink: #1d2522;
  --muted: #5f6c68;
  --line: #dbe1dc;
  --paper: #ffffff;
  --teal: #12766e;
  --teal-dark: #0b4d49;
  --blue: #2d84a7;
  --sand: #d8c5a7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 42px;
  z-index: 10;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 245, 0.92);
  padding: 12px clamp(18px, 5vw, 64px);
  backdrop-filter: blur(14px);
}

.plain-header {
  top: 0;
}

.emergency-strip {
  position: sticky;
  top: 0;
  z-index: 11;
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--teal-dark);
  color: white;
  padding: 8px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
}

.emergency-strip a {
  border-radius: 999px;
  background: white;
  color: var(--teal-dark);
  padding: 6px 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand img {
  width: min(280px, 56vw);
  height: auto;
}

.brand span {
  display: none;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  border-radius: 8px;
  padding: 10px 12px;
}

.site-nav a:hover,
.lang {
  background: var(--paper);
}

.menu-button {
  display: none;
  min-height: 44px;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 9px 11px;
  font: inherit;
  font-weight: 900;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--teal-dark);
  transition: opacity 160ms ease, transform 160ms ease;
}

.menu-button strong {
  margin-left: 4px;
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: #e7ece9;
}

.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img {
  object-fit: cover;
}

.sign-hero picture img {
  object-fit: contain;
  object-position: right center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 248, 245, 0.98) 0%, rgba(247, 248, 245, 0.9) 42%, rgba(247, 248, 245, 0.18) 76%),
    linear-gradient(180deg, transparent 68%, rgba(247, 248, 245, 0.78));
}

.hero-content {
  position: relative;
  width: min(1160px, calc(100% - 36px));
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-inline: auto;
  padding: 52px 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 790px;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.4vw, 3.7rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 950;
}

p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-content > p:not(.eyebrow) {
  max-width: 680px;
  font-size: 1.18rem;
}

.actions,
.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 900;
}

.primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 16px 32px rgba(18, 118, 110, 0.2);
}

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

.secondary {
  border: 1px solid var(--line);
  background: var(--paper);
}

.trust-band,
.split,
.section,
.why-section,
.media-section,
.visitor-panel,
.appointment,
.map-section,
.contact {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
}

.trust-band {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  padding: 28px 0;
}

.trust-band article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 20px;
}

.trust-band strong {
  display: block;
  color: var(--teal-dark);
  font-size: 2rem;
  font-weight: 950;
}

.trust-band span {
  color: var(--muted);
  font-weight: 800;
}

.split,
.media-section,
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  padding: 80px 0;
}

.doctor-profile {
  width: min(1160px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-inline: auto;
  border-top: 1px solid var(--line);
  padding: 80px 0;
}

.portrait-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 54px rgba(29, 37, 34, 0.08);
}

.portrait-wrap img {
  width: 100%;
  height: min(620px, 72vh);
  object-fit: cover;
  object-position: center top;
}

.credential-list,
.treatment-tags,
.acupuncture-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.credential-list span,
.treatment-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 9px 13px;
  color: var(--teal-dark);
  font-size: 0.94rem;
  font-weight: 900;
}

.section {
  padding: 72px 0;
}

.acupuncture {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
  border-top: 1px solid var(--line);
  padding: 72px 0;
}

.why-section,
.appointment {
  border-top: 1px solid var(--line);
  padding: 72px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.why-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 26px;
  box-shadow: 0 18px 54px rgba(29, 37, 34, 0.06);
}

.appointment {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.map-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 72px 0;
}

.map-frame {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 54px rgba(29, 37, 34, 0.08);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.custom-map-pin {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 70px;
  height: 86px;
  place-items: start center;
  transform: translate(-50%, -92%);
  filter: drop-shadow(0 18px 22px rgba(29, 37, 34, 0.28));
}

.custom-map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 22px;
  background: var(--teal);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px 2px 6px 2px;
}

.custom-map-pin img {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border: 4px solid white;
  border-radius: 18px;
  background: white;
}

.appointment-actions {
  display: grid;
  gap: 12px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 16px;
}

.social-links a {
  border-radius: 8px;
  background: var(--bg);
  padding: 10px 12px;
  color: var(--teal-dark);
  font-weight: 900;
}

.legal-page {
  width: min(900px, calc(100% - 36px));
  margin-inline: auto;
  padding: 72px 0;
}

.legal-page h1 {
  max-width: none;
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.legal-page h2 {
  margin-top: 34px;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.site-nav.always-visible {
  display: flex;
}

.acupuncture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.acupuncture-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
}

.section-head {
  max-width: 760px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.cards article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 24px;
  box-shadow: 0 18px 54px rgba(29, 37, 34, 0.06);
}

.media-section {
  border-top: 1px solid var(--line);
}

.photo-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 14px;
}

.photo-grid img {
  width: 100%;
  height: 520px;
  border-radius: 8px;
  object-fit: cover;
}

.photo-grid img:first-child {
  object-position: center;
}

.photo-grid img:last-child {
  object-position: center;
}

.visitor-panel {
  border-radius: 8px;
  background: var(--teal-dark);
  margin-block: 48px;
  padding: clamp(32px, 6vw, 72px);
  color: white;
}

.visitor-panel .eyebrow,
.visitor-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.visitor-panel h2 {
  max-width: 760px;
}

.visitor-panel p {
  max-width: 820px;
}

.contact {
  align-items: center;
  border-top: 1px solid var(--line);
}

.contact-card {
  align-items: center;
}

.phone {
  width: 100%;
  color: var(--teal-dark);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 950;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 28px;
  color: var(--muted);
  font-weight: 800;
}

footer img {
  width: 32px;
  height: 32px;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 18px 38px rgba(18, 118, 110, 0.28);
}

.back-to-top:hover {
  background: var(--teal-dark);
}

@media (max-width: 920px) {
  .site-header {
    top: 46px;
    min-height: 68px;
    justify-content: space-between;
    padding-inline: 16px;
  }

  .brand img {
    width: min(240px, 58vw);
  }

  .menu-button {
    display: inline-flex;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    padding: 8px;
    box-shadow: 0 22px 60px rgba(29, 37, 34, 0.14);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav.always-visible {
    position: static;
    display: flex;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .site-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px;
    padding: 12px 14px;
  }

  .site-nav a:not(:last-child) {
    border-bottom: 1px solid rgba(219, 225, 220, 0.7);
  }

  .hero-overlay {
    background: rgba(247, 248, 245, 0.9);
  }

  .trust-band,
  .split,
  .doctor-profile,
  .media-section,
  .appointment,
  .map-section,
  .contact,
  .cards,
  .why-grid,
  .acupuncture-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid img {
    height: auto;
    max-height: 520px;
  }
}

@media (max-width: 620px) {
  .emergency-strip {
    min-height: 48px;
    flex-direction: column;
    gap: 4px;
    padding-block: 6px;
    font-size: 13px;
  }

  .site-header {
    top: 48px;
  }

  .brand img {
    width: min(214px, 62vw);
  }

  .menu-button {
    width: 48px;
    justify-content: center;
    padding-inline: 0;
  }

  .menu-button strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  h1 {
    font-size: 2.6rem;
  }

  .button {
    width: 100%;
  }
}
