/* =====================================================
   Dua Putra Furniture Jepara — Stylesheet
   Palet: krem hangat, cokelat jati, hijau sage segar
   ===================================================== */

:root {
  --cream: #faf6ef;
  --cream-dark: #f3ecdf;
  --teak: #6b4226;
  --teak-dark: #4e2f1a;
  --teak-light: #9a6b45;
  --sage: #7d9b76;
  --sage-dark: #5c7a56;
  --ink: #2e2620;
  --muted: #6f655b;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(78, 47, 26, .12);
  --shadow-sm: 0 4px 14px rgba(78, 47, 26, .10);
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset & dasar ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--teak); color: var(--white);
  padding: 10px 18px; z-index: 200; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tipografi section ---------- */
.section__label {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--sage-dark);
  background: rgba(125, 155, 118, .14);
  padding: 6px 16px; border-radius: 99px; margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.2; color: var(--teak-dark);
  margin-bottom: 18px; font-weight: 700;
}
.section__title span { color: var(--teak-light); font-style: italic; }
.section__desc { color: var(--muted); max-width: 560px; margin-inline: auto; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 52px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 99px;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: var(--transition); border: 2px solid transparent;
}
.btn--primary {
  background: var(--sage-dark); color: var(--white);
  box-shadow: 0 8px 20px rgba(92, 122, 86, .35);
}
.btn--primary:hover { background: var(--sage); transform: translateY(-3px); }
.btn--ghost {
  border-color: rgba(255, 255, 255, .85); color: var(--white);
  background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .25); transform: translateY(-3px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: var(--transition);
  padding: 18px 0;
}
.header.scrolled {
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teak), var(--teak-dark));
  color: #f5ead9; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.nav__logo-text {
  font-family: var(--font-head); font-size: 1.15rem;
  color: var(--white); transition: var(--transition); line-height: 1.15;
}
.nav__logo-text em { font-style: italic; color: #e9d9bd; display: block; font-size: .85em; }
.header.scrolled .nav__logo-text { color: var(--teak-dark); }
.header.scrolled .nav__logo-text em { color: var(--teak-light); }

.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__link {
  padding: 9px 14px; border-radius: 99px; font-weight: 600;
  font-size: .95rem; color: rgba(255, 255, 255, .92); transition: var(--transition);
}
.nav__link:hover { background: rgba(255, 255, 255, .18); }
.header.scrolled .nav__link { color: var(--ink); }
.header.scrolled .nav__link:hover { background: var(--cream-dark); }
.nav__cta {
  margin-left: 8px; padding: 10px 20px; border-radius: 99px;
  background: var(--sage-dark); color: var(--white);
  font-weight: 700; font-size: .95rem; transition: var(--transition);
  box-shadow: 0 6px 16px rgba(92, 122, 86, .35);
}
.nav__cta:hover { background: var(--sage); transform: translateY(-2px); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px; z-index: 110;
}
.nav__toggle span {
  width: 26px; height: 3px; border-radius: 3px;
  background: var(--white); transition: var(--transition);
}
.header.scrolled .nav__toggle span, .nav__toggle.active span { background: var(--teak-dark); }
.nav__toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px 0 80px; color: var(--white);
}
.hero__bg {
  position: absolute; inset: 0;
  background: url('../assets/img/hero.jpg') center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(46, 32, 20, .82) 8%, rgba(46, 32, 20, .55) 48%, rgba(46, 32, 20, .25) 100%);
}
.hero__content { position: relative; z-index: 1; max-width: 1140px; }
.hero__badge {
  display: inline-block; padding: 8px 20px; border-radius: 99px;
  background: rgba(125, 155, 118, .25); border: 1px solid rgba(255, 255, 255, .35);
  font-size: .85rem; font-weight: 600; letter-spacing: .08em;
  margin-bottom: 22px; backdrop-filter: blur(6px);
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  line-height: 1.15; margin-bottom: 20px; max-width: 15ch;
}
.hero__title span { color: #ffd9a0; font-style: italic; }
.hero__text { max-width: 54ch; font-size: 1.08rem; color: rgba(255, 255, 255, .92); margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .95rem; }
.hero__points li { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .9); }
.hero__points li::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage); box-shadow: 0 0 0 4px rgba(125, 155, 118, .3);
}

/* ---------- Keunggulan ---------- */
.features { padding-top: clamp(56px, 7vw, 90px); }
.features__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  margin-top: -90px; position: relative; z-index: 2;
}
.feature-card {
  background: var(--white); border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow);
  transition: var(--transition); border-top: 4px solid transparent;
}
.feature-card:hover { transform: translateY(-8px); border-top-color: var(--sage); }
.feature-card__icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(125, 155, 118, .18), rgba(154, 107, 69, .15));
  color: var(--teak); display: grid; place-items: center; margin-bottom: 16px;
}
.feature-card__icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-family: var(--font-head); font-size: 1.15rem; color: var(--teak-dark); margin-bottom: 8px; }
.feature-card p { font-size: .94rem; color: var(--muted); }

/* ---------- Tentang ---------- */
.about { background: var(--white); }
.about__grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.about__media { position: relative; }
.about__media img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 3/2; object-fit: cover;
}
.about__media::before {
  content: ''; position: absolute; inset: 18px -18px -18px 18px;
  border: 3px solid var(--sage); border-radius: var(--radius); z-index: -1;
}
.about__content p { color: var(--muted); margin-bottom: 16px; }
.about__stats {
  display: flex; gap: clamp(18px, 3vw, 40px); margin-top: 26px;
  border-top: 1px solid var(--cream-dark); padding-top: 22px;
}
.about__stats dt { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--teak); }
.about__stats dd { font-size: .88rem; color: var(--muted); }

