/* =========================================================
   Maka marketing agencija: stilovi
   ========================================================= */

:root {
  --olive: #4c401a;
  --olive-2: #433a17;
  --ink: #2b230a;
  --text: #5c5036;
  --muted: #8c7d5c;
  --orange: #d26a11;
  --orange-dark: #b4560a;   /* za tekst i dugmad na svetloj podlozi (dovoljan kontrast) */
  --orange-light: #f0913f;  /* za naglaske na maslinastoj podlozi */
  --peach: #eccbaa;
  --cream: #eedac8;
  --paper: #f7efe6;
  --card: #fffaf4;
  --line: rgba(76, 64, 26, .16);

  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
  --num: 'Dancing Script', 'Caveat', cursive; /* brojevi u sekciji Pojedinačne usluge */

  --shadow: 0 24px 50px -28px rgba(43, 35, 10, .45);
  --container: 1180px;
}

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

html { --header-h: 88px; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: var(--header-h); /* mesto za fiksni meni */
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; position: relative; z-index: 1; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Kolone ne smeju da se rašire zbog slike koja još nije učitana */
.hero-grid > *, .process-grid > *, .works-grid > *, .contact-grid > *, .offer > * { min-width: 0; }
.hero-media img, .works-gallery img { background: var(--cream); }

.ic {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--olive); color: var(--paper); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(210, 106, 17, .5); outline-offset: 3px; }

/* ---------- Tipografija ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px; width: fit-content;
  font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--olive); margin-bottom: 16px;
}
.eyebrow--light { color: var(--peach); }

.h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); letter-spacing: -.01em; }

/* Rukopisni naglasak */
.hand {
  font-family: var(--hand); font-weight: 600; font-size: 1.3em; line-height: 1;
  letter-spacing: 0; color: var(--accent, var(--orange));
}

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-inline: auto; }
.section-head p { margin: 0; }

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; border: 0;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: transform .25s, background-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange-dark); color: #fff; box-shadow: 0 14px 26px -14px rgba(180, 86, 10, .8); }
.btn-primary:hover { background: #9e4a07; }
.btn-dark { background: var(--olive); color: var(--paper); }
.btn-dark:hover { background: var(--ink); }
.btn-sm { padding: 12px 22px; font-size: 12px; }

.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  padding-bottom: 4px; border-bottom: 1.5px solid var(--orange);
}
.btn-link .ic, .svc-link .ic { width: 16px; height: 16px; transition: transform .25s; }
.btn-link:hover .ic, .svc-link:hover .ic { transform: translateX(4px); }

/* ---------- Pojavljivanje pri skrolu ---------- */
.js .reveal {
  opacity: 0; translate: 0 26px;
  transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; translate: none; }

/* =========================================================
   Header
   ========================================================= */
/* Meni je fiksiran i prati skrolovanje; pri skrolu se blago smanji */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247, 239, 230, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: box-shadow .3s, background-color .3s;
}
.header.is-scrolled { background: rgba(247, 239, 230, .97); box-shadow: 0 12px 30px -22px rgba(43, 35, 10, .5); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h); transition: height .3s ease;
}
.header.is-scrolled .header-inner { height: calc(var(--header-h) - 16px); }
.header .logo { transform-origin: left center; transition: scale .3s ease; }
.header.is-scrolled .logo { scale: .88; }

.logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; color: var(--ink); line-height: 1; }
.logo svg { width: 112px; height: 34px; }
.logo span { font-size: 9.5px; font-weight: 500; letter-spacing: .36em; text-transform: uppercase; padding-left: 3px; }
.header .logo span { font-size: 7px; letter-spacing: .26em; padding-left: 2px; } /* u meniju sitnije, širine kao logo */
.logo--light { color: var(--paper); --ray: var(--orange-light); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative; padding: 8px 14px;
  font-size: 14px; font-weight: 500; color: var(--ink); transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1.5px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav a:hover, .nav a.is-active { color: var(--orange-dark); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--cream); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s, background-color .3s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   Početna
   ========================================================= */
.hero { padding: 36px 0 110px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }

.hero h1 { font-size: clamp(2.1rem, 4.1vw, 3.4rem); line-height: 1.17; letter-spacing: -.015em; }
.hero h1 .hand { display: block; margin-top: .12em; font-size: 1.34em; }

/* Hemijska ispisuje "koje ljudi pamte." (klasu .is-writing dodaje js/main.js) */
.write { --pen-in: .55s; --pen-write: 2.4s; position: relative; display: inline-block; white-space: nowrap; }
.write-ink { display: block; }
.pen-track { position: absolute; inset: 0; pointer-events: none; }
.pen {
  position: absolute; left: 0; top: .8em; width: 0; height: 0; opacity: 0;
  filter: drop-shadow(.05em .08em .05em rgba(43, 35, 10, .28));
}
.pen-svg {
  position: absolute; left: -.12em; bottom: -.013em; width: .24em; height: 2.1em; max-width: none;
  transform-origin: 50% 99.4%; rotate: 32deg;
}
.js .write-ink { clip-path: inset(-.6em 100% -.6em -.6em); }
.write.is-writing .write-ink {
  animation: ink-reveal var(--pen-write) cubic-bezier(.35, .1, .65, .9) var(--pen-in) both;
}
.write.is-writing .pen-track {
  animation: pen-move var(--pen-write) cubic-bezier(.35, .1, .65, .9) var(--pen-in) both;
}
.write.is-writing .pen {
  animation:
    pen-in var(--pen-in) cubic-bezier(.2, .7, .3, 1) both,
    pen-out .7s cubic-bezier(.5, 0, .75, .4) calc(var(--pen-in) + var(--pen-write) + .25s) forwards;
}
.write.is-writing .pen-svg { animation: pen-scribble .6s ease-in-out var(--pen-in) 4; }

@keyframes ink-reveal {
  from { clip-path: inset(-.6em 100% -.6em -.6em); }
  to   { clip-path: inset(-.6em 0 -.6em -.6em); }
}
@keyframes pen-move { from { translate: 0 0; } to { translate: 100% 0; } }
@keyframes pen-in   { from { opacity: 0; translate: .9em -1em; } to { opacity: 1; translate: 0 0; } }
@keyframes pen-out  { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: .7em -1.1em; } }
/* sitni potezi gore-dole dok piše */
@keyframes pen-scribble {
  0%   { translate: 0 0; }
  12%  { translate: .03em -.3em; }
  25%  { translate: -.02em -.04em; }
  40%  { translate: .04em -.42em; }
  55%  { translate: 0 .02em; }
  68%  { translate: .03em -.26em; }
  82%  { translate: -.03em -.08em; }
  100% { translate: 0 0; }
}
.hero .lead { font-size: 1.08rem; max-width: 470px; margin: 26px 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px; }

.hero-media { position: relative; justify-self: end; width: min(100%, 520px); }
.hero-media::before {
  content: ""; position: absolute; z-index: -1; inset: 14% -7% -7% 22%;
  background: var(--peach); border-radius: 10px;
}
.hero-media img {
  width: 100%; aspect-ratio: 1397 / 1126; object-fit: cover;
  border-radius: 999px 999px 10px 10px;
}

.badge {
  position: absolute; left: -54px; bottom: 54px; margin: 0;
  width: 152px; aspect-ratio: 1; border-radius: 50%; padding: 26px 22px 20px;
  display: grid; place-items: center; text-align: center;
  background: var(--olive); color: var(--paper);
  font-family: var(--hand); font-size: 1.55rem; font-weight: 600; line-height: 1.02;
  box-shadow: var(--shadow);
  rotate: -8deg;
}
.badge-rays { position: absolute; top: -16px; right: -6px; width: 46px; height: 38px; fill: var(--orange); }

/* =========================================================
   Priča
   ========================================================= */
.story { padding: 40px 0 110px; }
.story-text { max-width: 760px; margin-inline: auto; text-align: center; }
.story-text .eyebrow { margin-inline: auto; }
.story-big { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.65; color: var(--ink); margin: 0; }
.hand-quote { display: block; font-size: clamp(2.4rem, 4.4vw, 3.4rem); margin: .45em 0 .4em; }

/* =========================================================
   Zakaži kafu
   ========================================================= */
