:root {
  color-scheme: light;
  --ink: #14213e;
  --muted: #475674;
  --accent: #294ccf;
  --accent-hover: #2040b6;
  --line: #dce4f1;
  --wash: #f2f5fc;
  --gutter: clamp(1rem, 4.6vw, 4rem);
  --header-offset: 5.5rem;
  --ease: cubic-bezier(.2, .75, .3, 1);
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-block-start: var(--header-offset); }
body, h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.wrap {
  width: min(100% - 2 * var(--gutter), 76rem);
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 20;
  inset: .75rem auto auto .75rem;
  padding: .75rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  transform: translateY(calc(-100% - 1rem));
}

.skip:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 10;
  inset-block-start: 0;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 4.6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .85rem;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  padding-block: .2rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  padding: .25rem;
  border-radius: .8rem;
  background: var(--accent);
  color: #fff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
}

.brand-name {
  font-size: .95rem;
  line-height: 1.08;
  font-weight: 825;
  letter-spacing: -.02em;
}

.brand-name span {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-size: .77rem;
  font-weight: 650;
  letter-spacing: 0;
}

.site-nav {
  --active-index: 0;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: .25rem;
  border: 1px solid #e2e8f3;
  border-radius: .95rem;
  background: var(--wash);
}

.site-nav[data-active]::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: .25rem auto .25rem .25rem;
  width: calc((100% - .5rem) / 4);
  border-radius: .72rem;
  background: #fff;
  box-shadow: 0 1px 4px rgb(25 49 99 / 13%);
  transform: translateX(calc(var(--active-index) * 100%));
  transition: transform 260ms var(--ease);
}

.site-nav a {
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  padding-inline: .85rem;
  border-radius: .7rem;
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current] { color: var(--accent); font-weight: 775; }
.site-nav a:focus-visible { outline-offset: -1px; }

.header-actions {
  display: flex;
  justify-self: end;
  gap: .45rem;
}

.header-phone, .button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem .9rem;
  border: 1px solid transparent;
  border-radius: .75rem;
  font-size: .9375rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms var(--ease);
}

.header-phone, .button-primary {
  color: #fff;
  background: var(--accent);
}

.header-phone { white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone:hover, .button-primary:hover { background: var(--accent-hover); }
.header-phone-short, .menu-toggle { display: none; }

.menu-toggle {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  top: calc(50% - 1px);
  left: calc(50% - .53rem);
  width: 1.06rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 220ms var(--ease);
}

.menu-toggle span:first-child { transform: translateY(-3px); }
.menu-toggle span:last-child { transform: translateY(3px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.hero { padding-top: clamp(1rem, 3.5vw, 2.8rem); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1.5rem, 4.5vw, 4.25rem);
  padding: clamp(2rem, 5vw, 5rem);
  border: 1px solid #e0e8f9;
  border-radius: clamp(1.15rem, 3vw, 2rem);
  background: radial-gradient(ellipse at 82% 48%, #dae5ff, transparent 48%), #f1f5ff;
}

.hero h1 {
  font-size: clamp(2.85rem, 6.45vw, 6.1rem);
  line-height: .99;
  font-weight: 850;
  letter-spacing: -.075em;
}

.hero h1 span { display: block; color: var(--accent); }

.hero-intro {
  max-width: 29rem;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.55rem;
}

.button {
  min-height: 3rem;
  padding-inline: 1rem;
}

.button-secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button-secondary:hover { color: var(--accent); border-color: #9eafe7; }

.hero-visual { position: relative; isolation: isolate; min-width: 0; }

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.2rem -1rem;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at center, transparent 0 1.5rem, rgb(77 113 206 / 19%) 1.53rem 1.57rem);
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 71%);
  pointer-events: none;
}

.visit-card {
  max-width: 23rem;
  margin-inline: auto;
  padding: .55rem;
  border: 1px solid #d8e2f6;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 1.25rem 2.5rem -1.5rem rgb(37 70 146 / 42%);
}

.visit-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: .9rem;
  background: #dce6f7;
}

.visit-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 .65rem;
  min-height: 3rem;
  padding-inline: .4rem;
  font-size: .94rem;
}

.visit-card a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--accent);
  font-weight: 700;
  text-underline-offset: .2em;
}

.services, .gallery, .contact {
  padding-block: clamp(3rem, 6.6vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 4.1vw, 3.5rem);
  font-weight: 820;
  line-height: 1.02;
  letter-spacing: -.058em;
  text-wrap: balance;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-top: clamp(1.25rem, 3.5vw, 2.3rem);
}

.service-list article {
  padding: clamp(1.1rem, 2.6vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 1.08rem;
  background: #fff;
}

.service-list article::before {
  content: "";
  display: block;
  width: 1.8rem;
  height: 3px;
  margin-bottom: 1rem;
  border-radius: 3px;
  background: var(--accent);
}

.service-list h3, .hours h3 {
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  font-weight: 775;
  line-height: 1.16;
  letter-spacing: -.03em;
}

.service-list p, .section-intro p, .contact-details p, .hours p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.service-list p { margin-top: .6rem; }

.gallery {
  background: var(--wash);
  border-block: 1px solid var(--line);
}

.section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: .65rem 2rem;
  margin-bottom: clamp(1.3rem, 3vw, 2rem);
}

