/* ─── Phòng Khám TMH Bác Sĩ Hiệu Long Biên — Website (theme y tế sáng, sang trọng) ─── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800;900&family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #2E6DA4;
  --primary-dk: #1E4E7C;
  --teal:       #33A9DC;
  --navy:       #1B3F63;
  --gold:       #2E6DA4;
  --gold-lt:    #7FC4E8;
  --sky:        #EAF3FA;
  --sky-dk:     #D3E6F3;
  --bg:         #ffffff;
  --text:       #47586A;
  --muted:      #74838f;
  --radius:     14px;
  --shadow:     0 8px 26px rgba(27,63,99,.12);
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Be Vietnam Pro', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); overflow-x: clip; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); }
img { max-width: 100%; }

/* ─── ICON SVG (thay emoji) ─── */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }

/* ─── HIỆU ỨNG CUỘN XUẤT HIỆN ─── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.why-grid .reveal:nth-child(2), .services-grid .reveal:nth-child(2), .stats-grid .reveal:nth-child(2) { transition-delay: .08s; }
.why-grid .reveal:nth-child(3), .services-grid .reveal:nth-child(3), .stats-grid .reveal:nth-child(3) { transition-delay: .16s; }
.why-grid .reveal:nth-child(4), .services-grid .reveal:nth-child(4), .stats-grid .reveal:nth-child(4) { transition-delay: .24s; }
.why-grid .reveal:nth-child(5), .services-grid .reveal:nth-child(5) { transition-delay: .32s; }
.why-grid .reveal:nth-child(6), .services-grid .reveal:nth-child(6) { transition-delay: .4s; }
.steps .reveal:nth-child(2) { transition-delay: .08s; }
.steps .reveal:nth-child(3) { transition-delay: .16s; }
.steps .reveal:nth-child(4) { transition-delay: .24s; }
.steps .reveal:nth-child(5) { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ─── SITE HEADER (thanh trắng phía trên) ─── */
.site-top {
  background: #fff;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 101;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.site-top-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2.4rem;
  padding: .9rem 3.2rem;
  max-width: 1440px;
  margin: 0 auto;
}
.top-left { display: flex; align-items: center; justify-content: center; font-size: 1.32rem; color: var(--navy); white-space: nowrap; }
.top-left .phones { font-weight: 700; letter-spacing: .01em; }
.top-left .phones .lbl { color: var(--navy); }
.top-left .phones a { color: var(--primary); text-decoration: none; font-weight: 800; }
.top-left .phones .sep { color: var(--sky-dk); margin: 0 .35rem; }
.top-logo { justify-self: center; position: relative; width: 130px; align-self: stretch; }
.top-logo img {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  height: 108px; width: auto; display: block; z-index: 5;
}
.top-right { justify-self: end; display: flex; align-items: center; gap: 1.1rem; }
.quick-phone {
  padding: .6rem 1.44rem; border: 1.5px solid var(--sky-dk); border-radius: 50px;
  font-size: 1.1rem; font-family: inherit; outline: none; width: 264px; background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.quick-phone:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,109,164,.15); }
.quick-phone::placeholder { font-size: .88rem; font-style: italic; color: var(--muted); }
.btn-book {
  background: linear-gradient(90deg, var(--primary), var(--primary-dk)); color: #fff;
  padding: .6rem 1.92rem; border-radius: 50px; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 800; font-size: 1.06rem; text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; white-space: nowrap; transition: opacity .2s, transform .15s;
  box-shadow: 0 6px 18px rgba(46,109,164,.3);
}
.btn-book:hover { opacity: .92; transform: translateY(-2px); }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(90deg, var(--primary), var(--primary-dk));
  display: flex; align-items: center; justify-content: center;
  padding: 1.35rem 2rem;
  box-shadow: 0 2px 14px rgba(27,63,99,.2);
}
.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  color: rgba(255,255,255,.92); text-decoration: none; font-size: .88rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  padding: .2rem 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  display: inline-flex; align-items: center; gap: .4rem;
}
.nav-links a:hover, .nav-links a.active { color: #fff; border-bottom-color: #fff; }
.nav-home-icon { font-size: 1rem; }

/* ─── DROPDOWN (Dịch vụ) ─── */
.has-dropdown .caret { font-size: .62em; opacity: .8; }
.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff; min-width: 230px;
  border-radius: 10px; box-shadow: 0 14px 34px rgba(13,37,64,.22);
  padding: .5rem; list-style: none; z-index: 200;
  opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(2px); }
