/* ============================================================
   ASCLEPIUS INTERNATIONAL (HONG KONG) LIMITED
   Style — Dark clinical teal theme
   ============================================================ */

:root{
  --bg: #0B1213;
  --ink: #EAF0EF;
  --teal: #1F8A8C;
  --mist: #C2DEDD;
  --panel: #10201F;
  --hair: #1F3A38;
  --ink-deep: #C7D6D3;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  font-family: "Segoe UI", -apple-system, system-ui, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3{
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.18;
  margin: 0 0 .55em;
  color: var(--ink);
  font-weight: 700;
}

p{ margin: 0 0 1em; }

a{ color: var(--teal); }

.wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- ECG pulse glyph (pure CSS, em-scaled) ---------- */
.ecg{
  --pulse-color: var(--teal);
  display: inline-block;
  width: 2.75em;
  height: 1.125em;
  font-size: 16px;
  vertical-align: middle;
  background:
    linear-gradient(var(--pulse-color), var(--pulse-color)) 0 0.4375em / 0.875em 0.125em no-repeat,
    linear-gradient(var(--pulse-color), var(--pulse-color)) 0.875em 0.25em / 0.125em 0.125em no-repeat,
    linear-gradient(var(--pulse-color), var(--pulse-color)) 1em 0.125em / 0.125em 0.125em no-repeat,
    linear-gradient(var(--pulse-color), var(--pulse-color)) 1.125em 0 / 0.1875em 1.0625em no-repeat,
    linear-gradient(var(--pulse-color), var(--pulse-color)) 1.3125em 0.1875em / 0.125em 0.125em no-repeat,
    linear-gradient(var(--pulse-color), var(--pulse-color)) 1.4375em 0.3125em / 0.125em 0.125em no-repeat,
    linear-gradient(var(--pulse-color), var(--pulse-color)) 1.5625em 0.4375em / 1.1875em 0.125em no-repeat;
}
.ecg.sm{ font-size: 9px; }
.ecg.lg{ font-size: 24px; }

/* ---------- CSS heart ---------- */
.heart{
  --pulse-color: var(--teal);
  position: relative;
  display: inline-block;
  width: 1.25em;
  height: 1.1em;
  font-size: 16px;
  vertical-align: middle;
  animation: heartbeat 1.6s ease-in-out infinite;
}
.heart:before, .heart:after{
  content: "";
  position: absolute;
  width: .6em;
  height: .6em;
  border-radius: 50%;
  background: var(--pulse-color);
  top: 0;
}
.heart:before{ left: 0; }
.heart:after{ left: .6em; }
.heart i{
  position: absolute;
  left: .2em;
  top: .32em;
  width: 0;
  height: 0;
  border-left: .42em solid transparent;
  border-right: .42em solid transparent;
  border-top: .75em solid var(--pulse-color);
}
@keyframes heartbeat{
  0%, 100%{ transform: scale(1); }
  12%{ transform: scale(1.12); }
  24%{ transform: scale(1); }
  36%{ transform: scale(1.08); }
  48%{ transform: scale(1); }
}

/* ============================================================
   PULSE NAV — sticky top strip
   ============================================================ */
