﻿/* ───────────────────────────────────────────────
   Updated styles for AMC Services microsite
   Complete MEP Solutions LLP
   ─────────────────────────────────────────────── */

:root {
  --cms-navy: #0a1e3a;
  --cms-navy-2: #0f2d54;
  --cms-blue: #0d5ba3;
  --cms-blue-2: #1470c4;
  --cms-sky: #e8f2fa;
  --cms-soft: #f5f8fc;
  --cms-soft-2: #ecf3fa;
  --cms-white: #ffffff;
  --cms-ink: #141e30;
  --cms-muted: #4e5f77;
  --cms-line: rgba(13, 45, 86, 0.1);
  --cms-shadow: 0 24px 64px rgba(10, 30, 58, 0.12);
  --cms-shadow-soft: 0 12px 36px rgba(10, 30, 58, 0.07);
  --cms-orange: #e06f1a;
  --cms-orange-soft: #fef0e0;
  --cms-orange-glow: rgba(224, 111, 26, 0.2);
  --cms-teal: #14838f;
  --cms-teal-soft: #e3f3f5;
  --cms-radius: 24px;
  --cms-radius-sm: 14px;
  --cms-radius-xs: 10px;
  --cms-speed: 320ms;
  --cms-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── reset & base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--cms-ink);
  background: var(--cms-soft);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0 0 1rem;
  color: var(--cms-muted);
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--cms-ink);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.8rem);
  max-width: 780px;
  font-weight: 800;
}
h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 750;
}
h3 {
  font-size: clamp(1.12rem, 1.4vw, 1.38rem);
  font-weight: 700;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* ── topbar ── */
.topbar {
  background: var(--cms-navy);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 50;
}
.topbar .container {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar span {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}
.topbar a {
  display: inline-flex;
  margin-left: 18px;
  color: #fff;
  font-weight: 600;
  transition:
    color var(--cms-speed) ease,
    transform var(--cms-speed) ease;
  letter-spacing: 0.01em;
}
.topbar a:hover {
  color: #fccb8b;
  transform: translateY(-1px);
}
.topbar a:first-of-type {
  margin-left: 0;
}

/* ── header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--cms-line);
  box-shadow: 0 6px 28px rgba(10, 30, 58, 0.06);
  transition: box-shadow var(--cms-speed) ease;
}
.header.scrolled {
  box-shadow: 0 12px 44px rgba(10, 30, 58, 0.1);
}
.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 160px;
  flex-shrink: 0;
}
.brand img {
  max-height: 54px;
  width: auto;
  object-fit: contain;
  transition: transform var(--cms-speed) ease;
}
.brand:hover img {
  transform: scale(1.02);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #2a3b55;
  font-weight: 700;
  font-size: 0.92rem;
  transition:
    background var(--cms-speed) ease,
    color var(--cms-speed) ease,
    transform var(--cms-speed) ease;
  letter-spacing: 0.01em;
}
.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--cms-sky);
  color: var(--cms-blue);
  transform: translateY(-1px);
}
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--cms-blue);
}
.nav a.quote {
  background: var(--cms-blue);
  color: #fff;
  padding-inline: 22px;
  box-shadow: 0 10px 28px rgba(13, 91, 163, 0.28);
  font-weight: 800;
}
.nav a.quote:hover {
  background: var(--cms-navy-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(13, 91, 163, 0.34);
}
.menu-toggle {
  display: none;
  border: 1px solid var(--cms-line);
  background: var(--cms-white);
  color: var(--cms-navy);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--cms-shadow-soft);
  transition:
    background var(--cms-speed) ease,
    border-color var(--cms-speed) ease;
}
.menu-toggle:hover {
  background: var(--cms-sky);
  border-color: var(--cms-blue);
}

/* ── hero ── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 9vw, 120px) 0 clamp(64px, 7vw, 104px);
  background: linear-gradient(145deg, var(--cms-sky) 0%, #dde9f5 100%);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 500px;
  height: 500px;
  top: -220px;
  right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 91, 163, 0.1) 0%, transparent 70%);
  animation: cmsFloat 12s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 280px;
  height: 280px;
  left: 4vw;
  bottom: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 111, 26, 0.1) 0%, transparent 70%);
  animation: cmsFloat 14s ease-in-out infinite alternate-reverse;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.84fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero-grid > div:first-child {
  position: relative;
  padding: clamp(30px, 4.5vw, 46px);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: calc(var(--cms-radius) + 12px);
  box-shadow: var(--cms-shadow);
}
.hero .eyebrow {
  margin-bottom: 16px;
}
.hero h1 {
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--cms-navy) 0%, var(--cms-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p:not(.eyebrow) {
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  max-width: 720px;
  color: #3b4a62;
  font-weight: 450;
}
.hero img {
  width: 100%;
  min-height: 400px;
  max-height: 540px;
  object-fit: cover;
  border-radius: calc(var(--cms-radius) + 8px);
  border: 10px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 80px rgba(10, 30, 58, 0.18);
  transform: rotate(1.2deg) scale(1);
  transition:
    transform 700ms var(--cms-ease),
    box-shadow 700ms var(--cms-ease);
}
.hero img:hover {
  transform: rotate(0deg) scale(1.01) translateY(-6px);
  box-shadow: 0 40px 100px rgba(10, 30, 58, 0.24);
}

/* ── badges & eyebrows ── */
.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 32px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--cms-sky);
  color: var(--cms-blue);
  border: 1px solid rgba(13, 91, 163, 0.14);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition:
    background var(--cms-speed) ease,
    border-color var(--cms-speed) ease;
}
.badge.orange {
  background: var(--cms-orange-soft);
  color: #b3550f;
  border-color: rgba(224, 111, 26, 0.22);
}
.badge.teal {
  background: var(--cms-teal-soft);
  color: #0d6b77;
  border-color: rgba(20, 131, 143, 0.18);
}

