/* =====================================================================
   ROTI A — Stylesheet utama
   Palet hangat bakery • tipografi serif + sans • layout modern, rapi
   Hanya HTML & CSS (tanpa JavaScript)
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Warna */
  --cream:        #FBF5EB;
  --cream-soft:   #F4E9D8;
  --cream-deep:   #EADBC4;
  --crust:        #5A3A22;
  --crust-deep:   #3B2615;
  --gold:         #C98A3C;
  --gold-soft:    #E4B873;
  --berry:        #A6402F;
  --green:        #5C7A3F;
  --ink:          #2B231C;
  --muted:        #7A6B5A;
  --white:        #FFFFFF;

  /* Tipografi */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Ukuran & ritme */
  --maxw: 1180px;
  --gap:  clamp(1rem, 2.5vw, 2rem);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(59, 38, 21, 0.10);
  --shadow-sm: 0 4px 14px rgba(59, 38, 21, 0.08);
  --ring: 0 0 0 3px rgba(201, 138, 60, 0.35);
}

/* ---------- 2. Reset ringan ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--crust); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--crust-deep);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.section--cream { background: var(--cream-soft); }
.section--crust { background: var(--crust-deep); color: var(--cream); }
.section--crust h1, .section--crust h2, .section--crust h3 { color: var(--cream); }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}

.section-head h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); margin-top: 1rem; }

/* ---------- 4. Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .98rem;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn--primary { background: var(--gold); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--crust); color: var(--white); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--crust-deep); border-color: var(--cream-deep); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn--light { background: var(--cream); color: var(--crust-deep); }
.btn--light:hover { background: var(--white); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- 5. Header / Navigasi ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 245, 235, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--cream-deep);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .7rem;
  flex-wrap: wrap;
}
.nav__brand { display: flex; align-items: center; }
.nav__brand img { height: 44px; width: auto; }
.nav__menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(.4rem, 1.5vw, 1.4rem);
  padding: 0;
}
.nav__menu a {
  font-weight: 600;
  font-size: .96rem;
  color: var(--crust-deep);
  padding: .4em .2em;
  position: relative;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
.nav__menu a:hover::after,
.nav__menu a[aria-current="page"]::after { width: 100%; }
.nav__menu a[aria-current="page"] { color: var(--gold); }
.nav__cta { margin-left: .3rem; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  color: var(--cream);
  display: grid;
  place-items: center;
  text-align: center;
  min-height: clamp(420px, 70vh, 640px);
  padding-block: clamp(3rem, 9vw, 6rem);
  background: var(--crust-deep);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(59,38,21,.55) 0%, rgba(59,38,21,.78) 100%);
  z-index: 1;
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-bottom: 1rem;
}
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--cream-soft); max-width: 36ch; margin-inline: auto; }
.hero .btn-row { justify-content: center; margin-top: 2rem; }
.hero--sub { min-height: clamp(300px, 42vh, 420px); }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  background: rgba(228,184,115,.18);
  border: 1px solid rgba(228,184,115,.5);
  color: var(--gold-soft);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  padding: .45em 1em;
  border-radius: 999px;
  margin-bottom: 1.3rem;
}

/* ---------- 7. Grid umum ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* split: teks + gambar */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split__body h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 1rem; }
.split__body p + p { margin-top: 1rem; }
.split--reverse .split__media { order: 2; }

/* ---------- 8. Kartu fitur ---------- */
.feature {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--cream-soft);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.feature h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .98rem; }

/* ---------- 9. Kartu produk ---------- */
.product {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product__media { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product:hover .product__media img { transform: scale(1.06); }
.tag {
  position: absolute; top: .8rem; left: .8rem;
  background: var(--berry); color: var(--white);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: .35em .8em; border-radius: 999px;
}
.product__body { padding: 1.1rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product__body h3 { font-size: 1.18rem; }
.product__desc { color: var(--muted); font-size: .9rem; flex: 1; }
.product__price { font-family: var(--serif); font-weight: 600; color: var(--berry); font-size: 1.25rem; margin-top: .4rem; }

/* daftar varian kecil (chip) */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: 999px;
  padding: .5em 1.05em;
  font-weight: 600;
  font-size: .92rem;
  color: var(--crust);
  box-shadow: var(--shadow-sm);
}
.chip span { color: var(--berry); font-weight: 700; }

/* ---------- 10. Statistik ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); text-align: center; }
.stat__num { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); color: var(--gold-soft); font-weight: 600; }
.stat__label { color: var(--cream-soft); font-size: .92rem; letter-spacing: .03em; }

/* ---------- 11. Timeline (proses / history) ---------- */
.timeline { display: grid; gap: 1.2rem; counter-reset: step; max-width: 760px; }
.tl-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  align-items: start;
}
.tl-item__num {
  counter-increment: step;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--crust-deep); color: var(--gold-soft);
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  border-radius: 50%;
}
.tl-item__num::before { content: counter(step); }
.tl-item h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.tl-item p { color: var(--muted); font-size: .97rem; }

