/* ============================================================
   Percetakan Miza Mediatama — Custom Stylesheet
   Palette derived from logo: Red · Gold/Yellow · Warm Dark Brown
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --red:        #D8231C;
  --red-600:    #C21C16;
  --red-700:    #A5140F;
  --gold:       #F4B01A;
  --gold-600:   #E29A05;
  --yellow:     #FFCE1F;

  /* Neutrals (warm) */
  --ink:        #201512;   /* warm near-black brown */
  --ink-2:      #3A2A25;
  --ink-3:      #6B5A54;
  --cream:      #FBF7F0;   /* page background */
  --paper:      #FFFFFF;
  --line:       #EBE2D6;
  --line-2:     #E0D4C4;

  /* Semantic */
  --bg:         var(--cream);
  --text:       var(--ink);
  --text-soft:  #5E4E48;
  --primary:    var(--red);
  --accent:     var(--gold);

  /* Type */
  --font-head:  "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:  "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Radius & shadow */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --sh-1: 0 2px 8px rgba(32,21,18,.06), 0 1px 2px rgba(32,21,18,.08);
  --sh-2: 0 12px 30px -12px rgba(32,21,18,.18);
  --sh-3: 0 30px 60px -24px rgba(32,21,18,.28);
  --sh-red: 0 14px 30px -10px rgba(216,35,28,.45);
  --sh-gold: 0 14px 30px -10px rgba(226,154,5,.5);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .5s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.ic { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 2000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  z-index: 1500; transition: width .1s linear;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  padding: .8em 1.4em; border-radius: 999px; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  will-change: transform; line-height: 1; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { padding: .62em 1.05em; font-size: .85rem; }
.btn--lg { padding: 1em 1.7em; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--red); color: #fff; box-shadow: var(--sh-red); }
.btn--primary:hover { background: var(--red-600); transform: translateY(-3px); box-shadow: 0 20px 34px -10px rgba(216,35,28,.55); }

.btn--gold { background: var(--gold); color: var(--ink); box-shadow: var(--sh-gold); }
.btn--gold:hover { background: var(--gold-600); transform: translateY(-3px); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); transform: translateY(-3px); box-shadow: var(--sh-2); }

.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); transform: translateY(-3px); }

.btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }

/* ============================================================
   Navbar
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  padding: 14px 0;
  transition: padding .3s var(--ease);
}
/* Blurred bar background lives on a pseudo so .nav itself never becomes a
   containing block for the fixed mobile menu (backdrop-filter would trap it). */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  opacity: 0; transition: opacity .3s var(--ease);
  background: rgba(251,247,240,.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--sh-1);
}
.nav.is-scrolled::before { opacity: 1; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand__logo { height: 42px; width: auto; transition: height .3s var(--ease); }
.nav.is-scrolled { padding: 9px 0; }
.nav.is-scrolled .brand__logo { height: 36px; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; font-weight: 600; font-size: .95rem; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__link:hover { color: var(--red); }
.nav__link.is-active { color: var(--red); }
.nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { margin-left: 8px; }

.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav__toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; padding: 132px 0 80px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, #fff6e6 0%, transparent 55%),
    radial-gradient(90% 80% at 5% 0%, #fdeceb 0%, transparent 50%),
    var(--cream);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.blob--1 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(244,176,26,.5), transparent 70%); top: -120px; right: -80px; animation: float1 14s ease-in-out infinite; }
.blob--2 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(216,35,28,.28), transparent 70%); bottom: -120px; left: -60px; animation: float2 16s ease-in-out infinite; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(32,21,18,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(32,21,18,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 80%);
  mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 80%);
}
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,26px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(24px,-22px)} }

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--paper); color: var(--ink-2);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .84rem;
  box-shadow: var(--sh-1); border: 1px solid var(--line);
}
.pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); position: relative; }
.pill__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--red); opacity: .5; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0%{transform:scale(.6);opacity:.6} 100%{transform:scale(1.9);opacity:0} }

.hero__title {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2.35rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -.02em;
  margin: 22px 0 18px; color: var(--ink);
}
.hero__title .accent { color: var(--red); font-style: italic; font-weight: 500; }
.hero__title .underline { position: relative; white-space: nowrap; }
.hero__title .underline::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .04em; height: .28em; z-index: -1;
  background: linear-gradient(180deg, transparent 40%, rgba(255,206,31,.85) 40%);
  border-radius: 3px;
}
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-soft); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 34px; }

