/* ==========================================================================
   KSC Beauty Clinique — Homepage Stylesheet
   ========================================================================== */

:root{
  --magenta:        #B81C8D;
  --magenta-dark:   #8F1670;
  --magenta-light:  #FBE9F4;

  --gray-900: #2B2B29;
  --gray-700: #4A4844;
  --gray-500: #6B6963;
  --gray-300: #A9A6A0;
  --gray-200: #ECE9E6;
  --gray-100: #F5F4F2;
  --white:    #FFFFFF;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-h: 76px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --container-w: 1160px;

  --ease: cubic-bezier(.25,.8,.25,1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

a{ text-decoration: none; color: inherit; }

.container{
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}

section[id]{ scroll-margin-top: calc(var(--header-h) + 10px); }

h1, h2{ font-weight: 600; margin: 0; }

.eyebrow{
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--magenta);
  margin-bottom: 10px;
}
.eyebrow--center{ display:block; text-align:center; }
.eyebrow--onhero{
  background: rgba(255,255,255,0.92);
  color: var(--magenta-dark);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.section-title{
  font-size: 28px;
  margin-bottom: 40px;
}
.section-title--center{ text-align: center; }

/* Buttons
   ========================================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn--lg{ padding: 15px 30px; font-size: 15px; }
.btn--primary{
  background: var(--magenta);
  color: var(--white);
}
.btn--primary:hover{ background: var(--magenta-dark); transform: translateY(-1px); }
.btn--onmagenta{
  background: var(--white);
  color: var(--magenta);
}
.btn--onmagenta:hover{ transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }

/* ==========================================================================
   HEADER — sticky, transparent over hero, solid on scroll
   ========================================================================== */
.site-header{
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1080px;
  z-index: 1000;
  border-radius: 22px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.5);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 8px 32px rgba(43,43,41,0.10);
  transition: box-shadow .35s var(--ease), background .35s var(--ease);
}

.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
}

.nav-logo img{ border-radius: 50%; }

.nav-links{
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a{
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color .2s var(--ease), opacity .2s ease;
}
.nav-links a:hover{ color: var(--magenta); }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  color: var(--gray-700);
  cursor: pointer;
  padding: 6px;
}

/* Sedikit lebih pekat & shadow lebih dalam setelah scroll — glass shape tetap sama */
.site-header.scrolled{
  background: rgba(255,255,255,0.82);
  box-shadow: 0 10px 36px rgba(43,43,41,0.14);
}

/* ==========================================================================
   HERO — full banner with JS-driven parallax
   ========================================================================== */
.hero{
  position: relative;
  height: 100vh;
  min-height: 560px;
  max-height: 780px;
  overflow: hidden;
}

.hero-bg{
  position: absolute;
  top: -12%; left: 0;
  width: 100%;
  height: 124%;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-200); /* fallback saat gambar belum ada */
  will-change: transform;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(30,28,27,0.4);
}

.hero-content{
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero h1{
  font-size: 44px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-sub{
  font-size: 16px;
  max-width: 480px;
  color: rgba(255,255,255,0.92);
  margin: 0 0 30px;
  line-height: 1.7;
}

/* ==========================================================================
   KENALAN DENGAN KAMI — vertical reels-style video
   ========================================================================== */
.about-video{
  background: var(--gray-100);
  padding: 72px 0;
}
.about-video__inner{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.reels-frame{
  width: 100%;
  max-width: 328px;
  margin: 0 auto;
}
.reels-frame iframe{
  border-radius: 14px !important;
}

.about-video__text h2{ font-size: 24px; margin: 0 0 14px; }
.about-video__text p{ font-size: 15px; color: var(--gray-500); line-height: 1.7; margin: 0; }

/* ==========================================================================
   LAYANAN
   ========================================================================== */
.services{ padding: 80px 0; }

.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card{
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 26px 16px;
  text-align: center;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.service-card:hover{ border-color: var(--magenta); transform: translateY(-3px); }

.service-icon{ color: var(--magenta); display: inline-flex; margin-bottom: 12px; }
.service-card p{ font-size: 14px; font-weight: 500; margin: 0; }

/* ==========================================================================
   PRODUK KAMI — parfum
   ========================================================================== */
.products{ padding: 0 0 80px; }

.products-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-frame{
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--gray-100);
}
.product-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.product-frame:hover img{ transform: scale(1.04); }

/* ==========================================================================
   KENAPA PILIH KSC
   ========================================================================== */
.why-us{ padding: 0 0 80px; }

.why-us-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-us-photo{
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.why-us-photo img{ width: 100%; height: 100%; object-fit: cover; }

.why-us-list{ display: flex; flex-direction: column; gap: 24px; }

.why-item{ display: flex; gap: 16px; align-items: flex-start; }
.why-icon{
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--magenta-light);
  color: var(--magenta);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-title{ font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.why-desc{ font-size: 14px; color: var(--gray-500); margin: 0; line-height: 1.6; }

/* ==========================================================================
   TESTIMONI
   ========================================================================== */
.testimonials{ padding: 0 0 80px; }

.testimonial-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.testimonial-card{
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.testimonial-photos{
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 160px;
}
.testimonial-photos img{ width: 100%; height: 100%; object-fit: cover; }

.testimonial-body{ padding: 20px; }
.testimonial-body p{ font-size: 14px; color: var(--gray-700); line-height: 1.6; margin: 0 0 12px; }
.testimonial-body span{ font-size: 13px; color: var(--gray-300); }

/* ==========================================================================
   CTA / KONTAK
   ========================================================================== */
.cta{
  background: var(--magenta);
  padding: 64px 0;
}
.cta-inner{ text-align: center; }
.cta h2{ font-size: 26px; color: var(--white); margin: 0 0 10px; }
.cta p{ font-size: 15px; color: rgba(255,255,255,0.85); margin: 0 0 28px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ padding: 56px 0 24px; }

.footer-grid{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand img{ border-radius: 50%; margin-bottom: 10px; }
.footer-brand p{ font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.footer-tagline{ font-size: 13px !important; font-weight: 400 !important; color: var(--gray-500); }

.footer-heading{ font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.footer-col a, .footer-col span{
  display: block;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.footer-col a:hover{ color: var(--magenta); }

.footer-copy{
  text-align: center;
  font-size: 12px;
  color: var(--gray-300);
  border-top: 1px solid var(--gray-200);
  padding-top: 20px;
  margin: 0 28px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px){
  .about-video__inner,
  .why-us-grid{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .why-us-list{ text-align: left; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .products-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; text-align: center; }
  .why-item{ justify-content: center; }
}

@media (max-width: 768px){
  .nav-links{
    position: absolute;
    top: calc(100% + 8px); left: 0; right: 0;
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-radius: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 20px 16px;
    box-shadow: 0 12px 28px rgba(43,43,41,0.12);
    display: none;
  }
  .nav-links a{ padding: 10px 0; width: 100%; }
  .nav-links.is-open{ display: flex; }
  .nav-toggle{ display: block; }

  .hero h1{ font-size: 32px; }
  .testimonial-grid{ grid-template-columns: 1fr; }
}

/* Respect reduced-motion preference: disable parallax translate */
@media (prefers-reduced-motion: reduce){
  .hero-bg{ transform: none !important; }
  html{ scroll-behavior: auto; }
}