/* ITAT — IT Assist Team
   Brand colours sampled from itat.tech: ink #171717, accent blue #257edf */

:root {
  --color-ink: #101820;
  --color-ink-soft: #5a6570;
  --color-accent: #257edf;
  --color-accent-dark: #1b5fac;
  --color-accent-light: #eaf2fc;
  --color-green: #8cc63f;
  --color-green-dark: #6e9e2c;
  --color-green-light: #eef6e0;
  --color-surface: #ffffff;
  --color-surface-muted: #f5f7fa;
  --color-border: #e3e8ee;
  --color-danger: #b3261e;

  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 4.5rem;

  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 72rem;
  --header-height: 5rem;
  --shadow: 0 1px 2px rgba(16, 24, 32, 0.04), 0 12px 28px rgba(16, 24, 32, 0.06);
  --shadow-hover: 0 8px 24px rgba(16, 24, 32, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-accent-light);
  color: var(--color-ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-md);
  text-wrap: balance;
  color: var(--color-ink);
}

h1 {
  font-size: clamp(2.15rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 var(--space-md);
}

a {
  color: var(--color-accent-dark);
  text-decoration: none;
}

a:link,
a:visited,
a:hover,
a:focus,
a:active {
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -3rem;
  z-index: 20;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-accent);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ---------- Header / navigation ---------- */
site-header,
site-footer {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 24, 32, 0.92);
  color: #fff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0 var(--space-md);
  min-height: var(--header-height);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  padding-block: var(--space-xs);
}

