/* Kayana Souvenir — Landing page styles */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); font-weight: 700; }
p { color: var(--color-ink-soft); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.bg-alt { background: var(--color-paper-2); }
.eyebrow {
  display: inline-block; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-deep);
  margin-bottom: 0.85rem;
}
.lead { font-size: var(--text-lg); color: var(--color-ink-soft); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-pill); font-weight: 700;
  font-size: var(--text-sm); white-space: nowrap; line-height: 1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn:active { transform: translateY(1px); }

/* Action button — WhatsApp green, used for every "order" CTA */
.btn-wa { background: var(--color-wa); color: #07321A; box-shadow: var(--shadow-sm); }
.btn-wa:hover { background: var(--color-wa-deep); color: #042113; }

.btn-ghost { background: transparent; color: var(--color-ink); border: 1.5px solid var(--color-line); }
.btn-ghost:hover { background: var(--color-surface); border-color: var(--color-accent); color: var(--color-accent-deep); }

.btn-lg { padding: 1.05rem 2rem; font-size: var(--text-base); }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0.85rem 0.85rem auto; z-index: var(--z-nav);
  max-width: var(--container); margin-inline: auto; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
  background: rgba(245, 242, 236, 0.78); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--color-line); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 50%; background: var(--color-accent);
  color: #fff; display: grid; place-items: center; font-size: 1rem; font-weight: 800;
}
.brand small { font-weight: 600; color: var(--color-ink-soft); font-size: 0.7rem; letter-spacing: 0.05em; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; font-size: var(--text-sm); font-weight: 600; }
.nav-links a { color: var(--color-ink-soft); transition: color var(--dur-fast) var(--ease); }
.nav-links a:hover { color: var(--color-accent-deep); }
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
@media (max-width: 880px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(7rem, 12vh, 9rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  grid-template-columns: 1.05fr 1fr;
}
.hero h1 { font-size: var(--text-hero); margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--color-accent); }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; left: -0.6rem; bottom: 1.2rem; background: var(--color-surface);
  border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: 0.8rem 1.05rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 0.7rem;
}
.hero-badge strong { font-size: 1.35rem; font-weight: 800; display: block; line-height: 1; }
.hero-badge span { font-size: var(--text-xs); color: var(--color-ink-soft); }
.hero-badge .star { color: var(--color-accent); width: 1.6rem; height: 1.6rem; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 16 / 12; }
}

/* ---------- Stats bar ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.4rem 0.5rem; }
.stat + .stat { border-left: 1px solid var(--color-line); }
.stat strong { display: block; font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); font-weight: 800; color: var(--color-accent-deep); line-height: 1; }
.stat span { font-size: var(--text-sm); color: var(--color-ink-soft); }
@media (max-width: 680px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--color-line); }
}

/* ---------- Keunggulan (split: image + 2x2 feature grid) ---------- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.feature-ico {
  width: 48px; height: 48px; border-radius: 14px; background: var(--color-accent-tint);
  color: var(--color-accent-deep); display: grid; place-items: center; margin-bottom: 0.9rem;
}
.feature-ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.feature p { font-size: var(--text-sm); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split-figure { display: none; }
}
/* Keunggulan: tetap 2 kolom + lebih ringkas di mobile */
@media (max-width: 600px) {
  .feature-grid { gap: 1rem 0.85rem; }
  .feature-ico { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 0.55rem; }
  .feature-ico svg { width: 21px; height: 21px; }
  .feature h3 { font-size: 0.98rem; margin-bottom: 0.25rem; }
  .feature p { font-size: 0.82rem; line-height: 1.4; }
}

/* ---------- Section head ---------- */
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 0.75rem; }

