/* ============================================================
   Bayo Electronics — Brikama Market highway
   Palette: Nord (polar night / snow storm / frost)
   ============================================================ */

:root {
  color-scheme: dark;

  /* Nord — dark (default) */
  --bg:        #2e3440;
  --bg-2:      #292e39;
  --surface:   #343b48;
  --surface-2: #3b4252;
  --ink:       #eceff4;
  --ink-soft:  #d8dee9;
  --muted:     #9aa5b5;
  --accent:    #88c0d0;
  --accent-2:  #8fbcbb;
  --secondary: #a3be8c;
  --warn:      #ebcb8b;
  --line:      rgba(216, 222, 233, 0.14);
  --line-soft: rgba(216, 222, 233, 0.08);
  --glow-a:    rgba(136, 192, 208, 0.16);
  --glow-b:    rgba(163, 190, 140, 0.12);
  --shadow:    0 18px 40px -24px rgba(0, 0, 0, 0.75);

  --font-body: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --shell: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg:        #eceff4;
  --bg-2:      #e5e9f0;
  --surface:   #ffffff;
  --surface-2: #f4f6fa;
  --ink:       #2e3440;
  --ink-soft:  #3b4252;
  --muted:     #5b6675;
  --accent:    #3f7f92;
  --accent-2:  #4c7f7d;
  --secondary: #5d7a45;
  --warn:      #8a6a1f;
  --line:      rgba(46, 52, 64, 0.16);
  --line-soft: rgba(46, 52, 64, 0.09);
  --glow-a:    rgba(136, 192, 208, 0.30);
  --glow-b:    rgba(163, 190, 140, 0.24);
  --shadow:    0 18px 40px -26px rgba(46, 52, 64, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink-soft);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 8% -4%,  var(--glow-a) 0%, transparent 62%),
    radial-gradient(ellipse 65% 50% at 96% 104%, var(--glow-b) 0%, transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: 1.075rem; letter-spacing: 0.01em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #1b2029;
  padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0.7rem var(--gutter);
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.brand-mark {
  font-family: var(--font-mono);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
  color: #20252e;
  background: var(--accent);
  padding: 0.45rem 0.5rem;
  border-radius: 7px;
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { color: var(--ink); font-size: 1rem; letter-spacing: -0.01em; }
.brand-text em {
  font-family: var(--font-mono);
  font-style: normal; font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.topnav { display: flex; gap: 1.1rem; margin-left: auto; flex-wrap: wrap; }
.topnav a {
  font-family: var(--font-mono);
  font-size: 0.76rem; letter-spacing: 0.04em;
  color: var(--muted); text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.topnav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: 0.6rem; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 44px; padding: 0 0.85rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--accent); }
.theme-icon { font-size: 0.95rem; line-height: 1; color: var(--accent); }

.call-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0 1.05rem;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em;
  color: #20252e; background: var(--accent);
  border-radius: 999px; text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.call-btn:hover { background: var(--accent-2); color: #20252e; transform: translateY(-1px); }
.call-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #20252e; opacity: 0.65;
}

/* ---------- vertical spine H1 ---------- */

.spine {
  position: fixed;
  left: 1.1rem; top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin: 0;
  z-index: 30;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.62rem + 0.5vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding: 1rem 0 1rem 0.85rem;
}
.spine-text { display: inline-block; }
.spine-text .type-char { opacity: 0; animation: type-in 0.01s linear forwards; }
.spine-text .caret {
  display: inline-block;
  width: 0.55em; height: 1px;
  background: var(--accent);
  margin-left: 0.35em;
  vertical-align: middle;
  animation: caret-blink 1.05s steps(1, end) infinite;
}
@keyframes type-in { to { opacity: 1; } }
@keyframes caret-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- shell ---------- */

main { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
section { margin: 0 0 clamp(3.5rem, 7vw, 6rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 0.6rem;
  margin: 0 0 0.9rem;
}
.ln {
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  font-size: 0.66rem;
}
.section-head { max-width: 62ch; margin-bottom: 2.25rem; }
.section-note { color: var(--muted); font-size: 0.95rem; margin-top: 0.9rem; }

/* ---------- hero ---------- */

.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}
.hero-lede {
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.012em;
  margin-bottom: 1.1rem;
}
.hero-sub { color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.4rem;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em;
  border-radius: 999px; text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-primary { background: var(--accent); color: #20252e; }
.btn-primary:hover { background: var(--accent-2); color: #20252e; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-facts {
  list-style: none; margin: 0; padding: 1.1rem 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid; gap: 0.45rem;
  font-size: 0.9rem;
}
.hero-facts .k {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  display: inline-block; min-width: 5.5rem;
}

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero-figure figcaption {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted);
  margin-top: 0.7rem;
}

/* ---------- strip ---------- */

.strip { margin-bottom: clamp(3rem, 6vw, 5rem); }
.strip-inner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.strip-line {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.66rem + 0.3vw, 0.85rem);
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
  text-align: center;
}

/* ---------- menu block ---------- */

.menu { display: grid; gap: 2.75rem; }
.menu-group h3 {
  font-family: var(--font-mono);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
  margin-bottom: 0.35rem;
}
.menu .item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.menu .item:last-child { border-bottom: 0; }
.item-name { color: var(--ink); font-weight: 600; margin: 0 0 0.15rem; }
.item-desc { color: var(--muted); font-size: 0.9rem; margin: 0; max-width: 62ch; }
.item-price {
  font-family: var(--font-mono);
  font-size: 0.86rem; font-weight: 600;
  color: var(--secondary);
  white-space: nowrap;
  margin: 0;
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; aspect-ratio: 9 / 7; object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.gallery figure:hover img { border-color: var(--accent); transform: translateY(-2px); }
.gallery figcaption {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted);
  margin-top: 0.55rem;
}

/* ---------- terms ---------- */

.terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.term {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
}
.term h3 { margin-bottom: 0.5rem; color: var(--ink); }
.term p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- footer cards ---------- */

.footer-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.card-note { color: var(--muted); font-size: 0.88rem; margin-top: 1rem; }

.hours { margin: 0; display: grid; gap: 0.3rem; font-size: 0.92rem; }
.hours > div {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px dashed var(--line-soft);
}
.hours > div:last-child { border-bottom: 0; }
.hours dt { color: var(--ink-soft); }
.hours dd { margin: 0; font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.hours .closed dt, .hours .closed dd { color: var(--warn); }

.card-location address {
  font-style: normal;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 0.25rem;
}
.map-link {
  display: inline-block; margin-top: 1rem;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.phone-big {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
  display: inline-block;
}
.phone-big:hover { color: var(--accent); }
.contact-list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.4rem; font-size: 0.88rem; }
.contact-list .k {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  display: inline-block; min-width: 5.4rem;
}

/* ---------- about ---------- */

.about-body { max-width: 68ch; }
.about-body p { color: var(--ink-soft); }
.about-sign {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em;
  color: var(--muted); margin-top: 1.5rem;
}

/* ---------- quote band ---------- */

.quote-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3.25rem) 0;
  text-align: center;
}
.quote-band blockquote { margin: 0; }
.quote-band p {
  font-size: clamp(1.15rem, 1rem + 1vw, 1.7rem);
  line-height: 1.4; color: var(--ink);
  max-width: 34ch; margin: 0 auto 0.9rem;
  letter-spacing: -0.012em;
}
.quote-band cite {
  font-family: var(--font-mono); font-style: normal;
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- site footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 3.25rem) var(--gutter) 2rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand { color: var(--ink); font-weight: 600; margin: 0 0 0.35rem; }
.footer-head {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 0.5rem;
}
.footer-line { color: var(--muted); font-size: 0.88rem; margin: 0; line-height: 1.7; }

.claim-wrap { margin: 1.5rem 0 0; }
.claim-banner {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.claim-banner:hover { color: var(--accent); border-color: var(--accent); }

.attribution {
  margin: 1.25rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.7;
}
.attribution a { color: inherit; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .footer-cards { grid-template-columns: 1fr 1fr; }
  .card-contact { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .spine {
    position: static;
    writing-mode: horizontal-tb;
    transform: none;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.9rem var(--gutter) 0.7rem;
    max-width: var(--shell);
    margin: 0 auto;
    letter-spacing: 0.3em;
    font-size: 0.72rem;
  }
  .topnav { order: 3; width: 100%; margin-left: 0; gap: 0.9rem; }
  .topbar-actions { margin-left: auto; }
  .footer-cards { grid-template-columns: 1fr; }
  .card-contact { grid-column: auto; }
  .menu .item { grid-template-columns: 1fr; gap: 0.35rem; }
  .item-price { justify-self: start; }
}

@media (max-width: 420px) {
  .theme-label { display: none; }
  .brand-text em { display: none; }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .spine-text .type-char { opacity: 1; }
  .spine-text .caret { animation: none; opacity: 1; }
  .gallery figure:hover img { transform: none; }
}

/* ---------- print ---------- */

@media print {
  .topbar, .spine, .theme-toggle, .call-btn, .claim-wrap { display: none; }
  body { background: #fff; color: #000; }
}
