/* ==========================================================================
   Studio Svjetla — stilovi
   1. Varijable (boje, fontovi, razmaci): mijenjaj samo ovdje
   2. Osnova
   3. Sekcije, istim redom kao u index.html
   4. Mobitel
   ========================================================================== */

/* ===== 1. Varijable i teme =====
   Izgled stranice bira se s dva atributa na <html> u index.html:
     data-bg="kamen | krem | noc | sljiva"          podloga i boje
     data-font="cormorant | bodoni | instrument"    font naslova i oznaka
   Nova tema = novi blok [data-bg="ime"] ili [data-font="ime"] ispod, s istim varijablama.
   Fontovi tema osim Cormoranta učitavaju se iz js/main.js (FONTOVI). */

:root {
  /* Zajedničko svim temama */
  --on-photo: #f4f1ec;                 /* tekst preko fotografije */
  --body: "Manrope", system-ui, sans-serif;
  --g: clamp(16px, 3vw, 48px);         /* bočni razmak */
  --section: clamp(96px, 12vw, 200px); /* razmak sekcija */
  --slide-time: 2s;                  /* trajanje prijelaza fotografija */
}

/* --- Podloge --- */
:root,
[data-bg="kamen"] {
  /* Kamen (odabrano): topla siva, smeđi akcent */
  --bg: #d9d1c5;          /* podloga */
  --surface: #cfc6b9;     /* svjetlije/tamnije polje (kartice) */
  --text: #25201b;        /* tekst */
  --muted: #4b4239;       /* sporedni tekst (tamnije radi čitljivosti) */
  --line: rgba(37, 32, 27, 0.2);
  --accent: #6e4f36;      /* jedini akcent */
}
[data-bg="krem"] {
  /* Krem: topla bjelokost, bronca */
  --bg: #f4efe6;
  --surface: #ebe4d8;
  --text: #2a221c;
  --muted: #75695d;
  --line: rgba(42, 34, 28, 0.16);
  --accent: #8a6a43;
}
[data-bg="noc"] {
  /* Noć: gotovo crna, mesing */
  --bg: #0f0e0d;
  --surface: #191816;
  --text: #ece7df;
  --muted: #8f897f;
  --line: rgba(236, 231, 223, 0.16);
  --accent: #c9a66b;
}
[data-bg="sljiva"] {
  /* Šljiva: tamna ljubičasto-smeđa, zlato */
  --bg: #2a1820;
  --surface: #35212b;
  --text: #f1e8e2;
  --muted: #b39ea6;
  --line: rgba(241, 232, 226, 0.16);
  --accent: #d2b07a;
}

/* --- Fontovi --- */
:root,
[data-font="cormorant"] {
  /* Cormorant Garamond (odabrano): klasičan, mekan */
  --display: "Cormorant Garamond", Georgia, serif;   /* naslovi */
  --display-weight: 300;
  --display-tracking: -0.02em;
  --display-leading: 0.95;
  --label: "Cormorant Garamond", Georgia, serif;     /* oznake, izbornik, linkovi: verzal s razmakom */
  --label-weight: 600;
}
[data-font="bodoni"] {
  /* Bodoni Moda: modni, oštar kontrast */
  --display: "Bodoni Moda", Georgia, serif;
  --display-weight: 400;
  --display-tracking: -0.025em;
  --display-leading: 1;
  --label: "Bodoni Moda", Georgia, serif;
  --label-weight: 500;
}
[data-font="instrument"] {
  /* Instrument Serif: moderni urednički */
  --display: "Instrument Serif", Georgia, serif;
  --display-weight: 400;
  --display-tracking: -0.02em;
  --display-leading: 0.95;
  --label: "Manrope", system-ui, sans-serif;
  --label-weight: 500;
}

/* ===== 2. Osnova ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
}
h1 em, h2 em, .start__text em, .path__big em {
  font-style: italic;
  color: var(--accent);
}

/* Sitni verzal s razmakom: oznake, izbornik, linkovi */
.label, .top__nav, .link, .step__tag, .path__label, .footer__social, .logo__word {
  font-family: var(--label);
  font-weight: var(--label-weight);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.label { font-size: 14px; color: var(--accent); }
.label--light { color: var(--on-photo); opacity: 0.85; margin-bottom: 22px; }

/* Suptilni link umjesto gumba: tanka crta ispod */
.link {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  color: var(--accent);
}
.link:hover { opacity: 0.7; }
.link--light { color: var(--on-photo); opacity: 0.85; }
.link--light:hover { opacity: 1; }

/* ===== 3. Sekcije ===== */

/* --- Zaglavlje (preko fotografije) --- */
.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--g);
  color: var(--on-photo);
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo__mark {
  width: 33px;
  height: 44px;
  fill: currentColor;
  overflow: visible;
}
/* Znak: realistični mramorni luk sa S i trakom svjetla, izrezan u oblik luka */
.logo__mark--luk { display: block; width: 20px; height: auto; }
.logo__word {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.3em;
}
.logo__word small { font-size: 10px; letter-spacing: 0.32em; opacity: 0.7; }
.top__nav { display: flex; gap: 36px; font-size: 14px; }
.top__nav a { opacity: 0.85; }
.top__nav a:hover { opacity: 1; }

