/* ============================================
   home.css — HOME PAGE ONLY (index.html)
   Load after style.css
============================================ */

/* taller hero on the home page */
body.home .hero {
  min-height: 2.2in;   /* baseline + about 1 inch extra */
}

/* ============================================
   HOME GRID
============================================ */
.home-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 250px;
  gap: 2rem;
}

.grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.grid-item.image {
  border: 4px solid #c6b7e2;
}

.grid-item.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid-item.text {
  background: #fafafa;
  text-align: center;
}

.grid-item.text p {
  position: relative;
  max-width: 350px;
  font-size: 1rem;
  color: #444;
  padding-bottom: 1rem;
}

/* little sliding line under the text blocks */
.grid-item.text p::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  margin: 0.5rem auto 0;
  background: linear-gradient(90deg, #dbc8a9 25%, rgba(219,200,169,0) 50%, #dbc8a9 75%);
  background-size: 200% 100%;
  animation: slideLine 2s linear infinite;
  border-radius: 2px;
}

@keyframes slideLine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   HOME — MOBILE
============================================ */
@media (max-width: 700px) {
  body.home .hero {
    min-height: 1in;            /* was 2.2in */
    padding: 1rem 1rem;         /* was 1.3rem 1.5rem */
  }

  /* tabs: allow wrapping into tidy rows */
  body.home .top-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  body.home .top-tabs a {
    padding: 0.5rem 0.7rem;
    white-space: nowrap;
  }

  .home-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem 1rem 0.5rem;
    grid-auto-rows: 150px;
  }

  .grid-item.image {
    aspect-ratio: auto;
  }

  .grid-item.text p {
    font-size: 0.75rem;
    max-width: 100%;
    padding: 0.5rem 0.5rem 1rem;
  }
}