﻿:root {
  --wine: #6e040f;
  --wine-dark: #4f010a;
  --ink: #1f1417;
  --muted: #5c5759;
  --line: #ece7e9;
  --tint: #faf6f7;
}

* { box-sizing: border-box; }

html {
  color: var(--ink);
  background: #fff;
  font-family: Inter, system-ui, sans-serif;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
}

button, a { font: inherit; }
img { max-width: 100%; }

.site-shell { width: 100%; max-width: 100%; margin: 0; overflow: hidden; background: #f3f4f6; }

/* ---------- Header ---------- */
.site-header { position: relative; background: #fff; border-bottom: 1px solid #e5e7eb;
  z-index: 10;
  display: flex;
  height: 80px;
  align-items: center;
  padding: 0 36px 0 50px;
  background: #fff;
}

.brand-link { display: inline-flex; }

.brand-logo {
  width: 120px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 37px;
  margin-left: auto;
}

.desktop-nav a {
  color: var(--wine);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.icon-button {
  display: grid;
  padding: 0;
  place-items: center;
  color: var(--wine);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button svg,
.action-card svg,
.branch-meta svg,
.contact-list svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button svg { stroke-width: 1.5; }

.desktop-account {
  width: 22px;
  height: 22px;
  margin-left: 40px;
}

.mobile-actions { display: none; }

.mobile-menu {
  position: absolute;
  top: 100%;
  right: 8px;
  left: 8px;
  display: grid;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 24px rgb(31 20 23 / 16%);
}

.mobile-menu[hidden] { display: none; }

.mobile-menu a {
  padding: 12px 14px;
  color: var(--wine);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.mobile-menu a:hover { background: var(--tint); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 368px;
  overflow: hidden;
  background-color: #6b5a55;
}

/* Lapisan foto banner (2 lapis saat crossfade) */
.hero-bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 56%, rgb(21 5 8 / 42%)),
    var(--bg-d) center / cover no-repeat;
  opacity: 0;
  transition: opacity .9s ease;
}

.hero-bg.is-active { opacity: 1; }

/* Suasana waktu: sore hangat, malam gelap kebiruan */
.hero-tint {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s ease, background .9s ease;
}

.tint-on[data-period="afternoon"] .hero-tint {
  opacity: 1;
  background: linear-gradient(180deg, rgb(255 150 60 / 6%), rgb(160 60 20 / 6%)); /* foto Sore sudah hangat */
}

.tint-on[data-period="night"] .hero-tint {
  opacity: 1;
  background: linear-gradient(180deg, rgb(12 20 55 / 14%), rgb(8 10 30 / 10%)); /* foto Malam sudah gelap */
}

.hero > :not(.hero-bg):not(.hero-tint) { z-index: 2; }

.preview-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  color: #fff;
  border-radius: 999px;
  background: rgb(0 0 0 / 60%);
  font-size: 11px;
}

.hours-pill {
  position: absolute;
  top: 12px;
  right: 25px;
  display: flex;
  min-width: 108px;
  height: 24px;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--wine);
  border-radius: 999px;
  background: #fff;
  font-size: 9px;
  font-weight: 500;
}

.hours-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hours-pill.is-open .dot {
  background: #1f9d55;
  box-shadow: 0 0 0 0 rgb(31 157 85 / 60%);
  animation: pulse 2s infinite;
}

