/*
Theme Name: AutoProject 2026
Theme URI: https://autoproject.lt/
Author: Codex
Description: Modern, conversion-focused WordPress theme for AutoProject automotive electronics service. Pages are assembled from native Gutenberg blocks - editing text, images and CTAs happens directly in the block editor.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: autoproject-2026
*/

@view-transition { navigation: auto; }

:root {
  --ink: #111318;
  --ink-2: #222832;
  --muted: #64707d;
  --line: #dce2e9;
  --paper: #f7f9fc;
  --white: #ffffff;
  --red: #ed1c24;
  --red-dark: #b90d16;
  --cyan: #19b8c4;
  --yellow: #f6c64f;
  --green: #23a36d;
  --shadow: 0 24px 70px rgba(17, 19, 24, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
}

.site-shell {
  overflow: clip;
}

.utility {
  background: var(--ink);
  color: rgba(255,255,255,0.84);
  font-size: 13px;
}

.utility__inner,
.header__inner,
.section__inner,
.footer__inner,
.hero__inner,
.quick-panel,
.mobile-visit__inner,
.archive-shell,
.single-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.utility__inner {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.utility__list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.utility__link {
  color: var(--white);
  font-weight: 800;
}

.utility__socials {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 800;
  color: rgba(255,255,255,0.76);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(220,226,233,0.75);
  backdrop-filter: blur(18px);
}

.header__inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.brand .custom-logo-link {
  display: inline-flex;
  width: 204px;
  align-items: center;
}

.brand img,
.brand .custom-logo {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

.nav,
.nav ul {
  display: flex;
  gap: 2px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 750;
}

.nav a:hover,
.nav a:focus-visible {
  outline: none;
  background: #eef2f6;
}

.header__cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  color: var(--white);
  background: var(--red);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 12px 30px rgba(237, 28, 36, 0.24);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, 74svh);
  isolation: isolate;
  color: var(--white);
  background: var(--ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(9, 11, 15, 0.88) 0%, rgba(9, 11, 15, 0.62) 43%, rgba(9, 11, 15, 0.18) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  content: "";
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17,19,24,0) 0%, rgba(17,19,24,0.82) 100%);
  content: "";
}

.hero__inner {
  padding: clamp(70px, 10vw, 116px) 0 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow::before {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(35,163,109,0.2);
  content: "";
}

.hero__copy {
  max-width: 720px;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255,255,255,0.86);
  font-size: clamp(18px, 2.3vw, 24px);
}

.hero__actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
}

.button--primary,
.wp-block-button__link {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 20px 44px rgba(237, 28, 36, 0.26);
}

.button--primary:hover,
.wp-block-button__link:hover {
  color: var(--white);
  background: var(--red-dark);
}

.button--ghost {
  color: var(--white);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.24);
  backdrop-filter: blur(12px);
}

.button--light {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.hero__chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 780px;
  margin-top: 38px;
}

.chip {
  min-height: 70px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.84);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
}

.chip strong {
  display: block;
  color: var(--white);
  font-size: 18px;
}

.quick-panel {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  margin-top: -58px;
  border: 1px solid rgba(220,226,233,0.9);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.field select,
.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
}

.section {
  padding: clamp(70px, 9vw, 112px) 0;
}

.section--tight {
  padding-top: 48px;
}

.section--dark {
  color: var(--white);
  background: var(--ink);
}

.section--white {
  background: var(--white);
}

