/* ===========================================================
   Povezujemo Štepanjsko — shared hand-drawn design system
   Warm paper, sunny orange, sketchy ink. Used by all variants.
   =========================================================== */

:root{
  --paper:   #FBF3E2;
  --paper-2: #F4E8CF;
  --paper-3: #ECDCBC;
  --ink:     #2C211A;
  --ink-soft:#7A6857;
  --orange:  #EE7B1C;
  --orange-deep:#D2560A;
  --sun:     #F6C13F;
  --green:   #6E9C44;
  --blue:    #2E73B8;
  --rose:    #E58AA0;

  --font-title: "Caveat", cursive;
  --font-hand:  "Patrick Hand", "Comic Sans MS", cursive;
  --font-body:  "Nunito", system-ui, sans-serif;

  --shadow-pop: 5px 5px 0 var(--ink);
  --shadow-soft: 0 14px 30px rgba(44,33,26,.22);
}

*{ box-sizing:border-box; }
html,body{ margin:0; height:100%; }
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  overflow:hidden;
}

/* paper grain + warm vignette helper for backgrounds */
.paper-bg{
  background-color:var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(246,193,63,.20), transparent 42%),
    radial-gradient(circle at 88% 86%, rgba(238,123,28,.16), transparent 46%),
    url("noise.svg");
  background-size:auto,auto,180px 180px;
}

/* ---------- hand-drawn primitives ---------- */
.sketch-box{
  border:2.5px solid var(--ink);
  border-radius:255px 14px 225px 16px/16px 225px 14px 255px;
  background:#fff;
}
.sketch-box.alt{
  border-radius:14px 230px 18px 230px/220px 16px 235px 14px;
}

.tape{
  position:absolute;
  width:96px; height:30px;
  background:rgba(246,193,63,.62);
  border:1px solid rgba(210,86,10,.25);
  box-shadow:0 1px 4px rgba(44,33,26,.14);
  z-index:3;
}
.tape.blue{ background:rgba(46,115,184,.42); }
.tape.white{ background:rgba(255,255,255,.55); border-color:rgba(44,33,26,.12); }

/* photo cards — polaroid / taped snapshot */
.snap{
  position:relative;
  background:#fff;
  padding:9px 9px 9px;
  border:1px solid rgba(44,33,26,.12);
  box-shadow:var(--shadow-soft);
}
.snap img{ display:block; width:100%; height:100%; object-fit:cover; }
.snap .cap{
  font-family:var(--font-hand);
  font-size:1.15rem; line-height:1; color:var(--ink-soft);
  padding:9px 2px 2px; text-align:center;
}

/* sun doodle (simple primitive — circle + rays) */
.sun{ display:inline-block; vertical-align:middle; }
.sun svg{ display:block; }

/* buttons — shape driven by --btn-* tokens (set per [data-btn] on root) */
.btn{
  font-family:var(--font-ui, var(--font-hand));
  font-size:1.18rem;
  cursor:pointer;
  border:var(--btn-bd, 2.5px solid var(--ink));
  background:var(--sun);
  color:var(--ink);
  padding:.55rem 1.25rem;
  border-radius:var(--btn-radius, 14px);
  box-shadow:var(--btn-shadow, 0 8px 18px rgba(44,33,26,.18));
  transition:transform .14s ease, box-shadow .14s ease;
  text-decoration:none;
  display:inline-flex; align-items:center; gap:.5rem;
  line-height:1.1; font-weight:600;
}
.btn:hover{ transform:var(--btn-hover, translateY(-2px)); box-shadow:var(--btn-shadow-hover, 0 12px 24px rgba(44,33,26,.26)); }
.btn:active{ transform:translateY(1px); }

