/* =========================================================
   PRETTY4U — Beauty Center
   Bảng màu thương hiệu: xanh dương hoàng gia + trắng, nhấn azure (theo logo)
   ========================================================= */

:root {
  /* Bảng màu thương hiệu Pretty4u — xanh dương hoàng gia + trắng (theo logo).
     Tên biến giữ nguyên (green/cream/gold) để tương thích, nhưng giá trị là tông xanh dương. */
  --green: #1e3a8a;       /* xanh dương chủ đạo */
  --green-deep: #0f1f56;  /* navy đậm (header/footer/section tối) */
  --green-soft: #33499e;
  --cream: #e9eefb;       /* xanh trắng nhạt (section sáng) */
  --cream-2: #f5f8ff;     /* gần trắng */
  --gold: #3f6bff;        /* nhấn azure (nút/eyebrow) */
  --gold-soft: #9db4ff;   /* azure nhạt trên nền tối */
  --text: #1b2440;
  --muted: #64708f;
  --white: #ffffff;
  --line: rgba(30, 58, 138, 0.14);
  --shadow: 0 18px 40px -22px rgba(15, 31, 86, 0.45);
  --radius: 16px;
  --maxw: 1200px;
  /* Font giống web mẫu: Libre Bodoni (tiêu đề) + Montserrat (thay Gilroy, có tiếng Việt) */
  --font-serif: "Libre Bodoni", "Times New Roman", serif;
  --font-sans: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 .5em; color: var(--green-deep); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--cream { background: var(--cream); }
.section--cream-2 { background: var(--cream-2); }
.section--green { background: var(--green); color: var(--cream); }
.section--green h2, .section--green h3 { color: var(--cream); }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 12px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 48px); }
.section-head p { color: var(--muted); }
.section--green .section-head p { color: rgba(255,255,255, .8); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 600;
  border: 1.5px solid transparent; transition: .25s ease; font-size: 15px;
}
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: #2f56e0; }
.btn--green { background: var(--green); color: var(--cream); }
.btn--green:hover { background: var(--green-deep); }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--green); }
.btn--ghost:hover { background: var(--green); color: var(--white); }
.section--green .btn--ghost { color: var(--cream); border-color: rgba(255,255,255,.55); }
.section--green .btn--ghost:hover { background: var(--white); color: var(--green); border-color: var(--white); }

/* =========================================================
   HEADER
   ========================================================= */
.topbar { background: var(--green-deep); color: var(--cream); font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.topbar a:hover { opacity: 1; color: var(--gold-soft); }
.topbar__left { display: flex; gap: 22px; }
.topbar__social { display: flex; gap: 16px; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--cream-2); box-shadow: 0 2px 18px -10px rgba(15,31,86,.4); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 12px; max-width: 1340px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green-deep); }
.brand-logo { height: 50px; width: auto; display: block; }
.brand-lockup { display: none; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; }
.brand-mark svg { height: 42px; width: 42px; display: block; }
.brand-word { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-word b { font-family: var(--font-serif); font-size: 25px; font-weight: 700; letter-spacing: .05em; }
.brand-word b > span { color: var(--gold); }
.brand-word i { font-style: normal; font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; opacity: .7; margin-top: 4px; padding-left: 2px; }
.brand--footer .brand-mark svg { height: 44px; width: 44px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a {
  display: flex; align-items: center; gap: 5px; padding: 12px 14px;
  font-weight: 600; font-size: 14.5px; text-transform: uppercase;
  letter-spacing: .02em; color: var(--green-deep); white-space: nowrap;
}
.nav > li > a:hover, .nav > li.is-open > a { color: var(--gold); }
.nav .caret { opacity: .65; transition: transform .25s ease; margin-left: 2px; }
.nav > li:hover .caret, .nav > li.is-open .caret { transform: rotate(180deg); opacity: 1; }

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .2s ease; border-top: 3px solid var(--gold);
}
.nav > li:hover .dropdown, .nav > li.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14.5px; color: var(--text); }
.dropdown a:hover { background: var(--cream); color: var(--green); }

