/*
 * Swish Reply site styles. This is the only stylesheet (css/noscript.css adds a few
 * rules when JavaScript is off). No framework.
 *
 *   1. Tokens and base
 *   2. Helpers
 *   3. Header and menu
 *   4. Home: slides
 *   5. Sections, home welcome, capability cards
 *   6. Inner page heading band
 *   7. Our Partnership: logo grids
 *   8. JV Team: company cards
 *   9. Contact
 *  10. Footer and back-to-top link
 *  11. Smaller screens
 *  12. Motion and print
 */

/* 1. Tokens and base -------------------------------------------------- */

:root {
  --sr-navy: #141a5c;
  --sr-indigo: #2a2fa3;
  --sr-blue: #0466c8;
  --sr-cyan: #2bd0f5;
  --sr-ink: #0d1126;
  --sr-text: #474d63;
  --sr-muted: #5f6680;
  --sr-line: #e3e7f0;
  --sr-soft: #f5f7fb;
  --sr-tint: #eef2fe;
  --sr-radius: 14px;
  --sr-gutter: 24px;
  --sr-width: 1160px;
  --sr-header-h: 76px;
  --sr-band: linear-gradient(105deg, #141a5c 0%, #2a2fa3 58%, #0a5cc0 100%);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Keeps focused and linked-to content clear of the fixed-position header */
  scroll-padding-top: calc(var(--sr-header-h) + 16px);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--sr-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { display: block; flex: 1 0 auto; }
main:focus { outline: none; }

h1, h2, h3 {
  margin: 0;
  color: var(--sr-ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }
ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
b, strong { font-weight: 600; }
img, svg { display: block; }
img { max-width: 100%; height: auto; border: 0; }
address { font-style: normal; }

a { color: var(--sr-blue); text-decoration: none; }
main p a,
main li a,
main dd a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
main p a:hover,
main li a:hover,
main dd a:hover { color: var(--sr-navy); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sr-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 2. Helpers ---------------------------------------------------------- */

.sr-container {
  width: 100%;
  max-width: var(--sr-width);
  margin: 0 auto;
  padding: 0 var(--sr-gutter);
}

/* Text for screen readers only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sr-skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  background: var(--sr-navy);
  color: #fff;
  font-weight: 600;
}
.sr-skip:focus { top: 0; outline-offset: 0; }

/* 3. Header and menu -------------------------------------------------- */

.sr-header {
  position: sticky;
  top: 0;
  z-index: 50;
  flex: none;
  background: #fff;
  border-bottom: 1px solid var(--sr-line);
}

.sr-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: var(--sr-header-h);
}

.sr-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  color: var(--sr-navy);
}
.sr-brand-mark { flex: none; width: 42px; height: 42px; }
.sr-brand-text { display: flex; flex-direction: column; line-height: 1; }
.sr-brand-name {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--sr-blue);
}
.sr-brand-name b { font-weight: 700; color: var(--sr-navy); }
.sr-brand-tag {
  margin-top: 6px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--sr-muted);
}

.sr-nav { margin-left: auto; }
.sr-nav ul { display: flex; align-items: center; gap: 4px; }
.sr-nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: #30364d;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.sr-nav a:hover { color: var(--sr-blue); background: var(--sr-soft); }
.sr-nav a[aria-current="page"] { color: var(--sr-navy); font-weight: 600; }
.sr-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--sr-blue);
}

/* Phone menu button (shown on smaller screens, see section 11) */
.sr-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--sr-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.sr-nav-toggle-bars,
.sr-nav-toggle-bars::before,
.sr-nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--sr-ink);
  transition: transform 0.2s ease, top 0.2s ease, background-color 0.2s ease;
}
.sr-nav-toggle-bars { position: relative; }
.sr-nav-toggle-bars::before,
.sr-nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.sr-nav-toggle-bars::before { top: -6px; }
.sr-nav-toggle-bars::after { top: 6px; }
.sr-nav-toggle[aria-expanded="true"] .sr-nav-toggle-bars { background: transparent; }
.sr-nav-toggle[aria-expanded="true"] .sr-nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.sr-nav-toggle[aria-expanded="true"] .sr-nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* 4. Home: slides ----------------------------------------------------- */

.sr-hero {
  position: relative;
  overflow: hidden;
  background: var(--sr-navy);
  color: #fff;
}

/* Slides share one grid cell, so the area is always as tall as the tallest slide
   and text can wrap freely at any width. */
.sr-hero-slides { display: grid; }
.sr-hero-slide {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  min-height: clamp(340px, 38vw, 520px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.sr-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease, visibility 0s linear 0s;
}
.sr-hero-slide > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Brand-colour layer over the photo. Strong enough that the white text passes
   4.5:1 contrast whatever is in the photo underneath. */
.sr-hero-slide::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(105deg, rgba(20, 26, 92, 0.95) 0%, rgba(42, 47, 163, 0.88) 55%, rgba(4, 90, 180, 0.86) 100%);
}

