/**
 * Zajednički fiksni header, hamburger navigacija i footer (index izgled).
 * Učitati uz css/gllity-tokens.css
 */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap");

html {
  scroll-behavior: smooth;
}
section[id],
.site-footer {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

/* [hidden] + display na .btn-pill / .nav-links a inače ostaju vidljivi (CSS pobjeđuje podrazumijevano skrivanje) */
.site-header [hidden] {
  display: none !important;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 253, 254, 0.52);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  backdrop-filter: blur(14px) saturate(1.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: var(--header-inner-min);
  padding: 0.55rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  flex-wrap: wrap;
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2.5vw, 1.5rem);
  flex-wrap: nowrap;
  min-width: 0;
}

.site-header__left #gllity-lang-wrap {
  flex-shrink: 0;
}

.site-header__left #gllity-city-wrap {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
}

.site-header__left #gllity-city-wrap .city-wrap__select,
.site-header__left #gllity-lang-wrap .city-wrap__select--lang {
  max-width: 100%;
}

.city-wrap__select--lang {
  min-width: 7.25rem;
  max-width: min(13.5rem, 42vw);
  font-weight: 600;
  font-size: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand img {
  height: 1.85rem;
  width: auto;
  display: block;
}
.brand-fallback {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--rose-brand);
  letter-spacing: 0.02em;
}

.city-wrap {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.city-wrap__select {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rose-brand);
  border: none;
  border-radius: 6px;
  padding: 0.28rem 0.5rem 0.28rem 0.15rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  max-width: 10.5rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.city-wrap__select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(232, 121, 144, 0.35);
  border-radius: 6px;
}
.city-wrap__select:disabled {
  opacity: 0.5;
  cursor: wait;
}

body.gllity-page-sub #gllity-city-wrap {
  display: none !important;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 1.25rem;
  border-radius: 999px;
  border: none;
  background: var(--pink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(247, 136, 155, 0.35);
}
.btn-pill:hover {
  background: var(--pink-deep);
}
.btn-pill:active {
  transform: scale(0.98);
}
.btn-pill--ghost {
  background: #fff;
  color: var(--pink-deep);
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.btn-pill--ghost:hover {
  background: rgba(255, 255, 255, 0.92);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem clamp(1rem, 2.2vw, 1.65rem);
  font-size: 0.9rem;
}
.nav-links a {
  color: var(--header-nav);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--pink-deep);
}
.nav-links a.is-active {
  color: var(--rose-brand);
  font-weight: 600;
}

.nav-links .gllity-nav-logout {
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
}

.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 0 0 0.35rem;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--header-nav);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-burger:hover {
  color: var(--pink-deep);
  background: #fff;
}
.nav-burger:focus-visible {
  outline: 2px solid var(--pink-deep);
  outline-offset: 2px;
}
.nav-burger[aria-expanded="true"] .nav-burger__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] .nav-burger__bar:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded="true"] .nav-burger__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.nav-burger__icon {
  display: flex;
  width: 22px;
  height: 16px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-burger__bar {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 200;
  background: rgba(35, 20, 28, 0.38);
  -webkit-tap-highlight-color: transparent;
}
.site-nav-backdrop.is-on {
  display: block;
}
.nav-links__close {
  display: none;
  position: absolute;
  top: 0.9rem;
  right: 0.85rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #f3f3f5;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.nav-links__close:hover {
  background: var(--pink-soft);
  color: var(--pink-deep);
}
.nav-links__close:focus-visible {
  outline: 2px solid var(--pink-deep);
  outline-offset: 2px;
}
body.gllity-nav-open {
  overflow: hidden;
  touch-action: none;
}

/* Jezik u hamburger panelu (mobilni); u headeru ostaje na širokim ekranima */
.nav-links__lang {
  display: none;
}

@media (max-width: 900px) {
  .site-header__left #gllity-lang-wrap {
    display: none !important;
  }
  .nav-burger {
    display: inline-flex;
  }
  .nav-links__lang {
    display: block;
    flex-shrink: 0;
    padding: 0 0 1rem;
    margin: 0 0 0.35rem;
    border-bottom: 1px solid #eee;
  }
  .nav-links__lang-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b6b78;
    margin-bottom: 0.4rem;
  }
  .lang-wrap--drawer {
    display: block;
    width: 100%;
  }
  .lang-wrap--drawer .city-wrap__select--lang {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: 1rem;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    background: #f4f4f7;
  }
  .nav-links {
    --nav-flyout-pad: clamp(1rem, 4vw, 1.5rem);
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    z-index: 201;
    width: min(100% - 2.5rem, 22rem);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    margin: 0;
    padding: 3.75rem var(--nav-flyout-pad) 2rem;
    gap: 0;
    background: #fff;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    font-size: 1rem;
    line-height: 1.4;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    border-bottom: none;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, visibility 0.3s ease;
    overscroll-behavior: contain;
  }
  .nav-links.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a {
    white-space: normal;
    min-height: 48px;
    padding: 0.6rem 0.25rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    font-weight: 600;
  }
      .nav-links a:last-of-type {
        border-bottom: none;
      }
      .nav-links .gllity-nav-logout {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        min-height: 48px;
        margin-top: 0.35rem;
      }
      .nav-links__close {
    display: flex;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links {
    transition: transform 0.2s ease, visibility 0.2s;
  }
}