.hero__stats { display: flex; gap: clamp(18px, 4vw, 42px); flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; gap: 2px; }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--red); line-height: 1; }
.stat__num--text { color: var(--gold-600); }
.stat__label { font-size: .82rem; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }

/* Hero media */
.hero__media { position: relative; }
.hero__card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); background: var(--paper); }
.hero__card--main { position: relative; aspect-ratio: 4/3.4; border: 6px solid #fff; }
.hero__card--main img { width: 100%; height: 100%; object-fit: cover; }
.hero__card--float {
  position: absolute; width: 40%; bottom: -34px; right: -22px; aspect-ratio: 3/4;
  border: 5px solid #fff; border-radius: var(--r); box-shadow: var(--sh-2);
  animation: bob 5s ease-in-out infinite;
}
.hero__card--float img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
@keyframes bob { 0%,100%{transform:translateY(0) rotate(-2deg)} 50%{transform:translateY(-12px) rotate(-2deg)} }
.hero__badge {
  position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(32,21,18,.72); color: #fff; padding: 8px 14px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; backdrop-filter: blur(6px);
}
.hero__badge .ic { color: var(--gold); }

.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1; }
.mouse { display: block; width: 24px; height: 40px; border: 2px solid var(--ink-3); border-radius: 14px; position: relative; }
.mouse::after { content:""; position:absolute; left:50%; top:8px; width:4px; height:8px; background: var(--red); border-radius:2px; transform: translateX(-50%); animation: scrolldot 1.6s var(--ease) infinite; }
@keyframes scrolldot { 0%{opacity:0; transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0; transform:translate(-50%,12px)} }

