/* ===== THEME TOKENS ===== */

/* Dark (privzeto) */
:root{
  --bg:#0e0a06;
  --card:#17100a;
  --text:#f6f0e7;
  --muted:#c8b9a6;

  --accent:#c48a3a;     /* jantar */
  --accent2:#7e4f1c;    /* zemlja */
  --green:#4e7a3b;      /* gozd */

  --border:rgba(246,240,231,.12);
  --shadow: 0 22px 70px rgba(0,0,0,.55);

  --surface: rgba(23,16,10,.55);
  --surface2: rgba(23,16,10,.45);
  --input-bg: rgba(14,10,6,.65);
  --topbar-bg: linear-gradient(to bottom, rgba(14,10,6,.88), rgba(14,10,6,.55));
  --hero-grad: linear-gradient(180deg, #0b0704, #120b07 55%, #0e0a06);

  --overlay: rgba(8,6,4,.85);
  --modal-bg: rgba(25,18,12,.95);
  --modal-field-bg: rgba(255,255,255,.04);
  --modal-field-border: rgba(255,255,255,.12);
  --modal-x: #fff;

  /* UE: tekst barve za nav/kicker */
  --nav-link: rgba(200,185,166,.92);
  --kicker: rgba(246,240,231,.85);

  --radius:18px;
  --radius2:26px;
  --max:1100px;
}

/* Light */
:root[data-theme="light"]{
  --bg:#ffffff;
  --card:#ffffff;
  --text:#14110d;
  --muted:#5b5247;

  --accent:#c48a3a;
  --accent2:#7e4f1c;
  --green:#4e7a3b;

  --border:rgba(20,17,13,.14);
  --shadow: 0 18px 55px rgba(0,0,0,.12);

  --surface: rgba(255,255,255,.78);
  --surface2: rgba(255,255,255,.62);
  --input-bg: rgba(255,255,255,.85);

  --topbar-bg: linear-gradient(to bottom, rgba(255,255,255,.82), rgba(255,255,255,.55));
  --hero-grad: linear-gradient(180deg, #ffffff, #fbf7f0 55%, #ffffff);

  --overlay: rgba(10,10,10,.55);
  --modal-bg: rgba(255,255,255,.98);
  --modal-field-bg: rgba(0,0,0,.04);
  --modal-field-border: rgba(0,0,0,.14);
  --modal-x: #111;

  --nav-link: rgba(20,17,13,.78);
  --kicker: rgba(20,17,13,.78);
}

/* UE: lep fokus (tipkovnica) */
:focus-visible{
  outline: 3px solid rgba(196,138,58,.55);
  outline-offset: 2px;
  border-radius: 12px;
}

/* UE: smooth theme transition (ne na prvem loadu) */
html.theme-ready *{
  transition:
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}
@media (prefers-reduced-motion: reduce){
  html.theme-ready *{ transition: none !important; }
}

*{box-sizing:border-box}

html,body{
  margin:0;padding:0;
  color:var(--text);
  font-family: ui-serif, Georgia, "Times New Roman", Times, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1200px 800px at 70% -10%, rgba(196,138,58,.20), transparent 60%),
    radial-gradient(900px 600px at 10% 10%, rgba(78,122,59,.18), transparent 55%),
    var(--hero-grad);
}

a{color:inherit;text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 20px;}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: var(--topbar-bg);
  border-bottom:1px solid var(--border);
}
.topbar-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:14px;}
.brand{display:flex; align-items:center; gap:12px}
.logo-img{height:48px;width:auto;display:block;margin:2px 0;}
.brand-title{font-weight:900; letter-spacing:.2px}
.brand-sub{font-size:12px; color:var(--muted); font-weight:700; margin-top:2px}

.nav{display:flex; gap:14px; align-items:center; flex-wrap:wrap; justify-content:flex-end}
.nav a{color:var(--nav-link); font-weight:800; font-size:14px}
.nav a:hover{color:var(--text)}

.cta{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px; border-radius:14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#130a03; font-weight:950; border:0; cursor:pointer;
  box-shadow: 0 18px 45px rgba(196,138,58,.22);
}
.ghost{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px; border-radius:14px;
  background: transparent;
  border:1px solid var(--border);
  color:var(--text); font-weight:900;
  cursor:pointer;
}
.ghost:hover{border-color: rgba(196,138,58,.45)}

/* Theme toggle button */
.theme-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-weight:900;
  cursor:pointer;
  user-select:none;
}
.theme-toggle:hover{border-color: rgba(196,138,58,.45)}
.theme-ico{font-size:16px; line-height:1}
.theme-txt{font-size:14px; font-weight:950}

.hero{padding:58px 0 26px}
.hero-grid{display:grid; grid-template-columns: 1.15fr .85fr; gap:26px; align-items:stretch;}
@media (max-width: 980px){ .hero-grid{grid-template-columns:1fr;}}

.hero-card{
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: var(--radius2);
  padding:30px;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.hero-card:before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(900px 300px at 20% 0%, rgba(196,138,58,.22), transparent 55%),
    radial-gradient(700px 240px at 85% 30%, rgba(78,122,59,.18), transparent 60%);
  pointer-events:none;
  opacity:.9;
}
.hero-card > *{position:relative}