.brand img {
  height: 3rem;
  width: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle__box,
.nav-toggle__box::before,
.nav-toggle__box::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.nav-toggle__box::before,
.nav-toggle__box::after {
  content: "";
  position: relative;
}

.nav-toggle__box::before {
  top: -6px;
}

.nav-toggle__box::after {
  top: 4px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li {
  position: relative;
}

.nav-link,
.submenu-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover,
.submenu-button:hover {
  color: #fff;
}

.nav-link[aria-current="page"],
.submenu-button.is-active-parent {
  color: #fff;
  border-bottom-color: var(--color-accent);
}

.chevron {
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

[aria-expanded="true"] .chevron {
  transform: rotate(225deg) translateY(-2px);
}

.submenu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: calc(-1 * var(--space-md));
  min-width: 13rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}

.submenu[hidden] {
  display: none;
}

.submenu a {
  display: block;
  padding: 0.55rem 0.75rem;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
}

.submenu a:hover,
.submenu a:focus {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
}

.submenu a[aria-current="page"] {
  font-weight: 700;
  color: var(--color-accent-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-login {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-login:hover {
  color: #fff;
}

@media (max-width: 61.99em) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    padding-bottom: var(--space-md);
  }

  .site-header.is-open .site-nav {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list > li {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .nav-link,
  .submenu-button {
    width: 100%;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 0;
  }

  .submenu {
    position: static;
    min-width: 0;
    margin-bottom: var(--space-xs);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
  }

  .submenu a {
    color: rgba(255, 255, 255, 0.85);
    padding-left: var(--space-md);
  }

  .submenu a:hover,
  .submenu a:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .submenu a[aria-current="page"] {
    color: #fff;
  }

  .site-nav {
    order: 1;
  }
}

/* Keep the logo, login link and menu button on a single row on phones. */
@media (max-width: 35.99em) {
  .brand img {
    height: 2.35rem;
  }

  .header-actions .btn {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.45rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 126, 223, 0.28);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

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

.btn--light:hover {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
}

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

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

.btn--small {
  padding: 0.48rem 1.05rem;
  font-size: 0.875rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.button-row--center {
  justify-content: center;
}

.lede--center {
  margin-inline: auto;
}

.link-arrow {
  font-weight: 700;
  text-decoration: none !important;
}

.link-arrow::after {
  content: " \2192";
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  min-height: min(72vh, 36rem);
  padding-block: 5.5rem 5rem;
  background: var(--color-ink) center / cover no-repeat;
  color: #fff;
  text-align: center;
  isolation: isolate;
}

.hero--home {
  background-image: url("../images/hero-network.jpg");
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(900px 380px at 50% 20%, rgba(37, 126, 223, 0.22), transparent 62%),
    linear-gradient(rgba(10, 16, 24, 0.48), rgba(10, 16, 24, 0.78));
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: #fff;
  max-width: 22ch;
  margin-inline: auto;
}

.hero__subhead {
  margin: 0 auto var(--space-md);
  max-width: 44ch;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-green);
}

.hero .button-row {
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }
}

.tagline {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

/* Inner page banner */
.page-banner {
  padding-block: 4.75rem 3.25rem;
  background:
    radial-gradient(900px 320px at 8% -30%, rgba(37, 126, 223, 0.32), transparent 58%),
    var(--color-ink);
  color: #fff;
}

.page-banner h1 {
  color: #fff;
  margin-bottom: var(--space-xs);
}

.page-banner .eyebrow {
  color: #7eb6f5;
}

.page-banner .lede {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.78);
}

.eyebrow {
  margin-bottom: var(--space-xs);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

.lede {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 60ch;
  color: var(--color-ink-soft);
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--space-xl);
}

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

.section--dark {
  background:
    radial-gradient(800px 280px at 50% 120%, rgba(37, 126, 223, 0.22), transparent 55%),
    var(--color-ink);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.section--dark h2 {
  color: #fff;
}

.section__head {
  max-width: 42rem;
  margin-bottom: var(--space-lg);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center h2 {
  margin-bottom: 0.35rem;
}

.prose {
  max-width: 44rem;
}

/* When .prose sits on the .container itself, keep the container's gutter
   alignment and constrain the text children instead of the wrapper. */
.container.prose {
  max-width: var(--max-width);
}

.container.prose > * {
  max-width: 44rem;
}

.prose h2 {
  margin-top: var(--space-lg);
}

.center {
  text-align: center;
}

/* ---------- Content split (intro + aside) ---------- */
.content-split {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

.content-split__intro p:last-child {
  margin-bottom: 0;
}

.content-split__aside .accordion,
.content-split__aside .checklist,
.content-split__aside .icon-list {
  margin-bottom: 0;
}

.content-split__aside > h3:first-child {
  margin-top: 0;
}

.content-split__aside .accordion {
  border-top: 0;
}

.content-split__aside .accordion__item:first-child {
  border-top: 1px solid var(--color-border);
}

@media (min-width: 48em) {
  .content-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: var(--space-xl);
  }
}

/* ---------- Path cards (Manage / Optimize / Build) ---------- */
.path-cards {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.path-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-height: 100%;
  padding: 1.5rem 1.4rem 1.35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-ink-soft);
  text-decoration: none !important;
  box-shadow: var(--shadow);
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.path-card:hover,
.path-card:focus,
.path-card:visited {
  text-decoration: none !important;
}

.path-card:hover {
  background: var(--color-surface);
  color: var(--color-ink-soft);
  transform: translateY(-4px);
  border-color: rgba(37, 126, 223, 0.38);
  box-shadow: var(--shadow-hover);
}

.path-card__heading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.path-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.9rem;
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
}

.path-card__icon svg {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
}

.path-card h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--color-ink);
}

.path-card p {
  flex: 1 1 auto;
  margin: 0;
  font-size: 0.98rem;
}

.path-card__more,
a.path-card .path-card__more,
a.path-card:link .path-card__more,
a.path-card:visited .path-card__more,
a.path-card:hover .path-card__more,
a.path-card:focus .path-card__more,
a.path-card:active .path-card__more {
  margin-top: auto;
  padding-top: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-green) !important;
  text-decoration: none !important;
}

.path-card__more::after {
  content: " \2192";
  color: var(--color-green) !important;
}

/* ---------- Card grids ---------- */
.card-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  padding: 1.4rem 1.3rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--color-accent-dark);
}

.card p:last-child {
  margin-bottom: 0;
}

/* ---------- Feature list (plain, no card chrome) ---------- */
.feature-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature h3 {
  color: var(--color-accent-dark);
}

.feature p:last-child {
  margin-bottom: 0;
}

.feature:has(.feature__more) {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature:has(.feature__more) > p {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.feature:has(.feature__more):hover {
  transform: translateY(-4px);
  border-color: rgba(37, 126, 223, 0.32);
  box-shadow: var(--shadow-hover);
}

.feature__more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding: 0.4rem 0.85rem;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-green-dark);
  background: var(--color-green-light);
  border-radius: 999px;
  border: 0 !important;
}

.feature__more,
.feature__more span,
.offer__more,
.offer__more span,
.path-card__more {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
  text-decoration-thickness: 0 !important;
  -webkit-text-decoration: none !important;
}

.feature__more:hover,
.feature__more:focus,
.feature__more:focus-visible,
.feature__more:active,
.feature__more:visited,
.feature__more:link {
  color: var(--color-green);
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
  border-bottom: none !important;
}

.feature__more::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  text-decoration: none !important;
}

