/*
 * Steri-Pro 2.0 UI System
 * File: steri-pro.css
 * Stack: WordPress + Gutenberg + Blocksy
 * Scope: reusable corporate-site components
 * Naming convention: sp-*
 */

/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */

:root {
  --sp-accent: #41A496;
  --sp-accent-dark: #34877c;
  --sp-accent-soft: #eef8f6;

  --sp-navy: #17324d;
  --sp-text: #243342;
  --sp-muted: #667788;
  --sp-border: #dfe7eb;
  --sp-surface: #ffffff;
  --sp-surface-soft: #f5f8f9;

  --sp-radius-sm: 10px;
  --sp-radius-md: 16px;
  --sp-radius-lg: 24px;

  --sp-shadow-sm: 0 8px 24px rgba(23, 50, 77, 0.07);
  --sp-shadow-md: 0 18px 46px rgba(23, 50, 77, 0.10);

  --sp-container: 1200px;
  --sp-gap: clamp(18px, 2.4vw, 32px);
  --sp-section-space: clamp(56px, 7vw, 96px);
}

/* =========================================================
   02. SHARED LAYOUT
   ========================================================= */

.sp-section {
  padding-block: var(--sp-section-space);
}

.sp-section--soft {
  background: var(--sp-surface-soft);
}

.sp-container {
  width: min(calc(100% - 40px), var(--sp-container));
  margin-inline: auto;
}

.sp-section-head {
  max-width: 780px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.sp-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--sp-accent-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp-section-title {
  margin: 0 0 16px;
  color: var(--sp-navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.sp-section-lead {
  margin: 0;
  color: var(--sp-muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
}

/* =========================================================
   03. BUTTONS
   ========================================================= */

.sp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--sp-accent);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.sp-btn:hover,
.sp-btn:focus-visible {
  background: var(--sp-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.sp-btn--secondary {
  border-color: var(--sp-border);
  background: #fff;
  color: var(--sp-navy);
}

.sp-btn--secondary:hover,
.sp-btn--secondary:focus-visible {
  border-color: var(--sp-accent);
  background: var(--sp-accent-soft);
  color: var(--sp-navy);
}

/* =========================================================
   04. HUB HERO
   ========================================================= */

.sp-hub-hero {
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 92px);
  background:
    radial-gradient(circle at 82% 28%, rgba(65,164,150,.13), transparent 34%),
    linear-gradient(135deg, #f7fbfb 0%, #ffffff 65%);
}

.sp-hub-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: clamp(34px, 6vw, 78px);
}

.sp-hub-hero__content {
  max-width: 720px;
}

.sp-hub-hero__title {
  margin: 0 0 20px;
  color: var(--sp-navy);
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.sp-hub-hero__lead {
  max-width: 680px;
  margin: 0;
  color: var(--sp-muted);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.65;
}

.sp-hub-hero__media {
  min-width: 0;
}

.sp-hub-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

/* =========================================================
   05. BULLETS / BENEFITS
   ========================================================= */

.sp-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-gap);
}

.sp-benefit-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-md);
  background: var(--sp-surface);
}

.sp-benefit-card__number,
.sp-benefit-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--sp-accent-soft);
  color: var(--sp-accent-dark);
  font-weight: 800;
}

.sp-benefit-card__title {
  margin: 0 0 10px;
  color: var(--sp-navy);
  font-size: 21px;
  line-height: 1.25;
}

.sp-benefit-card__text {
  margin: 0;
  color: var(--sp-muted);
  line-height: 1.65;
}

/* =========================================================
   06. EQUIPMENT GRID / PRODUCT CARDS
   ========================================================= */

.sp-equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-gap);
}

.sp-equipment-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  background: var(--sp-surface);
  box-shadow: var(--sp-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.sp-equipment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sp-shadow-md);
}

.sp-equipment-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 28px;
  background: #f8fafb;
}

.sp-equipment-card__media img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: contain;
}

.sp-equipment-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
}

.sp-equipment-card__title {
  margin: 0 0 12px;
  color: var(--sp-navy);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
}

.sp-equipment-card__text {
  margin: 0 0 22px;
  color: var(--sp-muted);
  line-height: 1.65;
}

.sp-equipment-card__meta {
  display: grid;
  gap: 9px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.sp-equipment-card__meta li {
  position: relative;
  padding-left: 20px;
  color: var(--sp-text);
}

.sp-equipment-card__meta li::before {
  position: absolute;
  top: .62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sp-accent);
  content: "";
}