/* ── buttons ── */
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition:
    transform var(--cms-speed) var(--cms-ease),
    box-shadow var(--cms-speed) var(--cms-ease),
    background var(--cms-speed) var(--cms-ease),
    color var(--cms-speed) var(--cms-ease);
  cursor: pointer;
  letter-spacing: 0.01em;
}
.btn.primary {
  background: var(--cms-blue);
  color: #fff;
  box-shadow: 0 14px 36px rgba(13, 91, 163, 0.26);
}
.btn.primary:hover {
  background: var(--cms-navy-2);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 48px rgba(13, 91, 163, 0.34);
}
.btn.primary:active {
  transform: translateY(0) scale(0.98);
}
.btn.light {
  background: #fff;
  color: var(--cms-blue);
  border-color: var(--cms-line);
  box-shadow: 0 8px 24px rgba(10, 30, 58, 0.06);
}
.btn.light:hover {
  background: var(--cms-orange-soft);
  color: #a84d0b;
  border-color: rgba(224, 111, 26, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(10, 30, 58, 0.1);
}
.btn.light:active {
  transform: translateY(0);
}
.btn.outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn.outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

/* ── sections ── */
.section {
  position: relative;
  padding: clamp(72px, 8vw, 112px) 0;
  background: var(--cms-white);
}
.section:nth-of-type(even):not(.section-dark):not(.section-blue):not(.section-light):not(.cta) {
  background: var(--cms-soft);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(32px, 4.5vw, 48px);
}
.section-head > * {
  max-width: 860px;
}
.section-head .eyebrow,
.section-head .badge {
  margin-bottom: 12px;
}
.section-head h2,
.section-title {
  margin-bottom: 12px;
}
.lead,
.section-head p {
  color: var(--cms-muted);
  font-size: 1.05rem;
  max-width: 860px;
  font-weight: 430;
}

/* ── cards ── */
.cards,
.faq-grid,
.process-grid,
.trust-grid {
  display: grid;
  gap: 22px;
}
.cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card,
.faq-card,
.process-step,
.panel,
.trust-item {
  position: relative;
  border-radius: var(--cms-radius);
  border: 1px solid var(--cms-line);
  background: var(--cms-white);
  box-shadow: var(--cms-shadow-soft);
  transition:
    transform var(--cms-speed) var(--cms-ease),
    box-shadow var(--cms-speed) var(--cms-ease),
    border-color var(--cms-speed) var(--cms-ease),
    background var(--cms-speed) var(--cms-ease);
}
.card,
.faq-card,
.process-step,
.panel,
.trust-item {
  padding: clamp(24px, 3.2vw, 34px);
}
.card {
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.card::before,
.faq-card::before,
.panel::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: var(--cms-blue);
  opacity: 0.9;
  transform-origin: left;
  transition: transform var(--cms-speed) var(--cms-ease);
}
.card:nth-child(2n)::before,
.faq-card:nth-child(2n)::before {
  background: var(--cms-teal);
}
.card:nth-child(3n)::before,
.faq-card:nth-child(3n)::before {
  background: var(--cms-orange);
}
.card:hover,
.faq-card:hover,
.panel:hover {
  transform: translateY(-8px);
  border-color: rgba(13, 91, 163, 0.2);
  box-shadow: 0 28px 64px rgba(10, 30, 58, 0.13);
}
.card:hover::before,
.faq-card:hover::before,
.panel:hover::before {
  transform: scaleX(1.08);
}
.card h3,
.faq-card h3,
.panel h2,
.process-step h3 {
  margin-bottom: 10px;
}
.card p,
.faq-card p,
.panel p,
.process-step p {
  margin-bottom: 0;
  flex: 1;
}
.card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--cms-radius-xs);
  background: var(--cms-sky);
  color: var(--cms-blue);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 14px;
  transition:
    background var(--cms-speed) ease,
    transform var(--cms-speed) ease;
}
.card:hover .card-icon {
  background: var(--cms-blue);
  color: #fff;
  transform: scale(1.06);
}

