:root {
  --primary: #2253cb;
  --primary-hover: #3a72d3;
  --heading: #1d243c;
  --body: #3f4c7c;
  --highlight: #4b5563;
  --surface: #f5f7fa;
  --outline: #e5e7eb;
  --background: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--body);
  background: var(--background);
  line-height: 1.6;
}

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.wrap.narrow {
  max-width: 720px;
  text-align: center;
}

/* Header */

.site-header {
  padding: 28px 0;
}

.logo {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--heading);
}

/* Hero */

.hero {
  padding: 24px 0 56px;
  text-align: center;
}

.hero .wrap.narrow {
  max-width: 620px;
}

.hero p {
  font-size: 1.125rem;
}

/* About / stats */

.about {
  padding-bottom: 48px;
}

.about-panel {
  background: var(--surface);
  border-radius: 12px;
  padding: 40px 48px;
}

.about-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 32px;
}

.about-intro h2 {
  flex: 1 1 360px;
  max-width: 420px;
  margin: 0;
  text-align: left;
}

.about-intro p {
  flex: 1 1 360px;
  margin: 0;
  text-align: left;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--outline);
  padding-top: 32px;
}

.stat {
  text-align: center;
  border-right: 1px solid var(--outline);
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.05em;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--highlight);
}

/* Cover banners */

.cover {
  background-size: cover;
  background-position: 60% 75%;
  padding: 64px 0;
  position: relative;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
}

.cover .wrap {
  position: relative;
}

.cover h2,
.cover h3 {
  max-width: 480px;
  margin: 0;
}

/* CQC details */

.cqc-details .wrap {
  display: flex;
  align-items: stretch;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 48px;
  flex-wrap: wrap;
}

.cqc-logo {
  border-radius: 6px;
  max-width: 540px;
  width: 100%;
  height: auto;
  flex: 1 1 540px;
}

.cqc-facts {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  flex: 1 1 320px;
}

.cqc-fact {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  border-top: 4px solid var(--heading);
  border-bottom: 4px solid var(--heading);
  padding: 16px 0;
}

.cqc-fact strong {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 4px;
}

/* Services */

.services .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.service {
  text-align: center;
  padding: 40px 16px;
  border-radius: 8px;
}

.service-shaded {
  background: var(--surface);
}

.service img {
  margin-bottom: 16px;
}

.service h5 {
  margin: 0;
}

/* CQC status + CTA */

.cqc-status {
  padding: 24px 0 64px;
}

.cqc-status h4 {
  max-width: 640px;
}

.button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 999px;
  margin-top: 8px;
  transition: background 0.15s ease;
}

.button:hover {
  background: var(--primary-hover);
}

/* Footer */

.site-footer {
  background: var(--surface);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding-bottom: 24px;
}

.footer-grid p {
  font-size: 0.9rem;
}

.copyright {
  text-align: center;
  font-size: 0.75rem;
  color: var(--highlight);
  margin: 0;
}

/* Responsive */

@media (max-width: 720px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.5rem; }

  .about-panel {
    padding: 32px 24px;
  }

  .about-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-intro h2,
  .about-intro p {
    max-width: none;
  }

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

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

  .services .wrap {
    grid-template-columns: 1fr;
  }

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

  .cqc-details .wrap {
    flex-direction: column;
    text-align: center;
  }
}
