/* Unutarnje stranice Emily Stil — uz styles.css i home.css */

.banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  color: var(--ivory);
  isolation: isolate;
  overflow: hidden;
}
.banner__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
.banner::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.48) 52%, rgba(33, 28, 26, 0.16) 100%);
}
.banner .wrap { width: 100%; padding-block: 4.6rem 2.3rem; }
.banner h1 { color: var(--ivory); max-width: 16ch; }
.banner .lede { color: rgba(250, 246, 240, 0.88); max-width: 48ch; margin-top: 0.75rem; }
.banner .eyebrow { color: var(--rose); }
.banner .breadcrumb { padding: 0 0 0.85rem; }
.banner .breadcrumb a,
.banner .breadcrumb ol { color: rgba(250, 246, 240, 0.78); }
.banner .breadcrumb li[aria-current] { color: var(--ivory); }
.banner--face .banner__bg { object-position: 28% 88%; }
.banner--body .banner__bg { object-position: center 42%; }
.banner--hands .banner__bg { object-position: center 64%; }
.banner--device .banner__bg { object-position: center 42%; }

.service-content > img {
  height: auto;
  aspect-ratio: 3 / 2;
  object-position: center 40%;
}
.service-content > img.is-face { object-position: 28% 100%; }
.service-content > img.is-hands { object-position: center 64%; }
.service-content > img.is-device { object-position: center 62%; }

.price-anchor {
  margin: 0 0 1.3rem;
  color: var(--espresso-soft);
  font-size: 0.92rem;
}
.price-anchor a { color: var(--rose-deep); border-bottom: 1px solid var(--rose); }

.prices.prices--stack { grid-template-columns: 1fr; }
.plist p { color: var(--espresso-soft); font-size: 0.94rem; margin-bottom: 0.8rem; }
.plist .example { margin: 0.9rem 0 0.15rem; font-size: 0.88rem; color: var(--espresso); }
.plist .example .example__label { display: block; margin-bottom: 0.35rem; font-weight: 500; color: var(--espresso); }
.plist .example b { font-weight: 500; }
.plist h3 { margin-top: 0.2rem; }

.ticks { margin: 0.2rem 0 0.9rem; display: grid; gap: 0.4rem; }
.ticks li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.92rem;
  color: var(--espresso-soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose-deep);
}

.cmp-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  margin: 0.3rem 0 1.8rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--rose);
  border-radius: var(--radius);
  background: var(--white);
}
.cmp { width: 100%; border-collapse: collapse; min-width: 520px; }
.cmp th,
.cmp td {
  padding: 0.78rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--espresso-soft);
}
.cmp th {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--espresso);
  background: var(--ivory);
}
.cmp td:nth-child(n + 2),
.cmp th:nth-child(n + 2) { text-align: right; white-space: nowrap; }
.cmp td b { white-space: normal; display: inline-block; text-align: right; vertical-align: top; }
.cmp td b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--espresso);
}
.cmp tr:last-child td { border-bottom: 0; }
.service-content h2 { margin-top: 2rem; }

.offers.offers--3 { grid-template-columns: repeat(3, 1fr); }
.offer__body p + p { margin-top: 0.75rem; }
.nav a[aria-current="page"] { color: var(--rose-deep); }

.banner--salon { min-height: 460px; }
.banner--salon .wrap { padding-bottom: 5.6rem; }
.banner--salon .banner__bg { object-position: center 68%; }

.reach-band {
  position: relative;
  z-index: 3;
  margin-top: -2.2rem;
}
.reach {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.reach article {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--rose);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem 1.15rem;
  box-shadow: var(--shadow-soft);
}
.reach svg {
  width: 22px;
  height: 22px;
  color: var(--rose-deep);
}
.reach h2 {
  margin: 0.45rem 0 0.7rem;
  font-size: 1.45rem;
}
.reach p,
.reach a,
.reach li { font-size: 0.95rem; }
.reach p + p { margin-top: 0.75rem; }
.reach a:hover { color: var(--rose-deep); }
.reach__phones {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
}
.reach__phones a {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
}
.reach__rows { display: grid; }
.reach__rows div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.reach__rows div:last-child { border-bottom: 0; }
.reach__rows span { color: var(--espresso-soft); font-size: 0.88rem; }
.reach__rows b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  white-space: nowrap;
}
.reach .note { margin-top: 0.55rem; }

.map-wide {
  margin-top: 1.6rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: var(--white);
}
.map-wide iframe { width: 100%; height: 460px; border: 0; display: block; }
.map-wide figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  color: var(--espresso-soft);
}
.map-wide figcaption a { color: var(--rose-deep); }