.sp-equipment-card__footer {
  margin-top: auto;
}

/* =========================================================
   07. INFORMATION PANEL
   ========================================================= */

.sp-info-panel {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--sp-radius-lg);
  background: var(--sp-navy);
  color: #fff;
}

.sp-info-panel__title {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
}

.sp-info-panel__content {
  color: rgba(255,255,255,.82);
  font-size: 17px;
  line-height: 1.7;
}

.sp-info-panel__content > :first-child {
  margin-top: 0;
}

.sp-info-panel__content > :last-child {
  margin-bottom: 0;
}

/* =========================================================
   08. COMPARISON
   Desktop table -> mobile cards
   Markup convention:
   td[data-label="Parameter"]
   ========================================================= */

.sp-comparison {
  width: 100%;
}

.sp-comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-md);
  background: #fff;
}

.sp-comparison-table th,
.sp-comparison-table td {
  padding: 17px 18px;
  border-right: 1px solid var(--sp-border);
  border-bottom: 1px solid var(--sp-border);
  vertical-align: top;
  text-align: left;
  line-height: 1.45;
}

.sp-comparison-table th {
  background: var(--sp-navy);
  color: #fff;
  font-weight: 700;
}

.sp-comparison-table td {
  color: var(--sp-text);
}

.sp-comparison-table tr:last-child td {
  border-bottom: 0;
}

.sp-comparison-table th:last-child,
.sp-comparison-table td:last-child {
  border-right: 0;
}

/* =========================================================
   09. FAQ
   Native <details> - no JS required
   ========================================================= */

.sp-faq {
  display: grid;
  gap: 12px;
}

.sp-faq__item {
  overflow: hidden;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  background: #fff;
}

.sp-faq__question {
  position: relative;
  padding: 20px 54px 20px 22px;
  color: var(--sp-navy);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.sp-faq__question::-webkit-details-marker {
  display: none;
}

.sp-faq__question::after {
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--sp-accent);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  content: "+";
  transform: translateY(-50%);
}

.sp-faq__item[open] .sp-faq__question::after {
  content: "−";
}

.sp-faq__answer {
  padding: 0 22px 22px;
  color: var(--sp-muted);
  line-height: 1.7;
}

.sp-faq__answer > :first-child {
  margin-top: 0;
}

.sp-faq__answer > :last-child {
  margin-bottom: 0;
}

/* =========================================================
   10. CTA
   ========================================================= */

.sp-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 58px);
  border-radius: var(--sp-radius-lg);
  background:
    radial-gradient(circle at 90% 20%, rgba(255,255,255,.15), transparent 30%),
    var(--sp-accent);
  color: #fff;
}

.sp-cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.sp-cta__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
}

.sp-cta__text {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 17px;
  line-height: 1.65;
}

.sp-cta .sp-btn {
  background: #fff;
  color: var(--sp-navy);
}

.sp-cta .sp-btn:hover,
.sp-cta .sp-btn:focus-visible {
  background: var(--sp-navy);
  color: #fff;
}

/* =========================================================
   11. RELATED / INTERNAL LINKING
   ========================================================= */

.sp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-gap);
}

.sp-related-card {
  display: block;
  padding: 26px;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-md);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.sp-related-card:hover,
.sp-related-card:focus-visible {
  border-color: rgba(65,164,150,.55);
  color: inherit;
  transform: translateY(-2px);
  box-shadow: var(--sp-shadow-sm);
}

