:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #eef2f5;
  --surface-strong: #e6edf3;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(31, 41, 55, 0.1);
  --brand: #1f5f8b;
  --brand-strong: #164a6b;
  --accent: #2f7fb3;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

section[id],
main[id],
footer[id] {
  scroll-margin-top: 6.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(244, 246, 248, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 220ms ease, opacity 220ms ease, box-shadow 220ms ease;
}

.nav-wrap,
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-wrap {
  min-height: 104px;
  padding: 0.85rem 0;
}

.footer-wrap {
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
}

.brand-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  display: block;
  border-radius: 20px;
  background: #ffffff;
  padding: 0.45rem;
  border: 1px solid rgba(31, 41, 55, 0.12);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.12rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-text small {
  margin-top: 0.3rem;
  font-size: 0.82rem;
}

.nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.nav a {
  font-weight: 500;
  transition: color 160ms ease;
}

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

.hero {
  position: relative;
  padding: 5rem 0 3rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.45)),
    url("images/bassetlaw-hero.png") center center / cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(15, 23, 42, 0.18) 0%,
      rgba(15, 23, 42, 0.55) 100%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  color: #ffffff;
  padding: 2rem 0;
}

.hero-copy .hero-text,
.hero-copy .hero-points,
.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.78);
}

h1,
h2,
h3,
p,
ul,
table {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.hero-text {
  max-width: 62ch;
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
  cursor: pointer;
}

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

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-full {
  width: 100%;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.hero-points li::before {
  content: "•";
  color: #ffffff;
  padding-right: 0.65rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.hero-badges span {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-card,
.stat-card,
.feature-card,
.contact-form,
.steps article,
.comparison-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.hero-card-inner {
  padding: 2rem;
}

.card-kicker {
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.situation-list {
  padding-left: 1.1rem;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.section {
  padding: 2rem 0 5rem;
}

.quick-steps {
  margin-top: -1rem;
}

.section-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.muted {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.55));
}

.stats-grid,
.features-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

.stat-card,
.feature-card,
.steps article {
  padding: 1.5rem;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  color: var(--brand);
}

.accent {
  background: linear-gradient(135deg, var(--brand-strong), var(--accent));
  color: #ffffff;
}

.contact-intro {
  max-width: 760px;
  margin-bottom: 2rem;
}

.contact-callout {
  margin-top: 1rem;
  font-weight: 600;
}

.contact-callout a {
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-form {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
}

.contact-form-detailed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
}

.form-section {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.form-section h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-form-detailed label {
  margin-bottom: 0;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 41, 55, 0.16);
  font: inherit;
  background: #ffffff;
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgba(31, 95, 139, 0.18);
  border-color: var(--brand);
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 500;
}

.checkbox-label input {
  width: auto;
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.form-note {
  min-height: 1.5rem;
  margin: 0.85rem 0 0;
}

.comparison-wrap {
  display: grid;
  gap: 1rem;
}

.comparison-table-wrap {
  overflow-x: auto;
  padding: 0;
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.comparison-table th {
  background: var(--surface-soft);
  font-size: 0.95rem;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table td:nth-child(2) {
  font-weight: 600;
  color: var(--brand-strong);
}

.badge-divider {
  background: var(--surface-strong);
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.badge-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.badge-row img {
  height: 48px;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.85;
}

.badge-row img:hover {
  opacity: 1;
}

.reassurance {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.cta-divider {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--brand);
}

.cta-divider-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.cta-text {
  margin: 0;
  display: flex;
  flex: 1;
  align-items: center;
  color: #ffffff;
}

.cta-divider-inner a {
  flex: 0 0 auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
  .header-reveal {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.4rem;
    height: 2.4rem;
  }

  .hero-grid,
  .stats-grid,
  .features-grid,
  .features-grid-specific,
  .steps,
  .contact-form-detailed,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap,
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-wrap {
    min-height: auto;
    padding: 0.8rem 0;
  }

  .hero {
    padding-top: 3rem;
  }

  .brand-logo {
    width: 76px;
    height: 76px;
    border-radius: 18px;
  }

  .brand-text strong {
    font-size: 1.02rem;
  }

  .brand-text small {
    font-size: 0.78rem;
  }

  .hero-card-inner {
    padding: 1.5rem;
  }

  .comparison-table {
    min-width: 640px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .hero-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
  }

  h2 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
}