/* ========================================================================== */
/* PAGE-SPECIFIC: HOME                                                        */
/* Webvana v3                                                                  */
/* Scope: hero spacing + home-only background treatments + CTA alignment        */
/* ========================================================================== */

/* ========================================================================== */
/* HERO                                                                        */
/* ========================================================================== */
.page-home .hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;

  /* Mobile-first: padding that cannot be accidentally zeroed */
  padding: calc(var(--header-h-mobile) + 1.25rem) 0 3rem;
}

@media (min-width: 900px) {
  .page-home .hero {
    padding: 5rem 0 var(--spacing-lg);
  }
}

.page-home .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.page-home .hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.page-home .hero-location {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.92;
  margin-bottom: var(--spacing-sm);
}

.page-home .hero h1 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  margin-bottom: var(--spacing-md);
}

.page-home .hero-tagline {
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  opacity: 0.94;
  margin-bottom: var(--spacing-md);
}

.page-home .hero-description {
  font-size: 1.05rem;
  line-height: 1.55;

  /* Key “less wordy on mobile” trick without deleting SEO text */
  max-width: 42ch;
  margin: 0 auto var(--spacing-md);
  opacity: 0.96;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

@media (min-width: 900px) {
  .page-home .hero-description {
    font-size: 1.2rem;
    line-height: 1.75;
    max-width: 70ch;
  }
}

.page-home .cta-label {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: var(--spacing-xs);
}

.page-home .phone-number {
  display: inline-block;
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.14);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: background var(--transition-base), transform var(--transition-base);
}

.page-home .phone-number:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

@media (min-width: 900px) {
  .page-home .phone-number {
    font-size: 2.5rem;
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

/* ========================================================================== */
/* DIFFERENCE                                                                  */
/* ========================================================================== */
.page-home .difference-section {
  background: var(--bg-light);
  text-align: center;
  padding: var(--spacing-lg) 0;
}

.page-home .difference-section .tagline {
  font-size: 1.35rem;
  color: var(--primary-color);
  font-weight: 900;
  margin-bottom: var(--spacing-md);
}

.page-home .difference-section p {
  max-width: 80ch;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
}

@media (max-width: 480px) {
  .page-home .difference-section {
    padding: 3rem 0;
  }

  .page-home .difference-section p {
    font-size: 1.02rem;
  }
}

/* ========================================================================== */
/* CERTIFIED CALLOUT (PARALLAX FIX)                                            */
/* NOTE: Reverting to scoped background-attachment method to prevent bleed.    */
/* ========================================================================== */
.page-home .certified-callout {
  text-align: center;
  color: #fff;
  padding: var(--spacing-xl) var(--container-pad);

  background:
    linear-gradient(rgba(42, 42, 42, 0.88), rgba(42, 42, 42, 0.88)),
    url("/images/peace-of-mind.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

@media (min-width: 900px) {
  .page-home .certified-callout {
    background-attachment: fixed;
  }
}

/* Mobile / iOS: disable parallax */
@media (max-width: 899px) {
  .page-home .certified-callout {
    background-attachment: scroll;
  }
}

@supports (-webkit-touch-callout: none) {
  .page-home .certified-callout {
    background-attachment: scroll;
  }
}

.page-home .certified-callout h2 {
  color: #fff;
}

.page-home .certified-callout p {
  max-width: 80ch;
  margin: 0 auto var(--spacing-md);
  font-size: 1.1rem;
  line-height: 1.75;
}

.page-home .certified-callout .button {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
}

.page-home .certified-callout .button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

/* ========================================================================== */
/* SERVICES / TESTIMONIALS / AREAS: spacing + centering + background bands      */
/* ========================================================================== */
.page-home .services,
.page-home .testimonials,
.page-home .service-areas {
  padding: var(--spacing-xl) 0;
}

.page-home .services { 
    background: var(--bg-color); 
}
.page-home .testimonials { 
    background: var(--bg-light); 
}
.page-home .service-areas { 
    background: #fff; 
}

/* Center section titles (markup uses plain <h2>) */
.page-home .services h2,
.page-home .testimonials h2,
.page-home .service-areas h2 {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

/* Center services intro copy (keep readable line-length) */
.page-home .services-intro {
  text-align: center;
  max-width: 80ch;
  margin: 0 auto var(--spacing-lg);
}

/* Center CTA buttons + add breathing room above */
.page-home .services-cta,
.page-home .testimonials-cta {
  text-align: center;
  padding-top: var(--spacing-md);
}

@media (max-width: 480px) {
  .page-home .services-cta,
  .page-home .testimonials-cta {
    padding-top: var(--spacing-sm);
  }
}

/* ========================================================================== */
/* HOME: Pricing CTA (script-injected)                                         */
/* ========================================================================== */
/* Pricing CTA: styles both #pricing-cta (injected by JS) and .pricing-cta (fallback class) */
.page-home #pricing-cta,
.page-home .pricing-cta {
  background: #1a1a1a;
  color: #fff;
  padding: var(--spacing-lg) 0;
}

.page-home #pricing-cta h2,
.page-home .pricing-cta h2 {
  color: #fff;
}

.page-home #pricing-cta p,
.page-home .pricing-cta p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}

.page-home #pricing-cta .button-secondary,
.page-home .pricing-cta .button-secondary {
  color: #fff;
  border-color: #fff;
}

.page-home #pricing-cta .button-secondary:hover,
.page-home .pricing-cta .button-secondary:hover {
  background: #fff;
  color: var(--text-color);
}