/* ── cta ── */
.cta {
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--cms-navy) 0%, var(--cms-navy-2) 100%);
  position: relative;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: calc(var(--cms-radius) + 12px);
  pointer-events: none;
}
.cta::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -80px;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 111, 26, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta h2,
.cta p {
  color: #fff;
}
.cta p {
  opacity: 0.84;
  max-width: 680px;
  margin-inline: auto;
}
.cta .btn.light {
  color: var(--cms-navy);
}
.cta .btn.light:hover {
  background: #fff8f0;
  color: var(--cms-navy);
  border-color: transparent;
}

/* ── trust strip ── */
.trust-strip {
  padding: 36px 0;
  background: var(--cms-navy);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.trust-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transition:
    transform var(--cms-speed) var(--cms-ease),
    background var(--cms-speed) var(--cms-ease),
    border-color var(--cms-speed) var(--cms-ease);
}
.trust-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}
.trust-item strong {
  display: block;
  color: #fff;
  font-size: 1.06rem;
  margin-bottom: 4px;
  font-weight: 700;
}
.trust-item span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
  font-weight: 400;
}
.trust-item .trust-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
  opacity: 0.7;
}

/* ── quick answer ── */
.quick-answer {
  padding: clamp(34px, 5.5vw, 58px);
  background: linear-gradient(145deg, var(--cms-soft-2) 0%, #e6eff7 100%);
  border-radius: var(--cms-radius);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--cms-shadow-soft);
  overflow: hidden;
  position: relative;
}
.quick-answer::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -50px;
  bottom: -60px;
  background: radial-gradient(circle, rgba(13, 91, 163, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.quick-answer .badge {
  margin-bottom: 14px;
}
.quick-answer h2 {
  margin-bottom: 12px;
}
.quick-answer p {
  position: relative;
  z-index: 1;
  max-width: 960px;
  font-size: 1.08rem;
  color: #2a3b55;
  font-weight: 450;
}

/* ── section variants ── */
.section-blue {
  background: linear-gradient(145deg, var(--cms-sky) 0%, #e1eef9 100%);
}
.section-blue .card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.panel {
  background: #fff;
  padding: clamp(28px, 3.5vw, 38px);
}
.panel h2 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}
.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding: 12px 12px 12px 46px;
  border-radius: var(--cms-radius-xs);
  background: var(--cms-soft);
  color: #1f3147;
  font-weight: 600;
  transition:
    background var(--cms-speed) ease,
    transform var(--cms-speed) ease;
}
.check-list li:hover {
  background: var(--cms-sky);
  transform: translateX(4px);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cms-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}

/* ── dark sections ── */
.section-dark {
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, var(--cms-navy) 0%, #0d2342 100%);
}
.section-dark h2,
.section-dark h3 {
  color: #fff;
}
.section-dark p,
.section-dark .lead {
  color: rgba(255, 255, 255, 0.76);
}
.section-dark .process-step,
.section-dark .card,
.section-dark .panel {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
.section-dark .process-step:hover,
.section-dark .card:hover,
.section-dark .panel:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}
.process-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.process-step {
  min-height: 220px;
  transition:
    transform var(--cms-speed) var(--cms-ease),
    background var(--cms-speed) var(--cms-ease),
    border-color var(--cms-speed) var(--cms-ease);
}
.process-step:hover {
  transform: translateY(-7px);
  background: rgba(255, 255, 255, 0.09);
}
.process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--cms-radius-xs);
  background: var(--cms-orange);
  color: #fff;
  font-weight: 900;
  font-size: 0.95rem;
  transition:
    transform var(--cms-speed) ease,
    background var(--cms-speed) ease;
}
.process-step:hover span {
  transform: scale(1.06);
  background: #e87d2a;
}