/* Hero with branded background image */
.hero--bg { background: var(--cream); }
.hero--bg .hero__bg-img {
  position: absolute; inset: 0;
  background: url("../img/hero-bg.png") no-repeat center right / cover;
}
/* Left scrim keeps the headline readable over the artwork */
.hero--bg .hero__bg-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(251,247,240,.92) 0%, rgba(251,247,240,.62) 32%, rgba(251,247,240,.12) 54%, rgba(251,247,240,0) 70%);
}
@media (max-width: 900px) {
  .hero--bg .hero__bg-img { background-position: center 70%; opacity: .45; }
  .hero--bg .hero__bg-scrim { background: linear-gradient(180deg, rgba(251,247,240,.82), rgba(251,247,240,.96)); }
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 16px 0; border-block: 1px solid rgba(255,255,255,.08); }
.marquee__track { display: flex; align-items: center; gap: 26px; width: max-content; animation: marquee 26s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-size: 1.25rem; font-weight: 500; white-space: nowrap; }
.marquee__track .dot { color: var(--gold); font-size: 1rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tint { background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.section--tint + .section--tint { background: var(--cream); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 52px; flex-wrap: wrap; }
.section__head.center { flex-direction: column; align-items: center; text-align: center; }
.section__desc { max-width: 46ch; color: var(--text-soft); font-size: 1.05rem; }
.section__desc--light { color: rgba(255,255,255,.72); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.eyebrow--light { color: var(--gold); }
.section__title {
  font-family: var(--font-head); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; margin-top: 12px; color: var(--ink);
}
.section__title--light { color: #fff; }

/* ============================================================
   About
   ============================================================ */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__media { position: relative; }
.about__imgwrap { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); aspect-ratio: 4/3.6; border: 6px solid #fff; }
.about__imgwrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.about__imgwrap:hover img { transform: scale(1.05); }
.about__chip {
  position: absolute; right: -18px; bottom: -22px; background: var(--red); color: #fff;
  border-radius: var(--r); padding: 16px 20px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--sh-red);
}
.about__chip-num { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.about__chip-txt { font-size: .78rem; line-height: 1.3; border-left: 1px solid rgba(255,255,255,.35); padding-left: 12px; }
.about__chip-txt b { font-size: 1.05rem; }

.about__body p { color: var(--text-soft); margin-top: 16px; }
.about__list { margin: 26px 0; display: grid; gap: 14px; }
.about__list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.about__list .ic { color: #fff; background: var(--red); border-radius: 50%; padding: 4px; width: 24px; height: 24px; margin-top: 2px; }

/* ============================================================
   Visi Misi
   ============================================================ */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.vm__card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 40px); box-shadow: var(--sh-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative; overflow: hidden;
}
.vm__card::before { content:""; position:absolute; inset:0 0 auto 0; height:5px; background: linear-gradient(90deg,var(--red),var(--gold)); }
.vm__card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.vm__icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: #fdeceb; color: var(--red); margin-bottom: 18px; }
.vm__icon svg { width: 30px; height: 30px; }
.vm__card--vision .vm__icon { background: #fff6e6; color: var(--gold-600); }
.vm__card h3 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; margin-bottom: 12px; }
.vm__card p { color: var(--text-soft); }
.vm__misi { display: grid; gap: 12px; counter-reset: m; }
.vm__misi li { position: relative; padding-left: 40px; color: var(--text-soft); counter-increment: m; }
.vm__misi li::before {
  content: counter(m); position: absolute; left: 0; top: 0; width: 27px; height: 27px;
  background: var(--red); color: #fff; border-radius: 8px; display: grid; place-items: center;
  font-weight: 700; font-size: .82rem; font-family: var(--font-body);
}

/* ============================================================
   Services
   ============================================================ */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 30px; box-shadow: var(--sh-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.service__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #fdeceb, #fff6e6); color: var(--red); margin-bottom: 20px; }
.service__icon svg { width: 32px; height: 32px; }
.service h3 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; margin-bottom: 10px; }
.service p { color: var(--text-soft); font-size: .98rem; }
.service__meta { display: block; margin-top: 16px; font-size: .8rem; font-weight: 600; color: var(--ink-3); letter-spacing: .01em; }
.service--cta {
  background: linear-gradient(150deg, var(--ink) 0%, #35211c 100%); color: #fff; border: none;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.service--cta h3 { color: #fff; }
.service--cta p { color: rgba(255,255,255,.75); margin-bottom: 22px; }

/* ============================================================
   Products (dark section)
   ============================================================ */
.section--dark { background: radial-gradient(120% 100% at 50% 0%, #35211c 0%, var(--ink) 60%); color: #fff; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r); padding: 26px 22px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.product::after {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(244,176,26,.4), transparent 70%); opacity: 0;
  transition: opacity .35s var(--ease);
}
.product:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); border-color: rgba(244,176,26,.5); }
.product:hover::after { opacity: 1; }
.product__ic {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(244,176,26,.14); color: var(--gold); margin-bottom: 16px;
  transition: transform .3s var(--ease);
}
.product__ic svg { width: 26px; height: 26px; }
.product:hover .product__ic { transform: scale(1.08) rotate(-4deg); background: var(--gold); color: var(--ink); }
.product h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 5px; }
.product p { font-size: .86rem; color: rgba(255,255,255,.62); line-height: 1.5; }

.products__cta { margin-top: 46px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.products__cta p { color: rgba(255,255,255,.72); }

/* ============================================================
   Gallery
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery__item { position: relative; border-radius: var(--r); overflow: hidden; cursor: pointer; box-shadow: var(--sh-1); }
.gallery__item--lg { grid-row: span 2; grid-column: span 1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(32,21,18,.82)); opacity: .85; transition: opacity .3s; }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; display: flex; flex-direction: column; }
.gallery__item figcaption b { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; }
.gallery__item figcaption span { font-size: .82rem; color: rgba(255,255,255,.8); }
.gallery__item::before {
  content: "＋"; position: absolute; z-index: 2; top: 14px; right: 14px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink);
  font-size: 1.1rem; transform: scale(0); transition: transform .3s var(--ease);
}
.gallery__item:hover::before { transform: scale(1); }

/* ============================================================
   Feature / Portfolio
   ============================================================ */
.feature { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 68px); align-items: center; }
.feature__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); border: 6px solid #fff; transition: transform .5s var(--ease); }
.feature__media img { width: 100%; height: auto; }
.feature__media:hover { transform: rotate(-1deg) scale(1.01); }
.tag { display: inline-block; background: #fdeceb; color: var(--red); font-weight: 700; font-size: .8rem; padding: 6px 14px; border-radius: 999px; letter-spacing: .02em; }
.feature__title { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.15; margin: 16px 0; }
.feature__body p { color: var(--text-soft); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 18px; }
.specs li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; display: flex; flex-direction: column; }
.specs span { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.specs b { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); }
.feature__editor { font-size: .9rem; font-style: italic; margin-bottom: 22px; }

/* Section lead + gold tag + series heading */
.section__lead { max-width: 640px; margin: 14px auto 0; color: var(--text-soft); font-size: 1.02rem; }
.tag--gold { background: #fdf1d6; color: var(--gold-600); }
.series__head { margin: clamp(46px, 7vw, 78px) auto 0; max-width: 680px; }
.series__title { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; margin: 14px 0 8px; }
.series__lead { color: var(--text-soft); font-size: .98rem; }

/* Book grid */
.books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; margin-top: 40px; }
.book { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.book:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.book__cover { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #0e0b1a; cursor: pointer; aspect-ratio: 760 / 1108; overflow: hidden; }
.book__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.book:hover .book__cover img { transform: scale(1.04); }
.book__cover::after { content: "Baca sinopsis"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: #fff; background: rgba(32,21,18,.55); opacity: 0; transition: opacity .3s var(--ease); }
.book__cover:hover::after, .book__cover:focus-visible::after { opacity: 1; }
.book__badge { position: absolute; top: 10px; left: 10px; z-index: 1; min-width: 30px; height: 30px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: .95rem; border-radius: 8px; box-shadow: var(--sh-1); }
.book__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; flex: 1; }
.book__series { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--red); }
.book__title { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.book__meta { font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.book__excerpt { font-size: .86rem; color: var(--text-soft); line-height: 1.5; margin-top: 2px; }
.book__more { margin-top: auto; align-self: flex-start; padding-top: 10px; color: var(--red); font-weight: 700; font-size: .86rem; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.book__more::after { content: "\2192"; transition: transform .25s var(--ease); }
.book:hover .book__more::after { transform: translateX(4px); }

/* Book modal */
.bmodal { position: fixed; inset: 0; z-index: 1900; display: none; align-items: center; justify-content: center; padding: clamp(14px, 4vw, 40px); }
.bmodal.is-open { display: flex; }
.bmodal__overlay { position: absolute; inset: 0; background: rgba(20,12,10,.62); backdrop-filter: blur(3px); }
.bmodal__panel { position: relative; z-index: 1; width: min(880px, 100%); max-height: 90vh; overflow: hidden; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh-3); animation: bmIn .35s var(--ease); }
@keyframes bmIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.bmodal__close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--sh-1); transition: background .2s var(--ease); }
.bmodal__close:hover { background: #fff; }
.bmodal__grid { display: grid; grid-template-columns: .82fr 1.18fr; max-height: 90vh; }
.bmodal__media { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 3vw, 40px); background: linear-gradient(160deg, var(--cream) 0%, #F3EADB 100%); }
.bmodal__media img { width: 100%; max-width: 230px; height: auto; display: block; border-radius: var(--r-sm); box-shadow: var(--sh-2); }
.bmodal__body { overflow-y: auto; max-height: 90vh; padding: clamp(26px, 3.2vw, 40px); }
.bmodal__title { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; line-height: 1.15; margin: 12px 0 4px; }
.bmodal__author { font-size: .9rem; font-style: italic; color: var(--ink-3); margin-bottom: 6px; }
.bmodal__specs { grid-template-columns: 1fr 1fr; margin: 18px 0 20px; }
.bmodal__specs li:last-child { grid-column: 1 / -1; }
.bmodal__syn p { color: var(--text-soft); font-size: .95rem; line-height: 1.7; margin-bottom: 12px; }
.bmodal__syn { margin-bottom: 24px; }
.bmodal__body .btn { width: 100%; justify-content: center; }

/* ============================================================
   Steps
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--sh-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.step:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.step__num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1; display: block; margin-bottom: 14px; -webkit-text-stroke: 1px var(--gold-600); }
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: .92rem; color: var(--text-soft); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -12px; width: 22px; height: 2px; background: var(--line-2); z-index: 1; }

/* ============================================================
   CTA band
   ============================================================ */
.ctaband { background: linear-gradient(120deg, var(--red-700) 0%, var(--red) 55%, var(--gold-600) 130%); color: #fff; position: relative; overflow: hidden; }
.ctaband::before { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; }
.ctaband__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(44px, 6vw, 72px) var(--gutter); flex-wrap: wrap; }
.ctaband__text h2 { font-family: var(--font-head); font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 600; line-height: 1.1; }
.ctaband__text p { color: rgba(255,255,255,.88); margin-top: 8px; font-size: 1.05rem; }
.ctaband__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   Contact
   ============================================================ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 68px); align-items: start; }
.contact__info p { color: var(--text-soft); margin-top: 14px; max-width: 42ch; }
.contact__list { margin-top: 30px; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__ic { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: #fdeceb; color: var(--red); }
.contact__ic svg { width: 24px; height: 24px; }
.contact__list b { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 2px; }
.contact__list a { font-weight: 600; color: var(--ink); transition: color .2s; }
.contact__list a:hover { color: var(--red); }

.contact__form-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 38px); box-shadow: var(--sh-2); }
.contact__form h3 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; }
.contact__form-note { color: var(--text-soft); font-size: .9rem; margin: 6px 0 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field label span { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: 13px 15px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-2); background: var(--cream); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #a8988f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(216,35,28,.12); background: #fff; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red); }
.field__error { display: block; color: var(--red); font-size: .8rem; margin-top: 6px; min-height: 1em; font-weight: 600; }
.contact__form-ok { margin-top: 14px; color: var(--gold-600); font-weight: 700; text-align: center; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding-top: clamp(50px, 7vw, 84px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer__logo { height: 46px; background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 16px; }
.footer__brand p { font-size: .92rem; max-width: 38ch; }
.footer__ikapi { display: inline-block; margin-top: 16px; font-size: .78rem; font-weight: 700; color: var(--gold); letter-spacing: .02em; border: 1px solid rgba(244,176,26,.35); padding: 6px 12px; border-radius: 999px; }
.footer__col h4 { color: #fff; font-size: .92rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col a { display: block; padding: 5px 0; font-size: .92rem; transition: color .2s, padding-left .2s; }
.footer__col a:hover { color: var(--gold); padding-left: 5px; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem; }
.footer__credit a { color: var(--gold); font-weight: 700; transition: color .2s var(--ease); }
.footer__credit a:hover { color: var(--yellow); text-decoration: underline; }

/* ============================================================
   Floating WhatsApp
   ============================================================ */
.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 26px -6px rgba(37,211,102,.6);
  transition: transform .3s var(--ease); animation: wa-pulse 2.6s var(--ease) infinite;
}
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa:hover { transform: scale(1.1); }
@keyframes wa-pulse { 0%{box-shadow:0 12px 26px -6px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.5)} 70%{box-shadow:0 12px 26px -6px rgba(37,211,102,.6), 0 0 0 16px rgba(37,211,102,0)} 100%{box-shadow:0 12px 26px -6px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,0)} }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(20,12,10,.9); backdrop-filter: blur(6px); display: none; place-items: center; padding: 24px; }
.lightbox.is-open { display: grid; animation: fade .25s var(--ease); }
.lightbox img { max-width: min(92vw, 1000px); max-height: 86vh; border-radius: var(--r); box-shadow: var(--sh-3); }
.lightbox__close { position: absolute; top: 18px; right: 24px; font-size: 2.4rem; color: #fff; line-height: 1; width: 48px; height: 48px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   Reveal animations
   ============================================================ */
/* Reveal only hides when JS is active (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: .08s; }
.reveal[data-reveal-delay="2"] { transition-delay: .16s; }
.reveal[data-reveal-delay="3"] { transition-delay: .24s; }
.reveal[data-reveal-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .blob, .marquee__track, .fab-wa, .hero__card--float, .pill__dot::after, .mouse::after { animation: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .books { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); flex-direction: column; align-items: stretch;
    justify-content: flex-start; gap: 6px; background: var(--paper); padding: 92px 24px 32px;
    box-shadow: -14px 0 40px -20px rgba(32,21,18,.4); transform: translateX(100%);
    transition: transform .4s var(--ease); z-index: 999;
  }
  .nav__links.is-open { transform: none; }
  .nav__link { padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__link.is-active { background: #fdeceb; }
  .nav__cta { margin: 12px 0 0; }
  .nav__toggle { display: flex; z-index: 1000; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  .hero { padding-top: 118px; }

  .about, .feature, .contact { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; }
  .feature__media { max-width: 520px; margin-inline: auto; }
  .vm, .services, .steps { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:not(:last-child)::after { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery__item--lg { grid-row: span 1; }
  .books { grid-template-columns: repeat(3, 1fr); }
  .bmodal__panel { overflow: auto; }
  .bmodal__grid { grid-template-columns: 1fr; max-height: none; }
  .bmodal__media { padding: 30px 24px 6px; }
  .bmodal__media img { max-width: 190px; }
  .bmodal__body { overflow-y: visible; max-height: none; padding-top: 20px; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  .products { grid-template-columns: 1fr 1fr; }
  .books { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .steps { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .section__head { margin-bottom: 36px; }
  .hero__card--float { width: 44%; right: -10px; bottom: -24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .ctaband__inner { flex-direction: column; align-items: flex-start; }
  .hero__stats { gap: 22px; }
  .btn--lg { padding: .9em 1.4em; }
  .hero__title { font-size: clamp(1.85rem, 8.2vw, 2.5rem); }
  .hero__title br { display: none; }
  .hero__title .underline { white-space: normal; }
  .hero__lead { max-width: none; }
}

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

/* ---------- Terbitan dinamis (aksi & keadaan kosong) ---------- */
.feature__desc p { margin-bottom: 12px; }
.feature__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bmodal__actions { display: grid; gap: 10px; }
.bmodal__detail { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--red); font-weight: 700; font-size: .88rem; text-decoration: none; }
.bmodal__detail::after { content: "→"; transition: transform .25s var(--ease); }
.bmodal__detail:hover::after { transform: translateX(4px); }
.books__empty { grid-column: 1 / -1; text-align: center; color: var(--text-soft); padding: 40px 0; }

/* ============================================================
   Halaman detail publikasi (terbitan/show)
   ============================================================ */

/* ---------- Remah roti ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink-3); margin-bottom: clamp(28px, 4vw, 44px); }
.crumbs a { color: var(--ink-3); text-decoration: none; transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--red); }
.crumbs span[aria-hidden] { color: var(--line-2); }
.crumbs__now { color: var(--ink); font-weight: 600; }

/* ---------- Kepala detail ---------- */
.pub { padding-top: clamp(96px, 11vw, 140px); }
.pub__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 64px); align-items: start; }

.pub__cover { position: relative; display: block; margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 6px solid #fff; box-shadow: var(--sh-3); background: var(--cream); cursor: zoom-in; }
.pub__cover img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease); }
.pub__cover:hover img, .pub__cover:focus-visible img { transform: scale(1.03); }
.pub__cover:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.pub__cover--kosong { display: grid; place-items: center; aspect-ratio: 760 / 1108; color: var(--ink-3); font-size: .9rem; cursor: default; }

