:root {
  --primary: #d96310;
  --primary-dark: #b84f07;
  --primary-light: #fff4ea;
  --primary-glow: rgba(217, 99, 16, 0.15);
  --ink: #1b2430;
  --ink-light: #333f50;
  --muted: #647080;
  --line: #ebdcd0;
  --white: #ffffff;
  --cream: #fbf7f3;
  --blue: #1877f2;
  --shadow-sm: 0 4px 14px rgba(27, 36, 48, 0.05);
  --shadow-md: 0 12px 32px rgba(27, 36, 48, 0.08);
  --shadow-lg: 0 24px 60px rgba(40, 25, 10, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans Thai", "Prompt", sans-serif;
  color: var(--ink);
  background-color: var(--cream);
  background-image: 
    linear-gradient(135deg, rgba(255, 253, 250, 0.94) 0%, rgba(253, 249, 245, 0.91) 45%, rgba(248, 240, 230, 0.85) 100%),
    url('../images/clinic-bg.jpg');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

a { text-decoration: none; color: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: auto; }

/* Topbar */
.topbar {
  height: 80px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 205, 190, 0.45);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.brand-text {
  display: flex;
  align-items: center;
  border-left: 1.5px solid #ebdcd0;
  padding-left: 14px;
  line-height: 1;
}
.brand-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.brand-name .star-icon {
  color: var(--primary);
  font-style: normal;
  font-size: 12px;
}

.hours-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e7033;
  background: #edf8ef;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #c8e8cd;
  box-shadow: 0 2px 8px rgba(30, 112, 51, 0.06);
}
.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e9b46;
  box-shadow: 0 0 0 3px rgba(46, 155, 70, 0.22);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 50px 0 46px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 45px;
  align-items: center;
}

/* Hero Left Copy */
.hero-copy {
  display: flex;
  flex-direction: column;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow-badge {
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #ffdcc0;
}
h1 {
  font-family: "Prompt", sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.22;
  margin: 0 0 16px 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 span {
  color: var(--primary);
  font-weight: 700;
  display: inline-block;
}
.lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-light);
  margin: 0 0 20px 0;
  max-width: 620px;
}
.lead strong {
  color: var(--ink);
}

/* Status Banner */
.coming {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #fed8ba;
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 13px 18px;
  width: min(580px, 100%);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.coming .tool-icon {
  font-size: 22px;
  color: var(--primary);
  line-height: 1;
}
.coming strong {
  color: var(--primary-dark);
  font-size: 15px;
  display: block;
}
.coming p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Action Buttons */
.actions {
  display: flex;
  gap: 14px;
  margin-bottom: 26px;
}
.btn {
  min-width: 210px;
  display: grid;
  grid-template-columns: 40px 1fr 16px;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn small {
  display: block;
  font-weight: 500;
  font-size: 11.5px;
  opacity: 0.88;
}
.btn b {
  font-size: 22px;
  font-weight: 400;
  text-align: right;
}
.btn-facebook {
  background: linear-gradient(135deg, #1877f2, #0d65d9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.round-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #1877f2;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.round-icon svg {
  display: block;
}
.btn-map {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid #ebdcd0;
}
.map-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #ebdcd0;
  flex-shrink: 0;
}
.map-icon-wrap svg {
  display: block;
}

/* Hero Scope Card */
.hero-scope-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #ebdcd0;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  margin-top: 4px;
  width: min(580px, 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.scope-icon {
  color: var(--primary);
  font-size: 13px;
}
.scope-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-light);
}
.scope-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  transition: all 0.2s ease;
  width: fit-content;
}
.scope-btn:hover {
  color: var(--primary);
  transform: translateX(4px);
}
.scope-arrow {
  display: inline-block;
  font-size: 15px;
  transition: transform 0.2s ease;
}
.scope-btn:hover .scope-arrow {
  transform: translateY(2px);
}

/* Doctor Area (Right Column) */
.doctor-area {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.doctor-card {
  position: relative;
  width: min(430px, 100%);
  height: 570px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 250, 244, 0.82) 100%);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(35, 25, 15, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.doctor-card img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  height: auto;
  max-height: 94%;
  object-fit: contain;
  object-position: bottom center;
  z-index: 2;
  filter: drop-shadow(0 15px 25px rgba(40, 25, 10, 0.16));
}
.doctor-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  z-index: 3;
}
.doctor-label strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.doctor-label small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.doctor-label .doctor-degree {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 12px;
  margin-top: 4px;
}

