@import url('fonts.css');

/* ==========================================================================
   Arrowgas Ltd — site styles
   ========================================================================== */

:root {
  /* Brand colours (from the Arrowgas logo) */
  --brand: #065fa6;
  --brand-dark: #044a82;
  --brand-deep: #06243f;
  --brand-light: #e8f1fa;
  --red: #c23836;
  --yellow: #ffe923;

  /* Neutrals */
  --ink: #122235;
  --text: #33445a;
  --muted: #607085;
  --line: #dde6ef;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;

  /* Type */
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(6, 36, 63, 0.06);
  --shadow: 0 18px 40px -18px rgba(6, 36, 63, 0.28);
  --shadow-lg: 0 30px 60px -20px rgba(6, 36, 63, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 800;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-dark);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s, color 0.25s;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

/* Light sweep across the button on hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn:hover::after {
  transform: translateX(120%);
}

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

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(6, 95, 166, 0.8);
}

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

.btn--accent {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(255, 233, 35, 0.8);
}

.btn--accent:hover {
  color: var(--ink);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn--ghost:hover {
  background: #fff;
  color: var(--brand);
}

.btn--outline {
  border-color: var(--brand);
  color: var(--brand);
}

.btn--outline:hover {
  background: var(--brand);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- Scroll progress bar ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  background: linear-gradient(90deg, var(--brand), var(--red), var(--yellow));
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(6, 36, 63, 0.45);
  border-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height 0.4s var(--ease);
}

.site-header.is-scrolled .header-inner {
  height: 68px;
}

.logo img {
  width: 190px;
  transition: width 0.4s var(--ease);
}

.site-header.is-scrolled .logo img {
  width: 160px;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  position: relative;
  display: block;
  padding: 0.55rem 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav a:hover::after,
.nav a[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav a[aria-current='page'] {
  color: var(--brand);
}

.header-call {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.header-call > span:last-child {
  line-height: 1.2;
}

.header-call__icon {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

.header-call__icon svg {
  width: 20px;
  height: 20px;
}

/* Gentle "ringing" pulse around the phone icon */
.header-call__icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--brand);
  animation: ring-pulse 2.4s var(--ease) infinite;
}

.header-call small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.2;
}

.header-call strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--brand-light);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--brand);
  transition: transform 0.35s var(--ease), background-color 0.2s;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-open .nav-toggle span {
  background: transparent;
}

.nav-open .nav-toggle span::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* The header tightens in steps so the menu stays on one line until the hamburger takes over */
@media (max-width: 1240px) {
  .header-inner {
    gap: 1rem;
  }

  .logo img,
  .site-header.is-scrolled .logo img {
    width: 160px;
  }

  .nav ul {
    gap: 0.1rem;
  }

  .nav a {
    padding-inline: 0.6rem;
    font-size: 0.9rem;
  }

  .nav a::after {
    left: 0.6rem;
    right: 0.6rem;
  }
}

@media (max-width: 1080px) {
  .header-call > span:last-child {
    display: none;
  }

  .logo img,
  .site-header.is-scrolled .logo img {
    width: 145px;
  }

  .nav ul {
    gap: 0;
  }

  .nav a {
    padding-inline: 0.5rem;
    font-size: 0.875rem;
  }

  .nav a::after {
    left: 0.5rem;
    right: 0.5rem;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(6, 36, 63, 0.4);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.45s var(--ease), visibility 0s 0.45s;
  }

  .nav-open .nav {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path 0.45s var(--ease);
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--line);
  }

  .nav a::after {
    display: none;
  }

  .header-call {
    margin-left: auto;
  }
}

@media (max-width: 380px) {
  .header-call {
    display: none;
  }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #d9e7f5;
  background: var(--brand-deep);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('images/boiler-installation-003.webp') center / cover no-repeat;
  opacity: 0.28;
  transform: scale(1.08);
  animation: slow-zoom 22s ease-out both;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(6, 95, 166, 0.55), transparent 70%),
    linear-gradient(100deg, rgba(6, 36, 63, 0.97) 35%, rgba(6, 36, 63, 0.6));
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(6.5rem, 12vw, 10rem);
}

.hero h1 {
  color: #fff;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--yellow), #ffd24a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 34rem;
  font-size: 1.15rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  padding: 0.4rem 0.95rem 0.4rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
}

.eyebrow::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--yellow) 0 28%, var(--red) 30% 60%, var(--brand) 62%);
}

.hero .eyebrow,
.page-hero .eyebrow,
.section--dark .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1rem 0.55rem 0.55rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
  line-height: 1.3;
  color: #fff;
}

.badge img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  padding: 4px;
  border-radius: 9px;
  background: #fff;
}

/* Staggered entrance on page load (pure CSS, no script needed) */
.load-in > * {
  animation: fade-up 0.9s var(--ease) both;
}

