/* Hero image treatment for Sandringham Court homepage
   Save as: css2025/hero.css
   Images expected at:
   - Sandringham-Images/hero-bar-1600.webp (desktop)
   - Sandringham-Images/hero-bar-900x1125.webp (mobile)
*/

.hero.hero--image{
  position: relative;
  background-image: url("../Sandringham-Images/hero-bar-1600.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.hero.hero--image::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(140, 70, 0, 0.58) 0%,
    rgba(160, 80, 0, 0.50) 45%,
    rgba(140, 70, 0, 0.60) 100%
  );
  pointer-events: none;
}



/* Keep hero content above overlay */
.hero.hero--image .hero-inner{
  position: relative;
  padding: 56px 0 52px;
  max-width: 860px;
}

@media (max-width: 640px){
  .hero.hero--image{
    background-image: url("../Sandringham-Images/hero-bar-900x1125.webp");
    background-position: center;
  }
  .hero.hero--image .hero-inner{
    padding: 44px 0 40px;
  }
}

/* Improve text contrast */
.hero.hero--image .hero-heading,
.hero.hero--image .hero-subheading,
.hero.hero--image .hero-contact-note{
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}

/* Link colour within hero */
.hero.hero--image .hero-contact-link{
  color: #fff;
  text-decoration: underline;
}

/* Button row spacing (won't override your existing button styling) */
.hero.hero--image .hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

/* Phone link readability */
.hero.hero--image .hero-phone{
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.22);
}

.hero.hero--image .hero-phone:hover{
  background: rgba(0,0,0,0.50);
}

/* Accessibility: honour reduced transparency if requested */
@media (prefers-reduced-transparency: reduce){
  .hero.hero--image::before{
    background: rgba(0,0,0,0.70);
  }
}
