/* ==========================================================================
   Portfolio 13: Hospital Emergency Command & Healthcare Triage Portal (English)
   Aesthetic: Clinical Emergency Red & Sterile White/Slate, Live ICU Radar,
   Ambulance Telemetry, Zero-Refusal Triage Mandates, Urgent Healthcare Dispatch
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --med-red: #dc2626;
  --med-red-dark: #991b1b;
  --med-cyan: #0284c7;
  --med-slate: #0f172a;
  --med-card: #1e293b;
  --med-border: #334155;
  --med-green: #10b981;
  --med-bg: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--med-bg);
  color: var(--text-dark);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Emergency Red Flasher Top Bar */
.med-emergency-top {
  background: var(--med-red);
  color: #fff;
  padding: 0.6rem 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.med-emergency-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blink-dot-med {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: blinkFast 1s infinite alternate;
  margin-right: 0.4rem;
}

@keyframes blinkFast {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* Header */
.med-header {
  background: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.med-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-triage {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cross-badge {
  width: 44px;
  height: 44px;
  background: var(--med-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.brand-med-text h2 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-dark);
}

.brand-med-text span {
  font-size: 0.78rem;
  color: var(--med-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-med-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 700;
  align-items: center;
}

.btn-sos {
  background: var(--med-red);
  color: #fff;
  padding: 0.55rem 1.35rem;
  border-radius: 6px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-sos:hover {
  background: var(--med-red-dark);
  transform: translateY(-2px);
}

/* Hero Emergency Section */
.hero-med {
  padding: 4.5rem 0 4rem;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}

.hero-med-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.badge-med {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fee2e2;
  color: var(--med-red);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.hero-med-grid h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.hero-med-grid h1 span {
  color: var(--med-red);
}

.hero-med-p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Live ICU & Triage Radar Strip */
.triage-radar-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.radar-item-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.radar-val {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--med-red);
  display: block;
}

.radar-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

/* Doctor Leader Photo Frame */
.med-leader-frame {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.med-leader-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.med-leader-caption {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 0.92rem;
}

/* 4 Core Public Healthcare Mandates */
.section-med {
  padding: 5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.section-head-med {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-head-med h2 {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.section-head-med p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.mandates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.mandate-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.mandate-card:hover {
  transform: translateY(-4px);
  border-color: var(--med-red);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.1);
}

.mandate-icon {
  width: 48px;
  height: 48px;
  background: #fee2e2;
  color: var(--med-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.mandate-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.mandate-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Emergency Dispatch & Triage Form */
.dispatch-form-box {
  max-width: 780px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.form-med {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-med {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
}

.input-med:focus {
  border-color: var(--med-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Footer */
.med-footer {
  background: var(--med-slate);
  color: #fff;
  padding: 4.5rem 0 2rem;
  font-size: 0.92rem;
}

.med-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.med-f-col h4 {
  color: #fee2e2;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.med-f-col p {
  color: #94a3b8;
  line-height: 1.7;
}

.med-f-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.med-f-col ul li a {
  color: #cbd5e1;
  transition: color 0.2s;
}

.med-f-col ul li a:hover {
  color: var(--med-red);
}

.contact-med-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
}

.contact-med-row i {
  color: var(--med-red);
  margin-top: 0.25rem;
}

.med-bottom {
  border-top: 1px solid #334155;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #94a3b8;
}

.med-bottom a {
  color: #f87171;
}

.mobile-toggle {
  display: none;
  background: #fee2e2;
  border: 1px solid var(--med-red);
  color: var(--med-red);
  font-size: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mobile-toggle:hover {
  background: var(--med-red);
  color: #fff;
}

@media (max-width: 950px) {
  .med-header-inner { position: relative; }
  .mobile-toggle { display: flex; }

  .nav-med-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 0.5rem;
  }

  .nav-med-links.active {
    display: flex !important;
  }

  .nav-med-links li {
    width: 100%;
  }

  .nav-med-links li a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-med-links li a.btn-sos {
    text-align: center;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .hero-med-grid { grid-template-columns: 1fr; }
  .med-footer-grid { grid-template-columns: 1fr 1fr; }
  .triage-radar-strip { grid-template-columns: 1fr 1fr; }
  .hero-med-grid h1 { font-size: 2.5rem; }
}

@media (max-width: 600px) {
  .triage-radar-strip { grid-template-columns: 1fr; }
  .med-footer-grid { grid-template-columns: 1fr; }
}
