:root {
  --brand-900: #3c467b;
  --brand-700: #50589c;
  --brand-500: #636ccb;
  --brand-300: #6e8cfb;
  --ink-900: #181d34;
  --ink-700: #3d4360;
  --ink-500: #5d6381;
  --paper: #f7f8ff;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --gap-xs: 0.5rem;
  --gap-sm: 0.9rem;
  --gap-md: 1.4rem;
  --gap-lg: 2.2rem;
  --gap-xl: 3.8rem;
  --shadow-1: 0 8px 24px rgba(49, 62, 123, 0.08);
  --shadow-2: 0 16px 40px rgba(60, 70, 123, 0.14);
  --border-soft: 1px solid rgba(80, 88, 156, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink-900);
  background: var(--paper);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-900);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--brand-900);
  color: var(--white);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 255, 0.94);
  border-bottom: 1px solid rgba(99, 108, 203, 0.16);
  backdrop-filter: blur(8px);
}

.header-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
}

.logo {
  display: block;
}

.logo img {
  width: 4rem;
  position: relative;
  z-index: 20;
}

.logo img {
  display: inline-block;
  transform: rotate(-5deg);
  transition: transform var(--transition-normal);
}

.logo:hover img {
  transform: rotate(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .logo img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 768px) {
  .logo img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 576px) {
  .logo img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 400px) {
  .logo img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

.menu-toggle {
  display: inline-flex;
  border: 1px solid var(--brand-500);
  border-radius: 999px;
  background: var(--white);
  color: var(--brand-900);
  padding: 0.45rem 0.75rem;
}

.top-nav {
  display: none;
  align-items: center;
  gap: var(--gap-xs);
}

.top-nav a {
  text-decoration: none;
  background: var(--white);
  border: 1px solid rgba(80, 88, 156, 0.18);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: var(--ink-700);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.top-nav.nav-open {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--gap-lg) 1rem var(--gap-xl);
}

.hero-slider {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.slides {
  position: relative;
  min-height: 360px;
}

.slide {
  display: none;
  padding: clamp(1.2rem, 2.4vw, 2.5rem);
  align-items: end;
  min-height: 360px;
  background-size: cover;
  background-position: center;
}

.slide.active {
  display: grid;
}

.slide article {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: var(--gap-md);
  max-width: 640px;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--brand-900);
  line-height: 1.2;
}

p {
  color: var(--ink-700);
  line-height: 1.6;
}

.slider-nav {
  display: flex;
  gap: var(--gap-sm);
  padding: var(--gap-sm) var(--gap-md) var(--gap-md);
}

.slider-nav button,
.chip,
button[type="submit"],
.button-link {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  background: var(--brand-700);
  color: var(--white);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.slider-nav button:hover,
.chip:hover,
button[type="submit"]:hover,
.button-link:hover {
  transform: translateY(-2px);
  background: var(--brand-900);
}

.mosaic {
  margin-top: var(--gap-xl);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap-md);
}

.tile {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: var(--gap-md);
  border: var(--border-soft);
}

.tile.a {
  grid-column: span 7;
}

.tile.b {
  grid-column: span 5;
}

.tile.c {
  grid-column: span 4;
}

.tile.d {
  grid-column: span 8;
}

.steps-grid {
  margin-top: var(--gap-xl);
  display: grid;
  gap: var(--gap-md);
}

.steps-grid article {
  background: linear-gradient(155deg, var(--white), #eef1ff);
  border-left: 6px solid var(--brand-300);
  border-radius: var(--radius-md);
  padding: var(--gap-md);
}

.accordion-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-top: var(--gap-sm);
  border: 1px solid rgba(99, 108, 203, 0.2);
}

.accordion-toggle {
  width: 100%;
  border: none;
  background: transparent;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--brand-900);
}

.accordion-panel {
  padding: 0 1rem 1rem;
  display: none;
}

.accordion-item.open .accordion-panel {
  display: block;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
  margin: 1rem 0;
}

.resource-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem;
  border: 1px solid rgba(80, 88, 156, 0.2);
  margin-bottom: var(--gap-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.resource-card:hover {
  transform: translateY(-3px) rotate(-0.2deg);
  box-shadow: var(--shadow-2);
}

.contact-layout {
  display: grid;
  gap: var(--gap-lg);
}

form {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: var(--gap-md);
}

label {
  display: block;
  font-weight: 600;
  color: var(--ink-900);
  margin-top: 0.8rem;
}

input,
textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(61, 67, 96, 0.3);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(110, 140, 251, 0.5);
  border-color: var(--brand-300);
}

.field-error {
  color: #a12424;
  font-size: 0.88rem;
  min-height: 1.2rem;
  margin-top: 0.2rem;
}

.gdpr-wrap {
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0;
}

.gdpr-wrap input {
  width: auto;
  margin-top: 0.15rem;
}

.site-footer {
  background: var(--brand-900);
  color: var(--white);
  margin-top: var(--gap-xl);
}

.footer-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  gap: var(--gap-md);
}

.footer-links a {
  color: #d9deff;
  margin-right: 0.8rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  padding: 1rem;
  z-index: 200;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-actions {
  display: flex;
  gap: var(--gap-xs);
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(24, 29, 52, 0.45);
  display: none;
  place-items: center;
  z-index: 250;
}

.cookie-modal.open {
  display: grid;
}

.cookie-box {
  max-width: 560px;
  width: calc(100% - 1.5rem);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.cookie-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.7rem 0;
}

.toggle {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #cfd3ef;
  position: relative;
}

.toggle::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  position: absolute;
  left: 4px;
  top: 4px;
  background: var(--white);
  transition: left 0.2s ease;
}

.toggle.active {
  background: var(--brand-500);
}

.toggle.active::after {
  left: 24px;
}

.policy-main article {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: var(--gap-md);
  margin-bottom: var(--gap-md);
}

.uk-note,
.compliance-strip,
.timeline-card,
.scenario-panel,
.policy-callout {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  border: var(--border-soft);
  padding: var(--gap-md);
  margin-top: var(--gap-md);
}

.compliance-strip {
  display: grid;
  gap: 0.8rem;
  background: linear-gradient(135deg, #edf0ff, #f8f9ff);
}

.compliance-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.compliance-grid p {
  margin: 0;
  padding: 0.8rem;
  border-radius: 12px;
  background: rgba(110, 140, 251, 0.13);
}

.timeline-track {
  position: relative;
  margin-top: 1rem;
  padding-left: 1.4rem;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: linear-gradient(var(--brand-500), rgba(99, 108, 203, 0.2));
}

.timeline-item {
  position: relative;
  margin: 0.9rem 0;
  padding-left: 0.9rem;
}

.timeline-item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-700);
  position: absolute;
  left: -1.22rem;
  top: 0.4rem;
}

.scenario-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.scenario-actions button {
  border: var(--border-soft);
  border-radius: 999px;
  background: var(--white);
  color: var(--brand-900);
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.scenario-actions button.active {
  background: var(--brand-700);
  color: var(--white);
}

.scenario-panel {
  display: none;
}

.scenario-panel.visible {
  display: block;
  animation: floatIn 0.35s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.map-frame {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius-md);
}

@media (min-width: 740px) {
  .menu-toggle {
    display: none;
  }

  .top-nav {
    display: flex;
  }

  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 739px) {
  .mosaic {
    grid-template-columns: 1fr;
  }

  .tile.a,
  .tile.b,
  .tile.c,
  .tile.d {
    grid-column: auto;
  }
}