/* ============================================================
   Lead-Gen Toolkit — HSE Assessment / Resource Library / ROI
   Navy + Gold premium theme. Self-contained.
   ============================================================ */

:root {
  --lg-navy: var(--navy, #0A5640);
  --lg-blue: var(--blue, #1C8A5E);
  --lg-gold: var(--gold, #0A5640);
  --lg-gold-dark: var(--gold-dark, #A87E27);
  --lg-gold-light: var(--gold-light, #E2C779);
  --lg-muted: var(--text-muted, #5b6675);
  --lg-xlight: var(--navy-xlight, #EBF5EF);
  --lg-line: #e4e9f1;
  --lg-radius: 16px;
  --lg-shadow: 0 18px 40px -22px rgba(12, 30, 62, 0.45);
}

/* ---------- shared hero ---------- */
.hse-hero,
.reslib-hero,
.roi-hero {
  background: linear-gradient(135deg, var(--lg-navy) 0%, #112a52 55%, var(--lg-blue) 140%);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hse-hero::after,
.reslib-hero::after,
.roi-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(196, 154, 60, 0.22), transparent 45%);
  pointer-events: none;
}
.hse-hero h1,
.reslib-hero h1,
.roi-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0.6rem 0 1rem;
  color: #fff;
}
.hse-eyebrow,
.reslib-eyebrow,
.roi-eyebrow {
  display: inline-block;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--lg-gold-light);
  border: 1px solid rgba(196, 154, 60, 0.5);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  background: rgba(196, 154, 60, 0.1);
}
.hse-hero__sub,
.reslib-hero__sub,
.roi-hero__sub {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hse-body,
.reslib-body,
.roi-body {
  padding: clamp(2.5rem, 6vw, 4rem) 1rem;
}

/* shared section titles */
.hse-section-title,
.roi-scenarios-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--lg-navy);
  font-size: 1.5rem;
  margin: 2.5rem 0 1.25rem;
}

/* shared buttons (scoped helpers, in case site btns differ) */
.btn-ghost-navy {
  background: transparent;
  border: 1.5px solid var(--lg-navy);
  color: var(--lg-navy);
  border-radius: 10px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-ghost-navy:hover {
  background: var(--lg-navy);
  color: #fff;
}

/* =====================================================
   HSE ASSESSMENT
   ===================================================== */
.hse-quiz {
  max-width: 760px;
  margin: 0 auto;
}
.hse-progress {
  position: sticky;
  top: 76px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
}
.hse-progress__bar {
  flex: 1;
  height: 8px;
  background: var(--lg-xlight);
  border-radius: 999px;
  overflow: hidden;
}
.hse-progress__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--lg-gold), var(--lg-gold-light));
  border-radius: 999px;
  transition: width 0.35s ease;
}
.hse-progress__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lg-muted);
  white-space: nowrap;
}