.header__cta { display: flex; align-items: center; gap: 12px; }
.header__phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-deep); white-space: nowrap; }
.header__phone small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.hamburger span { width: 26px; height: 2.5px; background: var(--green-deep); border-radius: 2px; transition: .25s; }

/* =========================================================
   HERO SLIDER
   ========================================================= */
.hero { position: relative; overflow: hidden; background: var(--green-deep); }
.hero__track { display: flex; transition: transform .6s cubic-bezier(.65,.05,.36,1); }
.hero__slide { min-width: 100%; position: relative; height: clamp(420px, 58vw, 620px); }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(15,31,86,.82) 0%, rgba(15,31,86,.45) 45%, rgba(15,31,86,.05) 75%);
}
.hero__content { max-width: 560px; color: var(--cream); }
.hero__content .eyebrow { color: var(--gold-soft); }
.hero__content h1 { color: var(--white); font-size: clamp(32px, 5vw, 56px); margin-bottom: .3em; }
.hero__content p { font-size: 18px; color: rgba(255,255,255,.9); margin-bottom: 1.6em; }
.hero__badges { display: flex; gap: 14px; margin-top: 26px; }
.hero__badge { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.9); }
.hero__badge b { color: var(--gold-soft); }

.slider-nav { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.slider-nav button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); padding: 0; }
.slider-nav button.is-active { background: var(--gold); width: 30px; border-radius: 6px; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2);
  color: var(--cream); display: grid; place-items: center; backdrop-filter: blur(4px); transition: .2s;
}
.slider-arrow:hover { background: var(--gold); color: var(--white); }
.slider-arrow--prev { left: 22px; }
.slider-arrow--next { right: 22px; }

