/* ==========================================================================
   Crystal Data | Sourcewell Contract Landing Page
   ========================================================================== */

/* 1. Design tokens
   ========================================================================== */
:root {
  --navy: #1b3a63;
  --navy-dark: #14294a;
  --teal: #0f7b82;
  --teal-dark: #0b6368;
  --teal-tint: #e3f1f2;
  --amber: #f5a623;
  --amber-dark: #e0950f;
  --ink: #1d2a3d;
  --text: #4a5568;
  --muted: #6b7a90;
  --border: #dfe5ee;
  --surface: #ffffff;
  --surface-alt: #f4f6fa;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 10px 30px rgba(20, 41, 74, 0.12);
  --shadow-sm: 0 2px 10px rgba(20, 41, 74, 0.06);

  --container: 1160px;
  --header-height: 76px;
}

/* 2. Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.2;
}

a {
  color: var(--teal);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* 3. Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow {
  max-width: 820px;
}

.section {
  padding-block: 88px;
}

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

.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head p {
  margin-top: 12px;
  color: var(--text);
}

.section-head-center {
  text-align: center;
}

/* 4. Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-amber {
  background: var(--amber);
  color: var(--navy-dark);
}

.btn-amber:hover {
  background: var(--amber-dark);
}

.btn-teal {
  background: var(--teal);
  color: #fff;
}

.btn-teal:hover {
  background: var(--teal-dark);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--navy);
}

/* 5. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 24px;
    padding: 8px 0px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
}

.logo span {
  color: var(--teal);
}

.primary-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  gap: 24px;
}

.nav-list {
  display: flex;
  gap: 32px;
  margin-inline: auto;
}

.nav-list a {
  display: block;
  padding-block: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--teal);
}

.nav-cta {
  padding: 10px 18px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 6. Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-block: 72px 130px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1f4a77 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  top: -140px;
  right: -90px;
  width: 520px;
  height: 520px;
  background: rgba(255, 255, 255, 0.05);
}

.hero::after {
  top: 30px;
  right: 60px;
  width: 300px;
  height: 300px;
  background: rgba(15, 123, 130, 0.18);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-content {
  max-width: 600px;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7fd3d8;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-sub {
  max-width: 520px;
  margin-top: 20px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-badge {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 280px;
  padding: 24px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(15, 123, 130, 0.35);
}

.badge-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7fd3d8;
}

.badge-number {
  margin-block: 6px 8px;
  white-space: nowrap;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.badge-text {
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

/* 7. Contract at a glance
   ========================================================================== */
.glance {
  position: relative;
  z-index: 2;
  margin-top: -64px;
}

.glance-card {
  display: grid;
  grid-template-columns: 1.05fr 1.3fr 0.95fr 0.85fr 1.6fr;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.glance-item {
  padding: 24px 24px 26px;
  border-left: 1px solid var(--border);
}

.glance-item dd {
  overflow-wrap: anywhere;
}

.glance-item dt {
  white-space: nowrap;
}

.glance-wide dd {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
}

.glance-item:first-child {
  border-left: 0;
}

.glance-item dt {
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.glance-item dd {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}

/* 8. Introduction
   ========================================================================== */
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 64px;
}

.intro-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.intro-copy p + p {
  margin-top: 16px;
}

.intro-visual {
  position: relative;
  padding: 48px 40px 64px;
  background: linear-gradient(135deg, #cfe3e6, #a9cbcf);
  border-radius: var(--radius-lg);
}

.intro-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.intro-panel img {
  width: 100%;
  max-width: 340px;
  height: auto;
}

.swatches {
  position: absolute;
  bottom: 22px;
  left: 40px;
  display: flex;
  gap: 8px;
}

.swatch {
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.swatch-navy {
  background: var(--navy);
}

.swatch-teal {
  background: var(--teal);
}

.swatch-amber {
  background: var(--amber);
}

/* 9. Why buy
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 28px 24px 32px;
  background: var(--surface);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  background: var(--teal-tint);
  border-radius: var(--radius);
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 10. Services
   ========================================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 16px;
}

.service-grid li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 16px 12px 52px;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.service-grid li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--teal)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.roles-title {
  margin-top: 44px;
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-list li {
  padding: 6px 14px;
  font-size: 0.78rem;
  color: var(--text);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* 11. How to purchase
   ========================================================================== */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--border);
}

.step {
  position: relative;
  padding-inline: 8px;
  text-align: center;
}

.step-number {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  border: 4px solid var(--surface-alt);
  border-radius: 50%;
  box-sizing: content-box;
  box-shadow: 0 0 0 0 transparent;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.step p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

.disclaimer {
  max-width: 620px;
  margin: 48px auto 0;
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
  color: var(--muted);
}

/* 12. FAQ
   ========================================================================== */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 20px 56px 20px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--teal);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  padding: 0 24px 22px;
  font-size: 0.9rem;
  line-height: 1.65;
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
}

/* 13. Closing CTA
   ========================================================================== */
.cta {
  padding-block: 80px;
  color: #fff;
  text-align: center;
  background: var(--teal);
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cta p {
  max-width: 640px;
  margin: 14px auto 32px;
  color: rgba(255, 255, 255, 0.92);
}

/* 13b. Request form page
   ========================================================================== */
.form-page {
  padding-block: 72px 88px;
  background: var(--surface-alt);
}

.form-card {
  max-width: 760px;
  margin-inline: auto;
  padding: 40px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-card h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
}

.form-card > p {
  margin-top: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  padding: 11px 14px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-card .btn {
  margin-top: 24px;
}

@media (max-width: 600px) {
  .form-card {
    padding: 28px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* 14. Footer
   ========================================================================== */
.site-footer {
  padding-block: 22px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  background: var(--navy-dark);
}

.footer-inner {

  gap: 12px 24px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 18px;
}

/* 15. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-list {
    gap: 20px;
  }

  .glance-card {
    grid-template-columns: repeat(3, 1fr);
  }

  .glance-item:nth-child(4) {
    border-left: 0;
  }

  .glance-item:nth-child(n + 4) {
    border-top: 1px solid var(--border);
  }

  .glance-item:last-child {
    grid-column: span 2;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 24px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 4px;
    margin: 0;
  }

  .nav-list a {
    padding-block: 10px;
    font-size: 0.95rem;
  }

  .hero {
    padding-block: 56px 120px;
  }

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

  .hero-badge {
    width: 220px;
    height: 220px;
  }

  .badge-number {
    font-size: 1.5rem;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .section {
    padding-block: 64px;
  }

  .glance {
    margin-top: -56px;
  }

  .glance-card {
    grid-template-columns: 1fr 1fr;
  }

  .glance-item,
  .glance-item:nth-child(4) {
    border-left: 1px solid var(--border);
  }

  .glance-item:nth-child(odd) {
    border-left: 0;
  }

  .glance-item:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .glance-item:last-child {
    grid-column: 1 / -1;
    border-left: 0;
  }

  .card-grid,
  .service-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .intro-visual {
    padding: 32px 20px 60px;
  }

  .swatches {
    left: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}



.footer-inner {
    text-align: center;
}

.footer-inner p {
    margin: 0;
    text-align: center;
}


.site-footer,
.footer-inner,
.footer-inner-content {
    text-align: center;
}

.footer-inner-content p {
    margin: 0;
}