.load-in > :nth-child(2) { animation-delay: 0.1s; }
.load-in > :nth-child(3) { animation-delay: 0.2s; }
.load-in > :nth-child(4) { animation-delay: 0.3s; }
.load-in > :nth-child(5) { animation-delay: 0.4s; }

/* Hero visual: target rings, arrow and floating cards */
.hero__visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  justify-self: center;
  width: 100%;
  animation: fade-in 1.2s 0.3s var(--ease) both;
}

.target {
  position: absolute;
  inset: 6%;
}

.target span {
  position: absolute;
  border-radius: 50%;
  inset: 0;
  animation: target-pop 1s var(--ease) both;
}

.target span:nth-child(1) {
  background: var(--brand);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.05), 0 0 0 30px rgba(255, 255, 255, 0.03), 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.target span:nth-child(2) {
  inset: 18%;
  background: #fff;
  animation-delay: 0.12s;
}

.target span:nth-child(3) {
  inset: 26%;
  background: var(--red);
  animation-delay: 0.24s;
}

.target span:nth-child(4) {
  inset: 38%;
  background: var(--yellow);
  animation-delay: 0.36s;
}

.target::after {
  content: '';
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  animation: spin 40s linear infinite;
}

.arrow {
  position: absolute;
  top: 50%;
  right: 50%;
  width: 78%;
  height: 34px;
  margin-top: -17px;
  transform-origin: right center;
  animation: arrow-fly 0.9s 0.9s cubic-bezier(0.5, 0, 0.75, 0) both, arrow-wobble 0.6s 1.8s ease-out;
}

.arrow svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35));
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.1rem 0.8rem 0.8rem;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  line-height: 1.3;
  animation: fade-up 0.8s var(--ease) both, bob 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.float-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.float-card--a {
  left: -4%;
  bottom: 8%;
  animation-delay: 1.6s, 2.4s;
}

.float-card--b {
  right: -2%;
  top: 4%;
  animation-delay: 1.8s, 3.2s;
}

.float-card__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    max-width: 360px;
  }
}

@media (max-width: 480px) {
  .hero__visual {
    max-width: 290px;
  }

  .float-card--a {
    left: 0;
  }

  .float-card--b {
    right: 0;
  }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  color: #d9e7f5;
  background: var(--brand-deep);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  opacity: 0.3;
  animation: slow-zoom 20s ease-out both;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(6, 36, 63, 0.96) 40%, rgba(6, 95, 166, 0.55));
}

/* Decorative target rings in the corner */
.page-hero::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -160px;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 233, 35, 0.5) 0 12%, transparent 12.5% 24%, rgba(194, 56, 54, 0.4) 24.5% 36%, transparent 36.5% 48%, rgba(255, 255, 255, 0.12) 48.5% 60%, transparent 60.5%);
  animation: spin 60s linear infinite;
}

.page-hero h1 {
  color: #fff;
  max-width: 18ch;
}

.page-hero p {
  max-width: 38rem;
  font-size: 1.15rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
}

.breadcrumb a:hover {
  opacity: 1;
  color: #fff;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  opacity: 0.5;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section--soft {
  background: var(--bg-soft);
}

.section--dark {
  background: var(--brand-deep);
  color: #c8d8e8;
}

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

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

.section--dark .section-head p {
  color: #a9c1d8;
}

/* Brand-coloured underline that draws itself in */
.underline {
  position: relative;
  white-space: nowrap;
}

.underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05em;
  height: 0.16em;
  border-radius: 1em;
  background: linear-gradient(90deg, var(--brand), var(--red), var(--yellow));
  transform-origin: left;
  transition: transform 1s 0.3s var(--ease);
}

.js .reveal:not(.is-visible) .underline::after {
  transform: scaleX(0);
}

/* ---------- Split (text + image) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.split + .split {
  margin-top: clamp(4rem, 9vw, 7rem);
}

.split--flip .split__media {
  order: -1;
}

.split__media {
  position: relative;
  isolation: isolate;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Offset brand-coloured frame behind images */
.split__media::before {
  content: '';
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  z-index: -1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  opacity: 0.12;
}

.split--flip .split__media::before {
  inset: 1.4rem 1.4rem -1.4rem -1.4rem;
}

.split__media .stamp {
  position: absolute;
  right: -1rem;
  bottom: -1.5rem;
  width: 110px;
  aspect-ratio: auto;
  object-fit: contain;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  animation: bob 6s ease-in-out infinite;
}

.split__media .stamp--wide {
  width: 190px;
  padding: 16px 20px;
}

.split--flip .split__media .stamp {
  right: auto;
  left: -1rem;
}

.split__body h2 {
  margin-bottom: 0.5em;
}

