:root {
  --primary: #9468AC;
  --primary-dark: #360D4A;
  --sage: #eadff0;
  --mint: #f8f4fa;
  --cream: #fdfbfe;
  --text: #1f2933;
  --muted: #586672;
  --white: #ffffff;
  --border: #dfcfe8;
  --shadow: 0 18px 45px rgba(54, 13, 74, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: Inter, "Nunito Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.top-strip {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.72rem;
}

.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 30px;
}

.top-strip a,
.top-strip span {
  color: var(--white);
  font-weight: 700;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--primary-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.header-inner,
.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 78px;
  padding: 0.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: var(--white);
}

.brand img {
  width: clamp(165px, 20vw, 235px);
  height: auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.main-nav a,
.nav-parent {
  padding: 0.36rem 0.46rem;
  border-radius: 6px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 700;
}

.nav-item {
  position: relative;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-parent::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.submenu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 80;
  display: none;
  width: min(330px, calc(100vw - 36px));
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.submenu a {
  display: block;
  padding: 0.44rem 0.58rem;
  color: var(--primary-dark);
  font-size: 0.78rem;
  line-height: 1.25;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  display: grid;
  gap: 0.12rem;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.submenu a:hover,
.submenu a:focus,
.submenu a[aria-current="page"] {
  background: var(--sage);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.36rem 0.6rem;
  border-radius: 6px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.site-header .header-phone {
  font-size: 0.76rem;
}

.menu-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  border: 2px solid var(--primary-dark);
  border-radius: 6px;
  background: var(--white);
  color: var(--primary-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hero {
  background: var(--mint);
  border-bottom: 1px solid var(--border);
}

.hero-slider {
  padding: 0;
  background: var(--white);
}

.slider {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 62vw, 650px);
  background: var(--primary-dark);
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  min-height: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(54, 13, 74, 0.9), rgba(54, 13, 74, 0.66), rgba(148, 104, 172, 0.22));
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: clamp(3rem, 8vw, 6rem) 0;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-left: 6px solid var(--primary);
  border-radius: 8px;
  background: rgba(54, 13, 74, 0.76);
  box-shadow: var(--shadow);
  color: var(--white);
  text-shadow: 0 2px 18px rgba(26, 8, 36, 0.5);
  backdrop-filter: blur(4px);
}

.hero-slider .slide-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
  font-size: clamp(0.78rem, 1.2vw, 0.95rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-slider .slide-content h1 {
  margin: 0.4rem 0 0.8rem;
  color: var(--white);
  font-size: clamp(1.65rem, 3.4vw, 2.8rem);
  line-height: 1.14;
}

.hero-slider .slide-content span {
  display: block;
  max-width: 620px;
  margin-bottom: 1.4rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.98rem, 1.45vw, 1.12rem);
  font-weight: 700;
  line-height: 1.55;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(54, 13, 74, 0.5);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.slider-arrow:hover,
.slider-arrow:focus {
  background: var(--primary-dark);
  outline: 3px solid rgba(255, 255, 255, 0.34);
}

.slider-arrow.prev {
  left: clamp(0.7rem, 2vw, 1.5rem);
}

.slider-arrow.next {
  right: clamp(0.7rem, 2vw, 1.5rem);
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  z-index: 4;
  display: flex;
  gap: 0.55rem;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 13px;
  height: 13px;
  padding: 0;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.slider-dots button.is-active,
.slider-dots button:focus {
  background: var(--white);
  outline: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 1rem;
  color: var(--primary-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.hero p,
.page-hero p,
.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.7;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.25rem;
  border: 2px solid var(--primary-dark);
  border-radius: 6px;
  background: var(--primary-dark);
  color: var(--white);
  font-weight: 800;
  line-height: 1.2;
}

.button.secondary {
  background: var(--white);
  color: var(--primary-dark);
}

.button:hover,
.button:focus {
  outline: 3px solid rgba(148, 104, 172, 0.34);
  outline-offset: 2px;
}

.hero-image,
.image-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.section {
  padding: clamp(2.6rem, 6vw, 5rem) 0;
  background: var(--cream);
}

.section.alt {
  background: var(--mint);
}

.section.white {
  background: var(--white);
}

.who-we-are {
  background: var(--white);
}

.who-we-are .lead {
  margin-bottom: 1rem;
}

.further-info {
  background: var(--white);
}

.info-boxes .card {
  background: var(--mint);
}

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

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

h2,
.page-section h2 {
  margin: 0 0 0.85rem;
  color: var(--primary-dark);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 0.55rem;
  color: var(--primary-dark);
  font-size: 1.22rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.service-card {
  min-height: 100%;
}

.services-overview .service-card {
  padding: 0;
}

.services-overview .service-card img {
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

.services-overview .service-card h3,
.services-overview .service-card p {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.services-overview .service-card h3 {
  padding-top: 1rem;
}

.services-overview .service-card p {
  padding-bottom: 1.15rem;
}

.card-link {
  display: block;
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card-link:hover,
.card-link:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-3px);
}

.text-link {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
  border-radius: 6px;
  object-fit: cover;
}

.tick-list,
.plain-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tick-list li,
.plain-list li {
  position: relative;
  padding-left: 1.6rem;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--primary);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sage);
  border: 2px solid var(--primary);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.notice {
  padding: 1.25rem;
  border-left: 6px solid var(--primary);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font-weight: 700;
}

.cta {
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 8px;
  background: var(--primary-dark);
  color: var(--white);
}

.cta h2,
.cta p {
  color: var(--white);
}

.cta .button {
  border-color: var(--white);
  background: var(--white);
  color: var(--primary-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 1.25rem;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.form {
  display: grid;
  gap: 1rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  color: var(--primary-dark);
  font-weight: 800;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font: inherit;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--primary-dark);
  outline: 3px solid rgba(148, 104, 172, 0.28);
}

.map-placeholder {
  display: grid;
  min-height: 240px;
  place-items: center;
  padding: 1.5rem;
  border: 1px dashed var(--primary);
  border-radius: 8px;
  background: var(--mint);
  color: var(--primary-dark);
  font-weight: 800;
  text-align: center;
}

.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: var(--mint);
  border-bottom: 1px solid var(--border);
}

.page-hero .container {
  max-width: 880px;
}

.site-footer {
  background: var(--primary-dark);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) repeat(2, minmax(180px, 0.7fr));
  gap: 2rem;
  padding: 2.5rem 0;
}

.footer-logo {
  width: clamp(220px, 24vw, 330px);
  height: auto;
  margin-bottom: 1rem;
}

.site-footer h2,
.site-footer h3,
.site-footer p,
.site-footer a {
  color: var(--white);
}

.site-footer ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .top-strip-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.55rem 0;
  }

  .header-inner {
    min-height: 78px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-wrap {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    max-height: calc(100vh - 78px);
    padding: 1rem 18px 1.5rem;
    overflow: auto;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-wrap .main-nav a,
  .nav-wrap .nav-parent {
    color: var(--primary-dark);
  }

  .nav-wrap .main-nav a:hover,
  .nav-wrap .main-nav a:focus,
  .nav-wrap .main-nav a[aria-current="page"] {
    background: var(--sage);
  }

  .nav-wrap.is-open {
    display: flex;
  }

  .main-nav {
    display: grid;
    gap: 0.2rem;
  }

  .nav-item {
    display: grid;
  }

  .nav-parent {
    width: 100%;
  }

  .submenu {
    position: static;
    display: grid;
    width: 100%;
    margin: 0.15rem 0 0.4rem;
    padding: 0.35rem 0 0.35rem 0.8rem;
    border: 0;
    border-left: 3px solid var(--sage);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .submenu a {
    padding: 0.44rem 0.62rem;
    font-size: 0.82rem;
  }

  .main-nav a,
  .header-phone {
    width: 100%;
  }

  .hero-inner,
  .split,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .slider {
    min-height: 560px;
  }

  .slide-overlay {
    background: linear-gradient(180deg, rgba(54, 13, 74, 0.28), rgba(54, 13, 74, 0.88));
  }

  .slide-content {
    align-self: end;
    margin: 8rem 0 5rem;
    padding: 1.2rem;
  }

  .slider-arrow {
    top: auto;
    bottom: 1rem;
    width: 42px;
    height: 42px;
    font-size: 1.65rem;
    transform: none;
  }

  .slider-dots {
    bottom: 1.75rem;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 18px;
  }

  .header-inner,
  .container {
    width: min(100% - 28px, 1120px);
  }

  .brand img {
    width: 165px;
  }

  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
  }

  .slider {
    min-height: 600px;
  }

  .slide-content h1 {
    font-size: clamp(1.65rem, 8vw, 2.45rem);
  }

  .slide-content span {
    font-size: 0.98rem;
  }

  .button {
    width: 100%;
  }
}
