/* =============================================
   home.css — Styles for the Home page only
   ============================================= */

/* ── Hero Section ── */
body{
  margin-top: 0;
}

.hero {
  min-height: calc(100vh - 80px);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 5rem 4rem 4rem 6rem;
  gap: 4rem;
  position: relative; overflow: hidden;
  background-image: linear-gradient(rgba(32, 32, 32, 0.43), rgba(26, 65, 34, 0.366)), url('../Pictures/HomeBackground.png');
  background-size: cover;
  margin-top: 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--green-mist); border: 1px solid var(--green-pale);
  border-radius: 50px; padding: 0.4rem 1rem;
  font-size: 0.78rem; color: var(--green-mid); font-weight: 500;
  margin-bottom: 1.5rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-badge::before { content: '✦'; font-size: 0.6rem; }
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300; line-height: 1.1;
  color: var(--cream); margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--green-light); }
.hero p {
  font-size: 1.05rem; color: rgba(255, 254, 254, 0.85);
  line-height: 1.8; margin-bottom: 2.5rem; max-width: 480px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-btns { justify-content: flex-start; }
/* Ensure elements that trigger page navigation remain left-aligned on larger screens
   (mobile centering is handled in the max-width media queries) */
@media (min-width: 769px) {
  /* Keep page navigation and booking triggers left-aligned on desktop */
  #page-home [onclick*="showPage"],
  #page-home [onclick*="openBooking"],
  #page-home .btn-primary, #page-home .btn-secondary {
    display: inline-block;
    margin: 0;
  }
}
.hero .btn-secondary {
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.3);
}
.hero .btn-secondary:hover {
  border-color: var(--cream);
}
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem; font-weight: 600; color: var(--cream); line-height: 1;
}
.stat-label { font-size: 0.78rem; color: rgb(253, 152, 0); margin-top: 0.3rem; letter-spacing: 0.04em; }

/* ── Hero Image ── */
.hero-image { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-img-wrap {
  width: 440px; height: 540px;
  border-radius: 200px 200px 160px 160px;
  overflow: hidden; position: relative;
  border: 3px solid rgba(255, 254, 254, 0.338);
}
.hero-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
}
.placeholder-icon {
  width: 120px; height: 120px; background: var(--green-pale);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.placeholder-text { font-size: 0.85rem; color: var(--text-light); }
.hero-float-card {
  position: absolute; bottom: 40px; left: -20px;
  background: white; border-radius: 16px;
  padding: 1rem 1.3rem; box-shadow: 0 8px 32px rgba(26, 58, 42, 0.15);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.8rem;
}
.float-icon {
  width: 40px; height: 40px; background: var(--green-mist);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem;
}
.float-text { font-size: 0.78rem; color: var(--text-light); }
.float-val { font-size: 0.95rem; font-weight: 500; color: var(--green-deep); }

/* ── Services Strip ── */
.services-strip { background: var(--green-deep); padding: 4rem; }
.services-strip .section-tag { color: var(--green-light); }
.services-strip .section-title { color: var(--cream); }
.services-strip .section-sub { color: rgba(248,244,238,0.65); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 2rem;
  transition: all 0.3s; cursor: pointer;
}
.service-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.2);
}
.service-icon {
  width: 48px; height: 48px; background: var(--green-soft);
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; margin-bottom: 1.2rem;
}
.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 500;
  color: var(--cream); margin-bottom: 0.6rem;
}
.service-card p { font-size: 0.85rem; color: rgba(248,244,238,0.6); line-height: 1.7; }
.service-card .card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.2rem; font-size: 0.82rem; color: var(--green-light);
  text-decoration: none; font-weight: 500; cursor: pointer;
}

/* ── Testimonials ── */
.testimonials-section { background: var(--cream); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.testimonial-card {
  background: white; border-radius: 20px;
  padding: 2rem; border: 1px solid var(--border);
  transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-3px); }
.stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 1rem; letter-spacing: 0.1em; }
.testimonial-card p {
  font-size: 0.92rem; color: var(--text-mid);
  line-height: 1.75; margin-bottom: 1.5rem; font-style: italic;
}
.client-info { display: flex; align-items: center; gap: 0.8rem; }
.client-avatar {
  width: 40px; height: 40px; background: var(--green-mist);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1rem;
}
.client-name { font-size: 0.88rem; font-weight: 500; color: var(--green-deep); }
.client-detail { font-size: 0.78rem; color: var(--text-light); }

/* ── How It Works ── */
.how-it-works { background: var(--warm-white); }
.steps-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; margin-top: 3rem; position: relative;
}
.steps-row::before {
  content: '';
  position: absolute; top: 28px; left: 12.5%; right: 12.5%;
  height: 1px; background: var(--green-pale);
}
.step { text-align: center; position: relative; }
.step-num {
  width: 56px; height: 56px;
  background: var(--green-deep); color: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 600;
  margin: 0 auto 1.2rem; position: relative; z-index: 1;
}
.step h4 { font-size: 1rem; font-weight: 500; color: var(--green-deep); margin-bottom: 0.5rem; }
.step p { font-size: 0.84rem; color: var(--text-light); line-height: 1.6; }

