/* ============================================================
   ELYRA ZEN — HOME PAGE STYLES
============================================================ */

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: var(--nav-h);

  padding-left: max(var(--gutter), calc(50vw - (var(--container) / 2)));
  padding-right: max(var(--gutter), calc(50vw - (var(--container) / 2)));

  position: relative;
  overflow: hidden;
  gap: 2rem;
}

/* ── HERO BACKGROUND IMAGE ──────────────────────────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--black); 
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.45));
  z-index: 1;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(184, 150, 62, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 150, 62, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  padding: 4rem 0;
  animation: fadeUp 1s ease both;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
  display: block;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-headline {
  margin-bottom: 1.6rem;
  color: var(--white);
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 44ch;
  line-height: 1.8;
  margin-bottom: 2.4rem;
  animation: fadeUp 0.8s ease 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.4s both;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 520px;
  animation: fadeIn 1.2s ease 0.5s both;
}

/* ── PHILOSOPHY ─────────────────────────────────────────── */
.philosophy {
  padding: 8rem 0;
  background: #FFFEFA;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.philosophy-text {
  padding-right: 2rem;
}

.philosophy-text .section-headline {
  margin-bottom: 1.6rem;
}

.philosophy-text .body-text {
  margin-bottom: 2rem;
}

.philosophy-pillars {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.pillar {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--light-grey);
}

.pillar:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pillar-icon {
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pillar p {
  font-size: 0.92rem;
  color: var(--mid-grey);
  line-height: 1.7;
}

/* ── ECOSYSTEM PREVIEW ──────────────────────────────────── */
.ecosystem-preview {
  padding: 8rem 0;
}

.ecosystem-preview .section-headline {
  margin-bottom: 4rem;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.5rem;
}

.eco-card {
  background: var(--off-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  border: 1px solid transparent;
  height: 100%;
}

.eco-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.eco-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.eco-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lighting-placeholder { background: linear-gradient(135deg, #FFF9EC, #F5EDD8, #EDE0C0); }
.security-placeholder { background: linear-gradient(135deg, #F0F0F0, #E2E2E2, #D8D5CE); }
.motors-placeholder { background: linear-gradient(135deg, #EFF3F5, #E2EBF0, #D0DDE6); }
.cctv-placeholder { background: linear-gradient(135deg, #F2EFF5, #E8E2EE, #D8D0E2); }
.hub-placeholder { background: linear-gradient(135deg, #0D0D0D, #1A1A1A, #262626); }

.eco-card-body {
  padding: 1.4rem 1.6rem;
  flex: 1;
}

.eco-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.eco-card-body p {
  font-size: 0.87rem;
  color: var(--mid-grey);
  line-height: 1.65;
}

.eco-arrow {
  position: absolute;
  bottom: 1.2rem;
  right: 1.4rem;
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
}

.eco-card:hover .eco-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── STATS BAND ─────────────────────────────────────────── */
.stats-band {
  padding: 5rem 0;
  background: var(--black);
  color: var(--white);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stat-lbl {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
}

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testimonials {
  padding: 8rem 0;
  background: var(--off-white);
}

.testimonial-track {
  margin-top: 3rem;
  position: relative;
  min-height: 200px;
}

.testimonial-card {
  display: none;
  animation: fadeIn 0.6s ease;
}

.testimonial-card.active {
  display: block;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--charcoal);
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.testimonial-author strong {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.92rem;
  display: block;
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--mid-grey);
  letter-spacing: 0.05em;
}

.testimonial-dots {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--light-grey);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.dot.active {
  background: var(--gold);
  border-color: var(--gold);
}

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 2rem);
  }

  .hero-visual { height: 320px; }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .philosophy-text { padding-right: 0; }

  .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; }

  .btn-gold, .btn-ghost {
    text-align: center;
    justify-content: center;
  }

  .stat-divider { display: none; }

  .ecosystem-grid { grid-template-columns: 1fr; }
}