/* integracad.com – brand: "Integra" siva + "CAD" narančasta, sistemski font (bez Google Fontsa) */
:root {
  --red: #f5a300;
  --red-dark: #d98f00;
  --ink: #1b1f27;
  --text: #2c313a;
  --muted: #5f6672;
  --line: #e3e6eb;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --dark: #23272e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 30, 50, .08);
  --container: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: #b36f00; }
a:hover { color: #8a5500; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- gumbi ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; border: 2px solid var(--red);
  background: var(--red); color: var(--ink); font-weight: 650; text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--red-dark); border-color: var(--red-dark); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--red); border-color: var(--red); color: var(--ink); }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--light:hover, .btn--light:focus-visible { background: #fff; color: var(--ink); border-color: #fff; }
.btn--block { display: flex; width: 100%; margin-top: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.topbar { background: var(--dark); color: #c9ced6; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #ffc94d; }
.topbar__right { display: flex; gap: 20px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { width: 190px; height: auto; }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__list > li > a { display: block; padding: 10px 14px; color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 8px; }
.nav__list > li > a:hover, .nav__list a[aria-current="page"], .nav__group.is-active > a { color: var(--red); }
.nav__group { position: relative; }
.nav__sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%;
  min-width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.nav__group:hover .nav__sub, .nav__group:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95rem; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--bg-soft); color: var(--red); }

.nav-toggle { display: none; background: none; border: 0; padding: 12px; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: .2s; content: "";
}
.nav-toggle__bar::before { position: absolute; top: -7px; }
.nav-toggle__bar::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .topbar__inner > span:first-child { display: none; }
  .topbar__inner { justify-content: center; }
  .nav-toggle { display: block; }
  .brand img { width: 160px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; padding: 8px 12px 16px; gap: 0; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; min-width: 0; }
}

/* ---------- naslovna: hero ---------- */
.hero {
  position: relative; color: #fff; padding: clamp(80px, 14vw, 160px) 0 clamp(70px, 10vw, 120px);
  background: linear-gradient(100deg, rgba(15,20,30,.82) 0%, rgba(15,20,30,.55) 55%, rgba(15,20,30,.25) 100%), var(--hero) center/cover no-repeat;
}
.hero h1 { color: #fff; max-width: 760px; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 640px; color: #e8ebef; margin-bottom: 32px; }
.hero__kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: #ffc94d; margin-bottom: 14px; }

/* ---------- sekcije ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: #d4d8de; }
.section--dark h2 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: #b36f00; margin-bottom: 10px; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--red); vertical-align: middle; margin-right: 10px; }

/* kartice usluga */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,30,50,.13); color: var(--text); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--thermal { background: linear-gradient(135deg, #2b1055 0%, #7b1fa2 30%, #e53935 60%, #ffb300 85%, #fff176 100%); display: grid; place-items: center; }
.card__media--thermal span { color: #fff; font-weight: 800; letter-spacing: .1em; font-size: 1.1rem; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .5em; }
.card__body p { color: var(--muted); font-size: .97rem; flex: 1; }
.card__more { color: var(--red); font-weight: 650; }

/* o nama + brojke */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); text-align: center; }
.stat__num { display: block; font-size: 2.4rem; font-weight: 800; color: var(--red); line-height: 1.1; }
.stat__label { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 650; }

/* reference */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery figcaption { padding: 10px 14px 12px; font-size: .9rem; color: var(--muted); }

/* suradnici */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 48px; }
.logos img { max-height: 54px; width: auto; filter: grayscale(1); opacity: .75; transition: .2s; }
.logos img:hover { filter: none; opacity: 1; }

/* CTA traka */
.cta { background: linear-gradient(120deg, var(--red) 0%, #8f0400 100%); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.cta h2 { color: #fff; }
.cta__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.cta p { margin: 0; color: #ffe1df; }
.cta .actions { align-self: center; justify-content: center; }
.cta .btn { background: #fff; color: var(--red); border-color: #fff; }
.cta .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta .btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }

/* ---------- podstranice ---------- */
.page-hero {
  color: #fff; padding: clamp(56px, 9vw, 110px) 0 clamp(44px, 6vw, 70px);
  background: linear-gradient(100deg, rgba(15,20,30,.85), rgba(15,20,30,.5)), var(--hero) center/cover no-repeat;
}
.page-hero h1 { color: #fff; max-width: 820px; margin: 0; }
.page-hero__kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: #ffc94d; margin-bottom: 10px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); padding-top: 56px; padding-bottom: 80px; }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } }
.prose { padding-top: 56px; padding-bottom: 80px; }
.content-grid .prose { padding: 0; }
.prose--narrow { max-width: 820px; }
.prose h2 { margin-top: 1.6em; font-size: 1.55rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose figure { margin: 28px 0; }
.prose figure img { border-radius: 12px; }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.prose .lead { font-size: 1.2rem; color: var(--ink); }
.note { background: var(--bg-soft); border-left: 4px solid var(--red); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 24px 0; }
.classes { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.classes li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; margin: 0; }
.classes b { display: grid; place-items: center; height: 34px; border-radius: 8px; color: #fff; font-size: .95rem; }
.cls-ap { background: #00843d; } .cls-a { background: #2aa13b; } .cls-b { background: #8cc63f; }
.cls-c { background: #d5d81f; color: #333 !important; } .cls-d { background: #ffcc00; color: #333 !important; }
.cls-ef { background: #f39200; } .cls-g { background: #e30613; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.two-col > div { background: var(--bg-soft); border-radius: 12px; padding: 20px 22px; }
.two-col h3 { margin-top: 0; }

.aside { display: flex; flex-direction: column; gap: 20px; }
.aside__box { background: var(--bg-soft); border-radius: var(--radius); padding: 22px; }
.aside__box--cta { background: var(--dark); color: #d4d8de; }
.aside__box--cta .aside__title { color: #fff; }
.aside__box--cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.aside__title { font-size: 1.1rem; margin-bottom: 12px; }
.aside__list { list-style: none; margin: 0; padding: 0; }
.aside__list a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.aside__list li:last-child a { border-bottom: 0; }
.aside__list a:hover, .aside__list a[aria-current] { color: var(--red); font-weight: 600; }

/* kontakt */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 28px 0 36px; }
.contact-card { background: var(--bg-soft); border-radius: 12px; padding: 20px; }
.contact-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 6px; }
.contact-card p { margin: 0; font-weight: 600; color: var(--ink); }
.company-data { width: 100%; border-collapse: collapse; font-size: .97rem; }
.company-data th, .company-data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.company-data th { width: 38%; color: var(--muted); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #aeb5bf; font-size: .95rem; }
.site-footer a { color: #e6e9ed; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }
.footer__logo { width: 170px; margin-bottom: 16px; }
.footer__title { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer__list { list-style: none; margin: 0; padding: 0; font-style: normal; line-height: 1.9; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; padding-bottom: 28px; font-size: .82rem; color: #8d95a1; }
.footer__legal p { margin-bottom: .6em; }
.footer__legal strong { color: #cfd4da; }
.footer__bottom { color: #8d95a1; }

/* ---------- IntegraCAD dodaci ---------- */
.wordmark { font-weight: 800; font-size: 1.7rem; letter-spacing: -.02em; color: #4a4a4a; line-height: 1; text-decoration: none; }
.wordmark span { color: var(--red); }
.brand { text-decoration: none; }
.site-footer .wordmark { color: #fff; font-size: 1.9rem; margin-bottom: 14px; }
.btn--sm { padding: 8px 18px; font-size: .95rem; }
.nav__list > li > a.btn { color: var(--ink); margin-left: 8px; }
.nav__list > li > a.btn:hover { color: var(--ink); }
.topbar { display: none; }
.hero--icad { background: linear-gradient(100deg, rgba(20,24,30,.86) 0%, rgba(20,24,30,.62) 60%, rgba(20,24,30,.35) 100%), var(--hero) center/cover no-repeat; }
.hero__title { font-size: clamp(3rem, 9vw, 5.5rem); font-weight: 800; letter-spacing: -.03em; color: #fff; margin: 0 0 .15em; line-height: 1; }
.hero__title span { color: var(--red); }
.hero__sub { font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: #fff; font-weight: 600; margin-bottom: .6em; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.feature h3 { margin-bottom: .4em; }
.feature p { margin: 0; color: var(--muted); }
.cards--modules { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cards--modules .card__media { aspect-ratio: 16 / 9; }
.cards--modules .card__media img { object-position: left top; }
.cards--modules .card__body { padding: 16px 18px 20px; }
.cards--modules .card__body h3 { font-size: 1.05rem; }
.cards--modules .card__body p { font-size: .92rem; margin: 0; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 900px; }
.price-card { background: #fff; border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price-card--featured { border: 2px solid var(--red); }
.price-card h3 { font-size: 1.25rem; margin-bottom: .2em; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--ink); line-height: 1.1; margin: .2em 0 .4em; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-card p { color: var(--muted); flex: 1; }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.dl-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.dl-card p { color: var(--muted); flex: 1; }
.dl-meta { font-size: .9rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.fact { text-align: center; padding: 20px 10px; }
.fact__num { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--red); line-height: 1.1; }
.fact__label { color: #c9ced6; font-size: .95rem; }
.shot { margin: 32px 0 0; }
.shot img { border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.shot figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.cta .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta { background: linear-gradient(120deg, #f5a300 0%, #d97a00 100%); color: var(--ink); }
.cta h2 { color: var(--ink); }
.cta p { color: #3b2a00; }
.cta .btn--light { background: transparent; color: var(--ink); border-color: rgba(0,0,0,.35); }
.cta .btn--light:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; } }