/* --- Hero (slideshow) --- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #111;
  color: var(--on-photo);
}
.slides, .slide, .hero__shade { position: absolute; inset: 0; }
.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--slide-time) ease;
}
.slide.is-active { opacity: 1; }
.hero__shade {
  /* zatamnjenje radi čitljivosti teksta, ne ukras */
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0) 75%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0) 22%),
    rgba(0, 0, 0, 0.1);
}
.hero__content {
  position: absolute;
  inset: auto 0 0;
  padding: 0 var(--g) clamp(28px, 4vw, 56px);
}
.hero__title {
  max-width: 20ch;
  font-size: clamp(46px, 7.4vw, 136px);
}
.hero__title em { color: inherit; }
.hero__title span { display: block; text-wrap: balance; }
.hero__lead {
  max-width: 34rem;
  margin-top: clamp(16px, 2vw, 28px);
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.55;
  opacity: 0.9;
}
.hero__bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  margin-top: clamp(28px, 4vw, 56px);
}
/* Tanke crtice za fotografije, bez brojača */
.dots { display: flex; gap: 6px; }
.dot {
  position: relative;
  width: 22px;
  height: 16px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.dot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--on-photo);
  opacity: 0.3;
}
.dot.is-active::after { opacity: 0.9; }

/* --- Proces --- */
.process { padding: var(--section) var(--g) 0; }
.process__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px var(--g);
  margin-bottom: clamp(56px, 8vw, 120px);
}
.process__head h2 { font-size: clamp(44px, 7vw, 120px); }
.process__head .intro {
  grid-column: 2;
  max-width: 30em;
  font-size: 19px;
  color: var(--muted);
}

.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 16px var(--g);
  align-items: baseline;
  padding: clamp(28px, 3.5vw, 52px) 0;
  border-bottom: 1px solid var(--line);
}
.step__num {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.8;
  letter-spacing: var(--display-tracking);
  color: var(--accent);
}
.step h3 {
  font-family: var(--display);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.step__body > p { margin-top: 10px; max-width: 34em; color: var(--muted); }
.step__tag {
  justify-self: end;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}
.step__tag--accent { color: var(--accent); }
.step--wide .step__body { grid-column: 2 / 4; }

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.path {
  padding: clamp(24px, 2.5vw, 40px);
  background: var(--surface);
}
.path__label { font-size: 13px; color: var(--muted); }
.path__big {
  margin: 20px 0 16px;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(40px, 4.5vw, 72px);
  line-height: 0.9;
  letter-spacing: var(--display-tracking);
}
.path p:last-child { color: var(--muted); }

/* Hover: kartica se podigne, a veliki tekst („do 10 h“ / „Bez ograničenja“) glatko naraste */
.path {
  transition:
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.5s ease,
    background-color 0.5s ease;
}
.path__big {
  transform-origin: left bottom;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.25);
}
.path__big em { transition: color 0.4s ease; }
.path:hover,
.path:focus-within {
  transform: translateY(-8px);
  background-color: color-mix(in srgb, var(--surface) 55%, var(--bg));
  box-shadow: 0 24px 48px -28px rgba(37, 32, 27, 0.45);
}
.path:hover .path__big,
.path:focus-within .path__big { transform: scale(1.1); }


