/* Smart Consulting Lab — site styles
   Palette: Smarty design tokens (light theme "Svijetla i prozračna") */

:root {
  --ground: #EAF1FB;
  --surface: #FFFFFF;
  --surface-2: #EDF2FD;
  --border: #C9D8EF;
  --border-subtle: #E4EDF9;
  --heading: #1F3BA6;
  --text: #22304F;
  --text-2: #5B6B8C;
  --text-3: #8A93A8;
  --action: #3B5BD9;
  --action-hover: #2F4BC0;
  --action-soft: #EDF2FD;
  --action-soft-border: #B9CBF2;
  --sky: #7FC4F0;
  --purple: #9C1FB8;
  --purple-bg: #F3EAFB;
  --success: #1D7A44;
  --success-bg: #E3F4EA;
  --track: #DCE7F7;
  --radius: 6px;
  --radius-lg: 8px;
  --font-display: "Sora", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
  line-height: 1.2;
  color: var(--heading);
}
h1 { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.55rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); }
h4 { font-size: 0.95rem; font-weight: 600; color: var(--text); }
p { margin: 0; }
a { color: var(--action); }
img { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--action); margin-bottom: 14px;
}
.lead { margin-top: 18px; font-size: 1.05rem; color: var(--text-2); max-width: 58ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--action); color: #FFFFFF;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  padding: 12px 22px; border-radius: var(--radius); text-decoration: none;
  white-space: nowrap; border: 1px solid var(--action); cursor: pointer;
}
.btn:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.btn.secondary { background: var(--surface); color: var(--action); border-color: var(--action-soft-border); }
.btn.secondary:hover { background: var(--action-soft); }
.btn.small { padding: 9px 16px; font-size: 0.85rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn-note { font-size: 0.82rem; color: var(--text-3); margin-top: 10px; }

/* Header */
.site-head { border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; justify-content: space-between; align-items: center; height: 64px; gap: 16px; }
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: 0.02em;
  color: var(--heading); display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 50%; display: block; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--action); font-weight: 600; }
.nav a.btn, .nav a.btn:hover { color: #FFFFFF; font-weight: 600; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; color: var(--heading); font: inherit; cursor: pointer; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-side { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.hero-side img { width: 112px; height: 112px; border-radius: 50%; box-shadow: 0 4px 14px rgba(31, 59, 166, 0.18); }
.promise { border-left: 3px solid var(--action); padding: 2px 0 2px 16px; display: grid; gap: 12px; }
.promise div { font-size: 0.9rem; color: var(--text-2); }
.promise div b { display: block; color: var(--text); font-weight: 600; }
.hero-owl { display: flex; justify-content: center; }
.hero-owl img { width: 240px; height: 240px; border-radius: 50%; box-shadow: 0 8px 28px rgba(31, 59, 166, 0.22); }

/* Sections */
section { padding: 44px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head p { color: var(--text-2); max-width: 62ch; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px;
}
.card .cat {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; gap: 8px;
}
.card .price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.card .price small { font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; color: var(--text-2); }
.card .desc { color: var(--text-2); font-size: 0.92rem; flex: 1; }
.card .more { font-size: 0.88rem; font-weight: 600; color: var(--action); text-decoration: none; }
.card.new { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-bg); }
.card .btn { align-self: flex-start; margin-top: 6px; }
.tag-new {
  display: inline-block; font-size: 0.65rem; letter-spacing: 0.08em; padding: 2px 7px;
  border-radius: 9999px; background: var(--purple-bg); color: var(--purple); font-weight: 700;
}

/* Service pillars on the home page */
.pillar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; }
.pillar h3 { color: var(--heading); }
.pillar p { color: var(--text-2); font-size: 0.95rem; }
.pillar ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.9rem; }
.pillar li { padding-left: 18px; position: relative; }
.pillar li::before, .tier li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--action-soft); border: 2px solid var(--action); box-sizing: border-box;
}
.pillar .from { font-family: var(--font-display); font-weight: 700; color: var(--heading); margin-top: 6px; }

/* Pricing detail */
.detail { border-top: 1px solid var(--border); }
.detail .wrap { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px; }
.detail .intro p { color: var(--text-2); margin-top: 10px; font-size: 0.95rem; }
.detail .intro .who { margin-top: 18px; font-size: 0.85rem; color: var(--text-3); border-top: 1px solid var(--border); padding-top: 12px; }
.detail .intro .btn { margin-top: 18px; }
.tiers { display: grid; gap: 14px; }
.tiers.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiers.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.tier.featured { border-color: var(--action); box-shadow: inset 3px 0 0 var(--action); }
.tier .name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tier .name .pick {
  font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--action);
  background: var(--action-soft); border: 1px solid var(--action-soft-border); padding: 2px 8px; border-radius: 9999px; font-weight: 700;
}
.tier .p { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.tier .p small { font-family: var(--font-body); font-size: 0.82rem; font-weight: 400; color: var(--text-2); }
.tier .fit { font-size: 0.85rem; color: var(--text-2); font-style: italic; }
.tier ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.9rem; }
.tier li { padding-left: 18px; position: relative; }
.notes { margin-top: 16px; background: var(--surface-2); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 14px 18px; font-size: 0.88rem; color: var(--text-2); display: grid; gap: 6px; }
.notes b { color: var(--text); font-weight: 600; }
.sub-label { font-family: var(--font-display); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin: 22px 0 10px; }
.sub-label:first-child { margin-top: 0; }

