:root {
  --ink: #10201d;
  --soft-ink: #41524f;
  --muted: #6d7c78;
  --paper: #f7faf8;
  --surface: #ffffff;
  --soft: #edf5f1;
  --line: #dbe7e2;
  --brand: #073c35;
  --brand-2: #0f5b4f;
  --accent: #1aa36f;
  --gold: #c9a45d;
  --alert: #b44b43;
  --shadow: 0 18px 48px rgba(7, 60, 53, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  letter-spacing: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

p {
  margin: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--brand);
  border-radius: var(--radius);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 0 max(16px, calc((100% - 1120px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__text {
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.25;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  position: fixed;
  inset: 72px 0 auto;
  display: none;
  padding: 10px 16px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-check:checked ~ .site-nav {
  display: grid;
}

.site-nav a {
  padding: 14px 6px;
  color: var(--soft-ink);
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

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

.header-cta,
.button,
.text-link,
.float-action {
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.header-cta:hover,
.button:hover,
.text-link:hover,
.float-action:hover {
  transform: translateY(-1px);
}

.header-cta {
  display: none;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #22b578 0%, var(--accent) 60%, #0f8a5c 100%);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(26, 163, 111, 0.22);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  background: var(--brand);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(4, 34, 30, 0.98), rgba(7, 60, 53, 0.88) 56%, rgba(7, 60, 53, 0.3)),
    var(--brand);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 58px 0 52px;
}

.eyebrow {
  position: relative;
  margin-bottom: 12px;
  padding-left: 20px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: translateY(-50%);
}

.hero h1 {
  max-width: 780px;
  font-size: 38px;
  font-weight: 900;
}

.hero__lead {
  max-width: 660px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.8;
}

.hero__actions {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #22b578 0%, var(--accent) 55%, #0f8a5c 100%);
  box-shadow: 0 18px 34px rgba(26, 163, 111, 0.28);
}

.button--primary:hover {
  background: linear-gradient(135deg, #27c383 0%, #159265 55%, #0d7a51 100%);
}

.button--secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.button--ghost {
  color: var(--brand);
  background: #ffffff;
  border-color: var(--line);
}

.button--full {
  width: 100%;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 680px;
  margin-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-strip div {
  padding: 18px 12px 0 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 24px;
}

.trust-strip span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(4, 34, 30, 0.96), rgba(12, 78, 67, 0.86) 58%, rgba(12, 78, 67, 0.34)),
    url("images/clinic-room.jpg") center right / cover no-repeat,
    var(--brand);
}

.page-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  content: "";
  background: linear-gradient(180deg, rgba(247, 250, 248, 0), var(--paper));
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 820px;
  font-size: 40px;
}

.page-hero p {
  max-width: 700px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.75;
}

.section {
  padding: 64px 0;
}

.section--soft {
  background: var(--soft);
}

.section--dark {
  color: #ffffff;
  background: var(--brand);
}

.section--dark h2,
.section--dark h3 {
  color: #ffffff;
}

.section h2 {
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
}

.section--dark h2 {
  color: #ffffff;
}

.lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.section--dark .lead {
  color: rgba(255, 255, 255, 0.72);
}

.split {
  display: grid;
  gap: 26px;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.section-head h2 {
  max-width: 800px;
}

.card-grid {
  display: grid;
  gap: 14px;
}

.service-card,
.team-card,
.info-panel,
.note-card,
.contact-card,
.faq-card,
.treatment-card,
.value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(7, 60, 53, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover,
.team-card:hover,
.treatment-card:hover,
.value-card:hover {
  transform: translateY(-5px);
  border-color: rgba(26, 163, 111, 0.3);
  box-shadow: 0 24px 48px rgba(7, 60, 53, 0.13);
}

.service-card,
.team-card,
.value-card {
  padding: 24px;
}

.service-card span,
.timeline span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--brand);
  background: var(--soft);
  border-radius: 50%;
  font-weight: 900;
}

.service-card h3,
.team-card h3,
.treatment-card h3,
.value-card h3 {
  font-size: 21px;
  font-weight: 900;
}

.service-card p,
.team-card p,
.treatment-card p,
.value-card p,
.info-panel p,
.note-card p,
.contact-card p,
.faq-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.72;
}

.info-panel,
.note-card,
.contact-card,
.faq-card {
  padding: 24px;
}

.info-panel h3,
.contact-card h3,
.faq-card h3 {
  font-size: 22px;
}

.check-list,
.plain-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 26px;
  color: var(--soft-ink);
  line-height: 1.7;
}

.check-list li::before,
.plain-list li::before {
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
}

.text-link {
  width: fit-content;
  color: var(--brand-2);
  font-weight: 900;
}

.text-link::after {
  content: " >";
}

.feature-band {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-band__image {
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(7, 60, 53, 0.15), rgba(201, 164, 93, 0.18)),
    var(--image, none) center / cover no-repeat,
    var(--soft);
}

.feature-band__image.feature-band__image--photo {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  background: var(--soft);
}

.feature-band__copy {
  padding: 28px;
}

.feature-band__copy p:not(.eyebrow) {
  margin: 18px 0 24px;
  color: var(--muted);
  line-height: 1.78;
}

.value-row {
  display: grid;
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.value-row__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  color: var(--brand);
  background: var(--soft);
  border-radius: 50%;
}

.value-row__icon svg {
  width: 20px;
  height: 20px;
}

.value-row strong,
.value-row span {
  display: block;
}

.value-row strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.value-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .value-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.note-card {
  border-left: 4px solid var(--gold);
}

.note-card strong {
  color: var(--brand);
  font-size: 18px;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.timeline span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.timeline p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.72;
}

.team-card__role {
  margin-top: 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.team-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.team-card__meta span {
  padding: 7px 10px;
  color: var(--brand);
  background: var(--soft);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.treatment-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-top: 4px solid var(--brand-2);
}

.treatment-card__tag {
  width: fit-content;
  padding: 6px 10px;
  color: var(--brand);
  background: var(--soft);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
}

.treatment-card .button {
  margin-top: 4px;
}

.contact-layout {
  display: grid;
  gap: 20px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  color: var(--soft-ink);
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form textarea {
  min-height: 116px;
  padding-top: 12px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.button:focus-visible,
.header-cta:focus-visible,
.text-link:focus-visible,
.float-action:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(26, 163, 111, 0.24);
  outline-offset: 2px;
}

.map-box {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--soft-ink);
  background:
    linear-gradient(135deg, rgba(7, 60, 53, 0.1), rgba(201, 164, 93, 0.14)),
    var(--soft);
  border: 1px dashed #b9c9c4;
  border-radius: var(--radius);
  text-align: center;
  line-height: 1.7;
}

details {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

summary {
  cursor: pointer;
  padding: 20px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.5;
}

details p {
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  padding: 34px 0 96px;
  color: rgba(255, 255, 255, 0.72);
  background: #082b27;
}

.footer-grid {
  display: grid;
  gap: 18px;
}

.site-footer strong {
  color: #ffffff;
}

.site-footer p {
  margin-top: 8px;
  line-height: 1.68;
}

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

.footer-contact__list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact__list li {
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact__list a {
  font-weight: 700;
}

.footer-contact__list a:hover {
  text-decoration: underline;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
}

.fine-print {
  font-size: 13px;
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 52px;
  }

  .page-hero h1 {
    font-size: 50px;
  }

  .section h2 {
    font-size: 38px;
  }

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

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

@media (min-width: 920px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    min-height: 78px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav a {
    padding: 27px 0;
    border: 0;
    font-size: 14px;
  }

  .site-nav a:hover {
    color: var(--brand);
  }

  .hero {
    min-height: 760px;
  }

  .hero__content {
    padding: 100px 0 88px;
  }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
    align-items: center;
  }

  .section {
    padding: 86px 0;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .feature-band {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
  }

  .feature-band.feature-band--photo-top {
    grid-template-columns: 1fr;
  }

  .feature-band--photo-top .feature-band__copy {
    padding: 32px 42px;
  }

  .feature-band__copy {
    padding: 42px;
  }

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

  .contact-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
    align-items: start;
  }

  .site-footer {
    padding-bottom: 34px;
  }

  .footer-grid {
    grid-template-columns: 1.1fr 1fr auto;
    gap: 32px;
    align-items: start;
  }

  .fine-print {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .brand small {
    display: none;
  }

  .hero h1 {
    font-size: 32px;
  }

  .page-hero h1,
  .section h2 {
    font-size: 28px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }
}

/* Refined medical UI */
.hero--home {
  min-height: auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(26, 163, 111, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f2f8f5 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  padding: 40px 0 48px;
}

.hero--home .hero__content {
  padding: 0;
}

.hero--home h1 {
  max-width: 760px;
  color: var(--ink);
  font-size: 38px;
  letter-spacing: 0;
}

.hero--home .hero__lead {
  max-width: 680px;
  color: var(--soft-ink);
}

.hero--home .button--secondary {
  color: var(--brand);
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 10px 28px rgba(7, 60, 53, 0.08);
}

.hero--home .trust-strip {
  border-top-color: var(--line);
}

.hero--home .trust-strip strong {
  color: var(--brand);
}

.hero--home .trust-strip span {
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(7, 60, 53, 0.18);
}

.hero--home .hero-visual {
  min-height: 0;
  aspect-ratio: 1983 / 793;
}

.hero--home .hero-visual img {
  min-height: 0;
  object-fit: contain;
  background: #eaf3f1;
}

.doctor-grid {
  display: grid;
  gap: 16px;
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  background: var(--soft);
}

.team-card__role {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.team-card {
  padding: 18px;
  border-radius: 18px;
}

.team-card__photo {
  margin-bottom: 18px;
}

.feature-band,
.service-card,
.treatment-card,
.contact-card,
.faq-card,
.info-panel,
.note-card,
.value-card {
  border-radius: 18px;
}

.feature-band {
  overflow: hidden;
}

.feature-band__image {
  min-height: 360px;
}

@media (min-width: 640px) {
  .hero--home h1 {
    font-size: 54px;
  }

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

@media (min-width: 920px) {
  .hero--home {
    min-height: auto;
  }

  .hero-grid {
    padding: 56px 0 74px;
  }

  .hero--home .hero__content {
    padding: 0;
  }

  .hero--home h1 {
    font-size: 62px;
  }
}

@media (max-width: 520px) {
  .hero-grid {
    padding-top: 28px;
  }

  .hero--home h1 {
    font-size: 32px;
  }
}

/* Final polish: cleaner enquiry panel and brand floating buttons */
.contact-card--booking {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 250, 0.96)),
    #ffffff;
  border-color: rgba(26, 163, 111, 0.22);
  box-shadow: 0 24px 60px rgba(7, 60, 53, 0.12);
}

.contact-card--booking::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--brand-2));
}

.booking-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 12px;
  color: var(--brand);
  background: var(--soft);
  border: 1px solid rgba(26, 163, 111, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.contact-card--booking h2 {
  font-size: 34px;
}

.query-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 2px;
}

.query-tags span {
  padding: 7px 10px;
  color: var(--brand-2);
  background: #eef8f4;
  border: 1px solid rgba(26, 163, 111, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.contact-card--booking .contact-form {
  margin-top: 18px;
  gap: 14px;
}

.contact-card--booking textarea {
  min-height: 220px;
  padding: 16px;
  background: #fbfffd;
  border: 1px solid rgba(26, 163, 111, 0.26);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(26, 163, 111, 0.08);
  line-height: 1.75;
  resize: none;
  overflow: hidden;
}

.contact-card--booking .button {
  min-height: 56px;
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(26, 163, 111, 0.22);
}

@media (max-width: 639px) {
  .contact-card--booking {
    padding: 22px;
  }

  .contact-card--booking h2 {
    font-size: 28px;
  }

  .contact-card--booking textarea {
    min-height: 250px;
  }
}

/* Final fix: centered floating brand icons and clickable enquiry choices */
.form-label {
  margin: 2px 0 -4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.query-tags--buttons {
  margin: 4px 0 4px;
}

.query-tag {
  min-height: 34px;
  padding: 7px 12px;
  color: var(--brand-2);
  background: #eef8f4;
  border: 1px solid rgba(26, 163, 111, 0.22);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.query-tag.is-active {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 10px 22px rgba(26, 163, 111, 0.22);
}

.query-tag:focus-visible {
  outline: 3px solid rgba(40, 191, 123, 0.28);
  outline-offset: 2px;
}

.wa-preview-title {
  margin: 2px 0 -6px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
}

.wa-preview {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--ink);
  background: #f4fbf8;
  border: 1px solid rgba(26, 163, 111, 0.2);
  border-radius: 14px;
}

.wa-preview span {
  color: var(--soft-ink);
  font-weight: 800;
}

@media (max-width: 639px) {
  .wa-preview {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Five-doctor team layout */
.doctor-grid--five .team-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.doctor-grid--five .team-card__photo {
  aspect-ratio: 4 / 5;
  margin-bottom: 16px;
  object-position: center top;
}

.doctor-grid--five .team-card h3 {
  font-size: 22px;
}

.doctor-grid--five .team-card p {
  font-size: 15px;
}

.doctor-grid--five .team-card__meta {
  margin-top: auto;
  padding-top: 16px;
}

@media (min-width: 640px) {
  .doctor-grid--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .doctor-grid--five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1220px) {
  .doctor-grid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Home and doctors team image polish */
.feature-band--team {
  grid-template-columns: 1fr !important;
}

.feature-band--team .feature-band__image {
  min-height: 0;
  aspect-ratio: 1672 / 941;
  background: #eef7f4 var(--image, none) center / cover no-repeat;
}

.section--home-doctors {
  padding-top: 38px;
  padding-bottom: 44px;
  background: linear-gradient(180deg, #f8fcfa 0%, #eef7f4 100%);
}

.home-doctors {
  display: grid;
  gap: 18px;
}

.home-doctors .section-head {
  margin-bottom: 0;
}

.home-doctors__media {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(7, 60, 53, 0.08);
}

.home-doctors__media img {
  display: block;
  width: 100%;
  height: auto;
}

.home-doctors__list {
  display: grid;
  gap: 10px;
}

.home-doctors__list div {
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.home-doctors__list strong,
.home-doctors__list span {
  display: block;
}

.home-doctors__list strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.home-doctors__list span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (min-width: 760px) {
  .home-doctors__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .feature-band--team .feature-band__image {
    min-height: 220px;
  }

  .section--home-doctors {
    padding-top: 26px;
  }
}

/* ============================================================
   Brand mark — logo image (replaces flat CSS letter mark)
   ============================================================ */
.brand__mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(7, 60, 53, 0.22);
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand:hover .brand__mark {
  box-shadow: 0 12px 26px rgba(7, 60, 53, 0.3);
}

/* ============================================================
   Floating WhatsApp action — single, polished, mobile + tablet
   ============================================================ */
.float-actions {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 70;
  display: flex;
}

.float-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 20px 0 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #22c266 0%, #1aa855 62%, #128a45 100%);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(10, 90, 50, 0.32), 0 2px 0 rgba(255, 255, 255, 0.18) inset;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.float-action__ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(34, 194, 102, 0.55);
  animation: floatActionPulse 2.6s ease-out infinite;
  pointer-events: none;
}

.float-action__icon {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  background: #ffffff;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.33 4.95L2.05 22l5.27-1.38a9.87 9.87 0 0 0 4.72 1.2h.01c5.46 0 9.91-4.45 9.91-9.91C21.96 6.45 17.51 2 12.04 2Zm0 18.13h-.01a8.2 8.2 0 0 1-4.18-1.14l-.3-.18-3.13.82.84-3.05-.2-.31a8.18 8.18 0 0 1-1.25-4.36 8.24 8.24 0 1 1 8.23 8.22Zm4.52-6.16c-.25-.12-1.47-.73-1.7-.81-.23-.08-.39-.12-.56.12-.16.25-.64.81-.78.98-.14.16-.29.18-.54.06-.25-.12-1.05-.39-2-1.23-.74-.66-1.24-1.47-1.38-1.72-.14-.25-.02-.38.11-.51.11-.11.25-.29.37-.43.12-.14.16-.25.25-.41.08-.16.04-.31-.02-.43-.06-.12-.56-1.35-.77-1.85-.2-.49-.41-.42-.56-.43h-.48c-.16 0-.43.06-.66.31-.23.25-.86.84-.86 2.05 0 1.21.88 2.38 1 2.54.12.16 1.73 2.65 4.2 3.71.59.25 1.05.4 1.41.52.59.19 1.13.16 1.55.1.47-.07 1.47-.6 1.68-1.18.21-.58.21-1.08.14-1.18-.06-.1-.23-.16-.48-.29Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.33 4.95L2.05 22l5.27-1.38a9.87 9.87 0 0 0 4.72 1.2h.01c5.46 0 9.91-4.45 9.91-9.91C21.96 6.45 17.51 2 12.04 2Zm0 18.13h-.01a8.2 8.2 0 0 1-4.18-1.14l-.3-.18-3.13.82.84-3.05-.2-.31a8.18 8.18 0 0 1-1.25-4.36 8.24 8.24 0 1 1 8.23 8.22Zm4.52-6.16c-.25-.12-1.47-.73-1.7-.81-.23-.08-.39-.12-.56.12-.16.25-.64.81-.78.98-.14.16-.29.18-.54.06-.25-.12-1.05-.39-2-1.23-.74-.66-1.24-1.47-1.38-1.72-.14-.25-.02-.38.11-.51.11-.11.25-.29.37-.43.12-.14.16-.25.25-.41.08-.16.04-.31-.02-.43-.06-.12-.56-1.35-.77-1.85-.2-.49-.41-.42-.56-.43h-.48c-.16 0-.43.06-.66.31-.23.25-.86.84-.86 2.05 0 1.21.88 2.38 1 2.54.12.16 1.73 2.65 4.2 3.71.59.25 1.05.4 1.41.52.59.19 1.13.16 1.55.1.47-.07 1.47-.6 1.68-1.18.21-.58.21-1.08.14-1.18-.06-.1-.23-.16-.48-.29Z'/%3E%3C/svg%3E");
}

.float-action__label {
  line-height: 1;
}

.float-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(10, 90, 50, 0.38), 0 2px 0 rgba(255, 255, 255, 0.22) inset;
}

.float-action:focus-visible {
  outline: 3px solid rgba(201, 164, 93, 0.55);
  outline-offset: 3px;
}

@keyframes floatActionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 194, 102, 0.45);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(34, 194, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 194, 102, 0);
  }
}

/* Mobile: compact circular button, icon only, label kept for screen readers */
@media (max-width: 639px) {
  .float-action {
    width: 58px;
    height: 58px;
    padding: 0;
    justify-content: center;
  }

  .float-action__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Tablet and up: pill with visible label, slightly larger and lifted higher */
@media (min-width: 640px) {
  .float-actions {
    right: 26px;
    bottom: 26px;
  }

  .float-action {
    height: 62px;
    padding: 0 26px 0 18px;
    font-size: 15.5px;
  }

  .float-action__icon {
    width: 28px;
    height: 28px;
  }
}

@media (min-width: 1024px) {
  .float-actions {
    right: 32px;
    bottom: 32px;
  }

  .float-action {
    height: 66px;
    padding: 0 30px 0 20px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-action__ring {
    animation: none;
    display: none;
  }
}
