/* Nha khoa Ngà Sương (nha-khoa 4.0): a tidy neighbourhood clinic. White and teal, the price list printed like the board
   at reception (grouped by service, price in a teal tag, book button on every line), doctors, hours.
   Font: Be Vietnam Pro only. */
:root {
  --teal: #0f766e;
  --teal-2: #115e59;
  --aqua: #e6f4f2;
  --aqua-2: #cdeae6;
  --ink: #12302d;
  --muted: #5b6f6c;
  --line: #d5e3e1;
  --bg: #fbfdfc;
  --k-font: 'Be Vietnam Pro', system-ui, sans-serif;
  --k-font-display: 'Be Vietnam Pro', system-ui, sans-serif;
  --k-accent: #0f766e;
  --k-accent-ink: #ffffff;
  --k-ink: #12302d;
  --k-paper: #ffffff;
  --k-muted: #5b6f6c;
  --k-line: #d5e3e1;
  --k-radius: 10px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font:
    400 16px/1.6 'Be Vietnam Pro',
    system-ui,
    sans-serif;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}
.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}
.center {
  margin: 22px 0 0;
  text-align: center;
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}
.lead {
  max-width: 64ch;
  margin: 10px 0 24px;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font:
    700 16px/1.2 'Be Vietnam Pro',
    sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--teal-2);
}
.btn-soft {
  background: var(--aqua);
  color: var(--teal-2);
}
.btn-soft:hover {
  background: var(--aqua-2);
}
.btn-block {
  width: 100%;
}
.link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.link-strong {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

/* Header */
.hdr {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}
.brand-mark {
  position: relative;
  width: 34px;
  height: 38px;
  border-radius: 14px 14px 10px 10px;
  background: var(--teal);
}
.brand-mark::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 8px;
  height: 14px;
  border-radius: 6px 6px 0 0;
  background: #fff;
  transform: translateX(-50%);
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--teal-2);
}
.brand-text small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hdr-call,
.hdr-menu {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--teal);
  cursor: pointer;
}
.hdr-call {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}
.menu {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  padding: 6px 0;
}
.menu[data-open] {
  display: flex;
}
.menu a {
  padding: 12px 4px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  text-decoration: none;
}
.menu .menu-cta {
  color: var(--teal);
}

/* Sections */
.sec {
  padding: 40px 16px;
}
.sec > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.page {
  max-width: 1112px;
  margin: 0 auto;
}
.sec-tint {
  background: var(--aqua);
}
.h1 {
  font-size: 30px;
}
.h2 {
  margin-bottom: 18px;
  font-size: 26px;
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 24px;
}
.sec-note {
  margin: -10px 0 18px;
  color: var(--muted);
  font-size: 15px;
}

/* Hero */
.hero {
  max-width: 1112px;
  margin: 0 auto;
  padding: 32px 16px 0;
  text-align: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--aqua);
  color: var(--teal-2);
  font-size: 14px;
  font-weight: 600;
}
.hero-title {
  max-width: 18ch;
  margin: 0 auto;
  font-size: 34px;
}
.hero-lead {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 17px;
}
.hero .actions {
  justify-content: center;
}
.hero-photo {
  margin: 28px 0 0;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
}

/* Facts */
.facts {
  padding-top: 24px;
  padding-bottom: 8px;
}
.facts-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 0;
}
.facts-in div {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}
.facts dd {
  margin: 0;
  color: var(--teal);
  font-size: 24px;
  font-weight: 700;
}
.facts dt {
  color: var(--muted);
  font-size: 14px;
}

/* Price board */
.board {
  display: grid;
  gap: 18px;
}
.board-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.board-h {
  padding: 12px 16px;
  background: var(--teal);
  color: #fff;
  font-size: 17px;
}
.prices li:nth-of-type(even) {
  background: #f6faf9;
}
.pr {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.pr:first-of-type {
  border-top: 0;
}
.pr-name {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  font-weight: 600;
  text-decoration: none;
}
.pr-name small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}
.pr-name:hover span {
  color: var(--teal);
  text-decoration: underline;
}
.pr-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
}
.pr-price b {
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--aqua);
  color: var(--teal-2);
  font-size: 15px;
}
.pr-price small {
  color: var(--muted);
  font-size: 14px;
}
.pr-book {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: #fff;
  color: var(--teal);
  font:
    600 15px/1 'Be Vietnam Pro',
    sans-serif;
  cursor: pointer;
}
.pr-book:hover {
  background: var(--teal);
  color: #fff;
}
.prices-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

/* About */
.about {
  display: grid;
  gap: 14px;
}
.about p {
  margin: 0;
}