/* ── light section ── */
.section-light {
  background: var(--cms-soft);
}
.faq-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.faq-card {
  min-height: 180px;
  transition:
    transform var(--cms-speed) var(--cms-ease),
    box-shadow var(--cms-speed) var(--cms-ease);
}
.faq-card h3 {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
}

/* ── cta inner ── */
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: clamp(34px, 5.5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--cms-radius) + 6px);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: border-color var(--cms-speed) ease;
}
.cta-inner:hover {
  border-color: rgba(255, 255, 255, 0.16);
}
.cta-inner .badge {
  margin-bottom: 14px;
}
.cta-inner p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.8);
}
.cta-inner .actions {
  margin-top: 0;
  flex-shrink: 0;
}

/* ── footer ── */
.footer {
  background: #07182e;
  color: #fff;
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 0.72fr 0.9fr;
  gap: clamp(24px, 4vw, 50px);
  padding-bottom: 48px;
}
.footer-logo {
  max-width: 200px;
  margin-bottom: 16px;
  padding: 10px;
  background: #fff;
  border-radius: var(--cms-radius-xs);
  transition:
    transform var(--cms-speed) ease,
    box-shadow var(--cms-speed) ease;
}
.footer-logo:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.footer h2 {
  color: #fff;
  font-size: 1.12rem;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.footer p {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}
.footer a {
  display: block;
  width: max-content;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.78);
  margin: 6px 0;
  transition:
    color var(--cms-speed) ease,
    transform var(--cms-speed) ease;
  font-weight: 450;
}
.footer a:hover {
  color: #fccb8b;
  transform: translateX(4px);
}
.copyright {
  padding: 22px 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  font-weight: 400;
}

/* ── reveal animations ── */
.ui-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms var(--cms-ease),
    transform 800ms var(--cms-ease),
    box-shadow var(--cms-speed) var(--cms-ease),
    border-color var(--cms-speed) var(--cms-ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}
.ui-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── keyframes ── */
@keyframes cmsFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(14px, 20px, 0) scale(1.05);
  }
}
@keyframes cmsMenu {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── responsive ── */
@media (max-width: 1100px) {
  .cards,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 860px) {
  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
    gap: 6px;
  }
  .topbar a {
    margin-left: 0;
    margin-right: 14px;
  }
  .topbar a:last-of-type {
    margin-right: 0;
  }
  .nav-wrap {
    min-height: 68px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: none;
    padding: 16px;
    border: 1px solid var(--cms-line);
    border-radius: var(--cms-radius-sm);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--cms-shadow);
    z-index: 50;
  }
  .nav.is-open {
    display: grid;
    gap: 4px;
    animation: cmsMenu 260ms var(--cms-ease) both;
  }
  .nav a {
    justify-content: center;
    border-radius: var(--cms-radius-xs);
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  .nav a[aria-current="page"]::after {
    display: none;
  }
  .hero-grid,
  .split,
  .cta-inner {
    grid-template-columns: 1fr;
  }
  .hero-grid > div:first-child {
    padding: 28px;
  }
  .hero img {
    min-height: 260px;
    transform: none;
    border-width: 6px;
  }
  .hero img:hover {
    transform: translateY(-4px);
  }
  .section-head {
    display: block;
  }
  .cta-inner .actions {
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }
  .hero {
    padding-top: 40px;
  }
  .hero-grid > div:first-child,
  .quick-answer,
  .cta-inner {
    border-radius: var(--cms-radius-sm);
  }
  .cards,
  .faq-grid,
  .process-grid,
  .trust-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .card,
  .faq-card,
  .process-step,
  .panel,
  .trust-item {
    padding: 20px;
    min-height: auto;
  }
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .footer a {
    width: auto;
  }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .trust-item {
    padding: 18px;
  }
}
@media (max-width: 420px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .topbar span {
    font-size: 0.82rem;
  }
  .topbar a {
    font-size: 0.82rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .ui-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero::before,
  .hero::after {
    animation: none !important;
  }
}

/* 2026 UI refinements */
body {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 42%, #f8fafc 100%);
}

.topbar {
  background: linear-gradient(90deg, #07182e 0%, #0a2c4c 55%, #123b46 100%);
}

.header {
  background: rgba(255, 255, 255, 0.9);
}

.nav a.quote {
  background: linear-gradient(135deg, var(--cms-orange) 0%, #c95b11 100%);
  box-shadow: 0 12px 30px rgba(224, 111, 26, 0.28);
}

.nav a.quote:hover {
  background: linear-gradient(135deg, #c95b11 0%, #8f4210 100%);
  box-shadow: 0 16px 38px rgba(224, 111, 26, 0.34);
}

.hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(224, 111, 26, 0.18), transparent 32%),
    radial-gradient(circle at 8% 88%, rgba(20, 131, 143, 0.18), transparent 28%),
    linear-gradient(135deg, #07182e 0%, #0a2f4f 52%, #123b46 100%);
  color: #fff;
}

.hero-grid > div:first-child {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: #ffd0a0;
  border-color: rgba(255, 255, 255, 0.18);
}

.hero h1 {
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.84);
}

.hero img {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.34);
  transform: none;
}

.hero img:hover {
  transform: translateY(-6px) scale(1.01);
}

.btn {
  border-radius: 8px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--cms-orange) 0%, #c75b11 100%);
  box-shadow: 0 14px 34px rgba(224, 111, 26, 0.28);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #c75b11 0%, #8f4210 100%);
  box-shadow: 0 20px 46px rgba(224, 111, 26, 0.36);
}

