/* ═══════════════════════════════════════════════════════════════════════
   SHARED STYLES - Common components used across multiple pages
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Hero Styles ─────────────────────────────────────────────────────── */

.hero-dark {
  background: #080d06;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 35% 45%, rgba(90,124,59,0.12) 0%, transparent 60%),
    radial-gradient(circle at 75% 25%, rgba(90,124,59,0.08) 0%, transparent 50%);
  opacity: 0;
  animation: heroBgFadeIn 1.2s 0.4s forwards ease-out;
  pointer-events: none;
}

@keyframes heroBgFadeIn {
  to { opacity: 1; }
}

.hero-container {
  max-width: 900px;
  position: relative;
  z-index: 1;
  text-align: center;
  opacity: 0;
  animation: heroContentFadeIn 0.8s 1s forwards ease-out;
}

@keyframes heroContentFadeIn {
  to { opacity: 1; }
}

/* Logo Loader (used in dark heroes) */
.logo-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  animation: loaderFadeOut 0.6s 0.6s forwards ease-out;
  z-index: 10;
}

@keyframes loaderFadeOut {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

/* ─── Badge Styles ────────────────────────────────────────────────────── */

.badge-dark {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(90,124,59,0.15);
  border: 1px solid rgba(90,124,59,0.35);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #8fcc6a;
  letter-spacing: 0.02em;
}

.badge-light {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(90,124,59,0.08);
  border: 1px solid rgba(90,124,59,0.2);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #5a7c3b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── Typography ──────────────────────────────────────────────────────── */

.heading-dark {
  font-family: 'Zilla Slab', serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.95);
}

.heading-light {
  font-family: 'Zilla Slab', serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #111111;
}

.script-text {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-style: italic;
}

.script-dark {
  color: #8fcc6a;
}

.script-light {
  color: #5a7c3b;
}

.subtitle-dark {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

.subtitle-light {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(0,0,0,0.6);
}

/* ─── Button & CTA Styles ─────────────────────────────────────────────── */

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: linear-gradient(135deg, #5a7c3b 0%, #6a8f47 100%);
  border: none;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(90,124,59,0.25);
}

.cta-button:hover {
  background: linear-gradient(135deg, #6a8f47 0%, #7aa055 100%);
  box-shadow: 0 6px 28px rgba(90,124,59,0.35);
  transform: translateY(-2px);
}

.cta-button-dot {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  animation: ctaDotPulse 2.5s ease-in-out infinite;
}

@keyframes ctaDotPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ─── Card Styles ─────────────────────────────────────────────────────── */

.card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.card:hover {
  border-color: rgba(90,124,59,0.25);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.card-image-placeholder {
  width: 100%;
  background: linear-gradient(135deg, #f5f7f3 0%, #e8ede4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.card-image-placeholder::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(90,124,59,0.02) 20px,
      rgba(90,124,59,0.02) 40px
    );
}

.card-image-placeholder::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 3px solid rgba(90,124,59,0.15);
  border-radius: 50%;
}

/* ─── Tag Styles ──────────────────────────────────────────────────────── */

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(90,124,59,0.06);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #5a7c3b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── Section Backgrounds ─────────────────────────────────────────────── */

.section-white {
  background: #ffffff;
}

.section-gray {
  background: #fafafa;
}

.section-dark {
  background: #080d06;
}

/* ─── Responsive Utilities ────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero-dark {
    min-height: 70vh;
    padding: 100px 20px 60px;
  }

  .heading-dark,
  .heading-light {
    font-size: 32px;
  }

  .subtitle-dark,
  .subtitle-light {
    font-size: 15px;
  }

  .cta-button {
    padding: 14px 32px;
    font-size: 14px;
  }
}