/* ---------- Produk ---------- */
.products { background: var(--cream); }
.products__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product-card__media { overflow: hidden; aspect-ratio: 1; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-card__media img { transform: scale(1.07); }
.product-card__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__body h3 { font-family: var(--font-head); font-size: 1.25rem; color: var(--teak-dark); }
.product-card__body p { font-size: .94rem; color: var(--muted); flex: 1; }
.product-card__link { font-weight: 700; color: var(--sage-dark); margin-top: 6px; transition: var(--transition); }
.product-card__link:hover { color: var(--teak); letter-spacing: .02em; }
.product-card--cta {
  background: linear-gradient(150deg, var(--teak), var(--teak-dark));
  color: var(--white); justify-content: center; align-items: center; text-align: center;
}
.product-card--cta h3 { color: var(--white); }
.product-card--cta p { color: rgba(255, 255, 255, .85); }
.product-card--cta .btn { margin-top: 10px; }

/* ---------- Custom ---------- */
.custom { background: var(--white); }
.custom__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.custom__content > p { color: var(--muted); margin-bottom: 26px; }
.custom__steps { counter-reset: step; display: grid; gap: 18px; margin-bottom: 30px; }
.custom__steps li {
  position: relative; padding-left: 58px; counter-increment: step;
}
.custom__steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  color: var(--white); font-weight: 800; font-family: var(--font-head);
  display: grid; place-items: center; box-shadow: 0 6px 14px rgba(92, 122, 86, .3);
}
.custom__steps strong { display: block; color: var(--teak-dark); font-size: 1.05rem; }
.custom__steps p { color: var(--muted); font-size: .94rem; }
.custom__media img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 3/2; object-fit: cover;
}
.custom__media { position: relative; }
.custom__media::after {
  content: 'Custom Order'; position: absolute; right: 20px; bottom: -16px;
  background: var(--teak); color: #f5ead9; font-family: var(--font-head);
  font-style: italic; padding: 12px 24px; border-radius: 99px;
  box-shadow: var(--shadow);
}

/* ---------- Testimoni ---------- */
.testimonials { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%); }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 18px;
  position: relative; transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.testimonial-card::before {
  content: '“'; position: absolute; top: 10px; right: 22px;
  font-family: var(--font-head); font-size: 4.5rem;
  color: rgba(125, 155, 118, .25); line-height: 1;
}
.testimonial-card p { color: var(--ink); font-size: .97rem; flex: 1; }
.testimonial-card__stars { color: #e9a13b; letter-spacing: 3px; font-size: 1rem; }
.testimonial-card cite { font-style: normal; font-weight: 700; color: var(--teak); font-size: .92rem; }

/* ---------- Kontak ---------- */
.contact__card {
  background: linear-gradient(135deg, var(--teak) 0%, var(--teak-dark) 100%);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 4vw, 56px); color: var(--white);
  box-shadow: 0 24px 60px rgba(78, 47, 26, .3);
}
.contact__info .section__label { background: rgba(255, 255, 255, .15); color: #cfe3c9; }
.contact__info .section__title { color: var(--white); }
.contact__info .section__title span { color: #ffd9a0; }
.contact__info p { color: rgba(255, 255, 255, .88); margin-bottom: 18px; }
.contact__info address { font-style: normal; color: rgba(255, 255, 255, .85); }
.contact__channels { display: grid; gap: 14px; align-content: center; }
.channel {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px; padding: 16px 20px; transition: var(--transition);
  backdrop-filter: blur(6px);
}
.channel:hover { background: rgba(255, 255, 255, .2); transform: translateX(6px); }
.channel svg { width: 34px; height: 34px; flex-shrink: 0; }
.channel span { display: flex; flex-direction: column; line-height: 1.35; }
.channel small { color: rgba(255, 255, 255, .75); font-size: .82rem; }
.channel--wa svg { color: #4ee07a; }
.channel--yt svg { color: #ff6b5e; }
.channel--tt svg { color: #7de3e0; }
.channel--tp svg { color: #6fdc8c; }

/* ---------- Footer ---------- */
.footer { background: #241a12; color: rgba(255, 255, 255, .8); padding-top: 60px; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px; padding-bottom: 40px;
}
.footer h3 { font-family: var(--font-head); color: var(--white); margin-bottom: 14px; font-size: 1.05rem; }
.footer p { font-size: .93rem; margin-top: 14px; max-width: 40ch; }
.footer ul { display: grid; gap: 9px; font-size: .93rem; }
.footer a:hover { color: #ffd9a0; }
.nav__logo--footer .nav__logo-text { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 20px; font-size: .85rem; text-align: center;
  color: rgba(255, 255, 255, .55);
}

/* ---------- Tombol WhatsApp mengambang ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: var(--transition);
  animation: waPulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes waPulse {
  0% { box-shadow: 0 10px 26px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .45); }
  70% { box-shadow: 0 10px 26px rgba(37, 211, 102, .45), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 26px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Animasi scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg, .wa-float { animation: none; }
}

/* ---------- Responsif ---------- */
@media (max-width: 960px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); margin-top: -70px; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .about__grid, .custom__grid, .contact__card { grid-template-columns: 1fr; }
  .custom__media { order: -1; }
}

@media (max-width: 680px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: 0; z-index: 105;
    background: rgba(250, 246, 239, .98); backdrop-filter: blur(14px);
    flex-direction: column; justify-content: center; gap: 10px;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: var(--transition);
  }
  .nav__menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { color: var(--ink); font-size: 1.15rem; }
  .nav__cta { margin: 10px 0 0; font-size: 1.05rem; }
  .features__grid, .products__grid { grid-template-columns: 1fr; }
  .hero__points { gap: 8px 18px; }
  .about__stats { flex-wrap: wrap; }
  .footer__grid { grid-template-columns: 1fr; }
}
