/* Početna Emily Stil — nadogradnja postojećeg dizajna (styles.css) */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 78vh, 820px);
  color: var(--ivory);
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(33, 28, 26, 0.82) 0%, rgba(33, 28, 26, 0.58) 46%, rgba(33, 28, 26, 0.12) 100%);
}
.hero__inner { width: 100%; }
.hero__copy { max-width: 38rem; padding-block: clamp(3.4rem, 8vh, 6rem); }
.script {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  letter-spacing: 0;
  text-transform: none;
  color: var(--rose);
  line-height: 1;
  margin-bottom: 0.55rem;
}
.hero .eyebrow { color: var(--line); text-shadow: 0 1px 14px rgba(33, 28, 26, 0.55); }
/* „Dobrodošli“: neutralni ivory ton uz crno-srebrni logo i ivory h1 (rose nije imao kontrast na fotografiji) */
.hero .script { color: var(--ivory-deep); text-shadow: 0 1px 14px rgba(33, 28, 26, 0.55); }
.hero h1 {
  color: var(--ivory);
  margin-bottom: 1.05rem;
  max-width: none;
}
.hero .lede {
  color: rgba(250, 246, 240, 0.88);
  max-width: 38ch;
  margin-bottom: 1.8rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero .btn--solid { background: var(--ivory); color: var(--espresso); }
.hero .btn--solid:hover { background: var(--rose); color: var(--espresso); }
.hero .btn--light { background: rgba(33, 28, 26, 0.38); }
.hero__phone {
  margin-top: 1.35rem;
  font-size: 0.92rem;
  color: rgba(250, 246, 240, 0.82);
}
.hero__phone a { color: var(--ivory); border-bottom: 1px solid var(--rose); }
.hero__phone a:hover { color: var(--rose); }

.facts-band {
  position: relative;
  z-index: 3;
  margin-top: -3.4rem;
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  background: transparent;
  border: 0;
}
.facts a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--rose);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.15rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--t), background var(--t), border-color var(--t);
}
.facts a:hover {
  transform: translateY(-5px);
  background: var(--espresso);
  border-color: var(--espresso);
}
.facts__ico {
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--rose);
  border-radius: 50%;
  color: var(--rose-deep);
}
.facts__ico svg { width: 24px; height: 24px; }
.facts b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  font-weight: 500;
  color: var(--espresso);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.facts span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--espresso-soft);
}
.facts a:hover b { color: var(--ivory); }
.facts a:hover span { color: rgba(250, 246, 240, 0.72); }
.facts a:hover .facts__ico { color: var(--rose); border-color: var(--rose); }

.block { padding-block: clamp(4.2rem, 8vw, 7rem); }
#o-salonu { padding-top: clamp(2.6rem, 5vw, 4.2rem); }
.block--alt { background: var(--ivory-deep); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: 0.8rem; }

.brand {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.brand__media { position: relative; padding: 0 0 22px 22px; }
.brand__media::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: 0;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  border: 1px solid var(--rose);
}
.brand__media img {
  position: relative;
  z-index: 1;
  width: calc(100% - 6px);
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
}
.brand__tag {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  max-width: 180px;
}
.brand__tag b {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--rose-deep);
  line-height: 1.1;
}
.brand__tag span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--espresso-soft);
}
.brand__body h2 { margin-bottom: 1.2rem; }
.brand__body p { color: var(--espresso-soft); }
.brand__body p + p { margin-top: 1rem; }
.brand__body .btn { margin-top: 1.8rem; }

.offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.offer {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.offer:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--rose);
}
.offer__img {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--taupe);
}
.offer__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.8s ease;
}
.offer__img img.is-face { object-position: 28% 100%; }
.offer__img img.is-device { object-position: center 62%; }
.offer__img img.is-hands { object-position: center 62%; }
.offer__img img.is-gift { object-position: center 45%; }
.offer:hover .offer__img img { transform: scale(1.05); }
.offer__body { padding: clamp(1.3rem, 2.4vw, 1.8rem) clamp(1.3rem, 2.4vw, 1.8rem) 1.5rem; display: flex; flex-direction: column; flex: 1; }
.offer__body h3 { margin-bottom: 0.65rem; }
.offer__body p { color: var(--espresso-soft); font-size: 0.96rem; flex: 1; }
.offer__more {
  margin-top: 1.1rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}
.offer:hover .offer__more { color: var(--espresso); }

.ipl {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
}
.ipl__frame { position: relative; padding: 18px 18px 0 0; }
.ipl__frame::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: 0;
  top: 0;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  border: 1px solid var(--rose);
}
.ipl__frame img {
  position: relative;
  z-index: 1;
  width: calc(100% - 6px);
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  object-position: center 62%;
  border-radius: var(--radius);
}
.ipl h2 { margin-bottom: 1rem; }
.ipl p { color: var(--espresso-soft); }
.ipl p + p { margin-top: 0.95rem; }
.ipl .btn { margin-top: 1.6rem; }

