/* ===== Arton salon – skupni stili ===== */
:root {
  --bg: #ffffff;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --accent: #b5835a;
  --accent-soft: #f6eee7;
  --radius: 14px;
  --paw: #8b5a3c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

/* ---------- Slika z rezervnim prostorom ----------
   Če slika (src) manjka, se pokaže siv okvir z napisom. */
.img-slot {
  position: relative;
  overflow: hidden;
  background: #f3f3f3;
  border: 2px dashed #d4d4d4;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-slot::before {
  content: attr(data-label);
  color: #9a9a9a;
  font-size: 0.9rem;
  text-align: center;
  padding: 8px;
}
.img-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-slot.has-img { border: none; }
.img-slot.has-img::before { content: none; }   /* ko je slika naložena, skrij napis */

/* ---------- Glava ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
/* Logotip v glavi: cel, v svojem razmerju (ne v krogu, da se ne obreže) */
.brand .img-slot {
  height: 52px;
  min-width: 52px;
  border-radius: 8px;
}
.brand .img-slot.has-img { background: none; }
.brand .img-slot img {
  position: static;
  width: auto;
  height: 100%;
  object-fit: contain;
}
.brand .img-slot::before { font-size: 0.6rem; }
.brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Gumba P in M – bela kroga s črko (psi / mačke) */
.nav-avatars { display: flex; gap: 12px; }
.avatar-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--text);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.avatar-btn:hover { transform: translateY(-2px); }
.avatar-btn.active { background: var(--text); color: #fff; }   /* trenutna stran */

/* ---------- Naslov naslovne strani ---------- */
.page-title {
  text-align: center;
  padding: 40px 24px 16px;
}
.page-title h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 1px;
}
.page-title p { font-size: 1.1rem; color: var(--muted); margin-top: 4px; }

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ---------- Gumbi ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn.outline { background: #fff; color: var(--accent); }
.btn:hover { opacity: .9; }

/* ---------- Oglasna deska ---------- */
.board-section {
  padding: 24px 24px 8px;
  text-align: center;
}
.board {
  max-width: 1100px;                                /* do 3 slike v vrsti */
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  background-color: #e8d5bd;                        /* pluta */
  background-image: radial-gradient(rgba(139, 90, 60, .18) 1px, transparent 1.5px);
  background-size: 9px 9px;
  border: 12px solid #a77b56;                       /* lesen okvir */
  border-radius: 10px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .15), 0 6px 18px rgba(0, 0, 0, .12);
}
.pin-card {
  position: relative;
  width: min(280px, 80vw);
  background: #fff;
  padding: 10px 10px 28px;                          /* polaroid: širši spodnji rob */
  box-shadow: 0 6px 14px rgba(0, 0, 0, .22);
  transition: transform .3s ease;
}
.pin-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
/* Bucika */
.pin-card::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e57373, #b23b3b 70%);
  box-shadow: 0 3px 4px rgba(0, 0, 0, .35);
  z-index: 1;
}
.pin-card:nth-child(odd)  { transform: rotate(-3deg); }
.pin-card:nth-child(even) { transform: rotate(2.5deg); }
.pin-card:nth-child(3n)   { transform: rotate(-1.5deg); }
.pin-card:hover { transform: rotate(0) scale(1.03); z-index: 2; }

/* ---------- Predstavitev (O nas) ---------- */
.about {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 24px 24px;
  text-align: center;
}
.about h2 { margin-bottom: 10px; }
.about p { color: var(--muted); font-size: 1.05rem; }
.about:has(p:empty) { display: none; }   /* prazen razdelek se ne prikaže */

/* ---------- Kontakti ---------- */
.contact {
  padding: 40px 24px 60px;
  text-align: center;
}
.contact h2 { margin-bottom: 20px; }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.contact-links a {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.contact-links a:hover { border-color: var(--accent); background: var(--accent-soft); }
/* ---------- Podstrani P / M ---------- */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}
.page h1 { font-size: 2rem; margin-bottom: 6px; }
.page .lead { color: var(--muted); margin-bottom: 24px; }

/* Logotip na vrhu podstrani – cel, brez obrezovanja */
.page-logo {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto 28px;
}

/* Vnosna vrstica */
.input-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; }
.field label { font-size: .85rem; color: var(--muted); }
.field input,
.field select {
  padding: 12px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
}
.field input:focus,
.field select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form-error { color: #c0392b; font-size: .9rem; width: 100%; min-height: 1.2em; }

/* Zavihki (paketi) */
.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.tab {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 400;
  transition: all .25s;
}
.tab h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 4px; }
.tab .range { color: var(--muted); font-size: .95rem; }
.tab .note { font-size: .85rem; color: var(--muted); margin-top: 8px; }
/* Ime paketa in cena v isti vrstici (mačke) – cena kot v pasjem ceniku */
.tab-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.tab .price { font-size: .95rem; font-weight: 400; color: var(--text); white-space: nowrap; }
.tab.selected .price { font-weight: 800; }

/* Izbrani zavihek – odebeljen */
.tab.selected {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
  transform: translateY(-3px);
}
.tab.selected h3 { font-weight: 800; }
.tab.selected .range,
.tab.selected .note { color: var(--text); font-weight: 600; }
.tabs.has-selection .tab:not(.selected) { opacity: .5; }

/* Cene znotraj zavihka */
.price-list { list-style: none; margin-top: 12px; display: grid; gap: 6px; }
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .9rem;
  padding: 6px 8px;
  border-radius: 8px;
}
.tab.selected .price-list li { font-weight: 400; }
.tab.selected .price-list li.selected {
  background: #fff;
  font-weight: 800;
  outline: 1px solid var(--accent);
}

