: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;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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 260ms ease, opacity 260ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.site-header.is-hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
}

.header-reveal {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 55;
  width: 2.85rem;
  height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-120%) scale(0.9);
  pointer-events: none;
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    background-color 160ms ease;
}

.header-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.header-reveal:hover {
  background: var(--brand-strong);
}

.header-reveal:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.header-reveal svg {
  width: 1.3rem;
  height: 1.3rem;
}

.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-call-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.hero-call-btn:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.32);
}

.hero-call-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
}

.hero-call-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.hero-call-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
  font-weight: 600;
}

.hero-call-number {
  font-size: 1.15rem;
  font-weight: 700;
}

.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-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.hero-badges li::before {
  content: "";
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
  opacity: 0.85;
}

.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);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 880px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  padding: 0.4rem 1.25rem;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.faq-item[open] {
  border-color: rgba(31, 95, 139, 0.4);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.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);
}

.site-footer .footer-wrap {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.6rem 0;
}

.footer-col {
  min-width: 0;
}

.footer-col p {
  margin: 0 0 0.4rem;
}

.footer-phone a {
  font-weight: 700;
  color: var(--brand-strong);
}

.footer-heading {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem !important;
}

.footer-emails {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.3rem;
}

.footer-emails a {
  color: var(--brand);
}

.footer-emails a:hover {
  text-decoration: underline;
}

.mobile-call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1rem calc(0.95rem + env(safe-area-inset-bottom));
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.22);
  transform: translateY(110%);
  transition: transform 220ms ease;
}

.mobile-call-bar.is-visible {
  transform: translateY(0);
}

.mobile-call-bar svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

@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: 4.5rem;
  }

  .hero-call-btn {
    top: 0.85rem;
    right: 0.85rem;
    padding: 0.75rem 1.1rem;
    gap: 0.7rem;
  }

  .hero-call-icon {
    width: 1.2rem;
    height: 1.2rem;
  }

  .hero-call-label {
    font-size: 0.7rem;
  }

  .hero-call-number {
    font-size: 1rem;
  }

  .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 {
    gap: 0.5rem 1rem;
  }

  .hero-actions {
    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);
  }

  .mobile-call-bar {
    display: flex;
  }

  body {
    padding-bottom: 4rem;
  }

  .cta-divider-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-text {
    justify-content: center;
    text-align: center;
  }
}