/* ===================================================================
   Holy Joe Coffee — Homepage Styles
   =================================================================== */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../assets/banner.jpg') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

/* Dark gradient overlay with green tint for readability */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(64, 63, 43, 0.6) 0%,
    rgba(46, 39, 32, 0.7) 100%
  );
  z-index: 1;
}

/* Warm brand tint */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(166, 124, 82, 0.08);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: var(--space-xl) var(--space-md);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: var(--text-lg);
  max-width: 620px;
  margin: 0 auto var(--space-md);
  opacity: 0.92;
  line-height: 1.7;
}

.hero-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  opacity: 0.85;
  line-height: 1.6;
}

/* Staggered entrance */
.hero-title { animation: heroFadeUp 0.9s ease both; }
.hero-subtitle { animation: heroFadeUp 0.9s ease 0.15s both; }
.hero-quote { animation: heroFadeUp 0.9s ease 0.3s both; }
.hero-content .btn-primary { animation: heroFadeUp 0.9s ease 0.45s both; }

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Why Holy Joe Section --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.why-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--bg-green-light);
  color: var(--green);
  border-radius: 50%;
  margin: 0 auto var(--space-sm);
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: 12px;
}

.why-card p {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.7;
}

/* --- Team / Product Side-by-Side --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.split-text h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.split-text p {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.8;
}

/* --- Instagram Link --- */
.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--highlight);
  font-weight: 600;
  font-size: var(--text-lg);
  transition: var(--transition);
}

.instagram-link:hover {
  color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 840px) {
  .hero {
    min-height: 70vh;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .split-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .split-section .image-frame {
    max-width: 500px;
    margin: 0 auto;
  }
}
