/* =============================================================================
   Električar Varaždin — main stylesheet
   ============================================================================= */

:root {
  --brand: #001BB7;
  --brand-deep: #00148A;
  --accent: #FF8040;
  --accent-deep: #E66830;
  --bg: #0A1626;
  --ink: #0A1626;
  --ink-2: #2A3344;
  --mute: #5B6273;
  --line: rgba(10, 22, 38, .10);
  --line-2: rgba(10, 22, 38, .06);
  --cream: #F6F4EE;
  --soft: #F2F4FA;
  --white: #ffffff;
  --shadow-1: 0 1px 2px rgba(10,22,38,.06), 0 1px 3px rgba(10,22,38,.08);
  --shadow-2: 0 6px 18px -4px rgba(10,22,38,.12), 0 2px 6px rgba(10,22,38,.06);
  --shadow-3: 0 20px 40px -12px rgba(10,22,38,.18), 0 8px 18px -6px rgba(10,22,38,.10);
  --radius: 8px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5 { font-weight: 800; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 16px; color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 16px; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }

/* =================== TOP BAR + HEADER + NAV =================== */
.top-bar {
  background: var(--brand);
  color: #fff;
  font-size: .82rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.top-bar-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.top-bar a { color: #fff; font-weight: 600; }
.top-bar a:hover { color: var(--accent); }

.site-header {
  background: var(--brand);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 10px 0;
}
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-logo img { height: 74px; width: auto; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { display: flex; gap: 32px; }
.main-nav a { color: #fff; font-weight: 600; font-size: .95rem; padding: 6px 0; position: relative; }
.main-nav a:hover { color: var(--accent); }
.header-cta { flex-shrink: 0; display: flex; align-items: center; gap: 14px; }
.header-phone { color: #fff; font-weight: 700; font-size: 1rem; }
.header-phone:hover { color: var(--accent); }
.btn-cta {
  background: var(--accent); color: #fff;
  padding: 10px 18px; font-weight: 700;
  border-radius: var(--radius);
  display: inline-block; font-size: .9rem;
  transition: background .15s, transform .15s;
}
.btn-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
.mobile-toggle {
  display: none; background: none; border: 0; color: #fff;
  font-size: 1.6rem; cursor: pointer; padding: 6px;
}

/* Mega menu */
.has-mega {
  position: relative;
  padding-bottom: 18px; margin-bottom: -18px;
}
.mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border-radius: 16px;
  padding: 28px 26px;
  width: min(1080px, calc(100vw - 64px));
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,.30), 0 8px 16px -4px rgba(0,0,0,.15);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, transform .2s, visibility 0s .2s;
  z-index: 49;
}
.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity .2s, transform .2s, visibility 0s;
}
.mega-menu::before {
  content: ""; position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 16px; height: 16px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.06);
  border-left: 1px solid rgba(0,0,0,.06);
}
.mega-menu::after {
  content: ""; position: absolute;
  top: -22px; left: 0; right: 0; height: 22px;
}
.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 18px;
}
.mega-col h4 {
  font-size: .72rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 12px; padding-bottom: 10px;
  border-bottom: 2px solid rgba(0,27,183,.18);
  text-align: center;
}
.mega-col ul { display: flex; flex-direction: column; gap: 1px; }
.mega-col a {
  color: var(--ink);
  font-size: .87rem; font-weight: 500;
  padding: 8px 10px;
  border-radius: 6px;
  display: block;
  text-align: center;
  line-height: 1.45;
  transition: background .15s, color .15s;
}
.mega-col a:hover { background: rgba(255,128,64,.10); color: var(--accent-deep); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--brand);
  z-index: 100;
  padding: 80px 24px 40px;
  overflow-y: auto;
  color: #fff;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu .m-link {
  display: block;
  padding: 14px 0;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.mobile-menu .m-cat { margin: 18px 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.10); }