.sp-related-card__title {
  display: block;
  margin-bottom: 8px;
  color: var(--sp-navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.sp-related-card__text {
  display: block;
  color: var(--sp-muted);
  line-height: 1.55;
}

/* =========================================================
   12. ACCESSIBILITY / FOCUS
   ========================================================= */

.sp-btn:focus-visible,
.sp-related-card:focus-visible,
.sp-faq__question:focus-visible {
  outline: 3px solid rgba(65,164,150,.32);
  outline-offset: 3px;
}

/* =========================================================
   13. RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .sp-hub-hero__grid,
  .sp-info-panel,
  .sp-cta__grid {
    grid-template-columns: 1fr;
  }

  .sp-hub-hero__media {
    max-width: 680px;
    margin-inline: auto;
  }

  .sp-benefit-grid,
  .sp-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-cta__grid {
    align-items: start;
  }
}

@media (max-width: 700px) {
  .sp-container {
    width: min(calc(100% - 24px), var(--sp-container));
  }

  .sp-section {
    padding-block: 48px;
  }

  .sp-hub-hero {
    padding-block: 38px 48px;
  }

  .sp-hub-hero__grid {
    gap: 28px;
  }

  .sp-hub-hero__title {
    font-size: clamp(36px, 11vw, 52px);
  }

  .sp-benefit-grid,
  .sp-equipment-grid,
  .sp-related-grid {
    grid-template-columns: 1fr;
  }

  .sp-benefit-card,
  .sp-equipment-card__body {
    padding: 22px;
  }

  .sp-equipment-card__media {
    min-height: 240px;
    padding: 20px;
  }

  .sp-equipment-card__media img {
    height: 220px;
  }

  .sp-info-panel,
  .sp-cta {
    padding: 26px 22px;
    border-radius: 18px;
  }

  /* Table becomes a stack of cards. No horizontal scroll. */
  .sp-comparison-table,
  .sp-comparison-table tbody,
  .sp-comparison-table tr,
  .sp-comparison-table td {
    display: block;
    width: 100%;
  }

  .sp-comparison-table {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .sp-comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .sp-comparison-table tr {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid var(--sp-border);
    border-radius: 14px;
    background: #fff;
  }

  .sp-comparison-table td {
    display: grid;
    grid-template-columns: minmax(105px, 40%) minmax(0, 1fr);
    gap: 14px;
    padding: 13px 15px;
    border-right: 0;
    border-bottom: 1px solid var(--sp-border);
  }

  .sp-comparison-table td:last-child {
    border-bottom: 0;
  }

  .sp-comparison-table td::before {
    color: var(--sp-navy);
    font-weight: 700;
    content: attr(data-label);
  }

  .sp-actions,
  .sp-actions .sp-btn {
    width: 100%;
  }

  .sp-btn {
    min-height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-btn,
  .sp-equipment-card,
  .sp-related-card {
    transition: none;
  }
}

/* =========================================================
   14. SPACING REFINEMENTS
   ========================================================= */

.sp-hub-hero + .sp-section {
  padding-top: clamp(44px, 5.5vw, 72px);
}

/* Support newer markup where H1 is used without __title */
.sp-hub-hero__content > h1 {
  margin: 0 0 20px;
  color: var(--sp-navy);
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

/* Support simple h3/p markup inside benefit cards */
.sp-benefit-card > h3 {
  margin: 0 0 10px;
  color: var(--sp-navy);
  font-size: 21px;
  line-height: 1.25;
}

.sp-benefit-card > p {
  margin: 0;
  color: var(--sp-muted);
  line-height: 1.65;
}

/* =========================================================
   15. PROCESS / STEPS
   ========================================================= */

.sp-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sp-process__item {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-md);
  background: var(--sp-surface);
  box-shadow: var(--sp-shadow-sm);
}

.sp-process__number {
  display: block;
  margin: 0 0 18px;
  color: var(--sp-accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
}

.sp-process__number::after {
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--sp-accent);
  content: "";
}

.sp-process__title {
  margin: 0 0 12px;
  color: var(--sp-navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.sp-process__text {
  margin: 0;
  color: var(--sp-muted);
  font-size: 16px;
  line-height: 1.65;
}

/* =========================================================
   16. BENEFIT MINIMAL MARKER
   ========================================================= */

.sp-benefit-card__mark {
  position: relative;
  width: 42px;
  height: 12px;
  margin-bottom: 22px;
}

.sp-benefit-card__mark::before {
  position: absolute;
  top: 5px;
  left: 0;
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--sp-accent);
  content: "";
}

.sp-benefit-card__mark::after {
  position: absolute;
  top: 2px;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sp-accent);
  content: "";
}

/* =========================================================
   17. SERVICE / CATEGORY CARDS
   ========================================================= */

.sp-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sp-service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-md);
  background: var(--sp-surface);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.sp-service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(65,164,150,.35);
  box-shadow: var(--sp-shadow-md);
}

.sp-service-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--sp-surface-soft);
}

.sp-service-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.sp-service-card:hover .sp-service-card__media img {
  transform: scale(1.025);
}