.sr-hero-caption {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 92px;
}
.sr-hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9be8fb;
}
.sr-hero-kicker::before { content: ""; flex: none; width: 32px; height: 2px; background: var(--sr-cyan); }
.sr-hero-title {
  max-width: 800px;
  margin: 0;
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}

/* Slide buttons: added by js/main.js */
.sr-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  z-index: 2;
}
.sr-hero-dots .sr-container { display: flex; gap: 8px; }
.sr-hero-dot {
  position: relative;
  width: 40px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.sr-hero-dot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
  transition: background-color 0.2s ease;
}
.sr-hero-dot:hover::before { background: rgba(255, 255, 255, 0.75); }
.sr-hero-dot.is-active::before { background: #fff; }
.sr-hero-dot:focus-visible { outline-color: #fff; }

/* 5. Sections, home welcome, capability cards ------------------------- */

.sr-section { padding: 88px 0; }
.sr-section-soft { background: var(--sr-soft); }

.sr-section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.sr-section-head h2 { font-size: clamp(26px, 3.2vw, 36px); }
.sr-section-head p { margin: 14px 0 0; font-size: 18px; color: var(--sr-muted); }

.sr-lead {
  max-width: 760px;
  margin: 0 0 40px;
  font-size: 18px;
}

.sr-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}
.sr-welcome h1 { margin-bottom: 22px; font-size: clamp(28px, 3.4vw, 40px); }
.sr-welcome p { font-size: 17px; }
.sr-welcome p:last-child { margin-bottom: 0; }
.sr-welcome-media img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 28px 48px -28px rgba(13, 17, 38, 0.45);
}

.sr-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.sr-cap {
  padding: 32px 28px;
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius);
  background: #fff;
}
.sr-cap-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--sr-tint);
  color: var(--sr-indigo);
}
.sr-cap-icon svg { width: 24px; height: 24px; }
.sr-cap h3 { margin-bottom: 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.sr-cap p { margin: 0; font-size: 15.5px; line-height: 1.6; }

/* 6. Inner page heading band ------------------------------------------ */

.sr-page-head {
  padding: 60px 0 64px;
  background: var(--sr-band);
  color: #fff;
}
.sr-page-head h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  letter-spacing: -0.025em;
  color: #fff;
}
.sr-page-head h1::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-bottom: 22px;
  background: var(--sr-cyan);
}
.sr-page-head p {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: #dde4ff;
}

/* 7. Our Partnership: logo grids -------------------------------------- */

.sr-partners-group + .sr-partners-group { margin-top: 72px; }

.sr-group-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  color: var(--sr-muted);
}
.sr-group-title::before,
.sr-group-title::after { content: ""; flex: 1; height: 1px; background: var(--sr-line); }

/* Cells share hairline borders: each cell overlaps its neighbour by 1px. */
.sr-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 0 1px 1px;
}
.sr-logo-grid > li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  margin: 0 0 -1px -1px;
  padding: 20px 18px;
  border: 1px solid var(--sr-line);
  background: #fff;
}
.sr-logo-grid img { flex: none; }

.sr-logo-grid-featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sr-logo-grid-featured > li { min-height: 128px; }

.sr-logo-grid-tier { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sr-logo-grid-tier > li {
  justify-content: flex-start;
  min-height: 0;
  padding: 30px 12px 26px;
}
.sr-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
}
.sr-tier-level {
  margin-top: 18px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  color: var(--sr-muted);
}
.sr-tier-level b {
  display: block;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sr-ink);
}

.sr-fineprint {
  max-width: 760px;
  margin: 48px auto 0;
  font-size: 13.5px;
  text-align: center;
  color: var(--sr-muted);
}

/* 8. JV Team: company cards ------------------------------------------- */

.sr-jv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.sr-jv-card {
  padding: 40px 40px 36px;
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius);
  background: #fff;
}
.sr-jv-card h2 { font-size: 24px; }
.sr-jv-card h2 a { display: block; color: var(--sr-ink); }
.sr-jv-card h2 a:hover .sr-jv-name { color: var(--sr-blue); }
.sr-jv-logo {
  display: flex;
  align-items: center;
  height: 72px;
  margin-bottom: 28px;
}
.sr-jv-logo img { width: auto; max-height: 72px; }
.sr-jv-logo img.sr-jv-logo-wide { max-height: 50px; }
.sr-jv-name { display: block; transition: color 0.15s ease; }

.sr-facts { margin-top: 20px; }
.sr-facts li {
  position: relative;
  padding-left: 20px;
  font-size: 15.5px;
  line-height: 1.6;
}
.sr-facts li + li { margin-top: 8px; }
.sr-facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sr-blue);
}

.sr-details {
  margin-top: 28px;
  padding-top: 4px;
  border-top: 1px solid var(--sr-line);
}
.sr-details dt {
  margin-top: 22px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sr-muted);
}
.sr-details dd { margin-top: 6px; font-size: 15.5px; line-height: 1.6; }