.mobile-menu .m-cat h4 {
  color: var(--accent); text-transform: uppercase; letter-spacing: .08em;
  font-size: .8rem; margin-bottom: 8px;
}
.mobile-menu .m-cat ul { padding-left: 8px; }
.mobile-menu .m-cat a {
  display: block; padding: 8px 0;
  color: rgba(255,255,255,.92); font-size: .95rem;
}
.mobile-menu .m-cta {
  margin-top: 24px;
  display: flex; justify-content: center;
}
.mobile-menu-close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: 0; color: #fff;
  font-size: 2rem; cursor: pointer;
}

/* =================== HERO =================== */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 130px);
  padding: clamp(40px, 5vw, 80px) 0;
  display: flex; align-items: center;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% center; display: block;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.74) 50%, rgba(0,0,0,.88) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 14px;
  margin-bottom: 18px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}
.hero h1 .accent { color: var(--accent); }
.hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  color: rgba(255,255,255,.92);
  max-width: 580px;
  margin: 0 0 28px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 22px;
  max-width: 580px;
}
.hero-trust-item .num {
  font-size: 1.6rem; font-weight: 800;
  color: var(--accent); line-height: 1;
}
.hero-trust-item .lbl {
  font-size: .78rem; color: rgba(255,255,255,.78); margin-top: 4px;
}

/* Hero figure with orange circle */
.hero-figure {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-circle {
  width: min(380px, 80%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 22px 36px rgba(0,0,0,.35));
}
.hero-circle img {
  width: 100%;
  height: auto;
  display: block;
}

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; font-weight: 700; font-size: 1rem;
  border-radius: var(--radius);
  transition: all .15s;
  border: 0; cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

/* SVG icon helper — phone icon (currentColor inherits text color: white on CTA, brand on header) */
.ico-phone {
  width: 16px; height: 16px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: -2px;
}
.btn .ico-phone { width: 18px; height: 18px; vertical-align: -3px; }
.header-phone .ico-phone { width: 15px; height: 15px; margin-right: 6px; }
.big-link .ico-phone { width: 22px; height: 22px; margin-right: 8px; vertical-align: -4px; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.40);
}
.btn-ghost:hover { background: rgba(255,255,255,.10); border-color: #fff; }
.btn-ghost--dark {
  color: var(--ink); border-color: rgba(10,22,38,.30);
}
.btn-ghost--dark:hover {
  background: rgba(10,22,38,.06); border-color: var(--ink);
}

/* =================== PAGE HEADER (INNER PAGES) =================== */
.page-header {
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  padding: clamp(20px, 2.5vw, 40px) 0 clamp(44px, 5vw, 80px);
  border-bottom: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
}
.page-header > .container {
  padding-left: clamp(20px, 3vw, 40px);
  padding-right: clamp(20px, 3vw, 40px);
  position: relative;
  z-index: 2;
}
.page-header h1 { max-width: 26ch; }
.page-header .page-lead { max-width: 64ch; padding-right: clamp(20px, 6vw, 120px); }

/* Hero variant — full-bleed background image with dark overlay */
.page-header--bg {
  background: var(--bg);
  padding: clamp(40px, 5vw, 80px) 0 clamp(70px, 8vw, 130px);
  color: #fff;
  border-bottom: 0;
}
.page-header-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.page-header-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.page-header-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.68) 50%, rgba(0,0,0,.82) 100%);
}
.page-header--bg h1 { color: #fff; }
.page-header--bg .page-lead { color: rgba(255,255,255,.92); }
.page-header--bg .breadcrumb { color: rgba(255,255,255,.78); }
.page-header--bg .breadcrumb a { color: var(--accent); }
.page-header--bg .breadcrumb a:hover { color: #fff; }
.page-header--bg .breadcrumb .sep { color: rgba(255,255,255,.4); }
.page-header--bg .page-eyebrow { background: var(--accent); }

/* Hero CTAs — 2 buttons (primary phone + ghost request-quote) on every hero */
.page-header-ctas {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: clamp(20px, 3vw, 32px);
}
/* On dark bg hero (page-header--bg): ghost is white outline (default) */
/* On cream fallback hero: ghost flips to dark outline */
.page-header:not(.page-header--bg) .btn-ghost {
  color: var(--ink);
  border-color: rgba(10,22,38,.28);
}
.page-header:not(.page-header--bg) .btn-ghost:hover {
  background: rgba(10,22,38,.06);
  border-color: var(--ink);
}
.page-header-inner { position: relative; max-width: 1120px; }
.page-eyebrow {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px;
  margin-bottom: 14px;
  border-radius: 4px;
}
.page-header h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  line-height: 1.12;
  margin: 0 0 14px;
}
.page-lead {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  color: var(--mute);
  max-width: 820px;
  margin: 0;
}
.breadcrumb {
  font-size: .82rem;
  color: var(--mute);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--brand); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; color: rgba(91,98,115,.5); }