.hse-q {
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  background: #fff;
  padding: 1.5rem;
  margin: 0 0 1.25rem;
  box-shadow: var(--lg-shadow);
}
.hse-q legend {
  display: flex;
  gap: 0.85rem;
  font-weight: 600;
  color: var(--lg-navy);
  font-size: 1.05rem;
  line-height: 1.4;
  padding: 0;
}
.hse-q__num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lg-navy);
  color: var(--lg-gold-light);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.hse-q__theme {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: var(--lg-gold-dark);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.hse-options {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.55rem;
}
.hse-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1.5px solid var(--lg-line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #2b3543;
  transition: all 0.18s ease;
}
.hse-option:hover {
  border-color: var(--lg-gold);
  background: #fffdf7;
}
.hse-option input {
  accent-color: var(--lg-gold-dark);
  width: 18px;
  height: 18px;
}
.hse-option.is-selected {
  border-color: var(--lg-gold);
  background: linear-gradient(0deg, rgba(196, 154, 60, 0.08), rgba(196, 154, 60, 0.08)), #fff;
  box-shadow: inset 0 0 0 1px var(--lg-gold);
}

.hse-capture {
  border: 1px dashed var(--lg-blue);
  background: var(--lg-xlight);
  border-radius: var(--lg-radius);
  padding: 1.5rem;
  margin: 1.75rem 0 1rem;
}
.hse-capture h3 {
  margin: 0 0 0.35rem;
  color: var(--lg-navy);
}
.hse-capture p {
  margin: 0 0 1rem;
  color: var(--lg-muted);
  font-size: 0.9rem;
}
.hse-capture__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.hse-error {
  color: #b3261e;
  font-weight: 600;
  margin: 0.75rem 0;
}
.hse-submit {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 1.05rem;
  padding: 1rem;
}

/* shared input styling for leadgen forms */
.hse-capture__row input,
.reslib-form input,
.roi-field input {
  width: 100%;
  border: 1.5px solid var(--lg-line);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--lg-navy);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.hse-capture__row input:focus,
.reslib-form input:focus,
.roi-field input:focus {
  outline: none;
  border-color: var(--lg-navy);
  box-shadow: 0 0 0 3px rgba(12, 30, 62, 0.15);
}

/* ---- report ---- */
.hse-report {
  max-width: 880px;
  margin: 0 auto;
}
.hse-result {
  text-align: center;
  color: #fff;
  border-radius: 22px;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--lg-navy), #112a52);
  box-shadow: var(--lg-shadow);
  position: relative;
  overflow: hidden;
}
.hse-result::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(196, 154, 60, 0.3), transparent 60%);
}
.hse-result > * { position: relative; }
.hse-result__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--lg-gold-light);
  font-weight: 700;
}
.hse-result__score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.6rem 0 0.2rem;
}
.hse-result__score strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--lg-gold-light);
}
.hse-result__score span { color: rgba(255, 255, 255, 0.7); font-size: 1.1rem; }
.hse-result__band {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  margin: 0.2rem 0 0.75rem;
  color: #fff;
}
.hse-result p {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.hse-themes {
  display: grid;
  gap: 1rem;
}
.hse-theme {
  background: #fff;
  border: 1px solid var(--lg-line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.hse-theme__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--lg-navy);
}
.hse-theme__head strong { color: var(--lg-gold-dark); }
.hse-theme__bar {
  height: 9px;
  background: var(--lg-xlight);
  border-radius: 999px;
  overflow: hidden;
}
.hse-theme__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--lg-blue), var(--lg-gold));
  border-radius: 999px;
}

.hse-recs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.hse-rec {
  background: #fff;
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hse-rec:hover {
  transform: translateY(-5px);
  box-shadow: var(--lg-shadow);
}
.hse-rec__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--lg-navy);
  color: var(--lg-gold-light);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}
.hse-rec h4 { margin: 0 0 0.4rem; color: var(--lg-navy); }
.hse-rec p { margin: 0 0 0.9rem; color: var(--lg-muted); font-size: 0.92rem; line-height: 1.55; }
.hse-rec__link {
  font-weight: 600;
  color: var(--lg-gold-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hse-rec__link:hover { color: var(--lg-navy); }

.hse-cta {
  margin-top: 2.5rem;
  text-align: center;
  background: var(--lg-xlight);
  border-radius: 22px;
  padding: 2.5rem 1.5rem;
}
.hse-cta h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--lg-navy);
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}
.hse-cta p { color: var(--lg-muted); max-width: 520px; margin: 0 auto 1.5rem; }
.hse-cta__actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================
   RESOURCE LIBRARY
   ===================================================== */
.reslib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}
.reslib-card {
  background: #fff;
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.reslib-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--lg-shadow);
  border-color: var(--lg-gold);
}
.reslib-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.reslib-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--lg-navy), var(--lg-blue));
  color: var(--lg-gold-light);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}
.reslib-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lg-gold-dark);
  background: rgba(196, 154, 60, 0.12);
  border: 1px solid rgba(196, 154, 60, 0.4);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}
