/* ========================================
   HOMEPAGE-SPECIFIC STYLES
   File: /css/homepage.css
   Uses global CSS variables from style.css
======================================== */

/* ========================================
   READ MORE TOGGLE
======================================== */
.read-more-content {
  display: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity var(--transition-medium), max-height 0.4s ease;
}

.read-more-content.is-visible {
  display: block;
  opacity: 1;
  max-height: 1000px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 0;
  margin-top: 10px;
  font-family: var(--font-family);
}

.read-more-btn:hover {
  color: var(--color-accent);
}

.read-more-btn .arrow {
  display: inline-block;
  transition: transform var(--transition-medium);
  font-size: 0.8em;
}

.read-more-btn.is-open .arrow {
  transform: rotate(180deg);
}

/* ========================================
   HOMEPAGE BACKGROUND VARIATIONS
======================================== */
.hp-bg-light-blue {
  background-color: #c9e4e7;
}

.hp-bg-light-gold {
  background-color: #fdf8f0;
}

.hp-bg-light-gray {
  background-color: #d6dce2;
}

.hp-services-honeycomb {
  position: relative;
  background-image: url('/img/honey.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hp-services-honeycomb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.75);
  z-index: 0;
}

.hp-services-honeycomb > * {
  position: relative;
  z-index: 1;
}

/* ========================================
   VIDEO HERO - CONTENT ALIGNMENT
   Override global styles to align with content-grid
======================================== */
.block-video-row__content {
  display: flex;
  align-items: center;
  max-width: none; /* Override global max-width: 600px */
  width: 100%;
}

.block-video-row__content .container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.block-video-row__content-inner {
  max-width: 550px;
}

.block-video-row__intro {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .block-video-row__content-inner {
    max-width: 100%;
  }
}

/* ========================================
   HOMEPAGE SECTION HEADERS
======================================== */
.hp-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.hp-section-header h2 {
  margin-bottom: 15px;
}

.hp-section-header p {
  color: var(--color-text-light);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================
   HOMEPAGE REVIEWS - CENTERED LAYOUT
======================================== */
.hp-reviews-section {
  padding: 80px 0;
  text-align: center;
}

.hp-reviews-section .container {
  max-width: 800px;
}

.hp-reviews-section h2 {
  margin-bottom: 15px;
}

.hp-reviews-section > .container > p {
  color: var(--color-text-light);
  font-size: 1.15rem;
  margin-bottom: 30px;
}

.hp-reviews__rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hp-reviews__stars {
  color: var(--color-accent);
  font-size: 2.2rem;
  letter-spacing: 4px;
}

.hp-reviews__score {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
}

.hp-reviews__count {
  color: var(--color-text-light);
  font-size: 1rem;
}

/* ========================================
   CTA PHONE NUMBERS
======================================== */
.cta-phone-numbers {
  margin: 25px 0;
}

.cta-phone-numbers p {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.cta-phone-numbers a {
  color: var(--color-accent);
}

.cta-phone-numbers a:hover {
  color: var(--color-white);
}

/* ========================================
   BUTTON - WHITE OUTLINE (DARK BACKGROUNDS)
======================================== */
.btn-white-outline {
  background-color: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.btn-white-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
======================================== */
@media (max-width: 768px) {
  .hp-section-header {
    margin-bottom: 35px;
  }
  
  .hp-section-header p {
    font-size: 1rem;
  }
  
  .hp-reviews-section {
    padding: 60px 0;
  }
  
  .hp-reviews__stars {
    font-size: 1.8rem;
  }
  
  .hp-reviews__score {
    font-size: 1.2rem;
  }
  
  .block-video-row__intro {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hp-reviews__rating {
    flex-direction: column;
    gap: 10px;
  }
  
  .cta-phone-numbers p {
    font-size: 1rem;
  }
}