/* =================== SECTIONS =================== */
.section {
  padding: clamp(50px, 6vw, 90px) 0;
}
.section-head {
  margin-bottom: clamp(32px, 4vw, 52px);
  max-width: 760px;
}
.section-head--centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--accent-deep);
  font-size: .75rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { margin: 0 0 12px; }
.section-head p { color: var(--mute); font-size: 1.05rem; margin: 0; }

/* =================== IMAGE-AS-CARD (cat + srv shared) =================== */
.cat-grid, .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.cat-card, .srv-card {
  position: relative;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: var(--shadow-1);
}
.cat-card:hover, .srv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
}
.cat-card-img, .srv-card-img {
  position: absolute; inset: 0;
  z-index: 0;
}
.cat-card-img img, .srv-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.cat-card:hover .cat-card-img img,
.srv-card:hover .srv-card-img img {
  transform: scale(1.05);
}
.cat-card::before, .srv-card::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.78) 100%);
  transition: background .25s ease;
}
.cat-card:hover::before, .srv-card:hover::before {
  background:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.65) 55%, rgba(0,0,0,.82) 100%);
}
.cat-card-body, .srv-card-body {
  position: relative; z-index: 2;
  padding: 28px 24px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  width: 100%;
}
.cat-card .eyebrow, .srv-card .eyebrow { display: none; }
.cat-card h3, .srv-card h3 {
  color: #fff;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -.01em;
}
.cat-card p, .srv-card p { display: none; }
.cat-card-link, .srv-card-link {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700; font-size: .88rem;
  padding: 10px 20px;
  border-radius: var(--radius);
  margin-top: 4px;
  transition: background .15s, transform .15s;
}
.cat-card:hover .cat-card-link,
.srv-card:hover .srv-card-link {
  background: var(--accent-deep);
}

.srv-card--small { aspect-ratio: 3/2; }
.srv-card--small h3 { font-size: 1.05rem; }
.srv-category { margin-bottom: 60px; }
.srv-category:last-child { margin-bottom: 0; }

/* =================== CRISS-CROSS (alternating image+text) =================== */
.criss-cross {
  display: flex;
  flex-direction: column;
  gap: clamp(50px, 6vw, 90px);
}
.crisscross-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.crisscross-item:nth-child(even) .crisscross-img { order: 2; }
.crisscross-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.crisscross-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.crisscross-text .eyebrow {
  display: inline-block;
  color: var(--accent-deep);
  font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 10px;
}
.crisscross-text h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  color: var(--brand);
  margin: 0 0 14px;
  line-height: 1.2;
}
.crisscross-text p {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 14px;
}
.crisscross-text .crisscross-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius);
  margin-top: 8px;
  transition: background .15s;
}
.crisscross-text .crisscross-link:hover { background: var(--accent-deep); }

