:root {
  color-scheme: light;
  --petrol: #092f30;
  --ink: #1c322f;
  --paper: #f5f3e8;
  --mist: #dce9dc;
  --yellow: #f3db73;
  --light-text: #dbe6dc;
  --paper-on-dark: #fbfaf0;
  --muted: #465c53;
  --max-shell: 84rem;
  --gutter: clamp(1.25rem, 5vw, 4.75rem);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.55;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body, h1, h2, h3, p, ol, figure {
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}

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

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

.skip-link {
  position: fixed;
  z-index: 5;
  inset: 0 auto auto 1rem;
  padding: 0.75rem 1rem;
  background: var(--yellow);
  color: var(--petrol);
  transform: translateY(-130%);
}

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

.site-header,
.intro,
.site-footer {
  background: var(--petrol);
  color: var(--paper-on-dark);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 5.75rem;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid #f5f3e836;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.65rem;
  color: var(--paper-on-dark);
  font-size: 1.8rem;
  font-weight: 750;
  letter-spacing: -0.09em;
  line-height: 1;
  text-decoration: none;
}

.brand-sub {
  padding-left: 0.13em;
  font-weight: 450;
  letter-spacing: -0.075em;
}

.brand-mark {
  position: relative;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.52rem 0.95rem 0.52rem 0.52rem;
  background: var(--yellow);
}

.brand-mark span {
  position: absolute;
  inset: 0.7rem 0.66rem 0.72rem;
  border-left: 2px solid var(--petrol);
  border-bottom: 2px solid var(--petrol);
  border-bottom-left-radius: 0.46rem;
}

.brand-mark span::before,
.brand-mark span::after {
  position: absolute;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: var(--petrol);
  content: "";
}

.brand-mark span::before {
  top: -0.12rem;
  left: -0.245rem;
}

.brand-mark span::after {
  right: -0.1rem;
  bottom: -0.245rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem clamp(1.2rem, 3vw, 2.7rem);
}

.site-nav a,
.header-phone {
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.header-phone:hover,
.site-footer a:hover {
  color: var(--yellow);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.6rem;
  padding: 0.52rem 0;
  white-space: nowrap;
}

.header-phone::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border: 2px solid var(--yellow);
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-20deg);
}

.header-phone-short {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2.1rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.hero-content {
  padding-block: 1.25rem;
}

h1, h2, h3 {
  font-weight: 710;
  line-height: 1.08;
}

h1 {
  font-size: clamp(3rem, 5.45vw, 5.4rem);
  line-height: 0.99;
  letter-spacing: -0.08em;
}

.hero-content p {
  max-width: 32rem;
  margin-top: 1.55rem;
  color: var(--light-text);
  font-size: clamp(1.03rem, 1.32vw, 1.19rem);
  line-height: 1.6;
}

.hero-figure,
.service-figure {
  position: relative;
  overflow: hidden;
}

.hero-figure {
  aspect-ratio: 1.36;
  border-radius: 0.5rem 4.25rem 0.5rem 0.5rem;
  background: #2e524f;
}

.hero-figure img,
.service-figure img {
  height: 100%;
  object-fit: cover;
}

.hero-figure img {
  object-position: 55% center;
}

.hero-figure figcaption,
.service-figure figcaption {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  padding: 0.26rem 0.56rem;
  border-radius: 0.25rem;
  background: var(--petrol);
  color: var(--paper-on-dark);
  font-size: 0.78rem;
  line-height: 1.4;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  min-height: 3.38rem;
  align-items: center;
  justify-content: center;
  padding: 0.71rem 1.32rem;
  border: 1px solid transparent;
  border-radius: 0.36rem;
  font-weight: 720;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.button-primary {
  background: var(--yellow);
  color: var(--petrol);
}

.button-primary:hover {
  background: #ffe991;
}

.button-primary:focus-visible {
  outline-color: var(--yellow);
}

.button-outline {
  border-color: #f5f3e871;
  color: var(--paper-on-dark);
}

.button-outline:hover {
  border-color: var(--paper-on-dark);
  background: #f5f3e81c;
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2.3rem, 8.2vw, 8rem);
  padding-block: clamp(3.6rem, 9vw, 8rem);
}

.service-figure {
  aspect-ratio: 1.26;
  border-radius: 0.4rem 0.4rem 0.4rem 3.5rem;
  background: #b6c7b0;
}

h2 {
  font-size: clamp(2.45rem, 4.05vw, 4.25rem);
  letter-spacing: -0.067em;
}

.service-content p,
.planning-header p,
.contact-content p {
  max-width: 34rem;
  margin-top: 1.05rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.14vw, 1.13rem);
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin-top: 0.85rem;
  font-weight: 680;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

.planning {
  background: var(--mist);
}

.planning-inner {
  padding-block: clamp(3.7rem, 7vw, 7rem);
}

.planning-header h2 {
  max-width: 42rem;
}

.route {
  --route-gap: clamp(2rem, 6vw, 6rem);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--route-gap);
  margin-top: clamp(2rem, 5vw, 3.8rem);
  padding: 0;
  list-style: none;
}