.section__heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(22px, 6vw, 78px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.kicker::before {
  width: 28px;
  height: 2px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
h4 {
  color: inherit;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.02;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

p {
  margin: 0;
}

.muted {
  color: var(--muted);
  font-size: 17px;
}

.section--dark .muted {
  color: rgba(255,255,255,0.72);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.proof {
  min-height: 152px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.proof:last-child {
  border-right: 0;
}

.proof b {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.proof span {
  color: var(--muted);
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  min-height: 254px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(237,28,36,0.38);
  box-shadow: 0 20px 54px rgba(17,19,24,0.12);
}

.service-card__image {
  height: 122px;
  overflow: hidden;
  background: #e7edf3;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.service-card:hover img {
  transform: scale(1.04);
}

.service-card__body {
  padding: 18px;
}

.service-card__tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 5px 8px;
  margin-bottom: 10px;
  border-radius: 999px;
  color: var(--red);
  background: #fff0f1;
  font-size: 12px;
  font-weight: 900;
}

.service-card p {
  margin-top: 8px;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.media-frame {
  overflow: hidden;
  min-height: 520px;
  border-radius: var(--radius);
  background: #dbe2e9;
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--ink-2);
  font-weight: 750;
}

.check-list li::before {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--green);
  content: "";
  font-weight: 900;
}

.check-list li::after {
  position: absolute;
  left: 10px;
  top: 7px;
  width: 7px;
  height: 13px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  content: "";
  transform: rotate(40deg);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.process-card {
  min-height: 236px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  background: #171b22;
  counter-increment: step;
}

.process-card::before {
  display: inline-grid;
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255,255,255,0.06);
  content: counter(step, decimal-leading-zero);
  font-weight: 900;
}

.process-card p {
  margin-top: 12px;
  color: rgba(255,255,255,0.7);
}

.cases-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-auto-rows: 250px;
  gap: 14px;
}

.case-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
}

.case-card:first-child {
  grid-row: span 2;
}

.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 420ms ease, opacity 180ms ease;
}

.case-card:hover img {
  opacity: 0.62;
  transform: scale(1.04);
}

.case-card__meta {
  position: absolute;
  inset: auto 18px 18px;
  display: grid;
  gap: 6px;
}

.case-card__meta span {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.case-card__meta strong {
  max-width: 360px;
  font-size: 22px;
  line-height: 1.1;
}

.case-card__meta em {
  max-width: 420px;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  font-style: normal;
  font-weight: 650;
}

.mobile-visit {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: var(--ink);
}

.mobile-visit::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(17,19,24,0.92), rgba(17,19,24,0.5)),
    var(--visit-image);
  background-position: center;
  background-size: cover;
  content: "";
}

.mobile-visit__inner {
  padding: clamp(70px, 9vw, 118px) 0;
}

.mobile-visit__copy {
  max-width: 620px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  cursor: pointer;
  font-weight: 850;
}

summary::after {
  color: var(--red);
  content: "+";
  font-size: 24px;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

details p {
  padding: 0 18px 18px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card,
.form-card {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  background: #171b22;
}

.contact-card {
  padding: clamp(24px, 4vw, 38px);
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list span {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.contact-list strong,
.contact-list a {
  color: var(--white);
  font-size: 18px;
}

.form-card {
  padding: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid .field--full {
  grid-column: 1 / -1;
}

.form-card label {
  color: rgba(255,255,255,0.72);
}

.form-card textarea {
  min-height: 126px;
  resize: vertical;
}

.form-card .button {
  width: 100%;
  margin-top: 12px;
}

.site-footer {
  padding: 30px 0;
  color: rgba(255,255,255,0.66);
  background: #0b0d11;
  font-size: 14px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  gap: 10px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.floating-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 12px 32px rgba(17,19,24,0.22);
  font-weight: 900;
}

.floating-actions a:first-child {
  background: var(--red);
}

.archive-hero,
.single-hero {
  position: relative;
  padding: clamp(64px, 9vw, 110px) 0;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
}

.single-hero--image::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(9, 11, 15, 0.88), rgba(9, 11, 15, 0.42)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  content: "";
}

.archive-hero h1,
.single-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
}

.archive-shell,
.single-shell {
  padding: clamp(48px, 7vw, 86px) 0;
}

.content-card {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.content-card > * + * {
  margin-top: 18px;
}

.content-card ul,
.content-card ol {
  padding-left: 1.2em;
}

.entry-content {
  font-size: 18px;
}

.entry-content a {
  color: var(--red);
  font-weight: 800;
}

.entry-content .button,
.entry-content .button--primary,
.entry-content .button--ghost,
.entry-content .wp-block-button__link {
  color: var(--white);
}

.entry-content .button--light {
  color: var(--ink);
}

.entry-content .service-card,
.entry-content .case-card {
  color: inherit;
  font-weight: inherit;
}

.entry-content .case-card,
.entry-content .contact-list a {
  color: var(--white);
}

.two-column-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.work-filter-row__btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.work-filter-row__btn:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}

.work-filter-row__btn.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: 0 8px 18px rgba(17, 19, 24, 0.18);
}

/* Hidden card animation when filter excludes it */
.cases-grid .case-card {
  transition: opacity 240ms ease, transform 240ms cubic-bezier(0.32, 0.72, 0, 1);
}
.cases-grid .case-card.is-hidden {
  display: none !important;
}

/* When filter is active, drop the bento "first card spans 2 rows" rule so
 * the grid stays balanced with however many cards remain. */
.cases-grid[data-filtered="1"] .case-card:first-child {
  grid-row: auto;
}

/* -------------------------------------------------------------
 * Error code cards (DTC library) - clear, scannable, code-first
 * ------------------------------------------------------------- */
.errors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 980px) { .errors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .errors-grid { grid-template-columns: 1fr; } }

.error-card {
  display: grid;
  gap: 8px;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 220ms ease, border-color 220ms ease;
  position: relative;
}
.error-card:hover {
  transform: translateY(-3px);
  border-color: rgba(237, 28, 36, 0.4);
  box-shadow: 0 22px 50px rgba(17, 19, 24, 0.10);
}
.error-card.is-hidden { display: none !important; }

.error-card__code {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 4px;
  width: fit-content;
  border-radius: 8px;
  background: linear-gradient(180deg, #1a1f29 0%, #0b0d11 100%);
  color: var(--white);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.error-card__title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
  display: block;
}
.error-card__meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.error-card__brand,
.error-card__model {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.error-card__brand {
  background: rgba(237, 28, 36, 0.08);
  color: var(--red);
}
.error-card__model {
  background: var(--paper);
  color: var(--muted);
}
.error-card__lead {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.error-card__cta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.02em;
}

/* Hero on single error page - prominent code + title */
.error-hero {
  position: relative;
  padding: clamp(56px, 7vw, 86px) 0 clamp(40px, 5vw, 64px);
  color: var(--white);
  background: linear-gradient(135deg, #0b0d11 0%, #1a1f29 60%, #2a1f24 100%);
  isolation: isolate;
  overflow: hidden;
}
.error-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px circle at 80% 20%, rgba(237, 28, 36, 0.18), transparent 60%),
    radial-gradient(600px circle at 10% 90%, rgba(25, 184, 196, 0.12), transparent 70%);
  content: "";
}

.error-hero__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 20px;
}
@media (max-width: 680px) {
  .error-hero__head { grid-template-columns: 1fr; gap: 16px; }
}

.error-hero__code {
  display: inline-grid;
  place-items: center;
  padding: 18px 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 50px rgba(237, 28, 36, 0.2);
  backdrop-filter: blur(12px);
}

.error-hero__head-text h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 900;
  color: var(--white);
}
.error-hero__head-text .eyebrow {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.error-hero__head-text .hero__lead {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 1.8vw, 19px);
  max-width: 600px;
}

