/* ==========================================================================
   Dr Maissa Bouenba — Exclusive Pediatric Dentistry
   --------------------------------------------------------------------------
   Table of contents
   01. Local fonts
   02. Design tokens
   03. Reset and base elements
   04. Utilities and accessibility
   05. Shared typography and section furniture
   06. Buttons, links and icons
   07. Site header and navigation
   08. Hero
   09. About
   10. Why choose us
   11. Services carousel
   12. Gallery
   13. Before and after comparison
   14. Split content sections
   15. Testimonials
   16. Appointment
   17. FAQ accordion
   18. Contact
   19. Footer
   20. Back to top
   21. Motion and responsive behaviour
   22. High-contrast focus treatment
   ========================================================================== */

/* ==========================================================================
   01. Local fonts
   ========================================================================== */

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700.woff2") format("woff2");
}

@font-face {
  font-family: "Martel";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/martel-700.woff2") format("woff2");
}

@font-face {
  font-family: "Martel";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/martel-800.woff2") format("woff2");
}

/* ==========================================================================
   02. Design tokens
   ========================================================================== */

:root {
  --plum-deep: #341b45;
  --footer-bg: #281034;
  --plum: #4b2a62;
  --purple: #764697;
  --purple-hover: #5e347b;
  --purple-ink: #6b3a8b;
  --lavender: #f4edf7;
  --lavender-alt: #eee4f2;
  --lavender-tint: #faf7fb;
  --lavender-line: #e3d6ea;
  --lavender-soft: #d9c2e8;
  --white: #ffffff;
  --text: #4b434e;
  --muted: #6a616d;
  --focus-ring: #341b45;
  --focus-ring-light: #f4edf7;
  --line: rgba(75, 42, 98, 0.14);
  --line-light: rgba(255, 255, 255, 0.16);
  --dot-red: #d25045;
  --dot-orange: #e19467;
  --dot-yellow: #e5c63d;
  --dot-green: #3ea569;
  --dot-blue: #257aab;
  --dot-pink: #d0308f;

  --font-body: "Lato", "Segoe UI", Arial, sans-serif;
  --font-display: "Martel", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --gutter: 24px;
  --section-y: clamp(78px, 8vw, 108px);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 24px;

  --shadow-soft: 0 14px 38px rgba(52, 27, 69, 0.07);
  --shadow-card: 0 22px 55px rgba(52, 27, 69, 0.12);
  --shadow-panel: 0 28px 80px rgba(24, 10, 36, 0.3);

  --ease: cubic-bezier(0.22, 0.65, 0.3, 1);
  --transition-fast: 180ms var(--ease);
  --transition-base: 300ms var(--ease);
}

/* ==========================================================================
   03. Reset and base elements
   ========================================================================== */

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

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

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--plum);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.22;
}

h1 {
  font-size: clamp(3.25rem, 4.8vw, 4.125rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(2.25rem, 3.3vw, 3rem);
  letter-spacing: -0.014em;
}

h3 {
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  line-height: 1.35;
}

p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

svg {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  color: inherit;
}

textarea {
  resize: vertical;
}

::selection {
  background: rgba(118, 70, 151, 0.24);
  color: var(--plum-deep);
}

/* ==========================================================================
   04. Utilities and accessibility
   ========================================================================== */

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--plum-deep);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transform: translateY(-160%);
  transition: transform var(--transition-fast);
}

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

:where(a, button, input, textarea, select, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--white);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--cream {
  background: var(--lavender);
}

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

.section--plum {
  background: var(--plum-deep);
  color: rgba(255, 255, 255, 0.78);
}

.section--plum h2,
.section--plum h3 {
  color: var(--white);
}

.why,
.appointment,
.contact {
  color: rgba(255, 255, 255, 0.78);
}

.why h2,
.why h3,
.appointment h2,
.appointment h3,
.contact h2,
.contact h3 {
  color: var(--white);
}

[id] {
  scroll-margin-top: 128px;
}

/* ==========================================================================
   05. Shared typography and section furniture
   ========================================================================== */

