/* Ortho Trauma Center — Website layout kit.
   OrthoCare-inspired style: split hero, image cards, divider labels, split booking.
   All colors from design-system tokens (var(--*)). */

/* ====== BASE ====== */
.site { background: var(--bg-page); color: var(--text-primary); font-family: var(--font-sans); }
.container { max-width: var(--container-max); margin: 0 auto; padding-inline: 32px; }
.section { padding-block: 80px; }
@media (min-width: 880px) { .section { padding-block: 96px; } }
.section--navy  { background: var(--color-navy); color: #fff; }
.section--soft  { background: var(--surface-brand-soft); }
.section--white { background: #fff; }

/* ====== EYEBROW ====== */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-accent); margin: 0 0 14px; display: inline-flex; gap: 8px; align-items: center;
}
.section--navy .eyebrow { color: var(--teal-300); }

/* Centered divider label — ——— SECTION NAME ——— */
.divider-label {
  display: flex; align-items: center; gap: 16px; margin-bottom: 32px;
}
.divider-label.center { justify-content: center; }
.divider-label span {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-accent); white-space: nowrap;
}
.divider-label::before,
.divider-label::after { content: ''; flex: 1; height: 1px; background: var(--border-subtle); }
.section--navy .divider-label span { color: var(--teal-300); }
.section--navy .divider-label::before,
.section--navy .divider-label::after { background: rgba(255,255,255,.15); }

/* ====== TYPOGRAPHY ====== */
.h-sec {
  font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(26px, 3.5vw, 40px); line-height: 1.15;
  letter-spacing: -.02em; margin: 0 0 14px; color: var(--color-navy);
}
.sub-sec { font-size: 16px; line-height: 1.65; color: var(--text-secondary); margin: 0; max-width: 60ch; }
.section--navy .h-sec  { color: #fff; }
.section--navy .sub-sec { color: var(--blue-200); }
.head-block { margin-bottom: 48px; }
.head-center { text-align: center; margin: 0 auto 48px; display: flex; flex-direction: column; align-items: center; }

/* ====== HEADER ====== */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.hdr__row { display: flex; align-items: center; gap: 16px; height: 68px; }
.hdr__logo { height: 36px; }
.hdr__nav { display: none; gap: 0; flex: 1; justify-content: center; }
.hdr__nav a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer;
  padding: 6px 13px; border-radius: var(--radius-sm); transition: color .15s;
  position: relative; white-space: nowrap;
}
.hdr__nav a:hover { color: var(--color-primary); text-decoration: none; }
.hdr__spacer { flex: 1; }
.hdr__phone {
  display: none; align-items: center; gap: 8px;
  font-weight: 600; color: var(--color-navy); font-size: 14px;
}
.hdr__phone i { width: 16px; height: 16px; color: var(--color-accent); }
@media (min-width: 980px) { .hdr__nav, .hdr__phone { display: flex; } }

/* ====== HERO ====== */
.hero-wrap { background: #fff; overflow: hidden; }

.hero {
  display: grid; grid-template-columns: 1fr;
  min-height: 480px;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 560px; }
}

/* Content side */
.hero__content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 32px 48px;
}
@media (min-width: 1200px) {
  .hero__content { padding: 80px 60px 64px 64px; }
}

