/* =========================================================
   Bscare24 — Stylesheet
   Phong cách: Y tế chuyên nghiệp, sạch sẽ, đáng tin cậy
   ========================================================= */

:root {
  --primary: #0E7C9C;
  --primary-dark: #0A5F7A;
  --primary-light: #E8F4F8;
  --primary-50: #F4FAFC;
  --accent: #F2994A;
  --accent-dark: #E0813A;
  --success: #16A34A;
  --danger: #DC2626;
  --text: #1F2937;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --bg: #FFFFFF;
  --bg-soft: #F9FAFB;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(14,124,156,.1), 0 4px 6px -4px rgba(14,124,156,.08);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --container: 1200px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= Header ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--primary-dark);
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.logo-text { letter-spacing: -.02em; }
.logo-text span { color: var(--accent); }
.logo-text .logo-s { color: #0E7C9C; }
.site-footer .logo-text .logo-s { color: #0E7C9C; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a.active { color: var(--primary); }
.main-nav a.active::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px; background: var(--accent); border-radius: 2px;
}

.header-cta {
  display: flex; align-items: center; gap: 12px;
}
.phone-link {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--primary-dark);
  font-size: 15px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: all .2s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-secondary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: var(--primary-light); color: var(--primary-dark); }
.btn-ghost:hover { background: #d6ebf2; color: var(--primary-dark); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.menu-toggle { display: none; padding: 8px; }

/* Mobile */
@media (max-width: 960px) {
  .main-nav, .header-cta .phone-link, .header-cta .btn-primary { display: none; }
  .menu-toggle { display: block; }
  .main-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-light);
  }
  .main-nav.open a { padding: 8px 0; font-size: 16px; width: 100%; border-bottom: 1px solid var(--border-light); }
}

/* ================= Hero ================= */
.hero {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-light) 100%);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,124,156,.08), transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 50px; align-items: center;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; padding: 8px 14px;
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% {opacity:1} 50% {opacity:.4} }

.hero h1 {
  font-size: 44px; line-height: 1.15; font-weight: 800;
  color: #0F172A; margin-bottom: 18px; letter-spacing: -.02em;
}
.hero h1 .highlight { color: var(--primary); position: relative; }
.hero p.lead {
  font-size: 18px; color: var(--text-muted);
  margin-bottom: 28px; max-width: 540px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 500px;
}
.hero-stat { }
.hero-stat .num { font-size: 28px; font-weight: 800; color: var(--primary-dark); }
.hero-stat .label { font-size: 13px; color: var(--text-muted); }

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(14,124,156,.25);
  aspect-ratio: 4/5;
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-floating-card {
  position: absolute; bottom: 20px; left: 20px;
  background: #fff; padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  max-width: 80%;
}
.hero-floating-card .icon-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--success); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-floating-card .text { font-size: 13px; }
.hero-floating-card .text strong { display: block; color: var(--text); font-size: 14px; }
.hero-floating-card .text span { color: var(--text-muted); }

@media (max-width: 880px) {
  .hero { padding: 40px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 16px; }
}

/* ================= Section ================= */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-eyebrow {
  color: var(--primary); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 12px;
}
.section h2 {
  font-size: 36px; font-weight: 800; line-height: 1.2;
  color: #0F172A; margin-bottom: 14px; letter-spacing: -.02em;
}
.section .lead {
  font-size: 17px; color: var(--text-muted);
}
@media (max-width: 880px) {
  .section { padding: 56px 0; }
  .section h2 { font-size: 28px; }
}

/* ================= Service cards ================= */
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all .25s ease;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon-box {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 19px; font-weight: 700; color: #0F172A; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--text-muted); margin-bottom: 18px; flex: 1; }
.service-card .price-tag {
  font-size: 14px; font-weight: 600; color: var(--accent-dark);
  margin-bottom: 14px;
}
.service-card .link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 14px;
}
.service-card .link:hover { gap: 10px; }

