/* ============================================
   WHY KOTRAPHOS ESTATE - RESPONSIVE CSS
   2 columns (mobile/tablet) → 3 columns (desktop)
   Using Flexbox - Colors from design
   ============================================ */

.why-kotraphos {
  background-color: #ede8df;
  padding: 2.5rem 1rem;
}

.why-kotraphos__title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #3a3a3a;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.why-kotraphos__underline {
  width: 3rem;
  height: 0.25rem;
  background-color: #8bc34a;
  margin: 0 auto 2rem;
}

/* 2 COLUMNS - MOBILE & TABLET PORTRAIT */
.why-kotraphos__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  max-width: 100%;
}

.why-kotraphos__card {
  flex: 1 1 calc(50% - 0.625rem);
  min-width: 0;
  background-color: #f9f7f3;
  border: 1px solid #e8e4db;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.why-kotraphos__card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #d8d2c8;
}

.why-kotraphos__number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1.75rem;
  font-weight: 300;
  color: #c8ddb8;
  letter-spacing: 0.05em;
}

.why-kotraphos__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.why-kotraphos__icon svg {
  width: 100%;
  height: 100%;
  stroke: #4a4a4a;
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-kotraphos__heading {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #527744;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.why-kotraphos__description {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #6b6b6b;
  font-weight: 400;
}

/* 3 COLUMNS - DESKTOP (1024px+) */
@media (min-width: 1024px) {
  .why-kotraphos {
    background-color: #f0f5ea;
    padding: 4rem 2rem;
  }

  .why-kotraphos__title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .why-kotraphos__underline {
    margin-bottom: 3rem;
  }

  .why-kotraphos__grid {
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .why-kotraphos__card {
    flex: 1 1 calc(33.333% - 1.333rem);
    padding: 2.5rem 2rem;
    min-height: 320px;
    position: relative;
  }

  .why-kotraphos__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  .why-kotraphos__number {
    font-size: 2.5rem;
    line-height: 2rem;
    margin-bottom: 1.5rem;

  }

  .why-kotraphos__icon {
    width: 3rem;
    height: 3rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    margin-top: 0.75rem;
  }

  .why-kotraphos__heading {
    font-size: 0.95rem;
    padding-top: 10px !important;
    margin-bottom: 1rem;
  }

  .why-kotraphos__description {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* ACCESSIBILITY */
.why-kotraphos__card:focus-within {
  outline: 2px solid #8bc34a;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .why-kotraphos__card {
    transition: none;
  }

  .why-kotraphos__card:hover {
    transform: none;
  }
}