.section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 1)), var(--cms-white);
}

.section:nth-of-type(even):not(.section-dark):not(.section-blue):not(.section-light):not(.cta) {
  background:
    linear-gradient(180deg, rgba(245, 248, 252, 0.88), rgba(255, 255, 255, 0.96)), var(--cms-soft);
}

.section-head {
  align-items: flex-start;
}

.section-head::after {
  content: "";
  width: min(180px, 24vw);
  height: 3px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cms-orange), var(--cms-teal));
  flex: 0 0 auto;
}

.card,
.faq-card,
.panel,
.process-step,
.trust-item,
.quick-answer,
.cta-inner {
  border-radius: 8px;
}

.card,
.faq-card,
.panel {
  border-color: rgba(13, 45, 86, 0.12);
  box-shadow: 0 18px 48px rgba(10, 30, 58, 0.08);
}

.card {
  min-height: 214px;
}

.card::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 131, 143, 0.14), rgba(224, 111, 26, 0.12));
  opacity: 0.9;
  transition:
    transform var(--cms-speed) var(--cms-ease),
    opacity var(--cms-speed) var(--cms-ease);
}

.card:hover::after {
  opacity: 1;
  transform: rotate(8deg) scale(1.08);
}

.list li {
  position: relative;
  padding: 12px 12px 12px 46px;
  border-radius: 8px;
  background: #f7fbff;
  color: #1f3147;
  font-weight: 650;
}

.list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cms-teal);
  transform: translateY(-50%);
}

.quick-answer {
  background: linear-gradient(135deg, rgba(255, 246, 235, 0.95), rgba(232, 242, 250, 0.94)), #fff;
  border-color: rgba(224, 111, 26, 0.16);
}

.section-blue {
  background: linear-gradient(135deg, rgba(232, 242, 250, 0.96) 0%, rgba(227, 243, 245, 0.92) 100%);
}

.section-dark {
  background:
    radial-gradient(circle at 90% 10%, rgba(224, 111, 26, 0.2), transparent 28%),
    linear-gradient(145deg, #07182e 0%, #0a2f4f 54%, #102f37 100%);
}

.section-dark .section-head::after {
  background: linear-gradient(90deg, #ffb16f, #63d2cb);
}

.section-dark .badge.orange {
  background: rgba(224, 111, 26, 0.16);
  color: #ffd0a0;
  border-color: rgba(255, 208, 160, 0.22);
}

.process-step {
  min-height: 210px;
}

.process-step span {
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cms-orange), #b85512);
}

.section-dark .btn.light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: none;
}

.section-dark .btn.light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.54);
}

.trust-strip {
  background: linear-gradient(90deg, #07182e 0%, #0a2f4f 55%, #103941 100%);
}

.trust-item {
  min-height: 150px;
}

.footer {
  background: linear-gradient(180deg, #07182e 0%, #051120 100%);
}

.ui-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 680ms var(--cms-ease),
    transform 680ms var(--cms-ease),
    box-shadow var(--cms-speed) var(--cms-ease),
    border-color var(--cms-speed) var(--cms-ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.ui-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .section-head::after {
    display: block;
    width: 120px;
    margin-top: 16px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-grid > div:first-child {
    padding: 0;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2.1rem, 12vw, 3.1rem);
  }

  .hero img {
    min-height: 230px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .ui-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
