/* ================================
   HOMEPAGE SPECIFIC STYLES
   ================================ */

/* Hero Section */
.hero {
  height: 600px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

/* Background layer for smooth scale animation */
.hero::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background-image: linear-gradient(rgba(3, 15, 13, 0.6), rgba(45, 122, 110, 0.6)), url("../images/facilities/viewgrr.JPG");
  background-size: cover;
  background-position: center;
  transform-origin: center center;
  z-index: 0;
  will-change: transform;
  animation: hero-bg-zoom 18s ease-in-out infinite;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 300;
  letter-spacing: 2px;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Fade-in animation for hero content */
.hero-content {
  position: relative; /* keep on top of pseudo bg */
  z-index: 2;
  opacity: 0;
  transform: translateY(12px);
  animation: hero-content-fade 900ms ease-out 200ms both;
}

/* Keyframes */
@keyframes hero-bg-zoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes hero-content-fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none !important;
    transform: none !important;
  }
  .hero-content {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Welcome Section */
.welcome {
  background: #f9f9f9;
}

.welcome-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
}

.welcome-text p {
  margin-bottom: 15px;
}

/* Statistics Section */
.statistics {
  background: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.stat-card {
  text-align: center;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 10px;
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  font-size: 48px;
  color: #2d7a6e;
  margin-bottom: 15px;
}

.stat-number {
  font-size: 32px;
  font-weight: bold;
  color: #2d7a6e;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  color: #666;
}

/* Features Section */
.features {
  background: #f9f9f9;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 40px;
  color: #d68a3d;
  min-width: 50px;
}

.feature-content h3 {
  font-size: 20px;
  color: #2d7a6e;
  margin-bottom: 10px;
}

.feature-content p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* Facilities Section */
.facilities {
  background: #fff;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.facility-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.facility-card:hover {
  transform: translateY(-5px);
}

.facility-image {
  width: 100%;
  height: 250px;
  background: #e8f5f3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

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

.facility-caption {
  padding: 20px;
  background: #fff;
  text-align: center;
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.view-all-button {
  text-align: center;
  margin-top: 40px;
}

/* Location Section */
.location {
  background: #f9f9f9;
}

.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 50px;
}

.location-map {
  width: 100%;
  height: 400px;
  background: #e8f5f3;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 16px;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: none;
}

.location-info h3 {
  font-size: 24px;
  color: #2d7a6e;
  margin-bottom: 20px;
}

.location-info p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.location-highlight {
  background: #d68a3d;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  display: inline-block;
  margin: 15px 0;
  font-size: 15px;
  text-decoration: none;
}

.nearby-list {
  list-style: none;
  margin-top: 20px;
}

.nearby-list li {
  padding: 8px 0;
  font-size: 15px;
  color: #666;
}

.nearby-list li:before {
  content: "✓ ";
  color: #2d7a6e;
  font-weight: bold;
  margin-right: 10px;
}

/* Resident Info Section */
.resident-info {
  background: #fff;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.info-card {
  background: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.info-card:hover {
  background: #2d7a6e;
  color: #fff;
  transform: translateY(-5px);
}

.info-card-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: #d68a3d;
}

.info-card:hover .info-card-icon {
  color: #fff;
}

.info-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #2d7a6e;
}

.info-card:hover h3 {
  color: #fff;
}

.info-card p {
  font-size: 14px;
  color: #666;
}

.info-card:hover p {
  color: #fff;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #2d7a6e 0%, #1a5a50 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: 36px;
  margin-bottom: 15px;
  font-weight: 300;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 20px;
}

.cta-phone {
  font-size: 28px;
  font-weight: bold;
  margin: 20px 0 30px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .stats-grid,
  .features-grid,
  .facilities-grid,
  .location-content,
  .info-cards {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
    padding: 0 10px;
  }

  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }

  .hero {
    height: 480px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
}
