/* ===================================================
   ERemedium Ireland — HSE Waiting List Page
   Matches eremedium.ie brand: Manrope, teal palette
   =================================================== */

/* --- Tokens --- */
:root {
  --teal:        #37a7b2;
  --teal-dark:   #004045;
  --teal-deep:   #007e87;
  --teal-hover:  #40c3ce;
  --coral:       #eb5d1e;
  --pink:        #ed5d74;
  --pink-dark:   #d84a63;
  --white:       #ffffff;
  --off-white:   #f8f8f8;
  --text:        #222222;
  --text-mid:    #5b5b5b;
  --text-light:  #666666;
  --border:      #e8e8e8;
  --font:        'Manrope', sans-serif;
  --radius:      8px;
  --radius-pill: 40px;
  --max-w:       1140px;
  --section-py:  80px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

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

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --- Navbar --- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 100%;
  gap: 32px;
}
.nav-logo img { height: 36px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: 14px; font-weight: 700; color: var(--text-mid);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--coral); }
.nav-cta {
  margin-left: 16px; padding: 8px 24px;
  background: var(--teal); color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 700;
  transition: all 0.3s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--teal-hover); color: var(--white); }
.nav-toggle { display: none; font-size: 22px; color: var(--teal-dark); }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 12px 32px;
  border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 700;
  transition: all 0.3s; cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: transparent; color: var(--teal); }
.btn-outline { background: transparent; color: var(--teal-dark); border-color: var(--teal-dark); }
.btn-outline:hover { background: var(--teal-dark); color: var(--white); }
.btn-white { background: var(--white); color: var(--teal-dark); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); border-color: var(--white); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--white) 0%, #eef9fa 100%);
  padding: 80px 0 40px;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