/* Single meta dt/dd code rendering */
.single-meta dd code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--paper);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.cases-grid[data-empty="1"]::after {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  font-weight: 700;
  content: "Šios markės darbų nerasta. Pasirinkite kitą filtrą.";
}

.map-panel {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #dbe2e9;
  box-shadow: var(--shadow);
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
}

.ap-page > .entry-content {
  margin: 0;
}

@media (max-width: 980px) {
  .header__cta,
  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-header.is-menu-open .nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    display: grid;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-header.is-menu-open .nav ul {
    display: grid;
  }

  .site-header.is-menu-open .nav a {
    width: 100%;
  }

  .hero__chips,
  .proof-grid,
  .services-grid,
  .process-grid,
  .cases-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-panel,
  .section__heading,
  .split,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    margin-top: -42px;
  }

  .case-card:first-child {
    grid-row: span 1;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 78px;
  }

  .utility__inner {
    min-height: 38px;
    padding: 6px 0;
  }

  .utility__list {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
  }

  .utility__list li:first-child,
  .utility__socials {
    display: none;
  }

  .header__inner {
    min-height: 68px;
  }

  .brand {
    width: 172px;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding: 60px 0 98px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .hero__chips,
  .proof-grid,
  .services-grid,
  .process-grid,
  .cases-grid,
  .form-grid,
  .two-column-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .proof {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof:last-child {
    border-bottom: 0;
  }

  .media-frame,
  .media-frame img {
    min-height: 360px;
  }

  .cases-grid {
    grid-auto-rows: 250px;
  }

  .floating-actions {
    left: 12px;
    right: 12px;
    grid-template-columns: 1fr 1fr;
    opacity: 0;
    pointer-events: none;
    transform: translateY(120%);
  }

  body.has-scrolled .floating-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .footer__inner {
    flex-direction: column;
  }
}

/* -------------------------------------------------------------
 * Gutenberg Cover block adapters
 * The hero / archive-hero are cover blocks now, so the markup is
 * .wp-block-cover.hero with an inner container. We map cover output
 * to the original hero design without breaking core block features
 * (replace background image, edit overlay) for the user.
 * ------------------------------------------------------------- */
.wp-block-cover.hero,
.wp-block-cover.archive-hero {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 0;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

.wp-block-cover.hero {
  min-height: min(760px, 74svh);
}

.wp-block-cover.archive-hero {
  min-height: 360px;
}

.wp-block-cover.hero .wp-block-cover__inner-container,
.wp-block-cover.archive-hero .wp-block-cover__inner-container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 116px) 0 clamp(60px, 8vw, 92px);
  color: inherit;
}

