:root {
  color-scheme: light;
  --white: #fff;
  --ice: #eef6ff;
  --blue: #0868bd;
  --blue-dark: #084e94;
  --navy: #102a49;
  --muted: #435b74;
  --line: #cfdeec;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 16px/1.55 "Instrument Sans", system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #298ae0; outline-offset: 3px; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
header { border-bottom: 1px solid var(--line); }
.header, .header nav, .actions, .promo-inner, .footer {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header, .promo-inner, .footer { justify-content: space-between; }
.header { min-height: 104px; }
.brand img { display: block; width: 120px; height: 60px; object-fit: contain; }
.header .brand img { width: clamp(160px, 17vw, 214px); height: auto; }
.header nav { gap: clamp(14px, 4vw, 40px); font-weight: 700; }
.header nav a:hover, .branch a:hover, .product a:hover, .footer a:hover {
  text-decoration: underline;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 16px;
  background: var(--blue);
  color: var(--white);
  font-weight: 750;
}
.button:hover { background: var(--blue-dark); }
.outline { background: var(--white); color: var(--blue-dark); border-color: var(--line); }
.outline:hover { background: var(--ice); }
.hero { background: var(--ice); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  padding-block: clamp(28px, 5vw, 64px);
}
.hero-photo {
  min-height: clamp(310px, 36vw, 490px);
  border-radius: var(--radius);
  background: var(--line) url(media/ruang-tamu-mr-borong.webp) center/cover;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 { line-height: 1.04; letter-spacing: -.045em; }
h1 { margin-bottom: 18px; font-size: clamp(2.6rem, 5.4vw, 5.1rem); }
h1 span { color: var(--blue); }
h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.45rem); }
.intro { max-width: 440px; color: var(--muted); }
.actions { flex-wrap: wrap; gap: 10px; }
.section { padding-block: clamp(42px, 6vw, 80px); }
.heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}
.heading > p { max-width: 350px; margin: 0; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters button {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 8px 14px;
  background: var(--white);
  color: var(--navy);
  font-weight: 650;
  cursor: pointer;
}
.filters button:hover { background: var(--ice); }
.filters button[aria-pressed="true"] { background: var(--blue); color: var(--white); border-color: var(--blue); }
.product-grid, .branch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product, .branch {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.product, .product-body { display: flex; flex-direction: column; }
.product img {
  display: block;
  width: 100%;
  height: clamp(200px, 22vw, 300px);
  object-fit: contain;
  background: var(--ice);
  border-bottom: 1px solid var(--line);
}
.product-body, .branch { padding: 20px; }
.product-body { flex: 1; }
.product h3, .branch h3 { margin: 0 0 8px; line-height: 1.2; }
.product p, .branch p { margin-bottom: 12px; color: var(--muted); }
.product a, .branch a, .footer > a:last-child { color: var(--blue-dark); font-weight: 750; }
.product a { align-self: start; }
.product-body > a:last-child {
  margin-top: auto;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ice);
}
.tag { display: block; margin-bottom: 7px; color: var(--blue-dark); font-size: .76rem; font-weight: 800; }
.product-specifications {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ice);
  font-size: .85rem;
}
.product-specifications dt { font-weight: 750; }
.product-specifications dd { margin: 0; color: var(--muted); }
.product-specifications dd + dt { margin-top: 6px; }
.variant-picker, .search { display: grid; gap: 5px; font-size: .875rem; font-weight: 750; }
.variant-picker { margin-bottom: 8px; }
.variant-picker select, .search input {
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
}
.variant-picker + a, .product-dimensions-link { margin-bottom: 12px; font-size: .875rem; }
.promo { background: var(--blue-dark); color: var(--white); }
.promo-inner { padding-block: 40px; }
.promo p:last-of-type { margin: 12px 0 0; color: var(--ice); }
.promo .button { background: var(--white); color: var(--blue-dark); }
.promo .button:hover { background: var(--ice); }
.branch-controls { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.branch-controls .filters { margin: 0; }
.branch-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .91rem; }
.branch-info { white-space: pre-line; }
.branch-photo { display: block; width: 100%; height: auto; border-radius: 8px; margin: 10px 0 14px; }
#branch-empty { margin-top: 15px; }
footer { background: var(--ice); border-top: 1px solid var(--line); }
.footer { padding-block: 22px; color: var(--muted); font-size: .9rem; }
@media (max-width: 880px) {
  .wrap { width: calc(100% - 40px); }
  .product-grid, .branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 670px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { min-height: 250px; }
  .heading, .branch-controls, .promo-inner { flex-direction: column; align-items: start; }
  .search { width: 100%; }
  .header { min-height: 0; flex-wrap: wrap; justify-content: flex-start; gap: 8px 12px; padding-block: 10px; }
  .header .brand img { width: clamp(132px, 42vw, 172px); }
  .header nav { order: 1; width: 100%; justify-content: space-around; border-top: 1px solid var(--line); padding-top: 8px; }
  .header .button { margin-left: auto; font-size: .86rem; padding: 7px 10px; }
  .brand img { width: 92px; height: 46px; }
  .footer { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .product-grid, .branch-grid { grid-template-columns: 1fr; }
  .product img { height: min(76vw, 320px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.product-media { margin-bottom: 12px; font-size: .875rem; }
.product-media summary { cursor: pointer; font-weight: 750; }
.product-media a { display: block; margin-top: 6px; }

#cawangan { padding-block: clamp(28px, 4vw, 48px); }
.branch-grid { align-items: start; gap: 10px; }
.branch { padding: 0; }
.branch-summary { padding: 12px 16px; cursor: pointer; color: var(--blue-dark); }
.branch-summary:focus-visible { outline-offset: -4px; }
.branch-name { font-weight: 750; }
.branch-summary .tag { display: inline; margin: 0 0 0 8px; }
.branch-body { padding: 0 16px 16px; }
.branch-photo { max-height: 220px; object-fit: contain; background: var(--ice); }