/* Dark navy band (bundle / CTA) */
.band { background: var(--heading); color: #FFFFFF; border-radius: var(--radius-lg); padding: 32px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.band .eyebrow { color: var(--sky); }
.band h2 { color: #FFFFFF; }
.band p { color: #C9D8EF; margin-top: 10px; }
.band .btn { background: #FFFFFF; color: var(--heading); border-color: #FFFFFF; }
.band .btn:hover { background: var(--sky); border-color: var(--sky); }
.band .calc { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); padding: 18px 20px; font-variant-numeric: tabular-nums; font-size: 0.95rem; display: grid; gap: 8px; }
.band .calc div { display: flex; justify-content: space-between; gap: 12px; }
.band .calc .total { border-top: 1px solid rgba(255,255,255,0.25); padding-top: 10px; margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.band .calc .save { color: var(--sky); font-weight: 600; }
.band.cta { grid-template-columns: minmax(0, 1fr) auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { padding: 18px 0 0; border-top: 2px solid var(--track); }
.step::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; color: var(--action); display: block; margin-bottom: 8px; }
.step h4 { margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: var(--text-2); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--action); font-family: var(--font-display); }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 3px; }
.faq details p { margin-top: 8px; font-size: 0.9rem; color: var(--text-2); }

/* Prose pages (about) */
.prose { max-width: 66ch; display: grid; gap: 16px; }
.prose p { color: var(--text-2); font-size: 1.02rem; }
.prose h2 { margin-top: 12px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.about-side { display: grid; gap: 14px; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.fact b { display: block; font-family: var(--font-display); color: var(--heading); font-size: 1.2rem; }
.fact span { font-size: 0.88rem; color: var(--text-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.panel h3 { color: var(--heading); margin-bottom: 6px; }
.panel p { color: var(--text-2); font-size: 0.95rem; }
.form { display: grid; gap: 14px; margin-top: 18px; }
.form label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--text); }
.form input, .form textarea, .form select {
  font: inherit; font-size: 0.95rem; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px;
  background: var(--surface); color: var(--text); width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border: 1.5px solid var(--action); box-shadow: 0 0 0 3px rgba(127,196,240,0.35); }
.form textarea { min-height: 120px; resize: vertical; }
.contact-list { display: grid; gap: 10px; margin-top: 16px; font-size: 0.95rem; }
.contact-list div { display: flex; gap: 10px; }
.contact-list b { min-width: 80px; color: var(--text); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 0.85rem; color: var(--text-3); margin-top: 24px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--text-2); text-decoration: none; margin-right: 16px; }
footer a:hover { color: var(--action); }

/* Responsive */
@media (max-width: 860px) {
  .hero .wrap, .detail .wrap, .band, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid, .grid.two, .tiers.three, .steps, .steps.three, .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 12px 24px 18px; gap: 14px; }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .hero-owl img { width: 160px; height: 160px; }
}
@media (max-width: 560px) {
  .grid, .grid.two, .tiers.two, .tiers.three, .steps, .steps.three, .faq { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr; }
  h1 { font-size: 1.85rem; }
  .btn { white-space: normal; }
}

/* Booking popup (Koalendar in an iframe) */
.booking-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.booking-modal[hidden] { display: none; }
.booking-scrim { position: absolute; inset: 0; background: rgba(15, 22, 38, 0.5); }
.booking-panel { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 4px 14px rgba(31, 59, 166, 0.3); width: min(960px, 100%); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
.booking-close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--heading); font-size: 22px; line-height: 1; cursor: pointer; }
.booking-close:hover { background: var(--action-soft); }
.booking-close:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.booking-frame { flex: 1; min-height: 0; }
.booking-frame iframe { display: block; width: 100%; height: min(760px, 80vh); border: 0; }
.booking-fallback { font-size: 0.82rem; color: var(--text-3); padding: 8px 16px 12px; border-top: 1px solid var(--border-subtle); margin: 0; }
body.booking-open { overflow: hidden; }
.booking-inline { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.booking-inline iframe { display: block; width: 100%; height: 760px; border: 0; }
