/* Lomax Soft: single-page site. Same design as v4/index.html, written against WordPress block markup. */
:root {
  --green: #97BE0E; --orange: #F18C02; --blue: #5EA4D6; --purple: #93107D; --charcoal: #2D2D2D;
  --bg: #FFFFFF; --bg-2: #F5F4F0; --card: #FFFFFF; --ink: #171717; --ink-2: #4A4A45; --muted: #6B6B66; --line: #E6E5E0;
  --accent-text: #5F7A00; /* logo green darkened to pass 4.5:1 on white */
  --qa: var(--charcoal); --purple-on-bg: #93107D;
  --btn-bg: #171717; --btn-ink: #FFFFFF;
  --pad: max(28px, calc((100% - 1104px) / 2));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212; --bg-2: #1A1A1A; --card: #1E1E1E; --ink: #F1F0EC; --ink-2: #C6C5BF; --muted: #9A9993; --line: #2E2E2C;
    --accent-text: #A9CF1F; --qa: #EDECE7; --purple-on-bg: #D46BC4; /* purple lightened to read on dark */
    --btn-bg: #F1F0EC; --btn-ink: #171717;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121212; --bg-2: #1A1A1A; --card: #1E1E1E; --ink: #F1F0EC; --ink-2: #C6C5BF; --muted: #9A9993; --line: #2E2E2C;
  --accent-text: #A9CF1F; --qa: #EDECE7; --purple-on-bg: #D46BC4;
  --btn-bg: #F1F0EC; --btn-ink: #171717;
  color-scheme: dark;
}
@media (max-width: 600px) { :root { --pad: 20px; } }

html { scroll-padding-top: 72px; }
html:has(.admin-bar) { scroll-padding-top: 104px; } /* logged-in: WordPress toolbar adds 32px */
.admin-bar section.wp-block-group { min-height: calc(100vh - 104px); }
body, .editor-styles-wrapper { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3, .lead, .careers p { text-wrap: balance; }
.lang { text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); padding: 8px 10px; border-radius: 999px; }
.lang:hover { color: var(--ink); background: var(--bg-2); }

/* Header */
header.wp-block-template-part { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.admin-bar header.wp-block-template-part { top: 32px; }
.top { display: flex; align-items: center; gap: 20px; height: 72px; padding: 0 var(--pad); }
.logo { color: var(--ink); display: block; }
.logo-svg { height: 40px; width: auto; display: block; }
.top nav { margin-left: auto; display: flex; gap: 4px; }
.top nav a { text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; }
.top nav a:hover { color: var(--ink); background: var(--bg-2); }
.theme { all: unset; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.theme:hover { background: var(--bg-2); color: var(--ink); }
.theme:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.theme svg { width: 19px; height: 19px; }
.theme .moon { display: none; }
.is-dark .theme .sun { display: none; }
.is-dark .theme .moon { display: block; }
.top .btn { display: inline-flex; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); }
.top .btn:hover { opacity: .88; }
.top nav a.is-active, .top nav a.is-active:hover { background: var(--btn-bg); color: var(--btn-ink); }
@media (max-width: 860px) { .top nav { display: none; } .top .lang { margin-left: auto; } }

/* Buttons (core/button) */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button__link { display: inline-flex; text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.6; padding: 13px 22px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); border: 0; }
.wp-block-button__link:hover { opacity: .88; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); padding: 13px 22px; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { box-shadow: inset 0 0 0 1.5px var(--ink); opacity: 1; }

/* Sections */
section.wp-block-group { padding: clamp(36px, 6vh, 72px) var(--pad); min-height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center; }
section.tint { background: var(--bg-2); }
section.flush { padding-top: 0; }
.label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.label::before { content: ""; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; background: var(--green); flex: none; }
h1.wp-block-heading { font-size: clamp(42px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -.04em; font-weight: 650; margin: 0 0 24px; max-width: 14ch; }
h1.wp-block-heading::after { content: "."; color: var(--green); }
h2.wp-block-heading { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -.03em; font-weight: 650; margin: 0 0 16px; max-width: 20ch; }
h3.wp-block-heading { font-size: 21px; line-height: 1.25; letter-spacing: -.015em; font-weight: 650; margin: 0 0 10px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 56ch; }

/* Hero */
section.hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(64px, 9vw, 112px); }
.hero .wp-block-buttons { margin-top: 34px; }

