/*=================================================
  HOMEPAGE-SPECIFIC LAYOUT
=================================================*/

.hero-section {
  min-height: clamp(140px, 18vh, 220px);
  height: clamp(140px, 18vh, 220px);
}

@media (min-width: 768px) {
  .hero-section {
    min-height: clamp(160px, 22vh, 250px);
    height: clamp(160px, 22vh, 250px);
  }
}

@media (min-width: 1200px) {
  .hero-section {
    min-height: clamp(180px, 25vh, 280px);
    height: clamp(180px, 25vh, 280px);
  }
}

.hero-section .hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: var(--space-md);
}

@media (min-width: 768px) {
  .hero-section .hero-content {
    padding: var(--space-lg);
  }
}

.hero-section .hero-title {
  margin-bottom: 0.5rem;
  font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.6rem);
}

@media (min-width: 768px) {
  .hero-section .hero-title {
    margin-bottom: 0.625rem;
    font-size: clamp(2.2rem, 1.8rem + 2vw, 3rem);
  }
}

.hero-section .hero-subtitle {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--color-slate);
  text-align: center;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.125rem);
}

@media (min-width: 768px) {
  .hero-section .hero-subtitle {
    font-size: var(--font-size-base);
  }
}

.progressive-image {
  position: relative;
  display: block;
}

.progressive-image img {
  width: 100%;
  display: block;
  border-radius: inherit;
}

.progressive-image .hero-image-placeholder {
  position: absolute;
  inset: 0;
  filter: blur(12px);
  opacity: 0;
}

#highlights .card {
  height: 100%;
}

#highlights .card i {
  color: var(--color-sage);
}

#highlights .card-footer {
  border-top: none;
  padding-top: 0;
}

/*=================================================
  PHOTO GALLERY
=================================================*/

.gallery-item {
  position: relative;
  border: var(--border-width) solid var(--color-silver);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: var(--color-white);
}

.gallery-image {
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(247, 248, 248, 0) 0%, rgba(247, 248, 248, 0.92) 100%);
  color: var(--color-charcoal);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-within .gallery-overlay {
  opacity: 1;
}

.gallery-content h3 {
  font-family: var(--font-family-heading);
  font-weight: var(--weight-regular);
  margin-bottom: 0.35rem;
}

.gallery-content p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-slate);
}

.carousel-indicators [data-bs-target] {
  background-color: var(--color-sage);
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  border: var(--border-width) solid var(--color-sage);
  opacity: 1;
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:focus-visible,
.carousel-control-next:focus-visible {
  background: var(--tint-sage-08);
  border-color: var(--color-sage);
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 1.25rem;
  height: 1.25rem;
  filter: brightness(0) saturate(100%) invert(67%) sepia(11%) saturate(707%) hue-rotate(76deg) brightness(91%) contrast(86%);
}

@media (max-width: 768px) {
  .carousel-control-prev,
  .carousel-control-next {
    width: 38px;
    height: 38px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 1.125rem;
    height: 1.125rem;
  }
}

/*=================================================
  CONNECT SECTION
=================================================*/

#contact-cta {
  padding: 0;
  background: transparent;
}

#contact-cta h2 {
  margin-bottom: 0.625rem;
}

#contact-cta p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.social-links .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: var(--border-width) solid var(--color-silver);
  color: var(--color-charcoal);
  transition: border-color var(--transition-base), color var(--transition-base), background-color var(--transition-base);
}

.social-links .social-link:hover,
.social-links .social-link:focus-visible {
  color: var(--color-sage);
  border-color: var(--color-sage);
  background: var(--tint-sage-08);
}
