body {
  margin: 0;
  font-family: Inter;
  background: #f5f3ee;
  overflow-x: hidden;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

/* HEADER */
header {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)),
  url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
}

.hero {
  color: #fff;
}

.hero img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
}

.btn {
  padding: 14px 28px;
  background: #2e6a3a;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  display: inline-block;
  margin-top: 15px;
}

section {
  padding: 80px 10%;
}

.title {
  text-align: center;
  font-size: 38px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,.1);
}

.ba {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 18px;
}

/* BEFORE image (bottom layer) */
.ba > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* AFTER image (top layer, half reveal) */
.ba .after {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.ba .after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 📱 MOBILE FIX */
@media (max-width: 768px) {
  .ba {
    height: 220px;
  }

  .ba .after {
    width: 50%;
  }
}

/* CONTACT (GREEN BOTTOM) */
.contact {
  background: #2e6a3a;
  color: white;
  text-align: center;
}

.contact h2,
.contact p {
  color: white;
}

/* BUTTON HOVER */
.btn:hover {
  background: #24552d;
  transition: 0.3s ease;
}

.contact {
  background: linear-gradient(135deg, #2e6a3a, #24552d);
  color: white;
  text-align: center;
  padding: 60px 10%;
}