.pulse-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--teal);
  transition: box-shadow .25s ease;
}
.pulse-nav.scrolled{ box-shadow: 0 6px 20px #000000; }

.pulse-nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-text{ display: flex; flex-direction: column; line-height: 1.2; }
.wordmark{
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
}
.caption{
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 2px;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  padding: 8px 10px;
  border-radius: 6px;
  transition: color .2s ease;
}
.nav-links a:hover{ color: var(--mist); }
.nav-links a.active{ color: var(--teal); }

.pulse-ic{
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.nav-links a.active .pulse-ic{
  background: var(--teal);
  border-radius: 5px;
  padding: 3px 4px;
}
.nav-links a.active .pulse-ic .ecg{ --pulse-color: var(--ink); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 100%;
  background: var(--teal);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display: inline-block;
  padding: 14px 26px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  border: 1px solid var(--teal);
  transition: transform .15s ease, background .2s ease;
}
.btn-primary{ background: var(--teal); color: var(--ink); }
.btn-primary:hover{ background: #177D7F; transform: translateY(-1px); }
.btn-outline{ background: transparent; color: var(--teal); }
.btn-outline:hover{ background: #0E1D1E; color: var(--ink); transform: translateY(-1px); }

/* ============================================================
   VITALS HERO
   ============================================================ */
.vitals-hero{
  background: var(--bg);
  padding: 92px 0 84px;
  border-bottom: 1px solid var(--hair);
}
.vitals-hero-inner{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow{
  display: inline-block;
  background: var(--teal);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title{
  font-size: 54px;
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero-sub{
  font-size: 18px;
  color: var(--ink);
  max-width: 620px;
  margin-bottom: 30px;
}
.hero-cta{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.vitals-monitor{
  background: var(--panel);
  border: 1px solid var(--teal);
  border-radius: 12px;
  padding: 26px 28px 28px;
  position: relative;
  box-shadow: 0 24px 60px #000000;
}
.power-dot{
  position: absolute;
  top: 16px;
  left: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  animation: dotpulse 2.2s infinite;
}
@keyframes dotpulse{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(31,138,140,.5); }
  60%{ box-shadow: 0 0 0 8px rgba(31,138,140,0); }
}
.monitor-label{
  position: absolute;
  top: 13px;
  left: 36px;
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--teal);
  font-weight: 700;
}
.monitor-ecg{
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 46px 0 10px;
}
.monitor-line{
  position: relative;
  display: block;
  height: 2px;
  background: var(--hair);
  margin: 4px 0 26px;
}
.monitor-line:after{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 62%;
  height: 2px;
  background: var(--teal);
}
.monitor-readouts{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.readout-bar{
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--teal);
}
.readout-bar.r1{ width: 74%; }
.readout-bar.r2{ width: 46%; }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head{ max-width: 780px; margin-bottom: 52px; }
.section-kicker{
  color: var(--teal);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 700;
}
.section-title{ font-size: 38px; margin: 14px 0 16px; }
.section-lead{ font-size: 18px; color: var(--ink); }

/* ============================================================
   CARE GRID
   ============================================================ */
.care-grid{ background: var(--bg); padding: 96px 0; }
.care-grid-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.care-card{
  background: var(--panel);
  border: 1px solid var(--hair);
  border-top: 3px solid var(--teal);
  border-radius: 10px;
  padding: 28px 26px;
  transition: transform .25s ease, border-color .25s ease;
}
.care-grid .care-card:hover{
  border-color: var(--teal);
  transform: translateY(-4px);
}
.card-glyph{ margin-bottom: 16px; }
.care-card h3{ font-size: 21px; margin-bottom: 12px; }
.care-card p{ font-size: 15px; margin: 0; }

/* ============================================================
   ROUNDS BAND
   ============================================================ */
.rounds-band{
  background: var(--panel);
  border-top: 1px solid var(--teal);
  border-bottom: 1px solid var(--teal);
  padding: 96px 0;
}
.rounds-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 8px;
}
.round-card{
  border-left: 2px solid var(--teal);
  padding: 6px 0 6px 22px;
}
.round-num{
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--mist);
  line-height: 1;
}
.round-card h3{ font-size: 18px; margin: 8px 0 8px; }
.round-card p{ font-size: 14.5px; margin: 0; }
.rounds-note{
  margin: 40px 0 0;
  max-width: 780px;
  font-size: 15.5px;
  color: var(--ink-deep);
}

/* ============================================================
   CHART DUO
   ============================================================ */
.chart-duo{ background: var(--bg); padding: 96px 0; }
.chart-duo-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.chart-panel{
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 30px 30px 28px;
}
.chart-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.chart-head h3{ font-size: 22px; margin: 0; }
.chart-stat{
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--mist);
}
.chart-stat [data-count]{
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--mist);
  margin-right: 4px;
}
.chart-bars{
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  margin: 26px 0 8px;
  border-bottom: 2px solid var(--hair);
}
.chart-bars span{
  flex: 1;
  background: var(--teal);
  border-radius: 4px 4px 0 0;
  min-width: 6px;
}
.chart-bars span.alt{ background: var(--mist); }
.bar-1{ height: 58%; }
.bar-2{ height: 72%; }
.bar-3{ height: 64%; }
.bar-4{ height: 86%; }
.bar-5{ height: 70%; }
.bar-6{ height: 80%; }
.bar-7{ height: 60%; }
.chart-panel.cp-b .bar-1{ height: 88%; }
.chart-panel.cp-b .bar-2{ height: 78%; }
.chart-panel.cp-b .bar-3{ height: 70%; }
.chart-panel.cp-b .bar-4{ height: 62%; }
.chart-panel.cp-b .bar-5{ height: 54%; }
.chart-panel.cp-b .bar-6{ height: 48%; }
.chart-panel.cp-b .bar-7{ height: 40%; }
.chart-panel p{ font-size: 15px; margin: 14px 0 0; }

/* ============================================================
   ADMISSIONS BAND
   ============================================================ */
.admissions-band{
  background: var(--bg);
  border-top: 1px solid var(--hair);
  padding: 88px 0;
}
.admissions-inner{ text-align: center; max-width: 780px; margin: 0 auto; }
.admissions-inner .ecg.lg{ display: block; margin: 0 auto 24px; }
.admissions-inner .section-title{ font-size: 34px; }
.admissions-inner > p{ font-size: 17px; margin-bottom: 30px; }
.admissions-cta{ justify-content: center; }

/* ============================================================
   WARD FOOTER
   ============================================================ */
.ward-footer{
  background: var(--bg);
  border-top: 1px solid var(--teal);
  padding: 48px 0 30px;
}
.footer-row1{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-links{ display: flex; gap: 26px; }
.footer-links a{
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
}
.footer-links a:hover{ color: var(--teal); }
.footer-contact{
  font-size: 14px;
  color: var(--teal);
  letter-spacing: .04em;
}
.footer-contact a{ color: var(--teal); text-decoration: none; }
.footer-contact a:hover{ color: var(--mist); }
.footer-row2{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
}
.footer-row2 .ecg{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.footer-row2 p{
  margin: 0;
  font-size: 12.5px;
  color: var(--ink);
  padding: 0 48px;
}
.footer-row2 a{ color: var(--ink); text-decoration: underline; }
.footer-row2 a:hover{ color: var(--teal); }

/* ============================================================
   SECONDARY PAGES — hero, services, process, cta, contact
   ============================================================ */
.page-hero{
  background: var(--bg);
  padding: 84px 0 64px;
  border-bottom: 1px solid var(--hair);
}
.page-hero h1{ font-size: 46px; max-width: 820px; }
.page-intro{ font-size: 18px; max-width: 720px; margin: 0; }

.service-list{ padding: 86px 0 40px; }
.service-item{
  max-width: 860px;
  margin: 0 auto 56px;
  padding: 0 0 56px;
  border-bottom: 1px solid var(--hair);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
}
.service-item:last-child{ border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.service-no{
  font-family: Georgia, serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.service-body h2{ font-size: 26px; margin-bottom: 14px; }
.service-body p{ margin-bottom: 14px; }

.process-overview{
  background: var(--panel);
  border-top: 1px solid var(--teal);
  border-bottom: 1px solid var(--hair);
  padding: 90px 0;
}
.process-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 8px;
}
.process-step{ border-top: 2px solid var(--teal); padding-top: 18px; }
.process-step h3{ font-size: 18px; margin-bottom: 8px; }
.process-step p{ font-size: 14.5px; margin: 0; }

.cta-band{ background: var(--bg); padding: 84px 0; text-align: center; }
.cta-band .ecg.lg{ display: block; margin: 0 auto 24px; }
.cta-band h2{ font-size: 34px; max-width: 720px; margin: 0 auto 14px; }
.cta-band p{ font-size: 17px; max-width: 640px; margin: 0 auto 30px; }

.contact-layout{ padding: 86px 0; }
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form-panel{
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 34px 32px;
}
.contact-form-panel h2{ font-size: 26px; }
.contact-form-panel > p{ font-size: 15px; margin-bottom: 4px; }
.contact-form label{
  display: block;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mist);
  font-weight: 700;
  margin: 20px 0 6px;
}
.contact-form input, .contact-form textarea{
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--hair);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus{
  outline: none;
  border-color: var(--teal);
}
.form-submit{ margin-top: 24px; border: none; cursor: pointer; }
.form-note{ margin-top: 16px; font-size: 14px; color: var(--teal); }

.contact-details h2{ font-size: 26px; margin-bottom: 20px; }
.detail-block{ margin-bottom: 24px; }
.detail-label{
  display: block;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 6px;
}
.detail-block p{ margin: 0; font-size: 16px; }
.detail-block a{ color: var(--ink); text-decoration: none; }
.detail-block a:hover{ color: var(--teal); }

.faq{
  margin-top: 46px;
  border-top: 1px solid var(--hair);
  padding-top: 28px;
}
.faq-item{ border-bottom: 1px solid var(--hair); }
.faq-question{
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-question:hover{ color: var(--mist); }
.faq-mark{
  color: var(--teal);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-mark{ transform: rotate(45deg); }
.faq-answer{
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.open .faq-answer{ max-height: 320px; }
.faq-answer p{ margin: 0 0 18px; font-size: 15px; }

/* ============================================================
   SCROLL REVEAL (safe without JS — see noscript fallback)
   ============================================================ */
.fade-up{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible{
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px){
  .vitals-hero-inner{ gap: 40px; }
  .hero-title{ font-size: 46px; }
}

@media (max-width: 920px){
  .nav-toggle{ display: flex; }
  .pulse-nav-inner{ flex-wrap: wrap; }
  .nav-links{
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--teal);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 24px 18px;
    display: none;
  }
  .nav-links.open{ display: flex; }
  .nav-links a{ padding: 12px 8px; font-size: 13px; }

  .vitals-hero-inner{ grid-template-columns: 1fr; }
  .hero-title{ font-size: 42px; }
  .vitals-monitor{ max-width: 560px; }
  .care-grid-list{ grid-template-columns: 1fr 1fr; }
  .rounds-grid, .process-grid{ grid-template-columns: 1fr 1fr; }
  .chart-duo-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .page-hero h1{ font-size: 38px; }
}

@media (max-width: 640px){
  .care-grid-list, .rounds-grid, .process-grid{ grid-template-columns: 1fr; }
  .hero-title{ font-size: 33px; }
  .section-title{ font-size: 29px; }
  .service-item{ grid-template-columns: 1fr; gap: 14px; }
  .service-no{ font-size: 30px; }
  .footer-row1{ flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-links{ gap: 18px; }
  .footer-row2 p{ font-size: 11px; padding: 0 40px 0 0; }
  .footer-row2{ justify-content: flex-start; }
  .vitals-hero, .care-grid, .rounds-band, .chart-duo, .admissions-band,
  .page-hero, .service-list, .process-overview, .cta-band, .contact-layout{ padding-left: 0; padding-right: 0; }
  .vitals-hero{ padding-top: 60px; padding-bottom: 56px; }
  .hero-cta{ flex-direction: column; }
  .hero-cta .btn{ text-align: center; }
}
