/* ============================================
   LEGAL NEXUS — Homepage Premium v2.0
   ============================================ */

/* ===== CINEMATIC HERO ===== */
.home-hero {
  min-height: 100vh;
  background: linear-gradient(160deg, 
    rgba(10, 10, 10, 0.95) 0%, 
    rgba(17, 17, 17, 0.88) 40%, 
    rgba(26, 26, 26, 0.82) 100%),
    url('../images/hero-home.png') center/cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Ambient glow */
.home-hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 161, 74, 0.12) 0%, transparent 60%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

/* Bottom fade to cream */
.home-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, var(--clr-cream), transparent);
  z-index: 1;
}

@keyframes heroGlow {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.12; }
  100% { transform: translate(-40px, 30px) scale(1.15); opacity: 0.2; }
}

/* Decorative geometric */
.home-hero__decor {
  position: absolute;
  bottom: 15%;
  right: 8%;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(201, 161, 74, 0.15);
  border-radius: var(--radius-lg);
  transform: rotate(15deg);
  pointer-events: none;
  animation: decorFloat 6s ease-in-out infinite alternate;
}

.home-hero__decor::after {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(201, 161, 74, 0.1);
  border-radius: var(--radius-md);
}

@keyframes decorFloat {
  0%   { transform: rotate(15deg) translate(0, 0); }
  100% { transform: rotate(18deg) translate(-10px, -15px); }
}

.home-hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.home-hero__overline {
  font-family: var(--ff-body);
  font-size: var(--fs-overline);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-ultra);
  color: var(--clr-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-lg);
}

.home-hero__overline::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--clr-accent);
}

.home-hero__title {
  font-size: var(--fs-display);
  color: var(--clr-white);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.home-hero__title .accent {
  color: var(--clr-accent);
  display: inline-block;
  position: relative;
}

.home-hero__subtitle {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-light);
  color: var(--clr-text-on-dark);
  margin-bottom: var(--space-xl);
  max-width: 540px;
  line-height: 1.8;
}

.home-hero__buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.home-hero__micro {
  font-size: var(--fs-xs);
  color: var(--clr-text-on-dark-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: var(--ls-wide);
}

.home-hero__micro::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: rgba(201, 161, 74, 0.5);
}

/* Scroll indicator */
.home-hero__scroll {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--clr-text-on-dark-muted);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-ultra);
  text-transform: uppercase;
}

.home-hero__scroll-line {
  width: 1px;
  height: 40px;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
}

.home-hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clr-accent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { top: -100%; }
  50%  { top: 100%; }
  100% { top: 100%; }
}


/* ===== SERVICES PREVIEW ===== */
.services-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

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

.services-preview .card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}

.services-preview .card__icon {
  margin: 0 auto var(--space-md);
}

.services-preview__view-all {
  text-align: center;
  margin-top: var(--space-2xl);
}


/* ===== ABOUT PREVIEW ===== */
.about-preview .split__image {
  min-height: 420px;
}

.about-preview .split__image img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}


/* ===== TESTIMONIALS ===== */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .services-preview__grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 90vh;
    background-attachment: scroll;
    padding: calc(var(--navbar-height) + 2rem) 0 4rem;
  }

  .home-hero__decor {
    display: none;
  }

  .home-hero__scroll {
    display: none;
  }

  .home-hero__buttons {
    flex-direction: column;
    width: 100%;
  }

  .home-hero__buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .home-hero {
    min-height: auto;
    padding: calc(var(--navbar-height) + 1.5rem) 0 3rem;
  }

  .home-hero__overline {
    margin-bottom: var(--space-sm);
    font-size: 0.6rem;
  }

  .home-hero__title {
    margin-bottom: var(--space-md);
  }

  .home-hero__subtitle {
    font-size: var(--fs-body);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
  }

  .home-hero__micro {
    font-size: 0.65rem;
  }

  .home-hero::before {
    width: 300px;
    height: 300px;
    right: -20%;
  }

  .home-hero::after {
    height: 100px;
  }

  .services-preview .card {
    padding: var(--space-lg) var(--space-md);
  }

  .services-preview__view-all {
    margin-top: var(--space-lg);
  }

  .about-preview .split__image {
    min-height: 250px;
  }

  .about-preview .split__image img {
    min-height: 250px;
  }

  .contact-preview__map iframe {
    height: 250px;
  }
}


/* ===== CONTACT PREVIEW ===== */
.contact-preview__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-preview__info h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-md);
}

.contact-preview__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.contact-preview__item svg {
  width: 20px;
  height: 20px;
  stroke: var(--clr-accent);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-preview__item a {
  color: var(--clr-accent);
  font-weight: var(--fw-medium);
}

.contact-preview__item a:hover {
  color: var(--clr-accent-dark);
}

.contact-preview__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 300px;
}

.contact-preview__map iframe {
  width: 100%;
  height: 340px;
  border: 0;
}

@media (max-width: 768px) {
  .contact-preview__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}