/* ---------- 12. Media (video & audio) ---------- */
.media-frame {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.media-frame video { width: 100%; border-radius: var(--radius-sm); display: block; background: #000; }
.media-frame audio { width: 100%; margin-top: .4rem; }
.media-caption { color: var(--muted); font-size: .9rem; margin-top: .8rem; text-align: center; }

/* ---------- 13. Galeri ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.gallery img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, filter .25s ease;
}
.gallery img:hover { transform: scale(1.03); filter: saturate(1.1); }
.gallery a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery a:nth-child(1) img { aspect-ratio: 1/1; height: 100%; }

/* ---------- 14. Info / kontak ---------- */
.info-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.info-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.info-list .ic {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--cream-soft); border-radius: 12px; font-size: 1.3rem;
}
.info-list strong { display: block; color: var(--crust-deep); }
.info-list span { color: var(--muted); font-size: .96rem; }

.card {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}

.branch-list { list-style: none; padding: 0; display: grid; gap: .2rem; }
.branch-list li {
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 0; border-bottom: 1px dashed var(--cream-deep);
}
.branch-list li:last-child { border-bottom: 0; }
.branch-list .dot { color: var(--gold); font-size: 1.1rem; }
.branch-list .badge { margin-left: auto; font-size: .75rem; font-weight: 700; color: var(--green); }

.map-embed { border: 0; width: 100%; aspect-ratio: 16/10; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- 15. CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: var(--cream); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { color: var(--cream-soft); max-width: 50ch; margin: 1rem auto 1.8rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- 16. Footer ---------- */
.site-footer { background: var(--crust-deep); color: var(--cream-soft); padding-block: clamp(3rem, 6vw, 4rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: var(--cream); font-family: var(--sans); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer p { color: var(--cream-soft); font-size: .95rem; opacity: .85; }
.footer-logo { background: var(--cream); border-radius: 12px; padding: .6rem .8rem; display: inline-block; margin-bottom: 1rem; }
.footer-logo img { height: 40px; }
.footer-links { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer-links a { color: var(--cream-soft); opacity: .85; font-size: .95rem; }
.footer-links a:hover { color: var(--gold-soft); opacity: 1; }
.social-row { display: flex; gap: .7rem; margin-top: .3rem; }
.social-row a {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border-radius: 10px; color: var(--cream-soft);
  font-weight: 700; font-size: .9rem; transition: background .2s ease, color .2s ease;
}
.social-row a:hover { background: var(--gold); color: var(--white); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between;
  font-size: .85rem; opacity: .8;
}

/* ---------- 17. Aksen kecil ---------- */
.divider-leaf { text-align: center; color: var(--gold); font-size: 1.4rem; margin-block: 1.5rem; }
.note {
  background: #FFF7E8; border: 1px dashed var(--gold);
  border-radius: var(--radius-sm); padding: .9rem 1.1rem;
  font-size: .9rem; color: var(--crust);
}

/* ---------- 17b. Music player melayang (backsound) ---------- */
.music-player {
  position: fixed;
  right: clamp(.8rem, 2vw, 1.4rem);
  bottom: clamp(.8rem, 2vw, 1.4rem);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: .7rem;
  background: rgba(59, 38, 21, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(228, 184, 115, .4);
  border-radius: 999px;
  padding: .5rem .9rem .5rem .8rem;
  box-shadow: var(--shadow);
  max-width: calc(100vw - 1.6rem);
}
.music-player__label {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--gold-soft);
  font-weight: 700;
  font-size: .82rem;
  white-space: nowrap;
}
.music-player__note {
  font-size: 1.1rem;
  animation: note-bounce 1.6s ease-in-out infinite;
}
@keyframes note-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.music-player audio { height: 34px; max-width: 220px; }
.music-player audio::-webkit-media-controls-panel { background: var(--cream-soft); }
@media (prefers-reduced-motion: reduce) { .music-player__note { animation: none; } }
@media (max-width: 520px) {
  .music-player__label span:last-child { display: none; }
  .music-player audio { max-width: 160px; }
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { justify-content: center; }
  .nav__menu { justify-content: center; width: 100%; gap: .2rem .9rem; }
  .nav__cta { display: none; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery a:nth-child(1) { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 420px) {
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
}