/* 9. Contact ---------------------------------------------------------- */

.sr-contact h2 { margin-bottom: 28px; font-size: clamp(24px, 3vw, 30px); }
.sr-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.sr-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius);
  background: #fff;
}
.sr-contact-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sr-tint);
  color: var(--sr-indigo);
}
.sr-contact-icon svg { width: 22px; height: 22px; }
.sr-contact-body { min-width: 0; font-size: 17px; line-height: 1.6; color: var(--sr-ink); }
.sr-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sr-muted);
}

/* 10. Footer and back-to-top link ------------------------------------- */

.sr-footer {
  flex: none;
  padding: 28px 0;
  background: var(--sr-ink);
  color: #aeb6d2;
  font-size: 14px;
}
.sr-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
}
.sr-footer p { margin: 0; }

.sr-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sr-navy);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 8px 20px rgba(13, 17, 38, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s, background-color 0.15s ease;
}
.sr-top.is-visible { opacity: 1; visibility: visible; transition: opacity 0.2s ease, visibility 0s linear 0s, background-color 0.15s ease; }
.sr-top:hover { background: var(--sr-blue); }
.sr-top:focus-visible { border-radius: 50%; }
.sr-top svg { width: 20px; height: 20px; }

/* 11. Smaller screens ------------------------------------------------- */

@media (max-width: 1023px) {
  /* Top-tier partners: four, then three centred underneath */
  .sr-logo-grid-tier { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .sr-logo-grid-tier > li { grid-column: span 2; }
  .sr-logo-grid-tier > li:nth-child(5) { grid-column: 2 / span 2; }
}

@media (max-width: 959px) {
  .sr-section { padding: 72px 0; }
  .sr-cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sr-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sr-logo-grid-featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sr-logo-grid-tier { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .sr-jv-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 859px) {
  :root { --sr-header-h: 68px; }

  .sr-nav-toggle { display: inline-flex; }
  .sr-nav {
    display: none;
    flex: 0 0 100%;
    margin: 0;
    padding: 8px 0 16px;
    border-top: 1px solid var(--sr-line);
  }
  .sr-nav.is-open { display: block; }
  .sr-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .sr-nav a { padding: 12px 14px; font-size: 16px; }
  .sr-nav a[aria-current="page"] { background: var(--sr-tint); }
  .sr-nav a[aria-current="page"]::after { display: none; }

  .sr-welcome { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sr-page-head { padding: 48px 0 52px; }
  .sr-contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 639px) {
  :root { --sr-gutter: 20px; }

  .sr-section { padding: 56px 0; }
  .sr-section-head { margin-bottom: 36px; }
  .sr-section-head p,
  .sr-page-head p,
  .sr-lead { font-size: 17px; }
  .sr-hero-caption { padding-top: 52px; padding-bottom: 84px; }
  .sr-cap-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sr-jv-card { padding: 28px 24px; }
  /* Leaves room for the back-to-top link in the corner */
  .sr-footer-inner { padding-right: calc(var(--sr-gutter) + 56px); }
  .sr-contact-item { gap: 16px; padding: 24px 20px; }
  .sr-partners-group + .sr-partners-group { margin-top: 56px; }
  .sr-group-title { margin-bottom: 24px; letter-spacing: 0.14em; }
  .sr-group-title::before,
  .sr-group-title::after { display: none; }
  .sr-group-title { justify-content: center; }

  /* Two logos per row; a single logo left over is centred */
  .sr-logo-grid,
  .sr-logo-grid-featured,
  .sr-logo-grid-tier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sr-logo-grid > li,
  .sr-logo-grid-tier > li:nth-child(5) { grid-column: span 2; }
  .sr-logo-grid > li:last-child:nth-child(odd) { grid-column: 2 / span 2; }
  .sr-logo-grid > li { min-height: 100px; padding: 18px 14px; }
  .sr-logo-grid-tier > li { padding: 24px 10px 22px; }
}

@media (max-width: 399px) {
  .sr-brand { gap: 9px; }
  .sr-brand-mark { width: 36px; height: 36px; }
  .sr-brand-name { font-size: 19px; }
  .sr-brand-tag { margin-top: 5px; font-size: 8px; letter-spacing: 0.08em; }
  .sr-contact-body { font-size: 15.5px; }
}

/* Very small phones: the brand name alone, so the menu button stays on the same line */
@media (max-width: 349px) {
  .sr-brand-name { font-size: 20px; }
  .sr-brand-tag { display: none; }
}

/* 12. Motion and print ------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition: none !important; animation: none !important; }
}

@media print {
  .sr-header { position: static; }
  .sr-nav-toggle,
  .sr-hero-dots,
  .sr-top,
  .sr-skip { display: none !important; }
  .sr-hero-slide { opacity: 1; visibility: visible; }
}