.reslib-card h3 {
  color: var(--lg-navy);
  margin: 0 0 0.5rem;
  font-size: 1.18rem;
  line-height: 1.3;
}
.reslib-card p {
  color: var(--lg-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  flex: 1;
}
.reslib-card__btn {
  width: 100%;
  border: 1.5px solid var(--lg-navy);
  background: var(--lg-navy);
  color: #fff;
  border-radius: 10px;
  padding: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.18s ease;
}
.reslib-card__btn:hover {
  background: var(--lg-gold);
  border-color: var(--lg-gold);
  color: var(--lg-navy);
}
.reslib-form {
  display: grid;
  gap: 0.65rem;
}
.reslib-form__err {
  color: #b3261e;
  font-size: 0.82rem;
  font-weight: 600;
}
.reslib-success {
  text-align: center;
  padding: 0.5rem 0;
}
.reslib-success i {
  color: #1e9e5a;
  font-size: 2rem;
}
.reslib-success p {
  margin: 0.5rem 0 1rem;
  color: var(--lg-navy);
  font-weight: 600;
}

/* =====================================================
   ROI CALCULATOR
   ===================================================== */
.roi-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 1.75rem;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}
.roi-inputs {
  background: #fff;
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  padding: 1.75rem;
  box-shadow: var(--lg-shadow);
  position: sticky;
  top: 90px;
}
.roi-inputs h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--lg-navy);
  margin: 0 0 1.25rem;
  font-size: 1.4rem;
}
.roi-field {
  display: block;
  margin-bottom: 1.15rem;
}
.roi-field > span {
  display: block;
  font-weight: 600;
  color: var(--lg-navy);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.roi-field em {
  font-style: normal;
  color: var(--lg-muted);
  font-weight: 400;
}
.roi-field small {
  display: block;
  color: var(--lg-muted);
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

.roi-results { display: block; }
.roi-panel {
  background: linear-gradient(135deg, var(--lg-navy), #112a52);
  color: #fff;
  border-radius: 18px;
  padding: 1.75rem 2rem;
  text-align: center;
  box-shadow: var(--lg-shadow);
}
.roi-panel__label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--lg-gold-light);
  font-weight: 700;
}
.roi-panel__big {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  line-height: 1.1;
  color: var(--lg-gold-light);
  margin: 0.35rem 0 0.1rem;
}
.roi-panel__sub { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }

.roi-scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.1rem;
}
.roi-scenario {
  background: var(--lg-navy);
  color: #fff;
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  border: 1px solid rgba(196, 154, 60, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.roi-scenario:hover {
  transform: translateY(-5px);
  box-shadow: var(--lg-shadow);
}
.roi-scenario__pct {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--lg-gold-light);
}
.roi-scenario__caption {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.85rem;
}
.roi-scenario__save {
  display: block;
  font-size: 1.7rem;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--lg-gold-light);
  line-height: 1.1;
}
.roi-scenario__meta {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.3rem 0 0.6rem;
}
.roi-scenario__payback,
.roi-scenario__roi {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}
.roi-scenario__roi { color: var(--lg-gold-light); }

.roi-method {
  background: var(--lg-xlight);
  border-left: 4px solid var(--lg-gold);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  color: var(--lg-muted);
  font-size: 0.86rem;
  line-height: 1.6;
  margin: 1.75rem 0;
}
.roi-method strong { color: var(--lg-navy); }

.roi-cta {
  text-align: center;
  background: #fff;
  border: 1px solid var(--lg-line);
  border-radius: 18px;
  padding: 2rem 1.5rem;
}
.roi-cta h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--lg-navy);
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
}
.roi-cta p { color: var(--lg-muted); max-width: 460px; margin: 0 auto 1.4rem; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 860px) {
  .roi-grid { grid-template-columns: 1fr; }
  .roi-inputs { position: static; }
}
@media (max-width: 560px) {
  .hse-capture__row { grid-template-columns: 1fr; }
  .hse-result__score strong { font-size: 3.4rem; }
}
