/* ===========================
   CLIMATE RISK QUICKSCAN
   =========================== */

:root {
  --qs-navy: #071f36;
  --qs-blue: #0b3d91;
  --qs-teal: #17827b;
  --qs-teal-dark: #106761;
  --qs-teal-light: #dff2ef;
  --qs-gold: #f2c14e;
  --qs-ink: #152738;
  --qs-muted: #5a6977;
  --qs-border: #dfe7eb;
  --qs-surface: #f4f8f8;
  --qs-white: #ffffff;
}

.quickscan-page {
  background: #f4f6f7;
}

.qs-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.qs-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* Reset global section treatment */

.quickscan-page .qs-section,
.quickscan-page .qs-follow-on,
.quickscan-page .qs-final-cta {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Shared typography */

.qs-kicker {
  margin: 0 0 9px;
  color: var(--qs-teal);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.qs-section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.qs-section-heading h2,
.qs-follow-on-heading h2 {
  margin: 0;
  color: var(--qs-ink);
  font-size: clamp(1.9rem, 3.7vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.qs-section-heading > p:not(.qs-kicker) {
  margin: 16px 0 0;
  color: var(--qs-muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

/* ===========================
   HERO
   =========================== */

.qs-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(54px, 7vw, 90px) 0;
  color: var(--qs-white);
  background:
    radial-gradient(
      circle at 88% 15%,
      rgba(23, 130, 123, 0.38),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      var(--qs-navy) 0%,
      var(--qs-blue) 66%,
      #126978 100%
    );
}

.qs-hero-decoration {
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 430px;
  right: -240px;
  bottom: -270px;
  border: 86px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
}

.qs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(40px, 7vw, 84px);
}

.qs-hero-content h1 {
  max-width: 720px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.8rem, 5.6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.qs-hero-content h1 span {
  display: block;
  margin-top: 14px;
  color: #9ddbd5;
}

.qs-hero-intro {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.7;
}

.qs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 12px;
}

.qs-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.qs-button:hover {
  text-decoration: none;
}

.qs-button--primary {
  color: #ffffff;
  background: var(--qs-teal);
  border-color: var(--qs-teal);
}

.qs-button--primary:hover {
  color: var(--qs-teal-dark);
  background: #ffffff;
  border-color: #ffffff;
}

.qs-button--secondary {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.58);
}

.qs-button--secondary:hover {
  color: var(--qs-blue);
  background: #ffffff;
  border-color: #ffffff;
}

.qs-hero-facts {
  display: flex;
  flex-wrap: wrap;
  margin: 25px 0 0;
  padding: 0;
  gap: 9px 20px;
  list-style: none;
}

.qs-hero-facts li {
  position: relative;
  padding-left: 15px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  font-weight: 600;
}

.qs-hero-facts li::before {
  content: "";
  position: absolute;
  top: 0.56em;
  left: 0;
  width: 6px;
  height: 6px;
  background: #8fd3cb;
  border-radius: 50%;
}

/* Optional price */

.qs-price {
  max-width: 320px;
  margin-top: 25px;
  padding: 15px 17px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
}

.qs-price span,
.qs-price small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
}

.qs-price strong {
  display: block;
  margin: 3px 0;
  color: #ffffff;
  font-size: 1.35rem;
}

/* ===========================
   ILLUSTRATIVE SCORECARD
   =========================== */

.qs-scorecard {
  padding: clamp(22px, 3vw, 30px);
  color: var(--qs-ink);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  box-shadow: 0 28px 62px rgba(4, 23, 41, 0.28);
}

.qs-scorecard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 18px;
  gap: 16px;
  border-bottom: 1px solid var(--qs-border);
}

.qs-scorecard-label {
  color: var(--qs-teal);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.qs-scorecard-header h2 {
  margin: 4px 0 0;
  color: var(--qs-ink);
  font-size: 1.35rem;
}

.qs-scorecard-status {
  padding: 5px 9px;
  color: #735600;
  background: #fff4c4;
  border: 1px solid rgba(242, 193, 78, 0.6);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.qs-score-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  margin: 22px 0;
  gap: 20px;
}

.qs-score-ring {
  display: grid;
  width: 112px;
  height: 112px;
  padding: 10px;
  place-items: center;
  background:
    conic-gradient(
      var(--qs-teal) 0 56%,
      #dfe8e8 56% 100%
    );
  border-radius: 50%;
}

.qs-score-ring > div {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  align-content: center;
  background: #ffffff;
  border-radius: 50%;
}

.qs-score-ring strong {
  color: var(--qs-ink);
  font-size: 2rem;
  line-height: 1;
}

.qs-score-ring span {
  margin-top: 3px;
  color: var(--qs-muted);
  font-size: 0.7rem;
}

.qs-score-explanation strong {
  color: var(--qs-ink);
  font-size: 1rem;
}

.qs-score-explanation p {
  margin: 5px 0 0;
  color: var(--qs-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.qs-category-scores {
  display: grid;
  gap: 10px;
}

.qs-category-row {
  display: grid;
  grid-template-columns: 112px 1fr 27px;
  align-items: center;
  gap: 10px;
}

.qs-category-row > span,
.qs-category-row > strong {
  font-size: 0.76rem;
}

.qs-category-row > span {
  color: var(--qs-muted);
}

.qs-category-row > strong {
  color: var(--qs-ink);
  text-align: right;
}

.qs-score-bar {
  height: 7px;
  overflow: hidden;
  background: #e8eeee;
  border-radius: 999px;
}

.qs-score-bar i {
  display: block;
  width: var(--score);
  height: 100%;
  background:
    linear-gradient(90deg, var(--qs-blue), var(--qs-teal));
  border-radius: inherit;
}

.qs-priorities {
  margin-top: 20px;
  padding: 15px 17px;
  background: var(--qs-surface);
  border-radius: 12px;
}

.qs-priorities p {
  margin: 0 0 8px;
  color: var(--qs-teal);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.qs-priorities ol {
  margin: 0;
  padding-left: 20px;
}

.qs-priorities li {
  padding: 2px 0 2px 4px;
  color: #435564;
  font-size: 0.79rem;
}

/* ===========================
   CONTENT SECTIONS
   =========================== */

.quickscan-page .qs-section {
  padding: clamp(56px, 8vw, 94px) 0;
}

.qs-section--light {
  background: var(--qs-surface);
}

.qs-section--white {
  background: #ffffff;
}

/* Trigger cards */

.qs-trigger-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.qs-trigger-card {
  position: relative;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--qs-border);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(19, 41, 57, 0.06);
}

.qs-number {
  color: var(--qs-teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.qs-trigger-card h3 {
  margin: 15px 0 9px;
  color: var(--qs-ink);
  font-size: 1.23rem;
}

.qs-trigger-card p {
  margin: 0;
  color: var(--qs-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Assessment dimensions */

.qs-dimension-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.qs-dimension-card {
  padding: 22px;
  background: var(--qs-surface);
  border: 1px solid var(--qs-border);
  border-radius: 14px;
}

.qs-dimension-card > span {
  color: var(--qs-teal);
  font-size: 0.72rem;
  font-weight: 800;
}

.qs-dimension-card h3 {
  margin: 12px 0 7px;
  color: var(--qs-ink);
  font-size: 1.05rem;
}

.qs-dimension-card p {
  margin: 0;
  color: var(--qs-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* Dark process section */

.quickscan-page .qs-section--dark {
  color: #ffffff;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(23, 130, 123, 0.25),
      transparent 30%
    ),
    var(--qs-navy);
}

.qs-section--dark .qs-section-heading h2 {
  color: #ffffff;
}

.qs-section--dark .qs-section-heading > p:not(.qs-kicker) {
  color: rgba(255, 255, 255, 0.75);
}

.qs-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.qs-timeline-step {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
}

.qs-timeline-step > span {
  color: #8fd3cb;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qs-timeline-step h3 {
  margin: 13px 0 8px;
  color: #ffffff;
  font-size: 1.2rem;
}

.qs-timeline-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Deliverables */

.qs-deliverables-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  align-items: start;
  gap: clamp(40px, 7vw, 80px);
}

.qs-deliverable-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 13px;
  list-style: none;
}

.qs-deliverable-list li {
  position: relative;
  padding: 17px 18px 17px 50px;
  background: var(--qs-surface);
  border: 1px solid var(--qs-border);
  border-radius: 12px;
}

.qs-deliverable-list li::before {
  content: "✓";
  position: absolute;
  top: 17px;
  left: 18px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #ffffff;
  background: var(--qs-teal);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
}

.qs-deliverable-list strong,
.qs-deliverable-list span {
  display: block;
}

.qs-deliverable-list strong {
  color: var(--qs-ink);
  font-size: 0.96rem;
}

.qs-deliverable-list span {
  margin-top: 3px;
  color: var(--qs-muted);
  font-size: 0.85rem;
}

/* Scope box */

.qs-scope-box {
  position: sticky;
  top: 95px;
  padding: 28px;
  color: #ffffff;
  background:
    linear-gradient(145deg, var(--qs-blue), var(--qs-navy));
  border-radius: 17px;
  box-shadow: 0 18px 38px rgba(7, 31, 54, 0.18);
}

.qs-scope-label {
  margin: 0 0 7px;
  color: #8fd3cb;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.qs-scope-box h3 {
  margin: 0 0 13px;
  color: #ffffff;
  font-size: 1.25rem;
}

.qs-scope-box ul {
  margin: 0;
  padding-left: 19px;
}

.qs-scope-box li {
  padding: 3px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.qs-scope-divider {
  height: 1px;
  margin: 23px 0;
  background: rgba(255, 255, 255, 0.18);
}

.qs-exclusion-list li {
  color: rgba(255, 255, 255, 0.68);
}

/* ===========================
   FOLLOW-ON ENGAGEMENTS
   =========================== */

.quickscan-page .qs-follow-on {
  padding: clamp(52px, 7vw, 82px) 0;
  background: var(--qs-surface);
}

.qs-follow-on-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.qs-follow-on-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.qs-follow-on-grid a {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 24px;
  color: inherit;
  background: #ffffff;
  border: 1px solid var(--qs-border);
  border-radius: 15px;
  box-shadow: 0 7px 20px rgba(19, 41, 57, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.qs-follow-on-grid a:hover {
  transform: translateY(-4px);
  text-decoration: none;
  box-shadow: 0 15px 32px rgba(19, 41, 57, 0.12);
}

.qs-follow-on-grid span {
  color: var(--qs-teal);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.qs-follow-on-grid strong {
  margin-top: 15px;
  color: var(--qs-ink);
  font-size: 1.2rem;
}

.qs-follow-on-grid p {
  margin: 8px 0 0;
  color: var(--qs-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ===========================
   FINAL CTA
   =========================== */

.quickscan-page .qs-final-cta {
  padding: clamp(48px, 7vw, 76px) 0;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(23, 130, 123, 0.32),
      transparent 32%
    ),
    linear-gradient(135deg, var(--qs-blue), var(--qs-navy));
}

.qs-final-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}

.qs-final-cta h2 {
  max-width: 780px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.12;
}

.qs-final-cta p:not(.qs-kicker) {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.qs-button--light {
  color: var(--qs-blue);
  background: #ffffff;
  border-color: #ffffff;
  white-space: nowrap;
}

.qs-button--light:hover {
  color: #ffffff;
  background: transparent;
}

/* Accessibility */

.qs-button:focus-visible,
.qs-follow-on-grid a:focus-visible {
  outline: 3px solid var(--qs-gold);
  outline-offset: 3px;
}

/* ===========================
   RESPONSIVENESS
   =========================== */

@media (max-width: 1020px) {
  .qs-hero-grid {
    grid-template-columns: 1fr;
  }

  .qs-hero-content {
    max-width: 780px;
  }

  .qs-scorecard {
    width: min(100%, 700px);
  }

  .qs-dimension-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qs-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qs-deliverables-grid {
    grid-template-columns: 1fr;
  }

  .qs-scope-box {
    position: static;
  }
}

@media (max-width: 760px) {
  .qs-container {
    width: min(100% - 36px, 680px);
  }

  .qs-trigger-grid,
  .qs-follow-on-grid {
    grid-template-columns: 1fr;
  }

  .qs-dimension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qs-final-cta-grid {
    grid-template-columns: 1fr;
  }

  .qs-button--light {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 540px) {
  .qs-container {
    width: calc(100% - 28px);
  }

  .qs-hero {
    padding: 48px 0;
  }

  .qs-hero-content h1 {
    font-size: clamp(2.55rem, 13vw, 3.65rem);
  }

  .qs-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .qs-button {
    width: 100%;
  }

  .qs-hero-facts {
    align-items: flex-start;
    flex-direction: column;
  }

  .qs-scorecard {
    padding: 20px 17px;
  }

  .qs-scorecard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .qs-score-summary {
    grid-template-columns: 1fr;
  }

  .qs-score-ring {
    width: 100px;
    height: 100px;
  }

  .qs-category-row {
    grid-template-columns: 88px 1fr 25px;
    gap: 7px;
  }

  .qs-category-row > span {
    font-size: 0.68rem;
  }

  .qs-dimension-grid,
  .qs-timeline {
    grid-template-columns: 1fr;
  }

  .qs-trigger-card,
  .qs-timeline-step {
    padding: 22px 19px;
  }

  .qs-scope-box {
    padding: 24px 20px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .qs-button:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .qs-button,
  .qs-follow-on-grid a {
    transition: none;
  }

  .qs-button:hover,
  .qs-follow-on-grid a:hover {
    transform: none;
  }
}