/* =================== PROCESS =================== */
.section--process { background: var(--cream); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  position: relative;
}
.step-num {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; margin: 0 0 8px; }
.step p { color: var(--mute); font-size: .92rem; margin: 0; }

/* =================== BENEFITS =================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.benefit {
  background: #fff;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-1);
}
.benefit h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--brand); }
.benefit p { color: var(--mute); font-size: .94rem; margin: 0; }

/* =================== FAQ =================== */
.section--faq { background: var(--soft); }
.faq-list { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--accent);
  font-size: 1.6rem; font-weight: 700;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer {
  padding: 0 24px 22px;
  color: var(--mute);
  font-size: .96rem;
  line-height: 1.65;
}

/* =================== LOCATIONS =================== */
.section--locs-link { background: var(--cream); }
.loc-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.loc-chip {
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .92rem; font-weight: 600;
  color: var(--ink);
  transition: all .15s;
}
.loc-chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.loc-card {
  background: #fff;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.loc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.loc-card .eyebrow {
  display: inline-block;
  color: var(--accent-deep);
  font-size: .7rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 8px;
}
.loc-card h3 { font-size: 1.2rem; margin: 0 0 10px; color: var(--brand); }
.loc-card p { color: var(--mute); font-size: .94rem; margin: 0 0 14px; flex: 1; }
.loc-card-meta {
  font-size: .82rem; color: var(--mute);
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}

/* =================== SERVICE LEAF =================== */
.service-leaf-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.service-section-head { margin: 0 0 28px; }
.service-section-head .eyebrow {
  display: inline-block;
  color: var(--accent-deep);
  font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 8px;
}
.service-section-head h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  color: var(--brand);
  margin: 0;
  line-height: 1.2;
}
.service-leaf-main { font-size: 1.03rem; line-height: 1.7; }
.service-leaf-main p { margin: 0 0 16px; color: var(--ink-2); }
.service-leaf-main h3 {
  font-size: 1.25rem; margin-top: 30px; margin-bottom: 14px;
  color: var(--brand);
}

/* Inline service image (alongside content) */
.service-figure {
  margin: 22px 0 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.service-figure img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.checks { display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; }
.checks li {
  position: relative;
  padding-left: 32px;
  font-size: .98rem;
  color: var(--ink-2);
  line-height: 1.6;
}
.checks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-weight: 800;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,128,64,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem;
}

.service-leaf-aside { position: sticky; top: 110px; }
.aside-card {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-2);
}
.aside-card h4 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.aside-card p {
  color: rgba(255,255,255,.86);
  font-size: .94rem;
  margin: 0 0 18px;
}
.aside-card .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.aside-card .btn-ghost--dark { color: #fff; border-color: rgba(255,255,255,.4); }
.aside-card .btn-ghost--dark:hover { background: rgba(255,255,255,.10); border-color: #fff; }
.aside-meta {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex; flex-direction: column; gap: 10px;
  font-size: .92rem;
  color: rgba(255,255,255,.92);
}

/* =================== CTA BANNER =================== */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  padding: clamp(40px, 5vw, 70px) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,128,64,.25) 0%, transparent 70%);
}
.cta-banner-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.cta-banner h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.cta-banner p { color: rgba(255,255,255,.88); margin: 0; font-size: 1.02rem; }
.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =================== CONTACT =================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-method {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-2);
}
.contact-method:last-child { border-bottom: 0; }
.contact-method h4 { font-size: 1rem; margin: 0 0 6px; color: var(--brand); }
.contact-method p { color: var(--mute); font-size: .94rem; margin: 0 0 6px; }
.big-link { color: var(--brand); font-weight: 700; font-size: 1.2rem; }
.big-link:hover { color: var(--accent); }