.coffee { position: relative; overflow: hidden; padding: 120px 0 110px; background: var(--peach); --accent: var(--orange-dark); }

/* tragovi šolje u pozadini */
.coffee-ring { position: absolute; z-index: 0; color: var(--orange-dark); opacity: .14; pointer-events: none; }
.coffee-ring--a { top: 50px; left: -70px; width: 270px; height: 270px; rotate: -20deg; }
.coffee-ring--b { bottom: 90px; right: -80px; width: 230px; height: 230px; rotate: 140deg; }

/* Levo pozivnica koja delom prelazi preko fotografije desno */
.coffee-row { --overlap: 90px; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; }
.coffee-row > * { min-width: 0; }
.coffee-ticket-wrap {
  position: relative; z-index: 2; justify-self: end;
  width: min(calc(100% + var(--overlap)), 600px); margin-right: calc(var(--overlap) * -1);
  filter: drop-shadow(0 26px 28px rgba(43, 35, 10, .2));
}
.coffee-ticket {
  --notch: 18px;
  position: relative; padding: 54px 64px 60px;
  background: var(--card); border-radius: 22px; rotate: -1.5deg;
  /* polukružni "zarezi" sa strane, kao na kuponu */
  -webkit-mask:
    radial-gradient(circle at 0 50%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle at 0 50%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
}
.coffee-ticket::before {
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  border: 1.5px dashed rgba(76, 64, 26, .28); border-radius: 14px;
}
.coffee-cup {
  width: 62px; height: 62px; margin: 0 0 4px -4px; overflow: visible;
  fill: none; stroke: var(--olive); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.coffee-cup .steam { stroke: var(--orange); animation: steam 2.6s ease-in-out infinite; }
.coffee-cup .steam:nth-child(2) { animation-delay: .45s; }
.coffee-cup .steam:nth-child(3) { animation-delay: .9s; }
@keyframes steam {
  0%   { opacity: 0; transform: translateY(4px); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-6px); }
}
.hand-title {
  position: relative; width: fit-content;
  font-family: var(--hand); font-weight: 700; font-size: clamp(3.4rem, 6.4vw, 5.2rem); line-height: .95;
  color: var(--ink); margin-bottom: .3em;
}
.swoosh { position: absolute; left: 2%; bottom: -.18em; width: 72%; height: .22em; color: var(--orange); }
.coffee .hand-title { font-size: clamp(3.4rem, 6.4vw, 5.6rem); margin-bottom: .34em; }
.coffee-sub { font-size: 1.2rem; font-weight: 600; line-height: 1.5; color: var(--ink); margin: 0 0 28px; }
.js .coffee-ticket-wrap .swoosh { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s ease .55s; }
.js .coffee-ticket-wrap.in .swoosh { stroke-dashoffset: 0; }

.coffee-media { position: relative; z-index: 1; margin: 0; }
.coffee-media img {
  width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; object-position: 50% 62%;
  border-radius: 28px; box-shadow: var(--shadow); background: var(--cream);
}

/* okrugli bedž "45 min" sa tekstom koji se okreće */
.coffee-badge {
  position: absolute; top: -48px; right: -40px; width: 150px; height: 150px; border-radius: 50%;
  display: grid; place-items: center; background: var(--olive); box-shadow: var(--shadow); rotate: 8deg;
}
.coffee-badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: badge-spin 28s linear infinite; }
.coffee-badge-ring text {
  font-family: var(--sans); font-size: 9.4px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; fill: var(--peach);
}
.coffee-badge-num {
  position: relative; display: flex; flex-direction: column; align-items: center;
  font-family: var(--num); font-weight: 700; font-size: 3rem; line-height: .9; color: var(--orange-light);
}
.coffee-badge-num small { font-family: var(--hand); font-size: 1.3rem; font-weight: 600; line-height: 1; color: var(--paper); }
@keyframes badge-spin { to { rotate: 360deg; } }
@media (max-width: 1260px) { .coffee-badge { right: -12px; } }

