/* ---------- Hero ---------- */
/* Default: desktop */

.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  color: #fff;
  background: url('{{ url_for('static', filename='images/home.png') }}') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin-left: 5%;
  text-align: left;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Buttons */
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  box-shadow: 0 6px 14px rgba(9,148,136,0.18);
}
.btn-primary:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
  box-shadow: 0 8px 18px rgba(7,117,108,0.22);
}
.btn-light {
  background: var(--white);
  color: var(--teal-600);
  border-color: #e2e8f0;
}
.btn-light:hover {
  background: var(--teal-soft);
  color: #0b1220;
  border-color: transparent;
}

/* Center alignment helper */
.center {
  text-align: center;
  margin-top: 20px;
}

/* All reviews button */
.all-reviews {
  background: var(--teal);
  color: var(--white);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 1rem;
  box-shadow: 0 6px 14px rgba(9,148,136,0.18);
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.all-reviews:hover {
  background: var(--teal-700);
  box-shadow: 0 8px 18px rgba(7,117,108,0.22);
}

/* ---------- Services ---------- */
.services {
  background: #f6f9fb;
  padding: 72px 0;
}
.services-title {
  margin: 0 0 8px;
  text-align: center;
  font-weight: 900;
  font-size: clamp(28px, 3.8vw, 44px);
  color: #0b1220;
}
.services-subtitle {
  margin: 0 auto 36px;
  text-align: left;
  color: #64748b;
  font-size: clamp(15px, 2vw, 18px);
  max-width: 820px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 28px;
}
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: #fff;
  border: 1px solid #e9eef4;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.10);
}
.service-icon {
  width: 64px;
  height: 64px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--teal-soft, #E6F6F4);
  margin-bottom: 16px;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--teal-700);  /* teal color */
}
.service-heading {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.35;
  color: #0b1220;
}
.service-text {
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Environment ---------- */
.environment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.env-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  height: 300px;
}
.env-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.env-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  text-align: center;
}
.env-heading {
  font-size: 1.1rem;
  margin: 0 0 5px;
}
.env-text {
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Reviews ---------- */
.home-reviews {
  padding: 60px 20px;
  background: #f9fafb;
}
.home-reviews h2 {
  text-align: center;
  margin-bottom: 30px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.review-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.review-card .quote {
  font-style: italic;
  margin: 10px 0;
}
.stars-row {
  display: flex;
  gap: 4px;
}
.star {
  width: 20px;
  height: 20px;
  fill: #ddd;
}
.star.filled { fill: gold; }
.star.empty { fill: #ddd; }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .hero {
    min-height: 92vh;
    background: url('{{ url_for('static', filename='images/home2.png') }}') center top/cover no-repeat !important;
  }
  .btn { width: 100%; }
}