.contact-form-fields { display: flex; flex-direction: column; gap: 16px; }
.contact-form-fields label {
  display: flex; flex-direction: column; gap: 6px;
  font-weight: 600; font-size: .9rem;
  color: var(--ink-2);
}
.contact-form-fields input,
.contact-form-fields textarea,
.contact-form-fields select {
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s;
  width: 100%;
}
.contact-form-fields select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%235B6273' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.contact-form-fields input:focus,
.contact-form-fields textarea:focus,
.contact-form-fields select:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,27,183,.12);
}
.contact-form-fields button { align-self: flex-start; margin-top: 8px; }
.form-note { font-size: .82rem; color: var(--mute); }

/* =================== FOOTER =================== */
.site-footer {
  background: var(--bg);
  color: rgba(255,255,255,.86);
  padding: 60px 0 30px;
}
.site-footer h5 {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 14px;
}
.site-footer ul { display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: rgba(255,255,255,.78); font-size: .9rem; }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 32px;
}
.footer-brand img { height: 62px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; color: rgba(255,255,255,.72); margin-bottom: 16px; }
.footer-contact p { margin: 0 0 6px; font-size: .9rem; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem;
}
.see-all { color: var(--accent); font-weight: 700; }

/* =================== BLOG =================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line-2);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
  color: var(--ink);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
}
.blog-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--soft);
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex; flex-direction: column;
}
.blog-card-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
  font-size: .82rem;
}
.blog-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .7rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.blog-time, .blog-date {
  color: var(--mute);
  font-size: .82rem;
  font-weight: 500;
}
.blog-card h3 {
  font-size: 1.2rem; line-height: 1.3;
  margin: 0 0 12px;
  color: var(--brand);
}
.blog-card p {
  color: var(--mute);
  font-size: .94rem;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}
.blog-card-link {
  color: var(--accent-deep);
  font-weight: 700; font-size: .92rem;
}
.blog-card--small h3 { font-size: 1rem; }
.blog-grid--related { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Blog post page */
.page-header--blog .blog-post-header h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin-top: 14px;
  max-width: 900px;
}
.blog-post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-bottom: 6px;
}
.blog-post-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 50px;
  align-items: start;
}
.blog-post-main { min-width: 0; }
.blog-post-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-2);
}
.blog-post-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.blog-post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-2);
}
.blog-post-body p { margin: 0 0 22px; }
.blog-post-body h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin: 42px 0 14px;
  color: var(--brand);
  line-height: 1.25;
}
.blog-post-body h3 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
  color: var(--ink);
}
.blog-post-body .post-ul,
.blog-post-body .post-ol {
  margin: 0 0 22px;
  padding-left: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.blog-post-body .post-ul li {
  position: relative;
  padding-left: 28px;
  list-style: none;
}
.blog-post-body .post-ul li::before {
  content: "";
  position: absolute;
  left: 8px; top: 14px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.blog-post-body .post-ol {
  counter-reset: post-counter;
  padding-left: 0;
  list-style: none;
}
.blog-post-body .post-ol li {
  position: relative;
  padding-left: 38px;
  counter-increment: post-counter;
}
.blog-post-body .post-ol li::before {
  content: counter(post-counter);
  position: absolute;
  left: 0; top: 0;
  width: 26px; height: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 800; font-size: .82rem;
  display: flex; align-items: center; justify-content: center;
}
.blog-post-body a {
  color: var(--accent-deep);
  font-weight: 600;
  border-bottom: 1.5px solid rgba(230,104,48,.3);
  transition: border-color .15s;
}
.blog-post-body a:hover { border-bottom-color: var(--accent-deep); }
.blog-post-body strong { color: var(--ink); font-weight: 700; }
.blog-post-body em { font-style: italic; color: var(--ink-2); }
.blog-post-body blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
  font-style: italic;
}
.blog-post-aside { position: sticky; top: 110px; }

@media (max-width: 900px) {
  .blog-post-grid { grid-template-columns: 1fr; gap: 36px; }
  .blog-post-aside { position: static; }
  .blog-post-body { font-size: 1rem; }
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
}
@media (max-width: 900px) {
  .mobile-toggle { display: block; }
  .main-nav, .header-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero h1 { font-size: 2rem; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-trust { margin: 0 auto; grid-template-columns: repeat(2, 1fr); max-width: 400px; }
  .hero-circle { width: 280px; }
  .hero-bg img { object-position: 60% center; }
  .service-leaf-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-leaf-aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-banner-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-banner-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .crisscross-item { grid-template-columns: 1fr; gap: 24px; }
  .crisscross-item:nth-child(even) .crisscross-img { order: 0; }
}
@media (max-width: 600px) {
  .top-bar { font-size: .76rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .cta-banner-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { grid-template-columns: 1fr 1fr; }
}

/* =================== MOBILE: centriraj sav sadržaj (playbook 17.9) =================== */
@media (max-width: 900px) {
  /* Naslovne sekcije */
  .section-head { max-width: none; text-align: center; margin-left: auto; margin-right: auto; }

  /* Page-header (inner stranice: usluge, lokacije, blog, o-nama, kontakt) */
  .page-header-inner { text-align: center; }
  .page-header .breadcrumb { justify-content: center; }
  .page-header-ctas { justify-content: center; }
  .blog-post-meta { justify-content: center; }

  /* Criss-cross */
  .crisscross-item, .crisscross-text { text-align: center; }
  .crisscross-text .crisscross-link { margin-left: auto; margin-right: auto; }

  /* Benefiti + proces */
  .benefit, .benefit h3, .benefit p { text-align: center; }
  .benefit { border-left: 0; border-top: 3px solid var(--accent); }
  .step, .step h3, .step p { text-align: center; }

  /* FAQ */
  .faq-item summary { justify-content: center; text-align: center; gap: 12px; }
  .faq-answer { text-align: center; }

  /* Leaf sadržaj (usluge + lokacije) */
  .service-leaf-main, .service-section-head,
  .service-leaf-main h2, .service-leaf-main h3, .service-leaf-main p { text-align: center; }
  /* Kvačice-liste: tekst ostaje lijevo (čitljivost), ali blok se centrira */
  .checks { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; text-align: left; }

  /* Aside kartica */
  .aside-card, .aside-card h4, .aside-card p { text-align: center; }
  .aside-meta { align-items: center; text-align: center; }

  /* Lokacije hub kartice + čipovi */
  .loc-card-body, .loc-card-body h3, .loc-card-body p { text-align: center; }
  .loc-chips { justify-content: center; }

  /* Blog hub kartice */
  .blog-card-body, .blog-card-body h3, .blog-card-body p { text-align: center; }
  .blog-card-meta { justify-content: center; }

  /* Kontakt (info centriran; polja forme ostaju lijevo radi upisa) */
  .contact-info, .contact-method, .contact-method h4, .contact-method p, .contact-form h3 { text-align: center; }
  .contact-method .big-link { justify-content: center; }
  .contact-form label { text-align: center; }
  .contact-form input, .contact-form textarea, .contact-form select { text-align: left; }

  /* Footer */
  .footer-grid, .footer-brand, .footer-brand p, .footer-contact,
  .site-footer h5, .site-footer li, .footer-bottom { text-align: center; }
  .footer-brand img { margin-left: auto; margin-right: auto; }
  .footer-contact { align-items: center; }
  .footer-bottom { justify-content: center; }
}

/* =================== COOKIE CONSENT BANNER =================== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--bg); color: #fff;
  border-top: 3px solid var(--accent);
  box-shadow: 0 -8px 30px -10px rgba(0,0,0,.5);
  padding: 18px clamp(16px,3vw,32px);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: .92rem; line-height: 1.55; color: rgba(255,255,255,.9); flex: 1 1 420px; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 11px 20px; font-size: .92rem; }
@media (max-width: 700px) {
  .cookie-banner-inner { flex-direction: column; text-align: center; }
  .cookie-banner p { flex-basis: auto; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; justify-content: center; }
}
