/* ActivaColours UK — static site. Brand tokens mirror the PDF skill. */
:root {
  --blue: #1f6fb2;
  --blue-deep: #155483;
  --dark: #13344a;
  --ink: #1b2d38;
  --muted: #60717d;
  --paper: #f8fbf8;
  --white: #fff;
  --light: #eaf3f7;
  --line: #d6e4eb;
  --accent: #79b84a;
  --accent-soft: #e9f5e1;
  --shadow: 0 18px 45px rgba(19, 52, 74, 0.12);
  --radius: 8px;
  --maxw: 1120px;
  --font-body: Aptos, "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, white);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  color: var(--dark);
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0 0 0.55em;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 6vw, 5rem);
  font-weight: 700;
  max-width: 12ch;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: 1.12rem;
  font-weight: 760;
}

section {
  padding: clamp(56px, 8vw, 92px) 0;
}

section.alt {
  background:
    linear-gradient(135deg, rgba(234, 243, 247, 0.92), rgba(233, 245, 225, 0.62));
}

.wrap {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 780px;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.lead {
  max-width: 62ch;
  margin: 0 auto 8px;
  font-size: 1.14rem;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--dark);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  top: 0;
}

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 251, 248, 0.94);
  border-bottom: 1px solid rgba(214, 228, 235, 0.85);
  backdrop-filter: blur(10px);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}

.brand {
  flex: 0 0 auto;
}

.brand img,
footer img {
  width: 210px;
  height: auto;
}

.nav nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav nav a {
  color: var(--dark);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 720;
}

.nav nav a:hover,
.nav nav a[aria-current="page"] {
  background: var(--light);
  text-decoration: none;
}

.nav nav a.cta {
  background: var(--blue);
  color: var(--white);
  padding-inline: 16px;
  box-shadow: 0 8px 20px rgba(31, 111, 178, 0.22);
}

.nav nav a.cta:hover,
.nav nav a.cta[aria-current="page"] {
  background: var(--blue-deep);
}

/* Buttons */
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(31, 111, 178, 0.24);
  cursor: pointer;
  font: inherit;
  font-weight: 780;
}

.btn:hover {
  background: var(--blue-deep);
  text-decoration: none;
}

.btn.ghost {
  background: transparent;
  color: var(--blue);
  border: 2px solid currentColor;
  box-shadow: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 16%, rgba(121, 184, 74, 0.35), transparent 28%),
    linear-gradient(125deg, #12344a, #1f6fb2 72%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -38% 40%;
  height: 280px;
  transform: rotate(-8deg);
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
}

.hero p {
  max-width: 56ch;
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  opacity: 0.95;
}

.hero .tagline {
  margin-bottom: 14px;
  color: #cfe9f6;
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero--home {
  min-height: 620px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(18, 52, 74, 0.95) 0%, rgba(18, 52, 74, 0.82) 45%, rgba(31, 111, 178, 0.46) 100%),
    url("../assets/case-facade.png");
  background-position: center;
  background-size: cover;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero .btn.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.88);
}

/* Cards and grids */
.grid {
  display: grid;
  gap: 22px;
}

.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 28px rgba(19, 52, 74, 0.06);
}

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

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  margin: 4px 6px 4px 0;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(31, 111, 178, 0.09);
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 720;
}

.alt .pill {
  background: rgba(255, 255, 255, 0.72);
}

/* Steps */
.steps {
  counter-reset: s;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step {
  position: relative;
  padding: 4px 4px 0 58px;
}

.step::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 820;
}

/* Claims and proof callouts */
.callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 17px 20px;
  box-shadow: 0 10px 26px rgba(19, 52, 74, 0.06);
  font-size: 0.96rem;
}

.callout strong {
  color: var(--dark);
}

/* Media row */
.media {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 34px;
  align-items: center;
}

.media img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Specification table */
table.spec {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 0;
}

table.spec th,
table.spec td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}

table.spec th {
  background: var(--blue);
  color: var(--white);
}

table.spec td:first-child {
  width: 32%;
  background: var(--light);
  color: var(--dark);
  font-weight: 760;
}

/* Form */
.lead-form {
  display: grid;
  max-width: 580px;
  gap: 14px;
}

.lead-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 760;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.form-status {
  margin: 4px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
}
.form-status:empty { display: none; }
.form-status.is-ok { color: #1a7f4b; }
.form-status.is-error { color: #b3261e; }
.form-status.is-info { color: var(--blue, #1c3f94); }

/* Footer */
footer {
  background:
    linear-gradient(135deg, #102b3d, #16384e);
  color: #d0e0ea;
  padding: 48px 0 28px;
  font-size: 0.93rem;
}

footer a {
  color: var(--white);
}

footer h4 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 0.95rem;
}

.fgrid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr) minmax(180px, 1fr);
  gap: 28px;
}

footer .fine {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #a9c2d1;
  font-size: 0.8rem;
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }

  .nav .wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav nav {
    justify-content: flex-start;
    width: 100%;
  }

  .hero--home {
    min-height: 560px;
  }

  .g3,
  .g2,
  .steps,
  .media,
  .fgrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(var(--maxw), calc(100% - 28px));
  }

  section {
    padding: 48px 0;
  }

  .nav nav a {
    padding: 7px 8px;
    font-size: 0.86rem;
  }

  .brand img {
    width: 174px;
  }

  .hero--home {
    min-height: 520px;
  }

  .card {
    padding: 20px;
  }

  .steps {
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