.hero-tag {
  display: inline-block; padding: 4px 14px;
  background: rgba(237, 93, 116, 0.1); color: var(--pink);
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 16px;
}
.hero h1 {
  font-size: 42px; font-weight: 800; line-height: 1.15;
  color: var(--teal-dark); margin-bottom: 20px;
}
.num-highlight { color: var(--pink); }
.hero-sub { font-size: 17px; color: var(--text-mid); margin-bottom: 28px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex; flex-direction: column;
}
.stat-card.stat-urgent { border-left: 4px solid var(--pink); }
.stat-num {
  font-size: 30px; font-weight: 800; color: var(--teal-dark);
  line-height: 1.1; margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.stat-urgent .stat-num { color: var(--pink); }
.stat-label { font-size: 14px; font-weight: 700; color: var(--text); }
.stat-note { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.hero-source {
  text-align: center; font-size: 12px; color: var(--text-light);
  padding: 20px 24px 0; max-width: var(--max-w); margin: 0 auto;
}
.hero-source a { color: var(--text-mid); text-decoration: underline; }

/* --- Sections --- */
.section { padding: var(--section-py) 0; }
.section-light { background: var(--off-white); }
.section-white { background: var(--white); }
.section-teal { background: var(--teal-deep); }
.section-pink { background: var(--pink); }

.section-tag {
  display: inline-block; padding: 4px 14px;
  background: rgba(55, 167, 178, 0.1); color: var(--teal);
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 12px;
}
.section-tag-light {
  display: inline-block; padding: 4px 14px;
  background: rgba(255,255,255,0.15); color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 12px;
}

.section h2, h2.heading-white {
  font-size: 36px; font-weight: 800; color: var(--teal-dark);
  margin-bottom: 16px; line-height: 1.2;
}
h2.heading-white { color: var(--white); }

.section-intro { font-size: 17px; color: var(--text-mid); max-width: 700px; margin-bottom: 40px; }
.section-intro-light { font-size: 17px; color: rgba(255,255,255,0.85); max-width: 700px; margin-bottom: 40px; }

.center-text { text-align: center; }
.center-text .section-intro,
.center-text .section-intro-light { margin-left: auto; margin-right: auto; }

/* --- Crisis Cards --- */
.crisis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.crisis-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.crisis-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(55, 167, 178, 0.1); color: var(--teal);
  border-radius: 50%; font-size: 20px;
  margin-bottom: 16px;
}
.crisis-card h3 { font-size: 18px; font-weight: 700; color: var(--teal-dark); margin-bottom: 6px; }
.crisis-stat { font-size: 14px; font-weight: 700; color: var(--pink); margin-bottom: 10px; }
.crisis-card p:last-child { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* --- Specialty Table --- */
.specialty-table-wrap { overflow-x: auto; margin-bottom: 12px; }
.specialty-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.specialty-table th {
  text-align: left; padding: 12px 16px; font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-mid); background: var(--off-white);
  border-bottom: 2px solid var(--border);
}
.specialty-table td {
  padding: 14px 16px; font-size: 15px;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.specialty-table tbody tr:hover { background: #f0fafa; }
.pct-badge {
  display: inline-block; padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700;
}
.pct-mid { background: #fff3e0; color: #e65100; }
.pct-high { background: #fce4ec; color: #c62828; }
.pct-critical { background: #c62828; color: var(--white); }
.check { color: var(--teal); font-size: 14px; font-weight: 600; }
.check i { margin-right: 4px; }
.table-footnote { font-size: 13px; color: var(--text-light); }

/* --- Journey Flow --- */
.journey-flow {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 20px; flex-wrap: wrap;
}
.journey-step {
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 20px 32px; text-align: center;
  min-width: 160px;
}
.journey-num {
  display: block; font-size: 28px; font-weight: 800;
  color: var(--white); margin-bottom: 4px;
}
.journey-label { font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.9); }
.journey-arrow { color: rgba(255,255,255,0.5); font-size: 20px; }

/* --- Product Blocks --- */
.product-block {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 48px; align-items: center;
  padding: 60px 0; border-bottom: 1px solid var(--border);
}
.product-block:last-child { border-bottom: none; }
.product-block-reverse { direction: rtl; }
.product-block-reverse > * { direction: ltr; }

.product-step {
  display: inline-block; padding: 4px 12px;
  background: rgba(55, 167, 178, 0.1); color: var(--teal);
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 8px;
}
.product-content h2 { font-size: 32px; margin-bottom: 8px; }
.product-headline { font-size: 18px; font-weight: 700; color: var(--text-mid); margin-bottom: 16px; }
.product-content > p { font-size: 15px; color: var(--text-mid); margin-bottom: 20px; }

.product-features { list-style: none; margin-bottom: 24px; }
.product-features li {
  padding: 8px 0; font-size: 15px; color: var(--text);
  display: flex; align-items: flex-start; gap: 10px;
}
.product-features i { color: var(--teal); margin-top: 4px; flex-shrink: 0; width: 18px; text-align: center; }

.product-impact {
  background: var(--off-white); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 24px;
}
.impact-item { display: flex; align-items: baseline; gap: 10px; }
.impact-num { font-size: 24px; font-weight: 800; color: var(--pink); white-space: nowrap; }
.impact-text { font-size: 14px; color: var(--text-mid); }

.product-card-visual {
  width: 100%; aspect-ratio: 4/3;
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--white); text-align: center;
}
.product-card-visual i { font-size: 56px; margin-bottom: 16px; opacity: 0.9; }
.product-card-visual span { font-size: 24px; font-weight: 800; }
.product-card-visual small { font-size: 14px; opacity: 0.8; margin-top: 4px; }

.medio-visual { background: linear-gradient(135deg, #37a7b2, #007e87); }
.medcomm-visual { background: linear-gradient(135deg, #004045, #00585e); }
.medxplain-visual { background: linear-gradient(135deg, #ed5d74, #d84a63); }

/* --- Impact Grid --- */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.impact-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  text-align: center;
}
.impact-card-icon {
  width: 52px; height: 52px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(55, 167, 178, 0.1); color: var(--teal);
  border-radius: 50%; font-size: 22px;
}
.impact-card-num { display: block; font-size: 22px; font-weight: 800; color: var(--teal-dark); margin-bottom: 6px; }
.impact-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.impact-card p { font-size: 13px; color: var(--text-mid); line-height: 1.55; }

/* --- Journey Table --- */
.journey-table-wrap {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.journey-table-wrap h3 {
  padding: 16px 20px; font-size: 16px; font-weight: 700;
  color: var(--teal-dark); border-bottom: 1px solid var(--border);
}
.journey-table { width: 100%; border-collapse: collapse; }
.journey-table th {
  text-align: left; padding: 10px 16px; font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-mid); background: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.journey-table td {
  padding: 12px 16px; font-size: 14px; color: var(--text);
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.journey-table tbody tr:last-child td { border-bottom: none; }
.journey-table tbody tr:hover { background: #f0fafa; }

/* --- Deploy Section --- */
.deploy-container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.deploy-intro { font-size: 17px; color: rgba(255,255,255,0.85); margin-bottom: 24px; line-height: 1.7; }
.deploy-hospitals h3 { font-size: 18px; margin-bottom: 16px; }
.hospital-list { display: flex; flex-direction: column; gap: 8px; }
.hospital-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; background: rgba(255,255,255,0.12);
  border-radius: 6px; font-size: 14px;
}
.hospital-name { color: var(--white); font-weight: 600; }
.hospital-count {
  font-weight: 800; color: var(--white);
  font-variant-numeric: tabular-nums;
}
.hospital-footnote { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 12px; }

/* --- Proof Grid --- */
.proof-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 24px; margin-top: 40px;
}
.proof-item { text-align: center; }
.proof-num { display: block; font-size: 32px; font-weight: 800; color: var(--teal-dark); }
.proof-label { display: block; font-size: 13px; color: var(--text-mid); font-weight: 600; margin-top: 4px; }

/* --- Contact --- */
.contact-actions { margin-top: 32px; }
.contact-sub { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,0.7); }
.contact-sub a { color: var(--white); text-decoration: underline; }

/* --- Footer --- */
.footer { background: var(--teal-dark); padding: 32px 0; color: rgba(255,255,255,0.7); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 16px; }
.footer-left p { font-size: 13px; max-width: 300px; }
.footer-logo { filter: brightness(0) invert(1); }
.footer-right { text-align: right; font-size: 13px; }
.footer-right a { color: rgba(255,255,255,0.85); text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .crisis-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .product-block, .product-block-reverse { grid-template-columns: 1fr; }
  .product-block-reverse { direction: ltr; }
  .product-visual { order: -1; }
  .product-card-visual { max-width: 360px; margin: 0 auto; }
  .deploy-container { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-py: 56px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .hero { padding: 48px 0 24px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .section h2, h2.heading-white { font-size: 28px; }
  .crisis-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 24px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}