.hero__title {
  font-family: var(--font-sans); font-weight: 800;
  font-size: clamp(34px, 5vw, 54px); line-height: 1.06;
  letter-spacing: -.025em; margin: 16px 0 0; color: var(--color-navy);
}
.hero__title em { font-style: normal; color: var(--color-primary); }
.hero__sub { font-size: 17px; line-height: 1.65; color: var(--text-secondary); margin: 20px 0 0; max-width: 50ch; }
.hero__cta   { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero__trust { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* Visual side — two sub-panels */
.hero__visual {
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
@media (max-width: 899px) { .hero__visual { min-height: 280px; } }

.hero__photo {
  position: relative; overflow: hidden;
  background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
}
.hero__photo-label {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border-radius: var(--radius-pill); padding: 6px 16px;
  font-size: 12px; font-weight: 700; color: var(--color-navy); white-space: nowrap;
}

.hero__tech {
  background: linear-gradient(160deg, var(--blue-700) 0%, var(--color-navy) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 20px; gap: 20px;
}
.hero__tech-circles { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__tech-circle {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1.5px solid rgba(84,199,195,.45);
  background: rgba(14,155,151,.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-300);
}
.hero__tech-circle i { width: 30px; height: 30px; }
.hero__tech-stat {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 14px 20px; text-align: center; color: #fff;
}
.hero__tech-stat .n { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--teal-300); line-height: 1; }
.hero__tech-stat .l { font-size: 11.5px; opacity: .75; margin-top: 5px; letter-spacing: .03em; }

/* ====== FEATURE STRIP ====== */
.feat-strip {
  background: #fff; border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.feat-strip__row {
  display: grid; grid-template-columns: repeat(2, 1fr);
  max-width: var(--container-max); margin: 0 auto; padding-inline: 32px;
}
@media (min-width: 760px) { .feat-strip__row { grid-template-columns: repeat(4, 1fr); } }
.feat-strip__item {
  display: flex; align-items: center; gap: 14px; padding: 22px 16px;
  border-right: 1px solid var(--border-subtle);
}
.feat-strip__item:last-child { border-right: none; }
@media (max-width: 759px) { .feat-strip__item:nth-child(2n) { border-right: none; } }
.feat-strip__ico { width: 38px; height: 38px; flex: none; color: var(--color-accent); }
.feat-strip__ico i { width: 26px; height: 26px; }
.feat-strip__text { font-size: 13.5px; font-weight: 600; color: var(--color-navy); line-height: 1.3; }

/* ====== STATS BAR ====== */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stats-grid > div { position: relative; }
.stats-grid > div + div::before { content: ""; position: absolute; left: -8px; top: 6px; bottom: 6px; width: 1px; background: rgba(255,255,255,.14); }

/* ====== WHY CHOOSE US ====== */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-card {
  padding: 28px 24px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-subtle); background: #fff;
  transition: box-shadow .2s, border-color .2s;
}
.why-card:hover { box-shadow: 0 6px 24px rgba(10,42,67,.08); border-color: var(--border-brand); }
.why-card__ico {
  width: 54px; height: 54px; border-radius: var(--radius-md);
  background: var(--surface-accent-soft); color: var(--color-accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.why-card__ico i { width: 26px; height: 26px; }
.why-card h3 { font-size: 16.5px; font-weight: 700; margin: 0 0 8px; color: var(--color-navy); }
.why-card p  { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

/* ====== SPECIALTIES / SERVICES ====== */
.spec-row {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start;
}
@media (min-width: 900px) { .spec-row { grid-template-columns: 1fr 1fr; gap: 56px; } }

.spec-half__label {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.spec-half__label span { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-accent); }
.spec-half__label::after { content: ''; flex: 1; height: 1px; background: var(--border-subtle); }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }

.spec-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); aspect-ratio: 1 / 1.05;
  cursor: pointer; transition: transform .22s, box-shadow .22s;
}
.spec-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(10,42,67,.22); }
.spec-card__bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.spec-card__bg i { width: 56px; height: 56px; color: rgba(255,255,255,.13); }
.spec-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,42,67,.85) 0%, rgba(10,42,67,.15) 55%, transparent 100%);
}
.spec-card__body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 14px 16px;
  display: flex; align-items: flex-end; gap: 10px;
}
.spec-card__icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  flex: none; color: #fff;
}
.spec-card__icon i { width: 16px; height: 16px; }
.spec-card__name { font-size: 13.5px; font-weight: 700; color: #fff; line-height: 1.3; }

/* Illustration icon cards — light tinted backgrounds */
.spec-card--bone   .spec-card__bg { background: #dceeff; }
.spec-card--sports .spec-card__bg { background: #eae8f8; }
.spec-card--joint  .spec-card__bg { background: #f5ece8; }
.spec-card--spine  .spec-card__bg { background: #fdf0e0; }

/* Real icon images inside cards */
.spec-card__img { width: 68%; height: 68%; object-fit: contain; }

/* Technologies list */
.tech-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.tech-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-subtle); background: #fff;
  transition: box-shadow .2s, border-color .2s;
}
.tech-card:hover { box-shadow: 0 4px 18px rgba(10,42,67,.08); border-color: var(--border-brand); }
.tech-card__img {
  width: 88px; height: 72px; border-radius: var(--radius-md); flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.tech-card__img i { width: 30px; height: 30px; color: rgba(255,255,255,.5); }
.tech-card--scan  .tech-card__img { background: linear-gradient(135deg, var(--blue-700) 0%, var(--color-navy) 100%); }
.tech-card--scope .tech-card__img { background: linear-gradient(135deg, var(--teal-700) 0%, var(--blue-700) 100%); }
.tech-card--rehab .tech-card__img { background: linear-gradient(135deg, var(--blue-500) 0%, var(--teal-600) 100%); }
.tech-card__body h3 { font-size: 15px; font-weight: 700; color: var(--color-navy); margin: 0 0 5px; }
.tech-card__body p  { font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); margin: 0; }

/* ====== DOCTOR (featured profile) ====== */
.doc-featured {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
@media (min-width: 900px) { .doc-featured { grid-template-columns: 320px 1fr; gap: 64px; } }

.doc-featured__photo {
  aspect-ratio: 3/4; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.doc-featured__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.doc-featured__badge {
  position: absolute; left: 18px; bottom: 18px;
  background: var(--color-navy); color: #fff;
  border-radius: var(--radius-lg); padding: 12px 18px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.doc-featured__badge .num {
  font-family: var(--font-mono); font-size: 26px; font-weight: 700;
  color: var(--teal-300); line-height: 1;
}
.doc-featured__badge .lbl { font-size: 10.5px; font-weight: 600; opacity: .75; margin-top: 4px; letter-spacing: .04em; }

.doc-featured__name { font-weight: 800; font-size: clamp(24px,3.5vw,36px); color: #fff; margin: 10px 0 4px; }
.doc-featured__role { font-size: 15px; color: var(--teal-300); font-weight: 600; margin: 0 0 16px; }
.doc__creds { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 28px; }
.doc__cred  { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.doc__cred i { width: 18px; height: 18px; color: var(--teal-300); flex: none; margin-top: 2px; }

/* ====== PROCESS ====== */
.proc-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px)  { .proc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .proc-grid { grid-template-columns: repeat(4, 1fr); } }

.proc-card {
  padding: 26px 24px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-subtle); background: #fff;
  position: relative;
}
.proc-dot {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-accent-soft); color: var(--color-accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  border: 2px solid var(--teal-200);
}
.proc-dot i  { width: 22px; height: 22px; }
.proc-num    { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--color-accent); margin-bottom: 10px; }
.proc-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: var(--color-navy); }
.proc-card p  { font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

/* ====== TESTIMONIALS — auto-slide ====== */
.tst-slider-wrap {
  overflow: hidden; position: relative;
  padding-block: 12px 80px;
}
/* Fade edges */
.tst-slider-wrap::before,
.tst-slider-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.tst-slider-wrap::before { left:  0; background: linear-gradient(to right, #fff, transparent); }
.tst-slider-wrap::after  { right: 0; background: linear-gradient(to left,  #fff, transparent); }

.tst-track {
  display: flex; gap: 20px; width: max-content;
  animation: tst-scroll 36s linear infinite;
}
.tst-track:hover { animation-play-state: paused; }

@keyframes tst-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tst-card {
  width: 380px; flex: none;
  padding: 26px 24px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-subtle); background: #fff;
  box-shadow: 0 2px 12px rgba(10,42,67,.05);
}
.tst__stars { display: flex; gap: 3px; color: var(--amber-500); margin-bottom: 14px; }
.tst__stars i { width: 15px; height: 15px; fill: currentColor; }
.tst__quote { font-size: 15px; line-height: 1.65; color: var(--text-primary); margin: 0 0 18px; font-style: italic; }
.tst__who  { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.tst__name { font-size: 14px; font-weight: 700; color: var(--color-navy); }
.tst__meta { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ====== BOOKING — split layout ====== */
.book-section { overflow: hidden; }
.book {
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 900px) { .book { grid-template-columns: 1fr 1fr; } }

.book__left {
  background: var(--color-navy);
  padding: 64px 40px; display: flex; flex-direction: column; justify-content: center;
}
@media (min-width: 1200px) { .book__left { padding: 80px 72px; } }

.book__right {
  background: var(--neutral-50); padding: 64px 40px;
}
@media (min-width: 1200px) { .book__right { padding: 80px 64px; } }

.book__form   { display: flex; flex-direction: column; gap: 16px; }
.book__row    { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.book__times  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.book__info   { display: flex; flex-direction: column; gap: 18px; }
.book__contact { display: flex; gap: 14px; align-items: flex-start; }
.book__contact .ico {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  background: rgba(255,255,255,.08); color: var(--teal-300);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.book__contact .ico i { width: 20px; height: 20px; }
.book__contact .lbl { font-size: 12.5px; color: var(--blue-200); margin-bottom: 2px; }
.book__contact .val { font-size: 15px; font-weight: 600; color: #fff; }
.book__contact .val.mono { font-family: var(--font-mono); }

/* ====== FOOTER FEATURE STRIP ====== */
.ftr-feat { background: var(--neutral-100); border-top: 1px solid var(--border-subtle); }
.ftr-feat__row {
  display: grid; grid-template-columns: repeat(2, 1fr);
  max-width: var(--container-max); margin: 0 auto; padding-inline: 32px;
}
@media (min-width: 760px) { .ftr-feat__row { grid-template-columns: repeat(4, 1fr); } }
.ftr-feat__item {
  display: flex; align-items: center; gap: 14px; padding: 22px 16px;
  border-right: 1px solid var(--border-subtle);
}
.ftr-feat__item:last-child { border-right: none; }
@media (max-width: 759px) { .ftr-feat__item:nth-child(2n) { border-right: none; } }
.ftr-feat__ico   { width: 38px; height: 38px; flex: none; color: var(--color-accent); }
.ftr-feat__ico i { width: 24px; height: 24px; }
.ftr-feat__title { font-size: 13.5px; font-weight: 700; color: var(--color-navy); }
.ftr-feat__sub   { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }

/* ====== FOOTER ====== */
.ftr { background: var(--neutral-900); color: var(--neutral-300); padding-block: 56px 28px; }
.ftr__grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 760px) { .ftr__grid { grid-template-columns: 2fr 1fr 1fr; } }
.ftr h4 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.ftr a, .ftr li { font-size: 14px; color: var(--neutral-400); line-height: 2.1; cursor: pointer; list-style: none; }
.ftr a:hover { color: #fff; text-decoration: none; }
.ftr ul { margin: 0; padding: 0; }
.ftr__bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 24px;
  font-size: 13px; color: var(--neutral-500); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ====== PLACEHOLDER ====== */
.ph {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  background: linear-gradient(150deg, var(--blue-100), var(--surface-accent-soft));
  border: 1px solid var(--border-brand); display: flex; align-items: center; justify-content: center;
}
.ph__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--blue-500); }
.ph__inner i { width: 46px; height: 46px; }
.ph__label { font-size: 13px; font-weight: 500; color: var(--blue-600); background: rgba(255,255,255,.7); padding: 4px 12px; border-radius: var(--radius-pill); }

/* ====== FLOATING CONTACT BUTTONS ====== */
.float-btns {
  position: fixed; bottom: 28px; right: 24px;
  display: flex; flex-direction: column; gap: 12px;
  z-index: 999;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transition: transform .2s, box-shadow .2s;
  overflow: hidden; text-decoration: none;
}
.float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.float-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Zalo — keep its own brand colors via the logo image */
.float-btn--zalo { background: #fff; }

/* Phone — brand teal */
.float-btn--phone { background: var(--color-accent); }
.float-btn--phone img { width: 58%; height: 58%; object-fit: contain; }

/* Pulse ring on Zalo to draw attention */
.float-btn--zalo::after {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(14,155,151,.5);
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(14,155,151,.45); }
  70%  { box-shadow: 0 0 0 14px rgba(14,155,151,.0); }
  100% { box-shadow: 0 0 0 0   rgba(14,155,151,.0); }
}

/* ====== ANIMATIONS ====== */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { animation: fadeUp .5s ease both; }
}
@keyframes fadeUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