/* ---------- Pill / tag list ---------- */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pill-list li {
  padding: 0.5rem 1rem;
  background: var(--color-accent-light);
  border-radius: 999px;
  font-weight: 700;
  color: var(--color-accent-dark);
}

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--space-xs);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.85rem;
  border-right: 2.5px solid var(--color-accent);
  border-bottom: 2.5px solid var(--color-accent);
  transform: rotate(40deg);
}

/* ---------- Icon list (Optimize / Build asides) ---------- */
.icon-list {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
}

.icon-list li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.icon-list li:last-child {
  margin-bottom: 0;
}

.icon-list__icon {
  display: block;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  color: var(--color-accent);
}

.icon-list__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Accordion ---------- */
.accordion {
  margin: 0 0 var(--space-md);
  border-top: 1px solid var(--color-border);
}

.accordion--page {
  max-width: 44rem;
}

.accordion__item {
  border-bottom: 1px solid var(--color-border);
}

.accordion__trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.9rem 2.25rem 0.9rem 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-ink);
  list-style: none;
}

.accordion__trigger::-webkit-details-marker {
  display: none;
}

.accordion__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  overflow: hidden;
  border-radius: 0.7rem;
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
}

.accordion__icon svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  max-width: 1.15rem;
  max-height: 1.15rem;
}

.accordion__label {
  flex: 1;
  min-width: 0;
}

.accordion__trigger::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--color-ink-soft);
  border-bottom: 2px solid var(--color-ink-soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 160ms ease;
}

.accordion__item[open] > .accordion__trigger::after {
  transform: translateY(-30%) rotate(225deg);
}

.accordion__trigger:hover {
  color: var(--color-accent-dark);
}

.accordion__trigger:hover .accordion__icon {
  color: var(--color-accent-dark);
}

.accordion__panel {
  padding: 0 2.25rem 1.15rem 2.9rem;
  color: var(--color-ink-soft);
}

.accordion__panel p:last-child,
.accordion__panel ul:last-child {
  margin-bottom: 0;
}

.accordion__panel ul {
  margin: 0;
  padding-left: 1.15rem;
}

.accordion__panel li + li {
  margin-top: var(--space-xs);
}

/* ---------- Definition grid (Tools We Use) ---------- */
.tool-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 0;
}

.tool {
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.tool dt {
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-xs);
}

.tool dd {
  margin: 0;
  color: var(--color-ink-soft);
}

/* ---------- Service pairs (Manage page) ---------- */
.offer-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.offer {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.offer:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 126, 223, 0.32);
  box-shadow: var(--shadow-hover);
}

.offer__more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding: 0.4rem 0.85rem;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-green-dark);
  background: var(--color-green-light);
  border-radius: 999px;
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
  -webkit-text-decoration: none !important;
  border: 0 !important;
}

.offer__more:hover,
.offer__more:focus,
.offer__more:focus-visible,
.offer__more:active,
.offer__more:visited,
.offer__more:link {
  color: var(--color-green);
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
  border-bottom: none !important;
}

.offer__more::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  text-decoration: none !important;
}

.offer__label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.offer h3 {
  flex: 1 1 auto;
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-ink);
}

/* ---------- Client stories ---------- */
.story-list {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.story {
  display: flex;
  flex-direction: column;
  padding: 0 0 var(--space-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.story:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 126, 223, 0.28);
  box-shadow: var(--shadow-hover);
}

.story__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--color-surface-muted);
}