.split__body .btn {
  margin-top: 0.8rem;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split--flip .split__media {
    order: 0;
  }
}

.ticks {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 2rem;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* ---------- Stats band ---------- */

.stats {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.stat {
  padding: 1.8rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat__num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-top: 0.3rem;
  line-height: 1.4;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1080px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: var(--text);
}

.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.08);
}

.card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 36, 63, 0.5));
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.card__body p {
  font-size: 0.96rem;
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand);
}

.card__more svg {
  width: 1em;
  transition: transform 0.4s var(--ease);
}

.card:hover .card__more svg {
  transform: translateX(5px);
}

/* Bottom bar that grows on hover */
.card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--red), var(--yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.card:hover::after {
  transform: scaleX(1);
}

/* ---------- Accreditations ---------- */

.accred {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 760px) {
  .accred {
    grid-template-columns: 1fr;
  }
}

.accred__item {
  display: grid;
  grid-template-columns: 1fr 150px;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.accred__item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.accred__logo {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
}

.accred__item h3 {
  margin-bottom: 0.3em;
}

.accred__item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.accred__boiler {
  max-height: 180px;
  margin-inline: auto;
  transition: transform 0.6s var(--ease);
}

.accred__item:hover .accred__boiler {
  transform: translateY(-6px) rotate(-2deg);
}

/* ---------- Reviews ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 760px) {
  .reviews {
    grid-template-columns: 1fr;
  }
}

.review {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 2rem 2rem 1.7rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.4s, transform 0.5s var(--ease);
}

.review:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-4px);
}

.review::before {
  content: '\201C';
  position: absolute;
  right: 1.5rem;
  top: 0.2rem;
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--yellow);
  opacity: 0.25;
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
  color: var(--yellow);
}

.stars svg {
  width: 18px;
  height: 18px;
}

.review blockquote {
  margin: 0 0 1.3rem;
  padding-right: 2.5rem;
  color: #dbe7f3;
}

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

.review figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
}

.review__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  font-size: 0.95rem;
}

.review-score {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
}

.review-score .stars {
  margin: 0;
}

/* ---------- Logo marquee ---------- */

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  margin: 0;
  list-style: none;
}

.marquee__group li {
  display: grid;
  place-items: center;
  width: 190px;
  height: 110px;
  padding: 1.2rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.marquee__group img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.4s, opacity 0.4s;
}

.marquee__group li:hover img {
  filter: none;
  opacity: 1;
}

/* ---------- Areas we cover ---------- */

.areas {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.areas .split__media img {
  aspect-ratio: auto;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), background-color 0.3s, color 0.3s;
}

.chips li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(194, 56, 54, 0.18);
}

.chips li:hover {
  background: var(--brand);
  color: #fff;
}

/* Chips pop in one after another when the list scrolls into view */
.js .reveal:not(.is-visible) .chips li {
  opacity: 0;
  transform: translateY(12px) scale(0.9);
}

.chips li:nth-child(2) { transition-delay: 0.05s; }
.chips li:nth-child(3) { transition-delay: 0.1s; }
.chips li:nth-child(4) { transition-delay: 0.15s; }
.chips li:nth-child(5) { transition-delay: 0.2s; }
.chips li:nth-child(6) { transition-delay: 0.25s; }
.chips li:nth-child(7) { transition-delay: 0.3s; }
.chips li:nth-child(8) { transition-delay: 0.35s; }
.chips li:nth-child(9) { transition-delay: 0.4s; }
.chips li:nth-child(10) { transition-delay: 0.45s; }

.chips li:hover {
  transition-delay: 0s;
}

/* ---------- Gas Safe panel ---------- */

.gas-safe {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: start;
  gap: 2.5rem;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gas-safe img {
  width: 170px;
}

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

@media (max-width: 640px) {
  .gas-safe {
    grid-template-columns: 1fr;
  }

  .gas-safe img {
    width: 120px;
  }
}

/* ---------- Feature list (commercial) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: 2rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.3rem;
  border-radius: 16px;
  background: var(--brand-light);
  color: var(--brand);
  transition: background-color 0.4s, color 0.4s, transform 0.5s var(--ease);
}

.feature:hover .feature__icon {
  background: var(--brand);
  color: #fff;
  transform: rotate(-8deg) scale(1.05);
}

.feature__icon svg {
  width: 28px;
  height: 28px;
}

.feature p {
  font-size: 0.97rem;
}

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

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  display: flex;
  gap: 1.2rem;
  padding: 1.8rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

a.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  color: var(--text);
}

.contact-card h3 {
  margin-bottom: 0.25em;
  font-size: 1.1rem;
}

.contact-card p {
  margin: 0;
}

.contact-card__value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand);
  word-break: break-word;
}

.contact-card .feature__icon {
  flex: none;
  margin: 0;
}

a.contact-card:hover .feature__icon {
  background: var(--brand);
  color: #fff;
}

/* Contact form (sends to the Fellowship Studios form service, see contact-form.js) */
.contact-form {
  max-width: 50rem;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-form h2 {
  margin-bottom: 0.3em;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin: 1.6rem 0 1.2rem;
}

@media (max-width: 700px) {
  .contact-form__grid {
    grid-template-columns: 1fr;
  }
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
}

.field__optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.25s, background-color 0.25s;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brand);
  background: #fff;
}

