:root {
  --bg: #f5f4f6;
  --bg-alt: #e0dde4;
  --purple: #5200f5;
  --ink: #0a001f;
  --ink-soft: #3b3550;
  --yellow: #ffc000;
  --yellow-hover: #ffcd33;
  --white: #fff;
  --radius: 16px;
  --radius-btn: 8px;
  --wrap: 1216px;
  --gutter: 24px;
  --font-head: 'Cabin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 1.5px solid var(--yellow);
  border-radius: var(--radius-btn);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--yellow-hover);
  border-color: var(--yellow-hover);
}

.btn--outline {
  padding: 0.55rem 1rem;
  border-color: var(--ink);
  background: transparent;
  font-size: 0.9375rem;
}

.btn--outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

/* Brand mark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
}

.brand__icon {
  width: 36px;
  height: 36px;
  flex: none;
}

.brand--light {
  color: var(--white);
}

/* Header + hero */
.hero {
  background: var(--bg-alt);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--gutter);
}

.hero__body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem var(--gutter) 5.5rem;
  text-align: center;
}

.hero__ad {
  width: 100%;
  max-width: 667px;
  margin: 0 auto 3.5rem;
  padding: 8px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(10, 0, 31, 0.12);
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.hero__lead {
  max-width: 34rem;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--tight-top {
  padding-top: 0;
}

.section--flush {
  padding: 0 0 5rem;
}

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

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 2.5rem;
}

/* Intro */
.intro {
  max-width: 52rem;
  margin-bottom: 3.5rem;
}

.intro h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  margin-bottom: 2rem;
}

.intro__lead {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 500;
  line-height: 1.5;
}

.feature-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

/* Services */
.services {
  display: grid;
  gap: 3rem;
}

.service img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.service h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.625rem;
  font-weight: 500;
}

.service p {
  margin: 0;
  color: var(--ink-soft);
}

@media (min-width: 720px) {
  .services {
    grid-template-columns: 1fr 1fr;
    gap: 4rem 4rem;
  }
}

/* Sliders (photo gallery and reviews) */
.slider {
  position: relative;
}

.slider__track {
  position: relative;
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.slider__track::-webkit-scrollbar {
  display: none;
}

.slider__slide {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: center;
}

.slider__btn {
  display: none;
}

.js .slider__btn {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: background-color 0.2s, opacity 0.2s;
}

.slider__btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider__btn[disabled] {
  opacity: 0.3;
  cursor: default;
}

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 1.25rem;
}

.slider__dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.slider__dot::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  margin: auto;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.25;
  transition: opacity 0.2s, transform 0.2s;
}

.slider__dot[aria-current='true']::before {
  opacity: 1;
  transform: scale(1.15);
}

/* Photo gallery: centred slide with the neighbours peeking in */
.slider--gallery .slider__track {
  padding: 0 7vw;
  scroll-padding: 0 7vw;
}

.slider--gallery .slider__slide {
  width: 86vw;
}

.slider--gallery .slider__slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition: opacity 0.35s;
}

.js .slider--gallery .slider__slide:not(.is-active) img {
  opacity: 0.45;
}

.js .slider--gallery .slider__btn {
  margin-top: -40px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px rgba(10, 0, 31, 0.18);
}

.js .slider--gallery .slider__btn:not([disabled]):hover {
  background: var(--white);
}

.slider--gallery .slider__btn--prev {
  left: max(12px, 2vw);
}

.slider--gallery .slider__btn--next {
  right: max(12px, 2vw);
}

@media (min-width: 960px) {
  .slider--gallery .slider__track {
    padding: 0 18vw;
    scroll-padding: 0 18vw;
  }

  .slider--gallery .slider__slide {
    width: 64vw;
  }
}

/* Reviews */
.slider--quotes .slider__slide {
  width: 100%;
}

.quote blockquote,
.quote figcaption {
  max-width: 48rem;
}

.quote blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 500;
  line-height: 1.4;
}

