/* ============================================================
   BAMBUNUT — Main CSS
   Mobile-first, no framework
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Inter:wght@400;500;600&display=swap');

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --green-dark:   #2D4A1E;
  --green-mid:    #3D6128;
  --brown:        #6B4C2A;
  --brown-light:  #9C7A52;
  --cream:        #F5F0E8;
  --cream-dark:   #E8DCC8;
  --cream-deeper: #D9CEBC;
  --text:         #1A1A1A;
  --text-mid:     #4A4A4A;
  --text-light:   #777;
  --white:        #FFFFFF;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;

  --max-w: 1200px;
  --gap:   clamp(1.5rem, 4vw, 3rem);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

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

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

ul { list-style: none; }

/* ── Utilities ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 400; }

p { max-width: 68ch; }

.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-mid);
  line-height: 1.8;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--green-mid);
  border-color: var(--green-mid);
}

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--green-dark);
  color: var(--white);
}

.btn-wa {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-wa:hover, .btn-wa:focus-visible {
  background: #1ebe5d;
  border-color: #1ebe5d;
}

/* ── Header / Nav ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: -.01em;
}

.site-logo span {
  color: var(--brown);
}

.site-nav {
  display: none;
  gap: 2rem;
}

.site-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color .2s;
}
.site-nav a:hover { color: var(--green-dark); }
.site-nav a.active { color: var(--green-dark); font-weight: 600; }

.nav-wa {
  display: none;
}

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--text);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
  padding: 1.25rem clamp(1rem, 5vw, 2rem);
  gap: .25rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: .6rem 0;
  font-size: 1rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--cream-dark);
  font-weight: 500;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--green-dark); }

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .nav-wa { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--green-dark);
  color: var(--white);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(45,74,30,.55) 0%, rgba(107,76,42,.4) 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 1;
}

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

.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-dark);
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--white);
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.hero .lead {
  color: rgba(255,255,255,.82);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero-location {
  margin-top: 2.5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* ── Section base ───────────────────────────────────────────── */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-cream { background: var(--cream); }
.section-white { background: var(--white); }

.section-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header h2 { margin-bottom: .5rem; }

.section-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brown);
  display: block;
  margin-bottom: .5rem;
}

/* ── Produk grid ─────────────────────────────────────────────── */
.produk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.produk-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .2s;
}
.produk-card:hover { box-shadow: 0 4px 20px rgba(45,74,30,.12); }

.produk-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--cream-dark);
}

.produk-card-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: .85rem;
}

.produk-card-body {
  padding: 1.25rem;
}

.produk-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: .4rem;
  color: var(--green-dark);
}

.produk-card-body p {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.produk-card-body a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Tentang strip ───────────────────────────────────────────── */
.tentang-strip {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 768px) {
  .tentang-strip { grid-template-columns: 1fr 1fr; align-items: center; }
}

.tentang-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--cream-dark);
}

.tentang-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.tentang-text h2 { margin-bottom: 1rem; }
.tentang-text p  { margin-bottom: 1rem; color: var(--text-mid); }

/* ── Keunggulan ─────────────────────────────────────────────── */
.keunggulan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.keunggulan-item {
  padding: 1.5rem;
  border-left: 3px solid var(--green-dark);
}

.keunggulan-item h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  margin-bottom: .4rem;
  color: var(--green-dark);
}

.keunggulan-item p {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── Portofolio strip ────────────────────────────────────────── */
.portofolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.porto-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  background: var(--cream-dark);
}

.porto-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.porto-item:hover img { transform: scale(1.04); }

.porto-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .75rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: var(--white);
  font-size: .85rem;
  font-weight: 500;
}

.porto-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: .85rem;
}

/* ── Artikel ─────────────────────────────────────────────────── */
.artikel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.artikel-card {
  border-bottom: 2px solid var(--cream-dark);
  padding-bottom: 1.5rem;
}

.artikel-card-meta {
  font-size: .78rem;
  color: var(--text-light);
  margin-bottom: .4rem;
}

.artikel-card h3 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
  line-height: 1.4;
}

.artikel-card h3 a {
  color: var(--text);
  text-decoration: none;
}
.artikel-card h3 a:hover { color: var(--green-dark); }

.artikel-card p {
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: .75rem;
}

.artikel-card .read-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; }

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question:hover { color: var(--green-dark); }

.faq-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: var(--green-dark);
  transition: transform .2s;
}

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

.faq-answer {
  display: none;
  padding-bottom: 1rem;
  font-size: .95rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 64ch;
}

.faq-item.open .faq-answer { display: block; }

/* ── CTA Band ────────────────────────────────────────────────── */
.cta-band {
  background: var(--brown);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: .75rem;
}

.cta-band p {
  color: rgba(255,255,255,.82);
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.75);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand .site-logo {
  color: var(--white);
  display: block;
  margin-bottom: .75rem;
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  max-width: 36ch;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: .05em;
}

.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }

.footer-col ul a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
  font-size: .82rem;
  color: var(--text-light);
  padding: .75rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}

.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--green-dark); }
.breadcrumb .sep { color: var(--cream-deeper); }

/* ── WA Float Button ─────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: #25D366;
  color: var(--white);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,.25); }

.wa-float svg { width: 26px; height: 26px; fill: var(--white); }

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