/* ---------- Category filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.chip {
  padding: 0.5rem 1.05rem; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 600;
  background: var(--color-surface); border: 1.5px solid var(--color-line); color: var(--color-ink-soft);
  transition: all var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--color-accent); color: var(--color-accent-deep); }
.chip[aria-pressed="true"] { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }

/* ---------- Product grid ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }
.card {
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-accent-tint); }
.card-media { position: relative; overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform var(--dur) var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-zoom {
  position: absolute; inset: auto 0.6rem 0.6rem auto; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--color-ink); display: grid; place-items: center;
  opacity: 0; transform: translateY(6px); transition: all var(--dur) var(--ease); box-shadow: var(--shadow-sm);
}
.card:hover .card-zoom, .card-zoom:focus-visible { opacity: 1; transform: translateY(0); }
.card-zoom svg { width: 18px; height: 18px; }
.card-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.card-cat { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent-deep); }
.card-body h3 { font-size: 1.05rem; font-weight: 700; }
.card-price { font-size: var(--text-sm); color: var(--color-ink-soft); margin-bottom: 0.85rem; }
.card-price b { color: var(--color-ink); font-weight: 800; }
.card .btn { margin-top: auto; }
@media (max-width: 1000px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .products { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; } }
/* Compact marketplace cards on mobile (2 columns) */
@media (max-width: 520px) {
  .card-body { padding: 0.7rem 0.75rem 0.85rem; }
  .card-cat { font-size: 0.64rem; }
  .card-body h3 { font-size: 0.92rem; line-height: 1.25; }
  .card-price { font-size: 0.8rem; margin-bottom: 0.65rem; }
  .card .btn { padding: 0.6rem 0.6rem; font-size: 0.82rem; gap: 0.35rem; }
  .card-zoom { width: 32px; height: 32px; opacity: 1; transform: none; }
}
@media (max-width: 340px) { .products { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); align-items: start; }
.testi {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius); padding: 1.6rem;
}
.testi.feature-quote { background: var(--color-ink); color: #fff; }
.testi.feature-quote p { color: rgba(255,255,255,0.9); }
.testi.feature-quote .testi-name { color: #fff; }
.testi-stars { display: flex; gap: 2px; color: var(--color-accent); margin-bottom: 0.9rem; }
.testi-stars svg { width: 18px; height: 18px; }
.testi.feature-quote .testi-stars { color: #F0A07A; }
.testi blockquote { font-size: var(--text-base); line-height: 1.6; margin-bottom: 1.3rem; }
.testi-person { display: flex; align-items: center; gap: 0.75rem; }
.testi-person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi-name { font-weight: 700; font-size: var(--text-sm); }
.testi-role { font-size: var(--text-xs); color: var(--color-ink-soft); }
.testi.feature-quote .testi-role { color: rgba(255,255,255,0.65); }
@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--color-line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 0.25rem; text-align: left; font-weight: 700; font-size: var(--text-lg);
}
.faq-q svg { width: 22px; height: 22px; flex: none; color: var(--color-accent); transition: transform var(--dur) var(--ease); }
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height var(--dur) var(--ease); }
.faq-a p { padding: 0 0.25rem 1.3rem; font-size: var(--text-base); }

/* ---------- Final CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-deep) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter);
  text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 0.9rem; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 50ch; margin: 0 auto 2rem; }
.cta-band .btn-wa { box-shadow: 0 10px 30px rgba(7,50,26,0.35); }
.cta-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 1.75rem; font-size: var(--text-sm); color: rgba(255,255,255,0.9); }
.cta-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.cta-meta svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.footer { padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--color-line); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.footer p { font-size: var(--text-sm); }
.footer .brand { font-size: 1.05rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.3rem; font-size: var(--text-sm); color: var(--color-ink-soft); }
.footer-contact a:hover { color: var(--color-accent-deep); }
.footer-legal { width: 100%; border-top: 1px solid var(--color-line); margin-top: 1.5rem; padding-top: 1.5rem; font-size: var(--text-xs); color: var(--color-ink-soft); }

/* ---------- Floating WA ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: var(--z-float);
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--color-wa); color: #07321A; font-weight: 700; font-size: var(--text-sm);
  padding: 0.85rem 1.2rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.wa-float:hover { background: var(--color-wa-deep); transform: translateY(-2px); }
.wa-float svg { width: 1.5rem; height: 1.5rem; }
.wa-float .wa-label { display: inline; }
@media (max-width: 520px) { .wa-float .wa-label { display: none; } .wa-float { padding: 0.95rem; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal); display: none;
  align-items: center; justify-content: center; padding: 1.25rem;
  background: rgba(20, 16, 12, 0.82); backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 720px); max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 1.1rem; right: 1.1rem; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: #fff; display: grid; place-items: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.28); }
.lightbox-close svg { width: 22px; height: 22px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