.section-intro p { max-width: 19rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.gallery-photo {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  background: #fff;
  text-decoration: none;
  transition: border-color 180ms ease, transform 220ms var(--ease);
}

.gallery-photo img {
  width: 100%;
  height: clamp(7rem, 15vw, 12.5rem);
  object-fit: cover;
  background: #dce6f7;
}

.photo-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .3rem;
  min-height: 2.75rem;
  padding: .55rem .72rem;
  font-size: .9375rem;
  font-weight: 700;
}

.photo-label::after {
  content: "";
  width: .73rem;
  height: .73rem;
  flex: none;
  color: var(--accent);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
}

.gallery-photo:hover { border-color: #9eafe7; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr);
  gap: clamp(1.6rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(1.25rem, 4.5vw, 4rem);
  border-radius: clamp(1.15rem, 3vw, 2rem);
  background: #14234b;
  color: #fff;
}

.contact-details p {
  max-width: 30rem;
  margin-top: .85rem;
  color: #d5e0fb;
}

.contact-details :focus-visible { outline-color: #c5d4ff; }

.contact-phone {
  display: inline-block;
  margin-top: 1.1rem;
  color: #c5d4ff;
  font-size: clamp(1.8rem, 4vw, 3.45rem);
  font-weight: 820;
  letter-spacing: -.05em;
  text-decoration-thickness: .045em;
  text-underline-offset: .14em;
}

.contact-details address {
  margin-top: .8rem;
  color: #e4ebfc;
  font-style: normal;
}

.contact-details .button { margin-top: .85rem; }

.hours {
  padding: clamp(1rem, 3vw, 1.8rem);
  border-radius: 1.1rem;
  background: #fff;
  color: var(--ink);
}

.hours dl { margin: .65rem 0 .85rem; }

.hours dl div {
  display: flex;
  justify-content: space-between;
  gap: .3rem .65rem;
  padding-block: .7rem;
  border-bottom: 1px solid var(--line);
}

.hours dd {
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hours p { font-size: .9375rem; }

.contact-map {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: clamp(16rem, 34vw, 23rem);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--wash);
}

.contact-map:focus-visible { outline-color: #c5d4ff; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  min-height: 4.75rem;
  padding-block: .55rem;
  font-size: .9375rem;
}

.footer-inner a {
  display: grid;
  align-items: center;
  min-height: 2.75rem;
  text-underline-offset: .2em;
}

.photo-dialog {
  width: min(40rem, 100% - 2rem);
  max-height: calc(100% - 2rem);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: #fff;
  color: var(--ink);
}

.photo-dialog::backdrop { background: rgb(10 20 43 / 76%); }

.photo-dialog img {
  width: 100%;
  height: min(48vh, 25rem);
  margin-block: .75rem;
  border-radius: .65rem;
  object-fit: contain;
  background: #eaf0fa;
}

.dialog-header, .dialog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}

.dialog-header h2 { font-size: clamp(1.25rem, 4vw, 1.85rem); }

.photo-dialog button {
  min-height: 2.75rem;
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.photo-dialog button:hover { background: var(--wash); }

@media (max-width: 44rem) {
  :root { --header-offset: 4.65rem; }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .35rem .6rem;
    min-height: 4rem;
  }

  .site-nav { grid-column: 1 / -1; margin-bottom: .45rem; }
  .site-nav a { padding-inline: .35rem; }

  .header-actions { grid-column: 2; grid-row: 1; }
  .header-phone-number { display: none; }
  .header-phone-short { display: inline; }
  .menu-toggle:not([hidden]) { display: block; }

  [data-menu-ready] .site-nav {
    position: absolute;
    inset: calc(100% + .45rem) var(--gutter) auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: .15rem;
    padding: .38rem;
    background: #fff;
    box-shadow: 0 1rem 2rem -1rem rgb(29 57 119 / 32%);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-.4rem);
    transition: opacity 180ms ease, transform 220ms var(--ease), visibility 220ms;
  }

  [data-menu-ready] .site-nav[data-open] { visibility: visible; opacity: 1; transform: none; }
  [data-menu-ready] .site-nav::before { display: none; }
  [data-menu-ready] .site-nav a { justify-items: start; padding-inline: .8rem; }
  [data-menu-ready] .site-nav a[aria-current] { background: var(--wash); }

  .hero-inner, .service-list, .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: clamp(1.15rem, 5vw, 2.5rem); gap: 1.4rem; }
  .hero h1 { font-size: clamp(2.7rem, 9.8vw, 4.75rem); }
  .hero-intro { margin-top: .8rem; }
  .actions { margin-top: 1.1rem; }
  .hero-visual::before { display: none; }
  .visit-card { margin-inline: 0; }
  .section-intro { display: block; }
  .section-intro p { margin-top: .55rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-photo img { height: clamp(7rem, 28vw, 10rem); }
}

@keyframes enter {
  from { opacity: .35; transform: translateY(.65rem); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-content { animation: enter 420ms var(--ease) both; }
  .hero-visual { animation: enter 490ms var(--ease) 85ms both; }
  [data-revealed] { animation: enter 410ms var(--ease) both; }
  .photo-dialog[open] { animation: enter 210ms var(--ease) both; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .header-phone:hover, .button:hover, .gallery-photo:hover { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a, .site-nav[data-active]::before, .menu-toggle span,
  [data-menu-ready] .site-nav, .header-phone, .button, .gallery-photo { transition: none; }
}