.wp-block-cover.archive-hero .wp-block-cover__inner-container {
  padding: clamp(64px, 9vw, 110px) 0;
}

.wp-block-cover.hero .wp-block-cover__inner-container > .wp-block-group,
.wp-block-cover.archive-hero .wp-block-cover__inner-container > .wp-block-group {
  width: 100%;
}

.wp-block-cover.hero .wp-block-cover__background,
.wp-block-cover.archive-hero .wp-block-cover__background {
  background: linear-gradient(90deg, rgba(9, 11, 15, 0.92) 0%, rgba(9, 11, 15, 0.62) 43%, rgba(9, 11, 15, 0.18) 100%) !important;
}

.wp-block-cover.archive-hero .wp-block-cover__background {
  background: linear-gradient(90deg, rgba(9, 11, 15, 0.94) 0%, rgba(9, 11, 15, 0.56) 100%) !important;
}

.wp-block-cover.hero .hero__copy,
.wp-block-cover.hero .hero__inner {
  background: transparent;
  padding: 0;
}

.wp-block-cover.hero .wp-block-heading {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.01em;
  font-weight: 900;
}

.wp-block-cover.archive-hero .wp-block-heading {
  margin: 0;
  max-width: 860px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  font-weight: 900;
}

.wp-block-cover.hero p.eyebrow,
.wp-block-cover.archive-hero p.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.wp-block-cover.hero p.eyebrow::before,
.wp-block-cover.archive-hero p.eyebrow::before {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(35, 163, 109, 0.2);
  content: "";
}

.wp-block-cover.hero p.hero__lead,
.wp-block-cover.archive-hero p.hero__lead {
  max-width: 680px;
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.3vw, 24px);
}

/* Buttons inside the hero use our own .button styles, not core button */
.wp-block-cover.hero .wp-block-buttons.hero__actions,
.wp-block-cover.archive-hero .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.wp-block-button.button--primary .wp-block-button__link {
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-weight: 850;
  box-shadow: 0 20px 44px rgba(237, 28, 36, 0.26);
}
.wp-block-button.button--primary .wp-block-button__link:hover {
  background: var(--red-dark);
}