.salon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.salon-shot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--taupe);
}
.salon-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: transform 0.45s ease;
}
.salon-shot:hover img,
.salon-shot:focus-visible img { transform: scale(1.05); }
.salon-shot:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; }

.salon-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  max-width: min(960px, 92vw);
  max-height: 90vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.salon-dialog::backdrop { background: rgba(33, 28, 26, 0.86); }
.salon-dialog img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(960px, 92vw);
  max-height: 84vh;
  border-radius: var(--radius);
  background: #1c1816;
}
.salon-dialog__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--espresso);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.rate-cards { display: none; gap: 0.7rem; }

@media (max-width: 980px) {
  .offers.offers--3 { grid-template-columns: 1fr; }
  .banner { align-items: flex-end; min-height: 420px; }
  .banner::after {
    background: linear-gradient(180deg, rgba(33, 28, 26, 0.2) 0%, rgba(33, 28, 26, 0.78) 100%);
  }
  .reach { grid-template-columns: 1fr; }
  .reach-band { margin-top: -2rem; }
  .salon-grid { grid-template-columns: 1fr 1fr; }
  .map-wide iframe { height: 300px; }
  .rate-table { display: none; }
  .rate-cards { display: grid; }
  .rate-block { border-top: 3px solid var(--rose); padding-top: 1.1rem; }
}

.rate-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: center;
  margin: 0.2rem 0 1.4rem;
  font-size: 0.95rem;
}
.rate-downloads a { border-bottom: 1px solid var(--rose); }
/* cjenik: pravna rečenica (Emiror d.o.o. · OIB …) malo veća + više razmaka do CSV/XML/JSON linkova */
[data-cjenik-root] > .price-note { font-size: 0.96rem; margin-bottom: 1rem; }
/* cjenik: razmak ispod „Objavljeni cjenici“ = kao ispod naslova kategorija (.rate-block h2) */
[data-cjenik-root] > h2 { margin-bottom: 0.8rem; }
.pub-wrap {
  overflow-x: auto;
  margin-bottom: 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--rose);
  border-radius: var(--radius);
}
.pub-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 0;
}
.pub-table th, .pub-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
}
.pub-table th {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  font-weight: 500;
  background: var(--ivory-deep);
}
.pub-table code { font-size: 0.78rem; word-break: break-all; }
.pub-table tr:last-child td { border-bottom: 0; }
.rate-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.4rem 0 1.6rem;
}
.rate-jump a {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.rate-jump a:hover { border-color: var(--rose); color: var(--rose-deep); }
.rate-block { margin-top: 2.2rem; }
.rate-block h2 { margin-bottom: 0.8rem; }
.rate-block__date {
  display: none;
  margin: -0.45rem 0 0.8rem;
  font-size: 0.84rem;
  color: var(--espresso-soft);
}
@media (max-width: 980px) {
  .rate-block__date { display: block; }
}
.rate-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--rose);
  border-radius: var(--radius);
  overflow: hidden;
}
.rate-table th, .rate-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}
.rate-table th {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  font-weight: 500;
  background: var(--ivory-deep);
}
.rate-table td:nth-child(n + 3),
.rate-table th:nth-child(n + 3) { text-align: right; white-space: nowrap; }
.rate-table tr:last-child td { border-bottom: 0; }
.rate-table b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
}
.rate-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--rose);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.rate-card h3 { font-size: 1.25rem; margin-bottom: 0.15rem; }
.rate-card p { color: var(--espresso-soft); font-size: 0.84rem; }
.rate-card__prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: end;
  margin-top: 0.7rem;
}
.rate-card__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  margin-bottom: 0.25rem;
}
.rate-card__prices b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--espresso);
}
.rate-search { display: block; max-width: 420px; margin-bottom: 0.4rem; }
.rate-search input,
.admin input,
.admin select,
.admin textarea {
  display: block;
  width: 100%;
  margin-top: 0.28rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--espresso);
}
.admin-meta, .admin-add {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.4rem;
}
.admin-meta .is-wide { grid-column: span 3; }
.admin-add { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.admin-add h2 { grid-column: 1 / -1; font-size: 1.6rem; }
.admin h3 { margin: 1.4rem 0 0.6rem; }
.admin table { width: 100%; border-collapse: collapse; background: var(--white); table-layout: fixed; }
.admin th, .admin td { border-bottom: 1px solid var(--line); padding: 0.45rem; vertical-align: middle; font-size: 0.86rem; }
.admin th:nth-child(1), .admin td:nth-child(1) { width: 4.25rem; }
.admin th:nth-child(3), .admin td:nth-child(3) { width: 6.8rem; }
.admin th:nth-child(4), .admin td:nth-child(4) { width: 5.6rem; }
.admin th:nth-child(5), .admin td:nth-child(5) { width: 5.6rem; }
.admin th:nth-child(6), .admin td:nth-child(6) { width: 6.4rem; }
.admin th:nth-child(7), .admin td:nth-child(7) { width: 2.75rem; text-align: center; }
.admin th:nth-child(8), .admin td:nth-child(8) { width: 4.25rem; }
.admin td:nth-child(2) input { min-width: 0; }
.admin td:nth-child(3) input,
.admin td:nth-child(4) input,
.admin td:nth-child(5) input,
.admin td:nth-child(6) input {
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  font-size: 0.82rem;
}
.admin th { text-align: left; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--espresso-soft); }
.admin .danger { color: var(--rose-deep); font-size: 0.78rem; }
.savebar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem var(--gut);
  background: var(--espresso);
  color: var(--ivory);
}
.savebar p { margin: 0; font-size: 0.9rem; }
.savebar label { display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; }
.savebar input { background: var(--ivory); color: var(--espresso); border: 0; border-radius: var(--radius); padding: 0.45rem 0.6rem; min-width: 11rem; }
@media (max-width: 860px) {
  .admin-meta, .admin-add { grid-template-columns: 1fr 1fr; }
  .admin-meta .is-wide, .admin-add h2 { grid-column: 1 / -1; }
  .admin { overflow-x: auto; }
}