.field__hint {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Honeypot field: off-screen so people never see it (not display: none, which some robots skip) */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The ALTCHA spam check, in the fields' own shape and colours */
altcha-widget {
  display: block;
  margin-bottom: 1.2rem;
  --altcha-max-width: 100%;
  --altcha-padding: 0.8rem 1rem;
  --altcha-border-radius: var(--radius-sm);
  --altcha-border-width: 1px;
  --altcha-border-color: var(--line);
  --altcha-color-base: var(--bg-soft);
  --altcha-color-base-content: var(--ink);
  --altcha-color-primary: var(--brand);
  --altcha-checkbox-border-radius: 6px;
}

/* Shown if the form can't be sent (hidden while empty) */
.contact-form__status {
  margin: 0 0 1.2rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--brand-light);
  border: 1.5px solid var(--brand);
  color: var(--ink);
}

.contact-form__status:empty {
  display: none;
}

.contact-form__status a {
  font-weight: 700;
}

.contact-form__status:focus {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.contact-form__note {
  margin: 1.2rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.contact-form button {
  cursor: pointer;
}

.contact-form button:disabled {
  cursor: progress;
  opacity: 0.75;
}

/* ---------- Prose (privacy policy) ---------- */

.prose {
  max-width: 50rem;
  margin-inline: auto;
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 2.2em;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.6em;
}

.prose ul {
  padding-left: 1.3rem;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose li::marker {
  color: var(--brand);
}

/* ---------- CTA band ---------- */

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3rem, 6vw, 4.5rem);
  border-radius: calc(var(--radius) * 1.4);
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 60%, var(--brand-deep) 100%);
  color: #d9e7f5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta h2 {
  color: #fff;
  margin-bottom: 0.3em;
}

.cta p {
  margin: 0;
  font-size: 1.1rem;
}

.cta::before {
  content: '';
  position: absolute;
  right: -90px;
  top: -90px;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 233, 35, 0.55) 0 14%, transparent 14.5% 28%, rgba(194, 56, 54, 0.5) 28.5% 42%, transparent 42.5% 56%, rgba(255, 255, 255, 0.15) 56.5% 70%, transparent 70.5%);
  animation: spin 50s linear infinite;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding-top: clamp(3.5rem, 7vw, 5rem);
  background: var(--brand-deep);
  color: #a9c1d8;
  font-size: 0.97rem;
}

.site-footer--flush {
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  background: #fff;
}

.footer-logo img {
  width: 180px;
}

.site-footer h2 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 1.1rem;
  letter-spacing: 0;
}

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

.site-footer li {
  margin-bottom: 0.55rem;
}

.site-footer a {
  color: #dbe7f3;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-links a {
  display: inline-block;
  transition: color 0.2s, transform 0.35s var(--ease);
}

.footer-links a:hover {
  transform: translateX(5px);
}

.site-footer address {
  font-style: normal;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.87rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Scroll reveal ----------
   Content is only hidden once script.js has added the "js" class to <html>,
   so everything stays visible if the script doesn't run. */

.js .reveal {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(40px);
}

.js .reveal--left:not(.is-visible) {
  transform: translateX(-50px);
}

.js .reveal--right:not(.is-visible) {
  transform: translateX(50px);
}

.js .reveal--zoom:not(.is-visible) {
  transform: scale(0.92);
}

/* ---------- Keyframes ---------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes slow-zoom {
  from {
    transform: scale(1.18);
  }
}

@keyframes target-pop {
  from {
    transform: scale(0);
  }
}

@keyframes arrow-fly {
  from {
    transform: translateX(-160%);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
}

@keyframes arrow-wobble {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-3deg); }
  45% { transform: rotate(2deg); }
  70% { transform: rotate(-1deg); }
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@keyframes ring-pulse {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(1.7);
    opacity: 0;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Reduced motion: a still site for visitors who ask for it ---------- */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal:not(.is-visible),
  .js .reveal:not(.is-visible) .chips li {
    opacity: 1;
    transform: none;
  }

  .js .reveal:not(.is-visible) .underline::after {
    transform: none;
  }

  .marquee__track {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }

  .marquee__group[aria-hidden='true'] {
    display: none;
  }

  .marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }

  .marquee {
    mask-image: none;
  }
}
