:root {
  color-scheme: light;
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #0c192c;
  --muted: #4b5563;
  --primary: #c8102e;
  --primary-dark: #9e0c24;
  --accent: #163b75;
  --border: rgba(12, 35, 64, 0.12);
  --glass: rgba(255, 255, 255, 0.85);
  --shadow: 0 22px 60px rgba(12, 35, 64, 0.08);
  --shadow-soft: 0 10px 30px rgba(12, 35, 64, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  background: var(--bg);
}

body {
  position: relative;
  margin: 0;
  font-family: "Inter", sans-serif;
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.site-video-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #10211d;
  pointer-events: none;
}

.site-background-video,
.site-video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.site-background-video {
  object-fit: cover;
  object-position: center;
}

.site-video-overlay {
  background: rgba(5, 17, 16, 0.48);
}

main,
.footer {
  position: relative;
  z-index: 1;
}

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

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

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.75rem;
  background: var(--text);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1160px, calc(100% - 3rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  background: rgba(244, 246, 250, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 6px 24px rgba(12, 35, 64, 0.07);
  z-index: 30;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(12, 35, 64, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: var(--muted);
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

nav a:hover {
  color: var(--primary);
  background: rgba(200, 16, 46, 0.07);
  border-color: rgba(200, 16, 46, 0.18);
}

.nav nav a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.nav nav[aria-label="Main navigation"] a {
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  min-height: 48px;
  padding: 0.82rem 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 8px 20px rgba(158, 12, 36, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 26px rgba(158, 12, 36, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(4rem, 7vw, 6rem);
  background: transparent;
}

.hero::before {
  position: absolute;
  top: 2rem;
  right: max(-6rem, calc((100vw - 1300px) / 2));
  width: min(38vw, 460px);
  aspect-ratio: 1;
  content: "";
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.025), 0 0 0 72px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero-copy,
.hero-copy .lead,
.hero-copy .eyebrow,
.hero-copy .mini-stats {
  color: rgba(255, 255, 255, 0.92);
}

.hero-copy .mini-stats strong {
  color: #fff;
}

.hero-copy .facebook-like p,
.hero-copy .mini-stats span {
  color: rgba(255, 255, 255, 0.78);
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.branch-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.branch-card:hover,
.card:hover,
.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px rgba(18, 54, 43, 0.12);
}

.branch-card h3 {
  margin: 1rem 0 0.6rem;
}

.branch-card p {
  margin: 0;
  color: var(--muted);
}

.branch-link {
  margin-top: 1rem !important;
}

.branch-link a {
  color: var(--primary);
  font-weight: 700;
}

.branch-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.branch-st-helens .branch-logo {
  background: linear-gradient(135deg, #0b8b72, #075646);
}

.branch-culcheth .branch-logo {
  background: linear-gradient(135deg, #204d8a, #0d7ca8);
}

.branch-northwich .branch-logo {
  background: linear-gradient(135deg, #a85617, #cf8e2c);
}

.hero-grid,
.contact-grid,
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.1;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  letter-spacing: -0.055em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 620px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.facebook-like {
  max-width: 450px;
  margin: 0 0 1.5rem;
}

.facebook-like p {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.mini-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.mini-stats li {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.8rem 1.05rem;
  min-width: 142px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mini-stats strong,
.mini-stats span {
  display: block;
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-card,
.feature-box,
.card,
.quote-form,
blockquote,
.process-card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 26px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 70px rgba(12, 72, 58, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.hero-card::after {
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 12rem;
  height: 12rem;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 206, 164, 0.2), transparent 70%);
  pointer-events: none;
}

.card-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(244, 191, 79, 0.2);
  color: #7a5200;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-card ul,
.contact-list {
  padding-left: 1.2rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  color: var(--muted);
}

.rating > span {
  color: #008457;
}

.section {
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.alt {
  background: rgba(230, 237, 231, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(25, 61, 51, 0.05);
}

.section:not(.alt):not(.video-section):not(.cta-section) {
  background: rgba(243, 246, 242, 0.88);
}

.section-heading {
  margin-bottom: 2rem;
}

.faq-page {
  background:
    radial-gradient(ellipse at 10% 12%, rgba(80, 188, 150, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(231, 240, 233, 0.44));
}

.faq-heading {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.faq-heading .lead {
  margin-bottom: 0;
}

.faq-group {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  scroll-margin-top: 6rem;
}

.faq-group h2 {
  margin-bottom: 1rem;
}

.faq-item {
  margin: 0.75rem 0;
  padding: 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 8px 24px rgba(18, 54, 43, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.faq-item summary {
  position: relative;
  padding: 1.15rem 2rem 1.15rem 0;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  position: absolute;
  right: 0.2rem;
  content: "+";
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 0 1.25rem;
  color: var(--muted);
}

.faq-contact {
  max-width: 900px;
  margin: 3rem auto 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  text-align: center;
}

.faq-contact p {
  color: var(--muted);
}

.faq-contact .btn {
  margin: 0.35rem;
}

.video-section {
  background:
    radial-gradient(ellipse at 86% 20%, rgba(80, 188, 150, 0.12), transparent 25rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(231, 240, 233, 0.54));
}

.video-section-heading,
.video-controls,
.video-control-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.video-section-heading {
  margin-bottom: 2rem;
}

.video-section-heading .section-heading {
  margin-bottom: 0;
}

.video-section-heading .lead {
  margin-bottom: 0;
}

.video-carousel {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.video-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.42fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
}

.video-slide[hidden] {
  display: none;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: #10211d;
  box-shadow: 0 18px 40px rgba(13, 37, 31, 0.18);
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame-short {
  width: min(100%, 300px);
  aspect-ratio: 9 / 16;
  justify-self: center;
}

.video-caption h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  letter-spacing: -0.035em;
}

.video-caption a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(7, 86, 70, 0.35);
  text-underline-offset: 0.2em;
}

.video-controls {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.video-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.video-control-buttons .btn {
  min-height: 42px;
  padding: 0.65rem 1rem;
}

.cards,
.process-grid,
.trust-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.process-card {
  padding: 1.6rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.process-card span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 107, 90, 0.12);
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.card {
  padding: 1.5rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-box {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

blockquote {
  margin: 0;
  padding: 1.5rem;
  color: var(--muted);
  line-height: 1.7;
}

blockquote footer {
  margin-top: 1rem;
  color: var(--text);
  font-weight: 700;
}

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

.trust-pill {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1rem 1.2rem;
  font-weight: 700;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.cta-section {
  background:
    radial-gradient(ellipse at 85% 50%, rgba(67, 177, 139, 0.16), transparent 28rem),
    linear-gradient(135deg, rgba(15, 107, 90, 0.07), rgba(15, 107, 90, 0));
}

.quote-form {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.quote-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

.quote-form-note {
  margin: 0;
  color: var(--muted, #5b6670);
  font-size: 0.9rem;
  line-height: 1.5;
}

.risk-review {
  display: grid;
  gap: 0.65rem;
  margin-block: 1rem;
}

.quote-form .risk-review label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.quote-form .risk-review input[type="checkbox"] {
  flex: 0 0 auto;
  width: auto;
  margin-top: 0.25rem;
}

.cookie-consent {
  position: fixed;
  z-index: 10000;
  inset: auto 1rem 1rem;
  max-width: 1100px;
  margin-inline: auto;
  padding: 1.15rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.22);
}

.cookie-consent[hidden],
.cookie-preferences[hidden],
.cookie-settings-open[hidden] {
  display: none;
}

.cookie-consent h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.cookie-consent p {
  margin: 0;
  line-height: 1.45;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.cookie-consent-settings,
.cookie-settings-open {
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.cookie-preferences {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.65rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.cookie-preferences label {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.cookie-settings-open {
  position: fixed;
  z-index: 9999;
  right: 1rem;
  bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.16);
}

@media (max-width: 760px) {
  .cookie-consent {
    inset: auto 0.5rem 0.5rem;
    grid-template-columns: minmax(0, 1fr);
    max-height: min(85vh, 42rem);
    overflow-y: auto;
  }

  .cookie-consent-actions {
    justify-content: flex-start;
  }

  .cookie-consent-actions .btn {
    flex: 1 1 9rem;
  }
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 0.95rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(8, 124, 104, 0.12);
}

.login-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.login-card h2,
.login-copy {
  margin-bottom: 0.5rem;
}

.login-copy,
.login-status {
  color: var(--muted);
}

.facebook-button {
  background: #1877f2;
  color: #fff;
}

.facebook-button span {
  font-size: 1.25rem;
  font-weight: 800;
}

.facebook-button:focus-visible,
.btn:focus-visible,
.quote-form input:focus-visible,
.quote-form select:focus-visible,
.quote-form textarea:focus-visible,
nav a:focus-visible,
.footer a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.facebook-button:disabled,
.btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.login-error {
  color: #a22828;
}

.flash {
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-weight: 600;
}

.flash.success {
  background: rgba(15, 107, 90, 0.1);
  color: var(--primary-dark);
}

.flash.error {
  background: rgba(204, 51, 51, 0.08);
  color: #a22828;
}

.contact-list {
  margin-top: 1.5rem;
  color: var(--muted);
}

.messenger-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 20;
  display: grid;
  width: 3.5rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #0084ff;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 60, 140, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.messenger-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(0, 60, 140, 0.36);
}

.messenger-float:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.messenger-float svg {
  width: 1.8rem;
  height: 1.8rem;
}

.footer {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
}

.footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -45% -18%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 32% 45%, #c9effe 0%, transparent 47%),
    radial-gradient(ellipse at 69% 58%, #e8defb 0%, transparent 43%),
    radial-gradient(ellipse at 50% 0%, #e4f3fd 25%, transparent 65%);
  opacity: .8;
  transform: rotate(-9deg);
}

.footer-row {
  display: grid;
  gap: 1.25rem;
  color: var(--text);
}

.footer-row .page-tools {
  background: #ffffffb8;
  box-shadow: inset 0 1px 0 #fff, 0 10px 28px #213c7012;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.footer-company p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem 1rem;
}

.footer-links a {
  min-height: 36px;
  padding: .25rem 0;
}

.footer-row a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.footer-row a:hover {
  color: var(--primary);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
}

.footer-socials .footer-social-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: .85rem;
  background: linear-gradient(155deg, #fff, #f6f9ffad);
  box-shadow: inset 0 1px 0 #fff, 0 5px 12px #213c701a;
}

.footer-socials .footer-social-link:is(:hover, :focus-visible) {
  border-color: var(--primary);
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px #326ec43b;
}

.footer-social-link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .footer-socials .footer-social-link {
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
  }

  .footer-socials .footer-social-link::after {
    content: "";
    position: absolute;
    inset: -35%;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 39%, #fff9 48%, transparent 57%);
    transform: translateX(-90%);
    transition: transform 430ms ease;
  }

  .footer-socials .footer-social-link:is(:hover, :focus-visible) {
    transform: translateY(-4px);
  }

  .footer-socials .footer-social-link:is(:hover, :focus-visible)::after {
    transform: translateX(90%);
  }

  .footer-socials .footer-social-link:active {
    transform: scale(.94);
  }

  .footer-links a:hover {
    text-underline-offset: .28em;
  }

  @supports (animation-timeline: view()) {
    .footer {
      view-timeline-name: --footer-entry;
    }

    .footer::before {
      animation-name: footer-glass-flow;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: --footer-entry;
      animation-range: entry 0% entry 100%;
    }

    @keyframes footer-glass-flow {
      from { transform: translate3d(-11%, 7%, 0) rotate(-16deg) scale(1.08); }
      to { transform: translate3d(7%, -5%, 0) rotate(5deg) scale(1.2); }
    }
  }
}

@media (max-width: 800px) {
  .nav {
    min-height: 70px;
    flex-wrap: wrap;
    gap: 0.3rem 0.75rem;
    padding: 0.65rem 0;
  }

  nav {
    order: 3;
    width: 100%;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.5rem 0 0.2rem;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    flex: 0 0 auto;
    font-size: 0.82rem;
  }

  .nav > .btn {
    margin-left: auto;
    min-height: 42px;
    padding: 0.65rem 1rem;
  }

  .hero-grid,
  .login-card,
  .contact-grid,
  .split,
  .cards,
  .quotes,
  .process-grid,
  .trust-grid,
  .branch-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .contact-grid,
  .split {
    gap: 2.5rem;
  }

  .video-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-slide {
    grid-template-columns: 1fr;
  }

  .video-frame-short {
    width: min(100%, 260px);
  }

  .hero-card {
    padding: 1.6rem;
  }

  .footer-meta {
    justify-content: center;
    text-align: center;
  }

  .footer-row nav {
    order: 0;
    overflow: visible;
    padding: 0;
  }

  body:has(.messenger-float) .footer {
    padding-bottom: 5rem;
  }

  .messenger-float {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, 1160px);
  }

  .brand {
    gap: 0.55rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .brand small {
    font-size: 0.67rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .cta-row {
    gap: 0.65rem;
  }

  .cta-row .btn {
    width: 100%;
  }

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

  .video-carousel {
    border-radius: 22px;
  }

  .video-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .mini-stats li {
    min-width: 0;
  }

  .messenger-float {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 3.25rem;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .topbar,
  .branch-card,
  .hero-card,
  .feature-box,
  .card,
  .quote-form,
  blockquote,
  .process-card,
  .login-card {
    background: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .site-background-video {
    display: none;
  }
}

@media (max-width: 380px) {
  .footer-socials {
    max-width: 13rem;
    justify-self: center;
  }
}