.dropdown li a {
  display: block; padding: .65rem 1rem; color: var(--navy);
  font-size: .85rem; font-weight: 600; text-transform: none; letter-spacing: 0;
  border-radius: 6px; border-bottom: none;
}
.dropdown li a:hover { background: var(--sky); color: var(--primary); border-bottom: none; }
.nav-toggle { display: none; }

/* ─── PAGE HERO (trang con) ─── */
.page-hero {
  background: linear-gradient(135deg, var(--sky), #fff 65%);
  color: var(--navy);
  padding: 3.6rem 2rem 3rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--sky-dk);
}
.page-hero::after { content: ''; display: block; width: 70px; height: 3px; background: var(--gold); margin: 1.1rem auto 0; }
.page-hero h1 { font-size: 2.1rem; font-weight: 800; margin-bottom: .7rem; color: var(--navy); }
.page-hero p { font-size: 1.05rem; color: var(--muted); max-width: 640px; margin: 0 auto; font-weight: 400; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; }

/* ─── HERO (trang chủ) ─── */
.hero {
  background: linear-gradient(150deg, var(--sky) 0%, #fff 60%);
  padding: 0 0 4rem;
}
.hero-banner { width: 100%; aspect-ratio: 2.6 / 1; overflow: hidden; box-shadow: 0 12px 34px rgba(20,131,176,.18); position: relative; }
.hero-track { display: flex; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.4,0,.2,1); }
.hero-slide-wrap { width: 100%; height: 100%; flex-shrink: 0; position: relative; overflow: hidden; }
.hero-slide-wrap img {
  position: absolute; top: -15%; left: 0;
  width: 100%; height: 130%;
  object-fit: cover; object-position: center 35%; display: block;
  will-change: transform;
}
.hero-slide-wrap img.hero-fit-contain {
  top: 0; height: 100%;
  object-fit: contain; background: var(--sky);
}
.hero-banner { cursor: grab; }
.hero-banner.dragging { cursor: grabbing; }
.hero-dots { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 10; display: flex; gap: .5rem; }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; padding: 0; border: none; cursor: pointer;
  background: rgba(255,255,255,.5); transition: background .2s, transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.hero-dots button.active { background: #fff; transform: scale(1.2); }
@media (max-width: 700px) { .hero-dots { bottom: .8rem; } }
.hero-content {
  position: relative; max-width: 900px; margin: 2.2rem auto 0; padding: 3rem 2rem 2.6rem;
  text-align: center; z-index: 1;
  background: linear-gradient(160deg, var(--sky), #fff 75%);
  border: 1px solid var(--sky-dk); border-radius: 28px;
  box-shadow: 0 24px 54px rgba(20,131,176,.14);
}
.hero-content::before, .hero-content::after {
  content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); pointer-events: none;
}
.hero-content::before { width: 260px; height: 260px; background: radial-gradient(circle, rgba(51,169,220,.35), transparent 70%); top: -50px; left: -50px; }
.hero-content::after { width: 300px; height: 300px; background: radial-gradient(circle, rgba(46,109,164,.28), transparent 70%); bottom: -70px; right: -70px; }
.hero-welcome {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(90deg, var(--sky), #fff); color: var(--primary-dk);
  padding: .55rem 1.5rem; border-radius: 50px; font-weight: 800; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.3rem;
  border: 1px solid var(--sky-dk); box-shadow: 0 4px 14px rgba(20,131,176,.1);
}
.hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.28; color: var(--navy); letter-spacing: -.01em; }
.hero .gold-text { color: var(--primary); }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 560px; line-height: 1.75; margin: 0 auto; }
.hero-divider { width: 64px; height: 3px; background: var(--gold); margin: 1.2rem auto; }
.hero-cta { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.8rem; justify-content: center; }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.8rem; margin: 2rem 0 3rem; }
.hero-trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 700; color: var(--navy);
}
.hero-trust-item svg { color: var(--primary); font-size: 1.2rem; }
@media (max-width: 700px) { .hero-banner { aspect-ratio: 4 / 3; } .hero-content { padding: 2.2rem 1.3rem 2rem; margin-top: 1.4rem; border-radius: 20px; } }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 2.2rem;
  border-radius: 50px;
  font-size: 1rem; font-weight: 700;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  cursor: pointer; border: none;
  letter-spacing: .02em;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(90deg, var(--teal), var(--primary)); color: #fff; box-shadow: 0 8px 22px rgba(46,125,174,.35); }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--sky-dk); box-shadow: 0 4px 14px rgba(20,131,176,.08); }