.section p {
  max-width: 68ch;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(38px, 4.5vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center p {
  max-width: 620px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.0625rem;
}

.divider {
  display: block;
  width: 54px;
  height: 3px;
  margin: 20px 0 24px;
  border-radius: 99px;
  background: var(--purple);
}

.section-head .divider {
  margin-inline: auto;
}

.divider--light {
  background: var(--lavender-soft);
}

.fineprint {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-style: italic;
  line-height: 1.65;
}

.fineprint a {
  color: var(--purple-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fineprint a:hover {
  color: var(--plum);
}

.appointment .fineprint,
.contact .fineprint {
  color: rgba(255, 255, 255, 0.68);
}

.appointment .fineprint a,
.contact .fineprint a {
  color: var(--lavender-soft);
}

/* ==========================================================================
   06. Buttons, links and icons
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.btn .icon {
  font-size: 1.05em;
  transition: transform var(--transition-fast);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(118, 70, 151, 0.22);
}

.btn--primary:hover {
  background: var(--purple-hover);
  box-shadow: 0 14px 30px rgba(118, 70, 151, 0.3);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--light {
  background: var(--white);
  color: var(--plum-deep);
  box-shadow: 0 10px 24px rgba(24, 10, 36, 0.26);
}

.btn--light:hover {
  background: var(--lavender);
  color: var(--plum-deep);
  box-shadow: 0 14px 30px rgba(24, 10, 36, 0.32);
  transform: translateY(-2px);
}

.btn--light:active {
  transform: translateY(0);
}

.btn--lg {
  min-height: 54px;
  padding: 17px 30px;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
}

.btn:disabled,
.btn.is-loading {
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.btn:disabled {
  cursor: not-allowed;
}

.btn.is-loading {
  cursor: wait;
}

.btn.is-loading {
  color: transparent;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple-ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.link-arrow .icon {
  font-size: 1.05em;
  transition: transform var(--transition-fast);
}

.link-arrow:hover {
  color: var(--plum);
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

/* ==========================================================================
   07. Site header and navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
}

.topbar {
  max-height: 72px;
  overflow: hidden;
  background: var(--plum-deep);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  line-height: 1.4;
  transition:
    max-height var(--transition-base),
    opacity var(--transition-base),
    visibility 0s linear 0s,
    transform var(--transition-base);
}

.topbar__inner {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 26px;
  padding-block: 4px;
}

.topbar__note {
  display: inline-flex;
  min-width: 0;
  margin-right: auto;
  align-items: center;
  gap: 8px;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.topbar__link:hover {
  color: var(--lavender-soft);
}

.topbar .icon {
  color: var(--lavender-soft);
  font-size: 0.875rem;
}

.site-header.is-scrolled .topbar {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    max-height var(--transition-base),
    opacity var(--transition-base),
    visibility 0s linear 300ms,
    transform var(--transition-base);
}

.navbar {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid rgba(75, 42, 98, 0.06);
  transition:
    background-color var(--transition-base),
    box-shadow var(--transition-base);
}

.site-header.is-scrolled .navbar {
  box-shadow: 0 10px 30px rgba(52, 27, 69, 0.1);
}

.navbar__inner {
  display: grid;
  min-height: 88px;
  align-items: center;
  gap: 24px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-self: start;
  gap: 11px;
  color: var(--plum-deep);
}

.brand__mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
}

.brand__text {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 1px;
  line-height: 1.12;
}

.brand__name {
  color: var(--plum-deep);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__tagline {
  color: var(--purple-ink);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 28px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 11px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.nav__link:hover,
.nav__link.is-active,
.nav__link[aria-current="page"] {
  color: var(--purple-ink);
}

.nav__link:hover::after,
.nav__link.is-active::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__cta {
  display: none;
}

.navbar__side {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 16px;
}

.navbar__cta {
  min-height: 44px;
  padding: 12px 22px;
  white-space: nowrap;
}

.nav-toggle {
  position: relative;
  z-index: 30;
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--plum-deep);
  transition: background-color var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--lavender);
}

.nav-toggle__line {
  display: block;
  width: 24px;
  height: 2px;
  margin-block: 2.5px;
  border-radius: 99px;
  background: currentColor;
  transition:
    opacity var(--transition-fast),
    transform var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  background: rgba(24, 10, 36, 0.58);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-base),
    visibility 0s linear 300ms;
}

body.nav-open .nav-backdrop:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--transition-base),
    visibility 0s linear 0s;
}

/* ==========================================================================
   08. Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  min-height: clamp(600px, 82vh, 780px);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--plum-deep);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      100deg,
      rgba(40, 16, 52, 0.94) 0%,
      rgba(52, 27, 69, 0.87) 32%,
      rgba(52, 27, 69, 0.58) 62%,
      rgba(40, 16, 52, 0.34) 100%
    ),
    linear-gradient(0deg, rgba(40, 16, 52, 0.6) 0%, rgba(40, 16, 52, 0) 52%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(88px, 10vw, 132px);
}

.hero__content {
  max-width: 660px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lavender-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    var(--dot-red) 0 20%,
    var(--dot-yellow) 20% 40%,
    var(--dot-green) 40% 60%,
    var(--dot-blue) 60% 80%,
    var(--dot-pink) 80% 100%
  );
}

.hero h1 {
  margin-top: 18px;
  color: var(--white);
  font-size: clamp(2.75rem, 4.2vw, 3.625rem);
  overflow-wrap: break-word;
}

.hero h1 span {
  color: var(--lavender-soft);
}

.hero__lead {
  max-width: 580px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1875rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px 28px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero__quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.46);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.hero__quiet-link .icon {
  width: 1em;
  height: 1em;
  transition: transform var(--transition-fast);
}

.hero__quiet-link:hover {
  border-color: var(--white);
  color: var(--lavender-soft);
}

.hero__quiet-link:hover .icon {
  transform: translateX(4px);
}

.hero :focus-visible {
  outline-color: var(--focus-ring-light);
  box-shadow: 0 0 0 3px rgba(24, 10, 36, 0.9);
}

/* ==========================================================================
   09. About
   ========================================================================== */

.about__grid {
  display: grid;
  align-items: center;
  gap: clamp(48px, 6vw, 80px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.about__media {
  position: relative;
  max-width: 520px;
  margin: 0;
}

.about__media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--lavender-line);
  border-radius: var(--radius-lg);
  background: var(--lavender-alt);
}

.about__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  object-fit: cover;
  object-position: center top;
}

.credentials {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.credentials__title {
  color: var(--purple-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.credentials__specialty {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.about__body h2 {
  max-width: 15ch;
}

.about__body p:not(.credentials) {
  margin-top: 16px;
  font-size: 1.0625rem;
}

.about__body .btn {
  margin-top: 28px;
}

/* ==========================================================================
   10. Why choose us
   ========================================================================== */

.why {
  background:
    radial-gradient(circle at 82% 10%, rgba(118, 70, 151, 0.36) 0, rgba(118, 70, 151, 0) 38%),
    var(--plum-deep);
}

.why__grid {
  display: grid;
  align-items: start;
  gap: clamp(46px, 6vw, 86px);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.why__intro {
  max-width: 520px;
}

.why__intro h2 {
  color: var(--white);
}

.why__intro p {
  margin-top: 16px;
}

.why__intro .why__lead {
  color: var(--white);
  font-size: 1.125rem;
  line-height: 1.7;
}

.why__cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
  display: flex;
  min-height: 276px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base);
}

.feature-card:hover,
.feature-card:focus-within {
  border-color: rgba(217, 194, 232, 0.5);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-4px);
}

.feature-card__icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 14px;
  background: var(--lavender);
}

.feature-card__icon img {
  width: 32px;
  max-height: 42px;
  object-fit: contain;
}

.feature-card h3 {
  color: var(--white);
  font-size: 1.3125rem;
}

.feature-card__text {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.feature-card .link-arrow {
  margin-top: auto;
  padding-top: 22px;
  color: var(--lavender-soft);
}

.feature-card .link-arrow:hover {
  color: var(--white);
}

/* ==========================================================================
   11. Services carousel
   ========================================================================== */

.carousel {
  --carousel-gap: 28px;
  --carousel-item-width: calc((100% - 56px) / 3);
}

.carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

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

.carousel__track {
  display: flex;
  align-items: stretch;
  gap: var(--carousel-gap);
}

.carousel__track > li {
  display: flex;
  min-width: 0;
  flex: 0 0 var(--carousel-item-width);
  scroll-snap-align: start;
}

.carousel__track > li > article {
  width: 100%;
}

.service-card {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.service-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.service-card--focus-top img {
  object-position: center 18%;
}

.service-card h3 {
  margin-top: 21px;
  color: var(--plum);
}

.service-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.carousel__btn {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(75, 42, 98, 0.2);
  border-radius: 50%;
  background: var(--white);
  color: var(--plum);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.carousel__btn .icon {
  font-size: 1.1rem;
}

.carousel__btn:hover:not(:disabled) {
  border-color: var(--purple);
  background: var(--purple);
  color: var(--white);
  transform: translateY(-2px);
}

.carousel__btn:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

/* ==========================================================================
   12. Gallery
   ========================================================================== */

.gallery {
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 8%, rgba(118, 70, 151, 0.36) 0, rgba(118, 70, 151, 0) 38%),
    var(--plum-deep);
  color: rgba(255, 255, 255, 0.78);
}

.gallery h2 {
  color: var(--white);
}

.gallery__eyebrow {
  color: var(--lavender-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.gallery .section-head p {
  max-width: 620px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.0625rem;
}

.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 38px;
}

.gallery__filter {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.gallery__filter:hover {
  border-color: var(--lavender-soft);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transform: translateY(-2px);
}

.gallery__filter.is-active,
.gallery__filter[aria-pressed="true"] {
  border-color: var(--white);
  background: var(--white);
  color: var(--plum-deep);
}

.gallery__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery__item {
  min-width: 0;
}

.gallery__card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 28px rgba(16, 6, 24, 0.18);
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.gallery__card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms var(--ease);
}

.gallery__item[data-orientation="portrait"] .gallery__card img {
  object-position: center 18%;
}

.gallery__card:hover,
.gallery__card:focus-visible {
  box-shadow: 0 18px 38px rgba(16, 6, 24, 0.3);
  transform: translateY(-3px);
}

.gallery__card:hover img,
.gallery__card:focus-visible img {
  transform: scale(1.04);
}

.gallery__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(40, 16, 52, 0.76);
  color: var(--white);
  transform: translate(-50%, -50%);
  transition: background-color var(--transition-fast);
}

.gallery__play .icon {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.gallery__card:hover .gallery__play,
.gallery__card:focus-visible .gallery__play {
  background: var(--purple);
}

.gallery__duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(16, 6, 24, 0.78);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.gallery :focus-visible {
  outline-color: var(--focus-ring-light);
  box-shadow: 0 0 0 3px rgba(24, 10, 36, 0.9);
}

.gallery-lightbox {
  width: min(1080px, calc(100vw - 32px));
  max-width: none;
  max-height: min(92dvh, 920px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--plum-deep);
  color: var(--white);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.gallery-lightbox::backdrop {
  background: rgba(16, 6, 24, 0.84);
}

.gallery-lightbox__inner {
  display: flex;
  height: min(88dvh, 860px);
  max-height: inherit;
  flex-direction: column;
}

.gallery-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.gallery-lightbox__counter {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.gallery-lightbox__close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: var(--white);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.gallery-lightbox__close:hover {
  border-color: var(--lavender-soft);
  background: rgba(255, 255, 255, 0.1);
}

.gallery-lightbox__close .icon {
  width: 18px;
  height: 18px;
}

.gallery-lightbox__stage {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  place-items: center;
  padding: 14px;
  overflow: hidden;
  background: #1d0c28;
}

.gallery-lightbox__stage img,
.gallery-lightbox__stage video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.gallery-lightbox__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.gallery-lightbox__caption {
  max-width: 70ch;
  flex: 1;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-align: center;
}

.gallery-lightbox__nav {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--white);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    opacity var(--transition-fast);
}

.gallery-lightbox__nav .icon {
  width: 18px;
  height: 18px;
}

.gallery-lightbox__nav:hover:not(:disabled) {
  border-color: var(--lavender-soft);
  background: rgba(255, 255, 255, 0.1);
}

.gallery-lightbox__nav:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

/* ==========================================================================
   13. Before and after comparison
   ========================================================================== */

.comparison__eyebrow {
  color: var(--purple-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.case-carousel {
  max-width: 1040px;
  margin-inline: auto;
}

.case-carousel__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(14px, 2.2vw, 24px);
}

.case-carousel__viewport {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}

.case-carousel__nav {
  align-self: center;
  box-shadow: var(--shadow-soft);
}

.case-carousel__nav--prev {
  grid-column: 1;
  grid-row: 1;
}

.case-carousel__nav--next {
  grid-column: 3;
  grid-row: 1;
}

.carousel.case-carousel {
  --carousel-gap: 24px;
  --carousel-item-width: 100%;
}

.case-carousel__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  text-align: center;
}

.case-carousel__status {
  color: var(--plum);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.comparison__figure {
  width: 100%;
  margin: 0;
}

.comparison__frame {
  --comparison-position: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 875 / 496;
  border-radius: var(--radius-xl);
  background: var(--plum-deep);
  box-shadow: var(--shadow-card);
  user-select: none;
}

.comparison__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--comparison-position)) 0 0);
}

.comparison__label {
  position: absolute;
  top: 16px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(24, 10, 36, 0.72);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  pointer-events: none;
}

.comparison__label--before {
  left: 16px;
}

.comparison__label--after {
  right: 16px;
}

.comparison__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--comparison-position);
  z-index: 2;
  width: 2px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(24, 10, 36, 0.18);
  transform: translateX(-50%);
  pointer-events: none;
}

.comparison__handle {
  position: absolute;
  top: 50%;
  left: var(--comparison-position);
  z-index: 3;
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: rgba(24, 10, 36, 0.55);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(24, 10, 36, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.comparison__handle .icon {
  width: 15px;
  height: 15px;
}

.comparison__range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}

.comparison__range::-webkit-slider-runnable-track {
  height: 100%;
  background: transparent;
}

.comparison__range::-webkit-slider-thumb {
  width: 52px;
  height: 100%;
  border: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: ew-resize;
}

.comparison__range::-moz-range-track {
  height: 100%;
  background: transparent;
}

.comparison__range::-moz-range-thumb {
  width: 52px;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: ew-resize;
}

.comparison__range:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: -7px;
  box-shadow: inset 0 0 0 8px rgba(52, 27, 69, 0.6);
}

.comparison__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-align: center;
}

.comparison__note {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ==========================================================================
   14. Split content sections
   ========================================================================== */

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

.split__media {
  position: relative;
  min-width: 0;
  min-height: 600px;
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
}

.split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.split__body {
  display: flex;
  align-items: center;
  padding: clamp(64px, 6.5vw, 96px) clamp(24px, 6vw, 96px);
  grid-column: 2;
  grid-row: 1;
}

.split--reverse .split__media {
  grid-column: 2;
}

.split--reverse .split__body {
  grid-column: 1;
}

.split__content {
  width: 100%;
  max-width: 565px;
  margin-inline: auto;
}

.split__content h2 {
  max-width: 15ch;
}

.split__content > p {
  margin-top: 16px;
  font-size: 1.0625rem;
}

.split__content .fineprint {
  font-size: 0.8125rem;
}

.split__content .btn {
  margin-top: 28px;
}

.checklist {
  display: grid;
  gap: 13px;
  margin-top: 24px;
}

.checklist li {
  display: grid;
  align-items: start;
  gap: 13px;
  grid-template-columns: 24px minmax(0, 1fr);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.checklist__icon {
  display: grid;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
}

.checklist__icon .icon {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   15. Testimonials
   ========================================================================== */

.testimonials {
  background: linear-gradient(180deg, var(--lavender-tint) 0%, var(--white) 100%);
}

.testimonials__eyebrow {
  color: var(--purple-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.testimonials .section-head p {
  color: var(--muted);
}

.testimonials__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 9px 16px;
  border: 1px solid var(--lavender-line);
  border-radius: 99px;
  background: var(--white);
  color: var(--plum);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.testimonials__badge:hover {
  border-color: var(--purple);
  box-shadow: 0 16px 34px rgba(52, 27, 69, 0.12);
  transform: translateY(-2px);
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: #a9700f;
}

.stars .icon {
  width: 15px;
  height: 15px;
}

.testimonials__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonial-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--lavender-line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: #a9700f;
}

.testimonial-card__stars .icon {
  width: 16px;
  height: 16px;
}

.testimonial-card blockquote {
  flex: 1;
}

.testimonial-card blockquote p {
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.testimonial-card figcaption {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--lavender-line);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.testimonials__note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-style: italic;
  text-align: center;
}

.testimonials__cta {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

/* ==========================================================================
   16. Appointment
   ========================================================================== */

.appointment {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--plum-deep) 0%, #45245c 52%, #5a3275 100%);
}

.appointment::before {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: min(560px, 52vw);
  height: 420px;
  background: url("../images/brand/brand-mark.png") center / contain no-repeat;
  opacity: 0.09;
  pointer-events: none;
}

.appointment > .container {
  position: relative;
  z-index: 1;
}

.appointment__grid {
  display: grid;
  align-items: center;
  gap: clamp(46px, 6vw, 76px);
  grid-template-columns: minmax(0, 1fr) 420px;
}

.appointment__copy {
  max-width: 570px;
}

.appointment__copy h2 {
  color: var(--white);
}

.appointment__copy p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.0625rem;
}

.appointment__copy .fineprint {
  margin-top: 16px;
}

.appointment__call {
  font-size: 1rem;
}

.appointment__call a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.44);
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.appointment__call a:hover {
  color: var(--lavender-soft);
}

.form-panel {
  padding: clamp(26px, 3vw, 34px);
  border-top: 3px solid var(--purple);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-panel);
  color: var(--text);
}

.appointment-form,
.contact-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-label {
  color: var(--plum);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.4;
}

.form-input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d8d1dc;
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.4;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-input::placeholder {
  color: #736a75;
  opacity: 1;
}

.form-input:hover {
  border-color: #bcb0c3;
}

.form-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(118, 70, 151, 0.14);
}

.form-input:focus-visible {
  outline-offset: 1px;
}

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

input[type="date"].form-input {
  color-scheme: light;
}

input[type="date"].form-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
}

.form-input.is-invalid,
.form-input[aria-invalid="true"] {
  border-color: #bd3b30;
  box-shadow: 0 0 0 3px rgba(189, 59, 48, 0.1);
}

.form-status {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
}

.form-status:not(:empty) {
  margin-top: 2px;
}

.form-status.is-success {
  color: #267b4b;
}

.form-status.is-error {
  color: #af2f25;
}

/* ==========================================================================
   17. FAQ accordion
   ========================================================================== */

.faq {
  background: var(--lavender);
}

.faq__grid {
  display: grid;
  align-items: center;
  gap: clamp(42px, 6vw, 78px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.faq__media {
  margin: 0;
}

.faq__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

.faq__content > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.accordion {
  margin-top: 28px;
  border-bottom: 1px solid rgba(75, 42, 98, 0.18);
}

.accordion__item {
  border-top: 1px solid rgba(75, 42, 98, 0.18);
}

.accordion__heading {
  margin: 0;
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

.accordion__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 0;
  color: var(--plum);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  transition: color var(--transition-fast);
}

.accordion__trigger > span:first-child {
  min-width: 0;
}

.accordion__trigger:hover {
  color: var(--purple-ink);
}

.accordion__icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  transition: transform var(--transition-base);
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 2px;
  background: var(--purple);
  transform: translate(-50%, -50%);
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

.accordion__icon::before {
  width: 14px;
  height: 2px;
}

.accordion__icon::after {
  width: 2px;
  height: 14px;
}

.accordion__trigger[aria-expanded="true"] .accordion__icon,
.accordion__item.is-open .accordion__icon {
  transform: rotate(180deg);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon::after,
.accordion__item.is-open .accordion__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0);
}

.accordion__panel-inner {
  padding: 0 46px 24px 0;
}

.accordion__panel-inner p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.accordion__panel-inner a {
  color: var(--purple-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   18. Contact
   ========================================================================== */

.contact {
  background:
    radial-gradient(circle at 12% 8%, rgba(118, 70, 151, 0.26) 0, rgba(118, 70, 151, 0) 36%),
    var(--plum-deep);
}

.contact__grid {
  display: grid;
  align-items: start;
  column-gap: clamp(38px, 6vw, 72px);
  row-gap: 38px;
  grid-template-areas:
    "info form"
    "map form";
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  grid-template-rows: auto 1fr;
}

.contact__info {
  max-width: 570px;
  grid-area: info;
}

.contact__info > p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.0625rem;
}

.contact__details {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-detail__icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
}

.contact-detail__icon .icon {
  width: 18px;
  height: 18px;
}

.contact-detail__body {
  display: grid;
  gap: 2px;
}

.contact-detail__body h3 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-detail__body a,
.contact-detail__body p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  overflow-wrap: anywhere;
  transition: color var(--transition-fast);
}

.contact-detail__body a:hover {
  color: var(--lavender-soft);
}

.contact__map {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--lavender-line);
  grid-area: map;
}

.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact__map-link {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--white);
  color: var(--plum-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(16, 6, 24, 0.26);
  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.contact__map-link .icon {
  width: 16px;
  height: 16px;
}

.contact__map-link:hover {
  background: var(--lavender);
  box-shadow: 0 14px 30px rgba(16, 6, 24, 0.32);
  transform: translateY(-2px);
}

.contact .form-panel {
  align-self: center;
  grid-area: form;
}

/* ==========================================================================
   19. Footer
   ========================================================================== */

.site-footer {
  padding-block: 72px 0;
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.72);
}

.footer__main {
  display: grid;
  gap: 44px;
  grid-template-columns: 1.65fr repeat(3, minmax(0, 1fr));
}

.footer__brand {
  max-width: 330px;
}

.footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer__mark {
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  place-items: center;
  border-radius: 14px;
  background: var(--lavender);
}

.footer__mark img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.footer__brand-text {
  display: grid;
  gap: 2px;
  line-height: 1.2;
}

.footer__name {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
}

.footer__tagline {
  color: var(--lavender-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.footer__slogan {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer__address {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1.65;
}

.footer__title {
  margin: 2px 0 17px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.4;
}

.footer__list {
  display: grid;
  gap: 7px;
}

.footer__link {
  display: inline-block;
  padding-block: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--lavender-soft);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 58px;
  padding-block: 22px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.8125rem;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.86);
  transition: color var(--transition-fast);
}

.footer__bottom a:hover {
  color: var(--lavender-soft);
}

/* ==========================================================================
   20. Back to top
   ========================================================================== */

.back-to-top {
  position: fixed;
  right: clamp(18px, 2.4vw, 30px);
  bottom: clamp(18px, 2.4vw, 30px);
  z-index: 850;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(118, 70, 151, 0.32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-base),
    transform var(--transition-base),
    visibility 0s linear 300ms;
}

.back-to-top .icon {
  width: 20px;
  height: 20px;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-base),
    transform var(--transition-base),
    visibility 0s linear 0s;
}

.back-to-top:hover {
  background: var(--purple-hover);
  box-shadow: 0 16px 34px rgba(118, 70, 151, 0.4);
  transform: translateY(-3px);
}

/* ==========================================================================
   21. Motion and responsive behaviour
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .carousel__viewport {
    scroll-behavior: smooth;
  }

  .accordion__panel:not([hidden]) .accordion__panel-inner {
    animation: panel-in 240ms var(--ease);
  }

  @keyframes panel-in {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms var(--ease),
    transform 600ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [class],
  [class]::before,
  [class]::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }

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

  .btn.is-loading::after {
    animation: none;
  }
}

/* Tablet landscape and small desktop */
@media (max-width: 1100px) {
  .nav {
    gap: 18px;
  }

  .nav__list {
    gap: 18px;
  }

  .nav__link {
    font-size: 0.9rem;
  }

  .navbar__side {
    gap: 12px;
  }

  .navbar__cta {
    padding-inline: 18px;
  }

  .brand__name {
    font-size: 1rem;
  }

  .contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  }
}

