/* ============================================================
   RESCUE IQ â Homepage Stylesheet
   rescue-iq-child/assets/css/homepage.css
   Version: 1.0.0
   ============================================================ */

/* ââ Shared section utilities âââââââââââââââââââââââââââââââââ */
.riq-section {
  width: 100%;
  position: relative;
}

.riq-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.riq-section-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.riq-section-headline {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.riq-section-body {
  font-size: 18px;
  line-height: 1.65;
  max-width: 680px;
}

/* ââ HERO âââââââââââââââââââââââââââââââââââââââââââââââââââââ */
.riq-hero {
  background: #0B2340;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 64px;
  text-align: center;
}

.riq-hero__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
}

.riq-hero__headline {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 800px;
  margin: 0 auto 28px;
}

.riq-hero__sub {
  font-size: 20px;
  line-height: 1.6;
  color: #A8C4E0;
  max-width: 680px;
  margin: 0 auto 40px;
}

.riq-hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.riq-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 24px;
  background: #1B4F8A;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.riq-btn-primary:hover {
  background: #2E75B6;
  color: #fff;
  transform: translateY(-1px);
}

.riq-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 24px;
  background: transparent;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.5);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.riq-btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.riq-hero__visual {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 660 / 530;
  background: rgba(27, 79, 138, 0.25);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.riq-problem { background: #F9FAFB; padding: 96px 0; text-align: center; }
.riq-problem .riq-section-label { color: #1B4F8A; }
.riq-problem .riq-section-headline { color: #0B2340; }

.riq-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 800px; margin: 0 auto; }
.riq-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.riq-stat__number { font-size: 48px; font-weight: 800; color: #1B4F8A; line-height: 1; letter-spacing: -0.03em; }
.riq-stat__label { font-size: 14px; color: #374151; line-height: 1.4; text-align: center; max-width: 160px; }

.riq-solution { background: #0B2340; padding: 96px 0; text-align: center; }
.riq-solution .riq-section-label { color: #A8C4E0; }
.riq-solution .riq-section-headline { color: #fff; max-width: 800px; margin: 0 auto 24px; }

.riq-how { background: #F9FAFB; padding: 96px 0; text-align: center; }

.riq-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: 1100px; margin: 0 auto; }
.riq-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.riq-step__icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(27, 79, 138, 0.1); display: flex; align-items: center; justify-content: center; }
.riq-step__icon svg { color: #1B4F8A; }
.riq-step__num { font-size: 11px; font-weight: 800; text-transform: uppercase; color: #D1D5DB; }

.riq-roles { background: #0B2340; padding: 96px 0; text-align: center; }
.riq-roles.riq-section-headline { color: #fff; }

.riq-role-cards { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; max-width: 1100px; margin: 0 auto 32px; }

.riq-role-card { flex: 1 1 180px; max-width: 200px; border-radius: 12px; padding: 28px 16px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.riq-role-card--fm { background: #C0392B; } .riq-role-card--an { background: #D4A017; } .riq-role-card--qm { background: #1E8449; } .riq-role-card--sen { background: #2980B9; } .riq-role-card--prov { background: #6C3483; } .riq-role-card--disp { background: #E67E22; } .riq-role-card--emt { background: #16A085; } .riq-role-card--admin { background: #2C3E50; }
.riq-role-card--prov .riq-role-card__token, .riq-role-card--prov .riq-role-card__name, .riq-role-card--prov .riq-role-card__desc, .riq-role-card--emt .riq-role-card__token, .riq-role-card--emt .riq-role-card__name, .riq-role-card--emt .riq-role-card__desc, .riq-role-card--admin .riq-role-card__token, .riq-role-card--admin .riq-role-card__name, .riq-role-card--admin .riq-role-card__desc { color: #fff; }

.riq-orgs { background: #F9FAFB; padding: 96px 0; }
.riq-cta-final { background: #1B4F8A; padding: 96px 24px; text-align: center; }
.riq-btn-cta-white { display: inline-flex; height: 56px; padding: 0 32px; background: #fff; color: #1B4F8A; font-size: 17px; font-weight: 700; border-radius: 8px; text-decoration: none; }

.riq-footer { background: #0B2340; padding: 64px 24px 40px; color: rgba(255,255,255,0.6); }

@media (max-width: 1024px) { .riq-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .riq-hero__headline { font-size: 32px; } .riq-stats { grid-template-columns: 1fr; } .riq-steps { grid-template-columns: 1fr; } }

@media (max-width: 480px) { .riq-hero__ctas { flex-direction: column; } .riq-btn-primary, .riq-btn-secondary { width: 100%; max-width: 320px; } }


/* ── Hero logo — top-right corner ────────────────────────── */
.riq-hero__logo {
    position: absolute;
    top: 90px;
    right: 40px;
    width: 200px;
    opacity: 0.92;
    z-index: 10;
    pointer-events: none;
}
.riq-hero__logo svg { width: 100%; height: auto; display: block; }
@media (max-width: 768px) {
    .riq-hero__logo { width: 100px; bottom: 24px; top: auto; right: 16px; }
}

/* ── Full-width layout: break out of GeneratePress 1200px container ── */
.page-template-template-home .grid-container {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ── Center body text blocks within sections ───────────────────────── */
.riq-section-body {
    margin-left: auto;
    margin-right: auto;
}
/* ── Center <main> within full-width site-content ──────────────────── */
.page-template-template-home main#riq-homepage {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
}

/* ── Center all section content blocks ─────────────────────────────── */
.page-template-template-home .riq-problem,
.page-template-template-home .riq-solution,
.page-template-template-home .riq-steps {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
    box-sizing: border-box;
}

/* =====================================================
   EMS Module Divider (added between general + EMS roles)
   ===================================================== */
.riq-roles__ems-divider {
    flex: 0 0 100%;
    width: 100%;
    margin: 2rem 0 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(230, 126, 34, 0.07);
    border-left: 4px solid #E67E22;
    border-radius: 0 8px 8px 0;
    box-sizing: border-box;
}
.riq-roles__ems-divider-inner {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.riq-roles__ems-divider-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #E67E22;
}
.riq-roles__ems-divider-note {
    font-size: 0.85rem;
    color: #8899AA;
    line-height: 1.55;
    margin: 0;
}

/* =====================================================
   Accessibility: Fix insufficient contrast text
   - .riq-roles__intro was dark gray (rgb 55,65,81) on dark bg (WCAG fail ~2.1:1)
   - .riq-cta-final text was dark gray on bright green (WCAG fail ~3.2:1)
   ===================================================== */
.riq-roles__intro {
    color: rgba(255, 255, 255, 0.82) !important;
}
.riq-cta-final h2,
.riq-cta-final p,
.riq-cta-final .riq-section-headline,
.riq-cta-final .riq-section-label {
    color: #061a0c !important;
}


/* Footer trademark attribution line */
.riq-footer__trademark {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0.25rem 0 0;
  line-height: 1.5;
}
