/* =========================================================
   We Care Cardiac Ambulance Service — Landing Page Styles
   ========================================================= */

:root {
  --purple: #8e1384;
  --purple-dark: #5e0b58;
  --purple-deep: #3a0637;
  --purple-soft: #f6eaf5;
  --yellow: #f7e463;
  --red: #e0262c;
  --red-dark: #b81a20;
  --green: #25d366;
  --ink: #1f1625;
  --text: #4a4152;
  --muted: #7a7182;
  --line: #ebe2ea;
  --bg: #ffffff;
  --bg-alt: #fbf7fb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(62, 6, 58, 0.10);
  --shadow-lg: 0 20px 50px rgba(62, 6, 58, 0.18);
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 92px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px;
  border: 0; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--emergency { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(224, 38, 44, .35); }
.btn--emergency:hover { background: var(--red-dark); }
.btn--outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .7); }
.btn--outline:hover { background: #fff; color: var(--purple); border-color: #fff; }
.btn--primary { background: var(--purple); color: #fff; box-shadow: 0 8px 22px rgba(142, 19, 132, .3); }
.btn--primary:hover { background: var(--purple-dark); }
.btn--light { background: #fff; color: var(--purple); }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-soft);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--yellow); background: rgba(255, 255, 255, .1); }

.text-accent { color: var(--yellow); }

.section { padding: 96px 0; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; }
.section-head--light .section-title { color: #fff; }
.section-head--light p { color: rgba(255, 255, 255, .78); }

.pulse-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); position: relative; flex-shrink: 0;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; animation: pulse 1.6s ease-out infinite;
}
.pulse-dot--green { background: var(--green); }
@keyframes pulse { to { transform: scale(3); opacity: 0; } }

/* ---------- Topbar ---------- */
.topbar { background: var(--purple-deep); color: #fff; font-size: 13.5px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; }
.topbar__msg { margin: 0; display: flex; align-items: center; gap: 10px; }
.topbar__links { display: flex; gap: 20px; font-weight: 600; }
.topbar__links a:hover { color: var(--yellow); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(62, 6, 58, .08); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { height: 84px; display: flex; align-items: center; flex-shrink: 0; }
.logo__mark img { height: 100%; width: auto; display: block; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong { font-family: var(--font-head); font-weight: 800; font-size: 21px; color: var(--purple); letter-spacing: .02em; }
.logo__text small { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.logo--light .logo__text strong { color: #fff; }
.logo--light .logo__text small { color: rgba(255, 255, 255, .7); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--ink); position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--purple); transition: width .25s ease;
}
.nav a:not(.btn):hover::after,
.nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--purple); }
.nav .nav__cta { color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: var(--purple-soft);
  border-radius: 10px; cursor: pointer; padding: 12px 11px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--purple); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(247, 228, 99, .14), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(224, 38, 44, .25), transparent 45%),
    linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-dark) 45%, var(--purple) 100%);
  color: #fff;
  padding: 90px 0 110px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  max-width: none;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(224, 38, 44, .35), transparent 45%),
    linear-gradient(100deg, rgba(58, 6, 55, .96) 0%, rgba(94, 11, 88, .88) 45%, rgba(142, 19, 132, .55) 100%);
}
.hero__ecg { position: absolute; left: 0; right: 0; bottom: 70px; width: 100%; height: 120px; opacity: .65; }
.hero__ecg path {
  fill: none; stroke: var(--yellow); stroke-width: 3.5;
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
  animation: ecg 4s linear infinite;
}
@keyframes ecg { to { stroke-dashoffset: 0; } }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.4vw, 62px); font-weight: 800; letter-spacing: -.01em; }
.hero__lead { font-size: 18px; color: rgba(255, 255, 255, .85); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badges li {
  padding: 10px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 14px; color: rgba(255, 255, 255, .85);
}
.hero__badges span { font-family: var(--font-head); font-weight: 700; color: var(--yellow); margin-right: 4px; }
.hero__note { font-size: 12px; color: rgba(255, 255, 255, .55); margin-top: 14px; }

.dispatch-card {
  background: #fff; color: var(--text);
  border-radius: 22px; padding: 30px;
  box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--yellow);
}
.dispatch-card__head { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 14px; }
.dispatch-card__head em { margin-left: auto; font-style: normal; font-size: 12px; color: #12924a; background: #e6f8ee; padding: 4px 10px; border-radius: 999px; }
.dispatch-card h2 { font-size: 24px; }
.dispatch-card > p { color: var(--muted); font-size: 15px; }
.dispatch-card__numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.dispatch-card__numbers a {
  display: flex; flex-direction: column;
  padding: 12px 14px; border-radius: 12px;
  background: var(--bg-alt); border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--purple);
  transition: background .2s, border-color .2s, transform .2s;
}
.dispatch-card__numbers a:hover { background: var(--purple-soft); border-color: var(--purple); transform: translateY(-2px); }
.dispatch-card__numbers a:nth-child(3):last-child { grid-column: 1 / -1; }
.dispatch-card__numbers small { font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dispatch-card__addr { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { margin-top: -56px; position: relative; z-index: 2; }
.stats__grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat { padding: 30px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 42px; color: var(--purple); line-height: 1.1; }
.stat > span { font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.about { overflow-x: clip; }
.about__visual { position: relative; padding: 0 0 70px 0; }
.about__photo { margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; }
.about__photo img, .about__photo-sm img { width: 100%; height: 100%; object-fit: cover; }
.about__photo-sm {
  position: absolute; right: -24px; top: 40px; margin: 0;
  width: 46%; aspect-ratio: 4 / 3;
  border-radius: 18px; overflow: hidden;
  border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.about__since {
  position: absolute; left: -20px; top: -20px;
  width: 140px; height: 140px; border-radius: 50%;
  background: linear-gradient(150deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #fff; border: 5px solid #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); text-align: center;
}
.about__since span { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .25em; font-size: 11px; color: var(--yellow); }
.about__since strong { font-family: var(--font-head); font-size: 36px; font-weight: 800; line-height: 1.05; }
.about__since small { font-size: 10.5px; color: rgba(255,255,255,.8); margin-top: 2px; }
.about__mission {
  position: absolute; right: 0; bottom: 0; max-width: 300px;
  background: #fff; border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow); border-left: 5px solid var(--red);
}
.about__mission h3 { font-size: 17px; color: var(--purple); }
.about__mission p { margin: 0; font-size: 14.5px; }
.about__content p { font-size: 16.5px; }

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 24px; }
.checklist li { position: relative; padding-left: 30px; font-weight: 600; color: var(--ink); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--purple); color: #fff; font-size: 12px;
  display: grid; place-items: center;
}

/* ---------- Services ---------- */
.services { background: var(--bg-alt); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 0;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.service-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--purple-soft); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(58, 6, 55, .45) 100%);
}
.service-card:hover .service-card__media img { transform: scale(1.07); }
.service-card__body { position: relative; padding: 0 26px 26px; flex: 1; display: flex; flex-direction: column; }
.service-card__actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: auto; padding-top: 22px;
}
.btn--sm { padding: 10px 14px; font-size: 14px; gap: 7px; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--call { background: var(--red); color: #fff; }
.btn--call:hover { background: var(--red-dark); }
.btn--enquire { background: transparent; color: var(--purple); border: 2px solid var(--purple); }
.btn--enquire:hover { background: var(--purple); color: #fff; }
.service-card--featured .btn--call { background: #fff; color: var(--red); }
.service-card--featured .btn--call:hover { background: var(--yellow); color: var(--purple-deep); }
.service-card--featured .btn--enquire { color: #fff; border-color: rgba(255, 255, 255, .85); }
.service-card--featured .btn--enquire:hover { background: #fff; color: var(--red); }
.service-card__body .service-card__icon {
  margin-top: -33px; margin-bottom: 16px; position: relative; z-index: 1;
  border: 4px solid #fff; box-sizing: content-box;
  background: var(--purple); color: #fff;
}
.service-card::before {
  content: ""; position: absolute; left: 0; bottom: 0; z-index: 2; height: 4px; width: 0;
  background: linear-gradient(90deg, var(--purple), var(--red));
  transition: width .35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { width: 100%; }
.service-card__icon {
  width: 58px; height: 58px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--purple-soft); color: var(--purple);
  margin-bottom: 20px;
  transition: background .25s, color .25s;
}
.service-card__icon svg { width: 30px; height: 30px; }
.service-card:hover .service-card__icon { background: var(--red); color: #fff; }
.service-card h3 { font-size: 19px; }
.service-card p { margin: 0; font-size: 15px; color: var(--muted); }

.service-card--featured { background: linear-gradient(150deg, var(--red) 0%, var(--red-dark) 100%); border: 0; }
.service-card--featured h3,
.service-card--featured p { color: #fff; }
.service-card--featured p { opacity: .9; }
.service-card--featured .service-card__icon,
.service-card--featured:hover .service-card__icon { background: #fff; color: var(--red); border-color: var(--red); }
.service-card--featured::before { background: var(--yellow); }

/* Equipment list (scrollable table inside a service card) */
.equip { margin-top: 18px; }
.equip__title {
  margin: 0 0 8px; font-family: var(--font-head); font-size: 13px;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.equip__scroll {
  max-height: 180px; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  scrollbar-width: thin; scrollbar-color: var(--purple) var(--purple-soft);
}
.equip__scroll:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.equip__scroll::-webkit-scrollbar { width: 6px; }
.equip__scroll::-webkit-scrollbar-track { background: var(--purple-soft); border-radius: 6px; }
.equip__scroll::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 6px; }
.equip__table { width: 100%; border-collapse: collapse; font-size: 13.5px; color: var(--text); }
.equip__table th {
  position: sticky; top: 0; z-index: 1;
  background: var(--purple-soft); color: var(--purple-dark);
  font-weight: 600; text-align: left; padding: 8px 10px;
}
.equip__table td { padding: 7px 10px; border-top: 1px solid var(--line); }
.equip__table th:first-child, .equip__table td:first-child { width: 36px; color: var(--muted); }
.equip__table th:last-child, .equip__table td:last-child { width: 44px; text-align: center; }
.equip__table tbody tr:nth-child(even) { background: var(--bg-alt); }

/* ---------- Hospitals ---------- */
.hospitals {
  background:
    radial-gradient(circle at 0% 0%, rgba(247, 228, 99, .08), transparent 35%),
    linear-gradient(160deg, var(--purple-deep), var(--purple-dark));
  color: #fff;
}
.hospitals__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pill-title {
  display: inline-block; background: var(--yellow); color: var(--purple-deep);
  font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 9px 20px; border-radius: 999px; margin-bottom: 24px;
}
.transfer-list, .process {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 32px;
}
.transfer-list li { padding: 14px 0; border-bottom: 1px dashed rgba(255,255,255,.15); }
.transfer-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.transfer-list strong { display: block; font-family: var(--font-head); color: var(--yellow); font-size: 16px; margin-bottom: 2px; }
.transfer-list span { font-size: 14.5px; color: rgba(255,255,255,.78); }

.steps { position: relative; }
.steps li { display: flex; gap: 18px; position: relative; padding-bottom: 24px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 20px; top: 44px; bottom: 4px;
  width: 2px; background: rgba(247, 228, 99, .35);
}
.steps__num {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--purple-deep);
  font-family: var(--font-head); font-weight: 800; font-size: 17px;
}
.steps strong { display: block; font-family: var(--font-head); font-size: 17px; color: #fff; margin: 8px 0 4px; }
.steps p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.78); }

.associations { margin-top: 40px; text-align: center; }
.associations h3 { color: #fff; font-size: 20px; margin-bottom: 18px; }
.associations__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 12px; }
.associations__list span {
  background: #fff; color: var(--purple);
  font-family: var(--font-head); font-weight: 600;
  padding: 12px 24px; border-radius: 12px;
}
.associations small { color: rgba(255,255,255,.55); font-size: 12.5px; }

/* ---------- Areas ---------- */
.areas__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.area-card {
  padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
  transition: transform .25s, box-shadow .25s;
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.area-card__time {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 13px;
  color: var(--purple); background: var(--purple-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.area-card h3 { font-size: 21px; color: var(--purple); }
.area-card p { margin: 0; font-size: 15px; color: var(--muted); }
.area-card--base { background: var(--purple); border-color: var(--purple); }
.area-card--base h3, .area-card--base p { color: #fff; }
.area-card--base .area-card__time { background: var(--yellow); color: var(--purple-deep); }
.area-card--more { background: var(--bg-alt); border-style: dashed; border-color: var(--purple); }
.areas__note { margin: 30px auto 0; max-width: 760px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(90deg, var(--red) 0%, var(--purple) 100%); color: #fff; padding: 56px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 6px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: stretch; }
.contact-item { display: flex; gap: 16px; margin-bottom: 20px; }
.contact-item__icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
  background: var(--purple-soft); display: grid; place-items: center; font-size: 20px;
}
.contact-item h4 { font-size: 15px; margin-bottom: 2px; }
.contact-item p { margin: 0; }
.contact-item a { color: var(--purple); font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }
.contact-item a[href^="mailto:"], .footer a[href^="mailto:"] { overflow-wrap: anywhere; }

.contact__map { display: flex; flex-direction: column; height: 100%; }
.map {
  flex: 1; min-height: 460px;
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid #fff;
  outline: 1px solid var(--line);
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 448px; border: 0; }
.map__link {
  align-self: flex-start; margin-top: 16px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--purple);
}
.map__link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--purple-deep); color: rgba(255,255,255,.75); padding-top: 70px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.footer li { margin-bottom: 10px; font-size: 14.5px; }
.footer a:hover { color: var(--yellow); }
.footer__about { margin-top: 18px; font-size: 14.5px; }
.footer__tag { font-family: var(--font-head); font-weight: 700; color: var(--yellow); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13.5px; text-align: center; }
.footer__bottom p { margin: 0; }

/* ---------- Floating actions ---------- */
.float-actions { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: transform .2s;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn svg { width: 28px; height: 28px; }
.float-btn--call { background: var(--red); animation: ring 2.4s ease-in-out infinite; }
@keyframes ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 38, 44, .55), 0 10px 24px rgba(0,0,0,.25); }
  50% { box-shadow: 0 0 0 14px rgba(224, 38, 44, 0), 0 10px 24px rgba(0,0,0,.25); }
}

.back-to-top {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--purple); color: #fff; font-size: 20px; cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Onload popup ---------- */
.popup {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.popup.is-open { opacity: 1; visibility: visible; }
.popup__overlay { position: absolute; inset: 0; background: rgba(30, 4, 28, .7); backdrop-filter: blur(3px); }
.popup__box {
  position: relative; width: 100%; max-width: 420px;
  max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
  transform: translateY(30px) scale(.96);
  transition: transform .4s cubic-bezier(.2, .9, .3, 1.2);
}
.popup.is-open .popup__box { transform: none; }
.popup__head {
  padding: 30px 28px 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(247, 228, 99, .2), transparent 45%),
    linear-gradient(135deg, var(--purple-deep), #8b3777);
  color: #fff; text-align: center;
}
.popup__head h2 { color: #fff; font-size: 26px; margin: 12px 0 6px; }
.popup__head p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .85); }
.popup__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255, 255, 255, .12); padding: 6px 12px; border-radius: 999px;
}
.popup__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .18); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer;
  transition: background .2s, transform .2s;
}
.popup__close:hover { background: rgba(255, 255, 255, .32); transform: rotate(90deg); }
.popup__form { padding: 26px 28px 8px; }
.popup__form .form-group { margin-bottom: 0; }
.popup__form .form-control {
  display: block; width: 100%; margin-bottom: 15px;
  padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg-alt);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.popup__form .form-control--mobile { border: 2px solid #8b3777; }
.popup__form .form-control:focus {
  outline: none; border-color: #8b3777; background: #fff;
  box-shadow: 0 0 0 4px rgba(139, 55, 119, .12);
}
.btn--popup { background: #8b3777; color: #fff; border: 0; padding: 14px 22px; border-radius: var(--radius-sm); }
.btn--popup:hover { background: var(--purple-deep); }
.btn--popup svg { width: 18px; height: 18px; }
.popup__call { text-align: center; font-size: 14px; color: var(--muted); padding: 6px 28px 24px; margin: 0; }
.popup__call a { color: var(--red); font-weight: 700; }
body.popup-open { overflow: hidden; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal--delay { transition-delay: .15s; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__card { max-width: 520px; }
  .services__grid, .areas__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px 16px 24px;
    box-shadow: 0 20px 30px rgba(62, 6, 58, .12);
    transform: translateY(-120%); opacity: 0; visibility: hidden;
    transition: transform .35s ease, opacity .35s ease, visibility .35s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .nav__cta { margin-top: 16px; }

  .about__grid, .hospitals__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__visual { padding: 0; }
  .about__photo { aspect-ratio: 16 / 11; }
  .about__photo-sm { right: 12px; top: auto; bottom: 120px; width: 40%; }
  .about__since { left: 12px; top: 12px; width: 110px; height: 110px; }
  .about__since strong { font-size: 28px; }
  .about__mission { position: relative; max-width: none; margin-top: -40px; margin-inline: 16px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .topbar__msg { display: none; }
  .topbar__inner { justify-content: center; }
  .logo__text strong { font-size: 18px; }
  .logo__text small { font-size: 10px; }
  .logo__mark { height: 64px; }
  .hero { padding: 64px 0 100px; }
  .hero__actions .btn { width: 100%; }
  .dispatch-card { padding: 24px 20px; }
  .services__grid, .areas__grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .stat__num { font-size: 34px; }
  .stat { padding: 22px 12px; }
  .transfer-list, .process { padding: 24px 20px; }
  .map, .map iframe { min-height: 340px; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .cta-band .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .float-btn { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Instagram ---------- */
.topbar__ig { display: inline-flex; align-items: center; }
.contact-item__icon--ig { color: var(--purple); }
.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); color: #fff;
  transition: background .2s, color .2s, transform .2s;
}
.footer__social a:hover { background: var(--yellow); color: var(--purple-deep); transform: translateY(-2px); }

/* ---------- Testimonials slider ---------- */
.testimonials { background: var(--bg-alt); }
.t-slider { --per: 3; --gap: 24px; position: relative; }
.t-slider__viewport { overflow: hidden; padding: 8px 4px 16px; margin: -8px -4px 0; }
.t-slider__track { display: flex; gap: var(--gap); transition: transform .6s ease; will-change: transform; touch-action: pan-y; }
.t-card {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  margin: 0; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow); position: relative;
}
.t-card::before {
  content: "\201C"; position: absolute; top: 6px; right: 22px;
  font-family: Georgia, serif; font-size: 90px; line-height: 1; color: var(--purple-soft);
}
.t-card__stars { color: #f5b301; font-size: 18px; letter-spacing: 2px; margin-bottom: 14px; }
.t-card blockquote { margin: 0 0 24px; color: var(--text); font-size: 15.5px; line-height: 1.7; flex: 1; position: relative; }
.t-card figcaption { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.t-card__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--purple); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 18px;
}
.t-card figcaption strong { display: block; color: var(--ink); font-family: var(--font-head); }
.t-card figcaption small { color: var(--muted); font-size: 13px; }
.t-slider__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.t-slider__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--purple); font-size: 26px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding-bottom: 3px;
  transition: background .2s, color .2s, border-color .2s;
}
.t-slider__btn:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.t-slider__dots { display: flex; gap: 8px; }
.t-slider__dots button {
  width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; cursor: pointer;
  background: #d9cbd7; transition: width .3s, background .3s;
}
.t-slider__dots button[aria-current="true"] { width: 28px; background: var(--purple); }
@media (max-width: 1024px) { .t-slider { --per: 2; } }
@media (max-width: 640px) { .t-slider { --per: 1; --gap: 16px; } .t-card { padding: 26px 22px; } }

/* ---------- Gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery__item {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1;
  padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--purple-soft); cursor: zoom-in; box-shadow: var(--shadow);
}
.gallery__item img, .gallery__item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(58, 6, 55, .45), transparent 55%);
  opacity: 0; transition: opacity .3s ease;
}
.gallery__item:hover img, .gallery__item:hover video,
.gallery__item:focus-visible img, .gallery__item:focus-visible video { transform: scale(1.06); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
.gallery__item:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.gallery__item--video { cursor: pointer; }
.gallery__play {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%;
  background: rgba(142, 19, 132, .9); box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
.gallery__play::before {
  content: ""; position: absolute; top: 50%; left: 50%; margin: -11px 0 0 -6px;
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}

.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 6, 19, .92); padding: 60px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox__stage img, .lightbox__stage video {
  max-width: 100%; max-height: calc(100vh - 120px); border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox__close, .lightbox__nav {
  position: absolute; border: 0; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--purple); }
.lightbox__close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 30px; line-height: 1; }
.lightbox__nav { top: 50%; width: 48px; height: 48px; margin-top: -24px; font-size: 20px; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__count { position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; text-align: center; color: rgba(255, 255, 255, .75); font-size: 14px; }
body.lb-open { overflow: hidden; }

@media (max-width: 1024px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lightbox { padding: 60px 10px; }
  .lightbox__nav { top: auto; bottom: 8px; margin-top: 0; }
}