/* =========================================================
   SIGNATURE / SERVICE CARDS
   ========================================================= */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.service-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: .3s ease;
}
.service-card:hover { transform: translateY(-6px); }
.service-card__img { aspect-ratio: 4/3; overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.service-card:hover .service-card__img img { transform: scale(1.06); }
.service-card__body { padding: 22px; }
.service-card__body h3 { font-size: 20px; margin-bottom: 8px; }
.service-card__body p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.service-card__link { color: var(--gold); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; }

/* =========================================================
   TECH SLIDER (Dàn công nghệ triệu đô)
   ========================================================= */
.tech { position: relative; }
.tech__viewport { overflow: hidden; }
.tech__track { display: flex; transition: transform .6s cubic-bezier(.65,.05,.36,1); }
.tech__slide { min-width: 100%; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.tech__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: rgba(255,255,255,.08); aspect-ratio: 4/3; }
.tech__media img { width: 100%; height: 100%; object-fit: cover; }
.tech__info .eyebrow { color: var(--gold-soft); }
.tech__info h3 { font-size: clamp(26px, 3vw, 36px); color: var(--cream); }
.tech__info p { color: rgba(255,255,255,.85); }
.tech__specs { display: flex; gap: 28px; margin: 22px 0 26px; }
.tech__specs b { display: block; font-family: var(--font-serif); font-size: 26px; color: var(--gold-soft); }
.tech__specs span { font-size: 13px; color: rgba(255,255,255,.7); }

/* =========================================================
   ABOUT / STATS BANNER
   ========================================================= */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about__img img { width: 100%; }
.about h2 { font-size: clamp(28px, 3.5vw, 40px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.stat b { display: block; font-family: var(--font-serif); font-size: 34px; color: var(--gold); }
.stat span { font-size: 13.5px; color: var(--muted); }
.section--green .stat span { color: rgba(255,255,255,.75); }

/* =========================================================
   DOCTORS
   ========================================================= */
.doctor-card { text-align: center; }
.doctor-card__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow); margin-bottom: 16px; }
.doctor-card__img img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card h3 { font-size: 20px; margin-bottom: 2px; }
.doctor-card .role { color: var(--gold); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* =========================================================
   NEWS
   ========================================================= */
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.news-card__img { aspect-ratio: 16/10; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__body { padding: 20px; }
.news-card__date { font-size: 12.5px; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.news-card__body h3 { font-size: 18px; margin: 8px 0; }
.news-card__body p { color: var(--muted); font-size: 14px; margin: 0; }

/* =========================================================
   CUSTOMER EXPERIENCE (video slider)
   ========================================================= */
.exp__viewport { overflow: hidden; }
.exp__track { display: flex; gap: 24px; transition: transform .6s cubic-bezier(.65,.05,.36,1); }
.exp__item { min-width: calc((100% - 48px) / 3); position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 9/12; box-shadow: var(--shadow); }
.exp__item img { width: 100%; height: 100%; object-fit: cover; }
.exp__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15,31,86,.28); color: var(--white); transition: .25s;
}
.exp__play-btn { width: 62px; height: 62px; border-radius: 50%; background: rgba(63,107,255,.95); display: grid; place-items: center; padding-left: 3px; transition: .25s; box-shadow: 0 8px 24px -8px rgba(15,31,86,.6); }
.exp__item:hover .exp__play { background: rgba(15,31,86,.12); }
.exp__item:hover .exp__play-btn { transform: scale(1.1); }

/* =========================================================
   PARTNERS
   ========================================================= */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 44px; }
.partners span { font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: var(--green-soft); opacity: .7; letter-spacing: .05em; }

/* =========================================================
   CONSULT FORM (Đăng ký tư vấn)
   ========================================================= */
.consult { background: var(--cream); border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; box-shadow: var(--shadow); }
.consult__form { padding: 52px clamp(24px, 4vw, 56px); }
.consult__form h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 28px; }
.consult__media { position: relative; background: var(--green-deep); }
.consult__media img { width: 100%; height: 100%; object-fit: cover; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--green-deep); }
.field label .req { color: #c0392b; }
.field .control { position: relative; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1.5px solid rgba(30,58,138,.35); background: transparent;
  padding: 10px 34px 10px 0; font-family: inherit; font-size: 15.5px; color: var(--text); transition: .2s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--green); }
