/* ===== CSS VARIABLES ===== */
:root {
  --bg: #fff8fb;
  --bg-2: #fff;
  --text: #333;
  --muted: #666;
  --brand: #ff8fa3;
  --brand-700: #ff6370;
  --accent: #c7f0ff;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --max: 1100px;
}

/* ===== RESET ===== */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ===== Focus Visible ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}
@supports not (
  (-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))
) {
  .navbar {
    background: rgba(255, 255, 255, 0.95);
  }
}
.nav-inner {
  max-width: var(--max);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
}
.brand {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 1.25rem;
}
.brand span {
  color: var(--brand);
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 22px;
}
.nav-links a {
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  background: #fff;
}
.nav-cta {
  margin-left: 6px;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}
.nav-open .nav-links {
  position: absolute;
  inset: 60px 16px auto 16px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.nav-open .nav-links a {
  padding: 12px;
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  background: var(--brand-700);
  transform: translateY(-1px);
}
.btn .icon {
  margin-right: 8px;
  flex-shrink: 0;
  vertical-align: -0.125em;
  transition: transform 0.2s ease;
}
.btn:hover .icon {
  transform: scale(1.1);
}
.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
}
.btn.outline:hover {
  border-color: rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}
.btn.outline.soft {
  background: #fff;
  border-color: #eaeaea;
}

/* Hero buttons override */
.hero .btn.outline {
  background: #fff;
  color: #111;
  border-color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.hero .btn.outline:hover {
  background: #f7f7f7;
}

/* ===== HERO ===== */
header.hero {
  position: relative;
  isolation: isolate;
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
}
.hero-inner {
  max-width: var(--max);
  margin: auto;
  padding: 96px 18px 120px;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, calc(4vw + 1rem), 3.25rem);
  line-height: 1.15;
  margin: 0 0 10px;
}
.brand-accent {
  color: var(--brand);
}
.hero p {
  font-weight: 300;
  font-size: clamp(0.95rem, calc(0.6vw + 0.8rem), 1.15rem);
  opacity: 0.95;
  margin: 8px 0 22px;
}
.hero .cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-bg-static {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-static img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.72) saturate(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
      80% 50% at 50% 0%,
      rgba(255, 255, 255, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
}
@media (max-width: 600px) {
  .hero-inner {
    padding: 72px 16px 96px;
  }
}

/* ===== SECTION WRAPPER ===== */
section {
  scroll-margin-top: 80px;
}
.wrap {
  max-width: var(--max);
  margin: auto;
  padding: 56px 18px;
}
.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 26px;
}
.section-sub {
  max-width: 800px;
  text-align: center;
  margin: 0 auto 30px;
  color: var(--muted);
}

/* ===== SERVICES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--bg-2);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.card h3 {
  color: var(--brand);
  margin: 0 0 6px;
}
.card p {
  color: var(--muted);
  margin: 0;
}
@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* ===== SLIDER (Gallery) ===== */
.slider {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
}
.slides {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease;
  gap: 0;
  align-items: center;
}
.slide {
  margin: 0;
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
  background: #f6f6f6;
}
/* 16:9 mode */
.slider:not(.slider--compact) .slide {
  aspect-ratio: 16/9;
}
.slider:not(.slider--compact) .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Compact: gambar tidak terpotong */
.slider--compact {
  max-width: 600px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.slider--compact .slide {
  height: auto;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}
.slider--compact .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 14px;
}
@media (max-width: 480px) {
  .slider--compact .slide {
    max-height: 320px;
  }
}

.slider .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
}
.slider .nav:hover {
  background: #fff;
}
.slider .prev {
  left: 10px;
}
.slider .next {
  right: 10px;
}

.dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 10px 0 12px;
  background: #fff;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0e0e0;
  cursor: pointer;
  border: none;
}
.dot.active {
  background: var(--brand);
}

/* ===== CTA Instagram ===== */
.social-cta {
  max-width: 600px;
  margin: 12px auto 6px;
  display: grid;
  place-items: center;
}
.social-cta .btn {
  box-shadow: var(--shadow);
}

/* ===== BLOG LIST ===== */
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .blog-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .blog-list {
    grid-template-columns: 1fr;
  }
}
.post-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}
.post-cover img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
@media (max-width: 600px) {
  .post-cover img {
    height: 220px;
  }
}
.post-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-title {
  margin: 0;
  font-size: 1.1rem;
}
.post-title a {
  color: inherit;
}
.post-excerpt {
  margin: 0;
  color: var(--muted);
}

/* ===== PRICING ===== */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}
.price {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px;
}
.price-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.price .tag {
  margin-left: auto;
  background: var(--accent);
  color: #0f3b4a;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}
.price ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.price li {
  padding: 4px 0;
  color: var(--muted);
}
.price .btn {
  width: 100%;
  justify-content: center;
}
.price .spacer {
  height: auto;
}
@media (min-width: 901px) {
  .price ul {
    min-height: 6.5rem;
  }
}
@media (max-width: 900px) {
  .price ul {
    min-height: 0;
  }
}

/* ===== BADGES ===== */
.infobar {
  max-width: var(--max);
  margin: 28px auto 0;
  padding: 10px 16px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.badge {
  background: #fff;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* ===== FAQ ===== */
.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .faq {
    grid-template-columns: 1fr;
  }
}
details {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
}
summary {
  font-weight: 600;
  cursor: pointer;
}
details[open] {
  box-shadow: var(--shadow);
}

/* ===== CONTACT & FOOTER ===== */
.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }
}
iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 14px;
}
footer {
  background: #101010;
  color: #f0f0f0;
  margin-top: 50px;
}
.foot {
  max-width: var(--max);
  margin: auto;
  padding: 26px 18px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}
@media (max-width: 900px) {
  .foot {
    grid-template-columns: 1fr;
  }
}
.foot small {
  color: #bdbdbd;
}

/* ===== Floating WhatsApp ===== */
.fab-wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 16px;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  z-index: 80;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.fab-wa:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.45);
}
@media (max-width: 520px) {
  .fab-wa {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
}

/* ===== Fade-in (AMAN – default terlihat) ===== */
.fade-in {
  opacity: 1;
  transform: none;
}
.has-anim .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.5, 0, 0, 1),
    transform 0.6s cubic-bezier(0.5, 0, 0, 1);
  will-change: opacity, transform;
}
.has-anim .fade-in.is-visible {
  opacity: 1;
  transform: none;
}
.has-anim .fade-in.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

/* ===== LIGHTBOX (opsional) ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.lb-btn:hover {
  background: #fff;
}
.lightbox .close {
  top: 16px;
  right: 16px;
}
.lightbox .lb-prev {
  left: 18px;
}
.lightbox .lb-next {
  right: 18px;
}

/* ===== Reduce motion ===== */
@media (prefers-reduced-motion: reduce) {
  .slides {
    transition: none !important;
  } /* animasi slider dimatikan, fade-in tetap aman */
}
/* Optimasi gambar */
.has-anim img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.has-anim img[loading="lazy"].loaded {
  opacity: 1;
}

/* Preload gambar hero */
.link-preload {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/*mobile*/
.nav-open .nav-links {
  z-index: 60;
}
@media (max-width: 480px) {
  .hero-inner {
    padding: 60px 16px 80px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .fab-wa {
    font-size: 0.85rem;
    padding: 10px 14px;
  }
}
@media print {
  .navbar,
  .fab-wa,
  .social-cta {
    display: none !important;
  }

  .hero {
    color: #000 !important;
    min-height: auto !important;
  }
}