/* shape presets */
[data-btn="sketchy"]{ --btn-radius:240px 18px 230px 16px/16px 230px 16px 240px; --btn-bd:2.5px solid var(--ink); --btn-shadow:5px 5px 0 var(--ink); --btn-shadow-hover:7px 7px 0 var(--ink); --btn-hover:translate(-2px,-2px); }
[data-btn="pill"]{ --btn-radius:999px; --btn-bd:2.5px solid var(--ink); --btn-shadow:3px 3px 0 var(--ink); --btn-shadow-hover:5px 5px 0 var(--ink); --btn-hover:translate(-2px,-2px); }
[data-btn="soft"]{ --btn-radius:13px; --btn-bd:1.5px solid rgba(44,33,26,.55); --btn-shadow:0 7px 16px rgba(44,33,26,.2); --btn-shadow-hover:0 12px 24px rgba(44,33,26,.28); --btn-hover:translateY(-2px); }
[data-btn="sharp"]{ --btn-radius:3px; --btn-bd:2px solid var(--ink); --btn-shadow:4px 4px 0 var(--ink); --btn-shadow-hover:6px 6px 0 var(--ink); --btn-hover:translate(-2px,-2px); }
.btn.orange{ background:var(--orange); color:#fff; }
.btn.white{ background:#fff; }
.btn.green{ background:var(--green); color:#fff; }

/* ---------- countdown ---------- */
.countdown{ display:flex; gap:.7rem; align-items:flex-end; }
.cd-cell{
  background:#fff;
  border:2.5px solid var(--ink);
  border-radius:18px 8px 20px 8px/8px 20px 8px 18px;
  min-width:84px; padding:.35rem .2rem .25rem;
  text-align:center;
  box-shadow:3px 3px 0 var(--ink);
}
.cd-num{
  font-family:var(--font-title); font-weight:700;
  font-size:3.1rem; line-height:.95; color:var(--orange-deep);
  font-variant-numeric:tabular-nums;
}
.cd-lab{
  font-family:var(--font-hand); font-size:.95rem;
  text-transform:lowercase; color:var(--ink-soft); letter-spacing:.02em;
}

/* ===========================================================
   Shared overlays (gallery / contact / partners) injected by JS
   =========================================================== */
.ov{
  position:fixed; inset:0; z-index:80;
  display:none; align-items:center; justify-content:center;
  padding:clamp(14px,3vw,40px);
  background:rgba(44,33,26,.55);
  backdrop-filter:blur(3px);
}
.ov.open{ display:flex; animation:ovin .22s ease; }
@keyframes ovin{ from{ opacity:0 } to{ opacity:1 } }

.ov-card{
  position:relative;
  width:min(960px,100%); max-height:92vh; overflow:auto;
  background:var(--paper);
  background-image:url("noise.svg"); background-size:180px 180px;
  border:3px solid var(--ink);
  border-radius:30px 10px 30px 10px/10px 30px 10px 30px;
  box-shadow:0 26px 60px rgba(44,33,26,.4);
  padding:clamp(20px,3vw,38px);
}
.ov-card::-webkit-scrollbar{ width:10px; }
.ov-card::-webkit-scrollbar-thumb{ background:var(--paper-3); border-radius:8px; }

.ov-close{
  position:absolute; top:14px; right:16px; z-index:5;
  width:46px; height:46px; border-radius:50%;
  border:2.5px solid var(--ink); background:#fff;
  font-family:var(--font-hand); font-size:1.5rem; cursor:pointer;
  box-shadow:3px 3px 0 var(--ink); line-height:1;
}
.ov-close:hover{ background:var(--orange); color:#fff; transform:rotate(8deg); }

.ov-title{
  font-family:var(--font-title); font-weight:700;
  font-size:clamp(2.2rem,5vw,3.4rem); line-height:.9; margin:0 0 .2em;
  color:var(--ink);
}
.ov-title .accent{ color:var(--orange-deep); }
.ov-sub{ font-family:var(--font-hand); font-size:1.2rem; color:var(--ink-soft); margin:0 0 1.2rem; }

/* gallery grid inside overlay */
.gal-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px;
}
.gal-grid .snap{ cursor:pointer; transition:transform .14s ease; }
.gal-grid .snap:nth-child(odd){ transform:rotate(-1.4deg); }
.gal-grid .snap:nth-child(even){ transform:rotate(1.2deg); }
.gal-grid .snap:hover{ transform:rotate(0) scale(1.03); z-index:2; }
.gal-grid .snap img{ aspect-ratio:3/2; }

/* lightbox */
.lb{ position:fixed; inset:0; z-index:120; display:none; align-items:center; justify-content:center; background:rgba(20,14,10,.92); padding:24px; }
.lb.open{ display:flex; }
.lb img{ max-width:90vw; max-height:80vh; border:6px solid #fff; box-shadow:0 20px 60px rgba(0,0,0,.6); }
.lb .lb-cap{ position:absolute; bottom:24px; left:0; right:0; text-align:center; font-family:var(--font-hand); color:#fff; font-size:1.4rem; }
.lb .lb-nav{ position:absolute; top:50%; transform:translateY(-50%); width:60px; height:60px; border-radius:50%; border:2.5px solid #fff; background:rgba(255,255,255,.12); color:#fff; font-size:2rem; cursor:pointer; font-family:var(--font-hand); }
.lb .lb-nav:hover{ background:var(--orange); }
.lb .lb-prev{ left:24px; } .lb .lb-next{ right:24px; }
.lb .lb-x{ position:absolute; top:20px; right:24px; width:48px; height:48px; border-radius:50%; border:2.5px solid #fff; background:transparent; color:#fff; font-size:1.5rem; cursor:pointer; }

/* ---------- contact / join form ---------- */
.seg{
  display:inline-flex; border:2.5px solid var(--ink); border-radius:40px;
  overflow:hidden; margin-bottom:1.3rem; background:#fff;
}
.seg button{
  font-family:var(--font-hand); font-size:1.15rem; cursor:pointer;
  border:0; background:transparent; padding:.5rem 1.3rem; color:var(--ink-soft);
}
.seg button.on{ background:var(--orange); color:#fff; }

.field{ margin-bottom:1rem; }
.field label{ display:block; font-family:var(--font-hand); font-size:1.15rem; margin-bottom:.25rem; }
.field input, .field textarea, .field select{
  width:100%; font-family:var(--font-body); font-size:1rem; color:var(--ink);
  padding:.6rem .8rem; background:#fff;
  border:2px solid var(--ink); border-radius:14px 6px 14px 6px/6px 14px 6px 14px;
}
.field input:focus, .field textarea:focus, .field select:focus{ outline:3px solid var(--sun); outline-offset:1px; }
.field textarea{ min-height:90px; resize:vertical; }

.chips{ display:flex; flex-wrap:wrap; gap:.5rem; }
.chip{
  display:inline-flex; align-items:center; gap:.4rem;
  font-family:var(--font-hand); font-size:1.05rem; cursor:pointer;
  border:2px solid var(--ink); border-radius:30px; padding:.35rem .85rem; background:#fff;
  user-select:none; transition:transform .1s ease;
}
.chip input{ accent-color:var(--orange); width:16px; height:16px; }
.chip.on{ background:var(--sun); transform:translateY(-1px); }

.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.muted{ font-family:var(--font-body); font-size:.85rem; color:var(--ink-soft); }

.thanks{
  text-align:center; padding:2rem 1rem;
}
.thanks .big{ font-family:var(--font-title); font-weight:700; font-size:3rem; color:var(--orange-deep); line-height:1; }
.thanks p{ font-family:var(--font-hand); font-size:1.3rem; color:var(--ink); }

/* ---------- partners ---------- */
.year-row{ margin-bottom:1.6rem; }
.year-tag{
  display:inline-block; font-family:var(--font-title); font-weight:700;
  font-size:1.9rem; color:var(--ink);
  background:var(--sun); padding:.05em .5em; transform:rotate(-2deg);
  border:2.5px solid var(--ink); border-radius:14px 6px 16px 6px/6px 16px 6px 14px;
  margin-bottom:.9rem;
}
.logo-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.logo-slot{
  aspect-ratio:3/2; background:#fff;
  border:2.5px dashed var(--ink); border-radius:16px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; color:var(--ink-soft); gap:.2rem; padding:.4rem;
  position:relative; overflow:hidden;
}
.logo-slot .ls-mark{ font-family:var(--font-title); font-weight:700; font-size:1.7rem; color:var(--paper-3); }
.logo-slot .ls-hint{ font-family:var(--font-body); font-size:.62rem; letter-spacing:.08em; text-transform:uppercase; }
.logo-slot:hover{ border-color:var(--orange); color:var(--orange-deep); }

/* contact info line */
.contact-line{ font-family:var(--font-hand); font-size:1.25rem; line-height:1.7; }
.contact-line b{ color:var(--orange-deep); }
.tbd{ background:var(--paper-3); border-radius:6px; padding:0 .35em; font-size:.9em; }

/* ---------- about: FAQ accordion (injected into ov-about) ---------- */
.faq{ display:flex; flex-direction:column; }
.faq-item{ border-top:2px dashed rgba(44,33,26,.25); }
.faq-item:last-child{ border-bottom:2px dashed rgba(44,33,26,.25); }
.faq-q{ width:100%; background:none; border:0; cursor:pointer; text-align:left;
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:1.05rem .1rem; color:var(--ink);
  font-family:var(--font-title); font-weight:700; line-height:1.04;
  font-size:clamp(1.55rem,3vw,2.15rem); transition:color .16s ease; }
.faq-q:hover{ color:var(--orange-deep); }
.faq-ic{ flex:none; width:42px; height:42px; border-radius:50%;
  display:grid; place-items:center; background:#fff; color:var(--orange-deep);
  border:2.5px solid var(--ink); box-shadow:3px 3px 0 var(--ink);
  transition:transform .3s ease, background .2s ease, color .2s ease; }
.faq-ic svg{ width:18px; height:18px; display:block; }
.faq-q[aria-expanded="true"] .faq-ic{ transform:rotate(135deg); background:var(--orange); color:#fff; }
.faq-a{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .34s ease; }
.faq-q[aria-expanded="true"] + .faq-a{ grid-template-rows:1fr; }
.faq-a > div{ overflow:hidden; }
.faq-a p{ font-family:var(--font-body); font-size:1.02rem; line-height:1.65;
  color:#43342a; margin:0; padding:0 52px 1.1rem .1rem; text-wrap:pretty; }

/* ---------- about (reading layout) ---------- */
.about-read{ max-width:70ch; margin:0 auto; }
.about-read p{ font-family:var(--font-body); font-size:1.02rem; line-height:1.65; margin:0 0 .95rem; color:#43342a; text-wrap:pretty; }
.about-read p.lead{ font-family:var(--font-ui, var(--font-hand)); font-size:1.28rem; line-height:1.45; color:var(--ink); margin-bottom:1.1rem; }
.about-read p:last-child{ font-style:italic; color:var(--orange-deep); }

/* ---------- about (old structured bits, kept for reuse) ---------- */
.about-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:26px; align-items:start; }
.about-lead{ font-family:var(--font-ui, var(--font-hand)); font-size:1.35rem; line-height:1.35; color:var(--ink); margin:0 0 .7rem; }
.about-grid p{ font-size:1rem; line-height:1.6; margin:0 0 .8rem; color:#43342a; }
.stat-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:.2rem 0 1.1rem; }
.stat{ background:#fff; border:1.5px solid rgba(44,33,26,.5); border-radius:16px; padding:.85rem .6rem; text-align:center; box-shadow:0 6px 14px rgba(44,33,26,.1); }
.stat .n{ font-family:var(--font-display, var(--font-title)); font-weight:700; font-size:2.3rem; line-height:.9; color:var(--orange-deep); }
.stat .l{ font-family:var(--font-ui, var(--font-hand)); font-size:.82rem; color:var(--ink-soft); margin-top:.25rem; line-height:1.2; }
.about-aside{ background:#fff; border:1.5px solid rgba(44,33,26,.45); border-radius:18px; padding:1.1rem 1.2rem; box-shadow:0 8px 20px rgba(44,33,26,.12); }
.about-aside h4{ font-family:var(--font-display, var(--font-title)); font-weight:700; font-size:1.4rem; margin:0 0 .6rem; color:var(--ink); }
.timeline{ list-style:none; margin:0 0 1.1rem; padding:0; }
.timeline li{ display:flex; gap:.7rem; align-items:baseline; margin-bottom:.45rem; }
.timeline .yr{ font-family:var(--font-display, var(--font-title)); font-weight:700; color:var(--orange-deep); min-width:3.1em; }
.timeline span:last-child{ font-size:.94rem; color:#43342a; }

/* themed bullet list */
.bullets{ list-style:none; margin:0; padding:0; columns:1; }
.bullets li{ position:relative; padding-left:1.5rem; margin-bottom:.4rem; font-size:.96rem; color:#43342a; line-height:1.4; }
.bullets li::before{ position:absolute; left:0; top:.06em; color:var(--orange); font-weight:700; }
[data-bullet="dot"]   .bullets li::before{ content:"●"; font-size:.7em; top:.25em; }
[data-bullet="dash"]  .bullets li::before{ content:"—"; }
[data-bullet="square"].bullets li::before{ content:"▪"; }
[data-bullet="check"] .bullets li::before{ content:"✓"; }
[data-bullet="star"]  .bullets li::before{ content:"✦"; }

/* utility */
.rotc{ transform:rotate(-2deg); }
.nowrap{ white-space:nowrap; }
@media (max-width:560px){
  .gal-grid{ grid-template-columns:repeat(2,1fr); }
  .logo-grid{ grid-template-columns:repeat(2,1fr); }
  .form-row{ grid-template-columns:1fr; }
}