/* Tri koraka razgovora, povezana isprekidanom linijom */
.coffee-steps {
  --gap: 48px;
  position: relative; z-index: 1; list-style: none; margin: 100px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); text-align: center;
}
.coffee-steps::before {
  content: ""; position: absolute; top: 31px;
  left: calc((100% - 2 * var(--gap)) / 6); right: calc((100% - 2 * var(--gap)) / 6);
  border-top: 2px dashed rgba(76, 64, 26, .32);
}
.coffee-steps li { position: relative; }
.coffee-step-ic {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px;
  border-radius: 50%; background: var(--olive); color: var(--peach); box-shadow: 0 0 0 10px var(--peach);
}
.coffee-step-ic .ic { width: 28px; height: 28px; stroke-width: 1.6; }
.coffee-steps p { max-width: 330px; margin: 0 auto; font-size: 1.04rem; line-height: 1.7; color: var(--ink); }
.coffee-steps strong { font-weight: 600; }
.coffee-steps .hand { font-size: 1.55em; }

/* =========================================================
   Kako radimo
   ========================================================= */
.process {
  position: relative; overflow: hidden; padding: 110px 0;
  background: var(--olive); color: #e6dac4; --accent: var(--orange-light);
}
.process h2, .process h3 { color: #fff7ec; }
.process-rays { position: absolute; right: -40px; top: -30px; width: 280px; height: 240px; fill: rgba(240, 145, 63, .1); }
.process-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px 90px; align-items: start; }
.process-lead { font-size: 1.25rem; font-weight: 600; color: #fff7ec; margin-top: 8px; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid rgba(255, 247, 236, .16); }
.steps li:last-child { border-bottom: 1px solid rgba(255, 247, 236, .16); }
.step-num { font-family: var(--hand); font-size: 3.4rem; font-weight: 700; line-height: .85; color: var(--orange-light); }
.steps h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .4em; }
.steps p { margin: 0; font-size: .97rem; }

.process-cta {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  margin-top: 30px; padding: 34px 44px; border-radius: 14px; background: rgba(255, 247, 236, .07);
}
.process-cta .hand { margin: 0; font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: #fff7ec; }

/* =========================================================
   Usluge
   ========================================================= */
.services { padding: 120px 0; }

/* Cik-cak: kartica i polaroid fotografija menjaju strane, isprekidana strelica vodi do sledeće usluge */
.zz { list-style: none; margin: 0; padding: 0; }
.zz-item {
  position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center;
  padding-bottom: 130px;
}
.zz-item:nth-child(even) { grid-template-columns: .8fr 1.2fr; }
.zz-item:nth-child(even) .zz-card { order: 2; }
.zz-item::after {
  content: ""; position: absolute; left: 50%; bottom: 18px; width: 230px; height: 100px; translate: -50% 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 100' fill='none' stroke='%23d26a11' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12C70 0 154 8 182 78' stroke-dasharray='8 10'/%3E%3Cpath d='M165 70l18 13 4-21'/%3E%3C/svg%3E") no-repeat center / contain;
}
.zz-item:nth-child(even)::after { scale: -1 1; }

.zz-card {
  position: relative; padding: 54px 52px 44px; border-radius: 24px;
  background: var(--card); box-shadow: var(--shadow); rotate: -.6deg;
}
.zz-item:nth-child(even) .zz-card { background: var(--cream); rotate: .6deg; }
.zz-num {
  position: absolute; top: -.55em; left: 28px;
  font-family: var(--num); font-size: 5.4rem; font-weight: 700; line-height: 1; color: var(--orange);
}
.zz-item:nth-child(even) .zz-num { left: auto; right: 34px; color: var(--orange-dark); }
.zz-card h3 { font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.zz-card p { font-size: .98rem; margin-bottom: 18px; }

.zz-media {
  position: relative; justify-self: center; width: min(100%, 300px); margin: 0;
  padding: 12px 12px 58px; background: #fff; border-radius: 4px;
  box-shadow: 0 26px 50px -26px rgba(43, 35, 10, .55);
  rotate: 3.5deg; transition: rotate .4s ease, transform .4s ease;
}
.js .zz-media.reveal {
  transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1), rotate .4s ease, transform .4s ease;
  transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s;
}
.zz-item:nth-child(odd) .zz-media { margin-top: 70px; }
.zz-item:nth-child(even) .zz-media { rotate: -3.5deg; margin-bottom: 50px; }
.zz-media--wide { width: min(100%, 420px); }
.zz-media:hover { rotate: 0deg; transform: translateY(-6px); }
.zz-media::before {
  content: ""; position: absolute; z-index: 1; top: -14px; left: 50%; width: 96px; height: 30px;
  translate: -50% 0; rotate: -5deg; background: rgba(236, 203, 170, .82);
  box-shadow: 0 2px 6px rgba(43, 35, 10, .12);
}
.zz-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.zz-media--wide img { aspect-ratio: 4 / 3; }
.zz-media figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 13px;
  text-align: center; font-size: 1.65rem; color: var(--olive);
}

