/* ============================================================
   Šola SAI — spletna stran
   Svetla, mehka, topla in mirna zasnova.
   ============================================================ */

:root {
  /* Barve blagovne znamke (sonce, srce, krila, listi) */
  --sun:    #F5C95E;   /* rumena  — sonce */
  --sun-deep: #CE9A22; /* globlja zlato-rumena za berljivo besedilo */
  --heart:  #F2A9CE;   /* rožnata — srce  */
  --wing:   #8FB9EA;   /* modra   — krila */
  --leaf:   #A2CC7C;   /* zelena  — listi */

  /* Mehke podlage */
  --cream:      #FCFAF4;
  --cream-warm: #FAF4E9;
  --cream-rose: #FBF3F6;
  --cream-leaf: #F2F6EC;

  /* Besedilo */
  --ink:      #4A443C;
  --ink-soft: #6E675D;
  --line:     #ECE5D8;

  --maxw: 1120px;
  --measure: 44rem;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Nunito Sans", system-ui, -apple-system, Segoe UI, sans-serif;

  --shadow-soft: 0 18px 50px rgba(120, 105, 80, 0.10);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Zamik za lepljivo glavo pri skoku na sidra */
:target,
#uvod, #o-soli, #galerija, #vpis, #kontakt { scroll-margin-top: 195px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 1.06rem;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 250, 244, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; line-height: 0; }

.brand-logo {
  height: clamp(80px, 7vw, 100px);
  width: auto;
  transition: transform 0.4s ease;
}
.brand:hover .brand-logo { transform: scale(1.03); }

.main-nav {
  display: flex;
  gap: 2rem;
  font-weight: 600;
  font-size: 1rem;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.25rem 0;
  transition: color 0.25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--heart);
  transition: width 0.3s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-info {
  border-top: 1px solid var(--line);
  background: var(--cream-warm);
}
.header-info p {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  text-align: center;
}
.header-info a { color: var(--ink); text-decoration: none; font-weight: 600; }
.header-info a:hover { color: var(--heart); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 7vw, 6rem) 1.5rem clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(120% 90% at 50% -10%, var(--cream-warm) 0%, transparent 60%),
    radial-gradient(90% 70% at 85% 10%, var(--cream-rose) 0%, transparent 55%),
    radial-gradient(90% 70% at 12% 20%, var(--cream-leaf) 0%, transparent 55%),
    var(--cream);
  overflow: hidden;
}
/* Vrtnica dezno v ozadju heroja */
.hero::before {
  content: "";
  position: absolute;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 118%);
  height: 70%;
  background: url("images/rose.jpg") center top / cover no-repeat;
  filter: blur(7px);
  opacity: 0.20;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero-logo img {
  width: min(320px, 60vw);
  margin: 0 auto clamp(1.2rem, 3vw, 2rem);
  animation: floaty 7s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--sun-deep);
  margin: 0 auto 0.7rem;
  max-width: 20em;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--sun-deep);
  margin: 0 auto clamp(1.8rem, 4vw, 2.6rem);
  max-width: 26em;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero-quote {
  margin: 0 auto;
  max-width: 52rem;
}
.hero-quote blockquote {
  margin: 0;
}
.hero-quote p {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.6;
  color: var(--ink);
}
.hero-quote figcaption {
  margin-top: 1.6rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ============================================================
   VSEBINSKE SEKCIJE
   ============================================================ */
.section {
  padding: clamp(2.6rem, 6vw, 4.4rem) 1.5rem;
}
.section-body {
  max-width: var(--measure);
  margin: 0 auto;
}
.section-body p {
  margin: 0 0 1.35rem;
}
.section-body p:last-child { margin-bottom: 0; }

.section-body em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(242, 169, 206, 0.35) 62%);
  padding: 0 0.1em;
}

.section--intro { background: var(--cream-warm); }
.section--intro .section-body p:first-of-type {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.65;
}

.section--closing { background: var(--cream-rose); }

.proverb {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--ink);
}

/* Nežni listni ločevalnik iz barv znamke */
.leaf-divider {
  display: block;
  width: 68px;
  height: 12px;
  margin: 0 auto 2rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 50%, var(--sun) 0 4.5px, transparent 5px),
    radial-gradient(circle at 39% 50%, var(--heart) 0 4.5px, transparent 5px),
    radial-gradient(circle at 61% 50%, var(--wing) 0 4.5px, transparent 5px),
    radial-gradient(circle at 82% 50%, var(--leaf) 0 4.5px, transparent 5px);
}

/* ============================================================
   VZDUŠNE SLIKE
   ============================================================ */
.band-image {
  margin: 0;
  overflow: hidden;
}
.band-image img {
  width: 100%;
  height: clamp(260px, 42vw, 520px);
  object-fit: cover;
  object-position: center 42%;
}

.band-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.band-duo figure { margin: 0; overflow: hidden; }
.band-duo img {
  width: 100%;
  height: clamp(220px, 32vw, 400px);
  object-fit: cover;
  transition: transform 0.7s ease;
}
.band-duo figure:hover img { transform: scale(1.05); }

/* ============================================================
   VPIS — vabilo / prenos
   ============================================================ */
.invite {
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  background: var(--cream-leaf);
}
.invite-card {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.invite-text h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.6rem;
  color: var(--ink);
}
.invite-text > p {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
}
.invite-text ul {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.invite-text li {
  position: relative;
  padding-left: 1.9rem;
  line-height: 1.55;
}
.invite-text li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--leaf);
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  background: var(--sun);
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 8px 20px rgba(245, 201, 94, 0.35);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(245, 201, 94, 0.45);
}

/* ============================================================
   GALERIJA — karusel
   ============================================================ */
