@font-face {
  font-family: "Moon Flower Bold";
  src: url("fonts/MoonFlowerBold.ttf") format("truetype");
  font-display: swap;
}

:root {
  --mint: #a5d7b9;
  --green: #004531;
  --grey: #bcbec0;
  --text: #333;
  --muted: #666;
  --card: #fafafa;
  --border: #e2e2e2;
  --nav-h: 3.5rem;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Moon Flower Bold", "Futura", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

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

a {
  color: var(--green);
}

a:hover,
a:focus-visible {
  color: #2c8a63;
}

svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
}

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

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--mint);
}

.nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  min-height: var(--nav-h);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green);
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  display: block;
  padding: 0.5rem 0;
  color: var(--green);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  font-weight: 600;
  color: var(--green);
}

.nav__toggle {
  display: none;
  padding: 0.5rem;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav__bars,
.nav__bars::before,
.nav__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green);
  transition: transform 0.2s;
}

.nav__bars {
  position: relative;
}

.nav__bars::before,
.nav__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__bars::before {
  top: -7px;
}

.nav__bars::after {
  top: 7px;
}

.nav__toggle[aria-expanded="true"] .nav__bars {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .js .nav__toggle {
    display: block;
  }

  .nav__links {
    flex-basis: 100%;
    flex-direction: column;
    padding-bottom: 0.75rem;
  }

  .js .nav__links:not(.is-open) {
    display: none;
  }
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  min-height: min(800px, calc(100svh - var(--nav-h)));
  padding: 3rem 1rem;
  background: url("images/cactus.jpeg") center / cover no-repeat;
}

.hero__logo {
  margin: 0;
  line-height: 0;
}

.hero__logo img {
  width: clamp(90px, 15vw, 149px);
}

/* Parallax on devices that support it well (fixed backgrounds are broken on iOS) */
@media (min-width: 768px) and (hover: hover) {
  .hero,
  .divider {
    background-attachment: fixed;
  }
}

.divider {
  height: 150px;
  background: url("images/tiles.jpg") center / cover no-repeat;
}

/* Social icons */

.social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social__link {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--green);
  background: #fff;
  transition: background-color 0.2s;
}

.social__link:hover,
.social__link:focus-visible {
  color: var(--green);
  background: var(--grey);
}

/* Sections */

.section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

.section--narrow {
  max-width: 900px;
}

.section__title {
  margin: 1rem 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: normal;
  line-height: 1.1;
  text-align: center;
  color: #222;
}

.section__lead {
  margin: 0 0 1.5rem;
  text-align: center;
}

.to-top {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  font-size: 0.875rem;
  text-decoration: none;
}

.to-top svg {
  margin-left: 0.25em;
}

.prose {
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;
  hyphens: auto;
}

/* Services */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem 3rem;
}

.service {
  text-align: center;
}

.service__icon {
  display: block;
  width: auto;
  height: 80px;
  margin: 0 auto 0.75rem;
}

.service__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: normal;
  color: #222;
}

.service p {
  margin: 0;
}

.service__toggle {
  margin-top: 0.5rem;
  padding: 0.25rem;
  border: 0;
  background: none;
  font: inherit;
  color: var(--green);
  text-decoration: underline;
  cursor: pointer;
}

.service__toggle:hover,
.service__toggle:focus-visible {
  color: #2c8a63;
}

html:not(.js) .service__dots,
html:not(.js) .service__toggle,
.service.is-open .service__dots,
.js .service:not(.is-open) .service__more {
  display: none;
}

/* About */

.about__photo {
  display: block;
  width: 250px;
  margin: 0 auto 2rem;
  border-radius: 50px;
}

/* Instagram */

.instagram iframe {
  display: block;
  width: 100%;
  border: 0;
  overflow: hidden;
}

.instagram--large {
  display: none;
}

@media (min-width: 992px) {
  .instagram--large {
    display: block;
  }

  .instagram--small {
    display: none;
  }
}

/* Reviews */

.reviews {
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .reviews {
    columns: 2;
    column-gap: 1.5rem;
  }
}

.review {
  break-inside: avoid;
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.review blockquote {
  margin: 0;
  color: var(--muted);
}

.review blockquote p {
  margin: 0 0 0.75em;
}

.review figcaption {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  color: #222;
}

.review figcaption::before {
  content: "— ";
}

.review-form {
  max-width: 900px;
  margin: 1rem auto 0;
}

.review-form summary {
  text-align: center;
  cursor: pointer;
  list-style: none;
}

.review-form summary::-webkit-details-marker {
  display: none;
}

.review-form summary span {
  color: var(--green);
  text-decoration: underline;
}

.review-form__embed {
  margin-top: 1rem;
}

/* Contact */

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 4rem;
  margin-bottom: 2rem;
}

.contact__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.contact__item svg {
  font-size: 2.5rem;
}

/* Footer */

.footer {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--grey);
  background: var(--green);
}

.footer p {
  margin: 1rem 0 0;
}

.footer a:not(.social__link) {
  color: var(--grey);
}
