/* ============ Magija Mila — light roza premium ============ */
:root {
  --roza-globoka: #983d5f;   /* naslovi, footer */
  --roza-temna: #b34d76;
  --roza: #f2a0bd;           /* primarni akcent, gumbi */
  --roza-svetla: #f7bcd1;
  --blush: #fde3ec;          /* nežni roza paneli */
  --krem: #fef6f9;           /* osnovno ozadje */
  --krem-dark: #fbe9f0;
  --zelena: #8aa189;
  --zelena-dark: #5f7a5e;
  --ink: #3a2b31;
  --ink-soft: #7a6169;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(152, 61, 95, 0.12);
}

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

html { scroll-behavior: smooth; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--krem);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--roza-globoka);
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.7rem); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--zelena-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 0.9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  font-family: var(--sans);
}

.btn-primary {
  background: linear-gradient(135deg, var(--roza), var(--roza-temna));
  color: #fff;
  box-shadow: 0 6px 18px rgba(242, 160, 189, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--roza-svetla), var(--roza));
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(242, 160, 189, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--roza-temna);
  border: 1.5px solid var(--roza);
}

.btn-ghost:hover {
  background: var(--blush);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(254, 246, 249, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242, 160, 189, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--roza-temna);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.logo em { font-style: italic; font-weight: 500; color: var(--zelena-dark); }

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--roza); }

.nav-cta {
  background: linear-gradient(135deg, var(--roza), var(--roza-temna));
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
}

.nav-cta:hover { filter: brightness(1.08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--roza-temna);
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Cinematic hero (scroll scrub) ---------- */
.cinematic {
  position: relative;
  height: 460vh;
  background: #fdf1f5;
}

.sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

#frame-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stage-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(254, 246, 249, 0.55) 0%, rgba(254, 246, 249, 0) 30%),
    linear-gradient(0deg, rgba(253, 227, 236, 0.65) 0%, rgba(253, 227, 236, 0) 38%);
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  pointer-events: none;
}

.reveal-line.ov {
  grid-area: 1 / 1;
  max-width: 780px;
  opacity: 0;
  will-change: opacity, transform;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 32px;
  background: radial-gradient(closest-side, rgba(253, 241, 245, 0.96), rgba(253, 241, 245, 0.8) 68%, rgba(253, 241, 245, 0) 100%);
}

.reveal-line.ov h1 {
  text-shadow: 0 2px 24px rgba(254, 246, 249, 0.9);
}

.ov-sub {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  color: var(--roza-globoka);
  line-height: 1.45;
  text-shadow: 0 2px 20px rgba(254, 246, 249, 0.95);
  margin-bottom: 1.4rem;
}

.reveal-line.ov .btn { pointer-events: auto; }

.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--roza-temna);
  opacity: 0.85;
  transition: opacity 0.4s;
  animation: hint-bob 2.2s ease-in-out infinite;
}

@keyframes hint-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ---------- Photos ---------- */
.photo { margin: 0; overflow: hidden; border-radius: var(--radius); }

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  transition: transform 0.4s ease;
}

.photo:hover img { transform: scale(1.04); }

/* ---------- About ---------- */
.about {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(255, 255, 255, 0.12), transparent 50%),
    linear-gradient(160deg, var(--roza-globoka), var(--roza-temna));
}

.about .eyebrow { color: var(--zelena); }

.about h2 { color: var(--krem); }

.about-inner { max-width: 720px; text-align: center; }

.about-text {
  color: rgba(254, 246, 249, 0.9);
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  line-height: 1.6;
}

/* ---------- Products ---------- */
.products { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.section-head { max-width: 620px; margin-bottom: 3rem; }

.category-head { max-width: 560px; margin-bottom: 1.6rem; }

.category-head p { color: var(--ink-soft); margin-top: 0.6rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.category-cta {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.soon-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
}

.soon-card {
  position: relative;
  padding: 2rem 1.8rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(242, 160, 189, 0.12);
  box-shadow: 0 4px 16px rgba(152, 61, 95, 0.06);
}

.soon-card p { color: var(--ink-soft); margin-top: 0.5rem; }

.soon-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zelena-dark);
  background: rgba(138, 161, 137, 0.18);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

/* ---------- Contact ---------- */
.contact {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(138, 161, 137, 0.12), transparent 50%),
    var(--blush);
}

