/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { -webkit-user-drag: none; user-select: none; }
button { font-family: inherit; }

:root {
  /* warm, wood-toned palette — matches the shop's real interior (light oak slats, cream walls, warm lantern light) */
  --bg: #f2ead9;
  --bg-elev: #ece1cc;
  --paper: #fbf6ec;
  --wood: #8a5a34;
  --wood-dark: #4a2f1c;
  --wood-deep: #2c1c11;
  --text: #33241a;
  --muted: #7d6a57;
  --red: #d3352a;
  --red-soft: #ea5744;
  --yellow: #e8a423;
  --green: #4c7a45;
  --green-soft: #5f9455;
  --glass: rgba(74, 47, 28, 0.06);
  --glass-strong: rgba(74, 47, 28, 0.09);
  --glass-border: rgba(74, 47, 28, 0.16);
  --dial-size: clamp(280px, 46vw, 460px);
  --hero-h: clamp(240px, 44vh, 460px);

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
}

/* subtle grain overlay for a hand-made, "not fast food" texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ===================== LOADING SCREEN ===================== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: radial-gradient(circle at 50% 42%, #2a1c12 0%, #150d08 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  transition: opacity 0.5s ease;
}
#loader.loader-out { opacity: 0; pointer-events: none; }

.loader-stage {
  position: relative;
  width: 220px;
  height: 220px;
}
.loader-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  object-fit: contain;
  /* each shape keeps a fixed orientation — only its slot (position) changes */
  transition: transform 0.4s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
#shape-tri   { --glow: rgba(211, 53, 42, 0.55);  filter: drop-shadow(0 0 20px var(--glow)); }
#shape-circle{ --glow: rgba(232, 164, 35, 0.55); filter: drop-shadow(0 0 20px var(--glow)); }
#shape-square{ --glow: rgba(95, 148, 85, 0.5);   filter: drop-shadow(0 0 20px var(--glow)); }

.loader-shape.shape-tick {
  animation: shape-tick 0.4s cubic-bezier(.2, .8, .2, 1);
}
@keyframes shape-tick {
  0%   { filter: drop-shadow(0 0 20px var(--glow)) brightness(1); }
  35%  { filter: drop-shadow(0 0 36px var(--glow)) brightness(1.5); }
  100% { filter: drop-shadow(0 0 20px var(--glow)) brightness(1); }
}

.loader-word {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: #cbb8a3;
  animation: word-pulse 1.6s ease-in-out infinite;
}
@keyframes word-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* ===================== HOME SCREEN ===================== */
#home {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  padding-top: 6px;
  padding-bottom: 6px;
}
#home.home-in { opacity: 1; transition: opacity 0.6s ease; }

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: linear-gradient(to bottom, rgba(20,13,8,0.55), transparent);
}
.topbar-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  background: rgba(251, 246, 236, 0.92);
  padding: 7px 12px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(20, 13, 8, 0.18);
}
.topbar-logo { height: 36px; display: block; }
.topbar-brand--ghost {
  background: none;
  padding: 0;
  box-shadow: none;
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar-link {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff7ea;
  text-decoration: none;
  padding: 5px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.topbar-link:hover { border-color: currentColor; }
.topbar-link.is-current { border-color: currentColor; cursor: default; }
.topbar-tag {
  margin: 0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #e7dcc9;
}

/* tricolor band — persistent framing on every page */
.brand-band {
  position: fixed;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 2000;
  display: flex;
  pointer-events: none;
}
.brand-band--top { top: 0; }
.brand-band--bottom { bottom: 0; }
.brand-band span { flex: 1; }
.brand-band span:nth-child(1) { background: var(--red); }
.brand-band span:nth-child(2) { background: var(--yellow); }
.brand-band span:nth-child(3) { background: var(--green); }

.stage {
  position: relative;
}

/* ---------- upper half : hero photo ---------- */
.hero {
  position: relative;
  overflow: hidden;
  height: var(--hero-h);
  background: var(--wood-deep);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}
.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20,13,8,0.6) 0%, transparent 30%),
    linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
}
/* ---------- divider ---------- */
.divider-line {
  position: absolute;
  top: var(--hero-h);
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--glass-border) 15%, var(--glass-border) 85%, transparent);
  z-index: 5;
}

/* ---------- radial dial : connected donut-chart menu ---------- */
.dial {
  position: absolute;
  top: var(--hero-h);
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--dial-size);
  height: var(--dial-size);
  z-index: 15;
}
.dial-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.dial-wedge {
  cursor: pointer;
  outline: none;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), filter 0.25s ease;
  transform-box: view-box;
  transform-origin: center;
}
.dial-wedge { fill: var(--wood); }

