/* =============================================================================
   ENGINEER N CO — LANDING PAGE
   =============================================================================
   Static mirror of online-store-ui-monorepo/apps/client/src/pages/Landing.
   All selectors scoped under .encLanding to avoid collisions with other
   pages in this repo. SCSS variables resolved to their reso-ui values:
     $neutral-medium → #8b93a1, $neutral-dark → #434b59, $base-white → #fff
     $border-radius-default → 12px, $font-size-default → 14px
   Breakpoints (reso-ui ResponsiveContext):
     mobile  < 640px, compact (mobile|tablet|mdDesktop) < 1024px
   ========================================================================== */

.encLanding {
  font-family: "Poppins", "Roboto", sans-serif;
  font-size: 14px;
  color: #434b59;
  background-color: #ffffff;
  min-width: 360px;
  overflow-x: hidden;
}

/* ── Shared: center container (reso-ui CenterContainer) ─────────────────── */

.encLanding .center-container {
  margin: 0 auto;
  max-width: 1280px;
}

/* ── Shared: image frame (reso-ui Image, display="fill") ────────────────── */

.encLanding .enc-img {
  overflow: hidden;
  display: block;
  position: relative;
}

.encLanding .enc-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Shared: button (reso-ui Button, type="plain" size="md") ────────────── */

.encLanding .enc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 120px;
  height: 40px;
  border: 1px solid #8b93a1;
  border-radius: 12px;
  background: #ffffff;
  color: #434b59;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.1s ease,
    color 0.1s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
  user-select: none;
  -webkit-user-select: none;
}

.encLanding .enc-btn:hover {
  background: #434b59;
  color: #ffffff;
}

/* ── Sections (LandingPage.scss) ────────────────────────────────────────── */

.encLanding .section {
  width: 100%;
}

.encLanding .section--alt-bg {
  background-color: #eff2f8;
}

.encLanding .section--dark-bg {
  background-color: #000000;
  color: #ffffff;
}

.encLanding .section--dark-bg h2,
.encLanding .section--dark-bg h3,
.encLanding .section--dark-bg p {
  background-color: #000000;
  color: #ffffff;
}

.encLanding .section--padded {
  padding-bottom: 90px;
}

/* ── Section headers ────────────────────────────────────────────────────── */

.encLanding .section-header {
  width: 100%;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.encLanding .section-header-copy {
  max-width: 720px;
  text-align: center;
}

.encLanding .section-header-lede {
  margin-top: 90px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 5px;
}

.encLanding .section-header-title {
  font-size: 32px;
  color: black;
  font-weight: 600;
  margin: 0 0 10px;
}

.encLanding .section-header-sub {
  font-size: 16px;
  color: black;
  margin-bottom: 80px;
}

/* ── Image hover ────────────────────────────────────────────────────────── */

.encLanding .img_scale_hover {
  transition: transform 250ms ease;
  will-change: transform;
}

.encLanding .img_scale_hover:hover {
  transform: scale(1.05);
}

/* ── Scroll-reveal animations ───────────────────────────────────────────── */

.encLanding .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 400ms ease,
    transform 400ms ease;
}

.encLanding .reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.encLanding .reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 400ms ease,
    transform 400ms ease;
}