.api-status {
  width: 100%;
  font-size: 0.8rem;
  padding: 0.35rem 1rem;
  text-align: center;
  display: none;
}
.api-status.is-error {
  display: block;
  background: #fff3f3;
  color: #a32020;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 1.75rem);
  padding-right: clamp(1rem, 4vw, 1.75rem);
}

.site-footer {
  background: var(--footer-bg);
  padding: 2.5rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.75rem 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 1.5rem 1.25rem;
    text-align: inherit;
  }
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }
  .footer-brand p {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }
  /* Navigacija (lijevo) i Ostalo (desno) u istom redu */
  .footer-grid > .footer-col:nth-child(2) {
    grid-column: 1;
    min-width: 0;
    text-align: left;
  }
  .footer-grid > .footer-col:nth-child(3) {
    grid-column: 2;
    min-width: 0;
    text-align: right;
    justify-self: stretch;
  }
  .footer-grid > .footer-col:nth-child(2) h4 {
    text-align: left;
  }
  .footer-grid > .footer-col:nth-child(3) h4 {
    text-align: right;
  }
  .footer-grid > .footer-col:nth-child(2) ul {
    text-align: left;
  }
  .footer-grid > .footer-col:nth-child(3) ul {
    text-align: right;
  }
  .footer-col.footer-social {
    grid-column: 1 / -1;
    text-align: center;
  }
}
.footer-brand .brand {
  margin-bottom: 0.75rem;
}
.footer-brand .brand img {
  height: 1.85rem;
}
.footer-brand p {
  margin: 0;
  line-height: 1.55;
  max-width: 26rem;
}
.footer-col h4 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col li {
  margin-bottom: 0.4rem;
}
.footer-col a {
  color: var(--muted);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--pink-deep);
}

.footer-social {
  text-align: center;
}
.footer-social p {
  margin: 0 0 0.65rem;
  font-weight: 600;
  color: var(--ink);
}
.footer-social-links {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.footer-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s;
}
.footer-social-links a:hover {
  background: var(--pink-deep);
}
.footer-social-links a span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e2e6;
  font-size: 0.8rem;
  color: #888;
}
.footer-bar p {
  margin: 0;
}

@media (max-width: 900px) {
  :root {
    --header-inner-min: 5.35rem;
  }
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .site-header__left {
    gap: 0.45rem 0.65rem;
  }
  .site-header__left .nav-burger {
    margin-left: auto;
  }
  .site-header__inner {
    position: relative;
    z-index: 202;
  }
}

/* Podstranice: sadržaj ispod fiksnog headera */
body.gllity-has-chrome:not(.gllity-page-home) .page-main {
  padding-top: calc(var(--header-h) + 1.25rem);
}

body.salon-page.gllity-has-chrome:not(.gllity-page-home) .page-main--salon {
  padding-top: calc(var(--header-h) + 0.65rem);
}

@media (max-width: 979px) {
  body.salon-page.gllity-has-chrome:not(.gllity-page-home) .page-main--salon {
    padding-top: calc(var(--header-h) + 0.65rem);
  }
}