.kicker{color:var(--kicker); font-weight:900; letter-spacing:.25px; font-size:14px}
h1{margin:10px 0 12px; font-size:44px; line-height:1.06}
@media (max-width: 520px){ h1{font-size:36px}}
.sub{color:var(--muted); font-size:16px; line-height:1.6; max-width:62ch}

.badges{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px}
.badge{
  padding:9px 11px; border-radius:999px;
  border:1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight:900; font-size:13px;
}

.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:22px}
/* ===== FIX: Stats clipping on mobile (UE friendly) ===== */
.stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-top:22px;
}
.stat{ min-width:0; }
.stat span{ overflow-wrap:anywhere; }

@media (max-width: 520px){
  .stats{ grid-template-columns: 1fr 1fr; }
  .stat:last-child{ grid-column: 1 / -1; } /* "Popusti" čez celo širino */
}
.stat{
  padding:14px 14px;
  border-radius:16px;
  border:1px solid var(--border);
  background: var(--surface);
}
.stat b{display:block; font-size:18px}
.stat span{color:var(--muted); font-size:13px}

.form-card{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding:20px;
}
.form-title{font-weight:950; font-size:16px; margin:4px 0 14px}
.inline-info{
  border:1px solid var(--border);
  background: var(--surface2);
  border-radius: 16px;
  padding: 12px 12px;
  color: var(--text);
  font-weight: 900;
  display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;
}

form{display:grid; gap:10px; margin-top:12px}
.row{display:grid; grid-template-columns: 1fr 1fr; gap:10px}
@media (max-width: 520px){ .row{grid-template-columns:1fr}}

label{font-size:12px; color:var(--kicker); font-weight:900}

input, select, textarea{
  width:100%;
  margin-top:6px;
  padding:12px 12px;
  border-radius:14px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  outline:none;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(196,138,58,.6);
  box-shadow: 0 0 0 4px rgba(196,138,58,.12)
}
textarea{min-height:90px; resize:vertical}
.form-actions{display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:4px}
.note{color:var(--muted); font-size:12px; line-height:1.45}

.pricing-box{
  border:1px solid var(--border);
  background: var(--surface2);
  border-radius: 16px;
  padding: 12px 12px;
  display:grid;
  gap:6px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
.pricing-line{display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap}
.pricing-line b{font-weight:950}
.pricing-line span{color: var(--text); font-weight:900}
.pricing-muted{color:var(--muted); font-size:12px; line-height:1.45}

.hero-aside{display:flex; flex-direction:column; gap:14px}

.hero-media{
  margin-top:18px;
  border:1px solid var(--border);
  border-radius: var(--radius2);
  overflow:hidden;
  background: var(--surface2);
  box-shadow: var(--shadow);
  position:relative;
}
.hero-media:after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(14,10,6,.10), rgba(14,10,6,.55));
  pointer-events:none;
}
:root[data-theme="light"] .hero-media:after{
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(20,17,13,.12));
}
.hero-media video{
  width:100%;
  height: 260px;
  display:block;
  object-fit: cover;
}
@media (max-width: 980px){
  .hero-media video{ height: 220px; }
}

section{padding:34px 0}
.section-title{font-size:22px; margin:0 0 10px; font-weight:950}
.section-sub{color:var(--muted); margin:0 0 18px; line-height:1.6}

