:root {
  --bg-obsidian: #0a0a0c;
  --bg-velvet: #131317;
  --bg-surface-hover: #1a1a20;
  --text-ivory: #f6f3ec;
  --text-muted: #b0aaa0;
  --accent-gold: #d6b36a;
  --accent-gold-hover: #e5c785;
  --accent-gold-ink: #12100c;
  --border-subtle: rgba(214, 179, 106, 0.2);
  --border-strong: rgba(214, 179, 106, 0.45);
  --wa-green: #1ea952;
  --wa-green-hover: #179144;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Strict 3 body font sizes below the hero */
  --fs-heading: clamp(2.1rem, 3.8vw, 3.2rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.875rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-ivory);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  background-color: var(--bg-obsidian);
  color: var(--text-ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p,
blockquote,
figure {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

.container {
  width: min(100% - 3rem, var(--container-max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding-block: 1.25rem;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms var(--ease-out), border-color 220ms var(--ease-out), padding 220ms var(--ease-out);
}

.site-header.is-scrolled,
.site-header.menu-open {
  padding-block: 0.95rem;
  background-color: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--text-ivory);
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-ivory);
  opacity: 0.86;
  white-space: nowrap;
  transition: opacity 180ms var(--ease-out), color 180ms var(--ease-out);
}

.desktop-nav a:hover {
  opacity: 1;
  color: var(--accent-gold);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  transition: border-color 180ms var(--ease-out);
}

.menu-toggle:hover {
  border-color: var(--accent-gold);
}

.menu-toggle-line {
  width: 20px;
  height: 1.5px;
  background-color: var(--text-ivory);
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  background-color: rgba(10, 10, 12, 0.98);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-top: 0.95rem;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding-block: 1rem;
}

.mobile-nav-links a {
  font-size: var(--fs-body);
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-ivory);
}

.mobile-nav-links a:last-child {
  border-bottom: none;
}

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  background-color: var(--accent-gold);
  color: var(--accent-gold-ink);
  font-size: var(--fs-body);
  font-weight: 600;
  border: 1px solid var(--accent-gold);
  border-radius: 2px;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-top: 6rem;
  padding-bottom: clamp(3.5rem, 8vh, 6rem);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 10, 12, 0.9) 0%, rgba(10, 10, 12, 0.45) 45%, rgba(10, 10, 12, 0.25) 100%),
    linear-gradient(to right, rgba(10, 10, 12, 0.72) 0%, rgba(10, 10, 12, 0.2) 55%, rgba(10, 10, 12, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7.6vw, 7.25rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.03em;
  max-width: 12ch;
  color: var(--text-ivory);
}

.hero-copy {
  margin-top: 1.5rem;
  margin-bottom: 2.25rem;
  max-width: 44ch;
  font-size: var(--fs-body);
  color: var(--text-ivory);
  opacity: 0.92;
}

/* Sections */
.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

h2 {
  font-family: var(--font-display);
  font-size: var(--fs-heading);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-ivory);
}

.section-lead {
  margin-top: 1rem;
  max-width: 52ch;
  color: var(--text-muted);
}

/* Collection Section */
.section-head-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.segmented-control {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-velvet);
}

.segmented-btn {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-subtle);
  padding: 0.65rem 1.25rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}

.segmented-btn:last-child {
  border-right: none;
}

.segmented-btn:hover {
  color: var(--text-ivory);
  background-color: var(--bg-surface-hover);
}

.segmented-btn.is-active,
.segmented-btn[aria-selected="true"],
.segmented-btn[aria-checked="true"] {
  background-color: var(--accent-gold);
  color: var(--accent-gold-ink);
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 2rem;
  margin-top: 3rem;
}

.product-item[hidden] {
  display: none;
}

.product-trigger {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
}

.product-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--bg-velvet);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms var(--ease-out);
}

.product-trigger:hover .product-media img {
  transform: scale(1.03);
}

.product-info {
  padding-top: 1.15rem;
}

.product-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.product-title {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-ivory);
  letter-spacing: 0.01em;
}

