/* =========================================================
   index.css
   Homepage styles only
========================================================= */


/* =========================
   HERO SECTION
========================= */

.hero-index{
  position: relative;
  width: 100%;
  height: 720px;
  display:flex;
  align-items:center;
  justify-content:center;

  background-size:cover;
  background-position:center;
  background-image:url("../../images/index-desktop.webp");
}

.hero-index .hero-overlay{
  position:absolute;
  inset:0;
  background:rgba(92,74,58,.45);
}

.hero-index .hero-content{
  position:relative;
  z-index:1;
  width:min(1100px,92vw);
  text-align:center;
  color:#fff;
  padding:0 16px;
  text-shadow:1px 1px 3px rgba(0,0,0,.45);
}

.hero-index h1{
  margin:0 0 10px;
  font-size:clamp(2rem,3vw,3rem);
  line-height:1.1;
}

.hero-subtitle{
  margin:0 auto 18px;
  max-width:70ch;
  opacity:.95;
}

.hero-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}


/* =========================
   SPLIT CONTENT SECTIONS
========================= */

.index-split{
  display:grid;
  grid-template-columns:380px 1fr;
  gap:28px;
  align-items:center;
  margin:28px 0;
}

.index-split--reverse{
  grid-template-columns:1fr 520px;
}

.index-split-media img{
  width:100%;
  border-radius:14px;
  display:block;
  box-shadow:0 10px 26px rgba(0,0,0,.1);
}

.index-split-text p{
  margin:0 0 14px;
}


/* =========================
   CALLOUT
========================= */

.callout{
  margin:26px 0;
  padding:16px 18px;
  border-radius:14px;
  background:rgba(245,240,230,.9);
  box-shadow:0 10px 26px rgba(0,0,0,.08);
}

.callout p{
  margin:0;
}


/* =========================
   EXPLORE GRID (4 columns)
========================= */

.index-explore{
  margin-top:30px;
}

.explore-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin-top:16px;
}

.explore-card{
  background:rgba(245,240,230,.9);
  border-radius:16px;
  padding:18px;
  box-shadow:0 10px 26px rgba(0,0,0,.08);
}

.explore-card h3{
  margin:0 0 10px;
}

.explore-card ul{
  margin:0;
  padding-left:18px;
}

.explore-card li{
  margin:8px 0;
}

.explore-card a{
  text-decoration:none;
  color:inherit;
}

.explore-card a:hover{
  text-decoration:underline;
}

.explore-card .muted{
  opacity:.85;
}


/* Start Here card slightly emphasized */

.explore-card--start{
  box-shadow:0 14px 34px rgba(0,0,0,.12);
}


/* Start Here link spacing */

.start-here-links{
  margin-top:12px;
  padding-left:18px;
}

.start-here-links li{
  margin:8px 0;
}


/* =========================
   GROUP CARDS
========================= */

.group-card-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-top:16px;
}

.group-card{
  display:block;
  border-radius:18px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  background:rgba(245,240,230,.9);
  box-shadow:0 10px 26px rgba(0,0,0,.08);
  transition:transform .18s ease, box-shadow .18s ease;
}

.group-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 34px rgba(0,0,0,.12);
}

.group-card img{
  width:100%;
  height:190px;
  object-fit:cover;
}

.group-card-body{
  padding:14px;
}

.group-card-body h3{
  margin:0 0 8px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width:1024px){

  .hero-index{
    height:600px;
    background-image:url("../../images/index-tablet.webp");
  }

  .index-split,
  .index-split--reverse{
    grid-template-columns:1fr;
  }

  .explore-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .group-card-grid{
    grid-template-columns:repeat(2,1fr);
  }
}


@media (max-width:768px){

  .hero-index{
    height:500px;
    background-image:url("../../images/index-mobile.webp");
  }

  .explore-grid{
    grid-template-columns:1fr;
  }

  .group-card-grid{
    grid-template-columns:1fr;
  }

  .group-card img{
    height:220px;
  }

}