.sp-service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.sp-service-card__label {
  display: block;
  margin-bottom: 12px;
  color: var(--sp-accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.sp-service-card__title,
.sp-service-card > h3 {
  margin: 0 0 12px;
  color: var(--sp-text);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 750;
  line-height: 1.25;
}

.sp-service-card__text,
.sp-service-card > p {
  margin: 0 0 24px;
  color: var(--sp-muted);
  font-size: 16px;
  line-height: 1.65;
}

.sp-service-card__footer {
  margin-top: auto;
  padding-top: 4px;
}

.sp-service-card__link,
.sp-service-card > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--sp-accent-dark);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.sp-service-card__link::after,
.sp-service-card > a::after {
  content: "→";
  transition: transform .2s ease;
}

.sp-service-card__link:hover,
.sp-service-card > a:hover {
  color: var(--sp-accent);
}

/* Simple service-card markup needs padding */
.sp-service-card:not(:has(.sp-service-card__body)) {
  padding: 28px;
}

/* =========================================================
   18. TECHNICAL FEATURE CARDS
   ========================================================= */

.sp-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.sp-tech-card {
  position: relative;
  min-width: 0;
  padding: 32px;
  border: 1px solid rgba(20,45,50,.09);
  border-radius: var(--sp-radius-md);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sp-tech-card:hover {
  transform: translateY(-3px);
  border-color: rgba(65,164,150,.28);
  box-shadow: 0 14px 35px rgba(20,45,50,.07);
}

.sp-tech-card__number {
  margin: 0 0 28px;
  color: var(--sp-accent);
  font-size: 14px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: .08em;
}

.sp-tech-card h3 {
  margin: 0 0 14px;
  color: #17242b;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.sp-tech-card p {
  margin: 0;
  color: #66747a;
  font-size: 15px;
  line-height: 1.7;
}

/* =========================================================
   19. CATALOG CARDS
   Separate from .sp-equipment-* product cards
   ========================================================= */

.sp-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.sp-catalog-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(20,45,50,.09);
  border-radius: var(--sp-radius-md);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sp-catalog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(65,164,150,.25);
  box-shadow: 0 16px 38px rgba(20,45,50,.07);
}

.sp-catalog-card--featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(360px,.9fr) minmax(0,1.1fr);
}

.sp-catalog-card__image {
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: #eef3f2;
}

.sp-catalog-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  transition: transform .35s ease;
}

.sp-catalog-card:hover .sp-catalog-card__image img {
  transform: scale(1.025);
}

.sp-catalog-card--featured .sp-catalog-card__image img {
  min-height: 360px;
}

.sp-catalog-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 30px;
}

.sp-catalog-card__body h3 {
  margin: 0 0 14px;
  color: #17242b;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}

.sp-catalog-card--featured .sp-catalog-card__body h3 {
  font-size: 28px;
}

.sp-catalog-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.sp-catalog-card__body p {
  margin: 0 0 20px;
  color: #657279;
  font-size: 15px;
  line-height: 1.7;
}

.sp-catalog-card__meta {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 7px 11px;
  border-radius: 7px;
  background: rgba(65,164,150,.09);
  color: #327f75;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
}

.sp-catalog-card__link {
  margin-top: auto;
  color: #328c80;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: none;
}

.sp-catalog-card__link::after {
  content: " →";
}

.sp-catalog-card__link:hover {
  color: #246d64;
}

/* =========================================================
   20. CONTACT + MAP
   ========================================================= */

.sp-contact {
  display: grid;
  grid-template-columns: minmax(300px,.8fr) minmax(500px,1.2fr);
  gap: 52px;
  align-items: stretch;
}

.sp-contact__content {
  min-width: 0;
  padding: 20px 0;
}

.sp-contact__content h2 {
  margin: 0 0 18px;
  color: var(--sp-navy);
}

.sp-contact__lead {
  max-width: 520px;
  margin: 0 0 30px;
  color: var(--sp-muted);
  line-height: 1.65;
}

.sp-contact__list {
  display: grid;
  margin: 0 0 30px;
}

.sp-contact__item {
  padding: 17px 0;
  border-bottom: 1px solid rgba(20,35,45,.12);
}

.sp-contact__item:first-child {
  border-top: 1px solid rgba(20,35,45,.12);
}

.sp-contact__label {
  display: block;
  margin-bottom: 5px;
  color: #6b747a;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sp-contact__item a,
.sp-contact__item address {
  color: #182328;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
}

.sp-contact__item a {
  text-decoration: none;
}

.sp-contact__item a:hover {
  color: var(--sp-accent);
}

.sp-contact__item address {
  margin: 0;
  font-style: normal;
}

.sp-contact__map {
  position: relative;
  min-width: 0;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(20,35,45,.1);
  border-radius: 18px;
  background: #e9eeee;
}

.sp-contact__map iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* =========================================================
   21. ABOUT PAGE
   ========================================================= */

.sp-about-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px,7vw,76px) 0;
  background:
    radial-gradient(circle at 82% 40%, rgba(65,164,150,.10), transparent 30%),
    #f7faf9;
}