.hours-pill.is-closed { color: var(--muted); }
.hours-pill.is-closed .dot { background: #c0392b; }

@keyframes pulse {
  70% { box-shadow: 0 0 0 5px rgb(31 157 85 / 0%); }
  100% { box-shadow: 0 0 0 0 rgb(31 157 85 / 0%); }
}

.speech-bubble {
  position: absolute;
  top: 58px;
  right: 178px;
  width: max-content;
  min-width: 310px;
  max-width: 400px;
  min-height: 140px;
  padding: 23px 29px;
  border: 1.5px solid rgb(184 176 184 / 80%);
  border-radius: 26px;
  background: linear-gradient(180deg, rgb(255 255 255 / 96%), rgb(225 219 225 / 92%));
  box-shadow:
    0 5px 10px rgb(13 8 10 / 28%),
    inset 0 2px 3px rgb(255 255 255 / 75%),
    inset 0 -2px 4px rgb(38 26 36 / 14%);
}

.speech-bubble::after {
  position: absolute;
  bottom: -27px;
  left: 34px;
  width: 42px;
  height: 34px;
  content: "";
  clip-path: polygon(0 0, 100% 0, 10% 100%);
  background: #e7e2e7;
  filter: drop-shadow(0 4px 4px rgb(13 8 10 / 20%));
}

.speech-bubble h1,
.speech-bubble p {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
}

.speech-bubble p { white-space: pre-line; }

/* Efek percakapan: titik mengetik lalu teks muncul per huruf */
.typing-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  gap: 6px;
  transform: translate(-50%, -50%);
}

.typing-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1s infinite ease-in-out;
}

.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }

.speech-bubble.is-typing .typing-dots { display: flex; }
.speech-bubble.is-typing h1,
.speech-bubble.is-typing p { visibility: hidden; }

.speech-bubble .ch { opacity: 0; transition: opacity .12s; }
.speech-bubble .ch.on { opacity: 1; }

@keyframes blink {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.trust-row {
  position: absolute;
  right: 30px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-pill {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid #e8e4e6;
  border-radius: 18px;
  background: #fff;
  font-size: 8px;
  line-height: 1.35;
  text-decoration: none;
}

.rating-pill { width: 118px; }
.mechanic-pill { width: 138px; }

.google-g {
  color: #4285f4;
  font-size: 18px;
}

.stars {
  color: #f7a600;
  letter-spacing: 1px;
}

.star-off { color: #ddd6d9; }

.badge-check {
  display: grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--wine);
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
}

.satisfaction {
  margin: 0;
  color: #fff;
  font-size: 9px;
  line-height: 1.55;
  text-shadow: 0 1px 2px rgb(0 0 0 / 35%);
}

.satisfaction span { font-size: 8px; }

/* ---------- Quick actions ---------- */
.quick-actions {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: -20px 50px 12px;
}

.action-card {
  display: flex;
  height: 100px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 8px;
  color: var(--ink);
  border: 2px solid var(--wine);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 9px rgb(46 5 11 / 22%);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 16px rgb(46 5 11 / 26%);
}

.action-card svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}

.action-primary {
  color: #fff;
  border-color: var(--wine-dark);
  background: var(--wine-dark);
}

/* ---------- Sections below the fold ---------- */
.block {
  padding: 56px 50px;
  scroll-margin-top: 12px;
}

.block-tint { background: var(--tint); }

.block-head {
  max-width: 560px;
  margin-bottom: 28px;
}

.block-head h2 {
  margin: 0 0 6px;
  color: var(--wine);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.block-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.partner-item {
  display: grid;
  height: 76px;
  place-items: center;
  padding: 12px 16px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}

.partner-item img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
  opacity: .72;
  filter: grayscale(1);
  transition: opacity .2s, transform .2s;
}

.partner-item.is-text span {
  color: #3d3437;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .72;
  transition: opacity .2s, color .2s;
}

.partner-item:hover { border-color: #e2d5d8; box-shadow: 0 6px 14px rgb(31 20 23 / 7%); }
.partner-item:hover img { opacity: 1; transform: scale(1.04); }
.partner-item.is-text:hover span { color: var(--wine); opacity: 1; }

/* Slider brand berjalan (marquee) â€” daftar diulang 2x lalu digeser -50% */
.marquee-wrap { display: grid; gap: 12px; }
.marquee-wrap.is-mobile { display: none; }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  padding: 4px 0 8px;
  animation: marquee var(--speed, 40s) linear infinite;
}

.marquee.is-reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee .partner-item {
  min-width: 156px;
  flex: 0 0 auto;
  margin-right: 12px;
  padding: 12px 22px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Slider ulasan */
.testi-slider { position: relative; }

.testi-track {
  display: flex;
  gap: 16px;
  padding: 4px 2px 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline: none;
}

.testi-track::-webkit-scrollbar { display: none; }

.testi-track > .testi-card {
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
}

.slider-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.slider-ctrl[hidden] { display: none; }

.slider-btn {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: var(--wine);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.slider-btn:hover { color: #fff; border-color: var(--wine); background: var(--wine); }

.slider-dots { display: flex; gap: 6px; }

.slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d9cfd2;
  cursor: pointer;
  transition: width .25s, background .25s;
}

.slider-dots button.on { width: 22px; background: var(--wine); }

.testi-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.testi-card .stars { font-size: 14px; }

.testi-card blockquote {
  flex: 1;
  margin: 10px 0 16px;
  font-size: 14px;
  line-height: 1.6;
}

.testi-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.testi-card figcaption img,
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--wine);
  font-weight: 600;
}

.testi-card small {
  display: block;
  color: var(--muted);
}

/* Ulasan Google */
.rating-count { font-size: 7px; font-weight: 400; }
.rating-pill b { font-weight: 600; }

.g-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g-badge {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #4285f4;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.g-card blockquote {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.g-author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.g-author img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.g-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 18px;
  font-size: 13px;
}

.g-foot[hidden] { display: none; }
.g-source { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.g-source .google-g { font-size: 16px; }
.g-source b { color: var(--ink); font-weight: 600; }
.g-links { display: flex; gap: 8px; }
.g-note { flex-basis: 100%; color: var(--muted); font-size: 11px; }

.testi-track[hidden], .block[hidden] { display: none; }

/* Cabang: selalu 1 baris. Jika tidak muat, geser ke samping */
.branch-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 14px;
  padding: 4px 2px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--wine) transparent;
}

