/* ============================================
   Lilapacks Indonesia — Stylesheet
   ============================================ */

:root {
  --color-primary: #849269;
  --color-primary-dark: #6b7a55;
  --color-primary-light: #a3b08a;
  --color-primary-pale: #eef1ea;
  --color-text: #2c2c2c;
  --color-text-muted: #6b6b6b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9f6;
  --color-border: #e5e8e0;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --header-height: 80px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__header {
  margin-bottom: 56px;
}

.section__header--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

.section__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
}

.section__desc {
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--full {
  width: 100%;
}

/* Header / Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav__logo-img {
  height: 48px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-primary);
}

.nav__link--cta {
  background: var(--color-primary);
  color: #fff !important;
  margin-left: 8px;
}

.nav__link--cta:hover {
  background: var(--color-primary-dark);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 60px) 0 100px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 249, 246, 0.92) 50%, rgba(255, 255, 255, 0.85) 100%),
    url('../assets/background.jpg') center / cover no-repeat;
  z-index: -1;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__gallery {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
}

.hero__frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #ffffff;
  border: 1px solid var(--color-border);
}

.hero__slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 300px;
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  padding: 8px;
}

.hero__slide.active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.hero__dot.active,
.hero__dot:hover {
  background: var(--color-primary);
  transform: scale(1.15);
}

/* Company Profile */
.profile__sans {
  font-family: var(--font-heading);
  font-weight: 600;
}

.profile__header .section__title {
  font-weight: 700;
}
.profile__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.profile__card {
  padding: 32px 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}

.profile__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.profile__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-pale);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  color: var(--color-primary);
}

.profile__icon svg {
  width: 24px;
  height: 24px;
}

.profile__card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.profile__card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.profile__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 48px;
  background: var(--color-primary);
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
}

.stat__number {
  display: block;
  font-family: var(--font-body);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat__label {
  display: block;
  font-size: 0.875rem;
  opacity: 0.85;
  margin-top: 4px;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__images--stacked {
  max-width: 100%;
}

.about__images--stacked .about__photos {
  display: block;      /* Mematikan grid bawaan agar bisa ditumpuk posisi absolut */
  position: relative;
  height: 400px;       /* Mengatur tinggi container tumpukan */
  width: 100%;
}

/* Mengatur gambar dasar (warehouse_front) */
.about__images--stacked .about__photo--base {
  position: absolute;
  left: 0;
  top: 10px;
  width: 65%;          /* Diperbesar skalanya */
  z-index: 1;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
}

/* Mengatur gambar overlay (mesin1) agar menumpuk di depan */
.about__images--stacked .about__photo--overlay {
  position: absolute;
  right: 10px;
  bottom: -30px;
  width: 60%;          /* Diperbesar skalanya */
  z-index: 2;          /* Angka lebih besar agar berada di depan */
  box-shadow: var(--shadow-lg);
  border: 0px solid var(--color-bg); /* Memberi border putih pembatas antar gambar */
  border-radius: var(--radius-sm);
}

.about__cert {
  width: 70%;
  height: auto;
  object-fit: contain;
}

.about__content p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.about__content .section__title {
  margin-bottom: 24px;
}

.about__features {
  margin-top: 28px;
}

.about__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.about__features svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Products */
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card__image {
  height: 220px;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__body {
  padding: 24px;
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.product-card__specs {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.product-card__specs li {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  padding: 4px 0;
}

.product-card__specs strong {
  color: var(--color-text);
}

/* Marquee */
.marquee {
  overflow: hidden;
  margin-bottom: 56px;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee--reviews {
  margin-bottom: 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-slide 45s ease-in-out infinite;
}

.marquee--reviews .marquee__track {
  animation-duration: 35s;
}

.marquee__content {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee__content--reviews {
  gap: 20px;
  padding-right: 20px;
}

.marquee__img--clients {
  height: 72px;
  width: auto;
  max-width: none;
  object-fit: contain;
  padding: 0 40px;
}

.marquee__img--review {
  height: 220px;
  width: auto;
  max-width: none;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

@keyframes marquee-slide {
  0% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(-50%);
  }
  50% {
    transform: translateX(-50%);
  }
  85% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(0);
  }
}

.reviews__header {
  margin-bottom: 32px;
}

.contact__item a {
  color: var(--color-primary);
  transition: color var(--transition);
}

.contact__item a:hover {
  color: var(--color-primary-dark);
}

.footer__contact a {
  color: #aaa;
  transition: color var(--transition);
}

.footer__contact a:hover {
  color: var(--color-primary-light);
}

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact__info p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__item svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__item strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.contact__item p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

.contact__form {
  background: var(--color-bg-alt);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.form__group {
  margin-bottom: 20px;
}

.form__group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text);
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form__group textarea {
  resize: vertical;
  min-height: 100px;
}

.form__success {
  margin-top: 16px;
  padding: 12px;
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  text-align: center;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: #ccc;
  padding-top: 64px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(1.2);
}

.footer__brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer__links h4,
.footer__contact h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__links a {
  font-size: 0.875rem;
  color: #aaa;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-primary-light);
}

.footer__contact p {
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.footer__bottom {
  border-top: 1px solid #333;
  padding: 24px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: #888;
}

/* Responsive */
@media (max-width: 1024px) {
  .profile__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .marquee__img--review {
    height: 180px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }

  .nav__link--cta {
    margin-left: 0;
    text-align: center;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__gallery {
    max-width: 100%;
    margin-left: 0;
  }

  .hero__slider {
    max-height: 240px;
  }

  .profile__grid,
  .profile__stats {
    grid-template-columns: 1fr;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__photos {
    grid-template-columns: 1fr;
  }

  .products__grid {
    grid-template-columns: 1fr;
  }

  .marquee__img--clients {
    height: 56px;
    padding: 0 24px;
  }

  .marquee__img--review {
    height: 160px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