.prices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.2rem);
}
.plist {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--rose);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 0.6rem;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.plist:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--rose);
}
.plist__from {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--espresso-soft);
}
.plist__from b {
  display: block;
  font-family: var(--serif);
  font-size: 2.15rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rose-deep);
  line-height: 1;
  margin: 0.2rem 0 0.85rem;
}
.plist h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.plist li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.72rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--espresso-soft);
}
.plist li b {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--espresso);
  white-space: normal;
  text-align: right;
  flex-shrink: 0;
}
.asof {
  display: block;
  margin-top: 0.12rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--espresso-soft);
  text-transform: none;
  white-space: nowrap;
}
.price-note {
  margin-top: 1.6rem;
  text-align: center;
  color: var(--espresso-soft);
  font-size: 0.88rem;
}
.price-note a { color: var(--rose-deep); border-bottom: 1px solid var(--rose); }

.loc {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}
.loc h2 { margin-bottom: 0.7rem; }
.loc__list { margin-top: 1.4rem; display: grid; gap: 0.85rem; }
.loc__list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.96rem; }
.loc__list svg { width: 20px; height: 20px; color: var(--rose-deep); flex-shrink: 0; margin-top: 3px; }
.loc__list a:hover { color: var(--rose-deep); }
.note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--espresso-soft);
}
.hours {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1.3rem;
}
.hours div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.7rem;
  text-align: center;
}
.hours span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--espresso-soft);
}
.hours b {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}
.hours .is-closed b { color: var(--rose-deep); font-size: 1.15rem; }
.loc__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.5rem; }
.loc__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  min-height: 420px;
  background: var(--ivory-deep);
}
.loc__map iframe { width: 100%; height: 460px; border: 0; display: block; }

.ig-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
#galerija .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 0;
}
#galerija .gallery-grid figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--taupe);
}
#galerija .gallery-grid img {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
}

/* backdrop-filter na zaglavlju zatvara position:fixed izbornik i stavlja ga iza overlaya */
@media all { /* hamburger na svim širinama (2026-10-07); prije: (max-width: 940px) */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.open { z-index: 120; }
}

.nav .has-drop { display: flex; align-items: center; gap: 0.15rem; }
@media (min-width: 941px) {
  .nav .has-drop::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px;
  }
}
.nav .nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  color: var(--espresso);
}
.nav .nav-caret svg { width: 10px; height: 10px; transition: transform var(--t); }
.has-drop:hover > .nav-caret svg,
.has-drop:focus-within > .nav-caret svg,
.has-drop.open-m > .nav-caret svg { transform: rotate(180deg); }
.nav .has-drop > a[aria-current="page"] { color: var(--rose-deep); }

@media (max-width: 940px) {
  .nav .has-drop { flex-wrap: wrap; align-items: center; }
  .nav .has-drop > a { flex: 1; }
  .nav .nav-caret { width: 2.75rem; height: 2.75rem; align-self: center; }
  .nav .has-drop.open-m > .dropdown { flex-basis: 100%; padding-bottom: 0.35rem; }
  .nav .has-drop .dropdown a {
    padding: 0.72rem 0.15rem 0.72rem 0.85rem;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
  }
}

.logo img { height: 54px; width: auto; }
.nav a.btn::after { display: none; }
.nav a.btn--solid,
.nav a.btn--solid:hover { color: var(--ivory); }
.footer__brand img { height: 48px; width: auto; filter: none; }