.btn-outline:hover { background: var(--sky); border-color: var(--primary); }
.btn-navy { background: linear-gradient(90deg, var(--primary), var(--primary-dk)); color: #fff; box-shadow: 0 8px 22px rgba(20,131,176,.3); }

/* Nút CTA trong banner chào mừng: nổi bật + hiệu ứng sáng xung quanh */
.hero-cta .btn { position: relative; }
.hero-cta .btn-outline {
  background: linear-gradient(90deg, var(--navy), var(--primary-dk));
  color: #fff; border: none;
}
.hero-cta .btn-outline:hover { opacity: .92; background: linear-gradient(90deg, var(--navy), var(--primary-dk)); }
.hero-cta .btn-gold { animation: glow-teal 2.4s ease-in-out infinite; }
.hero-cta .btn-outline { animation: glow-navy 2.4s ease-in-out infinite; }
@keyframes glow-teal {
  0%, 100% { box-shadow: 0 8px 22px rgba(46,125,174,.35), 0 0 0 0 rgba(51,169,220,.55); }
  50% { box-shadow: 0 8px 22px rgba(46,125,174,.35), 0 0 0 12px rgba(51,169,220,0); }
}
@keyframes glow-navy {
  0%, 100% { box-shadow: 0 8px 22px rgba(27,63,99,.32), 0 0 0 0 rgba(27,63,99,.5); }
  50% { box-shadow: 0 8px 22px rgba(27,63,99,.32), 0 0 0 12px rgba(27,63,99,0); }
}

/* ─── SECTIONS ─── */
section { padding: 4.4rem 2rem; }
.container { max-width: 1140px; margin: 0 auto; }
.alt-bg { background: var(--sky); }
.section-eyebrow { text-align: center; color: var(--primary); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem; }
.section-title { text-align: center; font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .01em; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 2.6rem; font-size: 1rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.divider { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: .8rem auto 2.6rem; width: 220px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--primary)); }
.divider::after { background: linear-gradient(90deg, var(--primary), transparent); }
.divider span { width: 8px; height: 8px; background: var(--primary); transform: rotate(45deg); display: block; flex-shrink: 0; }

/* ─── STATS ─── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.6rem; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 1.8rem 1rem; text-align: center; box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.stat-icon { font-size: 2.1rem; margin-bottom: .5rem; color: var(--primary); }
.stat-number { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: .85rem; color: var(--muted); margin-top: .3rem; font-weight: 500; }

/* ─── SERVICES ─── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.8rem; }
/* Trang chủ: ép 4 thẻ dịch vụ nằm trên 1 hàng, tự xuống hàng trên màn nhỏ */
.services-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .services-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid.cols-4 { grid-template-columns: 1fr; } }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 2.1rem 1.8rem;
  transition: box-shadow .2s, transform .2s;
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
}
.service-card:hover { box-shadow: 0 16px 40px rgba(20,131,176,.18); transform: translateY(-6px); }
.service-icon {
  font-size: 1.8rem; margin-bottom: 1rem;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--sky); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.service-card h3 { font-size: 1.28rem; font-weight: 700; color: var(--navy); margin-bottom: .9rem; }
.service-card ul { list-style: none; }
.service-card ul li { font-size: 1rem; color: var(--text); line-height: 1.7; padding: .3rem 0 .3rem 1.5rem; position: relative; }
.service-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 900; }