/* Tiap kartu memakai subgrid: nama, alamat, jam, telepon, tombol
   selalu sejajar antar kartu walau panjang isinya berbeda */
.branch-grid { grid-template-rows: repeat(5, auto); row-gap: 0; }

.branch-grid .branch-card {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 10px;
  scroll-snap-align: start;
  padding: 18px;
}

.branch-grid .branch-card h3,
.branch-grid .branch-addr,
.branch-grid .branch-meta { margin: 0; }

.branch-grid .branch-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
}

.branch-grid .branch-meta svg { margin-top: 1px; }

.branch-grid .branch-hours {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.branch-hours dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.branch-hours dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.branch-hours dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.branch-grid .branch-phone { align-items: center; font-weight: 500; }
.branch-grid .branch-phone svg { margin-top: 0; }

.branch-grid .branch-btns {
  align-self: end;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  padding-top: 4px;
}

.branch-grid .btn-sm { padding: 8px 12px; font-size: 12px; white-space: nowrap; }

/* Kartu clean: tanpa garis aksen, border tipis + bayangan lembut */
.branch-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(31 20 23 / 4%), 0 6px 16px rgb(31 20 23 / 6%);
  transition: transform .15s ease, box-shadow .15s ease;
}

.branch-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgb(31 20 23 / 5%), 0 12px 24px rgb(31 20 23 / 9%);
}

.branch-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
}

.branch-addr {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.branch-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 13px;
}

.branch-meta svg,
.contact-list svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--wine);
  stroke-width: 1.8;
}