.svc-num { font-family: var(--num); font-weight: 700; line-height: 1; color: var(--orange); }
.svc-link {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-dark);
}

.svc-feature {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center;
  margin-top: 30px; padding: 56px 52px 48px; border-radius: 16px; background: var(--cream); --accent: var(--orange-dark);
}
/* broj iskače preko gornje ivice, kao kod ostalih usluga */
.svc-feature .svc-num { position: absolute; top: -.55em; left: 28px; font-size: 5.4rem; color: var(--orange-dark); }
.svc-feature h3 { font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.svc-feature p:last-child { margin-bottom: 0; }

/* Konsultacije sa fotografijom: tekst i dugme levo, polaroid desno (iskače preko gornje ivice) */
.svc-feature--media { grid-template-columns: 1fr 300px; grid-template-areas: "text media" "btn media"; gap: 22px 64px; align-items: start; }
.svc-feature--media .svc-text { grid-area: text; }
.svc-feature--media > .btn { grid-area: btn; justify-self: start; }
.svc-feature--media .svc-media { grid-area: media; align-self: center; width: 100%; margin: -100px 0 -30px; }
.svc-media img { aspect-ratio: auto; } /* šema se prikazuje cela, bez isecanja */
@media (max-width: 960px) {
  .svc-feature--media { grid-template-columns: 1fr; grid-template-areas: "text" "btn" "media"; }
  .svc-feature--media .svc-media { width: min(68%, 290px); justify-self: end; margin: 16px 4% 0 0; }
}

/* =========================================================
   Zašto Maka
   ========================================================= */
.why {
  position: relative; overflow: hidden; padding: 120px 0 140px; color: #e6dac4; --accent: var(--orange-light);
  background: radial-gradient(ellipse 70% 60% at 15% 0%, #5c4d22, rgba(92, 77, 34, 0) 70%), var(--olive);
}
.why h2 { color: #fff7ec; }
.why .section-head { margin-bottom: 70px; }
.why-rays { position: absolute; z-index: 0; fill: rgba(240, 145, 63, .09); animation: spin-slow 70s linear infinite; }
.why-rays--a { top: -70px; right: -50px; width: 340px; height: 290px; }
.why-rays--b { bottom: -90px; left: -70px; width: 280px; height: 240px; animation-direction: reverse; }
@keyframes spin-slow { to { rotate: 360deg; } }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; align-items: start; }
.why-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.why-item:nth-child(2) { margin-top: 90px; }
.why-item:nth-child(3) { margin-top: 36px; }
.js .why-item.reveal {
  transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1), transform .5s ease;
  transition-delay: var(--d, 0s), var(--d, 0s), 0s;
}
.why-item:hover { transform: translateY(-8px); }

/* Fotografija u obliku luka, sa pomerenim narandžastim obrisom */
.why-media { position: relative; width: 100%; aspect-ratio: 4 / 5; margin: 0 0 58px; border-radius: 999px 999px 18px 18px; }
.why-media::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1.5px solid rgba(240, 145, 63, .6); translate: 14px 14px; transition: translate .6s ease;
}
.why-item:hover .why-media::before { translate: 0 0; }
.why-photo { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #3a3112; }
.why-photo img {
  position: absolute; left: 0; top: -30px; width: 100%; height: calc(100% + 60px); object-fit: cover;
  translate: 0 var(--py, 0px);
}
.why-ic {
  position: absolute; z-index: 2; left: 50%; bottom: -36px; translate: -50% 0;
  display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
  background: var(--orange); color: #fff; box-shadow: 0 0 0 8px var(--olive);
}
.why-ic .ic { width: 34px; height: 34px; stroke-width: 1.5; }

.why-key { font-size: 11.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--peach); margin-bottom: 14px; }
.why-line { font-size: 1.25rem; font-weight: 600; color: #fff7ec; line-height: 1.35; margin: 0 0 12px; }
/* padding da kosa rukopisna slova ne budu odsečena animacijom "ispisivanja" */
.why-hand { margin: -.15em -.4em -.25em; padding: .15em .4em .25em; font-size: 2.15rem; line-height: 1.1; }

/* Animacija kad kartica uđe u ekran (klasa .in dolazi iz js/main.js) */
.js .why-item .why-photo { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1) calc(var(--d, 0s) + .1s); }
.js .why-item .why-photo img { scale: 1.25; transition: scale 1.9s cubic-bezier(.2, .7, .2, 1) calc(var(--d, 0s) + .1s); }
.js .why-item .why-ic { scale: 0; transition: scale .6s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, 0s) + .8s); }
.js .why-item .why-ic svg { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s ease calc(var(--d, 0s) + 1s); }
.js .why-item .why-hand { clip-path: inset(0 100% 0 0); }
@keyframes hand-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.js .why-item.in .why-photo { clip-path: inset(0 0 0 0); }
.js .why-item.in .why-photo img { scale: 1; }
.js .why-item.in .why-ic { scale: 1; }
.js .why-item.in .why-ic svg { stroke-dashoffset: 0; }
.js .why-item.in .why-hand { animation: hand-write 1.3s ease-in-out calc(var(--d, 0s) + 1.1s) both; }
.js .why-item.in:hover .why-photo img { scale: 1.07; transition-duration: .7s; transition-delay: 0s; }

