/*!
 * Home page — new sections (2026 redesign)
 * Scoped via .swimm-* namespace. Only enqueued on the front page (see inc/scripts.php).
 * Source: scss/home-new-sections.scss
 */

:root {
  --swimm-blue-900: #1A2761;
  --swimm-blue-800: #2635A7;
  --swimm-blue-700: #325BFF;
  --swimm-blue-600: #527DFF;
  --swimm-blue-400: #6891F9;
  --swimm-blue-300: #AFC8FB;
  --swimm-blue-200: #D5E3FF;
  --swimm-blue-100: #E2EBFF;
  --swimm-gray-50: #FDFCFE;
  --swimm-gray-100: #F3F3FB;
  --swimm-gray-150: #EAECF9;
  --swimm-gray-200: #DEE3F6;
  --swimm-gray-300: #8594BE;
  --swimm-gray-500: #415992;
  --swimm-pink-400: #E99DB1;
  --swimm-yellow-200: #FFDFBB;
  --swimm-yellow-300: #FFC381;
  /* Match the rest of the site's font stack: hero title uses
     var(--Title-Font, "Regesto Grotesk") (see .hero-cover__title in css/style.css).
     Body text uses var(--Text-Font, ...). Using the same variables keeps these
     sections consistent with the rest of the homepage. */
  --swimm-font-heading: var(--Title-Font, "Regesto Grotesk", "Regesto_Grotesk", "Grotesk_Extended", sans-serif);
  --swimm-font-body: var(--Text-Font, "Mulish", sans-serif);
  --swimm-section-padding-y: 120px;
  --swimm-section-padding-x: 48px;
  --swimm-container: 1200px;
}

/* ============================================================
   SHARED PRIMITIVES
   ============================================================ */
.swimm-section { padding: var(--swimm-section-padding-y) var(--swimm-section-padding-x); font-family: var(--swimm-font-body); color: var(--swimm-blue-900); }
.swimm-section-inner { max-width: var(--swimm-container); margin: 0 auto; }
.swimm-section-header { text-align: center; margin: 0 auto 64px auto; max-width: 760px; }
.swimm-eyebrow {
  font-family: var(--swimm-font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--swimm-blue-700);
  margin-bottom: 20px;
  display: block;
}
.swimm-h2 {
  font-family: var(--swimm-font-heading);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--swimm-blue-900);
  margin: 0 0 18px 0;
}
.swimm-subhead {
  font-family: var(--swimm-font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--swimm-gray-500);
  margin: 0 auto;
  max-width: 640px;
}

/* ============================================================
   1. OFFERINGS
   ============================================================ */
.swimm-offerings { background: var(--swimm-gray-50); }
.swimm-offerings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.swimm-offering-card {
  background: #fff;
  border: 1px solid var(--swimm-gray-200);
  border-radius: 16px;
  padding: 36px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--swimm-blue-900);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  min-height: 320px;
}
.swimm-offering-card:hover {
  border-color: var(--swimm-blue-700);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(50, 91, 255, 0.10);
}
.swimm-offering-icon { width: 44px; height: 44px; color: var(--swimm-blue-700); margin-bottom: 24px; }
.swimm-offering-icon svg { width: 100%; height: 100%; }
.swimm-offering-name {
  font-family: var(--swimm-font-heading);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--swimm-blue-900);
  margin: 0 0 8px 0;
}
.swimm-offering-tagline {
  font-size: 14px;
  font-weight: 500;
  color: var(--swimm-blue-700);
  margin: 0 0 14px 0;
  line-height: 1.3;
}
.swimm-offering-desc { font-size: 16px; line-height: 1.5; color: var(--swimm-gray-500); margin: 0; flex-grow: 1; }
.swimm-offering-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.swimm-chip {
  font-size: 12px; font-weight: 500;
  color: var(--swimm-blue-700);
  background: var(--swimm-blue-100);
  padding: 4px 10px;
  border-radius: 12px;
}
.swimm-offering-link {
  margin-top: 24px;
  font-size: 15px; font-weight: 500;
  color: var(--swimm-blue-700);
  display: inline-flex; align-items: center; gap: 6px;
}
.swimm-offering-link::after { content: "\2192"; transition: transform 0.18s; }
.swimm-offering-card:hover .swimm-offering-link::after { transform: translateX(3px); }

