/* UgodneStrani.si */

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/rubik-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/rubik-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
 * Colours: each token has a light and a dark value (light-dark()). The site is dark by default;
 * the header toggle switches to light and remembers it (html[data-theme]).
 */
:root {
  color-scheme: dark;
  --primary: light-dark(#2280fc, #4d9bff);           /* accents, focus rings */
  --primary-dark: light-dark(#095ac4, #7ab4ff);      /* links, badge text, icons */
  --btn: light-dark(#095ac4, #1d6ad0);               /* button background (white text) */
  --btn-hover: light-dark(#303745, #0b4fa8);
  --accent: light-dark(#4d6de6, #8aa2ff);
  --heading: light-dark(#1f2633, #eef1f7);
  --text: light-dark(#555b66, #b4bccb);
  --muted: light-dark(#6f7580, #8c95a6);
  --bg: light-dark(#ffffff, #10141c);
  --surface: light-dark(#ffffff, #171c26);           /* cards, header, inputs */
  --light-bg: light-dark(#f6f8fd, #131823);          /* alternate sections */
  --border: light-dark(#e4e8f0, #283041);
  --border-strong: light-dark(#cdd5e3, #3a4458);
  --input-border: light-dark(#c9c9c9, #3a4458);
  --nav-text: light-dark(#222a36, #e6e9f0);
  --logo-icon: light-dark(#2c61b0, #6fa3ef);          /* logo colours, from the original logo */
  --logo-text: light-dark(#1d2429, #eef1f7);
  --shadow: light-dark(rgba(16, 32, 64, .07), rgba(0, 0, 0, .45));
  --badge-bg: light-dark(rgba(34, 128, 252, .1), rgba(77, 155, 255, .16));
  --highlight: light-dark(rgba(34, 128, 252, .18), rgba(77, 155, 255, .28));
  --frame-bg: light-dark(#eef1f8, #1e2532);
  --frame-dot: light-dark(#c5cde0, #3a4458);
  --footer-bg: light-dark(#1d222c, #0b0e14);
  --footer: light-dark(#161a22, #07090d);
  --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: "Rubik", 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 { color: var(--heading); margin: 0 0 .6em; }
h1 { font-size: clamp(32px, 1.6rem + 1.8vw, 48px); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: clamp(27px, 1.3rem + 1.2vw, 38px); font-weight: 600; line-height: 1.18; letter-spacing: -.015em; }
h3 { font-size: 20px; font-weight: 500; 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: 500; 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: #095ac4; }
.readon.white:hover { background: #e8f0ff; color: #095ac4; }

/* 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; text-decoration: none; }
.logo-icon { width: 54px; height: auto; flex: none; color: var(--logo-icon); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-size: 25px; font-weight: 400; letter-spacing: .01em; text-transform: uppercase; color: var(--logo-text); }
.logo-tag { margin-top: 6px; font-size: 9.6px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.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, so its logo always uses the light colours */
.footer-logo { margin-bottom: 20px; }
.footer-logo .logo-icon { width: 47px; color: #6fa3ef; }
.footer-logo .logo-name { font-size: 21px; color: #fff; }
.footer-logo .logo-tag { color: #9aa1ad; font-size: 8.4px; }

.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; }
  .logo-icon { width: 47px; }
  .logo-name { font-size: 21px; }
  .logo-tag { font-size: 8.4px; }
}
@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; }
  .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 */
.hero {
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, var(--badge-bg), transparent 70%),
    var(--light-bg);
  padding: clamp(56px, 7vw, 96px) 0;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 48px;
}
.hero h1 { font-size: clamp(34px, 1.6rem + 2.4vw, 56px); margin-bottom: 22px; }
.hero h1 .hl {
  background: linear-gradient(transparent 62%, var(--highlight) 62%, var(--highlight) 92%, transparent 92%);
  padding: 0 .08em;
}
.hero-lead { font-size: 18px; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--heading); }
.checks li { display: inline-flex; align-items: center; gap: 7px; }
.icon-check { width: 18px; height: 18px; color: var(--primary-dark); stroke-width: 3; }
.hero-img img { margin-left: auto; }

/* 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 h3 { margin-bottom: 8px; }
.service-item p { margin: 0; }
.service-item h3 a { color: var(--heading); }
.service-item 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 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; }
/* Full-width card under the grid (photography) */
.service-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 22px; }
.service-wide .service-icon { margin-bottom: 0; }
.service-wide .service-wide-text { flex: 1; }
.service-wide .more { margin: 0; padding: 0; white-space: nowrap; }
@media (max-width: 600px) {
  .service-wide { flex-direction: column; align-items: flex-start; gap: 0; }
  .service-wide .service-icon { margin-bottom: 20px; }
  .service-wide .more { padding-top: 18px; }
}

/* CTA band */
.hire-us {
  position: relative;
  padding: clamp(64px, 8vw, 100px) 0;
  text-align: center;
  color: #fff;
  background: url("/assets/img/cta-bg.webp") center / cover fixed no-repeat;
}
.hire-us::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(16, 40, 138, .94), rgba(9, 90, 196, .9));
}
.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); }

@media (hover: none) { .hire-us { background-attachment: scroll; } }

/* 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,.12) 0 260px, transparent 261px),
    linear-gradient(110deg, #10288a 0%, #1a5fd0 55%, #2389ee 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; }

/* 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: 500; }
.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 input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 128, 252, .2);
}
.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; }
.service-intro.has-image { max-width: none; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.service-photo { width: 100%; height: auto; border-radius: var(--radius); }
.image-slot {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, var(--badge-bg), transparent 70%), var(--light-bg);
  border: 1px solid var(--border); color: var(--primary-dark);
}
.image-slot .icon { width: 30%; height: auto; stroke-width: 1.2; opacity: .85; }
@media (max-width: 760px) { .service-intro.has-image { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.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); }

/* Portfolio */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 24px; }
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, box-shadow .2s;
}
.project-card:hover { border-color: var(--primary); box-shadow: 0 10px 30px var(--shadow); }
.project-card img, .project-noimg { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top; }
.project-noimg {
  display: grid; place-items: center;
  background: linear-gradient(110deg, #10288a, #2389ee);
  color: #fff; font-size: 20px; font-weight: 500;
}
.project-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.project-body h2, .project-body h3 { font-size: 21px; margin-bottom: 10px; }
.project-body h2 a, .project-body h3 a { color: var(--heading); }
.project-body h2 a:hover, .project-body h3 a:hover { color: var(--primary-dark); }
.project-meta { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.project-links { margin-top: auto; padding-top: 14px; display: flex; gap: 20px; flex-wrap: wrap; font-weight: 500; }

/* Browser-window bar above screenshots (echoes the logo) */
.browser-frame {
  display: flex; align-items: center; gap: 6px;
  background: var(--frame-bg); border-bottom: 1px solid var(--border);
  padding: 9px 12px;
}
.browser-frame span { width: 9px; height: 9px; border-radius: 50%; background: var(--frame-dot); }
.browser-frame em {
  font-style: normal; font-size: 12px; color: var(--muted);
  background: var(--surface); border-radius: 4px; padding: 1px 10px; margin-left: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.project-shot { margin: 0 0 30px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.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;
}
.tags { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; border: 1px solid var(--border); border-radius: 20px; padding: 2px 10px; }

.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter a {
  border: 1px solid var(--border-strong); border-radius: 30px; padding: 8px 20px;
  color: var(--heading); font-weight: 500; font-size: 15px;
}
.filter a:hover { border-color: var(--primary); color: var(--primary-dark); }
.filter a[aria-current] { background: var(--btn); border-color: var(--btn); color: #fff; }

.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.3fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-top h2 { color: #fff; font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.footer-top a { color: #e3e7ee; }
.footer-top a:hover { color: #8cbcff; }
.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: #8cbcff; }

/* 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 */
  .hero .container, .process-intro, .contact-wrap, .post-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-img img { margin: 0 auto; max-width: min(480px, 100%); }
  .footer-top .container { grid-template-columns: 1fr 1fr; }
  .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: 420px) {
  .site-header .logo-icon { width: 46px; }
  .site-header .logo-name { font-size: 20.5px; }
  .site-header .logo-tag { display: none; }   /* too small to read on phones */
}
@media (max-width: 360px) {
  .site-header .container { gap: 12px; }
  .site-header .logo { gap: 8px; }
  .site-header .logo-icon { width: 40px; }
  .site-header .logo-name { font-size: 17.5px; }
}
@media (max-width: 600px) {
  .services-grid, .contact-form .row-3, .footer-top .container, .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; }
}

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