/* =========================
   ABOUT SECTION
========================= */
.about {
  padding: 3rem 5px;
  
}

.about .container {
  max-width: 1200px;
  margin: 0 auto;
}

.about .section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  color: #252522;
  position: relative;
}
.about .section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #867c74;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* === GRID ROWS === */
.about-row {
  display: grid;
  grid-template-columns: 2fr 2fr;  /* 2 equal columns */
  gap: 2rem;
  margin-bottom: 5rem; /* increased spacing for smoother scroll */
  align-items: center;

  /* Fade animation default */
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.about-row.show {
  opacity: 1;
  transform: translateY(0);
}

/* Reverse order for alternating layout */
.about-row.reverse .about-text {
  order: 2;
}
.about-row.reverse .about-img {
  order: 1;
}

/* === TEXT === */
.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #111;
  border-left: 4px solid #867c74;
  padding-left: 0.8rem;
  text-transform: uppercase;
}
.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

/* === IMAGES === */
.about-img img {
  width: 800px;
  max-height: 500px;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .about-row {
    grid-template-columns: 1fr; /* stack */
    text-align: center;
  }
  .about-row.reverse .about-text,
  .about-row.reverse .about-img {
    order: unset; /* reset stacking order */
  }
  .about-text {
    text-align: left;
  }
}
/* =========================
   RESPONSIVE BREAKPOINTS
========================= */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .about-row {
    grid-template-columns: 1fr; /* stack vertically */
    text-align: center;
  }

  /* ✅ always keep image on top */
  .about-img {
    order: 1;
  }
  .about-text {
    order: 2;
  }

  .about-text h3 {
    font-size: 1.5rem;
  }
  .about-text p {
    font-size: 0.95rem;
  }

  .about-img img {
    width: 100%;
    max-height: 400px;
  }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
  .about {
    padding: 2rem 10px;
  }

  .about .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .about-row {
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .about-text h3 {
    font-size: 1.3rem;
    border-left: none; /* cleaner on small screens */
    padding-left: 0;
  }
  .about-text p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .about-img img {
    max-height: 250px;
    border-radius: 3px;
  }
}