.pub__zoom { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%) translateY(6px); padding: 6px 12px; border-radius: 999px; background: rgba(32, 21, 18, .72); color: #fff; font-size: .74rem; font-weight: 600; opacity: 0; transition: opacity .25s var(--ease), transform .25s var(--ease); pointer-events: none; }
.pub__cover:hover .pub__zoom, .pub__cover:focus-visible .pub__zoom { opacity: 1; transform: translateX(-50%) translateY(0); }

.pub__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pub__title { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; line-height: 1.12; margin-bottom: 10px; }
.pub__author { font-size: .96rem; font-style: italic; color: var(--ink-3); }
.pub__lead { margin-top: 16px; font-size: 1.04rem; line-height: 1.65; color: var(--text-soft); }
.pub__specs { grid-template-columns: repeat(3, 1fr); }
.pub__editor { font-size: .9rem; font-style: italic; color: var(--text-soft); margin-bottom: 22px; }
.pub__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.pub__note { margin-top: 14px; font-size: .82rem; color: var(--ink-3); }

/* ---------- Sinopsis ---------- */
.pub__syn-head { margin-bottom: 26px; }
.pub__syn { max-width: 74ch; }
.pub__syn p { color: var(--text-soft); font-size: 1rem; line-height: 1.8; margin-bottom: 16px; }
.pub__syn p:last-child { margin-bottom: 0; }

/* ---------- Kartu terbitan lain ---------- */
.book__cover--link { cursor: pointer; }
.books .book__cover[href]::after { content: "Lihat detail"; }
.book__title a { color: inherit; text-decoration: none; }
.book__title a:hover { color: var(--red); }

@media (max-width: 900px) {
  .pub__grid { grid-template-columns: 1fr; }
  .pub__media { max-width: 320px; margin-inline: auto; }
  .pub__specs { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .pub__specs { grid-template-columns: 1fr; }
  .pub__actions .btn { width: 100%; justify-content: center; }
}
