/* ================================================================
   АНЧЕЛОТА · Споделена marca система
   Design tokens · Navigation · Footer
   Изтегля се от: /, /app/, /21/
   ================================================================ */

:root {
  /* —— Палитра (споделена) —— */
  --ach-paper:      #fbf7f1;
  --ach-sand-100:   #f4ede1;
  --ach-sand-200:   #e8dcc5;
  --ach-ink:        #1a1612;
  --ach-ink-soft:   #2d2620;
  --ach-clay-300:   #d4a373;
  --ach-clay-500:   #b8794a;
  --ach-clay-700:   #8a4f2a;
  --ach-sage-400:   #8a9576;
  --ach-sage-600:   #5d6849;
  --ach-terra:      #c8553d;
  --ach-mist:       #7a7062;
  --ach-hair:       rgba(26, 22, 18, 0.12);
  --ach-hair-soft:  rgba(26, 22, 18, 0.06);

  /* —— Nav тема (по подразбиране: light) —— */
  --ach-nav-bg:         rgba(251, 247, 241, 0.82);
  --ach-nav-border:     rgba(26, 22, 18, 0.06);
  --ach-nav-fg:         #1a1612;
  --ach-nav-fg-soft:    #2d2620;
  --ach-nav-tab-hover:  #f4ede1;
  --ach-nav-active-bg:  #1a1612;
  --ach-nav-active-fg:  #fbf7f1;
  --ach-nav-accent:     #b8794a;
}

/* —— Dark тема за nav на /21/ (One Breath dark page) —— */
body.ach-dark {
  --ach-nav-bg:         rgba(12, 20, 17, 0.78);
  --ach-nav-border:     rgba(241, 234, 221, 0.08);
  --ach-nav-fg:         #f1eadd;
  --ach-nav-fg-soft:    rgba(241, 234, 221, 0.82);
  --ach-nav-tab-hover:  rgba(241, 234, 221, 0.08);
  --ach-nav-active-bg:  #c89868;
  --ach-nav-active-fg:  #0c1411;
  --ach-nav-accent:     #c89868;
}

/* ================================================================
   NAV
   ================================================================ */
.ach-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--ach-nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ach-nav-border);
}
.ach-nav-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.ach-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ach-nav-fg);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.ach-mandala {
  width: 24px; height: 24px;
  color: var(--ach-nav-accent);
  flex-shrink: 0;
  animation: ach-spin 80s linear infinite;
}
@keyframes ach-spin { to { transform: rotate(360deg); } }

.ach-nav-tabs {
  display: flex;
  gap: 4px;
  list-style: none;
  justify-content: center;
  margin: 0; padding: 0;
}
.ach-nav-tabs a {
  display: inline-block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ach-nav-fg-soft);
  padding: 8px 16px;
  border-radius: 100px;
  text-decoration: none;
  transition: background .3s, color .3s;
}
.ach-nav-tabs a:hover {
  background: var(--ach-nav-tab-hover);
  color: var(--ach-nav-fg);
}
.ach-nav-tabs a.active {
  background: var(--ach-nav-active-bg);
  color: var(--ach-nav-active-fg);
}

.ach-nav-phone {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ach-nav-fg-soft);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color .3s;
  white-space: nowrap;
}
.ach-nav-phone:hover { color: var(--ach-nav-accent); }

@media (max-width: 820px) {
  .ach-nav-tabs { display: none; }
  .ach-nav-inner { grid-template-columns: auto auto; height: 60px; }
}
@media (max-width: 480px) {
  .ach-nav-phone { display: none; }
  .ach-nav-inner { grid-template-columns: auto; justify-content: start; }
}

/* ================================================================
   FOOTER · always dark (consistent across all pages)
   ================================================================ */
.ach-footer {
  background: var(--ach-ink);
  color: var(--ach-paper);
  padding: 80px 0 32px;
  position: relative;
  z-index: 5;
  font-family: 'Inter Tight', sans-serif;
}
.ach-footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 32px;
}
.ach-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(251, 247, 241, 0.12);
}
.ach-footer-brand .ach-brand {
  color: var(--ach-paper);
  font-size: 28px;
}
.ach-footer-brand .ach-mandala { color: var(--ach-clay-300); }
.ach-footer-brand p {
  margin-top: 14px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(251, 247, 241, 0.65);
  max-width: 360px;
  font-weight: 300;
}
.ach-footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ach-clay-300);
  margin: 0 0 14px;
  font-weight: 400;
}
.ach-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0; padding: 0;
}
.ach-footer-col ul li {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  color: rgba(251, 247, 241, 0.82);
  line-height: 1.4;
  font-weight: 400;
}
.ach-footer-col ul a {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  color: rgba(251, 247, 241, 0.82);
  text-decoration: none;
  transition: color .3s;
}
.ach-footer-col ul a:hover { color: var(--ach-clay-300); }

.ach-footer-bottom {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ach-footer-bottom span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 247, 241, 0.45);
}

@media (max-width: 880px) {
  .ach-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .ach-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .ach-footer-grid { grid-template-columns: 1fr; }
}