.wp-block-button.button--ghost .wp-block-button__link {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.wp-block-button.button--light .wp-block-button__link {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-weight: 850;
}

/* -------------------------------------------------------------
 * Section group blocks - render the page sections.
 * ------------------------------------------------------------- */
.wp-block-group.section {
  padding: clamp(70px, 9vw, 112px) 0;
}
.wp-block-group.section--tight { padding-top: 48px; }
.wp-block-group.section--white { background: var(--white); }
.wp-block-group.section--dark { background: var(--ink); color: var(--white); }
.wp-block-group.section--dark p,
.wp-block-group.section--dark li,
.wp-block-group.section--dark .wp-block-heading { color: inherit; }
.wp-block-group.section--dark .muted { color: rgba(255, 255, 255, 0.72); }

.wp-block-group.section__inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.wp-block-columns.section__heading {
  gap: clamp(22px, 6vw, 78px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 54px);
}
.wp-block-columns.section__heading > .wp-block-column:first-child { flex-basis: 60%; flex-grow: 0; }
.wp-block-columns.section__heading > .wp-block-column:last-child { flex-basis: 40%; flex-grow: 0; }

@media (max-width: 980px) {
  .wp-block-columns.section__heading { flex-wrap: wrap; }
  .wp-block-columns.section__heading > .wp-block-column { flex-basis: 100% !important; }
}

/* Split columns inside a section (image + text) */
.wp-block-columns.split {
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}
.wp-block-columns.split > .wp-block-column { flex-basis: 0; flex-grow: 1; }

/* FAQ + contact grids built from columns */
.wp-block-columns.faq-grid {
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}
.wp-block-columns.faq-grid > .wp-block-column:first-child { flex-basis: 38%; flex-grow: 0; }

.wp-block-columns.contact-grid {
  gap: 16px;
}

/* Gutenberg list wrapper around our check list */
.wp-block-list.check-list { margin: 28px 0; }
.wp-block-list.check-list.two-column-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Editor wrappers for shortcode fragments don't leak margins */
.entry-content > .wp-block-group + .wp-block-group { margin-top: 0; }

/* -------------------------------------------------------------
 * 2026 polish - motion, depth, refined typography
 * ------------------------------------------------------------- */
@supports (animation-timeline: view()) {
  .proof,
  .process-card,
  .service-card,
  .case-card {
    animation: ap-fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }

  @keyframes ap-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 280ms;
  animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
}

::selection {
  background: var(--red);
  color: var(--white);
}

a:focus-visible,
button:focus-visible,
.button:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Refine kicker line */
.kicker { letter-spacing: 0.02em; }

/* Subtle gradient on H1 for hero - keeps brand red as accent */
.wp-block-cover.hero .wp-block-heading {
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Service / case card crisper hover */
.service-card,
.case-card {
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 220ms ease, border-color 220ms ease;
}

/* Sticky CTA on scroll for desktop */
.site-header {
  transition: box-shadow 220ms ease, background 220ms ease;
}
body.has-scrolled .site-header {
  box-shadow: 0 14px 38px rgba(17, 19, 24, 0.08);
}

/* -------------------------------------------------------------
 * Quick form status message (success/error after submit)
 * ------------------------------------------------------------- */
.ap-form-wrap { scroll-margin-top: 110px; }

.ap-form-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  border: 1px solid;
  animation: ap-msg-in 320ms cubic-bezier(0.32, 0.72, 0, 1) both;
}
.ap-form-msg::before {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  margin-top: -1px;
}
.ap-form-msg.is-success {
  border-color: rgba(35, 163, 109, 0.32);
  background: rgba(35, 163, 109, 0.08);
  color: #186e4a;
}
.ap-form-msg.is-success::before {
  content: "✓";
  background: var(--green);
  color: var(--white);
}
.ap-form-msg.is-error {
  border-color: rgba(237, 28, 36, 0.32);
  background: rgba(237, 28, 36, 0.08);
  color: var(--red-dark);
}
.ap-form-msg.is-error::before {
  content: "!";
  background: var(--red);
  color: var(--white);
}

/* On dark sections (compact form lives in .section--dark), invert colors */
.section--dark .ap-form-msg.is-success {
  background: rgba(35, 163, 109, 0.18);
  color: #b6f0d4;
  border-color: rgba(35, 163, 109, 0.32);
}
.section--dark .ap-form-msg.is-error {
  background: rgba(237, 28, 36, 0.18);
  color: #ffd0d3;
  border-color: rgba(237, 28, 36, 0.32);
}

@keyframes ap-msg-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Print friendliness baseline */
@media print {
  .utility, .floating-actions, .menu-toggle, .header__cta { display: none !important; }
  .site-header { position: static; box-shadow: none; }
}

/* -------------------------------------------------------------
 * CPT single (paslauga / darbas) - 2-column layout with sticky aside
 * ------------------------------------------------------------- */
.single-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background 180ms ease;
  backdrop-filter: blur(12px);
}
.single-back:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

@media (max-width: 980px) {
  .single-grid { grid-template-columns: 1fr; }
}

.single-aside {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 16px;
}

.single-aside__image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.single-aside__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.single-aside__panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(17, 19, 24, 0.06);
}

.single-aside__panel--problem {
  background: linear-gradient(180deg, #1a1f29 0%, #11151c 100%);
  color: var(--white);
  border-color: #1f2530;
}
.single-aside__panel--problem h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--white);
}
.single-aside__panel--problem h3::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.22);
  content: "";
}
.single-aside__panel--problem p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.55;
}
.single-aside__panel h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.single-aside__panel p {
  margin: 0 0 16px;
  color: var(--muted);
}
.single-aside__panel .button {
  width: 100%;
  margin-bottom: 8px;
}

.single-meta {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
}
.single-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 4px;
}
.single-meta dd {
  margin: 0;
  font-weight: 700;
}