/* ============================================================
   2. THREE LAYERS
   ============================================================ */
.swimm-three-layers {
  background: var(--swimm-blue-900);
  color: var(--swimm-gray-50);
  position: relative;
  overflow: hidden;
}
.swimm-three-layers::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(104, 145, 249, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(233, 157, 177, 0.04) 0%, transparent 40%);
  pointer-events: none;
}
.swimm-three-layers .swimm-section-inner { position: relative; }
.swimm-three-layers .swimm-eyebrow { color: var(--swimm-blue-400); }
.swimm-three-layers .swimm-h2 { color: var(--swimm-gray-50); }
.swimm-three-layers .swimm-subhead { color: var(--swimm-gray-150); max-width: 720px; }
.swimm-layers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.swimm-layer-card {
  background: rgba(38, 53, 167, 0.22);
  border: 1px solid rgba(104, 145, 249, 0.18);
  border-radius: 16px;
  padding: 40px 32px 36px 32px;
  backdrop-filter: blur(8px);
}
.swimm-layer-accent { width: 36px; height: 3px; background: var(--swimm-blue-400); border-radius: 2px; margin-bottom: 24px; }
.swimm-layer-title {
  font-family: var(--swimm-font-heading);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 16px 0;
}
.swimm-layer-body { font-size: 15px; line-height: 1.55; color: var(--swimm-gray-150); margin: 0; }

/* ============================================================
   3. HOW WE DELIVER
   ============================================================ */
.swimm-how-we-deliver { background: var(--swimm-gray-50); }
.swimm-how-we-deliver .swimm-subhead strong { color: var(--swimm-blue-900); font-weight: 600; }
.swimm-diagram {
  background: #fff;
  border: 1px solid var(--swimm-gray-200);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(26, 39, 97, 0.06);
}
.swimm-layer-block { padding: 48px 56px; }
.swimm-layer-block--portal { background: #fff; }
.swimm-layer-block--system { background: var(--swimm-blue-900); color: var(--swimm-gray-50); }
.swimm-block-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--swimm-gray-300);
  margin-bottom: 8px;
}
.swimm-layer-block--system .swimm-block-label { color: var(--swimm-blue-400); }
.swimm-block-title {
  font-family: var(--swimm-font-heading);
  font-weight: 400; font-size: 26px;
  line-height: 1.15;
  margin: 0 0 32px 0;
}
.swimm-portal-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.swimm-tile {
  background: var(--swimm-gray-100);
  border: 1px solid var(--swimm-gray-200);
  border-radius: 8px;
  padding: 18px 16px;
  min-height: 132px;
  display: flex; flex-direction: column;
  justify-content: space-between;
}
.swimm-tile-label { font-size: 12px; font-weight: 600; color: var(--swimm-blue-900); margin-bottom: 14px; }
.swimm-tile-bars { display: flex; flex-direction: column; gap: 6px; }
.swimm-tile-bar { height: 5px; border-radius: 2px; background: var(--swimm-gray-200); }
.swimm-tile-bar.fill-100 { background: var(--swimm-blue-700); }
.swimm-tile-bar.fill-70 { background: var(--swimm-blue-700); width: 70%; }
.swimm-tile-bar.fill-40 { background: var(--swimm-blue-400); width: 40%; }
.swimm-tile-bar.fill-25 { background: var(--swimm-blue-300); width: 25%; }
.swimm-tile-status { font-size: 11px; color: var(--swimm-gray-500); margin-top: 14px; }
.swimm-tile-status .swimm-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--swimm-blue-700);
  margin-right: 6px; vertical-align: middle;
}
.swimm-tile-check { color: var(--swimm-blue-700); font-weight: 600; }
.swimm-divider {
  height: 4px;
  background: linear-gradient(90deg,
    var(--swimm-yellow-200) 0%,
    var(--swimm-pink-400) 25%,
    var(--swimm-blue-400) 55%,
    var(--swimm-blue-700) 80%,
    var(--swimm-blue-900) 100%
  );
}
.swimm-system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.swimm-system-block { border-left: 1px solid rgba(255, 255, 255, 0.15); padding-left: 24px; }
.swimm-system-block:first-child { border-left: none; padding-left: 0; }
.swimm-system-name {
  font-family: var(--swimm-font-heading);
  font-weight: 400; font-size: 22px;
  margin: 0 0 8px 0; color: #fff;
}
.swimm-system-desc { font-size: 15px; line-height: 1.5; color: var(--swimm-gray-150); margin: 0; }
.swimm-callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.swimm-callout-title {
  font-family: var(--swimm-font-heading);
  font-weight: 400; font-size: 20px;
  color: var(--swimm-blue-900);
  margin: 0 0 8px 0;
}
.swimm-callout-body { font-size: 15px; line-height: 1.5; color: var(--swimm-gray-500); margin: 0; }