/* Services Showcase Section */
.services-section {
  position: relative;
  padding: 60px 0 45px;
}
.services-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 38px;
}
.services-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  text-transform: uppercase;
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid #ffdcc0;
  margin-bottom: 12px;
}
.services-eyebrow .eyebrow-star {
  font-size: 11px;
}
.services-title {
  font-family: "Prompt", sans-serif;
  font-size: clamp(28px, 3.5vw, 38px);
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.services-lead-box {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(220, 205, 190, 0.55);
  box-shadow: 0 2px 10px rgba(35, 25, 15, 0.04);
  margin-bottom: 22px;
}
.services-lead-text {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-light);
}
.services-lead-text strong {
  color: var(--primary);
  font-weight: 700;
}

/* Filter Tabs */
.services-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.filter-btn {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #ebdcd0;
  color: var(--ink-light);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.filter-btn:hover {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffdcc0;
  transform: translateY(-1px);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(217, 99, 16, 0.28);
}
.filter-btn .count {
  font-size: 11px;
  opacity: 0.88;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 7px;
  border-radius: 999px;
}
.filter-btn.active .count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Services Grid */
.services-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 6px 20px rgba(35, 25, 15, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3.5px;
  background: linear-gradient(180deg, var(--primary), #ffa05c);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.service-card:hover {
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(35, 25, 15, 0.08);
  border-color: #ffdcc0;
}
.service-card:hover::after {
  opacity: 1;
}
.service-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(217, 99, 16, 0.08);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.service-card:hover .service-icon-wrap {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}
.service-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.service-card-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.service-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

/* Info Wrap (Contact Bar) - Minimal Frosted Glass */
.info-wrap {
  position: relative;
  z-index: 10;
  margin: 20px 0 45px;
}
.info-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(35, 25, 15, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: grid;
  grid-template-columns: 0.95fr 1fr 1.25fr;
  padding: 14px 20px;
  align-items: center;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  border-right: 1px solid rgba(220, 205, 190, 0.4);
  border-radius: 12px;
  transition: all 0.2s ease;
  min-width: 0;
}
.info-item:first-child { padding-left: 6px; }
.info-item:last-child { border-right: 0; padding-right: 6px; }
a.info-item:hover {
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}
.info-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(217, 99, 16, 0.08);
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.2s ease;
}
a.info-item:hover .info-icon {
  background: var(--primary);
  color: #ffffff;
}
.info-icon svg {
  display: block;
}
.info-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.info-text small {
  display: block;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-bottom: 2px;
  white-space: nowrap;
}
.info-text strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}
.address .info-text strong {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

/* Footer */
footer {
  padding: 24px 0 28px;
  color: #7b838f;
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(220, 205, 190, 0.45);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive Media Queries */
@media (max-width: 1080px) {
  .services-grid-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  body { background-attachment: scroll; }
  .hero { padding-top: 36px; padding-bottom: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { text-align: center; }
  .eyebrow { justify-content: center; }
  .lead { margin-inline: auto; }
  .coming { margin-inline: auto; text-align: left; }
  .actions { justify-content: center; }
  .hero-scope-card { margin-inline: auto; text-align: left; }
  .doctor-area { min-height: 500px; }
  .doctor-card { height: 480px; }
  
  .services-section { padding: 45px 0 35px; }
  .services-grid-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .info-wrap { margin: 20px 0 40px; }
  .info-card { grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; }
  .info-item { border-right: 0; border-bottom: 1px solid rgba(220, 205, 190, 0.35); padding: 10px 8px; }
  .info-item:last-child { border-bottom: 0; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .topbar { height: auto; min-height: 68px; padding: 8px 0; }
  .nav { flex-wrap: wrap; gap: 8px; justify-content: space-between; }
  .brand-logo { height: 42px; }
  .brand-text { border-left-width: 1px; padding-left: 10px; }
  .brand-name { font-size: 12.5px; white-space: normal; }
  .hours-top { font-size: 11px; padding: 5px 10px; }
  h1 { font-size: 28px; }
  .lead { font-size: 14px; }
  .hero { padding-top: 24px; padding-bottom: 28px; }
  .actions { flex-direction: column; }
  .btn { width: 100%; min-width: 0; }
  .doctor-card { height: 420px; border-radius: 24px; }
  
  .services-section { padding: 36px 0 28px; }
  .services-lead-box { border-radius: 14px; padding: 8px 14px; }
  .services-lead-text { font-size: 13.5px; }
  .services-grid-cards { grid-template-columns: 1fr; }
  .filter-btn { font-size: 12.5px; padding: 7px 14px; }
  .info-wrap { margin: 16px 0 32px; }
}
