/* ==========================================================================
   home.css — Homepage-specific styles
   Mcmoren Multiservices Limited
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-bg-dark);
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 3rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Mobile-first: ensure content doesn't overflow horizontally */
@media (max-width: 767px) {
  .hero__content {
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }
  
  .hero__headline {
    font-size: 2rem;
    padding: 0 0.5rem;
  }
  
  .hero__subheadline {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  
  .hero__ctas {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }
  
  .hero__ctas .btn {
    width: 100%;
  }
}

.hero__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: floatUpDown 3s ease-in-out infinite;
  transform-origin: center center;
}

.hero-logo-card {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-logo-card img {
  width: 60px;
  height: auto;
  object-fit: contain;
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--color-text-light);
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
  overflow: hidden;
}

/* Each line for GSAP fromTo stagger */
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
}

.hero-line--accent {
  color: var(--color-accent);
}

.hero__subheadline {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.hero__subheadline--visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
}

.hero__ctas--visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  opacity: 0;
  transition: opacity 0.6s ease 1s;
}

.hero__service-pills--visible {
  opacity: 1;
}

.hero__service-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.875rem;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
}

.hero__service-pill svg {
  color: var(--color-accent);
  width: 0.875rem;
  height: 0.875rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s ease 1.2s;
}

.hero__scroll--visible {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Stats Bar
   -------------------------------------------------------------------------- */
.stats-bar {
  background-color: var(--color-primary);
  border-top: 3px solid var(--color-accent);
  padding: 3rem 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
}

/* Mobile-first: single column stats on small screens */
@media (max-width: 480px) {
  .stats-bar__grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (min-width: 768px) {
  .stats-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats-bar__divider {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   About Preview
   -------------------------------------------------------------------------- */
.about-preview__visual {
  position: relative;
}

.about-preview__img-main {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  height: 360px;
}

.about-preview__img-sub {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 55%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-bg);
  object-fit: cover;
  height: 180px;
  display: none;
}

@media (min-width: 768px) {
  .about-preview__img-sub {
    display: block;
  }
}

.about-preview__gold-frame {
  position: absolute;
  top: -1rem;
  left: -1rem;
  right: 2rem;
  bottom: 2rem;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
  display: none;
}

@media (min-width: 768px) {
  .about-preview__gold-frame {
    display: block;
  }
}

.about-preview__floating-card {
  position: absolute;
  top: 1.5rem;
  left: -1.5rem;
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 180px;
  display: none;
}

@media (min-width: 1024px) {
  .about-preview__floating-card {
    display: flex;
  }
}

.about-preview__floating-card-icon {
  color: var(--color-accent);
  font-size: 1.5rem;
}

.about-preview__floating-card-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.about-preview__floating-card-text span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.about-preview__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.about-preview__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.about-preview__link:hover {
  gap: 0.7rem;
}

/* --------------------------------------------------------------------------
   Services Preview Section
   -------------------------------------------------------------------------- */
.services-preview {
  background-color: var(--color-bg);
  position: relative;
}

.services-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 30px,
    rgba(26, 60, 94, 0.02) 30px,
    rgba(26, 60, 94, 0.02) 31px
  );
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Why Choose Us Preview (dark section)
   -------------------------------------------------------------------------- */
.why-us {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-bg-dark) 100%);
}

.why-us .section__header h2 {
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   Trust Banner
   -------------------------------------------------------------------------- */
.trust-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  padding: 2.5rem 1rem;
  text-align: center;
}

/* Mobile: stack trust badges in 2x2 grid */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
}

@media (min-width: 768px) {
  .trust-badges {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .trust-banner {
    padding: 4rem 0;
  }
}

.trust-banner__quote {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.4;
  padding: 0 0.5rem;
}

/* --------------------------------------------------------------------------
   CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary) 100%);
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-banner {
    padding: 6rem 0;
  }
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-banner__content {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.cta-banner__sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.0625rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
