/**
 * ELYSIAN FALSE CEILING — Home Page Styles
 * Home-specific overrides and layouts only.
 * Global design tokens, components, and base styles
 * are handled by the global-assets CSS files.
 */


/* ── Hero: Full-Viewport ─────────────────────────────────────
   The global .hero--full handles 100vh min-height.
   Home-specific: wave fill colour and fade-in sequencing.
──────────────────────────────────────────────────────────── */

.hero-wave-path {
  /* White fill so the wave visually blends into the dark
     trust-bar section immediately below the hero */
  fill: var(--color-primary);
}

/* Staggered entrance for hero text — items start hidden
   and animate in when the page body fades in */
.hero-eyebrow {
  animation: fadeSlideUp 700ms ease 200ms both;
}

.hero-title {
  animation: fadeSlideUp 700ms ease 350ms both;
}

.hero-subtitle {
  animation: fadeSlideUp 700ms ease 500ms both;
}

.hero-ctas {
  animation: fadeSlideUp 700ms ease 650ms both;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-title,
  .hero-subtitle,
  .hero-ctas {
    animation: none;
    opacity: 1;
    transform: none;
  }
}


/* ── Services Overview Section ───────────────────────────────
   15-card grid: 1 col mobile → 2 col tablet → 3 col desktop
──────────────────────────────────────────────────────────── */

.services-overview {
  /* Gentle top padding reduction so it reads close to trust bar */
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-12);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.services-cta-row {
  text-align: center;
  margin-top: var(--space-12);
}


/* ── Why Choose Elysian — Alternating Layout ─────────────────
   Two-column grid: text + image, alternating direction.
   Mobile: single column, image below text always.
──────────────────────────────────────────────────────────── */

.why-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  margin-top: var(--space-12);
}

.why-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .why-item {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  /* Reversed items: image on left, text on right */
  .why-item--reverse .why-item-text {
    order: 2;
  }

  .why-item--reverse .why-item-image {
    order: 1;
  }
}

.why-item-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.why-item-number {
  font-family: var(--font-heading);
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.why-item-title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin: 0;
}

.why-item-body {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

.why-item-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.why-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}

.why-item:hover .why-item-image img {
  transform: scale(1.03);
}

/* Gold accent line beside image */
.why-item-image::before {
  content: '';
  position: absolute;
  top: var(--space-4);
  bottom: var(--space-4);
  width: 4px;
  background: var(--color-accent);
  z-index: 1;
  border-radius: 2px;
}

.why-item--reverse .why-item-image::before {
  left: auto;
  right: 0;
}

.why-item:not(.why-item--reverse) .why-item-image::before {
  left: 0;
}


/* ── Packages Section ────────────────────────────────────────
   The global .packages-grid handles the 3-column layout.
   Home-specific: subtitle note below the grid.
──────────────────────────────────────────────────────────── */

.packages-note {
  text-align: center;
  margin-top: var(--space-10);
  color: var(--color-text-muted);
  font-size: var(--text-body-sm);
}

.packages-note a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 250ms ease;
}

.packages-note a:hover {
  color: var(--color-accent-hover);
}


/* ── Featured Projects Grid ──────────────────────────────────
   6 cards: 1 → 2 → 3 columns
──────────────────────────────────────────────────────────── */

.projects-grid-home {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-12);
}

@media (min-width: 640px) {
  .projects-grid-home {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid-home {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.projects-cta-row {
  text-align: center;
  margin-top: var(--space-12);
}


/* ── Testimonial Slider ──────────────────────────────────────
   Auto-play carousel. On mobile: 1 visible.
   Tablet: 2 visible. Desktop: 3 visible.
   Controlled via JS (home.js) by translating .testimonial-track.
──────────────────────────────────────────────────────────── */

.testimonials-section {
  /* Uses .section-surface background from global layout */
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  margin-top: var(--space-12);
  /* Slight negative margin so edge cards peek on wide screens */
}

.testimonial-track {
  display: flex;
  gap: var(--space-6);
  transition: transform 500ms ease;
  will-change: transform;
}

/* Each slide: fixed-width calculated by JS per visible count */
.testimonial-slide {
  flex: 0 0 calc(100% - var(--space-6));
  min-width: 0;
}

@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 calc(50% - var(--space-3));
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    flex: 0 0 calc(33.333% - var(--space-4));
  }
}

/* Slider controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.slider-dots {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 250ms ease, width 250ms ease;
}

.slider-dot.active {
  background: var(--color-accent);
  width: 24px;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 250ms ease, background-color 250ms ease;
  flex-shrink: 0;
}

.slider-btn:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.slider-btn:hover svg {
  stroke: var(--color-primary);
}

.slider-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-text-secondary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 250ms ease;
}

.slider-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.slider-btn:disabled:hover {
  border-color: var(--color-border);
  background: var(--color-secondary);
}

.slider-btn:disabled:hover svg {
  stroke: var(--color-text-secondary);
}

/* Review CTA row beneath the slider */
.review-cta-row {
  text-align: center;
  margin-top: var(--space-8);
}

.review-cta-row a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 250ms ease;
}

.review-cta-row a:hover {
  color: var(--color-accent);
}

.review-cta-row svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ── Service Areas ───────────────────────────────────────────
   Pill tags grid for 23 Bangalore localities
──────────────────────────────────────────────────────────── */

.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-10);
  justify-content: center;
}

.area-pill {
  display: inline-block;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  background: var(--color-secondary);
  transition: border-color 250ms ease, color 250ms ease, background-color 250ms ease;
  cursor: default;
}

.area-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(201, 168, 76, 0.06);
}


/* ── Blog Preview ────────────────────────────────────────────
   3-column grid for blog preview cards
──────────────────────────────────────────────────────────── */

.blog-grid-home {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-12);
}

@media (min-width: 768px) {
  .blog-grid-home {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid-home {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.blog-cta-row {
  text-align: center;
  margin-top: var(--space-12);
}


/* ── Final CTA Section ───────────────────────────────────────
   Dark section with centered text and two buttons
──────────────────────────────────────────────────────────── */

.final-cta-section {
  text-align: center;
}

.final-cta-section .section-title {
  color: var(--color-text-light);
  max-width: 600px;
  margin-inline: auto;
}

.final-cta-section .section-subtitle {
  color: var(--color-text-muted);
  max-width: 520px;
  margin-inline: auto;
  margin-top: var(--space-4);
}

.final-cta-btns {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-10);
}

@media (min-width: 480px) {
  .final-cta-btns {
    flex-direction: row;
    justify-content: center;
  }
}