.sp-about-hero__grid {
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(320px,.92fr);
  gap: 72px;
  align-items: center;
}

.sp-about-hero h1 {
  max-width: 680px;
  margin: 0 0 22px;
  color: #17242b;
  font-size: clamp(42px,5vw,66px);
  line-height: 1.04;
  font-weight: 750;
  letter-spacing: -.035em;
}

.sp-about-hero__lead {
  max-width: 680px;
  margin: 0 0 18px;
  color: #34454d;
  font-size: 20px;
  line-height: 1.6;
}

.sp-about-hero__text {
  max-width: 650px;
  margin: 0 0 30px;
  color: #647178;
  font-size: 16px;
  line-height: 1.75;
}

.sp-about-hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 330px;
  padding: 48px;
  border: 1px solid rgba(20,45,50,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.72);
}

.sp-about-hero__brand img {
  display: block;
  width: min(100%,430px);
  height: auto;
  object-fit: contain;
}

.sp-about-intro {
  padding: var(--sp-section-space) 0;
  background: #fff;
}

.sp-about-intro__grid {
  display: grid;
  grid-template-columns: minmax(280px,.82fr) minmax(0,1.18fr);
  gap: 90px;
  align-items: start;
}

.sp-about-intro__heading h2 {
  max-width: 470px;
  margin: 0;
  color: #17242b;
  font-size: clamp(32px,3.5vw,46px);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -.025em;
}

.sp-about-intro__content {
  max-width: 700px;
}

.sp-about-intro__content p {
  margin: 0 0 20px;
  color: #5d6a70;
  font-size: 17px;
  line-height: 1.78;
}

.sp-about-intro__content p:last-child {
  margin-bottom: 0;
}

.sp-about-intro__content .sp-about-intro__lead {
  margin-bottom: 28px;
  color: #25363e;
  font-size: 21px;
  line-height: 1.6;
  font-weight: 600;
}

/* =========================================================
   22. EXTENSION RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
  .sp-catalog-grid {
    grid-template-columns: 1fr;
  }

  .sp-catalog-card--featured {
    grid-column: auto;
  }

  .sp-catalog-card,
  .sp-catalog-card--featured {
    grid-template-columns: 260px minmax(0,1fr);
  }

  .sp-catalog-card__image img,
  .sp-catalog-card--featured .sp-catalog-card__image img {
    min-height: 290px;
  }
}

@media (max-width: 900px) {
  .sp-process,
  .sp-service-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .sp-tech-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sp-contact,
  .sp-about-hero__grid,
  .sp-about-intro__grid {
    grid-template-columns: 1fr;
  }

  .sp-contact {
    gap: 32px;
  }

  .sp-contact__map {
    min-height: 420px;
  }

  .sp-about-hero__grid,
  .sp-about-intro__grid {
    gap: 36px;
  }

  .sp-tech-card {
    padding: 28px;
  }

  .sp-tech-card__number {
    margin-bottom: 18px;
  }
}

@media (max-width: 700px) {
  .sp-hub-hero__content > h1 {
    font-size: clamp(36px,11vw,52px);
  }

  .sp-process,
  .sp-service-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sp-process__item {
    padding: 20px;
  }

  .sp-service-card__body,
  .sp-service-card:not(:has(.sp-service-card__body)) {
    padding: 22px 20px;
  }

  .sp-service-card__media {
    aspect-ratio: 16 / 9;
  }

  .sp-catalog-card,
  .sp-catalog-card--featured {
    grid-template-columns: 1fr;
  }

  .sp-catalog-card__image {
    aspect-ratio: 16 / 9;
  }

  .sp-catalog-card__image img,
  .sp-catalog-card--featured .sp-catalog-card__image img {
    min-height: 0;
    height: 100%;
  }

  .sp-catalog-card__body {
    padding: 24px 20px;
  }

  .sp-catalog-card__body h3,
  .sp-catalog-card--featured .sp-catalog-card__body h3 {
    font-size: 20px;
  }

  .sp-contact__content {
    padding: 0;
  }

  .sp-contact__map {
    min-height: 360px;
    border-radius: 12px;
  }

  .sp-about-hero__brand {
    min-height: 200px;
    padding: 28px 22px;
    border-radius: 14px;
  }

  .sp-about-intro {
    padding: 54px 0;
  }
}

@media (max-width: 600px) {
  .sp-tech-grid {
    gap: 12px;
  }

  .sp-tech-card {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .sp-tech-card h3 {
    font-size: 18px;
  }

  .sp-about-hero h1 {
    font-size: 38px;
  }

  .sp-about-hero__lead {
    font-size: 18px;
  }

  .sp-about-intro__heading h2 {
    font-size: 31px;
  }

  .sp-about-intro__content .sp-about-intro__lead {
    font-size: 19px;
  }

  .sp-about-intro__content p {
    font-size: 16px;
    line-height: 1.7;
  }
}
/* =========================================================
   VISUAL CATALOG TILES
   ========================================================= */