.field textarea { resize: vertical; min-height: 44px; }
.field .icon { position: absolute; right: 4px; top: 8px; color: var(--green); opacity: .6; }
.field .error { color: #c0392b; font-size: 12.5px; margin-top: 4px; display: none; }
.field.is-error input, .field.is-error textarea { border-color: #c0392b; }
.field.is-error .error { display: block; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-success { display: none; align-items: center; gap: 10px; background: rgba(30,58,138,.1); color: var(--green-deep); padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; font-size: 14.5px; }
.form-success .licon { flex-shrink: 0; }
.form-success--err { background: rgba(192,57,43,.1); color: #c0392b; }

/* =========================================================
   PAGE HERO (trang con)
   ========================================================= */
.page-hero { background: var(--green-deep); color: var(--cream); padding: 60px 0; text-align: center; }
.page-hero h1 { color: var(--white); font-size: clamp(30px, 4.5vw, 48px); }
.page-hero p { color: rgba(255,255,255,.8); max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--gold-soft); }

/* ---------- Tabs (dich-vu) ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.tab-btn { padding: 12px 26px; border-radius: 999px; border: 1.5px solid rgba(30,58,138,.28); background: var(--white); font-weight: 600; color: var(--green-deep); transition: .2s; box-shadow: 0 6px 16px -12px rgba(15,31,86,.55); }
.tab-btn:hover { border-color: var(--green); box-shadow: 0 8px 20px -12px rgba(15,31,86,.7); }
.tab-btn.is-active { background: var(--green); color: var(--white); border-color: var(--green); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Article ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.article__meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; display: flex; gap: 18px; }
.article__body h2 { font-size: 26px; margin-top: 32px; }
.article__body img { border-radius: var(--radius); margin: 18px 0; }
.beforeafter { position: relative; margin: 26px 0; }
.beforeafter__viewport { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16/10; }
.beforeafter__track { display: flex; align-items: stretch; transition: transform .5s ease; height: 100%; }
.beforeafter__track img { min-width: 100%; height: 100%; object-fit: cover; display: block; }
.beforeafter__tag { position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--white); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; z-index: 3; }
.sidebar-card { background: var(--cream); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.sidebar-card h3 { font-size: 19px; }
.sidebar-list a { display: flex; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sidebar-list a:hover { color: var(--gold); }

/* ---------- Promo (uu-dai) ---------- */
.promo-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.promo-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.promo-card__body { padding: 22px; background: var(--white); }
.promo-card__tag { position: absolute; top: 16px; left: 16px; background: var(--gold); color: var(--white); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: 13px; }
.promo-card__body h3 { font-size: 20px; }
.promo-card__body p { color: var(--muted); font-size: 14px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.82); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--cream); display: inline-block; margin-bottom: 14px; }
.site-footer h4 { color: var(--cream); font-family: var(--font-sans); font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.branch { margin-bottom: 14px; font-size: 14px; }
.branch b { color: var(--gold-soft); display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.footer-links a { display: block; padding: 6px 0; font-size: 14.5px; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: .2s; }
.footer-social a:hover { background: var(--gold); color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 46px; padding: 22px 0; font-size: 13px; text-align: center; color: rgba(255,255,255,.6); }

/* Floating quick contact */
.floating { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.floating a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--cream); box-shadow: var(--shadow); font-size: 20px; transition: .2s; }
.floating a:hover { transform: scale(1.08); background: var(--gold); color: var(--white); }
.floating a.phone { animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(63,107,255,.6); } 50% { box-shadow: 0 0 0 12px rgba(63,107,255,0); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
.mobile-nav { display: none; }
/* Laptop: thu gọn nav cho vừa */
@media (max-width: 1440px) {
  .nav > li > a { padding: 10px 8px; font-size: 12.5px; }
  .nav .caret { margin-left: 0; }
  .brand-mark svg { height: 38px; width: 38px; }
  .brand-word b { font-size: 22px; }
}
@media (max-width: 1024px) {
  .tech__slide, .about, .consult, .article-layout { grid-template-columns: 1fr; }
  .about, .consult { gap: 32px; }
  .consult__media { min-height: 320px; }
  .exp__item { min-width: calc((100% - 24px) / 2); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
/* Thu về hamburger khi nav không đủ chỗ */
@media (max-width: 1180px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  /* Mobile nav panel */
  .mobile-nav { display: block; position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: var(--cream-2); z-index: 200; transform: translateX(100%); transition: .3s ease; overflow-y: auto; padding: 20px; box-shadow: var(--shadow); }
  .mobile-nav.is-open { transform: none; }
  .mobile-nav.is-open + .mobile-backdrop { opacity: 1; visibility: visible; }
  .mobile-backdrop { position: fixed; inset: 0; background: rgba(15,31,86,.5); z-index: 199; opacity: 0; visibility: hidden; transition: .3s; }
  .mobile-nav__close { float: right; font-size: 26px; background: none; border: 0; color: var(--green-deep); }
  .mobile-nav a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--green-deep); }
  .mobile-nav .sub a { padding-left: 20px; font-weight: 500; font-size: 14px; color: var(--text); }
  .mobile-nav .group-title { margin-top: 8px; color: var(--gold); text-transform: uppercase; font-size: 13px; letter-spacing: .08em; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; }
  .topbar__left { gap: 14px; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .exp__item { min-width: calc(100% - 0px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero__overlay { background: linear-gradient(90deg, rgba(15,31,86,.88), rgba(15,31,86,.55)); }
}

/* =========================================================
   UI LAYER — Lucide icons, reveal, back-to-top (nhẹ)
   ========================================================= */

/* Icon căn giữa theo dòng chữ */
.licon { display: inline-block; vertical-align: -0.18em; flex-shrink: 0; }
.text-gold { color: var(--gold); }

/* Icon trong nút / link đi cùng chữ */
.btn .licon { vertical-align: middle; }
.service-card__link, .sidebar-list a, .article__meta span, .topbar a, .header__phone,
.footer-hotline, .form-success { display: inline-flex; align-items: center; gap: 6px; }
.article__meta { display: flex; gap: 18px; flex-wrap: wrap; }
.sidebar-list a { gap: 6px; }
.sidebar-list a .licon { color: var(--gold); }
.footer-hotline { display: flex; }

/* Nút social/floating chứa icon */
.footer-social a .licon, .floating a .licon { display: block; }

/* Ô icon trong header phone */
.header__phone-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--cream); display: grid; place-items: center; flex-shrink: 0; }

/* Field icon (đổi từ emoji sang svg) */
.field .icon { top: 6px; color: var(--green); opacity: .55; }
.field .icon .licon { display: block; }

/* Mobile nav close (svg) */
.mobile-nav__close { display: flex; align-items: center; justify-content: center; }

/* Back-to-top */
.to-top {
  position: fixed; left: 18px; bottom: 18px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--green-deep); color: var(--cream); display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--white); }

/* Reveal-on-scroll (thêm class .reveal bằng JS) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Badge chip (component nhẹ) */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(63,107,255,.14); color: var(--green-deep); font-size: 13px; font-weight: 600; }
.chip .licon { color: var(--gold); }

/* Ảnh có thể phóng to */
.lb-enabled { cursor: zoom-in; }

/* Lightbox */
body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center;
  background: rgba(9,16,45,.93); backdrop-filter: blur(4px); padding: 20px;
  opacity: 0; transition: opacity .25s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: 12px; object-fit: contain; box-shadow: 0 30px 90px -20px rgba(0,0,0,.8); animation: lbin .3s ease; }