.route::before {
  position: absolute;
  top: 1.48rem;
  right: calc((100% - 2 * var(--route-gap)) / 3 - 1.5rem);
  left: 1.5rem;
  border-top: 1px dashed #4e685b;
  content: "";
}

.route li {
  position: relative;
}

.stop {
  position: relative;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-bottom: 1.1rem;
  border: 1px solid var(--petrol);
  border-radius: 50%;
  background: var(--mist);
  color: var(--petrol);
  font-size: 0.86rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.route h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.6rem);
  letter-spacing: -0.037em;
}

.route p {
  max-width: 22rem;
  margin-top: 0.55rem;
  color: var(--muted);
}

.contact {
  background: var(--yellow);
  color: var(--petrol);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(15rem, 0.9fr);
  align-items: center;
  gap: 2.2rem clamp(2rem, 7vw, 7rem);
  padding-block: clamp(3.5rem, 7vw, 6.25rem);
}

.contact-content h2 {
  max-width: 38rem;
}

.contact-content p {
  color: #29443c;
}

.contact-actions {
  display: grid;
  grid-template-columns: max-content;
  justify-content: end;
  gap: 0.65rem;
}

.button-dark {
  background: var(--petrol);
  color: var(--paper-on-dark);
}

.button-dark:hover {
  background: #164643;
}

.button-dark:focus-visible {
  outline-color: var(--petrol);
}

.button-dark-outline {
  border-color: var(--petrol);
}

.button-dark-outline:hover {
  background: #092f3016;
}

.contact-email {
  justify-self: center;
  min-height: 2.75rem;
  padding: 0.55rem 0;
  overflow-wrap: anywhere;
  text-underline-offset: 0.25em;
  font-size: 0.92rem;
  font-weight: 640;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 6.3rem;
  align-items: center;
  gap: 1rem 2rem;
}

.footer-inner .brand {
  font-size: 1.35rem;
}

.footer-inner .brand-mark {
  transform: scale(0.76);
  transform-origin: left center;
  margin-right: -0.35rem;
}

.footer-inner p,
.footer-inner > a:last-child {
  color: var(--light-text);
  font-size: 0.91rem;
}

.footer-inner > a:last-child {
  justify-self: end;
  text-underline-offset: 0.22em;
}

@media (max-width: 64rem) {
  h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
  }

  .hero-break {
    display: none;
  }
}

@media (max-width: 49rem) {
  .header-inner {
    grid-template-columns: 1fr 1fr;
    min-height: 4.9rem;
    gap: 0.65rem 1.25rem;
  }

  .site-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    padding-bottom: 0.25rem;
  }

  .site-nav a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    font-size: 0.88rem;
  }

  .header-phone {
    min-height: 2.75rem;
  }

  .hero,
  .service,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 1.75rem;
    padding-block: 2.2rem 2.75rem;
  }

  .hero-content {
    padding-block: 0;
  }

  h1 {
    max-width: 35rem;
    font-size: clamp(2.8rem, 9.3vw, 4.5rem);
  }

  .hero-content p {
    margin-top: 1.2rem;
  }

  .actions {
    margin-top: 1.35rem;
  }

  .hero-figure {
    aspect-ratio: 1.5;
    border-top-right-radius: 2.7rem;
  }

  .service {
    gap: 1.75rem;
  }

  .service-figure {
    grid-row: 2;
    border-bottom-left-radius: 2.5rem;
  }

  .contact-actions {
    justify-content: start;
  }
}

@media (max-width: 37rem) {
  .route {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .route::before {
    display: none;
  }

  .route li {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
  }

  .route li:not(:last-child)::before {
    position: absolute;
    top: 3rem;
    bottom: -1.6rem;
    left: 1.48rem;
    border-left: 1px dashed #4e685b;
    content: "";
  }

  .route li > div {
    padding-top: 0.35rem;
  }

  .route .stop {
    margin-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding-block: 1.1rem;
  }

  .footer-inner .brand {
    grid-column: 1;
  }

  .footer-inner p {
    grid-row: 2;
  }

  .footer-inner > a:last-child {
    grid-row: 2;
  }
}

@media (max-width: 28rem) {
  .header-phone-full {
    display: none;
  }

  .header-phone-short {
    display: inline;
  }
}

@media (max-width: 24rem) {
  .header-inner {
    column-gap: 0.55rem;
  }

  .header-inner .brand {
    gap: 0.45rem;
    font-size: 1.45rem;
  }

  .header-inner .brand-mark {
    flex-basis: 2.15rem;
    width: 2.15rem;
    height: 2.15rem;
  }

  .header-inner .brand-mark span {
    inset: 0.58rem 0.55rem 0.62rem;
  }

  .header-phone {
    gap: 0.38rem;
    font-size: 0.86rem;
  }

  .button {
    padding-inline: 0.95rem;
  }
}

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

  .button {
    transition: none;
  }
}