/* --- Što je uključeno --- */
.included { padding: var(--section) var(--g) 0; }
.included__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px var(--g);
  margin-bottom: clamp(48px, 7vw, 100px);
}
.included__head h2 { font-size: clamp(40px, 5.6vw, 96px); max-width: 14ch; }
.included__head .intro {
  grid-column: 2;
  max-width: 30em;
  font-size: 19px;
  color: var(--muted);
}
/* Vi / Mi: dva kratka bloka jedan nasuprot drugome */
.vimi {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.vimi__col { padding: clamp(32px, 4vw, 60px) clamp(24px, 3.5vw, 56px) clamp(32px, 4vw, 60px) 0; }
.vimi__col--we {
  padding-left: clamp(24px, 3.5vw, 56px);
  padding-right: 0;
  border-left: 1px solid var(--line);
}
.vimi .label { margin-bottom: 20px; }
.vimi__text {
  font-family: var(--display);
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.vimi__text em { font-style: italic; color: var(--accent); }
.vimi__col--we .vimi__text { color: var(--muted); }
.vimi__col--we .vimi__text em { color: var(--accent); }

/* --- Česta pitanja --- */
.faq { padding: var(--section) var(--g) 0; }
.faq__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px var(--g);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.faq__head h2 { font-size: clamp(40px, 5.6vw, 96px); }
.faq__list {
  margin-left: calc((100% - var(--g) * 2) / 3 + var(--g));
  border-top: 1px solid var(--line);
}
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: clamp(18px, 2vw, 26px) 0;
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  font-family: var(--body);
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
}
.faq__item[open] summary::after { content: "−"; }
.faq__item summary:hover { color: var(--accent); }
.faq__item p {
  max-width: 36em;
  padding-bottom: clamp(20px, 2.4vw, 32px);
  color: var(--muted);
}

/* Jamstvo iznad kontakta */
.promise {
  padding-top: var(--section);
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1.1;
  letter-spacing: var(--display-tracking);
}
.promise em { font-style: italic; color: var(--accent); }

/* --- Kontakt --- */
.contact-section { padding: 0 var(--g); }
.start {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 56px);
  padding: clamp(64px, 9vw, 140px) 0;
}
.start__text {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(40px, 6vw, 104px);
  line-height: var(--display-leading);
  letter-spacing: var(--display-tracking);
}

/* Kontakt: sve jedno ispod drugoga, u velikom formatu */
.contact { display: grid; gap: clamp(20px, 2.4vw, 32px); justify-items: start; }
.contact__intro { color: var(--muted); font-size: clamp(20px, 2.2vw, 30px); line-height: 1.45; hyphens: manual; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px 32px; }
/* E-mail adresa malim slovima, velikim slovom fonta naslova */
.contact__links a[href^="mailto:"] { text-transform: none; letter-spacing: 0.01em; font-size: clamp(28px, 3.6vw, 52px); padding-bottom: 6px; }
.contact__note { font-size: clamp(16px, 1.5vw, 20px); color: var(--muted); }

/* --- Footer --- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px var(--g);
  border-top: 1px solid var(--line);
}
.logo--footer { color: var(--accent); }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 13px; }
.footer__social a:hover { color: var(--accent); }

/* --- Birač izgleda (samo uz ?dizajn u adresi) --- */
.picker {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: grid;
  gap: 4px;
  padding: 6px;
  background: #fff;
  color: #111;
  font: 500 11px/1 system-ui, sans-serif;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.picker__row { display: flex; align-items: center; gap: 2px; }
.picker span { width: 52px; padding-left: 4px; color: #888; }
.picker button {
  padding: 6px 8px;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.picker button.is-active { background: #111; color: #fff; }
.picker[hidden] { display: none; }
.picker__code { margin: 2px 4px; color: #888; }
.picker__code code { color: #111; font: 11px ui-monospace, monospace; }

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .path, .path__big { transition: none; }
}

/* ===== 4. Mobitel ===== */
@media (max-width: 760px) {
  .top { padding-top: 18px; }
  .top__nav { gap: 20px; font-size: 12px; }
  .logo__word { font-size: 13px; letter-spacing: 0.24em; }
  .logo__word small { display: none; }

  .process__head { grid-template-columns: 1fr; }
  .process__head .intro { grid-column: auto; }

  .step { grid-template-columns: auto 1fr; }
  .step__num { grid-row: span 2; font-size: 44px; }
  .step__tag { grid-column: 2; justify-self: start; text-align: left; }
  .step--wide .step__num { grid-row: auto; }
  .step--wide .step__body { grid-column: 1 / -1; }
  .paths { grid-template-columns: 1fr; }

  .included__head { grid-template-columns: 1fr; }
  .included__head .intro { grid-column: auto; }
  .vimi { grid-template-columns: 1fr; }
  .vimi__col { padding-right: 0; }
  .vimi__col--we { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }

  .faq__head { grid-template-columns: 1fr; }
  .faq__list { margin-left: 0; }

  .start { flex-direction: column; align-items: flex-start; }

  .footer { flex-direction: column; align-items: flex-start; }
  .picker { top: auto; bottom: 8px; }
}