@media (max-width: 980px) {
  .prices { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  #galerija .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero { align-items: flex-end; min-height: 620px; }
  .hero::after {
    background: linear-gradient(180deg, rgba(33, 28, 26, 0.2) 0%, rgba(33, 28, 26, 0.55) 42%, rgba(33, 28, 26, 0.82) 100%);
  }
  .facts-band { margin-top: 1.25rem; }
  .brand, .ipl, .loc { grid-template-columns: 1fr; }
  .brand__tag { right: 8px; bottom: 34px; }
  .offers { grid-template-columns: 1fr; }
  .hours { grid-template-columns: 1fr; }
  .loc__map { min-height: 0; }
  .loc__map iframe { height: 320px; }
}
@media (max-width: 560px) {
  .prices { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(1.5rem, 5.6vw, 2.15rem); line-height: 1.12; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

.cookiebar {
  position: fixed;
  z-index: 160;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.15rem var(--gut) 1.25rem;
  background: var(--ivory);
  border-top: 3px solid var(--rose);
  box-shadow: 0 -16px 40px -28px rgba(43, 37, 34, 0.55);
}
.cookiebar[hidden],
.cookie-settings[hidden] { display: none; }
.cookiebar__copy { max-width: 68ch; }
.cookiebar__title {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 0.35rem;
}
.cookiebar p { color: var(--espresso-soft); font-size: 0.92rem; line-height: 1.55; }
.cookiebar__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; }
.cookiebar .btn,
.cookie-settings .btn { white-space: normal; text-align: center; }
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--espresso-soft);
  background: var(--white);
}
.btn--ghost:hover { border-color: var(--espresso); color: var(--espresso); }
body.has-cookiebar { padding-bottom: 9.5rem; }
.cookie-reopen {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.cookie-reopen:hover { color: var(--rose); }
.cookie-settings {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(33, 28, 26, 0.46);
}
.cookie-settings__card {
  width: min(640px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: var(--ivory);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: var(--shadow-soft);
}
.cookie-settings__lead { margin: 0.2rem 0 1.1rem; color: var(--espresso-soft); font-size: 0.94rem; }
.cookie-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}
.cookie-row b { display: block; font-weight: 500; color: var(--espresso); font-size: 0.98rem; }
.cookie-row > div span { display: block; color: var(--espresso-soft); font-size: 0.86rem; line-height: 1.45; }
.cookie-switch { position: relative; display: grid; justify-items: end; gap: 0.3rem; flex-shrink: 0; }
.cookie-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cookie-switch__face {
  width: 2.6rem;
  height: 1.45rem;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  transition: background 0.2s ease;
}
.cookie-switch__face::after {
  content: "";
  position: absolute;
  top: 0.16rem;
  left: 0.16rem;
  width: 1.12rem;
  height: 1.12rem;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.2s ease;
}
.cookie-switch input:checked + .cookie-switch__face { background: var(--rose-deep); }
.cookie-switch input:checked + .cookie-switch__face::after { transform: translateX(1.12rem); }
.cookie-switch input:disabled + .cookie-switch__face { background: var(--taupe); }
.cookie-switch input:focus-visible + .cookie-switch__face { outline: 2px solid var(--gold); outline-offset: 3px; }
.cookie-switch__text { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--espresso-soft); }
.cookie-settings .cookiebar__actions { margin-top: 1.1rem; }
@media (max-width: 760px) {
  .cookiebar { flex-direction: column; align-items: stretch; }
  .cookiebar__actions { justify-content: stretch; }
  .cookiebar .btn,
  .cookie-settings .btn { width: 100%; justify-content: center; }
  .cookie-row { align-items: flex-start; }
  body.has-cookiebar { padding-bottom: 18rem; }
}

/* Hamburger izbornik na svim širinama (2026-10-07) */
@media (min-width: 941px) {
  /* zamuti pozadinu kao prije, ali bez backdrop-filtera na samom .header (inače zarobi fixed izbornik) */
  .header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}
.nav {
  padding-top: 8rem;
  visibility: hidden;
  transition: transform var(--t), visibility 0s linear 0.5s;
}
.nav.open {
  visibility: visible;
  transition: transform var(--t), visibility 0s;
}
.burger {
  position: relative;
  z-index: 130;
  border-radius: var(--radius);
}
.burger:hover span { background: var(--rose-deep); }
.burger:focus-visible,
.nav a:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
}
.nav a[aria-current="page"] { color: var(--rose-deep); }

/* Klizač usluga ispod naslovne slike (2026-10-08)
   Desktop (od 981px): 4 pločice u redu, strelice lijevo/desno, scroll-snap, automatsko pomicanje
   ulijevo u beskonačnom krugu (JS dodaje kopije .is-clone). Gumb pauze uklonjen 8. 10. (Bruno).
   Do 980px: mreža 2 × 3 kao prije, bez strelica i bez pomicanja. JS: js/slider.js */
.facts-slider { position: relative; }
.facts-nav { display: none; }
@media (max-width: 980px) {
  .facts > .is-clone { display: none; }
}
@media (min-width: 981px) {
  /* flow-root: negativna margina liste ne smije se spojiti s marginom .facts-band */
  .facts-slider { display: flow-root; }
  .facts {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 0.85rem) / 4);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* mjesto za podizanje pločice (hover) i cijelu sjenu (--shadow-soft seže ~40px), bez promjene razmaka */
    padding: 8px 0 44px;
    margin: -8px 0 -44px;
  }
  .facts::-webkit-scrollbar { display: none; }
  .facts > li { scroll-snap-align: start; }
  /* tijekom pomaka iz JS-a bez snapa i bez CSS glatkoće (JS sam animira) */
  .facts.is-anim { scroll-snap-type: none; scroll-behavior: auto; }
  .facts-nav:not([hidden]) { display: block; }
  .facts-nav__btn {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--espresso);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background var(--t), color var(--t), border-color var(--t), opacity var(--t);
  }
  .facts-nav__btn--prev { left: calc(var(--gut) / 2 - 22px); }
  .facts-nav__btn--next { right: calc(var(--gut) / 2 - 22px); }
  .facts-nav__btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .facts-nav__btn:hover { background: var(--espresso); border-color: var(--espresso); color: var(--ivory); }
  .facts-nav__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
}
@media (min-width: 981px) and (prefers-reduced-motion: reduce) {
  .facts { scroll-behavior: auto; }
  .facts-nav__btn { transition: none; }
}
