@font-face {
  font-family: Inter;
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #313131;
  --surface: #f6f6f6;
  --blue: #394bdb;
  --lavender: #b0b7f1;
  --yellow: #f9f871;
  --muted: #666;
  --frame-width: 1920px;
  color: var(--ink);
  background: var(--ink);
  scroll-padding-top: 115px;
  overflow-x: clip;
}

@media (1100px <= width < 1680px) { :root { --frame-width: 1440px; } }
@media (600px <= width < 1100px) { :root { --frame-width: 768px; } }
@media (width < 600px) { :root { --frame-width: 375px; scroll-padding-top: 88px; } }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  border: 0;
  font-family: Inter, Arial, sans-serif;
  font-optical-sizing: none;
  overflow-x: clip;
  container-type: inline-size;
}

main, section, h1, h2, p, form, label { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button {
  appearance: none;
  text-align: inherit;
  border: 0;
  background: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
img { vertical-align: middle; }
[hidden] { display: none !important; }

.homepage {
  width: var(--frame-width);
  margin-inline: auto;
  overflow-x: clip;
  zoom: min(1.2, calc(100cqw / var(--frame-width)));
}

@media (width < 600px) {
  .homepage { zoom: min(1.35, calc(100cqw / 375px)); }
}

main > section, footer { isolation: isolate; }

.skip-link, .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 30;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  clip-path: none;
  padding: 12px 16px;
  color: white;
  background: var(--blue);
  border-radius: 8px;
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.hero :focus-visible, .contact :focus-visible, .footer :focus-visible, .mobile-menu :focus-visible { outline-color: var(--yellow); }
.flow-trigger, .process-trigger { position: absolute; inset: 0; width: 100%; }
[data-flow] > :not([data-step-shape]):not(button) { pointer-events: none; }
[data-flow-step][aria-pressed="true"]:not(.mediation-step-row-02) { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 8px; }
.flow-trigger[data-flow-step="2"][aria-pressed="true"] { outline: 0; }
[data-flow-step][data-visited-step][aria-pressed="false"] { opacity: .58; }

[data-process-item] { transition: translate .2s ease; }
[data-process-symbol], [data-process-number] { pointer-events: none; }
.process-trigger { bottom: auto; z-index: 2; border-radius: inherit; }
[data-process-item][data-open-step] { border-color: var(--blue); }
.process-copy { pointer-events: none; }

.faq button[data-faq-toggle] { overflow: visible; }
.faq button[data-faq-toggle]:focus-visible { outline-offset: -2px; }
.faq [data-faq-answer] { width: 100%; }
.faq:has([data-faq-toggle][aria-expanded="false"]) { min-height: 0; }

.contact form label {
  display: block;
}
.contact input, .contact textarea {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 13px 15px;
  background: transparent;
  border: 0;
  border-radius: inherit;
  color: white;
  font-size: 16px;
}
.contact textarea { resize: none; }
.contact ::placeholder { opacity: 1; color: white; }

.mobile-menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border: 0;
  margin: 0;
  padding: 0;
  color: white;
  background: #292929;
  overscroll-behavior: contain;
}
.mobile-menu::backdrop { background: #292929; }
.menu-viewport { display: flex; justify-content: center; min-height: 100%; }
.menu768-menu-artboard-768 { zoom: min(1.2, calc(100vw / 768px)); }
.menu375-menu-artboard-375 { zoom: min(1.35, calc(100vw / 375px)); }
@media (width < 600px) { .menu768-menu-artboard-768 { display: none; } }
@media (min-width: 600px) { .menu375-menu-artboard-375 { display: none; } }
html:has(dialog[open]) { overflow: hidden; }

.booking-dialog, .reviews-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: 90dvh;
  color: var(--ink);
  background: white;
  border: 1px solid #d1d1d1;
  border-radius: 8px;
  padding: 28px;
}
.booking-dialog::backdrop, .reviews-dialog::backdrop { background: rgb(0 0 0 / .55); }
.booking-dialog p { margin-block: 14px 22px; line-height: 1.5; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.dialog-actions a, .dialog-actions button, .reviews-dialog button {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
}
.dialog-actions button { background: var(--surface); color: var(--ink); }
.reviews-dialog {
  width: min(750px, calc(100vw - 32px));
}
.reviews-dialog iframe { width: 100%; height: 65dvh; margin-block: 12px; border: 1px solid #ddd; }
.reviews-dialog a { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}

.contact input, .contact textarea {
  padding-inline: var(--field-left, 16px);
  padding-block: var(--field-top, 18px) 0;
  font-size: var(--field-size, 16px);
  line-height: var(--field-line, 22px);
}
.contact input {
  height: calc(var(--field-top, 18px) + var(--field-line, 22px));
}
.contact input:focus-visible, .contact textarea:focus-visible { outline-offset: 1px; }
.hero :is(.hero-site-header, .hero-contact-bar) { z-index: 3; }
.public-activity [data-gallery-direction] { z-index: 2; }

/* Figma excludes the inset stroke when calculating the FAQ card height. */
.faq .faq-faq-item-1 {
  border: 0;
  box-shadow: inset 0 0 0 1px var(--blue);
}

@media (min-width: 1680px) {
  .hero h1 > span { white-space: nowrap; }
}
@media (min-width: 1100px) {
  .expertise h2 > span { white-space: nowrap; }
}
.comparison-tablet-break { display: none; }
@media (600px <= width < 1100px) {
  .comparison-tablet-break { display: initial; }
  .comparison .comparison-title { width: 710px; }
}

.hero-grid-column, .hero-grid-row, [class^="hero-grid-"] { pointer-events: none; }
.public-activity-text-7, .public-activity-text-8 { z-index: 3; pointer-events: none; }

.public-activity [data-gallery-photo]:not([data-gallery-photo="1"]) { border-width: 1.5px; }
.public-activity [data-gallery-index][aria-pressed="false"] {
  width: 8px;
  background: rgb(57 75 219 / .3);
}
.public-activity [data-gallery-index][aria-pressed="true"] {
  width: 20px;
  background: var(--blue);
}
@media (600px <= width < 1100px) {
  .public-activity [data-gallery-index][aria-pressed="true"] { width: 24px; }
}

.hero:has(.header-scrolled) { z-index: 5; }
.hero .header-scrolled {
  position: fixed;
  background-color: rgb(42 42 42 / .96);
  backdrop-filter: blur(14px);
}

/* Draw the shadow behind the translucent fill as Figma does for glass layers. */
.glass-shadow { isolation: isolate; }
.glass-shadow::before {
  position: absolute;
  inset: -1px;
  content: "";
  border-radius: inherit;
  background: rgb(0 0 0 / .16);
  filter: blur(var(--glass-shadow-blur, 17px));
  translate: 0 16px;
  pointer-events: none;
  z-index: -1;
}
@media (width < 600px) {
  .glass-shadow { --glass-shadow-blur: 8.5px; }
}
