/*
Theme Name: Mebel Jepara
Theme URI: https://mebel-jepara.co.id
Author: Mebel Jepara Team
Author URI: https://mebel-jepara.co.id
Description: Tema custom untuk toko mebel online Jepara dengan integrasi WhatsApp order, katalog produk, dan tampilan premium berbahan kayu jati.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mebel-jepara
Tags: e-commerce, wood, furniture, whatsapp, catalog
*/

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  /* Palette – terinspirasi kayu jati & ruang elegan */
  --color-teak:       #8B5E3C;   /* coklat kayu jati */
  --color-teak-dark:  #5C3A1E;   /* kayu tua */
  --color-teak-light: #C9956A;   /* kayu muda */
  --color-cream:      #FAF6F0;   /* latar krem hangat */
  --color-linen:      #EFE8DC;   /* linen/karung goni */
  --color-charcoal:   #2C2C2C;   /* teks utama */
  --color-muted:      #7A7065;   /* teks sekunder */
  --color-wa-green:   #25D366;   /* WhatsApp hijau */
  --color-wa-dark:    #128C7E;
  --color-white:      #FFFFFF;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadow */
  --shadow-card: 0 2px 12px rgba(91,58,30,0.10);
  --shadow-hover: 0 8px 32px rgba(91,58,30,0.18);

  /* Transition */
  --transition: 0.25s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--color-teak); text-decoration: none; }
a:hover { color: var(--color-teak-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-teak-dark);
}

/* =============================================
   GOOGLE FONTS IMPORT (di functions.php)
   ============================================= */

/* =============================================
   HEADER & NAVIGASI
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-linen);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo .logo-icon {
  width: 40px;
  height: 40px;
}

.site-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-teak-dark);
  line-height: 1.1;
}

.site-logo .logo-sub {
  font-size: 0.65rem;
  color: var(--color-teak-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
}

/* Nav Menu */
.main-nav ul {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-charcoal);
  padding: var(--space-xs) 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--color-teak);
  border-bottom-color: var(--color-teak);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-wa-header {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-wa-green);
  color: var(--color-white) !important;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.btn-wa-header:hover {
  background: var(--color-wa-dark);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-teak-dark) 0%, var(--color-teak) 60%, var(--color-teak-light) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

/* Signature element: wood grain overlay pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    15deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.03) 40px,
    rgba(255,255,255,0.03) 41px
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-content {}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-teak-light);
  margin-bottom: var(--space-sm);
  border-left: 3px solid var(--color-teak-light);
  padding-left: 10px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  line-height: 1.15;
}

.hero-title em {
  color: var(--color-teak-light);
  font-style: normal;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: var(--space-lg);
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-teak-light);
  color: var(--color-white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-white);
  color: var(--color-teak-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-white);
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.5);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
}

.btn-outline:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
}

.hero-stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  max-width: 440px;
  width: 100%;
}

.hero-img-frame img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* =============================================
   SECTION COMMONS
   ============================================= */
.section {
  padding: var(--space-2xl) var(--space-md);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-teak);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: var(--space-sm);
}

.section-desc {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* =============================================
   KATEGORI PRODUK
   ============================================= */
.kategori-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.kategori-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border: 1px solid var(--color-linen);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.kategori-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--color-teak-light);
}

.kategori-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.kategori-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-teak-dark);
  font-weight: 600;
  margin-bottom: 4px;
}

.kategori-count {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* =============================================
   PRODUK CARDS
   ============================================= */
.produk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.produk-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.produk-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.produk-img-wrap {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.produk-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.produk-card:hover .produk-img-wrap img {
  transform: scale(1.06);
}

.produk-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-teak);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}

.produk-badge.new  { background: var(--color-teak-light); }
.produk-badge.sale { background: #E25C3B; }

.produk-info {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.produk-kategori {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-teak);
  font-weight: 600;
}

.produk-nama {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-teak-dark);
  font-weight: 600;
  line-height: 1.3;
}

.produk-material {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.produk-harga {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-teak-dark);
  margin-top: auto;
}

.produk-harga-note {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 400;
}