.contact-inner {
  display: grid;
  gap: 2.5rem;
}

.contact-list {
  list-style: none;
  margin-top: 1.8rem;
  display: grid;
  gap: 0.9rem;
}

.contact-list li { display: flex; align-items: center; gap: 0.7rem; }

.contact-list a {
  color: var(--roza-temna);
  text-decoration: none;
  font-weight: 500;
}

.contact-list a:hover { text-decoration: underline; }

.contact-form {
  background: #fff;
  padding: 2rem 1.6rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.1rem;
}

.form-row { display: grid; gap: 0.35rem; }

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--roza-globoka);
}

.optional { font-weight: 400; color: var(--ink-soft); }

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(242, 160, 189, 0.2);
  border-radius: 10px;
  background: var(--krem);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-row textarea { resize: vertical; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--roza);
  box-shadow: 0 0 0 3px rgba(242, 160, 189, 0.15);
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
  color: var(--zelena-dark);
  font-weight: 500;
}

.form-status.error { color: #b3405c; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--roza-globoka);
  color: rgba(254, 246, 249, 0.85);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-inner { display: grid; gap: 0.5rem; }

.logo-footer { color: var(--krem); font-size: 1.4rem; }

.logo-footer em { color: var(--zelena); }

.site-footer a { color: var(--krem); text-decoration: none; }

.site-footer a:hover { text-decoration: underline; }

.footer-copy { opacity: 0.65; font-size: 0.8rem; margin-top: 0.5rem; }

.footer-pravno { font-size: 0.85rem; }

.footer-pravno a { opacity: 0.9; }

.form-gdpr {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: -0.2rem;
}

.form-gdpr a { color: var(--roza-temna); }

/* ---------- Galerija overlay ---------- */
.galerija-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--krem);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.galerija-overlay.odprta { display: flex; }

.galerija-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid rgba(242, 160, 189, 0.15);
  background: rgba(254, 246, 249, 0.95);
}

.galerija-naslov {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

.galerija-zapri {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--roza-temna);
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.galerija-zapri:hover { background: var(--blush); }

.galerija-grid {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.6rem;
  padding: 0.8rem;
}

.galerija-grid button {
  border: none;
  padding: 0;
  background: var(--blush);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  flex: 0 0 calc((100% - 0.6rem) / 2);
  aspect-ratio: 1 / 1;
}

.galerija-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.galerija-grid button:hover img { transform: scale(1.05); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(42, 24, 31, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.odprta { display: flex; }

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lb-zapri, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(254, 246, 249, 0.12);
  border: none;
  color: #fef6f9;
  cursor: pointer;
  border-radius: 999px;
  width: 46px;
  height: 46px;
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}

.lb-zapri:hover, .lb-prev:hover, .lb-next:hover { background: rgba(254, 246, 249, 0.28); }

.lb-zapri { top: 1rem; right: 1rem; }
.lb-prev { left: 0.8rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.8rem; top: 50%; transform: translateY(-50%); }

.lb-counter {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(254, 246, 249, 0.8);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint { animation: none; }
  /* brez scrub animacije: hero je en zaslon s statičnim prvim framom in vsem besedilom */
  .cinematic { height: 100vh; height: 100svh; }
  .overlay { align-content: center; grid-auto-rows: min-content; overflow-y: auto; }
  .reveal-line.ov { grid-area: auto; opacity: 1 !important; transform: none !important; padding: 0.8rem 1.5rem; }
}

/* ---------- Tablet & up ---------- */
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
  .soon-grid { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .contact-form { padding: 2.4rem 2.2rem; }
  .galerija-grid { gap: 0.8rem; padding: 1rem; }
  .galerija-grid button { flex-basis: calc((100% - 2.4rem) / 4); }
}

@media (min-width: 1100px) {
  .galerija-grid button { flex-basis: calc((100% - 3.2rem) / 5); }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 699px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--krem);
    border-bottom: 1px solid rgba(242, 160, 189, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open { max-height: 400px; }

  .nav-links li { width: 100%; text-align: center; }

  .nav-links a {
    display: block;
    padding: 0.9rem;
    font-size: 1rem;
  }

  .nav-cta { border-radius: 0; margin-top: 0.3rem; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