/* ─── WHY US ─── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.7rem; }
.why-card {
  background: #fff; border-radius: var(--radius); padding: 2.1rem 1.7rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .7rem;
  transition: transform .2s;
}
.why-card:hover { transform: translateY(-4px); }
.why-card .icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff; font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(20,131,176,.28);
}
.why-card h3 { font-size: 1.14rem; font-weight: 700; color: var(--navy); }
.why-card p { font-size: .96rem; color: var(--muted); line-height: 1.7; }

/* ─── PROCESS ─── */
.process { background: #fff; position: relative; }
.steps { display: flex; flex-direction: column; gap: .9rem; max-width: 720px; margin: 0 auto; }
.step { background: var(--sky); border: 1px solid var(--sky-dk); border-left: 3px solid var(--gold); border-radius: 10px; padding: 1rem 1.3rem; display: flex; align-items: center; gap: 1rem; }
.step-num { width: 36px; height: 36px; flex-shrink: 0; background: var(--gold); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.step h3 { font-size: 1.02rem; font-weight: 700; color: var(--navy); margin-bottom: .15rem; }
.step p { font-size: .9rem; color: var(--muted); font-weight: 400; }

/* ─── ABOUT / DOCTOR ─── */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: center; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.doctor-photo-slot { width: 100%; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); border: 4px solid #fff; outline: 2px solid var(--gold); outline-offset: 4px; }
.doctor-photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-card h3 { color: var(--navy); font-size: 1.6rem; margin-bottom: .3rem; }
.about-card p { color: var(--text); line-height: 1.85; margin-bottom: .9rem; }
.doctor-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--sky); color: var(--primary-dk);
  font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .5rem 1.1rem; border-radius: 50px; margin-bottom: 1.1rem;
  border: 1px solid var(--sky-dk);
}
.doctor-cert-list { list-style: none; margin-top: 1.1rem; }
.doctor-cert-list li { display: flex; gap: .7rem; padding: .5rem 0; font-size: .98rem; color: var(--text); border-top: 1px dashed #e2e8f0; }
.doctor-cert-list li:first-child { border-top: none; }
.doctor-cert-list li::before { content: '✦'; color: var(--gold); font-weight: 900; }

.about-text-card { background: #fff; border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow); max-width: 820px; margin: 0 auto; border-top: 3px solid var(--gold); }
.about-text-card p { color: var(--text); line-height: 1.9; margin-bottom: 1rem; }

/* ─── IMAGE PLACEHOLDER (chờ ảnh thật) ─── */
.img-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background: repeating-linear-gradient(135deg, var(--sky), var(--sky) 10px, #dceaf3 10px, #dceaf3 20px);
  border: 2px dashed var(--sky-dk);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  font-size: .92rem; font-weight: 600;
  padding: 1.5rem;
  min-height: 180px;
}
.img-placeholder .ph-icon { font-size: 2.2rem; opacity: .6; }
.placeholder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.6rem; }
.real-photo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; box-shadow: var(--shadow); }
.real-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.real-photo .photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .85rem 1.1rem;
  background: linear-gradient(to top, rgba(11,42,71,.82), rgba(11,42,71,0));
  color: #fff; font-weight: 600; font-size: .95rem;
  text-align: left;
}

/* ─── PRICE TABLE ─── */
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 1.1rem 1.4rem; text-align: left; font-size: 1rem; }
.price-table thead th { background: linear-gradient(90deg, var(--primary), var(--primary-dk)); color: #fff; font-weight: 700; font-family: var(--font-head); }
.price-table tbody tr:nth-child(even) { background: var(--sky); }
.price-table td.price { font-weight: 800; color: var(--gold); background: none; white-space: nowrap; font-family: var(--font-head); font-size: 1.1rem; }
.price-note { margin-top: 1.1rem; font-size: .92rem; color: var(--muted); font-style: italic; text-align: center; }

/* ─── SOCIAL ICONS ─── */
.social-icons { display: flex; justify-content: center; gap: 1rem; margin: 1.2rem 0; }
.social-icons a {
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--primary);
  border: 1px solid var(--sky-dk);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; text-decoration: none; transition: background .2s, transform .2s, border-color .2s;
}
.social-icons a:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-3px); }