.encLanding .reveal-stagger.is-visible > *:nth-child(1) {
  transition-delay: 0ms;
  opacity: 1;
  transform: none;
}
.encLanding .reveal-stagger.is-visible > *:nth-child(2) {
  transition-delay: 80ms;
  opacity: 1;
  transform: none;
}
.encLanding .reveal-stagger.is-visible > *:nth-child(3) {
  transition-delay: 160ms;
  opacity: 1;
  transform: none;
}
.encLanding .reveal-stagger.is-visible > *:nth-child(4) {
  transition-delay: 240ms;
  opacity: 1;
  transform: none;
}
.encLanding .reveal-stagger.is-visible > *:nth-child(5) {
  transition-delay: 320ms;
  opacity: 1;
  transform: none;
}
.encLanding .reveal-stagger.is-visible > *:nth-child(6) {
  transition-delay: 400ms;
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .encLanding .reveal,
  .encLanding .reveal-stagger > * {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Hero section ───────────────────────────────────────────────────────── */

.encLanding .hero-section-wrapper {
  overflow: hidden;
  margin-top: 0;
}

.encLanding .hero-section {
  height: calc(100dvh - 124px - 24px);
  background: url("../public/images/engineernco/hero-1-compressed.jpeg");
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.encLanding .hero-overlay {
  background-color: rgba(11, 15, 26, 0.3);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

.encLanding .hero-copy {
  margin-top: clamp(120px, 25vh, 280px);
  max-width: 640px;
  min-width: 320px;
  padding: 32px;
  text-align: center;
  margin-bottom: 28px;
}

.encLanding .hero-copy-header {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  margin: 8px 0 20px;
  color: #f8fafc;
  font-weight: 700;
}

.encLanding .hero-copy .lede {
  color: #cbd5e1;
  max-width: 640px;
  line-height: 1.6;
  font-size: 14px;
}

.encLanding .hero-cta {
  height: 52px;
  width: 200px;
  color: black;
  background: white;
  opacity: 0.9;
  border-radius: 0;
}

.encLanding .hero-cta:hover {
  background: white;
  color: black;
  opacity: 1;
}

/* ── Features / Why Us grids ────────────────────────────────────────────── */

.encLanding .features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 25px;
}

/* ── Feature card ───────────────────────────────────────────────────────── */

.encLanding .feature-card-container {
  width: max-content;
  max-width: 580px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.encLanding .feature-card-image {
  width: 580px;
  height: 300px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.encLanding .feature-card-copy {
  margin-bottom: 20px;
}

.encLanding .feature-card-copy-title {
  font-size: 28px;
  color: black;
  font-weight: 600;
  margin: 0 0 10px;
}

.encLanding .feature-card-copy-sub {
  font-size: 16px;
  color: black;
}

/* ── Products section ───────────────────────────────────────────────────── */

.encLanding .products-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 868px;
  margin: 0 auto;
  margin-bottom: 25px;
}

.encLanding .product-card-container {
  border: 2px solid black;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  cursor: pointer;
  margin-bottom: 20px;
  text-decoration: none;
  color: inherit;
  background-color: #ffffff;
}

.encLanding .product-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 500;
  border-bottom: 1px solid grey;
}

.encLanding .product-card-image--tba {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #f5f5f5;
  text-align: center;
  padding-top: 20px;
}

.encLanding .product-card-tba-text {
  font-size: 16px;
  font-weight: 500;
  color: #8b93a1;
  letter-spacing: 0.5px;
  margin: 0;
}

.encLanding .product-card-tba-link,
.encLanding .product-card-tba-link:hover {
  background: none;
  border: none;
  width: auto;
  height: auto;
  color: black;
  font-size: 14px;
  text-decoration: underline;
  padding: 0;
  opacity: 0.8;
}

.encLanding .product-card-tba-link:hover {
  opacity: 1;
}

.encLanding .product-card-copy {
  margin-bottom: 48px;
  flex: 1;
  width: 100%;
  padding: 24px;
}

.encLanding .product-card-copy-title {
  font-size: 20px;
  color: black;
  font-weight: 500;
  margin: 0 0 4px;
}

.encLanding .product-card-copy-sub {
  font-size: 14px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.encLanding .product-card-price-cta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  padding: 24px;
  padding-top: 0;
}

.encLanding .product-card-price {
  font-size: 20px;
  color: black;
  font-weight: 500;
  margin-bottom: 4px;
}

.encLanding .product-card-cta {
  background: black;
  opacity: 0.9;
  color: white;
  width: 180px;
  border-radius: 0;
}

.encLanding .product-card-cta:hover {
  background: black;
  color: white;
  opacity: 1;
}

/* ── Gallery section ────────────────────────────────────────────────────── */

.encLanding .gallery-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 25px;
}

.encLanding .gallery-card-image {
  width: 400px;
  height: 480px;
  border-radius: 10px;
}

/* ── Why Us section ─────────────────────────────────────────────────────── */

.encLanding .whyus-section {
  padding-bottom: 10px;
}

/* ── Footer section ─────────────────────────────────────────────────────── */

.encLanding .section-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  width: 100%;
  flex-direction: column;
  padding: 120px 0;
}

.encLanding .footer-brand-name {
  font-family: "Dancing Script", "DancingScript", "Poppins", cursive;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 25px;
}

.encLanding .footer-links {
  display: flex;
  gap: 24px;
  margin-bottom: 25px;
  justify-content: center;
}

.encLanding .footer-link {
  color: #8b93a1;
  font-size: 13px;
  text-decoration: none;
  transition: color 250ms ease;
}

.encLanding .footer-link:hover {
  color: #ffffff;
}

.encLanding .footer-cta {
  font-size: 13px;
  color: #8b93a1;
  margin-bottom: 20px;
}

.encLanding .footer-cta-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 250ms ease;
}