.sp-catalog-grid--visual {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}


/* CARD */

.sp-catalog-tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    border: 1px solid var(--sp-border);
    border-radius: 18px;
    background: #fff;

    box-shadow: 0 8px 28px rgba(23, 50, 77, .055);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.sp-catalog-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(65, 164, 150, .30);
    box-shadow: 0 16px 38px rgba(23, 50, 77, .09);
}


/* IMAGE */

.sp-catalog-tile__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8.5;
    overflow: hidden;

    background: #edf2f2;
}

.sp-catalog-tile__media img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform .4s ease;
}

.sp-catalog-tile:hover .sp-catalog-tile__media img {
    transform: scale(1.025);
}


/* PRIMARY CARD */

.sp-catalog-tile--primary {
    border-color: rgba(65, 164, 150, .30);
}

.sp-catalog-tile--primary .sp-catalog-tile__media {
    background: #eaf4f2;
}


/* CONTENT */

.sp-catalog-tile__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;

    padding: 28px 30px 30px;
}


/* LABEL */

.sp-catalog-tile__label {
    margin-bottom: 11px;

    color: var(--sp-accent-dark);

    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .065em;
    text-transform: uppercase;
}


/* TITLE */

.sp-catalog-tile__title {
    margin: 0 0 14px;

    color: var(--sp-navy);

    font-size: clamp(21px, 2vw, 26px);
    line-height: 1.22;
    font-weight: 750;
}

.sp-catalog-tile__title a {
    color: inherit;
    text-decoration: none;
}

.sp-catalog-tile__title a:hover {
    color: var(--sp-accent-dark);
}


/* DESCRIPTION */

.sp-catalog-tile__text {
    margin: 0 0 20px;

    color: var(--sp-muted);

    font-size: 15px;
    line-height: 1.7;
}


/* SPEC */

.sp-catalog-tile__spec {
    display: inline-flex;

    margin: 0 0 20px;
    padding: 7px 11px;

    border-radius: 7px;

    background: var(--sp-accent-soft);
    color: var(--sp-accent-dark);

    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}


/* LINK */

.sp-catalog-tile__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: auto;

    color: var(--sp-accent-dark);

    font-size: 14px;
    line-height: 1.4;
    font-weight: 750;

    text-decoration: none;
}

.sp-catalog-tile__link::after {
    content: "→";
    transition: transform .2s ease;
}

.sp-catalog-tile__link:hover {
    color: var(--sp-accent);
}

.sp-catalog-tile__link:hover::after {
    transform: translateX(4px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .sp-catalog-grid--visual {
        gap: 18px;
    }

    .sp-catalog-tile__body {
        padding: 24px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .sp-catalog-grid--visual {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sp-catalog-tile {
        border-radius: 14px;
    }

    .sp-catalog-tile__media {
        aspect-ratio: 16 / 9;
    }

    .sp-catalog-tile__body {
        padding: 22px 20px 24px;
    }

    .sp-catalog-tile__title {
        font-size: 21px;
    }

}