.quote figcaption {
  color: var(--ink-soft);
  font-size: 1rem;
}

.quote figcaption::before {
  content: '- ';
}

@media (min-width: 720px) {
  .slider--quotes {
    padding: 0 72px;
  }

  .js .slider--quotes .slider__btn:not([disabled]):hover {
    background: var(--bg-alt);
  }

  .slider--quotes .slider__btn--prev {
    left: 0;
  }

  .slider--quotes .slider__btn--next {
    right: 0;
  }
}

@media (max-width: 719px) {
  .js .slider--quotes .slider__btn {
    display: none;
  }
}

.reviews-link {
  margin: 1.5rem 0 0;
  text-align: center;
  font-weight: 500;
}

.reviews-link a {
  color: var(--purple);
  text-underline-offset: 3px;
}

/* About */
.about {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.about h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.about p {
  color: var(--ink-soft);
}

.about p:last-child {
  margin-bottom: 0;
}

@media (min-width: 860px) {
  .about {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* Map + visit card */
.location {
  position: relative;
  background: var(--bg-alt);
}

.location iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

.location__card {
  margin: -3rem 0 0;
  position: relative;
  max-width: 26rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(10, 0, 31, 0.16);
}

.location__inner {
  padding-bottom: 3rem;
}

.location__card h2 {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.location__card address {
  font-style: normal;
  margin-bottom: 1em;
}

.location__card p {
  margin-bottom: 0.4em;
}

.location__card p:last-child {
  margin: 1em 0 0;
}

.location__card a {
  color: var(--purple);
  font-weight: 500;
  text-underline-offset: 3px;
}

.location__hours {
  font-weight: 500;
}

@media (min-width: 860px) {
  .location iframe {
    height: 460px;
  }

  .location__inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0;
    pointer-events: none;
  }

  /* Card on the right, so Google's own place card on the left stays readable */
  .location__inner .wrap {
    display: flex;
    justify-content: flex-end;
  }

  .location__card {
    margin: 0;
    pointer-events: auto;
  }
}

/* FAQ */
.faq {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.faq summary {
  position: relative;
  padding: 1.5rem 3rem 1.5rem 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
}

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

.faq summary::after {
  content: '';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  margin-top: -3px;
  transform: rotate(-135deg);
}

.faq__answer {
  padding: 0 3rem 1.5rem 0;
  color: rgba(255, 255, 255, 0.9);
}

.faq__answer p:last-child,
.faq__answer ul:last-child {
  margin-bottom: 0;
}

.faq__answer ul {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

.faq__answer li {
  margin-bottom: 0.25em;
}

/* Footer */
.site-footer {
  padding: 1rem 0 4rem;
  background: var(--purple);
  color: var(--white);
  text-align: center;
}

.site-footer .brand {
  margin-bottom: 0.75rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer p a {
  text-decoration: none;
}

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

/* 404 */
.not-found {
  max-width: 40rem;
  margin: 0 auto;
  padding: 6rem var(--gutter);
  text-align: center;
}

.not-found h1 {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.not-found a {
  color: var(--purple);
}

/* Slide sections in as they scroll into view */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 520px) {
  .site-header {
    padding: 1rem var(--gutter);
  }

  .brand {
    font-size: 1rem;
  }

  .brand__icon {
    width: 28px;
    height: 28px;
  }

  .btn--outline {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .hero__body {
    padding: 2rem var(--gutter) 4rem;
  }

  .hero__ad {
    margin-bottom: 2.5rem;
    padding: 5px;
  }

  .section {
    padding: 4rem 0;
  }

  .section--tight-top {
    padding-top: 0;
  }

  .section--flush {
    padding: 0 0 4rem;
  }

  .slider--gallery .slider__track {
    gap: 1rem;
  }

  .faq summary {
    padding-right: 2.5rem;
  }

  .faq__answer {
    padding-right: 0;
  }
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .slider--gallery .slider__slide img {
    transition: none;
  }
}