@keyframes lbin { from { transform: scale(.96); opacity: .4; } to { transform: none; opacity: 1; } }
.lightbox__btn { position: absolute; z-index: 2; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: .2s; }
.lightbox__btn:hover { background: var(--gold); color: #fff; }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: 14px; letter-spacing: .06em; }
@media (max-width: 640px) {
  .lightbox__btn { width: 44px; height: 44px; }
  .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; }
  .lightbox__close { top: 12px; right: 12px; }
}

/* =========================================================
   HIỆU ỨNG & ANIMATION (tinh tế)
   ========================================================= */

/* Thanh tiến trình cuộn */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft)); box-shadow: 0 0 10px rgba(63,107,255,.5); transition: width .08s linear; }

/* Hero: Ken Burns + nội dung xuất hiện */
.hero__slide img { animation: kenburns 16s ease-out infinite alternate; will-change: transform; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero__content > * { opacity: 0; transform: translateY(20px); animation: heroIn .9s cubic-bezier(.22,.61,.36,1) forwards; }
.hero__content .eyebrow { animation-delay: .15s; }
.hero__content h1 { animation-delay: .3s; }
.hero__content > p { animation-delay: .45s; }
.hero__content .btn { animation-delay: .6s; }
.hero__content .hero__badges { animation-delay: .75s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Tiêu đề section: gạch chân gradient */
.section-head h2 { position: relative; padding-bottom: 18px; }
.section-head h2::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 60px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.eyebrow { position: relative; display: inline-block; }

/* Nút: hiệu ứng shine + nhấc nhẹ */
.btn { position: relative; overflow: hidden; }
.btn::before { content: ""; position: absolute; top: 0; left: -80%; width: 45%; height: 100%; z-index: 1;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-20deg); transition: left .65s ease; pointer-events: none; }
.btn:hover::before { left: 130%; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(15,31,86,.5); }
.btn:active { transform: translateY(0); }

/* Thẻ: nâng + đổ bóng khi hover */
.service-card, .news-card, .promo-card, .sidebar-card { transition: transform .38s cubic-bezier(.22,.61,.36,1), box-shadow .38s ease; }
.service-card:hover, .news-card:hover, .promo-card:hover { transform: translateY(-8px); box-shadow: 0 30px 54px -26px rgba(15,31,86,.55); }
.sidebar-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -26px rgba(15,31,86,.45); }
.doctor-card__img { transition: transform .38s cubic-bezier(.22,.61,.36,1), box-shadow .38s ease; }
.doctor-card:hover .doctor-card__img { transform: translateY(-6px) scale(1.01); box-shadow: 0 30px 54px -24px rgba(15,31,86,.55); }

