/* =========================================================
   HOMEPAGE HERO + HEADER + CAROUSEL (scoped to .home-page)
   ========================================================= */

.home-page .home-hero{
  /* Smooth vertical gradient using your house colours (+ gentle mid-stops) */
  background: linear-gradient(
    180deg,
    #2d3292 0%,
    #2f35a3 30%,
    #3850c8 65%,
    #4169e1 100%
  );
  color: #fff;
  padding: 18px 0 28px;
}

.home-page .home-shell{
  width: min(1523px, 92%);
  margin: 0 auto;
}

/* Header: logo left, nav right */
.home-page .site-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

/* Simple text-logo for now (swap to an image later if you want) */
.home-page .logo{
  font-family: 'Roboto Slab', serif;
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

/* Override your global A:link colour rules with more specific selectors */
.home-page .logo:link,
.home-page .logo:visited,
.home-page .logo:hover,
.home-page .logo:active{
  color: #fff;
  text-decoration: none;
}

.home-page .site-nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.home-page .site-nav .nav-link{
  font-family: 'Roboto Slab', serif;
  font-size: 16px;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
}

.home-page .site-nav .nav-link:link,
.home-page .site-nav .nav-link:visited,
.home-page .site-nav .nav-link:hover,
.home-page .site-nav .nav-link:active{
  color: #fff;
}

.home-page .site-nav .nav-link:hover{
  text-decoration: underline;
}

/* Optional screen width debugger */
.home-page .screen-width-debug{
  color: rgba(255,255,255,0.85);
  margin: 0 0 12px;
  font-size: 14px;
  display: none; /* set to block when debugging */
}

/* Hero layout */
.home-page .hero-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  text-align: left;
}

.home-page .hero-title{
  margin: 0 0 10px;
  font-family: 'Roboto Slab', serif;
  font-size: 46px;
  font-weight: 500;
  line-height: 1.12;
  color: #fff;
}

.home-page .hero-subtitle{
  margin: 0 0 18px;
  font-family: 'Roboto Slab', serif;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.92);
}

.home-page .hero-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* CTA buttons (use :link/:visited to beat your global A rules) */
.home-page .hero-btn{
  display: inline-block;
  border-radius: 25px;
  padding: 12px 22px;
  border: 2px solid rgba(255,255,255,0.95);
  font-family: 'Roboto Slab', serif;
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
}

.home-page .hero-btn:link,
.home-page .hero-btn:visited,
.home-page .hero-btn:hover,
.home-page .hero-btn:active{
  color: #fff;
}

.home-page .hero-btn-primary{
  background: rgba(255,255,255,0.18);
}

.home-page .hero-btn-secondary{
  background: transparent;
}

.home-page .hero-btn:hover{
  background: rgba(255,255,255,0.28);
}

/* Carousel */
.home-page .hero-carousel{
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.65);
  background: rgba(0,0,0,0.12);
  aspect-ratio: 16 / 9;
  min-height: 290px; /* fallback if aspect-ratio unsupported */
}

.home-page .carousel-track{
  position: relative;
  width: 100%;
  height: 100%;
}

.home-page .slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}

.home-page .slide.is-active{
  opacity: 1;
}

.home-page .carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: 2px solid rgba(255,255,255,0.85);
  background: rgba(45,50,146,0.35);
  color: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.home-page .carousel-btn.prev{ left: 12px; }
.home-page .carousel-btn.next{ right: 12px; }

.home-page .carousel-dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.home-page .carousel-dots button{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
}

.home-page .carousel-dots button.is-active{
  background: #fff;
}

/* Search band inside hero: background must match hero (transparent shows gradient) */
.home-page .home-search-band{
  margin-top: 22px;
  padding-bottom: 8px;
}

/* Keep your existing search styling, but make it sit nicely in the hero */
.home-page .home-search-band .search-container{
  background: transparent;
}

.home-page .home-search-band .search-box{
  width: min(980px, 100%);
  border-radius: 25px;           /* match house style */
  padding: 6px 0 2px;            /* slight breathing room */
}

/* Main (white) area below hero */
.home-page .home-main{
  background: #fff;
  padding-top: 12px;
}

/* Footer */
.home-page .site-footer{
  background: #fff;
  padding: 30px 0 40px;
}

.home-page .footer-text{
  margin: 0;
  font-family: 'Roboto Slab', serif;
  font-size: 14px;
  color: #000;
  text-align: center;
}

/* -----------------------------
   Responsive breakpoints
   ----------------------------- */

/* ≤1399px (large tablet) */
@media (max-width: 1399px){
  .home-page .hero-title{ font-size: 40px; }
  .home-page .hero-carousel{ min-height: 260px; }
}

/* ≤899px (small tablet) */
@media (max-width: 899px){
  .home-page .site-header{
    flex-direction: column;
    align-items: center;
  }

  .home-page .site-nav{
    justify-content: center;
    gap: 14px;
  }

  .home-page .hero-grid{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-page .hero-cta{
    justify-content: center;
  }

  .home-page .hero-carousel{
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
  }

  .home-page .home-search-band .search-box{
    width: 100%;
  }
}

/* ≤538px (mobile) */
@media (max-width: 538px){
  .home-page .home-shell{ width: min(1523px, 94%); }

  .home-page .hero-title{ font-size: 30px; }
  .home-page .hero-subtitle{ font-size: 16px; }

  .home-page .hero-btn{
    width: 100%;
    max-width: 360px;
    text-align: center;
  }

  .home-page .site-nav .nav-link{ font-size: 14px; }

  .home-page .carousel-btn{
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}