/* About */
.about, .contact, .exp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
.about { align-items: center; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 28px; }
.fact { border-top: 3px solid var(--c); padding-top: 16px; }
.fact:nth-child(1) { --c: var(--green); } .fact:nth-child(2) { --c: var(--orange); }
.fact:nth-child(3) { --c: var(--blue); } .fact:nth-child(4) { --c: var(--purple-on-bg); }
.fact .num { font-size: clamp(34px, 4vw, 48px); line-height: 1; letter-spacing: -.03em; font-weight: 650; }
.fact p + p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.service { background: var(--bg-2); border-radius: 22px; padding: 22px 24px 24px; border-top: 5px solid var(--c); }
.service::before { content: ""; display: block; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: var(--c); margin-bottom: 14px; }
#usluge h2.wp-block-heading { max-width: none; }
.service:nth-child(5n+1) { --c: var(--green); } .service:nth-child(5n+2) { --c: var(--orange); }
.service:nth-child(5n+3) { --c: var(--blue); } .service:nth-child(5n+4) { --c: var(--purple-on-bg); }
.service:nth-child(5n+5) { --c: var(--qa); }
.service p { color: var(--ink-2); font-size: 16.5px; }
.tint .service { background: var(--card); }
@media (max-width: 1100px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

/* Why Lomax */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 44px; counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50% 50% 50% 0; background: var(--c); color: #171717; font-weight: 700; font-size: 18px; margin-bottom: 20px; }
.step:nth-child(3n+1) { --c: var(--green); } .step:nth-child(3n+2) { --c: var(--orange); } .step:nth-child(3n+3) { --c: var(--blue); }
.step p { color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

/* Experience */
.exp { margin-top: 44px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.exp-nums { grid-template-columns: 1fr; }
.exp h3.wp-block-heading { font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
ul.plain li { display: flex; align-items: center; gap: 14px; color: var(--ink); font-size: 19px; font-weight: 650; }
ul.plain li::before { content: ""; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; background: var(--c); flex: none; }
ul.plain li:nth-child(5n+1) { --c: var(--green); } ul.plain li:nth-child(5n+2) { --c: var(--orange); }
ul.plain li:nth-child(5n+3) { --c: var(--blue); } ul.plain li:nth-child(5n+4) { --c: var(--purple-on-bg); }
ul.plain li:nth-child(5n+5) { --c: var(--qa); }
.tech { color: var(--ink-2); font-size: 17px; max-width: 46ch; }

/* Careers */
.careers { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: center; background: var(--green); color: #171717; border-radius: 28px; padding: clamp(24px, 3vw, 36px) clamp(28px, 4vw, 44px); }
.careers .label { color: #2c3a00; }
.careers .label::before { background: #171717; }
.careers h2.wp-block-heading { max-width: none; }
.careers p:not(.label) { font-size: 18px; max-width: 52ch; }
.careers .wp-block-button__link { background: #171717; color: #fff; }
@media (max-width: 760px) { .careers { grid-template-columns: 1fr; } }

/* Contact */
.contact { align-items: end; }
.closing .contact { margin-top: clamp(48px, 6vw, 80px); }
#karijere { scroll-margin-top: clamp(36px, 6vh, 72px); } /* same as the section padding, so the block starts with space above the card */
#kontakt { scroll-margin-top: 40px; }
.mail { margin-top: 12px; }
.mail a { display: inline-block; font-size: clamp(26px, 3.6vw, 44px); font-weight: 650; letter-spacing: -.03em; line-height: 1.6; text-decoration: none; border-bottom: 3px solid var(--green); padding-bottom: 4px; overflow-wrap: anywhere; }
.mail a:hover { color: var(--accent-text); }
.address { color: var(--ink-2); line-height: 1.75; }
.address strong { color: var(--ink); }
@media (max-width: 860px) { .about, .contact, .exp { grid-template-columns: 1fr; } .contact { align-items: start; } }


/* Footer */
footer.wp-block-template-part { border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center; padding: 28px var(--pad) 40px; font-size: 14.5px; color: var(--muted); }
.foot .dots { display: flex; gap: 6px; }
.foot .dots i { display: block; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; }