/* =============================================
   home.css — RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    padding: 3rem 2rem;
    gap: 2rem;
  }
  .hero-img-wrap { width: 300px; height: 400px; }
  .hero h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
  .hero p { font-size: 1rem; max-width: 400px; }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 1.8rem; }
  
  .services-strip { padding: 3rem 2rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .service-card { padding: 1.5rem; }
  
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .testimonial-card { padding: 1.5rem; }
  
  .steps-row { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .steps-row::before { display: none; }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 2rem 1rem 2.5rem;
    gap: 1.5rem;
    text-align: center;
    min-height: auto;
    margin-top: 0;
    background-position: center;
  }
  .hero-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    margin-bottom: 1rem;
  }
  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
  }
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns {
    justify-content: center;
    gap: 0.8rem;
  }
  .hero .btn-primary,
  .hero .btn-secondary {
    padding: 0.65rem 1.2rem;
    font-size: 0.85rem;
  }
  .hero-stats {
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
  }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: 0.7rem; }
  
  .hero-image { order: -1; margin-bottom: 1rem; }
  .hero-img-wrap {
    width: 220px;
    height: 280px;
    margin: 0 auto;
    border-radius: 140px 140px 120px 120px;
  }
  .placeholder-icon { width: 80px; height: 80px; font-size: 2rem; }
  .placeholder-text { font-size: 0.75rem; }
  
  .hero-float-card {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 1rem auto 0;
    padding: 0.8rem 1rem;
    white-space: nowrap;
  }
  /* Center buttons only on the index (home) page for small screens */
  #page-home .btn-primary,
  #page-home .btn-secondary,
  #page-home .form-submit,
  #page-home .elpo-cta-btn,
  #page-home .resource-btn {
    display: block;
    margin: 0.6rem auto;
  }
  /* But keep the hero buttons left-aligned on all sizes */
  #page-home .hero-btns .btn-primary,
  #page-home .hero-btns .btn-secondary {
    display: inline-block;
    margin: 0;
  }
  /* Keep the services-strip action on the left as well */
  .services-strip .btn-secondary {
    display: inline-block !important;
    margin: 0 !important;
  }
  .float-icon { width: 32px; height: 32px; font-size: 1rem; }
  .float-text { font-size: 0.7rem; }
  .float-val { font-size: 0.85rem; }

  .services-strip { padding: 2.5rem 1rem; }
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card { padding: 1.2rem; }
  .service-icon { width: 40px; height: 40px; font-size: 1.2rem; margin-bottom: 0.8rem; }
  .service-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
  .service-card p { font-size: 0.8rem; }
  .service-card .card-link { font-size: 0.75rem; margin-top: 0.8rem; }

  .testimonials-section { padding: 2.5rem 1rem; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 1rem; }
  .testimonial-card { padding: 1.2rem; }
  .stars { font-size: 0.8rem; margin-bottom: 0.8rem; }
  .testimonial-card p { font-size: 0.85rem; margin-bottom: 1rem; }
  .client-avatar { width: 36px; height: 36px; }
  .client-name { font-size: 0.85rem; }
  .client-detail { font-size: 0.72rem; }

  .how-it-works { padding: 2.5rem 1rem; }
  .steps-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 2rem;
  }
  .step {
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .step-num {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin: 0;
  }
  .step h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
  .step p { font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .hero { padding: 1.5rem 0.8rem 2rem; }
  .hero-badge { font-size: 0.65rem; }
  .hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .hero p { font-size: 0.88rem; }
  .hero-btns { gap: 0.6rem; }
  .hero .btn-primary,
  .hero .btn-secondary { padding: 0.6rem 1rem; font-size: 0.8rem; }
  .hero-stats { gap: 1rem; }
  .stat-num { font-size: 1.3rem; }
  .stat-label { font-size: 0.65rem; }
  
  .hero-img-wrap { width: 180px; height: 230px; }
  .placeholder-icon { width: 60px; height: 60px; font-size: 1.5rem; }
  .placeholder-text { font-size: 0.7rem; }
  
  .hero-float-card { padding: 0.6rem 0.8rem; }
  .float-icon { width: 28px; height: 28px; font-size: 0.9rem; }
  .float-text { font-size: 0.65rem; }
  .float-val { font-size: 0.8rem; }

  .services-strip { padding: 2rem 0.8rem; }
  .section-tag { font-size: 0.65rem; margin-bottom: 0.5rem; }
  .section-title { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .section-sub { font-size: 0.85rem; }
  
  .service-card { padding: 1rem; }
  .service-icon { width: 36px; height: 36px; font-size: 1.1rem; }
  .service-card h3 { font-size: 1rem; }
  .service-card p { font-size: 0.75rem; }

  .testimonials-section { padding: 2rem 0.8rem; }
  .testimonial-card { padding: 1rem; }
  .testimonial-card p { font-size: 0.8rem; }

  .how-it-works { padding: 2rem 0.8rem; }
  .step-num { width: 38px; height: 38px; font-size: 1rem; }
  .step h4 { font-size: 0.9rem; }
  .step p { font-size: 0.75rem; }
}
