/* CIMJ — Homepage-specific styles */

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero elements animate on page load */
.hero-anim {
  animation: fadeUp 0.65s ease both;
  animation-delay: var(--anim-delay, 0s);
}

/* Scroll-triggered elements start hidden, reveal on .is-visible */
.anim-fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--anim-delay, 0s);
}
.anim-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; }
.hero-left { padding: 80px 60px 80px 80px; display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.hero h1 { font-family: var(--display); font-size: 64px; font-weight: 400; line-height: 1.08; color: var(--green-dark); }
.hero h1 em { font-style: italic; color: var(--green); }
.hero-sub { font-size: 17px; line-height: 1.75; color: var(--text-light); max-width: 440px; }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 24px; }
.stat-divider { width: 1px; background: var(--border); }
.stat-num { font-family: var(--display); font-size: 36px; font-weight: 500; color: var(--green); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; margin-top: 4px; }
.hero-right { position: relative; background: #E8F0EB; overflow: hidden; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(44,110,73,0.12) 0%, transparent 60%); }

.why-index { background: var(--green-dark); padding: 80px 80px; }
.why-index .section-label { color: #7AB596; }
.why-index h2 { font-family: var(--display); font-size: 48px; font-weight: 400; color: var(--bg); line-height: 1.2; margin-bottom: 56px; max-width: 600px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.why-card { background: #253428; padding: 40px 32px; display: flex; flex-direction: column; gap: 16px; }
.why-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; }
.why-title { font-family: var(--display); font-size: 22px; font-weight: 500; color: var(--bg); }
.why-body { font-size: 14px; line-height: 1.7; color: #9BB8A3; }

.services-preview { padding: 80px 80px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; }
.section-header h2 { font-family: var(--display); font-size: 48px; font-weight: 400; color: var(--green-dark); line-height: 1.2; }
.view-all { font-size: 14px; font-weight: 600; color: var(--green); }
.view-all:hover { text-decoration: underline; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--green); border-radius: 8px; padding: 40px 36px; display: flex; flex-direction: column; gap: 16px; }
.service-card.rpn { border-top-color: var(--accent); }
.service-card.rn  { border-top-color: var(--blue); }
.service-badge { display: inline-block; padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; align-self: flex-start; }
.service-badge.psw { background: rgba(44,110,73,0.1);  color: var(--green); }
.service-badge.rpn { background: rgba(196,123,62,0.1); color: var(--accent-text); }
.service-badge.rn  { background: rgba(74,111,165,0.1);  color: var(--blue); }
.service-title { font-family: var(--display); font-size: 26px; font-weight: 500; color: var(--green-dark); }
.service-body  { font-size: 14px; line-height: 1.7; color: var(--text-light); flex: 1; }


.promise { background: var(--surface); padding: 80px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.promise-img { border-radius: 8px; overflow: hidden; height: 500px; }
.promise-img img { width: 100%; height: 100%; object-fit: cover; }
.promise-img-mobile { display: none; }
.promise-content h2 { font-family: var(--display); font-size: 44px; font-weight: 400; color: var(--green-dark); line-height: 1.2; margin-bottom: 20px; }
.promise-content p { font-size: 16px; line-height: 1.8; color: var(--text-light); margin-bottom: 32px; }
.check-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; }
.check-icon { width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; margin-top: 2px; }
.check-item span { font-size: 15px; color: var(--text); }

.cta-band { background: var(--green); padding: 80px 80px; display: flex; justify-content: space-between; align-items: center; gap: 60px; }
.cta-band h2 { font-family: var(--display); font-size: 48px; font-weight: 400; color: var(--bg); line-height: 1.2; max-width: 560px; }
.cta-band h2 em { font-style: italic; }
.cta-right { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; flex-shrink: 0; }
.cta-sub { font-size: 13px; color: rgba(255,255,255,0.85); text-align: right; }

/* ── RESPONSIVE — 1024 px ── */
@media (max-width: 1024px) {
  .hero-left, .why-index, .services-preview, .promise, .cta-band { padding-left: 40px; padding-right: 40px; }
}

/* ── RESPONSIVE — 900 px ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .promise { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .cta-right { align-items: center; }
  .cta-sub { text-align: center; }
}

/* ── RESPONSIVE — 640 px ── */
@media (max-width: 640px) {
  .hero-left, .why-index, .services-preview, .promise, .cta-band { padding: 56px 24px; }
  .why-grid, .services-grid { grid-template-columns: 1fr; }
  .promise-img-desktop { display: none; }
  .promise-img-mobile { display: block; }
}

/* ── PRINT ── */
@media print {
  .btn-group, .view-all, .btn-primary, .btn-white { display: none; }

  .hero-anim, .anim-fade-up { animation: none; opacity: 1; transform: none; }

  .hero { display: grid; }
  .hero-left { padding: 32px; }
  .hero-right { display: block; }
  .hero-overlay { display: none; }
  .promise-img { display: block; height: auto; }
  .promise-img img { height: auto; object-fit: contain; }
  .promise-img-desktop { display: block; }
  .promise-img-mobile { display: none; }

  .why-index { background: #fff !important; border-top: 2px solid #2C6E49; padding: 40px 32px; }
  .why-index .section-label { color: #2C6E49 !important; }
  .why-index h2 { color: #1E2D1F !important; }
  .why-card { background: #f4f7f5 !important; border: 1px solid #cdd9d2; }
  .why-title { color: #1E2D1F !important; }
  .why-body { color: #555 !important; }

  .cta-band { background: #fff !important; border-top: 2px solid #2C6E49; padding: 40px 32px; }
  .cta-band h2 { color: #1E2D1F !important; }
  .cta-sub { color: #555 !important; }
  .cta-right { align-items: flex-start; }
}