/* Podrobnosti izbranega paketa – zdrsne navzdol */
.tabs { grid-auto-flow: row dense; }   /* ostali zavihki zapolnijo vrstico nad podrobnostmi */
.tab { scroll-margin-top: 90px; }       /* da glava ne prekrije izbranega zavihka */
.detail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .45s ease, opacity .45s ease;
}
.detail.open { grid-template-rows: 1fr; opacity: 1; }
.detail[hidden] { display: none; }
.detail-body {
  overflow: hidden;
  min-height: 0;
}
.detail-title { font-size: 1.05rem; margin: 6px 0 12px; }
.detail-order { margin: 14px 0 4px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;   /* pokončne fotke: obdrži glavo v kadru */
  border-radius: 10px;
  background: #f3f3f3;
  opacity: 0;
  transition: opacity .3s;
}
.gallery img.loaded { opacity: 1; }
.gallery .img-slot { grid-column: 1 / -1; min-height: 120px; }

/* ---------- Tačke v ozadju ---------- */
body { position: relative; }
.paws {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.paw {
  position: absolute;
  width: var(--size, 42px);
  height: var(--size, 42px);
  background-color: var(--paw);
  opacity: .2;
  -webkit-mask: var(--shape) center / contain no-repeat;
  mask: var(--shape) center / contain no-repeat;
}
/* Pasja tačka: ovalni prsti s kremplji, trikotna blazinica */
.paw.dog {
  --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 50c-13 0-27 15-29 28-2 9 5 15 13 13 7-2 10-5 16-5s9 3 16 5c8 2 15-4 13-13-2-13-16-28-29-28z'/%3E%3Cellipse cx='20' cy='42' rx='8' ry='11' transform='rotate(-25 20 42)'/%3E%3Cellipse cx='37' cy='24' rx='8' ry='12' transform='rotate(-8 37 24)'/%3E%3Cellipse cx='63' cy='24' rx='8' ry='12' transform='rotate(8 63 24)'/%3E%3Cellipse cx='80' cy='42' rx='8' ry='11' transform='rotate(25 80 42)'/%3E%3Cpath d='M12 31l2-8 4 7zM33 12l2-8 3 8zM62 12l3-8 2 8zM82 30l4-7 2 8z'/%3E%3C/svg%3E");
}
/* Mačja tačka: okrogli prsti, široka blazinica s tremi režnji */
.paw.cat {
  --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 46c-15 0-28 12-28 25 0 8 6 12 12 10 4-1 6 4 11 4 2 0 3-2 5-2s3 2 5 2c5 0 7-5 11-4 6 2 12-2 12-10 0-13-13-25-28-25z'/%3E%3Ccircle cx='22' cy='40' r='9'/%3E%3Ccircle cx='39' cy='25' r='9.5'/%3E%3Ccircle cx='61' cy='25' r='9.5'/%3E%3Ccircle cx='78' cy='40' r='9'/%3E%3C/svg%3E");
}
.paw:nth-child(1)  { top: 6%;  left: 2%;   --size: 46px; transform: rotate(-20deg); }
.paw:nth-child(2)  { top: 14%; right: 3%;  --size: 38px; transform: rotate(25deg); }
.paw:nth-child(3)  { top: 26%; left: 5%;   --size: 34px; transform: rotate(10deg); }
.paw:nth-child(4)  { top: 37%; right: 2%;  --size: 50px; transform: rotate(-15deg); }
.paw:nth-child(5)  { top: 48%; left: 1.5%; --size: 40px; transform: rotate(30deg); }
.paw:nth-child(6)  { top: 58%; right: 5%;  --size: 36px; transform: rotate(-30deg); }
.paw:nth-child(7)  { top: 68%; left: 4%;   --size: 48px; transform: rotate(-5deg); }
.paw:nth-child(8)  { top: 78%; right: 2.5%; --size: 42px; transform: rotate(15deg); }
.paw:nth-child(9)  { top: 88%; left: 8%;   --size: 34px; transform: rotate(20deg); }
.paw:nth-child(10) { top: 94%; right: 10%; --size: 44px; transform: rotate(-10deg); }

/* Opis storitve */
.info-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.info-box h2 { font-size: 1.3rem; margin-bottom: 8px; }
.service-list {
  margin: 10px 0 0 20px;
  columns: 2 220px;
}
.service-list li { margin-bottom: 4px; }

/* Opozorilo */
.disclaimer {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.disclaimer h3 { font-size: 1rem; margin-bottom: 6px; }
.disclaimer p { font-size: .95rem; }

/* ---------- Pojavno okno »Naroči se zdaj« ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
}
.modal h2 { margin-bottom: 8px; }
.modal .summary { color: var(--muted); margin-bottom: 20px; }
.modal .cta-row { flex-direction: column; }
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--muted);
}

/* ---------- Noga ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}

/* ---------- Telefon ---------- */
@media (max-width: 600px) {
  .site-header { padding: 10px 16px; }
  .brand-name { font-size: 1.1rem; }
  .page { padding: 24px 16px 48px; }

  /* Manjše slike na telefonu: po dve v vrsti (pol velikosti) */
  .board { padding: 24px 12px; gap: 18px 12px; border-width: 8px; }
  .pin-card { width: calc(50% - 6px); padding: 6px 6px 16px; }
  .pin-card::before { width: 12px; height: 12px; margin-left: -6px; top: -6px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