/* ================= Why us ================= */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why-item {
  text-align: center; padding: 24px 16px;
}
.why-item .icon-big {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 8px 20px -6px rgba(14,124,156,.45);
}
.why-item h4 { font-size: 17px; font-weight: 700; color: #0F172A; margin-bottom: 8px; }
.why-item p { font-size: 14.5px; color: var(--text-muted); }

/* ================= Process ================= */
.process-list {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-list::before {
  content: '';
  position: absolute; top: 30px; left: 12.5%; right: 12.5%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px);
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative; z-index: 1;
}
.process-step .number {
  width: 60px; height: 60px;
  background: #fff;
  border: 3px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px;
  margin: 0 auto 16px;
}
.process-step h4 { font-size: 16px; font-weight: 700; color: #0F172A; margin-bottom: 6px; }
.process-step p { font-size: 14px; color: var(--text-muted); }
@media (max-width: 768px) {
  .process-list { grid-template-columns: 1fr 1fr; }
  .process-list::before { display: none; }
}

/* ================= Doctor card ================= */
.doctor-block {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 40px; align-items: center;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}
.doctor-img { aspect-ratio: 1; }
.doctor-img img { width: 100%; height: 100%; object-fit: cover; }
.doctor-info { padding: 32px; }
.doctor-info .role { color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.doctor-info h3 { font-size: 26px; font-weight: 800; margin: 6px 0 14px; color: #0F172A; }
.doctor-info p { color: var(--text-muted); margin-bottom: 14px; }
.doctor-creds { list-style: none; margin-top: 16px; }
.doctor-creds li { display: flex; gap: 10px; margin-bottom: 8px; font-size: 14.5px; }
.doctor-creds li::before { content: '✓'; color: var(--success); font-weight: 700; }
@media (max-width: 768px) {
  .doctor-block { grid-template-columns: 1fr; }
  .doctor-info { padding: 24px; }
}

/* ================= Pricing ================= */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.price-table th, .price-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
}
.price-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .04em;
}
.price-table tr:last-child td { border-bottom: 0; }
.price-table tr:hover td { background: var(--primary-50); }
.price-table .price { font-weight: 700; color: var(--accent-dark); white-space: nowrap; }

/* ================= Testimonials ================= */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.testimonial::before {
  content: '“';
  position: absolute; top: 8px; right: 20px;
  font-size: 80px; line-height: 1; font-family: Georgia, serif;
  color: var(--primary-light);
}
.testimonial .stars { color: var(--accent); margin-bottom: 12px; }
.testimonial p { font-size: 15px; color: var(--text); margin-bottom: 18px; line-height: 1.6; }
.testimonial .author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial .author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial .author strong { display: block; font-size: 14px; }
.testimonial .author span { font-size: 13px; color: var(--text-muted); }

/* ================= FAQ ================= */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s;
}
.faq-item.open { box-shadow: var(--shadow); border-color: var(--primary); }
.faq-q {
  width: 100%; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 16px; text-align: left;
  color: var(--text);
  background: transparent;
}
.faq-q:hover { color: var(--primary); }
.faq-q .chev {
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform .25s ease;
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--primary); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner { padding: 0 22px 18px; color: var(--text-muted); font-size: 15px; line-height: 1.65; }

/* ================= CTA banner ================= */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%);
  border-radius: 50%;
}
.cta-banner h2 { color: #fff; font-size: 32px; margin-bottom: 14px; position: relative; z-index: 1; }
.cta-banner p { color: rgba(255,255,255,.85); font-size: 17px; margin-bottom: 28px; position: relative; z-index: 1; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-primary { position: relative; z-index: 1; }
.cta-banner .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ================= Forms ================= */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid.full { grid-template-columns: 1fr; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 14px; }
.form-field label .req { color: var(--danger); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,124,156,.15);
}
.form-field textarea { min-height: 100px; resize: vertical; }
.form-card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}
.form-success { color: var(--success); font-weight: 600; padding: 12px; background: #ECFDF5; border-radius: var(--radius-sm); margin-top: 12px; display: none; }
.form-success.show { display: block; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ================= Page header (inner pages) ================= */
.page-head {
  background: linear-gradient(135deg, var(--primary-50), var(--primary-light));
  padding: 56px 0 48px;
  text-align: center;
}
.page-head h1 { font-size: 38px; font-weight: 800; color: #0F172A; margin-bottom: 10px; letter-spacing: -.02em; }
.page-head .crumbs { font-size: 14px; color: var(--text-muted); }
.page-head .crumbs a { color: var(--text-muted); }
.page-head .crumbs a:hover { color: var(--primary); }

/* ================= Footer ================= */
.site-footer {
  background: #0F172A;
  color: rgba(255,255,255,.75);
  padding: 60px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h5 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo .logo-text { color: #fff; }
.site-footer p, .site-footer a, .site-footer li { font-size: 14.5px; color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.footer-contact div { margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ================= Mobile sticky bar ================= */
.mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 8px;
  z-index: 99;
  box-shadow: 0 -4px 12px rgba(0,0,0,.06);
}
.mobile-bar-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 4px;
  font-size: 12px; font-weight: 600;
  border-radius: var(--radius-sm);
  text-align: center;
}
.mobile-bar a svg { margin-bottom: 4px; }
.mobile-bar .mb-call { background: var(--primary); color: #fff; }
.mobile-bar .mb-zalo { background: #0068FF; color: #fff; }
.mobile-bar .mb-book { background: var(--accent); color: #fff; }
@media (max-width: 768px) {
  .mobile-bar { display: block; }
  body { padding-bottom: 70px; }
}

/* ================= Utility ================= */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.text-muted { color: var(--text-muted); }
