@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --blue: #0185cd;
  --blue-dark: #006aa6;
  --blue-soft: #e6f3fb;
  --ink: #14212b;
  --ink-2: #4a5a66;
  --ink-3: #8696a2;
  --line: #e3e9ee;
  --bg: #f5f8fa;
  --card: #ffffff;
  --hot: #e8590c;
  --gold: #d99a00;
  --radius: 16px;
  --top-h: 68px;
  --tab-h: 70px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --shadow: 0 1px 2px rgba(20,33,43,.06), 0 4px 14px rgba(20,33,43,.06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none;
}
input, textarea { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 20px 0;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 22px; letter-spacing: -.5px;
}
.brand-mark.sm { width: 34px; height: 34px; font-size: 18px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 18px; font-weight: 700; letter-spacing: -.2px; white-space: nowrap; }
.brand-text small { font-size: 12px; color: var(--blue); font-weight: 600; letter-spacing: .3px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 48px; height: 48px; border-radius: 12px; border: 0; background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
}
.icon-btn:active { background: var(--blue-soft); }
.icon-btn.sm { width: 38px; height: 38px; }
.back-btn { margin-left: -8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; cursor: pointer; white-space: nowrap;
}
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:active { background: var(--blue-dark); }
.btn-outline { background: #fff; color: var(--blue); border-color: #b9dcf0; }
.btn-outline:active { background: var(--blue-soft); }
.btn-block { width: 100%; }

/* ---------- Layout ---------- */
.view {
  padding: calc(var(--top-h) + var(--safe-t) + 20px) 24px calc(var(--tab-h) + var(--safe-b) + 28px);
  max-width: 1280px; margin: 0 auto; min-height: 100%; outline: none;
}
.offline-pill {
  position: fixed; z-index: 19; left: 50%; transform: translateX(-50%);
  top: calc(var(--top-h) + var(--safe-t) + 8px);
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 99px;
}

.page-head { margin: 4px 0 20px; }
.page-head h1 { font-size: 30px; line-height: 1.15; margin: 0; letter-spacing: -.6px; font-weight: 750; }
.page-head p { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.crumbs a { color: var(--blue); font-weight: 500; }
.crumbs .sep { opacity: .6; }

/* Hero */
.hero {
  border-radius: 22px; padding: 28px 30px; margin-bottom: 22px; color: #fff;
  background: linear-gradient(120deg, #0185cd 0%, #0a6fb0 55%, #0b4f86 100%);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.hero h1 { margin: 0; font-size: 32px; letter-spacing: -.6px; font-weight: 750; }
.hero p { margin: 8px 0 0; opacity: .9; font-size: 16px; max-width: 560px; }

/* Search */
.search {
  display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; margin-bottom: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.search svg { color: var(--ink-3); }
.search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 17px; background: transparent; color: var(--ink); min-width: 0; }
.search .clear { border: 0; background: var(--bg); border-radius: 99px; width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; }
.search .clear svg { width: 16px; height: 16px; }

.section-title { font-size: 15px; font-weight: 650; color: var(--ink-2); text-transform: uppercase; letter-spacing: .6px; margin: 4px 0 14px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.grid.cats { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; position: relative;
}
.card:active { transform: scale(.975); }

.cat-card { padding: 22px 18px 18px; align-items: flex-start; gap: 14px; min-height: 160px; }
.cat-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.cat-icon svg { width: 32px; height: 32px; stroke-width: 1.6; }
.cat-card h3 { margin: auto 0 0; font-size: 18px; font-weight: 650; letter-spacing: -.2px; }
.cat-card .count { font-size: 13px; color: var(--ink-3); margin-top: -8px; }

.thumb { aspect-ratio: 4 / 3; background: var(--blue-soft); position: relative; overflow: hidden; isolation: isolate; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .ph {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue);
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.7), transparent 45%),
    linear-gradient(135deg, #e6f3fb, #cfe7f6);
}
.thumb .ph svg { width: 46px; height: 46px; stroke-width: 1.3; opacity: .8; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.card-body h3 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.2px; line-height: 1.25; }
.card-body .meta { font-size: 13px; color: var(--ink-3); }

.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 1; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; color: #fff; }
.badge.best { background: var(--gold); }
.badge.hot { background: var(--hot); }

.group-arrow { position: absolute; right: 14px; bottom: 16px; color: var(--ink-3); }
.group-arrow svg { width: 20px; height: 20px; }

/* ---------- Product page ---------- */
.product { display: grid; gap: 28px; grid-template-columns: 1.1fr 1fr; align-items: start; }
.product .gallery { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.product .gallery .thumb { aspect-ratio: 4 / 3; }
.thumbs-row { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumbs-row img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.thumbs-row img.on { border-color: var(--blue); }
.product h1 { font-size: 32px; margin: 0 0 10px; letter-spacing: -.6px; line-height: 1.15; font-weight: 750; }
.product .desc { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 0 0 24px; white-space: pre-line; }
.product .actions { display: grid; gap: 12px; }
.product .actions .btn { height: 56px; font-size: 17px; }
.product .inline-badges { display: flex; gap: 8px; margin-bottom: 12px; }
.product .inline-badges .badge { position: static; }

/* ---------- Brochure list ---------- */
.list { display: grid; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; cursor: pointer; box-shadow: var(--shadow);
}
.row:active { background: var(--blue-soft); }
.row .ricon { width: 46px; height: 46px; border-radius: 12px; background: #fdecec; color: #d64545; display: grid; place-items: center; flex: none; }
.row .rtext { min-width: 0; flex: 1; }
.row .rtext strong { display: block; font-size: 16px; font-weight: 600; }
.row .rtext span { display: block; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.featured { border-color: #b9dcf0; background: var(--blue-soft); }
.row.featured .ricon { background: var(--blue); color: #fff; }

/* Empty state */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-2); }
.empty .eicon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 20px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.empty .eicon svg { width: 36px; height: 36px; }
.empty h2 { font-size: 20px; margin: 0 0 6px; color: var(--ink); }
.empty p { margin: 0 auto; max-width: 420px; font-size: 15px; line-height: 1.5; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--ink-3); font-size: 12.5px; font-weight: 600; position: relative;
}
.tabbar a svg { width: 26px; height: 26px; }
.tabbar a.on { color: var(--blue); }
.tabbar a.on::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue);
}
.tabbar a.on svg { fill: rgba(1,133,205,.12); }

/* ---------- Sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(10,20,30,.42); z-index: 60; animation: fade .18s ease; }
.sheet {
  position: fixed; z-index: 61; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(620px, 100%); max-height: 92vh; overflow: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 22px 22px 0 0; padding: 10px 24px calc(24px + var(--safe-b));
  animation: up .22s cubic-bezier(.2,.8,.2,1);
}
.sheet-handle { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 16px; }
.sheet h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.3px; }
.sheet p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.5; }
.sheet .menu { display: grid; gap: 10px; margin-top: 8px; }
.sheet .menu .row { box-shadow: none; }
.sheet .menu .row .ricon { background: var(--blue-soft); color: var(--blue); }
.progress { height: 8px; border-radius: 9px; background: var(--bg); overflow: hidden; margin: 10px 0 6px; }
.progress span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.small-note { font-size: 13px; color: var(--ink-3); }

/* ---------- Install banner ---------- */
.install-banner {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(var(--tab-h) + var(--safe-b) + 12px);
  max-width: 620px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(20,33,43,.16);
  animation: up .25s ease;
}
.install-text { flex: 1; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.install-text strong { color: var(--ink); display: block; font-size: 15px; }
.share-ico { display: inline-block; vertical-align: -4px; width: 18px; height: 18px; color: var(--blue); }

/* ---------- Brochure flipbook ---------- */
.book-viewer { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; animation: fade .15s ease;
  background: radial-gradient(ellipse at 50% 40%, #4b5966 0%, #2c3640 70%, #232b33 100%); }
.book-bar {
  flex: none; display: flex; align-items: center; gap: 10px; padding: var(--safe-t) 12px 0; height: calc(64px + var(--safe-t));
  background: #fff; border-bottom: 1px solid var(--line);
}
.book-title { flex: 1; min-width: 0; font-weight: 650; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-tools { display: flex; align-items: center; gap: 4px; }
.book-count { font-size: 14px; color: var(--ink-2); margin-right: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.book-stage { flex: 1; position: relative; display: grid; place-items: center; overflow: hidden; min-height: 0; }
.book-holder { position: relative; }
.book-holder .stf__parent { margin: 0 auto; }
.book-page { background: #fff; overflow: hidden; }
.book-page img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; -webkit-user-drag: none; pointer-events: none; }
.book-page.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px; border-radius: 50%;
  border: 3px solid #dfe7ee; border-top-color: var(--blue); animation: spin .8s linear infinite; }
.book-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.book-nav:active { background: #fff; transform: translateY(-50%) scale(.94); }
.book-nav.prev { left: 14px; } .book-nav.next { right: 14px; }
.book-nav[disabled] { opacity: 0; pointer-events: none; }
.book-status { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-align: center; font-size: 15px; padding: 24px; pointer-events: none; }
.book-status .spinner { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; margin: 0 auto 12px; animation: spin .8s linear infinite; }
.book-foot { flex: none; padding: 12px 24px calc(12px + var(--safe-b)); display: grid; gap: 10px; justify-items: center; }
.book-foot input { width: 100%; max-width: 760px; display: block; margin: 0 auto; accent-color: #fff; height: 28px; }
.zoom-layer { position: absolute; inset: 0; z-index: 10; background: #1d252c; display: flex; flex-direction: column; }
.zoom-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: var(--safe-t) 10px 0; height: calc(60px + var(--safe-t)); background: #fff; }
.zoom-bar span { flex: 1; font-weight: 600; }
.zoom-tools { display: flex; gap: 4px; }
.zoom-scroll { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.zoom-inner { display: flex; gap: 6px; padding: 12px; width: max-content; min-width: 100%; justify-content: center; }
.zoom-inner img { display: block; background: #fff; }

/* category icon images from World of Vista */
.cat-icon img { width: 40px; height: 40px; object-fit: contain; }
.brochure-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 20px; border-radius: 16px;
  background: var(--blue-soft); border: 1px solid #b9dcf0; cursor: pointer; }
.brochure-banner .ricon { width: 48px; height: 48px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.brochure-banner strong { display: block; font-size: 17px; }
.brochure-banner span { font-size: 13px; color: var(--ink-2); }
.brochure-banner > svg { margin-left: auto; color: var(--blue); }
.card .open-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--blue); font-weight: 600; margin-top: 4px; }
.card .open-hint svg { width: 16px; height: 16px; }
.thumb img { background: #fff; }

@keyframes up { from { transform: translate(-50%, 30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.install-banner { animation-name: up2; }
@keyframes up2 { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  :root { --top-h: 60px; --tab-h: 64px; }
  .topbar { padding-left: 14px; padding-right: 10px; }
  .brand-mark { width: 36px; height: 36px; font-size: 20px; }
  .brand-text strong { font-size: 16px; }
  .enquire-btn { padding: 0 14px; height: 42px; }
  .view { padding-left: 14px; padding-right: 14px; }
  .hero { padding: 22px; border-radius: 18px; }
  .hero h1 { font-size: 25px; }
  .page-head h1, .product h1 { font-size: 25px; }
  .grid, .grid.cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card { padding: 16px 14px 14px; min-height: 138px; }
  .cat-icon { width: 50px; height: 50px; }
  .cat-card h3 { font-size: 16px; }
  .card-body h3 { font-size: 15px; }
  .product { grid-template-columns: 1fr; gap: 18px; }
  .tabbar a { font-size: 11px; }
  .book-count { display: none; }
  #bookEnquire { display: none; }
  .get-brochure { width: 100%; justify-content: center; }
  .book-nav { width: 42px; height: 42px; }
  .book-nav.prev { left: 6px; } .book-nav.next { right: 6px; }
}
@media (max-width: 380px) {
  .brand-text small { display: none; }
}
/* Tablet portrait */
@media (min-width: 721px) and (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
}

/* ---------- Lead forms ---------- */
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:active { background: #178a45; }
.btn-wa svg { fill: none; }
.lead-form { display: grid; gap: 14px; }
.lead-form form { display: grid; gap: 14px; }
.form-head { display: flex; gap: 14px; align-items: center; margin-bottom: 2px; }
.form-head h2 { margin: 0; font-size: 21px; }
.form-head .form-sub { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }
.ficon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--blue-soft); color: var(--blue); }
.form-head.wa .ficon { background: #e4f6eb; color: #1fa855; }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; border: 1px solid #cfd9e1; border-radius: 12px; padding: 12px 14px;
  font: inherit; font-size: 17px; color: var(--ink); background: #fff; outline: none; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1,133,205,.15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { background: #fdecec; color: #b42318; border-radius: 10px; padding: 10px 12px; font-size: 14.5px; font-weight: 500; }
.form-note { margin: -4px 0 0; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.lead-form .btn-block { height: 56px; font-size: 17px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg); padding: 5px; border-radius: 12px; }
.seg button { height: 44px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 15px; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.seg button svg { width: 20px; height: 20px; }
.seg button.on { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.card-drop { display: grid; place-items: center; min-height: 170px; border: 2px dashed #b9dcf0; border-radius: 14px; background: var(--blue-soft);
  cursor: pointer; overflow: hidden; text-align: center; }
.card-empty { display: grid; gap: 4px; justify-items: center; color: var(--blue); padding: 20px; }
.card-empty svg { width: 40px; height: 40px; }
.card-empty b { color: var(--ink); font-size: 16px; }
.card-empty small { color: var(--ink-3); }
.card-drop img { width: 100%; max-height: 260px; object-fit: contain; background: #fff; }
.btn-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
.thanks { text-align: center; padding: 8px 0 4px; display: grid; gap: 10px; justify-items: center; }
.thanks h2 { margin: 4px 0 0; }
.thanks p { margin: 0 0 8px; max-width: 420px; }
.ok-mark { width: 72px; height: 72px; border-radius: 50%; background: #e4f6eb; color: #1fa855; display: grid; place-items: center; }
.ok-mark svg { width: 38px; height: 38px; stroke-width: 2.4; }

/* Big "Get Brochure" button under the flipbook */
.get-brochure {
  display: inline-flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 34px 10px 22px; border: 0; border-radius: 999px;
  background: #1fa855; color: #fff; cursor: pointer; text-align: left; font: inherit;
  box-shadow: 0 8px 24px rgba(31,168,85,.45), 0 0 0 4px rgba(255,255,255,.12);
  animation: pulseWa 2.6s ease-in-out infinite;
}
.get-brochure:active { transform: scale(.97); background: #178a45; }
.get-brochure svg { width: 34px; height: 34px; stroke-width: 1.9; }
.get-brochure b { display: block; font-size: 20px; font-weight: 750; letter-spacing: -.2px; line-height: 1.1; }
.get-brochure small { display: block; font-size: 13px; opacity: .9; font-weight: 500; }
@keyframes pulseWa { 0%, 100% { box-shadow: 0 8px 24px rgba(31,168,85,.45), 0 0 0 0 rgba(31,168,85,.55); }
  50% { box-shadow: 0 8px 24px rgba(31,168,85,.45), 0 0 0 12px rgba(31,168,85,0); } }
@media (prefers-reduced-motion: reduce) { .get-brochure { animation: none; } }

/* Close button on every form */
.sheet { padding-top: 14px; }
.sheet-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.sheet-close:active { background: var(--line); }
.sheet-close svg { width: 22px; height: 22px; }
.form-head, .sheet h2:first-child { padding-right: 44px; }   /* keep titles clear of the ✕ */
.thanks { padding-top: 22px; }

/* Vista logo */
.brand-logo { width: 40px; height: 40px; border-radius: 10px; flex: none; display: block; }
.brand-logo.sm { width: 34px; height: 34px; border-radius: 8px; }
@media (max-width: 720px) { .brand-logo { width: 36px; height: 36px; } }

/* ================= Design polish (v7) ================= */
:root { --bg: #f3f6f9; --blue: #007ac5; --blue-dark: #00609c; --blue-soft: #e8f3fb; --radius: 18px;
  --shadow: 0 1px 2px rgba(16,34,51,.05), 0 6px 20px rgba(16,34,51,.07); }
body { letter-spacing: -.005em; }
.view.enter { animation: viewIn .28s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view.enter { animation: none; } }

/* header */
.topbar { background: rgba(255,255,255,.92); border-bottom-color: #e7edf2; }
.brand-text strong { font-weight: 750; letter-spacing: -.3px; }
.brand-text small { letter-spacing: .6px; font-weight: 650; }
.enquire-btn { border-radius: 999px; padding: 0 22px; box-shadow: 0 4px 14px rgba(0,122,197,.28); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px;
  padding: 34px 36px; margin-bottom: 0; border-radius: 26px 26px 26px 26px;
  background:
    radial-gradient(900px 300px at 85% -40%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(125deg, #0a8ad6 0%, #007ac5 45%, #005b98 100%);
  box-shadow: 0 18px 40px -18px rgba(0,90,150,.55); }
.hero::after { display: none; }
.hero-pill { display: inline-block; font-size: 12.5px; font-weight: 650; letter-spacing: .3px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); margin-bottom: 14px; }
.hero h1 { font-size: 38px; letter-spacing: -.9px; line-height: 1.08; text-wrap: balance; }
.hero p { font-size: 16.5px; line-height: 1.55; max-width: 600px; opacity: .92; margin-top: 10px; }
.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-stats span { background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; }
.hero-stats b { color: var(--blue); font-weight: 750; }
.hero-art img { width: 132px; height: 132px; border-radius: 30px; display: block; transform: rotate(-6deg);
  box-shadow: 0 20px 40px rgba(0,40,80,.35), 0 0 0 6px rgba(255,255,255,.14); }

/* search floats on the hero edge */
.search { position: relative; z-index: 2; margin: -26px 28px 30px; height: 58px; border-radius: 16px; border: 1px solid #e3eaf0;
  box-shadow: 0 10px 30px rgba(16,34,51,.10); }

.section-title { text-transform: none; letter-spacing: -.2px; font-size: 19px; font-weight: 700; color: var(--ink); margin: 6px 0 16px; }

/* collection cards */
.grid.cats { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.card { border: 0; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { box-shadow: 0 2px 4px rgba(16,34,51,.06), 0 14px 30px rgba(16,34,51,.12); }
.cat-card { padding: 20px 18px 18px; min-height: 168px; }
.cat-icon { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(145deg, #eef7fd, #dcecf8); }
.cat-icon img { width: 44px; height: 44px; }
.cat-card h3 { font-size: 17.5px; letter-spacing: -.3px; }
.cat-card .count { color: var(--ink-3); font-weight: 500; }

/* brochure tiles: portrait photos like the website */
.grid { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid .card .thumb { aspect-ratio: 4 / 5; background: #eef3f7; }
.grid .card .thumb img { transition: transform .5s ease; }
.grid .card:hover .thumb img { transform: scale(1.04); }
.card-body { padding: 14px 16px 16px; gap: 8px; }
.card-body h3 { font-size: 16.5px; letter-spacing: -.25px; }
.card .open-hint { align-self: flex-start; margin-top: 2px; padding: 6px 11px; border-radius: 999px; background: var(--blue-soft); font-size: 12.5px; }
.group-arrow { background: #fff; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  top: 12px; right: 12px; bottom: auto; box-shadow: 0 2px 8px rgba(0,0,0,.15); color: var(--ink); }

/* page heads + brochure banner */
.page-head h1 { font-size: 34px; letter-spacing: -.8px; }
.crumbs a { padding: 3px 10px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.brochure-banner { border: 0; background: linear-gradient(120deg, #e9f5fd, #d9ecf9); padding: 18px 20px; border-radius: 18px; }

/* tab bar */
.tabbar { background: rgba(255,255,255,.96); border-top-color: #e7edf2; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
.tabbar a.on::before { display: none; }
.tabbar a svg { width: 24px; height: 24px; padding: 5px 16px; box-sizing: content-box; border-radius: 999px; transition: background .2s; }
.tabbar a.on svg { background: var(--blue-soft); fill: rgba(0,122,197,.14); }
.tabbar a span { margin-top: -2px; }

/* sheets & lists */
.sheet { border-radius: 26px 26px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.18); }
.row { border: 0; }
.empty .eicon { border-radius: 24px; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding: 24px 22px 40px; border-radius: 22px; }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 15px; }
  .hero-art { display: none; }
  .search { margin: -24px 12px 24px; }
  .grid, .grid.cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-card { min-height: 146px; padding: 16px 14px 14px; }
  .cat-icon { width: 54px; height: 54px; }
  .cat-icon img { width: 36px; height: 36px; }
  .page-head h1 { font-size: 27px; }
  .card .open-hint { font-size: 12px; padding: 5px 9px; }
  .tabbar a svg { padding: 4px 12px; }
  .enquire-btn { padding: 0 16px; }
}

/* v7 fixes */
.hero { padding-bottom: 58px; }
.hero-art img { transform: rotate(-4deg); }
.brand-text small, .brand-text strong { white-space: nowrap; }
@media (max-width: 720px) {
  .hero { padding-bottom: 46px; }
  .topbar { gap: 8px; }
  .brand { gap: 10px; }
  .brand-text strong { font-size: 15.5px; }
  .brand-text small { font-size: 11px; }
}
@media (max-width: 400px) { .back-btn:not([hidden]) ~ .brand .brand-text small { display: none; } }

/* ================= Tablet perfection (v8) ================= */
/* Forms open as a centred card on tablets (bottom sheet stays on phones) */
@media (min-width: 768px) and (min-height: 560px) {
  .sheet {
    top: 50%; bottom: auto; transform: translate(-50%, -50%);
    width: min(580px, 92vw); max-height: min(90dvh, 860px);
    border-radius: 26px; padding: 26px 30px 28px;
    animation: popIn .22s cubic-bezier(.2,.8,.2,1);
  }
  .sheet-handle { display: none; }
  .sheet-close { top: 16px; right: 16px; }
  .sheet-backdrop { background: rgba(10,20,30,.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
}
@keyframes popIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* Two fields side by side on wide tablets (name | number) */
@media (min-width: 1000px) and (min-height: 600px) {
  form.lead-form, .lead-form form[data-pane="form"] { grid-template-columns: 1fr 1fr; column-gap: 14px; }
  form.lead-form > *, .lead-form form[data-pane="form"] > * { grid-column: 1 / -1; }
  form.lead-form > .field:nth-of-type(1), form.lead-form > .field:nth-of-type(2),
  .lead-form form[data-pane="form"] > .field:nth-of-type(1), .lead-form form[data-pane="form"] > .field:nth-of-type(2) { grid-column: auto; }
}

/* Landscape tablets (≈1280×800, iPad 1180×820 / 1024×768): compact hero → more collections above the fold */
@media (min-width: 900px) and (max-height: 900px) {
  .view { padding-top: calc(var(--top-h) + var(--safe-t) + 16px); }
  .hero { padding: 24px 32px 48px; }
  .hero-pill { margin-bottom: 10px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15.5px; margin-top: 6px; }
  .hero-stats { margin-top: 12px; }
  .hero-art img { width: 104px; height: 104px; border-radius: 24px; }
  .search { margin-bottom: 22px; }
  .cat-card { min-height: 150px; padding: 18px 16px 16px; }
}

/* Portrait tablets (≈800×1280, iPad 820×1180): 4 collections / 3–4 brochures per row */
@media (min-width: 721px) and (max-width: 1024px) and (orientation: portrait) {
  .grid.cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr auto; }
}
@media (min-width: 900px) and (max-width: 1024px) and (orientation: portrait) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Big, easy touch targets everywhere on tablets */
@media (pointer: coarse) {
  .tabbar a { min-height: 56px; }
  .crumbs a { padding: 6px 12px; }
  .icon-btn { width: 50px; height: 50px; }
}
.field input, .field select, .field textarea { scroll-margin: 90px; }

/* Download PDF button (visitors who opened the brochure from WhatsApp / email) */
.get-brochure.dl { background: var(--blue); box-shadow: 0 8px 24px rgba(0,122,197,.45); animation: none; text-decoration: none; }
.get-brochure.dl:active { background: var(--blue-dark); }