.dial-wedge.is-hover {
  transform: scale(1.045);
  filter: brightness(1.08) drop-shadow(0 4px 14px rgba(44, 28, 17, 0.35));
}
.dial-wedge.is-active {
  filter: brightness(1.12) drop-shadow(0 6px 18px rgba(44, 28, 17, 0.4));
  transform: scale(1.07);
}
.dial-wedge.is-active.is-hover { transform: scale(1.09); }

.dial-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dial-label {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff7ea;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  width: 74px;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.dial-label.is-hover,
.dial-label.is-active { transform: translate(-50%, -50%) scale(1.08); }

.dial-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42%;
  height: 42%;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px var(--bg), 0 10px 26px rgba(44, 28, 17, 0.28);
}
.dial-hub-mark { width: 54%; height: auto; }

/* ---------- lower half : description ---------- */
.detail {
  position: relative;
  z-index: 10;
  padding: calc(var(--dial-size) * 0.48 + 22px) 26px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg);
}
.detail h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--wood-dark);
}
.detail p {
  margin: 0 0 18px;
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.detail-sides {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.detail-sides-label {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  opacity: 0.85;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 460px;
}
.chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--glass-border);
  color: var(--wood-dark);
}

/* ===================== BRAND PAGE ===================== */
.topbar--static {
  background: var(--paper);
  border-bottom: 1px solid var(--glass-border);
}
.topbar--static .topbar-link { color: var(--wood-dark); }
.topbar--static .topbar-tag { color: var(--muted); }

.brand-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 26px 80px;
}

.brand-intro {
  text-align: center;
  margin-bottom: 56px;
}
.brand-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wood);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.brand-intro h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--wood-dark);
}
.brand-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 2.4vw, 21px);
  font-weight: 500;
  color: var(--wood);
  max-width: 520px;
  margin: 0 auto 26px;
  line-height: 1.5;
}
.brand-intro p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 16px;
}
.brand-welcome {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--wood-dark) !important;
  font-size: 16px !important;
  margin-top: 24px !important;
}

.brand-shapes {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.brand-shape-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--paper);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 22px 26px;
}
.brand-shape-icon {
  flex: none;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-shape-icon img { width: 100%; height: 100%; object-fit: contain; }
.brand-shape-copy h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--wood-dark);
}
.brand-shape-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.chip--red { background: rgba(211,53,42,0.12); border-color: rgba(211,53,42,0.3); color: #a3271e; }
.chip--yellow { background: rgba(232,164,35,0.16); border-color: rgba(232,164,35,0.35); color: #8a5c10; }
.chip--green { background: rgba(76,122,69,0.14); border-color: rgba(76,122,69,0.32); color: #345c2e; }

/* ===================== CONTACT PAGE ===================== */
.contact-address {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 420px;
  margin: 0 auto 24px;
}
.btn-directions {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--wood-dark);
  padding: 12px 26px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-directions:hover { background: var(--wood); transform: translateY(-1px); }

.map-frame {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 48px;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 32px rgba(44, 28, 17, 0.14);
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.social-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--glass-border);
  color: var(--wood-dark);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-icon svg { width: 26px; height: 26px; }
.social-icon:hover { transform: translateY(-3px); color: #fff; }
.social-icon--whatsapp:hover { background: #25D366; border-color: #25D366; }
.social-icon--tiktok:hover { background: #010101; border-color: #010101; }
.social-icon--instagram:hover { background: radial-gradient(circle at 30% 110%, #fdf497, #fd5949 45%, #d6249f 70%, #285AEB); border-color: transparent; }
.social-icon--facebook:hover { background: #1877F2; border-color: #1877F2; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  :root { --dial-size: clamp(260px, 58vw, 380px); }
  .dial-label { font-size: 12px; width: 62px; }
}

@media (max-width: 560px) {
  :root { --dial-size: clamp(230px, 68vw, 320px); }
  .dial-label { font-size: 10.5px; width: 54px; }
  .dial-hub-mark { width: 48%; }
  .topbar-tag { display: none; }
  .detail { padding-left: 18px; padding-right: 18px; padding-bottom: 18px; }
  .detail p { font-size: 13.5px; }
  .brand-page { padding: 40px 18px 60px; }
  .brand-shape-card { flex-direction: column; text-align: center; padding: 22px 20px; }
  .brand-shape-icon { width: 68px; height: 68px; }
  .map-frame { aspect-ratio: 4 / 5; border-radius: 18px; }
  .social-icon { width: 48px; height: 48px; }
  .social-icon svg { width: 22px; height: 22px; }
}

@media (max-height: 620px) {
  :root { --dial-size: clamp(210px, 42vh, 320px); }
  .topbar { padding: 8px 16px; }
}
