/*
Theme Name: Kirasa Landing
Theme URI: https://wa.me/
Author: Kirasa
Description: Tema landing page Kirasa – kerajinan kulit sapi asli 100%. Nomor WhatsApp, logo, dan semua foto diatur lewat Tampilan > Sesuaikan. Halaman depan situs otomatis menampilkan landing page; template "Kirasa Landing Page" juga bisa dipilih untuk halaman mana pun.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kirasa
*/

/* =========================================================
   1. TOKEN
   ========================================================= */
:root{
  --bg:       #FBF7F2;  /* krem terang */
  --sand:     #F2E8DB;  /* krem pasir */
  --sand-2:   #E7D8C4;
  --caramel:  #A55A26;  /* cokelat kulit karamel, warna aksi */
  --caramel-2:#8A4A1E;
  --tan:      #E2B98A;  /* aksen terang di atas latar gelap */
  --espresso: #2A1A10;  /* aksen gelap */
  --text:     #2A1A10;
  --muted:    #6E5E52;
  --white:    #FFFFFF;
  --line:     rgba(42,26,16,.1);

  --font: "Montserrat", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
  --max: 1200px;
  --pad: clamp(18px, 4.5vw, 40px);
  --header: 72px;
  --shadow: 0 1px 2px rgba(42,26,16,.04), 0 12px 32px -12px rgba(42,26,16,.14);
  color-scheme: light;
}

/* =========================================================
   2. DASAR
   ========================================================= */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font); font-size:16px; font-weight:400; line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; }
h1,h2,h3{ margin:0; font-weight:800; line-height:1.08; letter-spacing:-.025em; text-wrap:balance; }
p{ margin:0; }
section[id]{ scroll-margin-top:calc(var(--header) + 12px); }
a:focus-visible, button:focus-visible, input:focus-visible{ outline:3px solid var(--caramel); outline-offset:3px; }

.wrap{ max-width:var(--max); margin:0 auto; padding:0 var(--pad); }
.section{ padding:clamp(72px, 10vw, 128px) 0; }
.h2{ font-size:clamp(1.9rem, 4vw, 3rem); max-width:20ch; }
.sub{ color:var(--muted); font-size:1.05rem; max-width:54ch; margin-top:16px; }
.eyebrow{ display:inline-block; font-size:.85rem; font-weight:700; color:var(--caramel); margin-bottom:14px; }
.accent{ color:var(--caramel); }

/* Tombol */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:54px; padding:14px 28px; border-radius:999px;
  font:700 .97rem/1.2 var(--font); text-decoration:none; cursor:pointer;
  border:2px solid transparent; transition:background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active{ transform:scale(.98); }
