/* =====================================================================
   MYENGLISHLOUNGE — TEMA v4 (brend iz logotipa i novih slika)
   Učitava se POSLIJE style.css i theme-v2.css.
   Boje: tamnoplava (tekst, tamne površine) + žuta (dugmad, potez ispod
   naslova). Ilustracije imaju svijetlu pozadinu, pa stoje samo na
   svijetlim površinama (mix-blend-mode: multiply).
   Poređenje: index.html?v=2 i index.html?v=3
   ===================================================================== */

:root {
  --navy: #0E2141;
  --navy-2: #1B3563;
  --mustard: #F5A90A;
  --mustard-soft: #FFE8A8;
  --paper: #FFFCF5;
  --sky: #EDF2FA;

  --bg: var(--paper);
  --surface: #FFFFFF;
  --surface-2: #F6F1E6;
  --ink: var(--navy);
  --ink-2: #4A5874;
  --line: #ECE4D3;
  --line-2: #DCD2BD;
  --accent: var(--navy);
  --accent-ink: #FFFFFF;
  --accent-soft: #E6ECF6;
  --pop: var(--mustard);
  --pop-soft: var(--mustard-soft);
  --ok: #17803D;
  --ok-soft: #E4F4E8;
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Segoe UI", system-ui, sans-serif;
  --font-hand: "Segoe Print", "Bradley Hand", "Chalkboard SE", "Marker Felt", "Comic Neue", cursive;
}

/* ---------- Tipografija ---------- */
body { font-family: var(--font); font-size: 17px; color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); }
h1, h2 { font-weight: 800; letter-spacing: -.025em; }
h3 { font-weight: 700; letter-spacing: -.01em; }
.eyebrow { letter-spacing: 0; font-size: 16px; text-transform: none; color: var(--ink-2); font-weight: 600; }
.eyebrow::before { display: none; }
::selection { background: var(--mustard-soft); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 6px; }

