:root {
  --accent: #c8102e;
  --black: #111;
  --gray: #777;
  --light: #f4f4f4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background: white;
}

/* ----------------- HERO ----------------- */

.m-hero {
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  overflow: hidden;
}

.m-hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.9);
}

.m-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
}

.m-hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

.m-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -1px;
  color: white;
}

.m-hero p {
  margin-top: 20px;
  font-size: 2rem;
  letter-spacing: 1px;
  font-weight: 300;
  color: white;
}


/* ----------------- GRID ----------------- */

.m-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 1.5rem 1rem;
/*   display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 1.5rem 1rem; */
}

.m-card {
  flex: 0 0 calc(33.333% - 20px); 
  max-width: 0 0 calc(33.333% - 20px); 
  max-height: 250px;
  position: relative;
  overflow: hidden;
/*   cursor: pointer; */
  border-radius: 16px;
  transition: opacity 0.4s ease;
}

.m-card img {
  width: 100%;
/*   height: 300px; */
  object-fit: cover;
  object-position: left;
  border-radius: 16px;
  transition: transform 0.6s ease;
  filter:brightness(0.9);
}

.m-card:hover img {
  transform: scale(1.05);
}

.m-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 30px;
  background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 50%, transparent 100%);
  color: white;
  transform: translateY(20%);
  transition: 0.5s ease;
}

.m-card:hover .m-card-overlay{
  transform: translateY(0);
}

.m-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 3vw, 3rem);
  color: white;
}

.m-card span {
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: white;
}

/* ----------------- RESPONSIVE ----------------- */

@media (max-width: 768px) {
  .m-grid {
    gap: 30px;
  }
  .m-card img {
    height: 200px;
  }
  .m-card h3 {
  font-size: 3vw;
  visibility: visible;
}

}
