#first-page-container {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 40rem;
}

#hero {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  gap: 2rem;

  background-image: url('/assets/images/Golf-Course---hole-3.jpg');
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
}

#hero__top {
  display: grid;
  margin: 0 auto 0;
  width: min(100%, 38rem);
  font-family: var(--prif);
  color: #FFF;
  text-align: center;
}

#hero__title {
  font-size: 4rem;
  line-height: 120%;
}

#hero__tagline {
  font-style: italic;
  font-size: 1.75rem;
  font-weight: bolder;
  line-height: 120%;
  margin-top: 0.5rem;
}

#hero__bottom {
  display: flex;
  gap: 2rem;
  flex-flow: row wrap;
  list-style-type: none;
  justify-content: center;
}

.hero__bottom__link {
  padding: .5rem 1rem;
  background-color: rgb(var(--sec));
  color: #fff;
  transition: opacity .2s;
}

.hero__bottom__link:hover,
.hero__bottom__link:focus {
  opacity: .8;
}

#breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1rem;
  gap: 1rem;
}

.breakdown__item {
  display: flex;
  padding: 4rem 2rem;
  flex-grow: 1;
  background-position: center;
  background-size: cover;
  height: 100%;
}

.breakdown__item:hover .breakdown__inner,
.breakdown__item:focus .breakdown__inner {
  transform: scale(0.95);
}

.breakdown__inner {
  margin: auto;
  background-color: #0008;
  color: #fff;
  padding: 1rem;
  transition: transform .2s;
}

.breakdown__title {
  font-family: var(--prif);
  text-transform: uppercase;
  font-size: 1.25rem;
  text-align: center;
}

.breakdown__text {
  font-size: 1rem;
  text-align: center;
  font-style: italic;
  font-weight: 200;
}

#golf {
  margin-top: 1rem;
}

#golf__intro {
  font-family: var(--prif);
  font-style: italic;
  font-size: 2rem;
  line-height: 120%;
  text-align: center;
  margin: 4rem 0;
}

#golf__highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0 0 4rem;
}

.golf__highlight {
  display: grid;
  text-align: center;
  background-size: cover;
  background-position: center;
  border: 1px solid #000;
  padding: 2rem;
}

.golf__highlight__text {
  font-size: 1.5rem;
}

.golf__highlight__title {
  position: relative;
  text-transform: uppercase;
  font-weight: bolder;
  margin-top: 0.5rem;
  margin: 0 auto;
}

.golf__highlight__title::before {
  content: '';
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: .125rem;
  background-color: currentColor;
  transition: transform .1s ease-out;
}

.golf__highlight:hover .golf__highlight__title::before {
  transform: translateX(-50%) scaleX(1);
}

#golf p {
  text-align: center;
}

#golf p+p {
  margin-top: .5rem;
}

#online-tour {
  display: block;
  padding: .5rem;
  width: 100%;
  margin: 2rem 0;
  text-align: center;
  background-color: rgb(var(--sec));
  color: #fff;
  transition: opacity .5s;
}

#online-tour:hover,
#online-tour:focus {
  opacity: .75;
}

#clubhouse {
  margin-top: 2rem;
}

#clubhouse__title {
  font-family: var(--prif);
  text-transform: uppercase;
  font-size: 2rem;
  text-align: center;
  font-weight: 200;
  line-height: 100%;
  margin-bottom: .5rem;
}

#clubhouse p {
  text-align: center;
}

#clubhouse p+p {
  margin-top: 0.5rem;
}

#clubhouse__images {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin-top: 1rem;
}

.clubhouse__image {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  object-position: center;
}

.scroller {
  margin-top: 2rem;
}

.scroller__title {
  font-family: var(--prif);
  text-transform: uppercase;
  font-size: 2rem;
  text-align: center;
  font-weight: 200;
  line-height: 100%;
  margin-bottom: .5rem;
}

.scroller p {
  text-align: center;
}

.scroller p+p {
  margin-top: 0.5rem;
}

.carousel {
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

.carousel__inner {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  margin-top: 1rem;
}

.carousel__item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  flex: 1 0 300px;
  max-width: 500px;
  color: #fff;
  background-color: rgb(var(--sec));
  padding-top: 1rem;
}

.carousel__item__title {
  font-family: var(--prif);
  text-align: center;
  font-size: 2rem;
  font-weight: 200;
  line-height: 130%;
  padding: 0 1rem;
}

