/* ============================================================
   Herceg IT — stylesheet
   Boje: ink navy + topli zlatni akcent
   Tipografija: Fraunces (naslovi, serif) + IBM Plex Sans (tekst)
   ============================================================ */

:root {
  --ink:        #0b1220;   /* pozadina hero / footer */
  --ink-soft:   #131c2e;
  --ink-line:   #1e293b;
  --paper:      #f7f6f2;   /* topla svijetla pozadina */
  --paper-card: #ffffff;
  --text:       #14202e;
  --text-soft:  #4a5768;
  --text-inv:   #e8ecf3;
  --text-inv-soft: #9aa6ba;
  --gold:       #c9a227;
  --gold-soft:  #e2c766;
  --line:       #e4e1d8;

  --maxw: 1160px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11,18,32,.04), 0 12px 32px -12px rgba(11,18,32,.18);

  --sans: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--gold); color: #201a05; }
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-inv); border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { border-color: rgba(255,255,255,.5); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,18,32,.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text-inv); }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--gold); color: #201a05;
  font-family: var(--serif); font-weight: 600; font-size: 22px;
}
.brand-text { font-size: 20px; font-weight: 500; letter-spacing: .01em; }
.brand-text strong { color: var(--gold); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--text-inv-soft); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--text-inv); }
.nav .nav-cta {
  color: var(--text-inv); border: 1px solid rgba(255,255,255,.22);
  padding: 9px 18px; border-radius: 9px;
}
.nav .nav-cta:hover { border-color: var(--gold); color: var(--gold); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-inv); border-radius: 2px; }

.mobile-menu { display: none; flex-direction: column; background: var(--ink-soft); border-top: 1px solid rgba(255,255,255,.06); }
.mobile-menu a { color: var(--text-inv); padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,.05); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(201,162,39,.16), transparent 60%),
    var(--ink);
  color: var(--text-inv);
  padding: 92px 0 104px;
}
.hero-inner { max-width: 820px; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); color: #fff; margin-bottom: 24px; }
.hero-lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-inv-soft); max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-trust { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-inv-soft); }
.trust-dot { width: 9px; height: 9px; border-radius: 50%; background: #35c46b; box-shadow: 0 0 0 4px rgba(53,196,107,.16); }

/* ===== Clients marquee ===== */
.clients { background: var(--ink); padding: 8px 0 40px; overflow: hidden; }
.clients-label {
  text-align: center; color: var(--text-inv-soft);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 26px;
}
.marquee { position: relative; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 56px; animation: scroll 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.client {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--text-inv-soft); white-space: nowrap; letter-spacing: .01em;
  opacity: .85; transition: color .2s, opacity .2s;
}
.client:hover { color: var(--gold); opacity: 1; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 18px; }
.section-sub { color: var(--text-soft); font-size: 18px; }

/* ===== Services ===== */
.services { background: var(--paper); }
.grid { display: grid; gap: 22px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8d3c4; }
.card-num { font-family: var(--serif); font-size: 15px; color: var(--gold); font-weight: 600; margin-bottom: 18px; }
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card p { color: var(--text-soft); font-size: 15.5px; }

/* ===== Approach ===== */
.approach { background: var(--ink); color: var(--text-inv); }
.approach-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.approach h2 { font-size: clamp(28px, 4vw, 42px); color: #fff; margin: 16px 0 18px; }
.approach-text > p { color: var(--text-inv-soft); font-size: 18px; margin-bottom: 26px; }
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 32px; color: var(--text-inv); font-size: 16px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(201,162,39,.15);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: 8px;
  width: 5px; height: 9px; border: solid var(--gold); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: var(--ink-soft); border: 1px solid var(--ink-line);
  border-radius: var(--radius); padding: 26px 24px;
}
.stat-num { display: block; font-family: var(--serif); font-size: 40px; font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.stat-label { color: var(--text-inv-soft); font-size: 14.5px; }

/* ===== About ===== */
.about { background: var(--paper); }
.about-inner { max-width: 760px; }
.about h2 { font-size: clamp(28px, 4vw, 42px); margin: 16px 0 20px; }
.about-lead { font-size: 19px; color: var(--text-soft); }

/* ===== Contact ===== */
.contact { background: var(--paper); border-top: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact h2 { font-size: clamp(28px, 4vw, 42px); margin: 16px 0 18px; }
.contact-text > p { color: var(--text-soft); font-size: 18px; margin-bottom: 30px; }
.contact-details { list-style: none; display: grid; gap: 18px; }
.contact-details li { display: grid; gap: 3px; }
.contact-details span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.contact-details a { font-size: 17px; font-weight: 500; color: var(--text); }
.contact-details a:hover { color: var(--gold); }

.contact-form {
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
}
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--text);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fdfdfb; transition: border-color .2s, box-shadow .2s;
  width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,.15);
}
.field input:invalid:not(:placeholder-shown) { border-color: #d06b6b; }
.form-status { margin-top: 14px; font-size: 14.5px; font-weight: 500; min-height: 1.2em; }
.form-status.ok { color: #1f9d55; }
.form-status.err { color: #cc4b4b; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: var(--text-inv-soft); padding: 64px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-brand { max-width: 320px; }
.footer-brand .brand-mark { display: inline-grid; vertical-align: middle; }
.footer-brand .brand-text { color: var(--text-inv); margin-left: 12px; }
.footer-brand p { margin-top: 16px; font-size: 14.5px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; align-content: start; }
.footer-nav a { color: var(--text-inv-soft); font-size: 15px; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13.5px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu[data-open="true"] { display: flex; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .approach-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 620px) {
  .section { padding: 68px 0; }
  .hero { padding: 68px 0 76px; }
  .services-grid, .stats, .field-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  * { scroll-behavior: auto; }
}