.gallery {
  padding: clamp(2.8rem, 6vw, 4.6rem) 1.5rem;
  background: var(--cream);
}
.gallery--alt { background: var(--cream-leaf); }
.gallery-title,
.contact h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  color: var(--ink);
  margin: 0 0 clamp(1.6rem, 3vw, 2.4rem);
}

.carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.car-track {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: var(--radius);
}
.car-track::-webkit-scrollbar { display: none; }

.car-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

/* Klikni za povečavo; slike prikažemo v celoti (brez obrezovanja) */
.slide-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 18px;
  background: var(--cream-warm);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  overflow: hidden;
}
.slide-btn img {
  width: 100%;
  height: clamp(300px, 52vw, 520px);
  object-fit: contain;
  background: var(--cream-warm);
  transition: transform 0.5s ease;
}
.slide-btn:hover img { transform: scale(1.02); }
.slide-btn:focus-visible { outline: 3px solid var(--wing); outline-offset: 3px; }

.car-btn {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(120, 105, 80, 0.12);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.car-btn:hover { transform: scale(1.08); background: var(--sun); }
.car-btn:focus-visible { outline: 3px solid var(--wing); outline-offset: 2px; }

.car-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.6rem;
}
.car-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}
.car-dots button:hover { background: var(--wing); }
.car-dots button[aria-selected="true"] {
  background: var(--heart);
  transform: scale(1.35);
}
.car-dots button:focus-visible { outline: 2px solid var(--wing); outline-offset: 2px; }

/* ============================================================
   SVETLOBNA ŠKATLA (povečava slik)
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(74, 68, 60, 0.82);
  backdrop-filter: none;
  animation: lb-fade 0.25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  background: #fff;
}

.lightbox-close,
.lightbox-nav {
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.lightbox-close {
  position: absolute;
  top: clamp(0.8rem, 2vw, 1.4rem);
  right: clamp(0.8rem, 2vw, 1.4rem);
  width: 46px;
  height: 46px;
  font-size: 1.2rem;
}
.lightbox-nav {
  width: 52px;
  height: 52px;
  font-size: 1.8rem;
  flex: 0 0 auto;
}
.lightbox-close:hover,
.lightbox-nav:hover { transform: scale(1.08); background: #fff; }
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 3px solid var(--wing); outline-offset: 2px; }

body.lb-open { overflow: hidden; }

@media (max-width: 560px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.4rem; }
}

/* ============================================================
   KONTAKT — obrazec
   ============================================================ */
.contact {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  background: var(--cream-rose);
  overflow: hidden;
}
/* Zart obraz/slika v ozadju */
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/smile.jpg") center / cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
}
.contact-inner {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}
.contact-lead {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  display: grid;
  gap: 1.1rem;
}
.field { display: grid; gap: 0.4rem; }
.field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--wing);
  box-shadow: 0 0 0 3px rgba(143, 185, 234, 0.25);
}

.contact-form .btn {
  justify-self: start;
  border: none;
  cursor: pointer;
  margin-top: 0.3rem;
}
.form-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.form-hint.is-error { color: #b4506b; }

.contact-direct {
  text-align: center;
  margin: 1.8rem 0 0;
  color: var(--ink-soft);
}
.contact-direct a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-direct a:hover { color: var(--heart); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--cream-warm);
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem 1.8rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  text-align: center;
}
.footer-logo { width: 92px; height: auto; }
.footer-contact { text-align: left; }
.footer-contact p { margin: 0.15rem 0; color: var(--ink-soft); }
.footer-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--ink) !important;
}
.footer-contact a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: var(--heart); }

.footer-bottom {
  margin: 2rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  flex-wrap: wrap;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}
.footer-bottom a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--heart); }

/* ============================================================
   PRAVNA PODSTRAN (Politika zasebnosti)
   ============================================================ */
.legal {
  background: var(--cream);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem clamp(3rem, 7vw, 5rem);
}
.legal-inner {
  max-width: 44rem;
  margin: 0 auto;
}
.legal-inner h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--ink);
  margin: 0 0 1.4rem;
}
.legal-inner h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  color: var(--ink);
  margin: 2.2rem 0 0.6rem;
}
.legal-inner p { margin: 0 0 1rem; }
.legal-inner ul { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.legal-inner li { margin: 0.3rem 0; }
.legal-inner a { color: var(--ink); font-weight: 600; }
.legal-inner a:hover { color: var(--heart); }
.legal-updated {
  margin-top: 2rem;
  font-style: italic;
  color: var(--ink-soft);
}
.legal-inner .btn { color: var(--ink); text-decoration: none; margin-top: 1rem; }

/* ============================================================
   OBVESTILO O PIŠKOTKIH
   ============================================================ */
.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 60;
  width: min(680px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 0.9rem 1.2rem;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); flex: 1 1 260px; }
.cookie-notice a { color: var(--ink); font-weight: 600; }
.cookie-notice .cookie-ok {
  border: none;
  cursor: pointer;
  padding: 0.55rem 1.4rem;
  font-size: 0.95rem;
}

/* ============================================================
   RAZKRIVANJE OB DRSENJU (nežno)
   ============================================================ */
/* Skrijemo le, kadar je JavaScript aktiven — sicer je vse vedno vidno. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONZIVNOST
   ============================================================ */
@media (max-width: 820px) {
  .brand-logo { height: 68px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    gap: 0.5rem;
    background: var(--cream);
    box-shadow: -20px 0 50px rgba(120, 105, 80, 0.14);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    font-size: 1.15rem;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 0.6rem 0; }

  body.nav-open { overflow: hidden; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .band-duo { grid-template-columns: 1fr; }
  .header-info p { font-size: 0.78rem; }
  .footer-inner { flex-direction: column; gap: 1rem; }
  .footer-contact { text-align: center; }
}

/* Spoštovanje želje po zmanjšani animaciji */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