/* Doctors */
.docs {
  display: grid;
  gap: 14px;
}
.doc {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.doc img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
}
.doc figcaption {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}
.doc b {
  font-size: 17px;
}
.doc span {
  color: var(--teal);
  font-size: 15px;
  font-weight: 600;
}
.doc small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

/* Reviews */
.reviews {
  display: grid;
  gap: 14px;
}
.review {
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
}
.stars {
  margin: 0;
  color: #e3a008;
  letter-spacing: 2px;
}
.review blockquote {
  margin: 6px 0 10px;
}
.review figcaption {
  color: var(--muted);
  font-size: 14px;
}
.review b {
  color: var(--ink);
}

/* FAQ */
.faqs {
  display: grid;
  gap: 8px;
}
.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.faq summary {
  position: relative;
  padding: 14px 44px 14px 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  top: 10px;
  right: 16px;
  color: var(--teal);
  font-size: 22px;
}
.faq[open] summary::after {
  content: '−';
}
.faq p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

/* Contact */
.contact {
  display: grid;
  gap: 16px;
  max-width: 1112px;
  margin: 0 auto;
}
.contact > * {
  max-width: none;
  margin: 0;
}
.contact-card {
  padding: 22px;
  border-radius: 18px;
  background: var(--aqua);
}
.contact-row {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
}
.contact-row .k-icon {
  margin-top: 4px;
  color: var(--teal);
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--aqua-2);
}
.map {
  min-height: 280px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--aqua);
}

/* Detail */
.detail {
  display: grid;
  gap: 22px;
}
.detail-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 18px;
}
.detail-price {
  margin: 10px 0 14px;
}
.detail-price b {
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--aqua);
  color: var(--teal-2);
  font-size: 20px;
}
.detail-price small {
  color: var(--muted);
}
.spec {
  margin: 0;
  border-top: 1px solid var(--line);
}
.spec div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt {
  color: var(--muted);
}
.spec dd {
  margin: 0;
  font-weight: 600;
}
.related {
  margin-top: 36px;
}

/* Order */
.order {
  display: grid;
  gap: 16px;
}
.card {
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.card-tint {
  order: -1;
  background: var(--aqua);
  border-color: var(--aqua-2);
}
.order-item {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}
.order-item:empty::before {
  content: 'Chọn dịch vụ ở ô “Dịch vụ” bên dưới, hoặc chọn “Khám và tư vấn tổng quát” nếu chưa rõ.';
  font-size: 15px;
  font-weight: 400;
}
.order-total {
  margin: 4px 0 0;
  color: var(--teal-2);
  font-weight: 700;
}
.card-tint:has(.order-item:empty) .order-total {
  display: none;
}
.checks {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  font-size: 15px;
}
.checks li {
  display: flex;
  gap: 8px;
}
.checks .k-icon {
  margin-top: 3px;
  color: var(--teal);
}

/* Footer */
.ftr {
  background: var(--teal-2);
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}
.ftr-in {
  display: grid;
  gap: 22px;
  max-width: 1112px;
  margin: 0 auto;
  padding: 34px 16px;
}
.ftr p {
  margin: 0 0 6px;
}
.ftr-brand {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.ftr-h {
  color: #fff;
  font-weight: 700;
}
.ftr .link-strong {
  color: #fff;
}

@media (min-width: 720px) {
  .facts-in {
    grid-template-columns: repeat(4, 1fr);
  }
  .pr {
    grid-template-columns: 1fr auto auto;
  }
  .pr-name {
    grid-column: auto;
  }
  .pr-price {
    justify-content: flex-end;
    min-width: 240px;
  }
  .docs,
  .reviews {
    grid-template-columns: repeat(3, 1fr);
  }
  .doc {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .doc img {
    width: 120px;
    height: 120px;
  }
  .about {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .ftr-in {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .hdr {
    padding: 12px max(16px, calc((100% - 1080px) / 2));
  }
  .hdr-menu {
    display: none;
  }
  .menu {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    order: -1;
    gap: 24px;
    margin-right: 8px;
    padding: 0;
  }
  .brand {
    order: -2;
  }
  .menu a {
    padding: 0;
    border: 0;
  }
  .menu .menu-cta {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--teal);
    color: #fff;
  }
  .hero {
    padding-top: 56px;
  }
  .hero-title {
    font-size: 48px;
  }
  .hero-photo img {
    height: 420px;
  }
  .sec {
    padding: 64px 16px;
  }
  .h1 {
    font-size: 40px;
  }
  .h2 {
    font-size: 32px;
  }
  .contact {
    grid-template-columns: 1fr 1.3fr;
  }
  .detail {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
  .detail-img {
    height: 440px;
  }
  .order {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }
  .card-tint {
    order: 0;
    position: sticky;
    top: 90px;
  }
}