/* ============================================================
   4. ENGAGEMENT MODEL
   ============================================================ */
.swimm-modular { background: var(--swimm-gray-50); }
.swimm-stages-row {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr 32px 1fr;
  align-items: stretch;
  gap: 0;
  margin-top: 24px;
}
.swimm-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
}
.swimm-stage-num {
  font-family: var(--swimm-font-heading);
  font-size: 14px;
  color: var(--swimm-blue-700);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.swimm-stage-name {
  font-family: var(--swimm-font-heading);
  font-size: 24px;
  font-weight: 400;
  color: var(--swimm-blue-900);
  margin: 0 0 24px 0;
  line-height: 1.15;
}
.swimm-stage-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--swimm-gray-500);
  margin: 0 0 36px 0;
  flex-grow: 1;
}
.swimm-stage-bar {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  margin-top: auto;
}
.swimm-stage-bar--01 { background: var(--swimm-blue-200); }
.swimm-stage-bar--02 { background: var(--swimm-blue-300); }
.swimm-stage-bar--03 { background: var(--swimm-blue-700); }
.swimm-stage-bar--04 { background: var(--swimm-blue-900); }
.swimm-stage-arrow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 70px;
  color: var(--swimm-blue-700);
}
.swimm-stage-arrow svg { width: 24px; height: 24px; }
.swimm-modular-footer {
  margin-top: 56px;
  text-align: center;
  font-size: 16px;
  color: var(--swimm-gray-500);
  line-height: 1.5;
}
.swimm-modular-footer strong { color: var(--swimm-blue-900); font-weight: 600; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  :root { --swimm-section-padding-y: 80px; }
  .swimm-h2 { font-size: 32px; }
  .swimm-offerings-grid,
  .swimm-layers-grid { grid-template-columns: 1fr; gap: 16px; }
  .swimm-portal-tiles { grid-template-columns: repeat(3, 1fr); }
  .swimm-system-grid { grid-template-columns: 1fr; }
  .swimm-system-block { border-left: none; padding-left: 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.15); }
  .swimm-system-block:first-child { padding-top: 0; border-top: none; }
  .swimm-callouts { grid-template-columns: 1fr; gap: 24px; }
  .swimm-stages-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .swimm-stage-arrow { display: none; }
}
@media (max-width: 600px) {
  :root { --swimm-section-padding-x: 24px; }
  .swimm-h2 { font-size: 26px; }
  .swimm-layer-block { padding: 32px 24px; }
  .swimm-portal-tiles { grid-template-columns: repeat(2, 1fr); }
  .swimm-stages-row { grid-template-columns: 1fr; }
}