.product-price {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.product-desc {
  margin-top: 0.45rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 44ch;
}

.product-action-text {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-ivory);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 0.15rem;
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.product-trigger:hover .product-action-text {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

/* Keunggulan Section */
.section-keunggulan {
  background-color: var(--bg-velvet);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.craft-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.craft-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--bg-obsidian);
}

.craft-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefit-list {
  margin-top: 2.25rem;
  border-top: 1px solid var(--border-subtle);
}

.benefit-item {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.benefit-item h3 {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-ivory);
}

.benefit-item p {
  margin-top: 0.45rem;
  color: var(--text-muted);
  max-width: 60ch;
}

/* Kisah Section */
.section-kisah {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding-block: clamp(5rem, 10vw, 8rem);
  overflow: hidden;
}

.kisah-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.kisah-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 12, 0.94) 0%,
    rgba(10, 10, 12, 0.82) 45%,
    rgba(10, 10, 12, 0.25) 100%
  );
}

.kisah-content {
  position: relative;
  z-index: 2;
}

.kisah-text {
  max-width: 34rem;
}

.kisah-text p {
  margin-top: 1.35rem;
  color: var(--text-ivory);
  opacity: 0.9;
  max-width: 58ch;
}

/* Testimonials & FAQ Section */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.testimonial-item {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.testimonial-item:first-child {
  padding-left: 0;
}

.testimonial-item:last-child {
  border-right: none;
  padding-right: 0;
}

.testimonial-quote {
  font-size: var(--fs-body);
  color: var(--text-ivory);
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.author-name {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--accent-gold);
}

.author-city {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.faq-block {
  margin-top: clamp(4.5rem, 8vw, 6.5rem);
  max-width: 54rem;
}

.faq-list {
  margin-top: 2.25rem;
  border-top: 1px solid var(--border-subtle);
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-ivory);
  cursor: pointer;
  transition: color 180ms var(--ease-out);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--accent-gold);
}

.faq-icon {
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--accent-gold);
  transition: transform 200ms var(--ease-out);
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: 1.5rem;
  color: var(--text-muted);
  max-width: 65ch;
}

/* Closing Section */
.section-closing {
  background: radial-gradient(circle at 50% 0%, rgba(214, 179, 106, 0.12), rgba(10, 10, 12, 0) 65%);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing-inner h2 {
  max-width: 18ch;
}

.closing-copy {
  margin-top: 1.25rem;
  margin-bottom: 2.25rem;
  max-width: 50ch;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 1.75rem 3rem;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-ivory);
}

.footer-tagline {
  margin-top: 0.45rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 55ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  font-size: var(--fs-sm);
  color: var(--text-ivory);
  opacity: 0.85;
  transition: color 180ms var(--ease-out), opacity 180ms var(--ease-out);
}

.footer-links a:hover {
  color: var(--accent-gold);
  opacity: 1;
}

.footer-copyright {
  grid-column: 1 / -1;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

/* Floating WhatsApp Button */
.floating-wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 54px;
  padding-inline: 1.15rem;
  border-radius: 999px;
  background-color: var(--wa-green);
  color: #ffffff;
  border: 1px solid rgba(214, 179, 106, 0.65);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background-color 200ms var(--ease-out), transform 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

.floating-wa:hover {
  background-color: var(--wa-green-hover);
  border-color: var(--accent-gold-hover);
  transform: translateY(-2px);
}

.wa-icon {
  flex-shrink: 0;
}

/* Product Modal */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.product-modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  max-height: 90dvh;
  overflow-y: auto;
  background-color: var(--bg-velvet);
  border: 1px solid var(--border-strong);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 180ms var(--ease-out), color 180ms var(--ease-out);
}

.modal-close:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.25rem;
  align-items: center;
}

.modal-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--bg-obsidian);
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-title {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-ivory);
  padding-right: 2.5rem;
}

.modal-price {
  margin-top: 0.45rem;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
}

.modal-desc {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 48ch;
}

.modal-option-group {
  margin-top: 1.5rem;
}

.modal-option-label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-ivory);
}

.modal-cta {
  margin-top: 2rem;
  width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .craft-layout {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-item {
    padding: 1.75rem 0;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .testimonial-item:last-child {
    border-bottom: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 2rem, var(--container-max));
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .kisah-scrim {
    background: linear-gradient(
      to top,
      rgba(10, 10, 12, 0.94) 0%,
      rgba(10, 10, 12, 0.78) 55%,
      rgba(10, 10, 12, 0.45) 100%
    );
  }

  .floating-wa {
    right: 16px;
    bottom: 16px;
    width: 54px;
    padding-inline: 0;
    justify-content: center;
  }

  .floating-wa-label {
    display: none;
  }

  .footer-copyright {
    padding-right: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
