:root {
  --plum: #3b1a55;
  --plum-deep: #2a1040;
  --yellow: #ffc93c;
  --kiwi: #4f7f2a;
  --paper: #fbfaf8;
  --ink: #1e1428;
  --muted: #6b6275;
  --line: #e7e2ea;
  --head: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--yellow); }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 248, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 20px; min-height: 88px; }
.logo img { height: 68px; width: auto; }
.main-nav { margin-left: auto; display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 500;
}
.main-nav a:hover { background: #efe9f3; }
.main-nav a[aria-current="page"] { background: var(--plum); color: #fff; }
.call {
  background: var(--yellow); color: var(--plum);
  font-weight: 700; text-decoration: none;
  padding: 9px 18px; border-radius: 999px;
}
.call:hover { background: #ffd566; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; text-decoration: none;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
}
.btn-yellow { background: var(--yellow); color: var(--plum); }
.btn-yellow:hover { background: #ffd566; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-plum { background: var(--plum); color: #fff; }
.btn-plum:hover { background: var(--plum-deep); }

/* ---------- Hero ---------- */
.hero { background: var(--plum); color: #fff; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px;
  align-items: center; padding-block: 64px;
}
.hero h1 {
  font-family: var(--head); font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 4.3rem);
  line-height: 1.04; letter-spacing: -.02em;
  margin: 0 0 20px;
}
.hero p { margin: 0 0 28px; max-width: 52ch; color: #e6daf0; font-size: 1.0625rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.collage { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; justify-self: center; }
.tile {
  position: absolute; width: 56%; aspect-ratio: 1;
  border: 6px solid #fff; border-radius: 22px; overflow: hidden;
  background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  animation: drop .7s cubic-bezier(.2, .8, .2, 1) both;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.t1 { top: 0; left: 2%; --r: -5deg; }
.t2 { top: 24%; right: 0; --r: 4deg; animation-delay: .15s; }
.t3 { bottom: 0; left: 14%; --r: -2deg; animation-delay: .3s; }
.tile { transform: rotate(var(--r)); }
@keyframes drop {
  from { opacity: 0; transform: translateY(-24px) rotate(var(--r)); }
  to { opacity: 1; transform: translateY(0) rotate(var(--r)); }
}

/* ---------- Facts ---------- */
.facts { background: #fff; border-bottom: 1px solid var(--line); }
.facts ul {
  list-style: none; margin: 0; padding: 22px 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.facts li { border-left: 4px solid var(--yellow); padding-left: 14px; }
.facts strong { display: block; }
.facts span { color: var(--muted); font-size: .9375rem; }

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
.section h2 {
  font-family: var(--head); font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15; letter-spacing: -.01em; margin: 0 0 8px;
}
.lede { margin: 0; color: var(--muted); max-width: 60ch; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.tab {
  font: inherit; font-weight: 500; cursor: pointer;
  padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.tab:hover { border-color: var(--plum); }
.tab[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card[hidden] { display: none; }
.thumb { position: relative; aspect-ratio: 1; background: #f3eff6; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.emoji { display: grid; place-items: center; font-size: 4rem; }
.tag, .stock {
  position: absolute; left: 10px; top: 10px;
  font-weight: 700; font-size: .75rem; padding: 4px 10px; border-radius: 999px;
}
.tag { background: var(--yellow); color: var(--plum); }
.stock { background: var(--ink); color: #fff; }
.card.soldout .thumb img { opacity: .45; filter: grayscale(.6); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 1rem; line-height: 1.35; font-weight: 700; }
.desc { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.more {
  margin-top: auto; padding-top: 8px;
  font-weight: 600; font-size: .875rem; color: var(--plum);
}

/* ---------- Branches ---------- */
.branches { background: #fff; border-block: 1px solid var(--line); }
.branch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px;
}
.branch {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; display: flex; flex-direction: column; gap: 4px;
}
.branch h3 { margin: 0; font-family: var(--head); font-size: 1.2rem; font-weight: 800; }
.branch address { font-style: normal; color: var(--muted); }
.branch .phone {
  font-family: var(--head); font-weight: 800; font-size: 1.6rem;
  color: var(--plum); text-decoration: none; margin-top: 10px;
}
.branch .phone:hover { text-decoration: underline; }
.branch .route { font-weight: 600; font-size: .9375rem; color: var(--kiwi); margin-top: 6px; }
.branch-cta { margin-top: 28px; }

/* ---------- Contact page ---------- */
.page-head { background: var(--plum); color: #fff; }
.page-head .wrap { padding-block: 52px; }
.page-head h1 {
  font-family: var(--head); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 12px;
}
.page-head p { margin: 0; color: #e6daf0; max-width: 56ch; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.info {
  border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 22px;
}
.info h3 { margin: 0 0 10px; font-family: var(--head); font-size: 1.2rem; font-weight: 800; }
.info ul { margin: 0; padding-left: 20px; }
.info li { margin-bottom: 6px; }
.info p { margin: 0 0 8px; }
.info a { color: var(--plum); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; background: var(--paper); }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-footer h3 { margin: 0 0 10px; font-family: var(--head); font-size: 1.05rem; font-weight: 800; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; color: var(--muted); font-size: .9375rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 44px; gap: 36px; }
  .collage { max-width: 380px; }
  .branch-grid, .foot { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .logo img { height: 56px; }
  .call { display: none; }
  .facts ul { grid-template-columns: 1fr; gap: 16px; }
  .section { padding-block: 44px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { animation: none; }
}
