/* InStore Must Have – landing + baner */
.imh, .imh-banner {
  --mh-red: #BE1E24;
  --mh-red-d: #9A151B;
  --mh-red-txt: #B5121B;
  --mh-yellow: #FFD83B;
  --mh-ink: #231F20;
  --mh-text: #3b3738;
  --mh-muted: #6b6b6b;
  --mh-line: #E8E4E2;
  --mh-bg: #F6F4F2;
  --mh-disp: 'Montserrat', 'Rubik', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Display font (nadjačava globalni Rubik iz InStore redizajna) */
body .imh.imh.imh.imh :is(h1, h2, h3, h1 span, h2 span, .imh-btn, .imh-btn span, .imh-list dt, .imh-quote blockquote p),
body .imh-banner.imh-banner.imh-banner.imh-banner :is(.imh-banner-btn, .imh-banner-btn span) {
  font-family: var(--mh-disp) !important;
}

.imh { color: var(--mh-text); font-size: 17px; line-height: 1.65; background: #fff; overflow-x: clip; }
.imh *, .imh *::before, .imh *::after { box-sizing: border-box; }
.imh img { max-width: 100%; height: auto; display: block; }
.imh-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.imh h1, .imh h2, .imh h3 { color: var(--mh-ink); margin: 0; letter-spacing: -0.01em; }
.imh h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; font-weight: 800; margin-bottom: 24px; text-wrap: balance; }
.imh p { margin: 0 0 16px; }

/* ---------- Dugme ---------- */
.imh-btn {
  --b-bg: #fff; --b-fg: var(--mh-red-txt);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 0 36px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--b-bg); color: var(--b-fg) !important; text-decoration: none !important;
  font-weight: 800; font-size: 18px;
  box-shadow: 0 8px 20px -10px rgba(60, 0, 4, .5);
  transition: background-color .2s, color .2s;
}
.imh-btn:hover { --b-bg: #FFF3C4; }
.imh-btn:focus-visible { outline: 3px solid var(--mh-yellow); outline-offset: 3px; }
.imh-btn-red { --b-bg: var(--mh-red); --b-fg: #fff; width: 100%; box-shadow: none; }
.imh-btn-red:hover { --b-bg: var(--mh-red-d); }
.imh-btn[disabled] { opacity: .7; cursor: progress; }

.imh-deadline { font-weight: 500; margin: 0 !important; }
.imh-deadline strong { color: var(--mh-yellow); font-weight: 700; }

/* ---------- Hero ---------- */
.imh-hero {
  color: #fff; overflow: hidden;
  background: var(--mh-red);
}
.imh-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.imh-hero h1 { color: #fff; font-weight: 800; font-size: clamp(48px, 7vw, 92px); line-height: .98; letter-spacing: -0.025em; margin-bottom: 22px; }
.imh-hero h1 span { color: var(--mh-yellow); }
.imh-hero-sub { font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.3; color: #fff; max-width: 560px; margin-bottom: 10px !important; }
.imh-hero-lead { color: rgba(255,255,255,.88); max-width: 500px; margin-bottom: 32px !important; }
.imh-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.imh-hero-cta .imh-deadline { color: #fff; }
.imh-hero-visual { display: flex; justify-content: center; }
.imh-hero-visual img { width: min(100%, 340px); filter: drop-shadow(0 30px 40px rgba(60, 0, 4, .35)); animation: imh-float 6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes imh-float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .imh-hero-visual img { animation: none; } }

/* ---------- O projektu ---------- */
.imh-about { padding: 88px 0; }
.imh-about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.imh-covers { position: relative; height: 420px; }
.imh-covers figure { position: absolute; margin: 0; width: 44%; top: 50%; left: 50%; overflow: hidden; box-shadow: 0 18px 32px -18px rgba(35, 31, 32, .5); }
.imh-covers figure:nth-child(1) { transform: translate(-105%, -48%) rotate(-6deg); }
.imh-covers figure:nth-child(2) { transform: translate(-50%, -52%); z-index: 2; }
.imh-covers figure:nth-child(3) { transform: translate(5%, -48%) rotate(6deg); }

/* ---------- Benefiti ---------- */
.imh-benefits { background: var(--mh-bg); padding: 88px 0; }
.imh-list { margin: 8px 0 0; border-top: 2px solid var(--mh-ink); }
.imh-list > div { display: grid; grid-template-columns: 340px 1fr; gap: 32px; padding: 24px 0; border-bottom: 1px solid #DDD7D3; }
.imh-list dt { font-weight: 800; color: var(--mh-ink); font-size: 20px; line-height: 1.3; }
.imh-list dd { margin: 0; max-width: 620px; }
.imh-new { display: inline-block; vertical-align: 3px; margin-left: 8px; padding: 3px 8px; border-radius: 4px; background: var(--mh-yellow); color: var(--mh-ink); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Citat ---------- */
.imh-quote { padding: 80px 0; }
.imh-quote blockquote { margin: 0 auto; max-width: 860px; padding: 0; border: 0; text-align: center; }
.imh-quote blockquote p { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; font-weight: 600; color: var(--mh-ink); margin-bottom: 18px !important; text-wrap: balance; }
.imh-quote footer { font-size: 15px; color: var(--mh-muted); }
.imh-quote footer strong { color: var(--mh-ink); }

/* ---------- Forma ---------- */
.imh-form-sec { scroll-margin-top: 90px; color: #fff; padding: 88px 0; background: var(--mh-red); }
.imh-form-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.imh-zig { width: 110px; margin-bottom: 24px; }
.imh-form-intro h2 { color: #fff; }
.imh-form-intro h2 span { color: var(--mh-yellow); }
.imh-form-intro > p { color: rgba(255,255,255,.9); }
.imh-form-intro .imh-deadline { margin: 20px 0 28px !important; color: #fff; }
.imh-direct { font-size: 15px; color: rgba(255,255,255,.85) !important; }
.imh-direct a { color: #fff !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.imh-form-card { background: #fff; color: var(--mh-text); border-radius: 12px; padding: 34px; }
.imh-form { display: grid; gap: 16px; }
.imh-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.imh-f { display: grid; gap: 6px; margin: 0; }
.imh-f > span { font-size: 14px; font-weight: 600; color: var(--mh-ink); }
.imh-f input, .imh-f textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--mh-ink); background: #fff;
  border: 1.5px solid #D9D4D1; border-radius: 8px; padding: 12px 14px; margin: 0; box-shadow: none; outline: 0;
  transition: border-color .2s;
}
.imh-f input { height: 50px; }
.imh-f textarea { resize: vertical; min-height: 110px; }
.imh-f input:focus, .imh-f textarea:focus { border-color: var(--mh-ink); }
.imh-f.is-invalid input, .imh-f.is-invalid textarea { border-color: var(--mh-red); background: #FFF6F6; }
.imh-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--mh-muted); cursor: pointer; margin: 4px 0 6px; }
.imh-check input { width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; accent-color: var(--mh-red); }
.imh-check.is-invalid span { color: var(--mh-red); }
.imh-msg { margin: 0 !important; font-size: 14.5px; padding: 12px 14px; border-radius: 8px; background: #FFF1F1; color: var(--mh-red-d); }
.imh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.imh-done { text-align: center; padding: 40px 10px; }
.imh-done h3 { font-size: 26px; font-weight: 800; color: var(--mh-red); margin-bottom: 10px; }
.imh-done p { color: var(--mh-muted); margin: 0; }
.imh-again { margin-top: 18px; background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 14px; font-weight: 600; color: var(--mh-ink); text-decoration: underline; cursor: pointer; }
.imh-again:hover { color: var(--mh-red); }
.imh-again[hidden] { display: none; }

.imh-foot { text-align: center; font-size: 14px; color: var(--mh-muted); padding: 26px 24px; margin: 0 !important; }
.imh-foot a { color: var(--mh-ink); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .imh-hero-grid { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 52px; gap: 12px; text-align: center; }
  .imh-hero-visual { order: -1; }
  .imh-hero-visual img { width: 170px; }
  .imh-hero-sub, .imh-hero-lead { margin-left: auto !important; margin-right: auto !important; }
  .imh-hero-cta { justify-content: center; }
  .imh-about-grid, .imh-form-grid { grid-template-columns: 1fr; gap: 40px; }
  .imh-about-grid > div:first-child { max-width: 680px; margin: 0 auto; text-align: center; }
  .imh-covers { height: 340px; max-width: 460px; width: 100%; margin: 0 auto; }
  .imh-benefits h2 { text-align: center; }
  .imh-list > div { grid-template-columns: 240px 1fr; gap: 24px; }
  .imh-form-intro { text-align: center; max-width: 560px; margin: 0 auto; }
  .imh-zig { margin-left: auto; margin-right: auto; }
  .imh-form-card { width: 100%; max-width: 640px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .imh-wrap { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 600px) {
  .imh { font-size: 16px; }
  .imh-about, .imh-benefits, .imh-quote, .imh-form-sec { padding: 60px 0; }
  .imh-list > div { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; text-align: center; }
  .imh-list dd { margin: 0 auto; }
  .imh-list dt { font-size: 18px; }
  .imh-row { grid-template-columns: 1fr; }
  .imh-form-card { padding: 22px 18px; }
  .imh-hero-cta .imh-btn { width: 100%; }
  .imh-covers { height: 250px; }
  .imh-covers figure { width: 40%; }
  .imh-hero h1 { font-size: 52px; }
}

/* =========================================================
   BANER [must_have_baner] – slika + animirano dugme
   ========================================================= */
.isx .isx-wrap.imh-top-banner { margin-top: 28px; }
@media (max-width: 767px) { .isx .isx-wrap.imh-top-banner { margin-top: 16px; } }
.imh-banner { --mh-red-txt: #B5121B; container-type: inline-size; width: 100%; line-height: 0; }
.imh-banner-link { position: relative; display: block; overflow: hidden; border-radius: 8px; text-decoration: none !important; }
.imh-banner-link img { display: block; width: 100%; height: auto; }
.imh-banner-btn {
  position: absolute; left: 78.2%; top: 39.5%; width: 18.4%; height: 21%;
  display: flex; align-items: center; justify-content: center; border-radius: 999px;
  background: #fff; color: var(--mh-red-txt); font-weight: 800; font-size: 1.8cqw; line-height: 1; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  box-shadow: 0 .5cqw 1.4cqw -.4cqw rgba(60, 0, 4, .5);
  animation: imh-pulse 2.4s ease-out infinite;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), background-color .3s;
}
.imh-banner-btn span { position: relative; z-index: 1; transition: letter-spacing .3s; }
/* sjaj koji prelazi preko dugmeta */
.imh-banner-btn::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 216, 59, .55), transparent);
  transform: skewX(-20deg); animation: imh-shine 3.6s ease-in-out infinite;
}
.imh-banner-link:hover .imh-banner-btn { transform: scale(1.06); background: #FFF6D1; animation-play-state: paused; }
.imh-banner-link:hover .imh-banner-btn span { letter-spacing: .02em; }
.imh-banner-link:focus-visible { outline: 3px solid #FFD83B; outline-offset: 3px; }
@keyframes imh-pulse {
  0%   { box-shadow: 0 .5cqw 1.4cqw -.4cqw rgba(60, 0, 4, .5), 0 0 0 0 rgba(255, 255, 255, .55); }
  70%  { box-shadow: 0 .5cqw 1.4cqw -.4cqw rgba(60, 0, 4, .5), 0 0 0 1.4cqw rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 .5cqw 1.4cqw -.4cqw rgba(60, 0, 4, .5), 0 0 0 0 rgba(255, 255, 255, 0); }
}
@keyframes imh-shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
@media (max-width: 767px) {
  .imh-banner-btn { left: 51.9%; top: 73%; width: 43.75%; height: 15%; font-size: 4.2cqw; }
  @keyframes imh-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
    70%  { box-shadow: 0 0 0 3cqw rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .imh-banner-btn, .imh-banner-btn::after { animation: none; }
}

/* Manji baner u člancima */
.imh-in-article { max-width: 720px; margin: 36px auto; clear: both; }
.imh-in-article .imh-banner-link,
.imh-in-article .imh-banner-link:hover { border-radius: 6px; box-shadow: none; border: 0; background: none; }
.imh-in-article picture, .imh-in-article img { margin: 0 !important; max-width: 100% !important; }
@media (max-width: 767px) { .imh-in-article { margin: 28px auto; } }