.btn svg{ width:20px; height:20px; flex:none; }
.btn--primary{ background:var(--caramel); color:var(--white); }
.btn--primary:hover{ background:var(--caramel-2); }
.btn--ghost{ border-color:var(--espresso); color:var(--espresso); }
.btn--ghost:hover{ background:var(--espresso); color:var(--white); }
.btn--light{ background:var(--white); color:var(--caramel); }
.btn--light:hover{ background:var(--sand); }
.btn--tan{ background:var(--tan); color:var(--espresso); }
.btn--tan:hover{ background:#EBC89F; }
.btn--sm{ min-height:44px; padding:10px 20px; font-size:.9rem; }
.btn--block{ width:100%; }

/* =========================================================
   3. PENGUMUMAN + HEADER
   ========================================================= */
.topbar{ background:var(--espresso); color:#F3E6D6; font-size:.82rem; font-weight:500; text-align:center; padding:9px var(--pad); }
.topbar span + span::before{ content:"·"; margin:0 10px; color:var(--tan); }

.header{
  position:sticky; top:0; z-index:40;
  background:rgba(251,247,242,.9);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  border-bottom:1px solid transparent; transition:border-color .3s;
}
.header.is-scrolled{ border-color:var(--line); }
.header .wrap{ display:flex; align-items:center; justify-content:space-between; gap:20px; height:var(--header); }
.logo{ font-weight:800; font-size:1.45rem; letter-spacing:.14em; text-decoration:none; }
/* GANTI LOGO (opsional): ganti teks "KIRASA" dengan <img src="URL_LOGO" alt="Kirasa" style="height:34px"> */
.nav{ display:flex; gap:28px; }
.nav a{ text-decoration:none; font-size:.92rem; font-weight:500; color:var(--muted); transition:color .2s; }
.nav a:hover{ color:var(--text); }

/* =========================================================
   4. HERO
   ========================================================= */
.hero{ padding:clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.hero .wrap{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(36px, 6vw, 80px); align-items:center; }
.hero h1{ font-size:clamp(2.5rem, 5.4vw, 4.3rem); }
.hero .sub{ font-size:1.12rem; margin-top:22px; }
.hero__cta{ display:flex; flex-wrap:wrap; gap:12px; margin-top:32px; }
.chips{ display:flex; flex-wrap:wrap; gap:10px; margin:28px 0 0; padding:0; list-style:none; }
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 14px; border-radius:999px; background:var(--white); box-shadow:var(--shadow);
  font-size:.86rem; font-weight:600;
}
.chip svg{ width:18px; height:18px; color:var(--caramel); flex:none; }

.hero__visual{ position:relative; }
.hero__img{ border-radius:var(--r-lg); overflow:hidden; background:var(--sand-2); aspect-ratio:4/5; }
.hero__img img{ width:100%; height:100%; object-fit:cover; }
.float-card{
  position:absolute; display:flex; align-items:center; gap:12px;
  background:var(--white); border-radius:var(--r-sm); box-shadow:0 20px 40px -16px rgba(42,26,16,.35);
  padding:12px 16px 12px 12px;
}
.float-card small{ display:block; font-size:.75rem; color:var(--muted); font-weight:500; }
.float-card b{ display:block; font-size:.92rem; font-weight:700; }
.float-card--name{ left:-28px; bottom:40px; }
.float-card--name .mini-swatch{
  width:84px; height:48px; border-radius:8px; display:grid; place-items:center;
  background:linear-gradient(135deg,#8E5631,#6A3E20);
  font-weight:700; font-size:.8rem; color:#4A2812; letter-spacing:.04em;
  text-shadow:0 1px 0 rgba(255,214,170,.3), 0 -1px 1px rgba(0,0,0,.5);
}
.float-card--guarantee{ right:-20px; top:36px; }
.float-card--guarantee .ico{ width:40px; height:40px; border-radius:50%; background:var(--sand); display:grid; place-items:center; color:var(--caramel); }
.float-card--guarantee svg{ width:22px; height:22px; }

/* animasi pembuka hero */
.js .hero [data-in]{ opacity:0; transform:translateY(16px); animation:in .8s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero [data-in="2"]{ animation-delay:.1s; }
.js .hero [data-in="3"]{ animation-delay:.2s; }
.js .hero [data-in="4"]{ animation-delay:.3s; }
.js .hero [data-in="5"]{ animation-delay:.15s; }
@keyframes in{ to{ opacity:1; transform:none; } }

/* =========================================================
   5. KEUNGGULAN SINGKAT (info pemesanan)
   ========================================================= */
.perks{ display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; }
.perk{ background:var(--white); border-radius:var(--r-md); padding:24px; box-shadow:var(--shadow); }
.perk .ico{ width:46px; height:46px; border-radius:14px; background:var(--sand); color:var(--caramel); display:grid; place-items:center; margin-bottom:16px; }
.perk .ico svg{ width:24px; height:24px; }
.perk b{ display:block; font-size:1.02rem; font-weight:700; line-height:1.3; }
.perk span{ display:block; margin-top:6px; font-size:.9rem; color:var(--muted); }

/* =========================================================
   6. KATALOG
   ========================================================= */
.cat-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap; margin-bottom:28px; }
.filters{ display:flex; flex-wrap:wrap; gap:8px; }
.filter{
  font:600 .9rem/1 var(--font); padding:11px 18px; border-radius:999px; cursor:pointer;
  background:var(--white); color:var(--text); border:1.5px solid var(--line); transition:all .2s;
}
.filter:hover{ border-color:var(--espresso); }
.filter[aria-pressed="true"]{ background:var(--espresso); color:var(--white); border-color:var(--espresso); }

.products{ display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; }
.card{
  background:var(--white); border-radius:var(--r-md); overflow:hidden; box-shadow:var(--shadow);
  display:flex; flex-direction:column; transition:transform .3s, box-shadow .3s;
}
.card:hover{ transform:translateY(-4px); box-shadow:0 1px 2px rgba(42,26,16,.04), 0 24px 48px -18px rgba(42,26,16,.25); }
.card[hidden]{ display:none; }
.card__img{ position:relative; aspect-ratio:1/1; background:var(--sand-2); overflow:hidden; }
.card__img img{ width:100%; height:100%; object-fit:cover; }
.badge{
  position:absolute; left:14px; top:14px;
  padding:6px 12px; border-radius:999px; background:var(--white); font-size:.76rem; font-weight:700;
}
.badge--dark{ background:var(--espresso); color:var(--white); }
/* produk unggulan tampil 2 kolom di desktop & tablet */
.card--feature{ grid-column:span 2; }
.card--feature .card__img{ aspect-ratio:2.08/1; }
.card__body{ padding:22px 22px 24px; display:flex; flex-direction:column; gap:8px; flex:1; }
.card__series{ font-size:.8rem; font-weight:600; color:var(--caramel); }
.card h3{ font-size:1.2rem; font-weight:700; letter-spacing:-.01em; line-height:1.25; }
.card p{ font-size:.93rem; color:var(--muted); }
.card__foot{ margin-top:auto; padding-top:14px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.card__foot small{ font-size:.8rem; color:var(--muted); font-weight:500; }

/* =========================================================
   7. UKIR NAMA
   ========================================================= */
.engrave{ background:var(--sand); }
.engrave .wrap{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(36px, 6vw, 80px); align-items:center; }
.uses{ display:flex; flex-wrap:wrap; gap:8px; margin:24px 0 0; padding:0; list-style:none; }
.uses li{ padding:8px 14px; border-radius:999px; background:var(--white); font-size:.86rem; font-weight:600; }
.photos{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:32px; }
.photos .ph{ border-radius:var(--r-sm); overflow:hidden; aspect-ratio:1/1; background:var(--sand-2); }
.photos img{ width:100%; height:100%; object-fit:cover; }

.studio{ background:var(--white); border-radius:var(--r-lg); padding:clamp(20px, 3vw, 32px); box-shadow:var(--shadow); }
.studio__label{ font-size:.85rem; font-weight:700; color:var(--muted); margin-bottom:14px; }
.swatch{
  position:relative; border-radius:var(--r-md); min-height:210px; display:grid; place-items:center; padding:32px 24px; text-align:center;
  background:linear-gradient(135deg, #8E5631 0%, #73431F 55%, #5E3418 100%);
  box-shadow:inset 0 2px 12px rgba(0,0,0,.25);
}
.swatch::after{ content:""; position:absolute; inset:12px; border-radius:12px; border:1.5px dashed rgba(232,200,150,.55); pointer-events:none; }
.swatch span{
  font-weight:700; font-size:clamp(1.6rem, 4.4vw, 2.5rem); letter-spacing:.06em; line-height:1.15;
  color:#4E2B14; text-shadow:0 1px 0 rgba(255,214,170,.28), 0 -1px 1px rgba(0,0,0,.55);
  word-break:break-word; max-width:100%;
}
.studio label{ display:block; margin-top:22px; font-size:.88rem; font-weight:600; }
.studio input{
  width:100%; margin-top:8px; font:500 1rem var(--font); color:var(--text);
  padding:14px 16px; border-radius:var(--r-sm); border:1.5px solid var(--line); background:var(--bg);
}
.studio input:focus{ outline:none; border-color:var(--caramel); background:var(--white); }
.studio .btn{ margin-top:16px; }
.studio__note{ margin-top:12px; font-size:.8rem; color:var(--muted); text-align:center; }

/* =========================================================
   8. CORPORATE
   ========================================================= */
.corp{ background:var(--espresso); color:#F3E6D6; border-radius:var(--r-lg); padding:clamp(28px, 5vw, 64px); }
.corp__top{ display:grid; grid-template-columns:1.2fr .8fr; gap:clamp(28px, 5vw, 64px); align-items:center; }
.corp .eyebrow{ color:var(--tan); }
.corp h2{ color:var(--white); }
.corp .sub{ color:rgba(243,230,214,.75); }
.checks{ list-style:none; margin:24px 0 0; padding:0; display:grid; gap:10px; }
.checks li{ display:flex; gap:10px; align-items:flex-start; font-size:.97rem; }
.checks svg{ width:20px; height:20px; color:var(--tan); flex:none; margin-top:3px; }
.moq{ background:rgba(255,255,255,.06); border:1px solid rgba(226,185,138,.25); border-radius:var(--r-md); padding:28px; text-align:center; }
.moq small{ display:block; font-size:.88rem; color:rgba(243,230,214,.75); font-weight:500; }
.moq strong{ display:block; font-size:clamp(3rem, 7vw, 4.4rem); font-weight:800; line-height:1; color:var(--tan); margin:10px 0 6px; letter-spacing:-.03em; }
.moq strong span{ font-size:.38em; letter-spacing:0; margin-left:4px; }
.moq .btn{ margin-top:18px; }

.gallery{ display:grid; grid-template-columns:repeat(4, 1fr); grid-auto-rows:clamp(150px, 16vw, 210px); gap:12px; margin-top:clamp(32px, 5vw, 56px); }
.gallery figure{ margin:0; border-radius:var(--r-sm); overflow:hidden; background:#3A2618; }
.gallery figure:first-child{ grid-column:span 2; grid-row:span 2; }
.gallery img{ width:100%; height:100%; object-fit:cover; transition:transform .6s; }
.gallery figure:hover img{ transform:scale(1.04); }

/* =========================================================
   9. TESTIMONI
   ========================================================= */
.reviews{ display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; margin-top:40px; }
.review{ margin:0; background:var(--white); border-radius:var(--r-md); padding:28px; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:18px; }
.stars{ display:flex; gap:3px; color:var(--caramel); }
.stars svg{ width:18px; height:18px; }
.review blockquote{ margin:0; font-size:1rem; font-weight:500; line-height:1.6; }
.review figcaption{ margin-top:auto; display:flex; align-items:center; gap:12px; padding-top:18px; border-top:1px solid var(--line); }
.review figcaption img{ width:46px; height:46px; border-radius:50%; object-fit:cover; background:var(--sand-2); flex:none; }
.review figcaption b{ display:block; font-size:.93rem; font-weight:700; }
.review figcaption span{ font-size:.82rem; color:var(--muted); }

/* =========================================================
   10. CARA PESAN
   ========================================================= */
.steps{ display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; margin:40px 0 0; padding:0; list-style:none; counter-reset:step; }
.steps li{ position:relative; background:var(--sand); border-radius:var(--r-md); padding:28px; counter-increment:step; }
.steps li::before{
  content:counter(step); display:grid; place-items:center; width:44px; height:44px; border-radius:50%;
  background:var(--caramel); color:var(--white); font-weight:800; font-size:1.05rem; margin-bottom:18px;
}
.steps b{ display:block; font-size:1.1rem; font-weight:700; }
.steps span{ display:block; margin-top:6px; font-size:.93rem; color:var(--muted); }

/* =========================================================
   11. CTA PENUTUP & FOOTER
   ========================================================= */
.closing{
  background:var(--caramel); color:var(--white); border-radius:var(--r-lg);
  padding:clamp(40px, 7vw, 88px) clamp(24px, 5vw, 64px); text-align:center;
}
.closing h2{ font-size:clamp(2rem, 4.6vw, 3.4rem); max-width:18ch; margin:0 auto; color:var(--white); }
.closing p{ margin:18px auto 0; max-width:48ch; color:rgba(255,255,255,.88); font-size:1.05rem; }
.closing .btn{ margin-top:30px; min-height:60px; padding:16px 34px; font-size:1.02rem; }
.closing small{ display:block; margin-top:14px; font-size:.85rem; color:rgba(255,255,255,.75); }

.footer{ padding:40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer .wrap{ display:flex; justify-content:space-between; align-items:center; gap:12px 24px; flex-wrap:wrap; font-size:.85rem; color:var(--muted); }
.footer .logo{ font-size:1.15rem; color:var(--text); }

/* Bar pesan menempel di bawah (HP) */
.mbar{
  display:none; position:fixed; left:0; right:0; bottom:0; z-index:60;
  padding:10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background:rgba(251,247,242,.96); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  border-top:1px solid var(--line);
  transform:translateY(110%); transition:transform .35s ease;
}
.mbar.is-on{ transform:none; }

/* =========================================================
   12. ANIMASI SCROLL
   ========================================================= */
.js .reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .js .reveal, .js .hero [data-in]{ opacity:1 !important; transform:none !important; animation:none !important; transition:none !important; }
  .card, .gallery img, .mbar{ transition:none; }
}

/* =========================================================
   13. RESPONSIF
   ========================================================= */
@media (max-width: 1024px){
  .nav{ display:none; }
  .perks{ grid-template-columns:repeat(2, 1fr); }
  .products{ grid-template-columns:repeat(2, 1fr); }
  .reviews{ grid-template-columns:1fr; max-width:640px; }
}
@media (max-width: 900px){
  .hero .wrap, .engrave .wrap, .corp__top{ grid-template-columns:1fr; }
  .hero__visual{ max-width:520px; margin:0 auto; width:100%; }
  .float-card--name{ left:12px; bottom:16px; }
  .float-card--guarantee{ right:12px; top:16px; }
  .steps{ grid-template-columns:1fr; }
}
@media (max-width: 600px){
  :root{ --header:62px; }
  body{ padding-bottom:84px; }
  .topbar{ font-size:.75rem; }
  .topbar span:nth-child(3){ display:none; }
  .header .btn{ display:none; }
  .mbar{ display:block; }
  .hero__cta .btn{ width:100%; }
  .perks{ grid-template-columns:1fr 1fr; gap:12px; }
  .perk{ padding:18px; }
  .products{ grid-template-columns:1fr; }
  .card--feature{ grid-column:auto; }
  .card--feature .card__img{ aspect-ratio:1/1; }
  .gallery{ grid-template-columns:1fr 1fr; grid-auto-rows:140px; }
  .closing .btn{ width:100%; }
}

/* =========================================================
   14. PENYESUAIAN WORDPRESS
   ========================================================= */
.admin-bar .header{ top:32px; }
@media screen and (max-width:782px){ .admin-bar .header{ top:46px; } }
.custom-logo-link{ display:inline-flex; align-items:center; }
.custom-logo{ height:36px; width:auto; }

/* Halaman/postingan biasa (selain landing page) */
.basic{ max-width:760px; margin:0 auto; padding:clamp(48px,8vw,96px) var(--pad); }
.basic__brand{ display:inline-block; font-weight:800; letter-spacing:.14em; text-decoration:none; margin-bottom:48px; }
.basic h1{ font-size:clamp(2rem,5vw,3rem); margin-bottom:24px; }
.basic article + article{ margin-top:56px; padding-top:56px; border-top:1px solid var(--line); }
.basic .entry{ color:var(--text); }
.basic .entry a{ color:var(--caramel); }
.basic .entry img{ border-radius:var(--r-sm); }
