/* Salihović — header / mobile nav */

:root {
  --hdr-h: 72px;
  --hdr-border: rgba(29, 33, 32, 0.1);
  --hdr-ink: #1D2120;
  --hdr-forest: #173B3A;
  --hdr-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

section[id] { scroll-margin-top: calc(var(--hdr-h) + 24px); }

.hdr {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .22s, box-shadow .22s;
}
.hdr.scrolled {
  border-bottom-color: var(--hdr-border);
  box-shadow: 0 4px 24px rgba(23, 59, 58, 0.04);
}

.hdr-in {
  min-height: var(--hdr-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img, .logo svg {
  width: auto;
  height: 40px;
  max-width: 168px;
}

.nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.8vw, 36px);
}
.nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 550;
  color: var(--hdr-ink);
  white-space: nowrap;
  transition: color .18s;
}
.nav a:hover,
.nav a:focus-visible { color: var(--hdr-forest); }

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hdr-phone {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--hdr-border);
  background: #fff;
  color: var(--hdr-forest);
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.hdr-phone:hover { background: #fff; border-color: rgba(23,59,58,.25); }
.hdr-phone svg { width: 18px; height: 18px; }

.hdr-cta {
  display: none;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--hdr-forest);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: background .2s;
}
.hdr-cta:hover { background: #0f2a29; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--hdr-border);
  border-radius: 6px;
  background: #fff;
  color: var(--hdr-ink);
  cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }

/* Sheet */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(29, 33, 32, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--hdr-ease), visibility .28s;
}
.sheet-backdrop.open { opacity: 1; visibility: visible; }

.sheet {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 130;
  width: min(100vw, 380px);
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform .32s var(--hdr-ease);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.12);
}
.sheet.open { transform: translateX(0); }

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--hdr-border);
}
.sheet-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--hdr-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.sheet-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px 24px;
  display: grid;
  align-content: start;
  gap: 4px;
}
.sheet-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  color: var(--hdr-ink);
  border-bottom: 1px solid rgba(29,33,32,.06);
}
.sheet-nav a:hover { color: var(--hdr-forest); }
.sheet-foot {
  padding: 16px 20px 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--hdr-border);
  display: grid;
  gap: 10px;
}
.sheet-foot .btn { width: 100%; }

@media (min-width: 960px) {
  .nav { display: flex; }
  .hdr-cta { display: inline-flex; align-items: center; }
  .menu-btn { display: none; }
}

@media (max-width: 959px) {
  .hdr-phone { display: inline-flex; }
}

@media (min-width: 1100px) {
  .hdr-phone { display: none; }
}

body.sheet-open { overflow: hidden; }