/* Link "Xem chi tiết": mũi tên trượt */
.service-card__link .licon { transition: transform .25s ease; }
.service-card__link:hover .licon { transform: translateX(6px); }

/* Menu: gạch chân trượt */
.nav > li > a::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.22,.61,.36,1); }
.nav > li:hover > a::after, .nav > li.is-active > a::after { transform: scaleX(1); }

/* Dropdown: item trượt nhẹ khi hover */
.dropdown a { transition: background .2s ease, color .2s ease, padding-left .22s ease; }
.dropdown a:hover { padding-left: 20px; }

/* Ảnh khối: zoom nhẹ khi hover */
.about__img, .consult__media { overflow: hidden; }
.about__img img, .consult__media img { transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.about__img:hover img, .consult__media:hover img { transform: scale(1.05); }

/* Nút liên hệ nổi: xuất hiện lệch + icon xoay nhẹ khi hover */
.floating a { animation: floatIn .5s ease backwards; }
.floating a:nth-child(1) { animation-delay: .25s; }
.floating a:nth-child(2) { animation-delay: .37s; }
.floating a:nth-child(3) { animation-delay: .49s; }
@keyframes floatIn { from { opacity: 0; transform: translateX(24px); } }

/* Marquee logo đối tác */
.partners-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners-marquee__track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 26s linear infinite; }
.partners-marquee:hover .partners-marquee__track { animation-play-state: paused; }
.partners-marquee span { font-family: var(--font-serif); font-size: 26px; font-weight: 500; color: var(--green-soft); opacity: .5; white-space: nowrap; letter-spacing: .04em; transition: opacity .3s, color .3s; }
.partners-marquee span:hover { opacity: 1; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Count-up: số nhấn nhá */
.stat b, .tech__specs b { display: inline-block; }

/* Chip: nhấn nhẹ khi hover */
.chip { transition: transform .25s ease, background .25s ease; }
.chip:hover { transform: translateY(-2px); }

/* animate.css: thời lượng mặc định + ẩn trước khi chạy */
:root { --animate-duration: .8s; }
.will-anim { opacity: 0; }

/* Hiệu ứng chuyển trang (vào / rời) */
main { animation: pageEnter .55s cubic-bezier(.22,.61,.36,1) both; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
body.is-leaving main { animation: pageLeave .32s ease forwards; }
@keyframes pageLeave { to { opacity: 0; transform: translateY(-14px); } }

/* Tôn trọng prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero__slide img, .hero__content > *, .floating a, .partners-marquee__track { animation: none !important; }
  .hero__content > * { opacity: 1; transform: none; }
  .btn::before { display: none; }
  .will-anim { opacity: 1; }
  main { animation: none; }
  .animate__animated { animation: none !important; }
}

/* =========================================================
   Magnific Popup — fade + brand Pretty4u
   ========================================================= */
.mfp-bg { background: #091029; opacity: 0; transition: opacity .3s ease; }
.mfp-bg.mfp-ready { opacity: .94; }
.mfp-bg.mfp-removing { opacity: 0; }
.mfp-fade.mfp-wrap .mfp-content { opacity: 0; transform: scale(.97); transition: opacity .3s ease, transform .3s ease; }
.mfp-fade.mfp-wrap.mfp-ready .mfp-content { opacity: 1; transform: none; }
.mfp-fade.mfp-wrap.mfp-removing .mfp-content { opacity: 0; transform: scale(.97); }
.mfp-image-holder .mfp-figure img.mfp-img { border-radius: 12px; box-shadow: 0 30px 90px -20px rgba(0,0,0,.8); }
.mfp-arrow:hover:before, .mfp-arrow:focus:before { border-color: transparent; }
.mfp-arrow-right:after { border-left-color: var(--gold); }
.mfp-arrow-left:after { border-right-color: var(--gold); }
.mfp-counter { color: rgba(255,255,255,.85); font-size: 14px; letter-spacing: .05em; }
.mfp-title { color: rgba(255,255,255,.8); font-size: 14px; }
.mfp-close, .mfp-arrow { transition: opacity .2s, transform .2s; }
.mfp-close:hover { transform: scale(1.1); }

/* =========================================================
   COMPONENTS TRANG DỊCH VỤ (đầy đặn như mẫu)
   ========================================================= */
.page-hero--rich { padding: 74px 0 82px; background: linear-gradient(130deg, var(--green-deep) 0%, var(--green) 60%, #2a4bb8 100%); position: relative; overflow: hidden; }
.page-hero--rich::after { content: ""; position: absolute; right: -90px; top: -90px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(120,150,255,.28), transparent 68%); pointer-events: none; }
.page-hero--rich::before { content: ""; position: absolute; left: -60px; bottom: -120px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(120,150,255,.18), transparent 70%); pointer-events: none; }
.page-hero--rich .container { position: relative; z-index: 1; }
.page-hero--rich h1 { font-size: clamp(32px, 5vw, 54px); }
.page-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; justify-content: center; }
.page-hero--rich .btn--ghost { color: var(--cream); border-color: rgba(255,255,255,.5); }
.page-hero--rich .btn--ghost:hover { background: var(--white); color: var(--green-deep); border-color: var(--white); }

/* Bullet lợi ích trong thẻ dịch vụ */
.benefit-list { margin: 14px 0 16px; display: grid; gap: 8px; }
.benefit-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text); }
.benefit-list .licon { color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.service-card__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.service-card__body h3 a, .service-card__img a { color: inherit; display: block; }

/* Feature grid (Vì sao chọn) */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 24px; }
.feature-card { background: var(--white); border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow); border: 1px solid var(--line); text-align: center; transition: transform .35s ease, box-shadow .35s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 30px 54px -26px rgba(15,31,86,.5); }
.feature-card__ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: linear-gradient(135deg, rgba(63,107,255,.16), rgba(63,107,255,.04)); color: var(--gold); }
.feature-card h3 { font-size: 20px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* Split (Đối tượng phù hợp) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split__media img { width: 100%; display: block; }
.split__body h2 { font-size: clamp(28px, 3.5vw, 40px); }
.check-list { display: grid; gap: 12px; margin: 20px 0 26px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 15px; }
.check-list .licon { color: var(--gold); flex-shrink: 0; margin-top: 3px; }

/* Steps (Quy trình) trên nền xanh */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step { position: relative; padding: 30px 24px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); transition: transform .35s ease, background .35s ease; }
.step:hover { transform: translateY(-6px); background: rgba(255,255,255,.12); }
.step__num { font-family: var(--font-serif); font-size: 46px; color: var(--gold-soft); display: block; line-height: 1; margin-bottom: 12px; }
.step h3 { color: var(--cream); font-size: 19px; }
.step p { color: rgba(255,255,255,.78); font-size: 14px; margin: 0; }

