/* =============================================
 * CoffeZ — Homepage (redesigned for conversion)
 * ============================================= */

/* ===== Hero ===== */
.home-hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  background:
    radial-gradient(circle at 70% 30%, rgba(212,175,55,.18), transparent 45%),
    linear-gradient(135deg, #2E1B10 0%, #1A0E08 100%);
}

.home-hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.home-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.1) contrast(1.05);
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(212,175,55,.10), transparent 50%),
    linear-gradient(180deg, rgba(26,14,8,.55) 0%, rgba(26,14,8,.85) 70%, #1A0E08 100%);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 760px;
  padding: 80px 22px 60px;
  color: #fff;
  box-sizing: border-box;
}

.home-hero-eyebrow {
  display: inline-block;
  background: rgba(212,175,55,.18);
  color: var(--gold);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .5px;
  border: 1px solid rgba(212,175,55,.4);
  margin-bottom: 26px;
  backdrop-filter: blur(6px);
}

.home-hero-title {
  font-size: clamp(30px, 7vw, 56px);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 20px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,.6);
}
.home-hero-title span {
  background: linear-gradient(135deg, var(--gold), #F5D76E);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin: 0 auto 38px;
  line-height: 1.75;
}

.home-hero-ctas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.home-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 18px;
  text-decoration: none;
  text-align: start;
  transition: transform .2s ease, box-shadow .2s ease;
  backdrop-filter: blur(4px);
}
.home-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,.4);
}

.home-cta-primary {
  background: linear-gradient(135deg, var(--gold), #B8860B);
  color: #2E1B10;
  box-shadow: 0 10px 24px rgba(212,175,55,.4);
}

.home-cta-secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1.5px solid rgba(212,175,55,.4);
}

.home-cta-icon {
  font-size: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
.home-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.home-cta-title {
  font-weight: 900;
  font-size: 16px;
  line-height: 1.3;
}
.home-cta-sub {
  font-size: 12px;
  opacity: 0.8;
  font-weight: 600;
}

/* ===== Stats strip ===== */
.home-stats {
  background: linear-gradient(180deg, #1A0E08 0%, var(--coffee-900) 100%);
  padding: 32px 20px;
  border-bottom: 3px solid var(--gold);
}
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
}
.home-stat {
  text-align: center;
  color: #fff;
}
.home-stat-num {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), #F5D76E);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}
.home-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  font-weight: 700;
}

/* ===== Why CoffeZ ===== */
.home-why {
  padding: 64px 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.home-why-head { margin-bottom: 42px; }
.home-why-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #B8860B);
  color: #2E1B10;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .5px;
  box-shadow: 0 4px 12px rgba(212,175,55,.35);
  margin-bottom: 16px;
}
.home-why h2 {
  font-size: clamp(24px, 5vw, 36px);
  color: var(--coffee-900);
  margin: 0;
  font-weight: 900;
}

.home-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}
.home-why-card {
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(62,39,22,.12);
}
.home-why-icon {
  font-size: 48px;
  margin-bottom: 14px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.1));
}
.home-why-card h3 {
  font-size: 18px;
  color: var(--coffee-900);
  margin: 0 0 10px;
  font-weight: 900;
}
.home-why-card p {
  color: var(--coffee-700);
  line-height: 1.75;
  font-size: 14px;
  margin: 0;
}

.home-why-cta { margin-top: 20px; }
.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
  font-weight: 900;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(212,175,55,.35);
}

/* ===== More services ===== */
.home-services {
  background: linear-gradient(180deg, var(--cream-100) 0%, var(--cream-50) 100%);
  padding: 64px 20px;
  border-top: 1px solid var(--border);
}
.home-services .container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.home-services-title {
  font-size: clamp(22px, 5vw, 32px);
  color: var(--coffee-900);
  margin: 0 0 10px;
  font-weight: 900;
}
.home-services-sub {
  color: var(--coffee-700);
  margin: 0 0 40px;
  font-size: 16px;
}
.home-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.home-service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(62,39,22,.12);
  border-color: var(--gold);
}
.home-service-featured {
  background: linear-gradient(135deg, var(--coffee-900), var(--coffee-700));
  color: #fff;
  border: 2px solid var(--gold);
}
.home-service-featured h3 { color: var(--gold); }
.home-service-featured p { color: rgba(255,255,255,.82); }
.home-service-featured .home-service-arrow { color: var(--gold); }

.home-service-icon {
  font-size: 48px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.1));
}
.home-service-card h3 {
  font-size: 18px;
  margin: 0;
  font-weight: 900;
  color: var(--coffee-900);
}
.home-service-card p {
  color: var(--coffee-700);
  line-height: 1.75;
  font-size: 14px;
  margin: 0;
  flex: 1;
}
.home-service-arrow {
  margin-top: 6px;
  font-weight: 900;
  color: var(--gold);
  font-size: 14px;
}

/* ===== Global guard: prevent any horizontal scroll on mobile ===== */
html, body { overflow-x: hidden; }
body[data-page="home"] { overflow-x: hidden; max-width: 100vw; }

/* ===== Mobile tuning ===== */
@media (max-width: 600px) {
  .home-hero { min-height: auto; padding: 0; }
  .home-hero-content {
    padding: 50px 16px 50px;
    max-width: 100%;
  }
  .home-hero-eyebrow {
    font-size: 11px;
    padding: 6px 14px;
    margin-bottom: 18px;
  }
  .home-hero-title {
    font-size: clamp(24px, 8vw, 36px);
    margin-bottom: 14px;
  }
  .home-hero-sub {
    font-size: 14px;
    margin-bottom: 26px;
    padding: 0 6px;
  }

  /* Critical: stack the two CTA buttons vertically on mobile */
  .home-hero-ctas {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 360px;
  }
  .home-cta {
    padding: 16px 18px;
    gap: 14px;
  }
  .home-cta-icon { font-size: 30px; }
  .home-cta-title { font-size: 15px; }
  .home-cta-sub { font-size: 11px; }

  .home-stats { padding: 24px 16px; }
  .home-stats-grid { gap: 12px; }
  .home-stat-num { font-size: 26px; }

  .home-why, .home-services { padding: 42px 16px; }
  .home-why-grid, .home-services-grid { gap: 14px; }
  .home-why-card, .home-service-card { padding: 22px 18px; }
}

/* Ultra-narrow devices (≤360px) */
@media (max-width: 360px) {
  .home-hero-title { font-size: 22px; }
  .home-hero-content { padding: 40px 14px 40px; }
}