.encLanding .footer-cta-link:hover {
  color: #d1d5db;
}

.encLanding .footer-title {
  font-size: 14px;
  margin-bottom: 4px;
}

.encLanding .footer-sub {
  font-size: 12px;
}

.encLanding .footer-resolabs-link {
  color: inherit;
  text-decoration: none;
  transition: color 250ms ease;
}

.encLanding .footer-resolabs-link:hover {
  color: #ffffff;
}

/* =============================================================================
   COMPACT — mobile | tablet | mdDesktop (< 1024px)
   ========================================================================== */

@media (max-width: 1023px) {
  .encLanding .section-header {
    height: auto;
  }

  .encLanding .section-header-lede {
    margin-top: 60px;
  }

  .encLanding .section--padded {
    padding-bottom: 60px;
  }

  .encLanding .feature-card-container {
    width: 100%;
    max-width: 100%;
  }

  .encLanding .feature-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 580 / 300;
  }

  .encLanding .feature-card-copy {
    padding: 20px;
    padding-bottom: 0;
  }

  .encLanding .products-grid-container {
    width: 100%;
    max-width: 762px;
  }

  .encLanding .product-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 500;
  }

  .encLanding .gallery-grid-container {
    grid-template-columns: 1fr 1fr;
  }

  .encLanding .gallery-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 480;
  }
}

/* =============================================================================
   MOBILE (< 640px)
   ========================================================================== */

@media (max-width: 639px) {
  .encLanding .hero-section {
    height: calc(100dvh - 80px);
  }

  .encLanding .hero-copy {
    margin-top: clamp(80px, 20vh, 160px);
    padding: 20px;
  }

  .encLanding .hero-copy-header {
    font-size: clamp(24px, 6vw, 36px);
  }

  .encLanding .hero-cta {
    width: 160px;
    height: 44px;
  }

  .encLanding .section-header-lede {
    margin-top: 50px;
  }

  .encLanding .section-header-title {
    font-size: 24px;
  }

  .encLanding .section-header-sub {
    font-size: 14px;
    margin-bottom: 58px;
  }

  .encLanding .section--padded {
    padding-bottom: 40px;
  }

  .encLanding .features-grid {
    grid-template-columns: 1fr;
  }

  .encLanding .feature-card-container {
    width: 100%;
    max-width: unset;
  }

  .encLanding .feature-card-copy-title {
    font-size: 20px;
  }

  .encLanding .products-grid-container {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 0 16px;
  }

  .encLanding .product-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 500;
  }

  .encLanding .product-card-copy {
    padding: 16px;
    margin-bottom: 24px;
  }

  .encLanding .product-card-copy-title {
    font-size: 18px;
  }

  .encLanding .product-card-copy-sub {
    font-size: 13px;
  }

  .encLanding .product-card-price-cta {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .encLanding .product-card-cta {
    width: 100%;
  }

  .encLanding .gallery-grid-container {
    grid-template-columns: 1fr;
  }

  .encLanding .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}