.story h3,
.story p {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.story h3 {
  margin-top: var(--space-md);
  color: var(--color-accent-dark);
}

.story__more {
  margin-top: auto;
  margin-bottom: 0;
}

.story p:last-child {
  margin-bottom: 0;
}

.page-banner a {
  color: inherit;
  text-decoration: none;
}

.page-banner a:hover {
  color: #fff;
}

.story-detail {
  display: grid;
  gap: var(--space-lg);
}

.story-detail__intro {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

.story-detail__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--color-surface-muted);
}

.story-summary {
  margin: 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
}

.story-summary h2,
.story-panel h2 {
  font-size: 1.35rem;
  color: var(--color-accent-dark);
}

.story-summary p:last-child,
.story-panel p:last-child {
  margin-bottom: 0;
}

.story-split {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.story-panel {
  margin: 0;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 48em) {
  .story-detail__intro {
    grid-template-columns: minmax(14rem, 22rem) 1fr;
  }
}

/* ---------- Google reviews ---------- */
.reviews {
  display: grid;
  justify-items: center;
  gap: var(--space-md);
}

.reviews__widget {
  display: block;
  width: 100%;
  max-width: 34rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.reviews__widget[hidden] {
  display: none;
}

.reviews__widget.is-pending {
  visibility: hidden;
  min-height: 16rem;
  pointer-events: none;
  box-shadow: none;
}

.reviews__link {
  margin: 0;
}

@media (min-width: 62em) {
  .reviews__widget {
    max-width: 56rem;
  }
}

/* ---------- Next steps / related links ---------- */
.next-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0 0;
  border-top: 1px solid var(--color-border);
}

.next-steps p {
  margin: 0;
  font-weight: 700;
}

/* ---------- CTA band ---------- */
.cta {
  padding-block: var(--space-xl);
  background:
    radial-gradient(700px 240px at 90% 0%, rgba(140, 198, 63, 0.16), transparent 55%),
    linear-gradient(135deg, #12345f 0%, var(--color-accent-dark) 58%, #1d64b8 100%);
  color: rgba(255, 255, 255, 0.92);
}

.cta h2 {
  color: #fff;
}

.cta__inner {
  max-width: 42rem;
  text-align: center;
}

.cta p:last-of-type {
  margin-bottom: var(--space-lg);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: start;
}

@media (max-width: 47.99em) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.form {
  display: grid;
  gap: var(--space-md);
}

.form__row {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 35.99em) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: var(--space-xs);
  align-content: start;
}

.field label {
  font-weight: 700;
}

.field .req {
  color: var(--color-danger);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  font: inherit;
  color: inherit;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(37, 126, 223, 0.16);
}

.field textarea {
  resize: vertical;
}

.field [aria-invalid="true"] {
  border-color: var(--color-danger);
}

.field__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

.field__error {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-danger);
}

.form__status {
  margin: 0;
  min-height: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-dark);
}

.form__status.is-error {
  color: var(--color-danger);
}

.btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.contact-aside {
  padding: var(--space-lg) 1.4rem;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.contact-details {
  margin: 0;
}

.contact-details dt {
  font-weight: 700;
  margin-top: var(--space-sm);
}

.contact-details dd {
  margin: 0;
  color: var(--color-ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: var(--space-xl) var(--space-lg);
  background: #0c131b;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.footer-col h2 {
  margin-bottom: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.35rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-col p {
  margin: 0 0 0.35rem;
}

.footer-col .footer-sub {
  padding-left: var(--space-md);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.offer-grid a,
.offer-grid a:link,
.offer-grid a:visited,
.offer-grid a:hover,
.offer-grid a:focus,
.offer-grid a:active,
.feature-grid a,
.feature-grid a:link,
.feature-grid a:visited,
.feature-grid a:hover,
.feature-grid a:focus,
.feature-grid a:active,
.path-cards a,
.path-cards a:link,
.path-cards a:visited,
.path-cards a:hover,
.path-cards a:focus,
.path-cards a:active,
.card-grid a,
.card-grid a:link,
.card-grid a:visited,
.card-grid a:hover,
.card-grid a:focus,
.card-grid a:active,
.story-list a,
.story-list a:link,
.story-list a:visited,
.story-list a:hover,
.story-list a:focus,
.story-list a:active {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
  text-decoration-thickness: 0 !important;
  -webkit-text-decoration: none !important;
  border-bottom: none !important;
}

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