.site-header {
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand book" "nav nav";
  align-items: center;
  column-gap: 12px;
  padding-top: 7px;
}

.site-header .brand {
  grid-area: brand;
}

.brand {
  display: flex;
  min-height: 44px;
  width: fit-content;
  align-items: center;
}

.brand img {
  width: 116px;
  height: auto;
}

.header-cta {
  grid-area: book;
  justify-self: end;
  min-height: 44px;
  padding-inline: 12px;
}

.header-cta .icon {
  width: 17px;
  height: 17px;
}

.site-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 22px;
}

.site-nav a,
.footer-social {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  font-size: 0.91rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.footer-social:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero {
  display: grid;
  gap: 24px;
  padding-block: 36px 34px;
}

.hero h1 {
  margin-block: 14px 16px;
  font-size: 2.55rem;
  font-size: clamp(2.55rem, 8.2vw, 4.8rem);
  letter-spacing: -0.058em;
}

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

.hero-intro {
  max-width: 34ch;
  color: var(--color-muted);
  font-size: clamp(1rem, 2vw, 1.17rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin-top: 22px;
}

.hero-visual {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 250px;
  aspect-ratio: 1.1;
  place-items: end center;
  isolation: isolate;
  border-radius: var(--radius-large) var(--radius-large) var(--radius) var(--radius);
  background: linear-gradient(145deg, var(--color-hero-top), var(--color-hero-bottom));
}

.hero-visual::before {
  position: absolute;
  z-index: -1;
  inset: 8% 17% -20%;
  border: 1px solid var(--color-arch);
  border-radius: 50% 50% 0 0;
  box-shadow: 0 0 0 12px rgb(255 255 255 / 13%);
  content: "";
}

.hero-visual img {
  position: absolute;
  bottom: -24%;
  width: min(87%, 445px);
  height: auto;
}

.services {
  background: var(--color-surface);
  border-block: 1px solid var(--color-line);
}

.service-grid {
  display: grid;
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-card);
}

.service-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.52;
  object-fit: cover;
}

.service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 18px 12px;
}

.service-body p {
  flex: 1;
  margin-top: 10px;
  color: var(--color-muted);
}

.service-body .button {
  margin-top: 10px;
  color: var(--color-accent);
}

.service-body .icon {
  width: 17px;
  height: 17px;
}

.about-grid {
  display: grid;
  gap: 24px;
}

.about-image {
  grid-row: 2;
  width: 100%;
  height: auto;
  max-height: 380px;
  aspect-ratio: 1.22;
  border-radius: var(--radius-large);
  object-fit: cover;
  object-position: 50% 38%;
}

.about-copy h2 {
  max-width: 17ch;
  margin-top: 8px;
}

.about-copy .button {
  margin-top: 22px;
}

.about-copy .button .icon:last-child {
  width: 16px;
  height: 16px;
}

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

.visit {
  display: grid;
  gap: 28px;
  padding: 25px 20px;
  border-radius: var(--radius-large);
  background: var(--color-primary);
  color: var(--color-card);
}

.visit-intro p {
  max-width: 36ch;
  margin-top: 12px;
  color: var(--color-inverse-muted);
}

.visit-intro .button {
  margin-top: 20px;
}

.visit-details {
  display: grid;
}

.detail {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--color-inverse-line);
}

.detail:last-child {
  padding-bottom: 0;
}

.detail > .icon {
  margin-top: 2px;
  color: var(--color-sand);
}

.detail h3 {
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.detail p,
.detail address,
.phone-links a {
  color: var(--color-inverse-muted);
  font-size: 0.95rem;
  font-style: normal;
}

.detail .button {
  color: var(--color-sand);
}

.phone-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
}

.phone-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-underline-offset: 3px;
}

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.footer-inner .brand img {
  width: 104px;
}

.privacy {
  color: var(--color-muted);
  font-size: 0.88rem;
}

.privacy summary {
  width: fit-content;
  min-height: 44px;
  padding-block: 10px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy p {
  max-width: 72ch;
  padding-bottom: 12px;
}

.error-page h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 700px) {
  .header-inner {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "brand nav book";
    padding-block: 4px;
  }

  .brand img {
    width: 132px;
  }

  .site-nav {
    gap: 20px;
  }

  .hero {
    grid-template-columns: 1fr 0.96fr;
    align-items: center;
    gap: 24px;
    padding-block: 32px 42px;
  }

  .hero h1 {
    font-size: 3.2rem;
    font-size: clamp(2.55rem, 5.65vw, 5rem);
  }

  .hero-visual {
    aspect-ratio: 1.02;
  }

  .hero-visual img {
    bottom: -22%;
  }

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

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .about-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: clamp(32px, 6vw, 94px);
  }

  .about-image {
    grid-row: auto;
  }

  .visit {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
    gap: 40px;
    padding: 40px 34px;
  }

  .detail:first-child {
    padding-top: 2px;
    border-top: 0;
  }
}

@media (min-width: 1000px) {
  body {
    font-size: 1.0625rem;
  }

  .site-nav {
    gap: 34px;
  }

  .header-cta {
    padding-inline: 17px;
  }

  .hero {
    gap: 42px;
    padding-block: 36px 48px;
  }

  .hero-visual {
    max-height: 535px;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .service-grid {
    gap: 22px;
  }

  .service-body {
    padding: 24px 24px 14px;
  }

  .about-image {
    max-height: 440px;
  }

  .visit {
    padding: 54px 60px;
  }
}