/* Banner podstranica: jednak razmak od vrha slike do teksta i od teksta do dna slike (2026-10-08).
   Samo desktop (>980 px). Na ≤980 px (tablet i mobitel) vrijede izvorna pravila gore
   (align-items:flex-end, min-height 420px, padding 4.6rem 2.3rem), po Brunovoj odluci 8.10.
   Prije: align-items:flex-end + min-height => sav višak visine išao je iznad teksta.
   Sada: tekst je centriran; min-height je povećan tako da gornji razmak ostane isti (ili veći),
   a donji naraste na istu vrijednost. -3px dolje = optička korekcija za prored (line-height) leda. */
@media (min-width: 981px) {
  .banner {
    --banner-min: clamp(380px, calc(474px - 7.36vw), 402px);
    align-items: center;
    min-height: var(--banner-min);
  }
  .banner .wrap { padding-block: 4.6rem calc(4.6rem - 3px); }
  /* Kontakt: kartice (.reach-band) prekrivaju 2.2rem dna slike, pa se mjeri do vrha kartica */
  .banner--salon { min-height: calc(var(--banner-min) + 169.6px); }
  .banner--salon .wrap { padding-block: 4.6rem calc(4.6rem + 2.2rem - 3px); }
}

/* Povezani tretmani – sve kartice u jednom redu (2026-10-09)
   4–5 kartica (includes/povezano.php doda .related-grid--red): od 981px jedan red bez klizača,
   kartice malo uže (manji bočni razmak i naslov; od 981 do 1239px naslov još malo manji). Duži
   naslovi se na užim ekranima (do ~1120px) prelome u 2 retka; kartice ostaju jednake visine.
   Do 980px mreža kao prije. */
@media (min-width: 981px) {
  .related-grid--red {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .related-grid--red .related-card {
    display: flex;
    align-items: center;
    padding-inline: 1rem;
  }
  .related-grid--red .related-card h3 {
    flex: 1;
    font-size: 1.25rem;
    gap: 0.6rem;
  }
  .related-grid--red .related-card .arrow {
    flex-shrink: 0;
  }
}
@media (min-width: 981px) and (max-width: 1239px) {
  .related-grid--red .related-card h3 {
    font-size: 1.15rem;
  }
}

/* Kontakt, kartica „Mobitel“: ikone WhatsApp, Facebook, Instagram u jednom redu (2026-10-09)
   Ikone: Simple Icons (CC0 1.0). Boja kao poveznice na kartici, hover/fokus kao ostale poveznice
   (var(--rose-deep)); polje za dodir 44×44px, red pomaknut ulijevo da se ikona poravna s tekstom. */
.reach .reach__social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: -9px;
}
.reach__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: var(--t);
}
.reach .reach__social svg {
  width: 26px;
  height: 26px;
  color: inherit;
}
.reach .reach__social a:focus-visible { color: var(--rose-deep); }
