:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --accent: #1fb76e;
  --accent-dark: #15905a;
  --accent-soft: #e6f8ef;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Montserrat", var(--font);
}

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

/* Dark canvas so overscroll ("rubber band") at the top/bottom matches the hero and footer */
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--ink); }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75em;
}
.lead { font-size: 1.15rem; color: var(--text); }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .9em 1.6em;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 600 1rem var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(31, 183, 110, .3); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; box-shadow: none; }
.btn--small { padding: .5em 1.2em; font-size: .95rem; }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(15, 23, 42, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo img { width: 140px; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a:not(.btn) {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  font-weight: 500;
  font-size: .97rem;
  transition: color .2s;
}
.nav__menu a:not(.btn):hover, .nav__menu a:not(.btn).is-active { color: #fff; }
/* The Kontakt button is already highlighted, so only plain links get the active marker */
.nav__menu a:not(.btn).is-active { box-shadow: 0 2px 0 var(--accent); }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(100vh, 820px);
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  color: #cbd5e1;
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(31, 183, 110, .22), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(56, 189, 248, .12), transparent 60%),
    var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero__bg span {
  position: absolute;
  font-family: Georgia, serif;
  color: rgba(255, 255, 255, .06);
  user-select: none;
  animation: float 14s ease-in-out infinite;
}
.hero__bg span:nth-child(1) { top: 14%; right: 8%;  font-size: 9rem; }
.hero__bg span:nth-child(2) { top: 60%; right: 18%; font-size: 6rem; animation-delay: -3s; }
.hero__bg span:nth-child(3) { top: 22%; right: 32%; font-size: 4rem; animation-delay: -6s; }
.hero__bg span:nth-child(4) { bottom: 8%; left: 6%; font-size: 4rem; animation-delay: -2s; }
.hero__bg span:nth-child(5) { top: 74%; right: 4%;  font-size: 5rem; animation-delay: -8s; }
.hero__bg span:nth-child(6) { top: 40%; right: 2%;  font-size: 5rem; animation-delay: -5s; }
.hero__bg span:nth-child(7) { top: 12%; left: 52%; font-size: 3rem; animation-delay: -10s; }
.hero__bg span:nth-child(8) { bottom: 18%; left: 44%; font-size: 3.5rem; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

.hero__content { position: relative; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  max-width: 15em;
  margin-bottom: .4em;
}
/* Headline: "ne kužim" gets crossed out, then "aha!" is underlined by hand */
.h-muted { color: rgba(255, 255, 255, .55); white-space: nowrap; }
.h-strike { position: relative; }
.h-strike::after {
  content: "";
  position: absolute;
  left: -1%;
  right: -1%;
  top: 52%;
  height: .07em;
  border-radius: 1em;
  background: #f87171;
  transform: scaleX(0);
  transform-origin: left;
  animation: strike .45s .5s ease-out forwards;
}
.h-aha {
  position: relative;
  display: inline-block;
  font-family: "Caveat", cursive;
  font-size: 1.35em;
  line-height: 1;
  color: var(--accent);
  transform: rotate(-3deg);
  white-space: nowrap;
}
.h-aha svg { position: absolute; left: -2%; bottom: -.08em; width: 104%; height: .22em; overflow: visible; }
.h-aha path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw .7s 1.05s ease-out forwards;
}
@keyframes strike { to { transform: scaleX(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 36em; margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  list-style: none;
  padding: 28px 0 0;
  margin: 48px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .95rem;
}
.hero__facts strong { color: #fff; font-family: var(--font-head); }

/* Sections */
.section { padding: clamp(64px, 10vw, 112px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: #cbd5e1; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 48px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.cards { display: grid; gap: 16px; }
.cards .card { border-left: 4px solid var(--accent); }
.card--dark { background: var(--ink-2); border-color: rgba(255, 255, 255, .08); box-shadow: none; }
.card--highlight { background: linear-gradient(160deg, rgba(31, 183, 110, .25), var(--ink-2) 70%); border-color: rgba(31, 183, 110, .4); }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2315905a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  padding: .45em 1em;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  font-weight: 500;
}
.tags small { color: var(--accent); font-weight: 600; margin-left: 4px; }

/* Subjects */
.subjects {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.subject {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.subject:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.subject small { font-weight: 500; color: var(--muted); }
.subject__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 1.25rem;
}

/* Pricing */
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin-bottom: 32px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tabs button {
  padding: .6em 1.3em;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 .95rem var(--font);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }

/* With JS, a pill slides behind the tabs instead of each tab painting its own background */
.tabs.has-pill { position: relative; }
.tabs.has-pill button { position: relative; z-index: 1; }
.tabs.has-pill button[aria-selected="true"] { background: transparent; color: var(--muted); }
.tabs.has-pill button.is-lit { color: #fff; }
.tabs__pill {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: var(--ink);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1), width .4s cubic-bezier(.4, 0, .2, 1), height .4s;
}
.tabs.no-anim .tabs__pill, .tabs.no-anim button { transition: none; }
.tab-panel { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.price {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.price h3 { margin-bottom: .2em; }
.price__tier {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink);
}
.price__note { font-size: .9rem; color: var(--muted); margin: 0; }
.price__amount {
  margin: auto 0 .2em;
  padding-top: 20px;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--ink);
}
.price__amount span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price__pack { margin: 0; padding-top: 14px; border-top: 1px dashed var(--line); }
/* Sidrena cijena: zakonski obavezan prikaz uz trenutnu cijenu */
.price__anchor { margin: 8px 0 0; font-size: .85rem; color: var(--muted); }
.price-table tr.has-anchor th, .price-table tr.has-anchor td { border-bottom: 0; padding-bottom: 4px; }
.price-table tr.price-table__anchor td { padding-top: 0; text-align: left; white-space: normal; font-family: var(--font); font-weight: 400; font-size: .85rem; color: var(--muted); }

.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 16px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table th { font-weight: 500; color: var(--ink); }
.price-table td { text-align: right; white-space: nowrap; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
sup { color: var(--accent-dark); font-weight: 700; }

.notes {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.notes summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.notes ul { padding-left: 1.2em; margin: 1em 0; font-size: .95rem; }
.notes li { margin-bottom: .6em; }
.notes p { margin: 0; }

/* Contact */
.contact-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-cta__item {
  display: grid;
  gap: 4px;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.contact-cta__item:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 32px rgba(31, 183, 110, .15); }
.contact-cta__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
}
.contact-cta__label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-cta__value {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.6vw, 1.75rem);
  font-weight: 800;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.contact-cta__hint { margin-top: 8px; font-weight: 600; color: var(--accent-dark); }
.contact-cta__hint::after { content: " →"; transition: margin .2s; }
.contact-cta__item:hover .contact-cta__hint::after { margin-left: 4px; }
.contact-cta__note { margin-top: 8px; font-size: .9rem; color: var(--muted); }

/* Call/SMS buttons only make sense on phones; desktops just see the number and the note */
.contact-cta__actions { display: none; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.btn--outline { background: transparent; color: var(--accent-dark); }
.btn--outline:hover { color: #fff; }
@media (hover: none) and (pointer: coarse) {
  .contact-cta__actions { display: flex; }
  .contact-cta__actions .btn { flex: 1 1 140px; }
}

.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 20px 56px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list__label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--accent-dark); }

/* Footer */
.footer { background: var(--ink); color: #94a3b8; padding: 64px 0 24px; font-size: .95rem; }
.footer__inner { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 40px; }
.footer img { margin-bottom: 16px; }
.footer__legal { font-size: .8rem; color: #64748b; }
.footer h4 { color: #fff; font-size: 1rem; }
.footer a { color: #cbd5e1; text-decoration: none; }
.footer a:hover { color: #fff; }
.social { display: flex; gap: 12px; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  transition: background .2s;
}
.social a:hover { background: var(--accent); }
.footer__copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .split, .grid-3, .prices, .contact-cta { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__inner > :first-child { grid-column: 1 / -1; }

  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 24px;
    background: var(--ink);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .3);
    display: none;
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__menu a:not(.btn).is-active { box-shadow: none; color: var(--accent); }
  .nav__menu .btn { margin-top: 16px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .card, .contact-cta__item { padding: 22px; }
  .tabs { display: flex; border-radius: 16px; }
  .tabs button, .tabs__pill { flex: 1 1 auto; border-radius: 12px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .h-strike::after { transform: none; }
  .h-aha path { stroke-dashoffset: 0; }
}
