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

/* HERO */
.container-home-head {
  display: grid;
  gap: 10px;
  padding: 20px;
  max-width: 1200px;
  margin: 20px auto;
  justify-items: center;
  border-radius: 15px;
  color: white;
  text-align: center;

  background: linear-gradient(
    to right,
    rgba(6, 64, 43, 0) 0%,
    rgba(6, 64, 43, 0.5) 50%,
    rgba(6, 64, 43, 0) 100%
  );
}

.container-home-head h2 {
  font-size: 2rem;
}

.container-home-head p {
  font-size: 1.1rem;
  color: #d4f0d4;
}

/* CARDS CONTAINER (CENTERED) */
.cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin: 30px auto;
}

/* CARD */
.card {
  width: 1200px;   /* longer */
  height: 250px;  /* slightly taller */
  background: #2b452e;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: 0.4s;
  text-decoration: none;
}

/* HOVER */
.card:hover {
  transform: scale(1.05);
}

.cards .card:hover ~ .card,
.cards .card:has(~ .card:hover) {
  filter: blur(6px);
  transform: scale(0.95);
}
/* INNER LAYOUT */
.card-inner {
  display: flex;
  height: 100%;
}

/* IMAGE LEFT */
.card-img {
  width: 40%;
  position: relative;
}

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

/* IMAGE FADE */
.card-img::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 70px;
  height: 100%;
  background: linear-gradient(to right, transparent, #2b452e);
}

/* TEXT */
.card-content {
    width: 60%;
    padding: 20px;
    color: black;
    display: flex;
    align-items: flex-start;      /* top instead of center */
    justify-content: flex-start;
    font-size: 12px;              /* smaller */
    text-align: left;
}

.card-content p {
  font-size: 1.5rem;
  margin: 0;
  padding: 0;
}

/* WAVE TITLE */
.card-wave {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 140px;
    background: #1a6b3a;          /* lighter green */
    clip-path: path("M0,130 C150,120 350,130 600,60 C750,20 900,80 1200,50 L1200,140 L0,140 Z");
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-right: 30px;
    padding-bottom: 15px;
    z-index: 1;
    border-top: 2px solid #11482a;  /* border same color as old wave */
}


.card-wave .title {
  color: #013220;
  font-weight: bold;
  font-size: 1.6rem;
  position: relative;
  z-index: 2;
}

/* MOBILE */
@media (max-width: 700px) {
  .card {
    width: 90%;
    height: 180px;
  }

  .card-content {
    font-size: 13px;
  }
}

@media (max-width: 700px) {
    .cards .card:hover ~ .card,
    .cards .card:has(~ .card:hover) {
        filter: none;
        transform: none;
    }
}

#back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 0;
}

#back-to-top:hover {
    background: var(--accent);
}

@media (max-width: 700px) {
    .container-home-head {
        padding: 1rem;
    }

    .container-home-head h2 {
        font-size: 1.3rem;
    }

    .container-home-head ul {
        font-size: 0.85rem;
        padding-left: 2rem;

    }

    .container-home-head p {
    font-size: 0.9rem;
    padding: 0 0.5rem;
    }
}

@media (max-width: 700px) {
    .card-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 700px) {
    .card-wave {
        height: 30px;
        clip-path: none;
        justify-content: center;
        padding: 0;
        align-items: flex-end;
        overflow: visible;
    }

    .card-wave .title {
        font-size: 0.9rem;
        color: black;
        margin-bottom: -5px;
    }
}