.produk-actions {
  padding: 0 var(--space-md) var(--space-md);
  display: flex;
  gap: 8px;
}

/* Tombol Order WhatsApp */
.btn-wa-order {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-wa-green);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.btn-wa-order:hover {
  background: var(--color-wa-dark);
  color: var(--color-white);
  transform: scale(1.02);
}

.btn-wa-order svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-detail {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--color-linen);
  color: var(--color-muted);
  font-size: 1rem;
  transition: border-color var(--transition), color var(--transition);
  text-decoration: none;
}

.btn-detail:hover {
  border-color: var(--color-teak);
  color: var(--color-teak);
}

/* =============================================
   SECTION KEUNGGULAN
   ============================================= */
.keunggulan { background: var(--color-teak-dark); }

.keunggulan .section-title,
.keunggulan .section-eyebrow { color: var(--color-teak-light); }
.keunggulan .section-desc    { color: rgba(255,255,255,0.65); }

.keunggulan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}

.keunggulan-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: background var(--transition);
}

.keunggulan-item:hover {
  background: rgba(255,255,255,0.1);
}

.keunggulan-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.keunggulan-item h3 {
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 6px;
}

.keunggulan-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
}

/* =============================================
   TESTIMONI
   ============================================= */
.testimoni { background: var(--color-linen); }

.testimoni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.testimoni-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}

.testimoni-stars {
  color: #F5A623;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}

.testimoni-text {
  font-size: 0.9rem;
  color: var(--color-charcoal);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.testimoni-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimoni-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-linen);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-teak);
  font-size: 0.9rem;
}

.testimoni-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-teak-dark);
}

.testimoni-kota {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-float-btn {
  width: 58px;
  height: 58px;
  background: var(--color-wa-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.wa-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

.wa-float-btn svg {
  width: 30px;
  height: 30px;
}

.wa-float-tooltip {
  background: var(--color-charcoal);
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}

.wa-float:hover .wa-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Pulse animation */
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.wa-float-btn { animation: wa-pulse 2.2s infinite; }

/* =============================================
   FORM ORDER WHATSAPP
   ============================================= */
.order-section { background: var(--color-cream); }

.order-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.order-info h2 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.order-info p {
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

.order-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.order-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-num {
  width: 30px;
  height: 30px;
  min-width: 30px;
  background: var(--color-teak);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.step-text { font-size: 0.88rem; color: var(--color-charcoal); padding-top: 4px; }

/* Form */
.order-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-linen);
}

.order-form h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-teak-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-linen);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-charcoal);
  background: var(--color-cream);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-teak);
  background: var(--color-white);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.btn-wa-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-wa-green);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  font-family: var(--font-body);
}

.btn-wa-submit:hover {
  background: var(--color-wa-dark);
  transform: translateY(-2px);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-teak-dark);
  color: rgba(255,255,255,0.75);
  padding: var(--space-2xl) var(--space-md) var(--space-lg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: var(--space-md);
}

.footer-brand .logo-text { color: var(--color-white); font-size: 1.3rem; }
.footer-brand .logo-sub  { color: var(--color-teak-light); }

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: var(--space-sm);
  color: rgba(255,255,255,0.55);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a  { font-size: 0.83rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-col a:hover { color: var(--color-teak-light); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.83rem;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.55);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .hero-inner        { grid-template-columns: 1fr; text-align: center; }
  .hero-visual       { display: none; }
  .hero-actions      { justify-content: center; }
  .hero-stats        { justify-content: center; }
  .order-wrap        { grid-template-columns: 1fr; }
  .footer-inner      { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .main-nav          { display: none; }
  .nav-toggle        { display: flex; }
  .main-nav.is-open  { display: flex; flex-direction: column; position: fixed; inset: 70px 0 0 0; background: var(--color-white); padding: var(--space-lg); z-index: 99; }
  .main-nav.is-open ul { flex-direction: column; gap: var(--space-sm); }
  .produk-grid       { grid-template-columns: 1fr 1fr; }
  .footer-inner      { grid-template-columns: 1fr; }
  .wa-float          { bottom: 20px; right: 20px; }
}

@media (max-width: 420px) {
  .produk-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