/* Gallery Before/After */
.ba-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.ba-item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/11; cursor: zoom-in; }
.ba-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ba-item:hover img { transform: scale(1.06); }
.ba-item__tag { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }

@media (max-width: 1024px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* =========================================================
   DECOR — nền & hoạ tiết SVG (trang thẩm mỹ, sang & mềm)
   ========================================================= */

/* Hero các trang: gradient + mesh glow sang trọng */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 12% 22%, rgba(120,150,255,.24), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(63,107,255,.26), transparent 40%),
    linear-gradient(130deg, var(--green-deep) 0%, var(--green) 65%, #2a4bb8 100%);
}
.page-hero > .container { position: relative; z-index: 1; }
/* đốm sáng lấp lánh mờ trong hero */
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.6), transparent),
    radial-gradient(2px 2px at 70% 20%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(255,255,255,.45), transparent),
    radial-gradient(2px 2px at 55% 45%, rgba(255,255,255,.4), transparent);
}

/* Texture chấm bi rất mờ cho section gần trắng */
.section--cream-2 {
  background-image: radial-gradient(rgba(63,107,255,.055) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* Blob glow mềm cho section kem */
.section--cream { position: relative; overflow: hidden; }
.section--cream > .container { position: relative; z-index: 1; }
.section--cream::before {
  content: ""; position: absolute; top: -70px; right: -90px; width: 400px; height: 400px; z-index: 0;
  background: radial-gradient(circle, rgba(63,107,255,.12), transparent 64%); pointer-events: none;
}
.section--cream::after {
  content: ""; position: absolute; bottom: -90px; left: -110px; width: 360px; height: 360px; z-index: 0;
  background: radial-gradient(circle, rgba(157,180,255,.16), transparent 66%); pointer-events: none;
}

/* Mesh gradient + phối màu sang cho section xanh (trừ dàn công nghệ) */
.section--green:not(.tech) {
  background-image:
    radial-gradient(circle at 12% 15%, rgba(140,170,255,.30), transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(120,90,220,.24), transparent 46%),
    radial-gradient(circle at 60% 40%, rgba(63,107,255,.20), transparent 55%),
    linear-gradient(135deg, var(--green-deep) 0%, var(--green) 55%, #3a4fc0 100%);
}

/* Sparkle hai bên eyebrow của tiêu đề */
.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: ""; display: inline-block; width: 14px; height: 14px; vertical-align: -1px; opacity: .85;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233f6bff' d='M12 1c1.2 5.5 4.5 8.8 10 10-5.5 1.2-8.8 4.5-10 10-1.2-5.5-4.5-8.8-10-10 5.5-1.2 8.8-4.5 10-10z'/%3E%3C/svg%3E") no-repeat center/contain;
}
.section-head .eyebrow::before { margin-right: 10px; }
.section-head .eyebrow::after { margin-left: 10px; }
.section--green .section-head .eyebrow::before,
.section--green .section-head .eyebrow::after { filter: brightness(1.7); }

.section--green:not(.tech) { position: relative; overflow: hidden; }
.section--green:not(.tech) > .container { position: relative; z-index: 3; }

/* Wave divider nhiều lớp giữa các section */
.wavesep { line-height: 0; overflow: hidden; }
.wavesep svg { display: block; width: 100%; height: 72px; }
@media (max-width: 640px) { .wavesep svg { height: 46px; } }

/* Phối màu: section kem có gradient xanh nhạt sang */
.section--cream { background: linear-gradient(180deg, #eef2fe 0%, var(--cream) 100%); }
.section--cream-2 { background-color: #f3f6ff; }

/* Wave đáy: footer navy vươn lên section trên (không cần biết màu trên) */
.site-footer { position: relative; }
.site-footer::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 60px; transform: translateY(-99%);
  pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%230f1f56' d='M0,60 L1440,60 L1440,26 C1200,52 960,10 720,26 C480,42 240,8 0,30 Z'/%3E%3C/svg%3E") no-repeat bottom center; background-size: 100% 100%;
}

/* Viền gradient tinh tế cho thẻ feature khi hover */
.feature-card { position: relative; }
.feature-card::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, var(--gold), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s ease;
}
.feature-card:hover::after { opacity: 1; }

/* Bớt hoạ tiết khi giảm chuyển động */
@media (prefers-reduced-motion: reduce) { .page-hero::after { opacity: .3; } }
