/**
 * City Ambulance Healthcare v5 — style.css
 * 26 Julai 2026 | Mobile-first | WCAG AA | No jQuery
 */

/* ========== DESIGN TOKENS ========== */
:root {
  --cah-red: #C8001A;
  --cah-red-dark: #a00015;
  --cah-navy-900: #0B1628;
  --cah-navy-800: #0f1c2e;
  --cah-navy-700: #1e293b;
  --cah-gray-50: #f8fafc;
  --cah-gray-100: #f1f5f9;
  --cah-gray-300: #cbd5e1;
  --cah-gray-400: #94a3b8;
  --cah-gray-500: #64748b;
  --cah-gray-600: #475569;
  --cah-pink: #FFB4B8;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 999px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-prose: 65ch;
  --container: min(1120px, 100% - 2rem);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: #0f172a;
  background: #fff;
  padding-bottom: 72px; /* space for sticky bar */
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cah-red); }

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-10);
}

.text-balance { text-wrap: balance; }
.text-center { text-align: center; }

.lead {
  font-size: 1.125rem;
  color: var(--cah-gray-600);
  max-width: var(--max-prose);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  font-family: inherit;
}

.btn--primary {
  background: var(--cah-red);
  color: #fff;
}
.btn--primary:hover {
  background: var(--cah-red-dark);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border-color: var(--cah-red);
  color: var(--cah-red);
}
.btn--outline:hover {
  background: var(--cah-red);
  color: #fff;
}

.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.22);
}

.btn--lg {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
}