.carousel__item__tag {
  opacity: .75;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.carousel__item__image {
  display: block;
  height: 100%;
  width: 100%;
  margin: .5rem auto;
  object-fit: contain;
}

.carousel__item__link {
  display: block;
  padding: .5rem;
  text-align: center;
  background-color: rgb(var(--pri));
  color: #fff;
  transition: opacity .2s;
}

.carousel__item__link:hover,
.carousel__item__link:focus {
  opacity: .75;
}

#food {
  margin-top: 2rem;
}

#food__title {
  font-family: var(--prif);
  text-transform: uppercase;
  font-size: 2rem;
  text-align: center;
  font-weight: 200;
  line-height: 100%;
  margin-bottom: .5rem;
}

#food p {
  text-align: center;
}

#food p+p {
  margin-top: 0.5rem;
}

#food__types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.food__type {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  width: 100%;
  background-color: rgb(var(--sec));
  color: #fff;
}

.food__type__title {
  font-family: var(--prif);
  text-align: center;
  font-size: 2rem;
  margin-top: 0.5rem;
  font-weight: 200;
  padding: 0 0.5rem;
}

.food__type__tag {
  opacity: .75;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
}

.food__type__image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 20rem;
  object-fit: cover;
}

.food__type__link {
  display: block;
  padding: .5rem;
  text-align: center;
  background-color: rgb(var(--pri));
  color: #fff;
  transition: opacity .2s;
}

.food__type__link:hover,
.food__type__link:focus {
  opacity: .75;
}

#contact {
  margin-top: 2rem;
  background-color: rgb(197, 212, 192);
}

#contact__container {
  display: grid;
  grid-template-columns: 1fr 30%;
  gap: 2rem;
  padding: 2rem;
}

#contact__text {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  margin: auto;
  gap: 2rem;
  text-align: center;
}

#contact__title {
  font-family: var(--prif);
  font-weight: 200;
  font-size: 6rem;
  text-transform: uppercase;
  line-height: 50%;
  margin: .2em 0 0;
  color: rgb(var(--pri));
  text-shadow:
    -.03em -.03em 0 rgb(197, 212, 192),
    .03em -.03em 0 rgb(197, 212, 192),
    -.03em .03em 0 rgb(197, 212, 192),
    .03em .03em 0 rgb(197, 212, 192);
}

#contact__description {
  font-size: 1.25em;
}

#contact__links {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  flex-grow: 1;
  gap: 1rem;
  width: min(100%, 260px);
}

.contact__link {
  transition: opacity .1s;
}

.contact__link:hover,
.contact__link:focus {
  opacity: .5;
}

.contact__link__image {
  height: 2.5rem;
}

#contact__form-link {
  font-family: var(--prif);
  font-size: 1.25rem;
  width: min(100%, 280px);
  line-height: 100%;
}

#contact__form-link a {
  text-decoration: underline;
  font-weight: 600;
  transition: opacity .2s;
}

#contact__form-link a:hover,
#contact__form-link a:focus {
  opacity: .75;
}

#contact__graphic {
  display: grid;
  width: 100%;
}

#contact__graphic__phone {
  width: 100%;
  margin: auto;
}

footer {
  margin-top: 2rem;
}

@media (max-width: 1200px) {
  #breakdown {
    grid-template-columns: 1fr;
  }

  .breakdown__item {
    padding: 2rem;
  }

  .breakdown__inner {
    width: 100%;
  }
}

@media (max-width: 1000px) {
  #golf__highlights {
    grid-template-columns: 1fr;
  }

  .golf__highlight {
    padding: 1rem;
  }

  #carousel__items {
    grid-template-columns: 1fr;
  }

  .carousel__item__image {
    height: 20rem;
    animation: none;
    object-fit: contain;
  }

  .carousel__item__image:hover,
  .carousel__item:focus-within .carousel__item__image {
    animation: none;
  }
}

@media (max-width: 720px) {
  #food__types {
    grid-template-columns: 1fr;
  }

  #contact__container {
    grid-template-columns: 1fr;
  }

  #contact__graphic__phone {
    width: min(100%, 300px);
  }
}

@media (max-width: 420px) {
  #clubhouse__images {
    grid-auto-flow: row;
  }

  #contact__title {
    font-size: 4rem;
  }
}