.grid-3{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
@media (max-width: 980px){ .grid-3{grid-template-columns:1fr}}

.img-card{
  border:1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  overflow:hidden;
}
.img-card .media{
  aspect-ratio: 4/3;
  background:
    radial-gradient(circle at 30% 30%, rgba(196,138,58,.16), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(78,122,59,.12), transparent 55%),
    var(--surface2);
  border-bottom:1px solid var(--border);
}
.img-card img{
  width:100%; height:100%;
  object-fit: cover;
  display:block;
  filter: saturate(1.05) contrast(1.05);
}
.img-card .body{padding:16px 16px 18px}
.img-card h3{margin:0 0 8px; font-size:16px; font-weight:950}
.img-card p{margin:0; color:var(--muted); line-height:1.6}

.prices{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
@media (max-width: 980px){ .prices{grid-template-columns:1fr}}

.price{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  padding:18px;
  background: linear-gradient(180deg, var(--surface), var(--surface2));
  position:relative; overflow:hidden;
}
.price.featured{border-color: rgba(196,138,58,.55); box-shadow: 0 22px 70px rgba(196,138,58,.14)}
.price h3{margin:0 0 6px; font-weight:950}
.price .amt{font-size:32px; font-weight:950; margin:8px 0 10px}
.price ul{margin:0; padding-left:18px; color:var(--muted); line-height:1.7}

.btn-link{
  margin-top:12px;
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--border);
  border-radius: 14px;
  padding:10px 12px;
  cursor:pointer;
  background: var(--surface2);
  font-weight: 950;
  color: var(--text);
}
.btn-link:hover{border-color: rgba(196,138,58,.45)}

details{
  border:1px solid var(--border);
  background: var(--surface2);
  border-radius: var(--radius);
  padding:14px 16px;
}
summary{cursor:pointer; font-weight:950}
details p{color:var(--muted); line-height:1.6; margin:10px 0 0}

footer{padding:28px 0 44px; border-top:1px solid var(--border); color:var(--muted)}
.two-col{display:grid; grid-template-columns: 1fr 1fr; gap:14px}
@media (max-width: 980px){ .two-col{grid-template-columns:1fr}}

.toast{
  position: fixed; right: 16px; bottom: 16px; max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: var(--shadow);
  display:none;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  white-space: pre-line;
}
.toast b{display:block; margin-bottom:6px}
.toast p{margin:0; color:var(--muted); line-height:1.45; font-size:13px}
.toast .mini{margin-top:10px; display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap}
.btn-mini{
  border:1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
  font-weight:900;
  font-size:12px;
}
.btn-mini.primary{
  border-color: rgba(196,138,58,.55);
  background: rgba(196,138,58,.14);
  color: var(--text);
}

/* Background logo watermark */
.bg-watermark{
  position: fixed;
  inset: 0;
  background: url("../logo/logo-emblem.webp") center 60% no-repeat;
  background-size: min(75vw, 800px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  filter: saturate(1.1) contrast(1.05);
  animation: watermarkFade 1.8s ease-out forwards;
}
@keyframes watermarkFade{
  from { opacity: 0; }
  to   { opacity: 0.2; }
}
body > *{ position: relative; z-index: 1; }

/* Gift voucher modal */
.gift-btn{
  background: linear-gradient(135deg,#c48a3a,#7e4f1c);
  color:#fff;
  border:none;
  padding:14px 22px;
  border-radius:14px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(196,138,58,.35);
}

.gift-overlay{
  position:fixed;
  inset:0;
  background: var(--overlay);
  backdrop-filter: blur(4px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
}

.gift-modal{
  background: var(--modal-bg);
  border:1px solid var(--border);
  color: var(--text);
  padding:34px;
  width:min(520px,92%);
  border-radius:22px;
  box-shadow:0 40px 120px rgba(0,0,0,.35);
  animation: giftPop .5s ease;
  position:relative;
}

@keyframes giftPop{
  from{transform:translateY(40px) scale(.95); opacity:0}
  to{transform:none; opacity:1}
}

.gift-close{
  position:absolute;
  top:18px;
  right:22px;
  font-size:26px;
  background:none;
  border:none;
  color: var(--modal-x);
  cursor:pointer;
}

.gift-sub{ opacity:.75; margin-bottom:18px; }

.gift-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:12px;
}

.gift-modal input,
.gift-modal textarea{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--modal-field-border);
  background: var(--modal-field-bg);
  color: var(--text);
}

.gift-modal textarea{
  min-height:90px;
  resize:vertical;
  margin-bottom:16px;
}

.gift-submit{
  width:100%;
  padding:14px;
  border:none;
  border-radius:14px;
  background:linear-gradient(135deg,#c48a3a,#7e4f1c);
  color:#fff;
  font-weight:600;
  cursor:pointer;
}

.gift-cta{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  margin:70px auto 40px;
  max-width:520px;
  gap:14px;
}

/* Premium unified card style */
.lux-card{
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}

/* ===== UE: Flatpickr theme (osnovno, da se ujema s temo) ===== */
.flatpickr-calendar{
  background: var(--modal-bg) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
}
.flatpickr-months .flatpickr-month,
.flatpickr-weekdays,
.flatpickr-day,
.flatpickr-current-month,
.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm{
  color: var(--text) !important;
}
.flatpickr-day.today{
  border-color: rgba(196,138,58,.55) !important;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange{
  background: rgba(196,138,58,.22) !important;
  border-color: rgba(196,138,58,.55) !important;
}
.flatpickr-day:hover{
  background: rgba(196,138,58,.14) !important;
}
/* ===== ULTRA "APPLE CLEAN" MOBILE TOPBAR ===== */
@media (max-width: 760px){

  /* bolj “glass” */
  .topbar{
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  /* iPhone notch safe area */
  .topbar-inner{
    padding-top: calc(10px + env(safe-area-inset-top));
    padding-bottom: 10px;
    gap: 10px;
  }

  /* brand: manjše in čistejše */
  .logo-img{ height: 40px; }
  .brand{ gap: 10px; }
  .brand-title{ font-size: 15px; line-height: 1.1; }
  .brand-sub{ display:none; } /* ultra clean */

  /* nav: samo akcije */
  .nav{ gap: 10px; }
  .nav a{ display:none; } /* skrij anchor linke */

  /* theme: samo ikona, kot iOS */
  .theme-toggle{
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface2);
  }
  .theme-toggle .theme-txt{ display:none; } /* skrij text */
  .theme-toggle .theme-ico{ font-size: 16px; }

  /* CTA: kompakten, jasen */
  .cta{
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 14px;
  }
}
/* ===== FIX: theme toggle not clickable on mobile ===== */
.theme-toggle{
  position: relative;
  z-index: 100;
  pointer-events: auto;
  touch-action: manipulation;
}
.topbar,
.topbar *{
  pointer-events: auto;
}