.single-feature-image {
  margin: -42px -42px 28px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.single-feature-image img {
  width: 100%;
  height: clamp(240px, 38vw, 420px);
  object-fit: cover;
  display: block;
}

.cases-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 280px;
}
.cases-grid--three .case-card:first-child { grid-row: auto; }
@media (max-width: 980px) {
  .cases-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .cases-grid--three { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------
 * Tinklaraštis (blog) - card grid + reading view
 * ------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 220ms ease, border-color 220ms ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(237, 28, 36, 0.4);
  box-shadow: 0 22px 50px rgba(17, 19, 24, 0.10);
}
.blog-card__image {
  aspect-ratio: 16 / 10;
  background: #e7edf3;
  overflow: hidden;
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}
.blog-card:hover .blog-card__image img { transform: scale(1.04); }

.blog-card__body {
  display: grid;
  gap: 8px;
  padding: 22px 22px 26px;
}
.blog-card__cat {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(237, 28, 36, 0.08);
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 850;
}
.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.blog-card__meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 48px;
}
.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.blog-pagination a:hover { border-color: var(--red); color: var(--red); }
.blog-pagination .current {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.blog-article {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.blog-article .entry-content > * + * { margin-top: 18px; }
.blog-article h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 32px; }
.blog-article h3 { font-size: clamp(20px, 2.4vw, 26px); margin-top: 28px; }
.blog-article p { font-size: 18px; line-height: 1.65; }
.blog-article img { border-radius: var(--radius); }
.blog-article blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--red);
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 19px;
  font-style: italic;
}

.blog-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.blog-tag {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.blog-tag:hover { border-color: var(--red); color: var(--red); }

.blog-article__share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}
.blog-article__share a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
}
.blog-article__share a:hover { border-color: var(--red); color: var(--red); }

/* Hero with image background (cover-style for non-cover sections) */
.single-hero {
  position: relative;
  padding: clamp(64px, 9vw, 110px) 0;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
}
.single-hero--image::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(9, 11, 15, 0.88), rgba(9, 11, 15, 0.42)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  content: "";
}
.single-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  font-weight: 900;
}
.single-hero p.hero__lead {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

/* -------------------------------------------------------------
 * Breadcrumbs - sits at the top of the single hero
 * ------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
  padding-bottom: 1px;
}
.breadcrumbs a:hover { border-color: var(--white); color: var(--white); }
.breadcrumbs span[aria-current="page"] { color: var(--white); }

.single-hero:not(.single-hero--image) .breadcrumbs,
.archive-hero .breadcrumbs {
  color: rgba(255, 255, 255, 0.72);
}

/* -------------------------------------------------------------
 * Gallery - responsive masonry-ish grid + dialog lightbox
 * ------------------------------------------------------------- */
.ap-gallery {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.ap-gallery__heading {
  margin: 0 0 18px;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 850;
  letter-spacing: -0.005em;
}
.ap-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 780px) { .ap-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ap-gallery__grid { grid-template-columns: 1fr; } }

.ap-gallery__item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e7edf3;
  box-shadow: 0 6px 18px rgba(17, 19, 24, 0.06);
  position: relative;
  isolation: isolate;
}
.ap-gallery__item::after {
  position: absolute;
  inset: auto 8px 8px auto;
  z-index: 2;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.7);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  content: "+";
  opacity: 0;
  transition: opacity 220ms ease;
  backdrop-filter: blur(8px);
}
.ap-gallery__item:hover::after,
.ap-gallery__item:focus-visible::after { opacity: 1; }

.ap-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 360ms ease, filter 220ms ease;
}
.ap-gallery__item:hover img { transform: scale(1.04); filter: brightness(0.92); }

.ap-lightbox {
  width: min(94vw, 1280px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #0b0d11;
  color: var(--white);
  overflow: visible;
}
.ap-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(8px);
}
.ap-lightbox__image {
  display: block;
  width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 14px;
}
.ap-lightbox__close,
.ap-lightbox__prev,
.ap-lightbox__next {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  backdrop-filter: blur(12px);
  transition: background 180ms ease;
}
.ap-lightbox__close:hover,
.ap-lightbox__prev:hover,
.ap-lightbox__next:hover { background: rgba(255, 255, 255, 0.26); }
.ap-lightbox__close { top: -56px; right: 0; }
.ap-lightbox__prev  { top: 50%; left: -64px;  transform: translateY(-50%); font-size: 30px; }
.ap-lightbox__next  { top: 50%; right: -64px; transform: translateY(-50%); font-size: 30px; }
.ap-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 980px) {
  .ap-lightbox__prev  { left: 8px; top: auto; bottom: -56px; transform: none; }
  .ap-lightbox__next  { right: 8px; top: auto; bottom: -56px; transform: none; }
  .ap-lightbox__close { top: -56px; right: 8px; }
}