/* Tablet */
@media (max-width: 992px) {
  :root {
    --section-y: clamp(68px, 8vw, 90px);
  }

  [id] {
    scroll-margin-top: 114px;
  }

  .navbar__inner {
    display: flex;
    min-height: 78px;
    justify-content: space-between;
  }

  .navbar__cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 20;
    display: flex;
    width: min(320px, 86vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 106px 30px 40px;
    overflow-y: auto;
    background: var(--white);
    box-shadow: -20px 0 60px rgba(24, 10, 36, 0.18);
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition:
      transform var(--transition-base),
      visibility 0s linear 300ms;
    overscroll-behavior: contain;
  }

  .nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    color: var(--plum);
    font-size: 1.0625rem;
    white-space: normal;
  }

  .nav__link::after {
    right: auto;
    bottom: 9px;
    left: 0;
    width: 28px;
    transform-origin: left;
  }

  .nav__link:hover::after,
  .nav__link.is-active::after,
  .nav__link[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .nav__cta {
    display: inline-flex;
    width: 100%;
    margin-top: 24px;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    position: fixed;
    inset: 0 0 auto;
    background: transparent;
  }

  body.nav-open .nav {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition:
      transform var(--transition-base),
      visibility 0s linear 0s;
  }

  body.nav-open .nav-backdrop:not([hidden]) {
    display: block;
  }

  body.nav-open .topbar,
  body.nav-open .brand {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  body.nav-open .navbar {
    background: transparent;
    box-shadow: none;
  }

  .navbar,
  .topbar,
  .brand {
    transition:
      background-color var(--transition-base),
      opacity var(--transition-base),
      visibility 0s linear 0s;
  }

  .hero__inner {
    padding-block: 76px;
  }

  .hero__content {
    max-width: 700px;
  }

  .hero h1 {
    max-width: none;
  }

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

  .gallery__filters {
    margin-bottom: 32px;
  }

  .about__grid,
  .why__grid,
  .faq__grid {
    grid-template-columns: 1fr;
  }

  .about__grid {
    gap: 48px;
  }

  .about__media {
    width: min(100%, 500px);
    margin-inline: auto;
  }

  .about__body h2 {
    max-width: none;
  }

  .why__intro {
    max-width: 680px;
  }

  .why__cards {
    max-width: 780px;
  }

  .carousel {
    --carousel-item-width: calc((100% - 28px) / 2);
  }

  .appointment__grid {
    max-width: 680px;
    margin-inline: auto;
    grid-template-columns: 1fr;
  }

  .appointment__copy {
    max-width: 620px;
  }

  .appointment::before {
    width: 420px;
    height: 320px;
    opacity: 0.07;
  }

  .faq__grid {
    gap: 44px;
  }

  .faq__media {
    max-width: 760px;
  }

  .faq__media img {
    aspect-ratio: 16 / 10;
  }

  .contact__grid {
    grid-template-areas:
      "info"
      "map"
      "form";
    grid-template-columns: 1fr;
  }

  .contact__info {
    max-width: 680px;
  }

  .contact .form-panel {
    width: 100%;
    max-width: 680px;
    justify-self: center;
  }

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

  .footer__brand {
    max-width: none;
    grid-column: 1 / -1;
  }

  .footer__col:last-child {
    grid-column: 1 / -1;
  }

  .footer__list {
    grid-template-columns: repeat(2, minmax(0, max-content));
    column-gap: 34px;
  }

  .footer__col:last-child .footer__list {
    grid-template-columns: repeat(3, minmax(0, max-content));
  }

  .back-to-top {
    width: 46px;
    height: 46px;
  }
}

/* Small tablet / large phone */
@media (max-width: 768px) {
  :root {
    --gutter: 22px;
    --section-y: 68px;
  }

  h2 {
    font-size: clamp(2rem, 6.2vw, 2.5rem);
  }

  [id] {
    scroll-margin-top: 92px;
  }

  .topbar__inner {
    min-height: 38px;
    justify-content: center;
    gap: 4px 18px;
    flex-wrap: wrap;
    padding-block: 7px;
  }

  .topbar__note {
    width: 100%;
    margin-right: 0;
    justify-content: center;
  }

  .topbar__link {
    font-size: 0.75rem;
  }

  .topbar__link--mail {
    display: none;
  }

  .navbar__inner {
    min-height: 72px;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand__name {
    font-size: 0.9375rem;
  }

  .brand__tagline {
    font-size: 0.625rem;
  }

  .nav {
    padding-top: 96px;
  }

  .hero {
    min-height: clamp(560px, 86vh, 720px);
  }

  .hero__media img {
    object-position: 58% 42%;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(40, 16, 52, 0.86) 0%, rgba(40, 16, 52, 0.68) 48%, rgba(40, 16, 52, 0.9) 100%),
      linear-gradient(100deg, rgba(40, 16, 52, 0.68), rgba(40, 16, 52, 0.3));
  }

  .hero__inner {
    padding-block: 74px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 7vw, 2.875rem);
  }

  .hero__lead {
    max-width: 520px;
    margin-top: 20px;
    font-size: 1.0625rem;
    line-height: 1.7;
  }

  .hero__actions {
    margin-top: 28px;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .gallery__filters {
    gap: 8px;
    margin-bottom: 28px;
  }

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

  .comparison__frame {
    border-radius: var(--radius-lg);
  }

  .comparison__label {
    top: 10px;
    padding: 4px 9px;
    font-size: 0.625rem;
  }

  .comparison__label--before {
    left: 10px;
  }

  .comparison__label--after {
    right: 10px;
  }

  .comparison__handle {
    width: 44px;
    height: 44px;
  }

  .comparison__caption {
    font-size: 0.875rem;
    padding-inline: 8px;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .gallery-lightbox__inner {
    height: 92dvh;
  }

  .gallery-lightbox__stage {
    padding: 10px;
  }

  .gallery-lightbox__footer {
    gap: 10px;
    padding: 10px 12px;
  }

  .contact__map-link {
    left: 10px;
    bottom: 10px;
  }

  .section-head--center p {
    font-size: 1rem;
  }

  .about__grid {
    gap: 40px;
  }

  .about__media::before {
    inset: 12px -12px -12px 12px;
  }

  .why__cards {
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
    padding: 26px;
  }

  .feature-card .link-arrow {
    padding-top: 20px;
  }

  .carousel {
    --carousel-gap: 20px;
    --carousel-item-width: 100%;
  }

  .carousel__track > li {
    padding-bottom: 4px;
  }

  .carousel.case-carousel {
    --carousel-gap: 20px;
  }

  .case-carousel {
    max-width: none;
  }

  .case-carousel__stage {
    position: relative;
    display: block;
  }

  .case-carousel__nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    background: rgba(255, 255, 255, 0.92);
  }

  .case-carousel__nav--prev {
    left: 8px;
  }

  .case-carousel__nav--next {
    right: 8px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split__media,
  .split--reverse .split__media {
    height: clamp(320px, 56vw, 420px);
    min-height: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .split__body,
  .split--reverse .split__body {
    padding: 56px var(--gutter);
    grid-column: 1;
    grid-row: 2;
  }

  .split__content {
    max-width: 560px;
  }

  .split__content h2 {
    max-width: none;
  }

  .faq__media {
    max-width: none;
  }

  .faq__media img {
    aspect-ratio: 3 / 2;
  }

  .contact__grid {
    row-gap: 30px;
  }

  .contact__map {
    height: 280px;
  }

  .site-footer {
    padding-top: 62px;
  }

  .footer__main {
    gap: 36px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand,
  .footer__col:last-child {
    grid-column: auto;
  }

  .footer__brand {
    max-width: 360px;
    margin-inline: auto;
  }

  .footer__brand-link {
    justify-content: center;
  }

  .footer__list,
  .footer__col:last-child .footer__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 22px;
  }

  .footer__title {
    margin-bottom: 12px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 7px;
    margin-top: 44px;
    padding-block: 22px 24px;
    text-align: center;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

/* Phone */
@media (max-width: 480px) {
  :root {
    --gutter: 20px;
    --section-y: 58px;
  }

  h1 {
    font-size: clamp(2.25rem, 10vw, 2.5rem);
    letter-spacing: -0.028em;
  }

  h2 {
    font-size: clamp(1.875rem, 8.8vw, 2.25rem);
  }

  .topbar__inner {
    justify-content: center;
  }

  .navbar__inner {
    min-height: 68px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand__name {
    font-size: 0.875rem;
  }

  .brand__tagline {
    font-size: 0.59375rem;
    letter-spacing: 0.05em;
  }

  .nav {
    width: min(300px, 86vw);
    padding: 92px 24px calc(32px + env(safe-area-inset-bottom));
  }

  .hero__inner {
    padding-block: 58px;
  }

  .hero__media img {
    object-position: 62% 46%;
  }

  .hero__eyebrow {
    font-size: 0.6875rem;
  }

  .hero h1 {
    line-height: 1.1;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__actions {
    gap: 16px;
  }

  .hero .btn,
  .about__body .btn,
  .split__content .btn {
    width: 100%;
    max-width: 330px;
  }

  .hero__quiet-link {
    font-size: 0.875rem;
  }

  .btn {
    padding-inline: 22px;
    font-size: 0.8125rem;
  }

  .gallery__filter {
    padding: 9px 14px;
    font-size: 0.6875rem;
  }

  .gallery__play {
    width: 46px;
    height: 46px;
  }

  .gallery__play .icon {
    width: 19px;
    height: 19px;
  }

  .gallery__duration {
    right: 8px;
    bottom: 8px;
    font-size: 0.6875rem;
  }

  .testimonial-card {
    padding: 22px;
  }

  .testimonials__badge {
    font-size: 0.8125rem;
  }

  .gallery-lightbox__nav {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .gallery-lightbox__caption {
    font-size: 0.875rem;
  }

  .contact__map-link {
    padding: 9px 12px;
    font-size: 0.6875rem;
  }

  .about__media {
    width: calc(100% - 12px);
  }

  .about__media::before {
    inset: 10px -10px -10px 10px;
  }

  .feature-card {
    padding: 24px;
  }

  .feature-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
  }

  .feature-card h3 {
    font-size: 1.25rem;
  }

  .service-card h3 {
    margin-top: 17px;
  }

  .split__body {
    padding-block: 48px;
  }

  .split__media,
  .split--reverse .split__media {
    height: 340px;
  }

  .checklist li,
  .split__content > p {
    font-size: 1rem;
  }

  .appointment__grid {
    gap: 34px;
  }

  .form-panel {
    padding: 24px 20px;
  }

  .appointment-form,
  .contact-form {
    gap: 14px;
  }

  .form-input {
    min-height: 47px;
    font-size: 1rem;
  }

  .faq__media img {
    aspect-ratio: 4 / 3;
  }

  .faq__content > p {
    font-size: 1rem;
  }

  .accordion__trigger {
    gap: 16px;
    padding-block: 19px;
    font-size: 1rem;
  }

  .accordion__panel-inner {
    padding-right: 28px;
  }

  .contact__info > p {
    font-size: 1rem;
  }

  .contact-detail__icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .contact__map {
    height: 240px;
  }

  .footer__list,
  .footer__col:last-child .footer__list {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .footer__bottom {
    padding-right: 52px;
    padding-left: 52px;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
  }
}

/* Narrow phones */
@media (max-width: 360px) {
  .brand__mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .brand__name {
    font-size: 0.8125rem;
  }

  .brand__tagline {
    font-size: 0.5625rem;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero__content .btn {
    padding-inline: 18px;
  }

  .gallery__filters {
    gap: 6px;
  }

  .gallery__filter {
    padding: 8px 12px;
    font-size: 0.625rem;
  }

  .gallery__play {
    width: 42px;
    height: 42px;
  }

  .gallery-lightbox__nav {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .gallery-lightbox__caption {
    font-size: 0.8125rem;
  }

  .contact-detail {
    gap: 12px;
  }

  .contact-detail__icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .footer__bottom {
    padding-inline: 36px;
  }
}

/* ==========================================================================
   22. High-contrast focus treatment
   ========================================================================== */

.btn:focus-visible,
.nav-toggle:focus-visible,
.carousel__btn:focus-visible,
.form-input:focus-visible,
.back-to-top:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--white);
}

.hero :focus-visible,
.why :focus-visible,
.appointment :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--focus-ring-light);
  box-shadow: 0 0 0 3px rgba(24, 10, 36, 0.9);
}

.why .link-arrow:focus-visible,
.appointment .btn:focus-visible,
.contact .btn:focus-visible {
  outline-color: var(--focus-ring-light);
}