/* ---------- Zaglavlje ---------- */
.topbar { background: color-mix(in srgb, var(--paper) 88%, transparent); border-bottom-color: var(--line); }
.logo { gap: 10px; }
.v4-mark { width: 40px; height: auto; mix-blend-mode: multiply; display: block; }
.v4-word { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--navy); }
.v4-word b { color: #C98A00; font-weight: 800; }
.nav a { color: var(--ink-2); }
.nav a:hover, .nav a.active { color: var(--navy); }
.nav a.active::after { background: var(--mustard); height: 3px; }
.nav a.nav-cta { background: var(--mustard); color: var(--navy); font-weight: 700; }
.nav a.nav-cta:hover { background: var(--navy); color: #fff; }
.lang-switch { border-color: var(--line-2); }
.lang-btn.on { background: var(--navy); color: #fff; }

/* ---------- Dugmad i sitni elementi (važe na cijelom sajtu) ---------- */
.btn { font-weight: 700; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-pop { background: var(--mustard); color: var(--navy); }
.btn-pop:hover { background: #E59C00; }
.btn-ghost { box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--navy); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tag-level, .level-badge { color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.bar { background: var(--line); }
.bar > i { background: var(--mustard); }
.tip { background: #FFF4D6; border-left-color: var(--mustard); }
.lesson-cta { background: var(--navy); color: #fff; }
.lesson-cta .btn-primary { background: var(--mustard); color: var(--navy); }
.step-num { background: var(--navy); }
.topic-opt.on { border-color: var(--navy); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--navy); }
.sent.on { background: var(--mustard-soft); }
.gw { text-decoration-color: var(--mustard); }
.btn-consent { background: var(--navy); color: #fff; }

/* =====================================================================
   POČETNA
   ===================================================================== */
.v4-btn-main { background: var(--mustard); color: var(--navy); padding: 14px 26px; font-size: 16px; }
.v4-btn-main:hover { background: var(--navy); color: #fff; }
.v4-btn-line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); padding: 14px 24px; font-size: 16px; }
.v4-btn-line:hover { background: var(--navy); color: #fff; }

/* Hero: tekst lijevo, fotografija „lounge” desno, žuta ceduljica preko nje */
.v4-hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; padding: 28px 0 24px; }
.v4-intro h1 { margin: 0 0 26px; font-size: clamp(44px, 6vw, 80px); line-height: 1.02; letter-spacing: -.035em; }
.v4-h1 { display: block; max-width: 9.5em; }
.v4-swoosh { display: block; width: min(62%, 330px); height: 18px; margin-top: 10px; color: var(--mustard); }
.v4-lead { font-size: 19.5px; line-height: 1.6; color: var(--ink-2); max-width: 32em; margin: 0 0 32px; }
.v4-trust { margin: 26px 0 0; font-size: 15px; color: var(--ink-2); }

.v4-visual { position: relative; padding-left: 56px; }
.v4-hero-img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; border-radius: 28px; box-shadow: 0 40px 70px -40px rgba(14, 33, 65, .55); }
.v4-note {
  position: absolute; left: 0; bottom: 44px; width: 262px;
  background: var(--mustard-soft); color: var(--navy);
  padding: 20px 20px 16px; border-radius: 3px;
  transform: rotate(-3deg);
  box-shadow: 0 2px 0 rgba(14, 33, 65, .04), 0 18px 30px -14px rgba(14, 33, 65, .45);
}
.v4-note::before { /* traka koja drži ceduljicu */
  content: ""; position: absolute; top: -12px; left: 50%; width: 84px; height: 24px; margin-left: -42px;
  background: rgba(255, 255, 255, .6); transform: rotate(2deg); border-radius: 2px;
}
.v4-note h2 { color: var(--navy); font-family: var(--font-hand); font-size: 24px; font-weight: 700; letter-spacing: 0; margin: 0 0 8px; }
.v4-note ul { list-style: none; margin: 0; padding: 0; }
.v4-note a { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 7px 4px; margin: 0 -4px; border-radius: 4px; color: var(--navy); text-decoration: none; font-family: var(--font-hand); font-size: 17px; }
.v4-note a:hover { background: rgba(14, 33, 65, .07); }
.v4-note a:hover .n-t { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 2px; }
.v4-note svg { color: var(--navy); }
.n-m { font-family: var(--font); font-size: 13.5px; font-weight: 700; color: #6B5310; }

@media (prefers-reduced-motion: no-preference) {
  .v4-note { animation: stick .7s cubic-bezier(.2, .8, .25, 1.15) .25s both; }
  .v4-swoosh path { stroke-dasharray: 330; animation: draw .8s ease-out .15s both; }
}
@keyframes stick { from { opacity: 0; transform: translateY(18px) rotate(-8deg); } }
@keyframes draw { from { stroke-dashoffset: 330; } }

/* Sekcije */
.v4-sec { margin-top: 112px; }
.v4-h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin: 0 0 12px; }

/* Četiri aktivnosti: ilustracija, naslov, rečenica — bez okvira */
.v4-act-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 36px; }
.v4-act { color: inherit; text-decoration: none; display: block; }
.v4-act-img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--surface); border-radius: 24px; padding: 18px; margin-bottom: 18px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.v4-act-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.v4-act h3 { font-size: 22px; margin: 0 0 6px; }
.v4-act p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.v4-act:hover .v4-act-img { box-shadow: inset 0 0 0 2px var(--navy); }
.v4-act:hover h3 { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Napredak */
.v4-progress { background: var(--sky); border-radius: 32px; padding: 44px 48px 48px; }
.v4-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.v4-progress-head p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.v4-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.v4-stat { display: flex; align-items: center; gap: 18px; background: #FEFCF2; border-radius: 22px; padding: 16px 20px 16px 12px; isolation: isolate; }
.v4-stat img { width: 108px; height: auto; mix-blend-mode: multiply; flex: none; }
.v4-num { font-family: var(--font-display); font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--navy); }
.v4-num small { font-size: 18px; font-weight: 700; color: var(--ink-2); letter-spacing: 0; }
.v4-lbl { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* Nivoi */
.v4-levels-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.v4-levels-head p { margin: 0; color: var(--ink-2); max-width: 36em; }
.v4-link { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 3px; text-underline-offset: 6px; white-space: nowrap; }
.v4-level-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.v4-level-list a { display: grid; grid-template-columns: 84px 1fr 230px; gap: 24px; align-items: center; padding: 20px 24px 20px 20px; background: #fff; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; }
.v4-level-list a:hover { box-shadow: inset 0 0 0 2px var(--navy); }
.v4-lv { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.v4-level-list li:nth-child(1) .v4-lv { background: var(--mustard); color: var(--navy); }
.v4-lv-text b { display: block; font-family: var(--font-display); font-size: 20px; color: var(--navy); margin-bottom: 2px; }
.v4-lv-text span { color: var(--ink-2); font-size: 15.5px; }
.v4-lv-prog { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.v4-lv-prog .bar { height: 6px; }
.v4-lv-prog .test-badge { margin: 0; }

/* Tamna traka: liste riječi (fotografija + tekst) */
.v4-band { margin-top: 112px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; background: var(--navy); color: #fff; border-radius: 32px; padding: 20px 56px 20px 20px; }
.v4-band-img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: 22px; }
.v4-band-text h2 { color: #fff; font-size: clamp(30px, 3.4vw, 42px); margin: 0 0 14px; }
.v4-band-text p { color: rgba(255, 255, 255, .8); font-size: 17.5px; line-height: 1.6; margin: 0 0 28px; max-width: 30em; }
.v4-band .v4-btn-main:hover { background: #fff; color: var(--navy); }

/* Podnožje */
.footer { background: transparent; border-top-color: var(--line); color: var(--ink-2); margin-top: 32px; }

/* ---------- Tamni režim ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0B1830;
    --bg: #0B1830;
    --surface: #12213D;
    --surface-2: #172846;
    --ink: #F3EFE4;
    --ink-2: #B3BCCF;
    --line: #22355A;
    --line-2: #2F4670;
    --accent: #F5A90A;
    --accent-ink: #0E2141;
    --accent-soft: #1B2D50;
    --sky: #12213D;
  }
  h1, h2, h3, .v4-word, .v4-lv-text b, .v4-num, .v4-link, .nav a:hover, .nav a.active { color: var(--ink); }
  .v4-word b { color: var(--mustard); }
  .v4-mark { mix-blend-mode: normal; background: #FFFCF5; border-radius: 10px; padding: 3px; }
  .v4-btn-line { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
  .v4-btn-line:hover { background: var(--ink); color: var(--navy); }
  /* ilustracije ostaju na svijetlim pločicama */
  .v4-act-img, .v4-level-list a { background: #FFFCF5; }
  .v4-stat { background: #FEFCF2; }
  .v4-stat .v4-num, .v4-level-list .v4-lv-text b { color: var(--navy); }
  .v4-stat .v4-lbl, .v4-stat small, .v4-level-list .v4-lv-text span, .v4-level-list .v4-lv-prog { color: #4A5874; }
  .v4-level-list a:hover, .v4-act:hover .v4-act-img { box-shadow: inset 0 0 0 2px var(--mustard); }
  .v4-band { background: #12213D; }
  .btn-primary { background: var(--mustard); color: var(--navy); }
  .lang-btn.on { background: var(--mustard); color: var(--navy); }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .v4-act-grid { grid-template-columns: repeat(2, 1fr); }
  .v4-stats { grid-template-columns: 1fr; }
  .v4-band { grid-template-columns: 1fr; padding: 16px 16px 32px; gap: 28px; }
  .v4-band-img { min-height: 0; aspect-ratio: 16 / 9; }
  .v4-band-text { padding: 0 16px; }
}
/* ---------- Telefon ---------- */
@media (max-width: 820px) {
  .v4-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 8px; }
  .v4-intro h1 { font-size: clamp(40px, 11.5vw, 56px); }
  .v4-lead { font-size: 17.5px; }
  .v4-visual { padding-left: 0; }
  .v4-hero-img { aspect-ratio: 4 / 5; max-height: 520px; }
  .v4-note { left: 12px; bottom: 14px; width: 206px; padding: 14px 14px 10px; }
  .v4-note h2 { font-size: 20px; margin-bottom: 4px; }
  .v4-note a { font-size: 15px; padding: 5px 4px; grid-template-columns: 20px 1fr auto; }
  .v4-sec, .v4-band { margin-top: 76px; }
  .v4-progress { padding: 28px 18px 20px; border-radius: 24px; }
  .v4-levels-head { flex-direction: column; align-items: flex-start; }
  .v4-level-list a { grid-template-columns: 52px 1fr; gap: 6px 16px; padding: 16px; }
  .v4-lv { width: 48px; height: 48px; font-size: 17px; grid-row: 1 / 3; align-self: start; }
  .v4-lv-prog { grid-column: 2; }
  .v4-word { font-size: 17px; }
  .v4-mark { width: 34px; }
}
@media (max-width: 520px) {
  .v4-act-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .v4-act-img { border-radius: 18px; padding: 10px; margin-bottom: 12px; }
  .v4-act h3 { font-size: 18px; }
  .v4-act p { font-size: 14.5px; }
  .v4-stat img { width: 84px; }
  .v4-num { font-size: 36px; }
}