.branch-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  color: #fff;
  border: 1.5px solid var(--wine-dark);
  border-radius: 8px;
  background: var(--wine-dark);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.btn-sm-line {
  color: var(--wine);
  background: #fff;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(31 20 23 / 4%), 0 6px 16px rgb(31 20 23 / 6%);
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-list svg { margin-top: 2px; }

.contact-list a {
  color: var(--ink);
  text-decoration: none;
}

.contact-list .contact-cta { margin-top: 6px; }
.contact-list .contact-cta a { color: #fff; }

.map {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 12px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 28px 50px;
  color: #fff;
  background: var(--wine-dark);
  font-size: 12px;
}

.footer-logo {
  height: 34px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff;
}

.socials {
  display: flex;
  gap: 16px;
}

.socials a { color: #fff; }

.site-footer p {
  margin: 0 0 0 auto;
  opacity: .85;
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) and (min-width: 641px) {
  .site-header { padding: 0 24px; }
  .desktop-nav { gap: 22px; }
  .desktop-account { margin-left: 24px; }
  .speech-bubble { right: 24px; min-width: 260px; padding: 20px 24px; }
  .speech-bubble h1, .speech-bubble p { font-size: 20px; }
  .quick-actions { margin: -20px 24px 12px; gap: 12px; }
  .action-card { font-size: 13px; }
  .block { padding: 48px 24px; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-track > .testi-card { flex-basis: calc((100% - 16px) / 2); }
  .site-footer { padding: 24px; }
}

/* ---------- HP ---------- */
@media (max-width: 640px) {
  .site-shell { width: 100%; }

  .site-header {
    height: 48px;
    padding: 0 10px 0 14px;
  }

  .brand-logo {
    width: 95px;
    height: 38px;
  }

  .desktop-nav,
  .desktop-account {
    display: none;
  }

  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .menu-button {
    width: 24px;
    height: 20px;
  }

  .account-button {
    width: 24px;
    height: 24px;
  }

  .hero {
    height: auto;
    aspect-ratio: 375 / 272;
    min-height: 272px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, transparent 48%, rgb(25 5 8 / 55%)),
      var(--bg-m) center / cover no-repeat;
  }

  .typing-dots i { width: 6px; height: 6px; }
  .preview-badge { top: auto; bottom: 100px; font-size: 10px; }

  .hours-pill {
    top: 14px;
    right: auto;
    left: 14px;
    min-width: 105px;
    height: 25px;
  }

  .speech-bubble {
    top: 28%;
    right: 11%;
    width: max-content;
    min-width: 155px;
    max-width: 200px;
    min-height: 70px;
    padding: 10px 14px;
    border-radius: 13px;
  }

  .speech-bubble::after {
    bottom: -18px;
    left: 11px;
    width: 34px;
    height: 30px;
  }

  .speech-bubble h1,
  .speech-bubble p {
    font-size: 12px;
    line-height: 14px;
  }

  .trust-row {
    right: 14px;
    bottom: 9px;
    left: 14px;
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 8px 12px;
  }

  .trust-pill {
    width: auto;
    height: 42px;
    padding: 0 8px;
  }

  .satisfaction {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 11px;
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 7px;
    margin: 12px 8px;
  }

  .action-card {
    height: 88px;
    gap: 8px;
    font-size: 10px;
  }

  .action-card svg {
    width: 22px;
    height: 22px;
  }

  .block { padding: 36px 16px; }
  .block-head { margin-bottom: 18px; }
  .block-head h2 { font-size: 20px; }
  .block-head p { font-size: 13px; }

  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .partner-item {
    height: 60px;
    font-size: 12px;
  }

  .marquee .partner-item { min-width: 116px; margin-right: 8px; padding: 10px 14px; }
  .partner-item img { max-height: 30px; }
  .partner-item.is-text span { font-size: 12px; }
  .marquee-wrap { gap: 8px; margin: 0 -16px; }
  .marquee-wrap.is-desktop { display: none; }
  .marquee-wrap.is-mobile { display: grid; }

  .testi-track {
    gap: 10px;
    margin: 0 -16px;
    padding: 4px 16px 10px;
    scroll-padding: 0 16px;
  }

  .testi-track > .testi-card { flex-basis: 84%; }

  .branch-grid {
    grid-auto-columns: 78%;
    gap: 10px;
    margin: 0 -16px;
    padding: 4px 16px 16px;
    scroll-padding: 0 16px;
    scrollbar-width: none;
  }
  .branch-grid .branch-card { padding: 14px; border-radius: 12px; }
  .branch-card h3 { font-size: 14px; margin-bottom: 4px; }
  .branch-addr { font-size: 12px; line-height: 1.45; margin-bottom: 8px; }
  .branch-grid .branch-meta { font-size: 11px; gap: 6px; }
  .branch-hours dd { font-size: 11px; }
  .branch-hours dt { font-size: 10px; }
  .branch-grid .branch-card { row-gap: 8px; }
  .branch-meta svg { width: 13px; height: 13px; }
  .branch-grid .branch-btns { padding-top: 2px; }
  .branch-grid .btn-sm { padding: 7px 10px; font-size: 11px; border-radius: 7px; }

  .g-foot { font-size: 12px; }
  .g-links { width: 100%; }
  .g-links .btn-sm { flex: 1; justify-content: center; }

  .contact-wrap { grid-template-columns: 1fr; }
  .contact-list { padding: 16px; gap: 12px; font-size: 13px; border-radius: 12px; }
  .contact-list svg { width: 15px; height: 15px; }
  .map { height: 220px; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 16px;
  }

  .site-footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hours-pill.is-open .dot { animation: none; }
  .hero-bg, .hero-tint { transition: none; }
  .typing-dots i { animation: none; }
  .action-card, .branch-card { transition: none; }
  .marquee-track { flex-wrap: wrap; width: auto; animation: none; }
  .marquee [aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .testi-track { scroll-behavior: auto; }
}

/* ---------- HP: konten di bawah menu cepat dibuat lebih ringkas ---------- */
@media (max-width: 640px) {
  .block { padding: 26px 14px; }
  .block-head { margin-bottom: 14px; }
  .block-head h2 { margin-bottom: 4px; font-size: 18px; }
  .block-head p { font-size: 12px; line-height: 1.5; }

  /* Brand */
  .marquee-wrap { margin: 0 -14px; }
  .partner-item { height: 50px; border-radius: 10px; }
  .marquee .partner-item { min-width: 96px; margin-right: 8px; padding: 8px 12px; }
  .partner-item img { max-height: 24px; }
  .partner-item.is-text span { font-size: 11px; }

  /* Ulasan */
  .testi-track { gap: 10px; margin: 0 -14px; padding: 2px 14px 8px; scroll-padding: 0 14px; }
  .testi-track > .testi-card { flex-basis: 78%; }
  .testi-card { padding: 14px; border-radius: 12px; }
  .testi-card .stars { font-size: 11px; }
  .testi-card blockquote { margin: 8px 0 12px; font-size: 12.5px; line-height: 1.55; }
  .testi-card figcaption { gap: 8px; font-size: 12px; }
  .testi-card figcaption img, .avatar, .g-author img { width: 30px; height: 30px; font-size: 12px; }
  .testi-card small { font-size: 10.5px; }
  .g-badge { width: 20px; height: 20px; font-size: 11px; }
  .slider-ctrl { gap: 10px; margin-top: 8px; }
  .slider-btn { width: 28px; height: 28px; font-size: 16px; }
  .slider-dots button { width: 6px; height: 6px; }
  .slider-dots button.on { width: 16px; }
  .g-foot { gap: 8px; margin-top: 12px; font-size: 11px; }
  .g-links .btn-sm { padding: 8px 10px; font-size: 11.5px; }

  /* Cabang */
  .branch-grid { grid-auto-columns: 76%; gap: 10px; margin: 0 -14px; padding: 2px 14px 12px; scroll-padding: 0 14px; }
  /* Di HP hanya 1 kartu terlihat: pakai susunan rapat, tombol tetap di bawah */
  .branch-grid { grid-template-rows: none; }
  .branch-grid .branch-addr { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .branch-grid .branch-card { display: flex; flex-direction: column; gap: 7px; grid-row: auto; padding: 13px; }
  .branch-grid .branch-btns { align-self: flex-start; margin-top: auto; padding-top: 6px; }
  .branch-grid .branch-meta:empty { display: none; }
  .branch-hours dl { gap: 3px; }
  .branch-hours dl > div { display: flex; flex-wrap: wrap; gap: 0 6px; align-items: baseline; }
  .branch-grid .branch-card h3 { font-size: 13.5px; }
  .branch-grid .branch-addr { font-size: 11.5px; }
  .branch-grid .branch-hours { padding-top: 7px; }
  .branch-hours dt { font-size: 10px; }
  .branch-hours dd { font-size: 11px; }
  .branch-grid .branch-meta { font-size: 11px; }
  .branch-grid .btn-sm { padding: 6px 10px; font-size: 11px; }

  /* Kontak */
  .contact-list { gap: 10px; padding: 14px; font-size: 12.5px; }
  .contact-list svg { width: 14px; height: 14px; }
  .contact-list .contact-cta { margin-top: 4px; }
  .contact-list .contact-cta a { width: 100%; justify-content: center; padding: 10px; font-size: 12.5px; }
  .map { height: 180px; border-radius: 10px; }

  /* Footer */
  .site-footer { gap: 10px; padding: 18px 14px 22px; font-size: 11px; }
  .footer-logo { height: 28px; }
  .socials { gap: 12px; font-size: 11.5px; }
}

/* HP: 4 kartu menu cepat naik menumpuk ke bawah banner (seperti versi desktop) */
@media (max-width: 640px) {
  .quick-actions { margin-top: -24px; }
  .trust-row { bottom: 32px; }
  .speech-bubble { top: 20%; }
}

/* ---------- Bottom Nav (HP Only) ---------- */
.bottom-nav {
  display: none;
}

@media (max-width: 640px) {
  .site-shell {
    padding-bottom: 66px; /* Jeda agar tidak tertutup nav */
  }
  
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 10px rgb(0 0 0 / 5%);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
    text-decoration: none;
    flex: 1;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
  }

  .nav-item.active,
  .nav-item:active {
    color: var(--wine);
  }

  .nav-item svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}



/* Beranda ringkas: hanya hero + 4 tombol menu utama, memenuhi satu layar */
body { background: #f3f4f6; }
.site-shell { min-height: 100vh; min-height: 100dvh; }
@media (min-width: 901px) {
  .hero { height: max(368px, calc(100vh - 80px - 130px)); height: max(368px, calc(100dvh - 80px - 130px)); }
}

/* Ikon G Google & setengah bintang */
.google-g-img { flex: none; width: 22px; height: 22px; display: block; }
.star-half { background: linear-gradient(90deg, #f7a600 50%, #ddd6d9 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* HP: kartu Rating Google & Mekanik — ringkas, di tengah, ukuran sama, gaya kaca lembut */
@media (max-width: 640px) {
  .trust-row {
    grid-template-columns: repeat(2, minmax(0, 148px));
    justify-content: center;
    justify-items: stretch;
    gap: 8px 8px;
  }
  .trust-row .trust-pill {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    gap: 7px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 12px;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    box-shadow: 0 4px 14px rgba(20, 8, 12, .12);
    color: #5b5156;
    font-size: 8.5px;
    line-height: 1.3;
  }
  .trust-row .trust-pill > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .trust-row .rating-pill b { color: #2b2226; }
  .trust-row .rating-count { font-size: 7.5px; color: #8a8085; }
  .trust-row .stars { font-size: 8.5px; letter-spacing: .5px; color: #e9a23b; }
  .trust-row .star-off { color: #d9d2d5; }
  .trust-row .google-g-img { width: 16px; height: 16px; }
  .trust-row .badge-check {
    flex: none;
    width: 18px;
    height: 18px;
    border: 0;
    background: #f5e8ea;
    color: var(--wine);
    font-size: 9px;
    font-weight: 700;
  }
}