/* ========== CARD & BENTO ========== */
.card {
  background: #fff;
  border: 1px solid var(--cah-gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.bento {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
}

.card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fef2f2;
  color: var(--cah-red);
  border-radius: 10px;
  margin-bottom: var(--space-3);
}

/* ========== HERO (ringkas) ========== */
.hero {
  background: var(--cah-navy-900);
  color: #fff;
  padding: var(--space-10) 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(200, 0, 26, 0.2);
  color: var(--cah-pink);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}

.hero .lead { color: #94a3b8; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-6) 0 var(--space-4);
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.hero__stars { color: #fbbf24; letter-spacing: 1px; }

.hero__grid {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.section--dark {
  background: var(--cah-navy-900);
  color: #e2e8f0;
}

/* Language classes (4-bahasa) */
.tbm, .tzh, .tta { display: none; }
html[lang="ms"] .tbm,
html[lang="zh"] .tzh,
html[lang="ta"] .tta { display: inline; }
html[lang="ms"] .ten,
html[lang="zh"] .ten,
html[lang="ta"] .ten { display: none; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--cah-navy-900);
  color: #e2e8f0;
  padding: var(--space-10) 0 var(--space-8);
  margin-top: var(--space-12);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.footer-logo-text {
  font-size: 1.25rem;
  color: #fff;
}

.footer-tagline {
  margin-top: var(--space-3);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #94a3b8;
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 var(--space-3);
}

.footer-areas {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin: 0 0 var(--space-2);
}

.footer-phone {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cah-pink);
  text-decoration: none;
  margin-bottom: 0.25rem;
}
.footer-phone:hover { color: #fff; }

.footer-wa {
  display: inline-block;
  font-size: 0.875rem;
  color: #94a3b8;
  text-decoration: none;
}
.footer-wa:hover { color: #fff; }

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  display: block;
  padding: 0.3rem 0;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9375rem;
}
.footer-links a:hover { color: #fff; }

/* Review CTA */
.review-cta {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  max-width: 28rem;
  margin: var(--space-8) auto var(--space-6);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.review-cta h3 {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.review-cta p {
  color: #94a3b8;
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.review-cta .btn--primary {
  background: var(--cah-red);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.review-cta .btn--primary:hover {
  background: var(--cah-red-dark);
}

.review-cta__qr {
  margin-top: 1.25rem;
}
.review-cta__qr img {
  margin-inline: auto;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: #64748b;
}

.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  color: #94a3b8;
  text-decoration: none;
}
.footer-social a:hover { color: #fff; }

/* ========== STICKY BAR — MOBILE ========== */
.sticky-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: stretch;
  gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #0B1628;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .sticky-bar {
    display: none !important;
  }
}

.sticky-bar__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  padding: 6px 4px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.sticky-bar__btn--call:active {
  background: rgba(255, 255, 255, 0.14);
}

.sticky-bar__svg {
  color: var(--cah-pink);
  flex-shrink: 0;
}

.sticky-bar__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #94a3b8;
  text-transform: uppercase;
}

.sticky-bar__number {
  font-size: 11px;
  font-weight: 700;
  color: var(--cah-pink);
  line-height: 1.2;
}

.sticky-bar__btn--sos {
  flex: 0 0 64px;
  max-width: 64px;
  background: var(--cah-red);
  color: #fff;
  border-radius: 12px;
}
.sticky-bar__btn--sos:active {
  background: var(--cah-red-dark);
}

.sticky-bar__sos-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* ========== TRIAGE MODAL ========== */
.triage-modal[hidden] { display: none !important; }

.triage-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 640px) {
  .triage-modal {
    align-items: center;
  }
}

.triage-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.triage-modal__panel {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 1.25rem 1.25rem 0 0;
  padding: var(--space-6);
  max-height: 90vh;
  overflow-y: auto;
}

@media (min-width: 640px) {
  .triage-modal__panel {
    border-radius: var(--radius-lg);
  }
}

.triage-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--cah-gray-500);
  cursor: pointer;
}

.triage-modal__lead {
  color: var(--cah-gray-600);
  margin-bottom: var(--space-4);
}

.triage-options {
  display: grid;
  gap: var(--space-3);
}

.triage-option {
  text-align: left;
  padding: var(--space-4);
  border: 1px solid var(--cah-gray-100);
  border-radius: var(--radius-md);
  background: var(--cah-gray-50);
  cursor: pointer;
  font-family: inherit;
}
.triage-option strong {
  display: block;
  margin-bottom: 0.2rem;
}
.triage-option span {
  font-size: 0.875rem;
  color: var(--cah-gray-500);
}
.triage-option:active,
.triage-option:hover {
  border-color: var(--cah-red);
  background: #fef2f2;
}

.triage-result {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.triage-result[hidden] { display: none !important; }

/* ========== UTILITY ========== */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
/* ========== SKIP LINK ========== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--cah-red);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10001;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 22, 40, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding-block: 0.5rem;
}

/* Logo — KAWAL SAIZ */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 160px;
  text-decoration: none;
}

.site-logo img,
.site-logo .custom-logo {
  max-height: 40px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.site-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .site-logo {
    max-width: 200px;
  }
  .site-logo img,
  .site-logo .custom-logo {
    max-height: 48px !important;
  }
}

/* Desktop nav — hide on mobile */
.nav-desktop {
  display: none;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: block;
    flex: 1;
  }
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.nav-list a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.35rem 0;
}
.nav-list a:hover,
.nav-list .current-menu-item a {
  color: #fff;
}

/* Desktop phone CTAs — hide on small screens */
.header-cta {
  display: none;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 900px) {
  .header-cta {
    display: flex;
  }
}

.header-cta__phone {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}
.header-cta__phone:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-cta__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.header-cta__num {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--cah-pink);
}

/* ========== BURGER ========== */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 900px) {
  .burger {
    display: none !important;
  }
}

.burger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Burger open state */
.burger[aria-expanded="true"] .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] .burger__line:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== MOBILE PANEL ========== */
.mobile-panel {
  background: var(--cah-navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.25rem 1.5rem;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.mobile-panel[hidden] {
  display: none !important;
}

.mobile-nav-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.mobile-nav-list a {
  display: block;
  padding: 0.85rem 0;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-list a:hover,
.mobile-nav-list .current-menu-item a {
  color: var(--cah-pink);
}

.mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-cta .btn {
  width: 100%;
  justify-content: center;
}

.mobile-cta .btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}