/* PC-Servis.si */

/* Open Sans (text) and Montserrat (headings), self-hosted variable fonts, subset to Latin incl. č/š/ž */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/opensans.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/montserrat.woff2") format("woff2");
}

/*
 * Colours: each token has a light and a dark value (light-dark()). Dark is the default for everyone;
 * the header toggle switches to light and remembers it (html[data-theme]).
 */
:root {
  color-scheme: dark;
  --primary: light-dark(#009cff, #3db5ff);           /* accents, focus rings */
  --primary-dark: light-dark(#006bb0, #74caff);      /* links, badge text, icons */
  --btn: light-dark(#0072bc, #0a72b8);               /* button background (white text) */
  --btn-hover: light-dark(#1d2630, #075a92);
  --accent: light-dark(#005f9e, #9dd9ff);
  --heading: light-dark(#1b222b, #eef2f6);
  --text: light-dark(#4c5561, #b3bdc9);
  --muted: light-dark(#66707c, #8d98a6);
  --bg: light-dark(#ffffff, #0f141a);
  --surface: light-dark(#ffffff, #161c24);           /* cards, header, inputs */
  --light-bg: light-dark(#f4f8fb, #121820);          /* alternate sections */
  --border: light-dark(#e1e8ef, #26303c);
  --border-strong: light-dark(#c8d3de, #384554);
  --input-border: light-dark(#c4ccd4, #384554);
  --nav-text: light-dark(#1f2933, #e4e9ef);
  --shadow: light-dark(rgba(10, 30, 50, .07), rgba(0, 0, 0, .45));
  --badge-bg: light-dark(rgba(0, 156, 255, .1), rgba(61, 181, 255, .15));
  --highlight: light-dark(rgba(0, 156, 255, .18), rgba(61, 181, 255, .28));
  --footer-bg: light-dark(#1d232a, #0a0e13);
  --footer: light-dark(#161b21, #06090c);
  --ok-bg: light-dark(#e8f6ee, #0f2e1d);
  --ok-text: light-dark(#1d7a45, #7ee2a8);
  --ok-border: light-dark(#b6e3c8, #1f5c3a);
  --err-bg: light-dark(#fdecec, #3a1515);
  --err-text: light-dark(#b42318, #ffb4ab);
  --err-border: light-dark(#f5c2c0, #6b2a2a);
  --note-bg: light-dark(#fff4d6, #3a2f0a);
  --note-text: light-dark(#6b4e00, #ffd97a);
  --note-border: light-dark(#f0d58a, #5c4a12);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1170px;
  --section-space: clamp(64px, 8vw, 104px);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Typography: sizes scale with the viewport between the min and max values */
h1, h2, h3, h4, .logo-text { font-family: "Montserrat", "Open Sans", system-ui, sans-serif; }
h1, h2, h3, h4 { color: var(--heading); margin: 0 0 .6em; }
h1 { font-size: clamp(30px, 1.5rem + 1.8vw, 46px); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 1.25rem + 1.2vw, 36px); font-weight: 700; line-height: 1.18; letter-spacing: -.015em; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 1em; }

.eyebrow {
  display: block;
  color: var(--primary-dark);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em;
  margin: 0 0 12px;
}

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

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

/* Icons (inline SVG from inc/icons, sized and coloured here) */
.icon { width: 24px; height: 24px; flex: none; }
.icon-inline { width: 1.1em; height: 1.1em; vertical-align: -.18em; }

/* Buttons */
.readon {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--btn);
  color: #fff;
  font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.2;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.readon:hover, .readon:focus-visible { background: var(--btn-hover); color: #fff; }
.readon:disabled { opacity: .6; cursor: wait; }
.readon .icon-inline { transition: transform .2s; }
.readon:hover .icon-inline { transform: translateX(3px); }
.readon.ghost { background: transparent; color: var(--heading); border-color: var(--border-strong); }
.readon.ghost:hover { border-color: var(--primary); color: var(--primary-dark); background: transparent; }
.readon.white { background: #fff; color: #005f9e; }
.readon.white:hover { background: #e3f3ff; color: #005f9e; }
.readon.outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.readon.outline-white:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--border);
  transition: background-color .25s, box-shadow .25s;
}
/* After scrolling: slightly translucent with a blur ("frosted glass"), plus a shadow to lift it off the page.
   Stays solid where blur isn't supported or the visitor asked for reduced transparency. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.scrolled {
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
  }
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--border), 0 6px 20px var(--shadow); }
@media (prefers-reduced-transparency: reduce) {
  .site-header.scrolled { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--heading); }
.logo:hover { color: var(--heading); }
.logo-mark { width: 50px; height: 38px; flex: none; color: var(--primary-dark); }
.logo-text { font-size: 23px; font-weight: 700; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.logo-text span { color: var(--primary-dark); }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--nav-text);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--accent); transition: width .25s;
}
.main-nav a:hover, .main-nav a[aria-current] { color: var(--accent); }
.main-nav a:hover::after, .main-nav a[aria-current]::after { width: 100%; }
.main-nav .nav-cta-item { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { padding: 10px 18px; font-size: 14px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: none; border: 1px solid var(--border); color: var(--nav-text); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle .icon-moon { stroke: none; display: none; }
.theme-toggle .icon-sun { fill: none; }
.theme-toggle .icon-sun circle { fill: currentColor; stroke: none; }

/* Dark (default) shows the sun ("switch to light"); light shows the moon */
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }

/* The footer is dark in both themes */
.footer-top .flogo { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 18px; }
.footer-top .flogo .logo-mark, .footer-top .flogo .logo-text span { color: #5cc0ff; }

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

@media (max-width: 1023px) {
  .header-cta { display: none; }
}
@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); box-shadow: 0 12px 24px var(--shadow);
    display: none;
  }
  .main-nav.open { display: block; }
  .logo-mark { width: 42px; height: 32px; }
  .logo-text { font-size: 20px; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; }
  .main-nav li a { display: block; padding: 13px 0; border-bottom: 1px solid var(--border); }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta-item { display: block; padding-top: 16px; }
  .main-nav .nav-cta-item a.readon { display: flex; border-bottom: 0; padding: 14px; color: #fff; }
}

/* Hero: photo with a dark overlay in both themes */
.hero {
  position: relative;
  isolation: isolate;
  background: #0b1520;
  color: rgba(255, 255, 255, .88);
  padding: clamp(72px, 10vw, 140px) 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(8, 18, 28, .94) 0%, rgba(8, 18, 28, .82) 45%, rgba(8, 18, 28, .35) 100%);
}
.hero-text { max-width: 640px; }
.hero .eyebrow { color: #7fd0ff; }
.hero h1 { color: #fff; font-size: clamp(34px, 1.6rem + 2.4vw, 56px); margin-bottom: 22px; }
.hero h1 .hl { color: #5cc0ff; }
.hero-lead { font-size: 18px; max-width: 580px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero .readon:not(.outline-white) { background: #0072bc; }
.hero .readon:not(.outline-white):hover { background: #005a94; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--heading); }
.hero .checks { color: #fff; }
.checks li { display: inline-flex; align-items: center; gap: 7px; }
.icon-check { width: 18px; height: 18px; color: var(--primary-dark); stroke-width: 3; }
.hero .icon-check { color: #5cc0ff; }

/* Sections and their headings */
.section { padding: var(--section-space) 0; }
.section-alt { background: var(--light-bg); }
.sec-title { max-width: 680px; margin-bottom: 48px; }
.sec-title h2 { margin: 0; }
.sec-title p:not(.eyebrow) { font-size: 17px; margin: 14px 0 0; }
.sec-title-row {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.section-heading { margin-bottom: 36px; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-item {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color .2s, box-shadow .2s;
}
.service-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: grid; place-items: center; flex: none;
  background: var(--badge-bg); color: var(--primary-dark);
  margin-bottom: 20px;
}
.service-icon .icon { width: 26px; height: 26px; }
.service-item :is(h2, h3) { margin-bottom: 8px; }
.service-item p { margin: 0; }
.service-item :is(h2, h3) a { color: var(--heading); }
.service-item :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }  /* whole card clickable */
.service-item.has-link:hover { border-color: var(--primary); box-shadow: 0 10px 30px var(--shadow); }
.service-item.has-link:hover :is(h2, h3) a { color: var(--primary-dark); }
.service-item .more { margin-top: auto; padding-top: 18px; color: var(--primary-dark); font-weight: 500; font-size: 15px; }

/* CTA band */
.hire-us {
  position: relative;
  padding: clamp(64px, 8vw, 100px) 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 90% -20%, rgba(255, 255, 255, .1) 0 300px, transparent 301px),
    linear-gradient(110deg, #0b2a45 0%, #075d9a 55%, #0a78c4 100%);
}
.hire-us .container { position: relative; max-width: 760px; }
.hire-us h2 { color: #fff; }
.hire-us p { font-size: 18px; margin-bottom: 30px; color: rgba(255, 255, 255, .9); }


/* Process */
.process-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 60px;
  align-items: center;
  margin-bottom: 56px;
}
.process-intro p:last-child { font-size: 17px; margin: 0; }

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.section-alt .step { background: var(--surface); }
.step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.step-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--badge-bg); color: var(--primary-dark);
}
.step-icon .icon { width: 22px; height: 22px; }
.step-num { font-size: 28px; font-weight: 700; line-height: 1; color: var(--border-strong); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 15px; }

/* Page title (subpages): compact, left-aligned, breadcrumbs above the title */
.page-title {
  background:
    radial-gradient(circle at 85% -40%, rgba(255,255,255,.1) 0 260px, transparent 261px),
    linear-gradient(110deg, #0b2a45 0%, #075d9a 55%, #0a78c4 100%);
  padding: 40px 0 38px;
}
.page-title .container { display: flex; flex-direction: column-reverse; }
.page-title h1, .page-title .title {
  color: #fff; margin: 0;
  font-size: clamp(30px, 1.4rem + 1.6vw, 44px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em;
}
.page-title .crumbs { color: rgba(255,255,255,.8); margin-bottom: 8px; font-size: 14px; }
.page-title .crumbs a { color: #fff; }
.page-title .crumbs a:hover { text-decoration: underline; }

/* Home: area / hours / contact strip */
.info-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.info-item { display: flex; gap: 18px; align-items: flex-start; }
.info-item .service-icon { margin: 0; }
.info-item h3 { margin-bottom: 4px; }
.info-item p { margin: 0; }

.h3 { font-size: 19px; font-weight: 600; line-height: 1.35; }
.price-box .hero-actions, .hire-us .hero-actions { justify-content: center; margin: 0; }

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: start;
}
.contact-info {
  background: var(--btn);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 30px;
}
.contact-info h2 { color: #fff; font-size: 24px; }
.contact-info a { color: #fff; font-weight: 600; }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.5; }
.contact-list .icon { width: 22px; height: 22px; margin-top: 2px; opacity: .9; }
.contact-form h2 { font-size: 24px; margin: 0; }
.contact-form .row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form .optional { color: var(--muted); font-weight: 400; font-size: 14px; }
.contact-info a:hover { text-decoration: underline; }

.contact-form { display: grid; gap: 18px; }
.contact-form .row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form input[type=tel],
.contact-form input[type=url],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--heading);
  background: var(--surface);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form select { height: calc(1.7em + 26px); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 156, 255, .22);
}
.contact-form fieldset { border: 0; margin: 0; padding: 0; }
.contact-form legend, .contact-form .label { color: var(--heading); font-weight: 500; margin-bottom: 8px; padding: 0; display: block; }
.choices { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.choices input { accent-color: var(--primary); width: 17px; height: 17px; }
.contact-form .gdpr { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.contact-form .gdpr input { accent-color: var(--primary); width: 17px; height: 17px; margin-top: 5px; flex: none; }
.contact-form [hidden] { display: none; }
.hp { position: absolute; left: -9999px; }

.form-status {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: none;
}
.form-status.ok { display: block; background: var(--ok-bg); color: var(--ok-text); border: 1px solid var(--ok-border); }
.form-status.err { display: block; background: var(--err-bg); color: var(--err-text); border: 1px solid var(--err-border); }

/* Blog list */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, box-shadow .2s;
}
.post-card:hover { border-color: var(--primary); box-shadow: 0 10px 30px var(--shadow); }
.post-card h2 { font-size: 22px; margin-bottom: 12px; }
.post-card h2 a { color: var(--heading); }
.post-card h2 a:hover { color: var(--primary-dark); }
.post-card time { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; }

/* Article / text pages */
.post-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}
.post-meta { font-size: 14px; color: var(--muted); margin-bottom: 24px; display: flex; gap: 18px; flex-wrap: wrap; }
.prose { font-size: 17px; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose li strong { color: var(--heading); font-weight: 500; }
.prose.narrow { max-width: 760px; margin: 0 auto; }

.sidebar .widget {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 24px;
}
.sidebar .widget-title {
  font-size: 19px;
  position: relative;
  padding-left: 14px;
  margin-bottom: 16px;
}
.sidebar .widget-title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 2px; background: var(--primary);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li + li { margin-top: 8px; }
.sidebar li a { color: var(--text); }
.sidebar li a:hover { color: var(--primary-dark); }

/* Service pages */
.service-intro { max-width: 760px; margin: 0 0 64px; }
.lead { font-size: clamp(18px, 1rem + .4vw, 21px); line-height: 1.65; color: var(--heading); margin-bottom: 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px;
  background: var(--surface);
}
.feature h3 { font-size: 17px; margin-bottom: 6px; display: flex; align-items: flex-start; gap: 8px; }
.feature h3::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: .55em;
  border-radius: 50%; background: var(--primary);
}
.feature p { margin: 0; font-size: 15px; }
.text-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.text-blocks.single { grid-template-columns: 1fr; max-width: 760px; }
.text-blocks h2 { font-size: 26px; margin-top: 0; }
.text-blocks p:last-child { margin-bottom: 0; }
.price-box {
  max-width: 820px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(32px, 5vw, 52px);
}
.price-box p { font-size: 17px; margin-bottom: 26px; }
.narrow-block { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 44px 20px 0; position: relative;
  color: var(--heading); font-weight: 500; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--badge-bg);
  display: grid; place-items: center;
  font-size: 20px; font-weight: 400; line-height: 1; color: var(--primary-dark);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; }
.related { display: flex; flex-wrap: wrap; gap: 16px; }
.related-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 22px 14px 14px; color: var(--heading); font-weight: 500;
  transition: border-color .2s, color .2s;
}
.related-item:hover { border-color: var(--primary); color: var(--primary-dark); }
.related-item .service-icon { width: 42px; height: 42px; margin: 0; }
.related-item .service-icon .icon { width: 22px; height: 22px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 6px; }
.nowrap { white-space: nowrap; }

/* Preview of unpublished content */
.preview-banner {
  background: var(--note-bg); color: var(--note-text); border-bottom: 1px solid var(--note-border);
  text-align: center; font-weight: 500; padding: 10px 16px;
}
.badge.badge-draft { background: var(--note-bg); color: var(--note-text); }

.badge {
  display: inline-block;
  background: var(--badge-bg); color: var(--primary-dark);
  font-size: 13px; font-weight: 500;
  border-radius: 20px; padding: 2px 12px; margin-right: 6px;
}
.widget-cta { margin: 16px 0 0; }

/* 404 */
.not-found { text-align: center; padding: 120px 0; }
.not-found .code { font-size: 120px; font-weight: 700; line-height: 1; color: var(--border-strong); margin-bottom: 10px; }

/* Footer */
.site-footer { background: var(--footer-bg); color: #b9bfca; }
.footer-top { padding: 64px 0 48px; }
.footer-top .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-top .container:has(> div:nth-child(4)) { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.footer-top h2 { color: #fff; font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.footer-top a { color: #e3e7ee; }
.footer-top a:hover { color: #7fd0ff; }
.footer-top address { font-style: normal; }
.recent-post { display: block; }
.recent-post + .recent-post { margin-top: 12px; }
.recent-post .date { display: block; font-size: 13px; color: #9aa1ad; margin-top: 4px; }

.footer-bottom { background: var(--footer); padding: 22px 0; font-size: 14px; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.footer-bottom a { color: #d0d5de; }
.footer-bottom a:hover { color: #7fd0ff; }

/* Back to top */
.to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--btn); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .3s, background .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--btn-hover); }
.to-top svg { width: 18px; height: 18px; fill: currentColor; }

/* Reveal on scroll (only when JS runs, so content never stays hidden) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 991px) {
  /* minmax(0, 1fr): let columns shrink below the images' intrinsic width */
  .process-intro, .contact-wrap, .post-layout { grid-template-columns: minmax(0, 1fr); }
  .hero::before { background: rgba(8, 18, 28, .82); }
  .footer-top .container, .footer-top .container:has(> div:nth-child(4)) { grid-template-columns: 1fr 1fr; }
  .footer-top .container > div:first-child { grid-column: 1 / -1; }
  .services-grid, .feature-grid, .feature-grid.cols-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .text-blocks { grid-template-columns: 1fr; gap: 40px; }
  .process-intro { gap: 32px; }
  .process-intro img { max-width: min(420px, 100%); }
}
@media (max-width: 600px) {
  .services-grid, .info-strip, .contact-form .row-2, .contact-form .row-3, .footer-top .container, .footer-top .container:has(> div:nth-child(4)), .feature-grid, .feature-grid.cols-3, .steps { grid-template-columns: 1fr; }
  .hero-actions .readon { flex: 1 1 auto; }
  .footer-bottom .container { justify-content: center; text-align: center; }
}

/* Footer credit: website by UgodneStrani.si (sister brand; its logo icon, monochrome) */
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 22px; }
.footer-bottom .made-by { display: inline-flex; align-items: center; gap: 7px; color: #9aa1ad; }
.made-by-icon { width: 22px; height: auto; color: #d0d5de; flex: none; }
.made-by-name { color: #d0d5de; letter-spacing: .02em; }
.footer-bottom .made-by:hover .made-by-name { color: #7fd0ff; }

.at { color: var(--muted); }