/* =========================================================
   Naši radovi
   ========================================================= */
.works { padding: 120px 0; }
.works-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.works-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.works-gallery figure { overflow: hidden; border-radius: 8px; aspect-ratio: 1; }
.works-gallery figure:nth-child(3n + 2) { translate: 0 26px; }
.works-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.works-gallery figure:hover img { transform: scale(1.05); }

.offer {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 30px 60px; align-items: center;
  margin-top: 100px; padding: 56px 64px; border-radius: 18px;
  background: var(--olive); color: #e6dac4; --accent: var(--orange-light);
}
.offer-rays { position: absolute; right: 30px; top: -40px; width: 220px; height: 180px; fill: rgba(240, 145, 63, .12); }
.offer-text { position: relative; max-width: 720px; }
.offer .hand { font-size: clamp(2.2rem, 3.6vw, 3rem); margin: 0 0 .25em; }
.offer h3 { font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #fff7ec; margin-bottom: 18px; }
.offer p:last-child { margin-bottom: 0; }
.offer .btn { position: relative; }

/* =========================================================
   Recenzije
   ========================================================= */
.reviews { padding: 110px 0; background: var(--cream); --accent: var(--orange-dark); }
.slider { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.slide { display: none; }
.slide.is-active { display: block; }
.slide blockquote { margin: 0 0 22px; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.6; color: var(--ink); }
.slide figcaption { font-size: 14px; color: var(--muted); }
.slide figcaption b { display: block; color: var(--ink); font-size: 15px; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(76, 64, 26, .25); cursor: pointer; }
.dots button.is-active { background: var(--orange-dark); }

/* =========================================================
   Kontakt
   ========================================================= */
.contact { padding: 120px 0; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.contact-copy > p { max-width: 420px; }

.contact-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; color: var(--ink); font-weight: 500; }
.contact-list small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.contact-list a:hover { color: var(--orange-dark); }
.contact-ic { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 50%; background: var(--cream); color: var(--olive); }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  background: var(--card); border-radius: 20px; padding: 42px; box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink); outline: 0; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(210, 106, 17, .15); }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c401a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
.field.is-invalid input { border-color: #c0392b; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.form-status { margin: 0; font-size: 14px; }
.form-status.ok { color: #3c6b2a; }
.form-status.err { color: #b0301f; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--olive-2); color: #d9ccb2; padding-top: 80px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer-brand .logo svg { width: 132px; height: 40px; }
.footer-brand .hand { margin: 22px 0 0; font-size: 2rem; color: var(--peach); }
.footer-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #fff7ec; margin-bottom: 8px; }
.footer-col a:hover { color: var(--orange-light); }

.footer-strip { border-top: 1px solid rgba(255, 247, 236, .12); border-bottom: 1px solid rgba(255, 247, 236, .12); }
.footer-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding: 26px 0; }
.strip-icons { display: flex; align-items: center; gap: 26px; color: #e6dac4; }
.strip-icons .ic { width: 30px; height: 30px; stroke-width: 1.4; }
.strip-icons i, .footer-strip p i { display: inline-block; width: 1px; height: 30px; background: rgba(255, 247, 236, .28); }
.footer-strip p { display: flex; align-items: center; gap: 22px; margin: 0; font-size: 15px; letter-spacing: .04em; color: #efe4d0; }
.footer-strip p i { height: 18px; }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 24px 0 30px; font-size: 13.5px; color: #b3a585; }
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--orange-light); }

/* =========================================================
   Prilagođavanje ekranima
   ========================================================= */
@media (max-width: 1080px) {
  .nav a { padding: 8px 10px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 16px; right: 16px; top: calc(100% + 6px);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px;
    background: var(--card); border-radius: 16px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px; }
  .nav a::after { display: none; }

  .hero-grid, .process-grid, .works-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-media { justify-self: center; }
  .badge { left: -18px; }


  .coffee-row { --overlap: 60px; grid-template-columns: 1fr 1fr; }
  .coffee-ticket { padding: 38px 38px 42px; }
  .coffee .hand-title { font-size: 3.6rem; }
  .coffee-sub { font-size: 1.08rem; }
  .coffee-badge { top: -36px; right: -8px; width: 124px; height: 124px; }
  .coffee-badge-num { font-size: 2.5rem; }
  .coffee-badge-num small { font-size: 1.1rem; }
  .coffee-steps { --gap: 28px; margin-top: 80px; }
  .coffee-ring--b { bottom: -90px; right: -90px; }
  .zz-item, .zz-item:nth-child(even) { grid-template-columns: 1fr; gap: 0; padding-bottom: 110px; }
  .zz-item:nth-child(even) .zz-card { order: 0; }
  .zz-item .zz-media, .zz-item:nth-child(odd) .zz-media, .zz-item:nth-child(even) .zz-media {
    width: min(68%, 290px); margin: 26px 6% 0 0; justify-self: end;
  }
  .zz-item:nth-child(even) .zz-media { margin: 26px 0 0 6%; justify-self: start; }
  .zz-item .zz-media--wide { width: min(80%, 380px); }
  .zz-item::after { width: 150px; height: 66px; bottom: 22px; }
  .svc-feature { grid-template-columns: 1fr; }
  .svc-feature .btn { justify-self: start; }
  .why-grid { gap: 20px; }
  .why-item:nth-child(2) { margin-top: 56px; }
  .why-item:nth-child(3) { margin-top: 22px; }
  .why-line { font-size: 1.05rem; }
  .why-hand { font-size: 1.7rem; }
  .why-rays--a { width: 240px; height: 200px; }
  .offer { grid-template-columns: 1fr; padding: 46px 40px; }
  .offer .btn { justify-self: start; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  html { --header-h: 74px; }
  .header-cta .btn { display: none; }
  .logo svg { width: 96px; height: 29px; }
  .header .logo span { font-size: 6px; letter-spacing: .24em; }

  .hero { padding: 24px 0 80px; }
  .hero .lead { margin: 20px 0 28px; }
  .badge { left: -6px; bottom: -26px; width: 124px; padding: 20px 16px 16px; font-size: 1.3rem; }
  .hero-media::before { inset: 12% -3% -4% 18%; }

  .story { padding: 20px 0 80px; }
  .coffee, .process, .why { padding: 80px 0; }
  .services, .works, .contact { padding: 80px 0; }
  /* i na telefonu: pozivnica levo, slika desno; koraci jedan ispod drugog */
  .coffee-ring--a { width: 180px; height: 180px; top: 20px; left: -60px; }
  .coffee-ring--b { width: 160px; height: 160px; bottom: -70px; right: -70px; }
  .coffee-row { --overlap: 26px; grid-template-columns: 1.1fr .9fr; }
  .coffee-ticket { --notch: 10px; padding: 24px 16px 24px 20px; border-radius: 16px; rotate: -2deg; }
  .coffee-ticket::before { inset: 7px; border-radius: 11px; }
  .coffee-cup { width: 34px; height: 34px; margin: 0 0 2px -2px; }
  .coffee .hand-title { font-size: 2.5rem; }
  .coffee-sub { font-size: .86rem; line-height: 1.45; margin-bottom: 16px; }
  .coffee-ticket .btn { padding: 11px 18px; font-size: 11px; gap: 6px; }
  .coffee-media img { aspect-ratio: 3 / 4.3; border-radius: 18px; }
  .coffee-badge { top: -30px; right: -6px; width: 84px; height: 84px; }
  .coffee-badge-num { font-size: 1.55rem; }
  .coffee-badge-num small { font-size: .78rem; }
  .coffee-steps { --gap: 26px; grid-template-columns: 1fr; margin-top: 60px; text-align: left; }
  .coffee-steps::before { top: 26px; bottom: 30px; left: 25px; right: auto; border-top: 0; border-left: 2px dashed rgba(76, 64, 26, .32); }
  .coffee-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
  .coffee-step-ic { width: 52px; height: 52px; margin: 0; box-shadow: 0 0 0 8px var(--peach); }
  .coffee-step-ic .ic { width: 23px; height: 23px; }
  .coffee-steps p { max-width: none; margin: 0; padding-top: 3px; font-size: .98rem; }
  .process-cta { padding: 28px 24px; }
  .zz-card { padding: 48px 24px 32px; }
  .zz-num { font-size: 4.6rem; left: 20px; }
  .zz-item:nth-child(even) .zz-num { right: 22px; }
  .zz-media figcaption { font-size: 1.4rem; }
  .svc-feature { padding: 48px 24px 32px; }
  .svc-feature .svc-num { font-size: 4.2rem; left: 20px; }

  /* Zašto Maka: i na telefonu sve tri kartice u jednom redu, samo umanjene */
  .why .section-head { margin-bottom: 44px; }
  .why-grid { gap: 10px; }
  .why-item:nth-child(2) { margin-top: 34px; }
  .why-item:nth-child(3) { margin-top: 14px; }
  .why-media { margin-bottom: 30px; border-radius: 999px 999px 10px 10px; }
  .why-media::before { translate: 6px 6px; }
  .why-ic { width: 42px; height: 42px; bottom: -21px; box-shadow: 0 0 0 4px var(--olive); }
  .why-ic .ic { width: 20px; height: 20px; }
  .why-key { font-size: 8px; letter-spacing: .14em; margin-bottom: 6px; }
  .why-line { font-size: 11.5px; line-height: 1.3; margin-bottom: 6px; }
  .why-hand { font-size: 1.15rem; }
  .works-gallery { gap: 10px; }
  .works-gallery figure:nth-child(3n + 2) { translate: 0 16px; }
  .offer { padding: 40px 26px; margin-top: 70px; }
  .form { grid-template-columns: 1fr; padding: 28px 22px; }
  .form-foot .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .strip-icons { gap: 16px; }
  .footer-strip p { gap: 14px; font-size: 14px; }
}

/* Smanjeni pokreti (podešavanje operativnog sistema) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; translate: none; }
  .why-rays { animation: none; }
  .js .why-item .why-photo, .js .why-item .why-hand { clip-path: none; }
  .js .write-ink, .write.is-writing .write-ink { clip-path: none; animation: none; }
  .pen-track { display: none; }
  .js .why-item .why-photo img, .js .why-item .why-ic { scale: 1; }
  .js .why-item .why-ic svg { stroke-dashoffset: 0; }
  .coffee-badge-ring, .coffee-cup .steam { animation: none; }
  .js .coffee-ticket-wrap .swoosh { stroke-dashoffset: 0; }
}