/* ─── TESTIMONIAL / UPDATING CARD ─── */
.updating-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2.6rem 1.8rem; text-align: center; color: var(--muted);
  border-top: 3px solid var(--gold);
}
.updating-card .ph-icon { font-size: 2.6rem; margin-bottom: .7rem; display: block; }
.updating-card h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: .5rem; font-weight: 700; }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 1.4rem; }
.info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.3rem; background: #fff; padding: 1rem 1.2rem; border-radius: 10px; box-shadow: var(--shadow); }
.info-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; color: var(--gold); }
.info-item strong { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.info-item span, .info-item a { font-size: 1rem; color: var(--text); font-weight: 600; text-decoration: none; }
.info-item a:hover { color: var(--primary); }

/* ─── FORM ─── */
.appt-form { background: #fff; border-radius: var(--radius); padding: 2.3rem 2.1rem; box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.appt-form h3 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 1.7rem; padding-bottom: .9rem; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; gap: .5rem; }
.form-group { margin-bottom: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group label { display: block; font-size: .92rem; font-weight: 700; margin-bottom: .5rem; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .85rem 1.05rem; border: 1.5px solid var(--sky-dk); border-radius: 8px;
  font-size: 1rem; font-family: inherit; background: var(--sky); color: var(--text);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.16); background: #fff; }
.btn-submit {
  width: 100%; background: linear-gradient(90deg, var(--primary), var(--teal)); color: #fff;
  padding: 1.15rem; border-radius: 8px; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 1.25rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  transition: opacity .2s, transform .15s; box-shadow: 0 8px 20px rgba(20,131,176,.26); margin-top: .5rem;
}
.btn-submit:hover { opacity: .9; transform: translateY(-2px); }
.form-note { font-size: .78rem; color: var(--muted); margin-top: .9rem; text-align: center; }

/* ─── MAP ─── */
.map-wrap { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 280px; border: 0; }

/* ─── FOOTER ─── */
footer { background: #fff; color: var(--text); padding: 3.4rem 2rem 1.6rem; border-top: 1px solid var(--sky-dk); }
footer .container { max-width: 1140px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .9fr 1.1fr 1.4fr; gap: 2.2rem; margin-bottom: 2.2rem; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } .social-icons { justify-content: center; } }
.footer-col h4 { font-family: var(--font-head); color: var(--primary); font-size: 1.05rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .03em; }
.footer-col p, .footer-col a { color: var(--muted); font-size: .92rem; line-height: 1.9; text-decoration: none; }
.footer-col p strong { color: var(--text); font-weight: 700; }
.footer-col a:hover { color: var(--primary); }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand img { height: 40px; }
.footer-brand span { font-family: var(--font-head); color: var(--navy); font-weight: 700; font-size: 1.05rem; }
.footer-links-list { list-style: none; }
.footer-links-list li { margin-bottom: .55rem; }

/* ─── LỚN LÊN CÙNG PHÒNG KHÁM — gallery masonry + lightbox ─── */
.grow-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.grow-gallery img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in;
  transition: transform .2s, box-shadow .2s;
}
.grow-gallery img:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,131,176,.22); }
@media (max-width: 900px) { .grow-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .grow-gallery {
    display: flex; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    gap: .7rem; padding-bottom: .7rem;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .grow-gallery::-webkit-scrollbar { display: none; }
  .grow-gallery img { flex: 0 0 auto; width: 66%; min-width: 0; scroll-snap-align: center; }
}
.lightbox {
  position: fixed; inset: 0; background: rgba(11,42,71,.92);
  display: none; align-items: center; justify-content: center; z-index: 999; padding: 1rem; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 96%; max-height: 92%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .lb-close { position: absolute; top: 14px; right: 18px; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.footer-bottom { border-top: 1px solid var(--sky-dk); padding-top: 1.4rem; text-align: center; font-size: .82rem; color: var(--muted); }
.footer-bottom a { color: var(--primary); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }
.footer-policy { display: block; margin-top: .6rem; }
.footer-policy .sep { color: var(--sky-dk); margin: 0 .2rem; }

/* ─── FLOATING BUTTONS ─── */
.float-btns {
  position: fixed; top: 50%; right: 0; transform: translateY(-50%);
  display: flex; flex-direction: column;
  z-index: 200; border-radius: 12px 0 0 12px; overflow: hidden;
  box-shadow: -6px 8px 24px rgba(0,0,0,.25);
}
.float-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  width: 86px; padding: .8rem .4rem;
  font-size: .72rem; font-weight: 800; color: #fff; text-decoration: none;
  text-align: center; line-height: 1.2;
  transition: filter .2s, padding .2s;
}
.float-btn:hover { filter: brightness(1.12); }
.float-btn svg { width: 1.35em; height: 1.35em; flex-shrink: 0; }
.float-call { background: var(--navy); }
.float-zalo { background: #0068ff; }
.float-book { background: linear-gradient(160deg, var(--primary), var(--teal)); }
.float-location { background: #fff; color: var(--navy); }
@media (max-width: 700px) {
  .float-btns { border-radius: 10px 0 0 10px; }
  .float-btn { width: 68px; padding: .65rem .3rem; font-size: .64rem; }
}

/* ─── FAQ ─── */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border-left: 3px solid var(--gold); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.5rem; cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.02rem;
  background: none; border: none; width: 100%; text-align: left; font-family: inherit;
}
.faq-question .icon { color: var(--primary); transition: transform .25s; font-size: 1.1rem; }
.faq-item.open .faq-question .icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { padding: 0 1.5rem 1.3rem; color: var(--muted); line-height: 1.75; font-size: .96rem; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ─── SCHEDULE TABLE (giờ làm việc) ─── */
.schedule-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.schedule-table th, .schedule-table td { padding: .85rem 1.2rem; text-align: left; font-size: .92rem; }
.schedule-table thead th { background: linear-gradient(90deg, var(--primary), var(--primary-dk)); color: #fff; font-weight: 700; }
.schedule-table tbody tr:nth-child(even) { background: var(--sky); }
.schedule-table td.time { font-weight: 800; color: var(--primary-dk); white-space: nowrap; }
.schedule-table td.closed { color: var(--muted); font-style: italic; }

/* ─── CHAT GREETING BUBBLE ─── */
.chat-greeting {
  position: fixed; top: calc(50% - 90px); right: 6rem; z-index: 199;
  background: #fff; color: var(--text); padding: .9rem 1.2rem 1rem;
  border-radius: 14px; box-shadow: 0 12px 30px rgba(13,37,64,.22);
  max-width: 220px; font-size: .86rem; font-weight: 600; line-height: 1.5;
  animation: pop-in .4s ease;
}
.chat-greeting strong { color: var(--primary-dk); }
.chat-greeting .close-greet {
  position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .7rem; cursor: pointer; border: 2px solid #fff; padding: 0;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 700px) { .chat-greeting { right: 1rem; top: calc(50% - 130px); max-width: 190px; } }

/* ─── FINAL CTA BAND ─── */
.cta-band { background: linear-gradient(120deg, var(--primary), var(--teal)); text-align: center; padding: 3.6rem 1.5rem; position: relative; }
.cta-band h2 { color: #fff; font-size: 1.7rem; margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 1.6rem; font-weight: 400; }
/* Nút trên dải xanh — tương phản rõ + hiệu ứng phát sáng trắng */
.cta-band .btn-gold { background: #fff; color: var(--primary-dk); border: none; box-shadow: 0 10px 26px rgba(0,0,0,.2); animation: glow-white 2.4s ease-in-out infinite; }
.cta-band .btn-gold:hover { background: #eef6fc; }
.cta-band .btn-outline { background: transparent; color: #fff; border: 2px solid #fff; box-shadow: none; animation: glow-white-line 2.4s ease-in-out infinite; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.18); border-color: #fff; }
@keyframes glow-white {
  0%, 100% { box-shadow: 0 10px 26px rgba(0,0,0,.2), 0 0 0 0 rgba(255,255,255,.6); }
  50% { box-shadow: 0 10px 26px rgba(0,0,0,.2), 0 0 0 14px rgba(255,255,255,0); }
}
@keyframes glow-white-line {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); }
  50% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .site-top-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.1rem; padding: 1.3rem 1.1rem; }
  .top-logo { order: 1; }
  .top-logo img { height: 68px; }
  .top-left { order: 2; align-items: center; }
  .top-right { order: 3; justify-self: center; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 700px) {
  nav { justify-content: flex-end; padding: .5rem 1rem; }
  .nav-toggle { display: block; background: none; border: none; color: #fff; font-size: 1.7rem; cursor: pointer; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--primary-dk); flex-direction: column; align-items: stretch;
    padding: .4rem; gap: 0; display: none;
    box-shadow: 0 10px 24px rgba(0,0,0,.2);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem .8rem; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-links a:hover, .nav-links a.active { border-bottom-color: rgba(255,255,255,.12); }
  .quick-phone { width: 190px; }
  section { padding: 2.8rem 1.1rem; }
  .hero { padding: 2.8rem 1.1rem; }
  .hero h1 { font-size: 1.7rem; }
  .page-hero { padding: 2.6rem 1.2rem 2.2rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .footer-grid { gap: 2rem; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(0,0,0,.15); border-radius: 0;
    padding: 0; margin: 0;
  }
  .dropdown li a { color: rgba(255,255,255,.85); padding: .7rem 1.6rem; }
  .dropdown li a:hover { background: rgba(0,0,0,.15); color: #fff; }
}

/* neo cuộn khi bấm link submenu, tránh bị thanh menu che mất tiêu đề */
[id] { scroll-margin-top: 90px; }

/* ─── VÁ TỐI ƯU MOBILE (chống tràn ngang, header vừa màn hình) ─── */
@media (max-width: 700px) {
  /* Hotline: cho xuống dòng, không bị cắt cụt bên phải */
  .top-left { white-space: normal; font-size: 1.02rem; line-height: 1.5; }
  .top-left .phones { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .1rem .5rem; }
  .top-left .phones a { white-space: nowrap; }
  /* Header co gọn, ô tìm kiếm + nút không tràn */
  .site-top-inner { gap: .8rem; padding: 1rem .9rem; }
  .top-right { width: 100%; gap: .7rem; }
  .quick-phone { width: 100%; max-width: 340px; }
  .btn-book { width: 100%; max-width: 340px; justify-content: center; text-align: center; }
  /* Ảnh & bản đồ luôn nằm trong khung */
  img, iframe { max-width: 100%; }
  /* Bảng giá / lịch: cuộn ngang trong khung thay vì đẩy tràn cả trang */
  .price-table, .schedule-table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ─── TỐI ƯU GIAO DIỆN ĐIỆN THOẠI (đẹp & cân đối) ─── */
@media (max-width: 700px) {
  /* Header gọn: ẩn ô tìm kiếm (chưa hoạt động), để nút Đặt lịch nổi bật full-width */
  .quick-phone { display: none; }
  .top-right { justify-content: center; }
  .btn-book { width: 100%; max-width: 360px; padding: .8rem 1.2rem; font-size: 1rem; }

  /* Hero: 3 ảnh đồng đều, cùng lấp đầy khung (khung khớp tỉ lệ banner 2.58) */
  .hero-banner { aspect-ratio: 2.58 / 1; }
  .hero-slide-wrap img.hero-fit-contain { top: 0; left: 0; height: 100%; object-fit: contain; background: var(--sky); }
  .hero-slide-wrap img:not(.hero-fit-contain) { top: 0; left: 0; height: 100%; object-fit: cover; object-position: center; }
  .hero { padding: 0 0 2.4rem; }
  .hero-content { padding: 1.9rem 1.2rem 1.7rem; margin-top: 1.3rem; border-radius: 18px; }
  .hero-welcome { font-size: .7rem; padding: .45rem 1.1rem; margin-bottom: 1rem; }
  .hero h1 { font-size: 1.5rem; line-height: 1.35; }
  .hero p { font-size: .98rem; line-height: 1.7; }
  .hero-cta { gap: .7rem; margin-top: 1.4rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: .55rem 1.1rem; margin: 1.5rem 0 0; }
  .hero-trust-item { font-size: .82rem; }

  /* Tiêu đề khu vực & CTA cân đối trên màn nhỏ */
  .section-title { font-size: 1.45rem; }
  .section-sub { font-size: .95rem; margin-bottom: 2rem; }
  .cta-band { padding: 2.8rem 1.2rem; }
  .cta-band h2 { font-size: 1.35rem; }
  .cta-band .hero-cta .btn { width: 100%; }

  /* Thẻ nội dung thoáng hơn */
  .service-card, .why-card, .about-text-card, .appt-form { padding: 1.6rem 1.3rem; }
  .stat-number { font-size: 1.9rem; }

  /* Nút nổi: đổi thành nút TRÒN icon gọn ở góc dưới-phải, không đè nội dung */
  .float-btns {
    top: auto; bottom: 14px; left: 12px; right: auto; transform: none;
    flex-direction: column; gap: 14px;
    background: none; box-shadow: none; border-radius: 0; overflow: visible;
  }
  .float-btn {
    width: 48px; height: 48px; min-width: 48px; padding: 0;
    border-radius: 50%; font-size: 0; gap: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,.28);
    animation: float-pulse 1.8s ease-in-out infinite;
  }
  .float-btn svg { width: 22px; height: 22px; }
  .float-location { border: 1px solid var(--sky-dk); }
  .float-zalo { animation-delay: .25s; }
  .float-book { animation-delay: .5s; }
  .float-location { animation-delay: .75s; }
  /* Ẩn bong bóng chào Zalo trên điện thoại cho gọn */
  .chat-greeting { display: none !important; }
}

/* ─── ĐIỆN THOẠI: các thẻ lướt ngang (vuốt sang phải) như mẫu ─── */
@media (max-width: 700px) {
  .why-grid, .services-grid.cols-4 {
    display: flex; flex-wrap: nowrap;
    grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 1rem; padding-bottom: .9rem; margin-bottom: -.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .why-grid::-webkit-scrollbar, .services-grid.cols-4::-webkit-scrollbar { display: none; }
  .why-grid > .why-card, .services-grid.cols-4 > .service-card {
    flex: 0 0 80%; scroll-snap-align: center;
  }
}

/* Hiệu ứng nhấp nháy (vòng sáng lan ra) cho nút nổi tròn */
@keyframes float-pulse {
  0%   { box-shadow: 0 4px 14px rgba(0,0,0,.28), 0 0 0 0 rgba(51,169,220,.6); }
  70%  { box-shadow: 0 4px 14px rgba(0,0,0,.28), 0 0 0 12px rgba(51,169,220,0); }
  100% { box-shadow: 0 4px 14px rgba(0,0,0,.28), 0 0 0 0 rgba(51,169,220,0); }
}

@media (max-width: 460px) {
  .hero h1 { font-size: 1.35rem; }
  .page-hero h1 { font-size: 1.35rem; }
  .section-title { font-size: 1.3rem; }
  .top-left { font-size: .95rem; }
}

/* ─── (banner dọc mobile tạm tắt — dùng slider ảnh trên điện thoại) ─── */
.m-hero { display: none !important; }
@media (max-width: 700px) {
  .m-hero {
    display: block; position: relative; overflow: hidden;
    background: linear-gradient(170deg, var(--sky) 0%, #ffffff 72%);
    padding: 1.8rem 1.2rem 2.4rem;
    border-bottom: 1px solid var(--sky-dk);
  }
  .m-hero::before {
    content: ''; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(51,169,220,.28), transparent 70%); filter: blur(30px); pointer-events: none;
  }
  .m-hero-inner { position: relative; text-align: center; max-width: 440px; margin: 0 auto; }
  .m-hero-eyebrow {
    display: inline-block; background: #fff; border: 1px solid var(--sky-dk); color: var(--primary-dk);
    font-weight: 800; font-size: .72rem; padding: .42rem 1rem; border-radius: 50px; margin-bottom: 1rem; box-shadow: var(--shadow);
  }
  .m-hero-title { font-family: var(--font-head); color: var(--navy); font-size: 2rem; line-height: 1.18; font-weight: 800; letter-spacing: -.01em; }
  .m-hero-title span { color: var(--primary); }
  .m-hero-tag { color: var(--primary-dk); font-style: italic; font-size: 1.02rem; margin: .55rem 0 1.3rem; }
  .m-hero-photo {
    position: relative; width: 78%; max-width: 300px; margin: 0 auto 1.4rem; aspect-ratio: 4 / 5;
    border-radius: 22px; overflow: hidden; border: 4px solid #fff;
    outline: 2px solid var(--primary); outline-offset: 3px; box-shadow: 0 20px 44px rgba(20,131,176,.3);
  }
  .m-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
  .m-badge {
    position: absolute; display: flex; flex-direction: column; gap: .1rem; align-items: flex-start;
    color: #fff; border-radius: 12px; padding: .45rem .7rem; font-weight: 900; font-size: 1.15rem; line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--teal)); box-shadow: 0 8px 18px rgba(0,0,0,.22);
  }
  .m-badge small { font-weight: 600; font-size: .58rem; opacity: .96; letter-spacing: .02em; }
  .m-badge-exp { top: .7rem; left: .7rem; }
  .m-badge-pt { bottom: .7rem; right: .7rem; align-items: flex-end; background: linear-gradient(135deg, var(--navy), var(--primary)); }
  .m-hero-name { font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: 1.3rem; }
  .m-hero-name em { display: block; font-style: normal; font-weight: 500; color: var(--muted); font-size: .82rem; margin-top: .2rem; }
  .m-hero-cta { display: flex; flex-direction: column; gap: .7rem; }
  .m-hero-cta .btn { width: 100%; justify-content: center; }
  .m-hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.3rem; margin-top: 1.2rem; }
  .m-hero-trust span { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700; color: var(--navy); }
  .m-hero-trust svg { color: var(--primary); width: 1.1em; height: 1.1em; }
}
