/* ==========================================================================
   PRO-J Books — Landing page (index.php)
   Loaded after app.css. Uses the same tokens and palette.
   ========================================================================== */

.home {
  background: var(--bg);
  color: var(--ink);
}

/* Top navigation over the hero */
.home-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 20px 5vw;
  color: #FFFFFF;
}
.home-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.home-brand:hover { color: #FFFFFF; }
.home-brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--green-500);
}
.home-links { display: flex; align-items: center; gap: 24px; }
.home-links a { color: #FFFFFF; font-size: 15px; font-weight: 500; }
.home-links a:hover { color: #D1FAE5; }

/* Hero */
.home-hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #0B2119;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  background-size: cover;
  background-position: center;
  transition: opacity 1.2s ease-in-out, transform 7s ease-out;
  will-change: opacity, transform;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 33, 25, .94) 0%, rgba(11, 33, 25, .72) 42%, rgba(11, 33, 25, .22) 100%),
    linear-gradient(0deg, rgba(11, 33, 25, .65) 0%, rgba(11, 33, 25, 0) 40%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: auto;
  padding: 170px 5vw 84px;
  color: #FFFFFF;
}
.hero-copy h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #FFFFFF;
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.hero-copy p {
  max-width: 640px;
  margin: 0;
  color: #C4E6D8;
  font-size: 18px;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.home-btn.primary {
  background: var(--green-500);
  border-color: var(--green-500);
  color: #FFFFFF;
}
.home-btn.primary:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #FFFFFF;
}
.home-btn.ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .42);
  color: #FFFFFF;
}
.home-btn.ghost:hover {
  background: rgba(255, 255, 255, .14);
  color: #FFFFFF;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  bottom: 32px;
  left: 5vw;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(11, 33, 25, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: width .4s ease-in-out, background-color .4s ease-in-out;
}
.hero-dot:hover { background: rgba(255, 255, 255, .85); }
.hero-dot.active { width: 26px; background: var(--mint); }

/* Staggered entrance for the hero copy */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero-copy > * { animation: heroRise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3) { animation-delay: .24s; }
.hero-copy > :nth-child(4) { animation-delay: .36s; }

/* Sections */
.home-section {
  max-width: 1240px;
  margin: auto;
  padding: 80px 5vw;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: 34px;
  letter-spacing: -.02em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature-card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: 1px solid var(--green-100);
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 18px;
  font-weight: 700;
}
.feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Call to action (pale green panel) */
.home-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 44px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 16px;
  color: var(--ink);
}
.home-cta h2 { margin: 0 0 8px; color: var(--ink); font-size: 28px; letter-spacing: -.02em; }
.home-cta p { margin: 0; color: var(--muted); line-height: 1.6; }
.home-cta .home-btn.primary { flex: 0 0 auto; }

/* Footer */
.home-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 5vw;
  background: var(--white);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 850px) {
  .home-links a:not(.home-btn) { display: none; }
  .home-hero { min-height: 680px; }
  .hero-copy { padding-top: 140px; }
  .hero-copy p { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .home-section { padding: 60px 5vw; }
  .home-cta { display: block; padding: 28px; }
  .home-cta .home-btn { margin-top: 18px; width: 100%; }
  .home-footer { display: block; }
  .home-footer > * { margin: 8px 0; }
}
