/* Narcotics Anonymous Bulgaria — site styles */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f6f7fa;
  --surface: #ffffff;
  --surface-alt: #eef1f7;
  --text: #1c2128;
  --muted: #5b6472;
  --border: #e3e7ee;
  --primary: #23408f;
  --primary-dark: #172c66;
  --primary-tint: #eaeffb;
  --accent: #e07a2c;
  --accent-dark: #b85f1c;
  --shadow: 0 1px 2px rgba(20, 24, 33, 0.06), 0 8px 24px -12px rgba(20, 24, 33, 0.18);
  --radius: 14px;
  --max-width: 880px;
}

/* The site intentionally always uses the light palette above, regardless of
   the visitor's OS color-scheme preference — a bright, welcoming look is a
   better fit for a support/recovery site than an auto-switching dark mode. */
:root { color-scheme: light; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon.filled { fill: currentColor; stroke: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  margin-right: auto;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-links a:hover {
  background: var(--surface-alt);
  text-decoration: none;
}

.nav-extra {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switch a {
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--border);
}
.lang-switch a:hover { color: var(--text); background: var(--surface-alt); text-decoration: none; }

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-tint);
  flex-shrink: 0;
}
.icon-btn:hover { text-decoration: none; filter: brightness(0.97); }
.icon-btn .icon { width: 17px; height: 17px; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
}
.nav-burger:hover { background: var(--surface-alt); }
.nav-burger .icon-close { display: none; }

.nav-mobile-extra { display: none; }

@media (max-width: 1100px) {
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 64px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 12px 16px;
    box-shadow: var(--shadow);
    gap: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-links a { padding: 12px; border-radius: 8px; }
  .nav-burger { display: flex; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:checked ~ .nav-burger .icon-menu { display: none; }
  .nav-toggle:checked ~ .nav-burger .icon-close { display: block; }

  /* Collapse the desktop quick-actions into the dropdown so the header stays uncluttered */
  .nav-extra .icon-btn,
  .nav-extra .lang-switch {
    display: none;
  }
  .nav-mobile-extra {
    display: block;
  }
  .nav-mobile-extra a {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .nav-mobile-extra.divider {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .nav-mobile-call {
    background: var(--accent);
    color: #fff !important;
    font-weight: 700;
    justify-content: center;
  }
  .nav-mobile-call:hover { background: var(--accent-dark); text-decoration: none; }
}

/* Hero */
.hero {
  text-align: center;
  padding: 56px 20px 64px;
  background:
    radial-gradient(600px 260px at 50% -80px, var(--primary-tint), transparent 70%),
    var(--bg);
}
.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}
.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -22px;
  background: radial-gradient(circle, var(--primary-tint) 0%, transparent 72%);
  border-radius: 50%;
  z-index: -1;
}
.hero img.hero-logo {
  width: 148px;
  height: 148px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.35;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { background: var(--surface-alt); }

/* Sections */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.section-alt { background: var(--surface-alt); }

.section-head {
  text-align: center;
  margin-bottom: 32px;
}
.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 8px;
}
.section h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  margin: 0;
}
.section-lead {
  color: var(--muted);
  max-width: 620px;
  margin: 12px auto 0;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background: var(--primary-tint);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  max-width: 360px;
  margin: 0 auto 32px;
}
.callout a { color: inherit; }

/* Disclosure cards (details/summary) */
.disclosure-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.disclosure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.disclosure > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 16px;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary:hover { background: var(--surface-alt); }
.disclosure > summary .chevron {
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.disclosure[open] > summary .chevron { transform: rotate(180deg); }
.disclosure[open] > summary { border-bottom: 1px solid var(--border); }

.disclosure-body { padding: 20px; }
.disclosure-body img { border-radius: 10px; margin: 0 auto; }
.disclosure-body img.img-narrow { max-width: min(600px, 100%); }

.disclosure-body p { margin-top: 0; color: var(--muted); }

/* Meeting entries */
.meeting-place + .meeting-place { margin-top: 20px; }
.meeting-place-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 10px;
}
.meeting-place-address .icon { margin-top: 4px; color: var(--primary); }

.meeting-list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.meeting-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-alt);
  border-radius: 10px;
}
.disclosure .meeting-list li { background: var(--bg); }
.meeting-day { font-weight: 700; min-width: 100px; }
.meeting-time { margin-left: auto; font-weight: 700; color: var(--primary); }
.meeting-group { color: var(--muted); }
.meeting-note { flex-basis: 100%; color: var(--muted); font-size: 13.5px; }

.call-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-dark);
  font-weight: 700;
  white-space: nowrap;
}

.note-block {
  color: var(--muted);
  padding: 4px 2px 12px;
}

/* Literature lists */
.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.file-list li { border-bottom: 1px solid var(--border); }
.file-list li:last-child { border-bottom: none; }
.file-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  color: var(--text);
  font-weight: 600;
}
.file-list a:hover { color: var(--primary); text-decoration: none; }
.file-list .icon { color: var(--muted); }

/* Contact */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-weight: 600;
}
.contact-row .icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary);
  flex-shrink: 0;
}
.contact-row a { color: var(--text); }
.contact-row a:hover { color: var(--primary); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .footer-links { margin-top: 8px; }
.site-footer a { color: var(--muted); font-weight: 600; }
.site-footer a:hover { color: var(--primary); }
