/* Native WordPress content uses the approved site's typography. */
.vehicle-brands { background: var(--bg); text-align: center; padding-block: 56px; }
.vehicle-brands h2 { font-size: clamp(24px,2.5vw,32px); line-height: 1.25; color: var(--navy); }
.vehicle-brands > .container > p { margin: 14px auto 28px; color: var(--muted); max-width: 70ch; }
.vehicle-brand-grid { display: grid; grid-template-columns: repeat(11,minmax(0,1fr)); gap: 18px 14px; list-style: none; }
.vehicle-brand-grid li { min-width: 0; }
.vehicle-mark { display: flex; align-items: center; justify-content: center; position: relative; width: 100%; height: 76px; overflow: hidden; }
.vehicle-mark img { position: absolute; width: var(--art-size); height: var(--art-size); max-width: none; object-fit: contain; }
@media (max-width: 1120px) { .vehicle-brand-grid { grid-template-columns: repeat(6,minmax(0,1fr)); } }
@media (max-width: 600px) { .vehicle-brand-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px 10px; } }
@media (max-width: 359px) { .vehicle-brand-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
.contact-grid-with-map { grid-template-columns: minmax(0,.9fr) minmax(0,1fr) minmax(0,1.05fr); gap: 26px; }
.contact-grid-with-map > * { min-width: 0; }
.contact-grid-with-map .contact-title { font-size: clamp(28px,2.7vw,36px); }
.contact-grid-with-map .contact-list li { overflow-wrap: anywhere; }
.contact-grid-with-map .contact-form { padding: 28px 22px; }
.contact-map { min-width: 0; }
.contact-map .map-frame { display: block; width: 100%; height: 380px; border: 0; border-radius: var(--radius); background: var(--bg); }
.map-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding-block: 8px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.map-action .ico { width: 17px; height: 17px; }
.map-fallback { padding: 28px; border: 1px solid currentColor; border-radius: var(--radius); }
.work-card > .work-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px; overflow: hidden; }
.work-pair > figure { position: relative; min-width: 0; height: 100%; margin: 0; background: var(--bg); overflow: hidden; }
.work-card > .work-pair img { position: static; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.work-pair > figure > figcaption { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); padding: 3px 8px; border-radius: 5px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.4; }
@media (min-width: 901px) and (max-width: 1120px) {
    .contact-grid-with-map { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .contact-grid-with-map .contact-info { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .contact-grid-with-map { grid-template-columns: minmax(0,1fr); gap: 32px; }
    .contact-map .map-frame { height: 320px; }
}
@media (max-width: 560px) { .contact-map .map-frame { height: 280px; } }
.post-password-form { max-width: 640px; }
.post-password-form label { display: block; font-weight: 600; margin-bottom: 12px; }
.post-password-form input[type="password"] { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; margin-top: 8px; }
.post-password-form input[type="submit"] { border: 0; border-radius: 10px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; padding: 12px 18px; cursor: pointer; }

.article-body .wp-block-image { margin: 1.5rem 0; }
.article-body .wp-block-image img { max-width: 100%; height: auto; border-radius: 12px; }
.article-body .wp-block-image figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.article-body .wp-block-quote { margin-left: 0; }
.article-body .wp-block-heading { color: var(--ink); }
.cms-image.brand-image { position: relative; height: 100%; width: 100%; background: transparent; }
.pagination { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 36px; }
.pagination .page-numbers { padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; }
.pagination .current { background: var(--blue); color: white; border-color: var(--blue); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* Keep Cenovnik card content flexible and its CTA on the bottom baseline. */
.price-grid { grid-auto-rows: 1fr; }
.price-grid > .price-card > .price-value { min-height: 1.15em; }
.price-grid > .price-card > .price-unit { flex-grow: 1; }
.price-grid > .price-card > .btn { margin-top: auto; }

/* Owner feedback: keep the existing layout and give uploaded media room. */
/* Each logo reserves its own space in normal flow. A symbol uses its natural
   width instead of sitting at the left edge of an empty wordmark-sized slot. */
.site-header .logo, .site-footer .logo, .site-header .logo-mark, .site-footer .logo-mark, .site-header .logo-mark > .brand-image, .site-footer .logo-mark > .brand-image { position: static; inset: auto; transform: none; }
.site-header .logo-mark.logo-uploaded, .site-footer .logo-mark.logo-uploaded { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-start; width: auto; height: auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.site-header .logo-mark.logo-uploaded > .brand-image, .site-footer .logo-mark.logo-uploaded > .brand-image { display: block; flex: 0 0 auto; min-width: 0; min-height: 0; max-width: none; max-height: none; width: auto; object-fit: contain; object-position: left center; border-radius: 0; }
.site-header .logo-mark.logo-uploaded > .brand-image { width: 58px; height: 58px; object-position: center; }
.site-footer .logo-mark.logo-uploaded > .brand-image { width: 64px; height: 64px; object-position: center; }
.site-footer .footer-brand { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.site-footer .footer-brand > .logo { flex: none; width: fit-content; max-width: 100%; margin: 0 0 20px; }
.site-footer .footer-brand > .logo + p { margin-top: 0; }
.brand-lockup { flex-shrink: 0; gap: 12px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.brand-lockup .logo-text { display: block; flex: none; }
.brand-lockup .logo-text strong { display: block; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; color: var(--navy); }
.brand-lockup .brand-service { color: var(--navy); }
/* The footer uses light brand lettering directly on its existing dark background. */
.site-footer .footer-brand > .brand-lockup { gap: 14px; margin-bottom: 24px; }
.site-footer .brand-lockup .logo-text strong { font-size: 30px; color: #fff; }
.site-footer .brand-lockup .brand-service { color: #fff; }
.logo-text .accent { color: var(--blue); }
.header-inner { gap: 18px; }
.main-nav .nav-link { color: var(--navy); }
.main-nav .nav-link:is(:hover,:focus-visible,.is-active,[aria-current="page"]) { color: var(--blue); }
.nav-link:focus-visible::after { transform: scaleX(1); }

.hero-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
.hero-visual:has(.cms-image) { min-height: 460px; }
.hero-visual .cms-image.img-ph-hero { height: auto; min-height: 460px; display: grid; align-items: center; padding: clamp(16px,2.2vw,32px) clamp(24px,3.2vw,46px) clamp(16px,2.2vw,32px) clamp(16px,2.2vw,32px); background: linear-gradient(150deg,#EDF2FA,#E1E9F6); border: 1px solid var(--line); overflow: visible; }
/* The uploaded wide artwork has empty space on its left. Frame its right-hand
   subject without stretching it or changing the Media Library asset. */
.hero-visual .cms-image.img-ph-hero img { position: relative !important; inset: auto !important; width: 100% !important; height: auto !important; aspect-ratio: 5 / 4; max-height: 580px; object-fit: cover; object-position: right center; border-radius: 18px; }
.hero-visual:has(.cms-image) .hero-blob { inset: 6% -3% -4% 10%; opacity: .08; }
.hero-visual:has(.cms-image) .hero-ring { display: none; }
.about-col .cms-image, .causes-grid:has(.causes-copy) > .cms-image { height: auto; background: transparent; }
.about-col .cms-image img, .causes-grid:has(.causes-copy) > .cms-image img { position: relative !important; inset: auto !important; width: 100% !important; height: auto !important; max-height: 520px; object-fit: contain; object-position: center; }
.feature-ico .feature-image { width: 48px; height: 48px; object-fit: contain; object-position: center; }
.feature-card .sj-prose { font-size: 14px; color: var(--muted); line-height: 1.55; }
.offer-card .sj-prose, .review-card .sj-prose { font-size: 14.5px; line-height: 1.6; }
.sj-prose { overflow-wrap: anywhere; }
.sj-prose > p { margin: 0; font: inherit; color: inherit; }
.sj-prose > p + p { margin-top: .65em; }
.feature-card .sj-prose > p + p { margin-top: .4em; }
.faq-a > .sj-prose, .faq-answer-inner > .sj-prose { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }
.faq-a .sj-prose > p { padding: 0; }
.cta-strip-text .sj-prose { font-size: 14px; opacity: .85; }
.lightbox-note { white-space: pre-line; overflow-wrap: anywhere; }
.service-card-description { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 0 14px; overflow-wrap: anywhere; }

/* Compact reviews retain their entire text in a keyboard-scrollable quote. */
.testimonials-grid { grid-template-columns: repeat(4,calc((100% - 48px)/4)); grid-auto-flow: column; grid-auto-columns: calc((100% - 48px)/4); gap: 16px; align-items: stretch; overflow-x: auto; padding: 4px 4px 14px; margin-inline: -4px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-blue) transparent; }
.review-card { min-width: 0; padding: 20px 18px; scroll-snap-align: start; }
.review-card .stars { margin-bottom: 10px; }
.review-card > .review-copy { font-size: 14.5px; line-height: 1.55; max-height: 9.3em; overflow-y: auto; overflow-wrap: anywhere; scrollbar-width: thin; padding-right: 4px; margin-bottom: 14px; }
.review-card .review-copy > p { font: inherit; color: inherit; }
.review-card footer { margin-top: auto; padding-top: 12px; min-height: 51px; align-items: center; }
.review-card footer > div { min-width: 0; overflow-wrap: anywhere; }
.review-copy:focus-visible, .testimonials-grid:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* Three work cards use the full track; the detail page keeps its two arrows. */
.works-track { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; align-items: start; }
.works-track:has(> .work-arrow) { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); gap: 16px; align-items: center; }
.work-card { min-width: 0; }
.work-card > figcaption { margin-top: 16px; text-align: left; }
.work-card > figcaption strong { display: block; min-height: 2.9em; font-size: 17px; line-height: 1.45; font-weight: 700; overflow-wrap: anywhere; }
.work-card > figcaption span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.work-card .img-ph-work, .gallery-item { transition: transform .26s var(--motion-ease),box-shadow .26s ease; }
.gallery-meta strong { font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
/* Real owner titles and categories need separate rows and the full card width. */
.gallery-grid { align-items: stretch; }
.gallery-item { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.gallery-meta { flex: 1; flex-direction: column; align-items: flex-start; justify-content: flex-start; width: 100%; min-width: 0; }
.gallery-meta strong { display: block; width: 100%; min-width: 0; white-space: normal; overflow-wrap: break-word; word-break: normal; }
.gallery-tag { max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: break-word; word-break: normal; line-height: 1.5; }
.filter-bar .chip[data-filter] { max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: break-word; word-break: normal; }
/* Uploaded images and placeholders share one media box in each card layout. */
.gallery-item > .img-ph, .gallery-item > .gallery-image { flex: none; width: 100%; height: auto; aspect-ratio: 8 / 5; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.works-track:not(:has(> .work-arrow)) { align-items: stretch; }
.work-card > .img-ph-work { flex: none; width: 100%; height: auto; aspect-ratio: 1 / .92; }
.gallery-item > .gallery-image img, .work-card > .cms-image.img-ph-work img { object-fit: contain; object-position: center; }
.work-card > figcaption strong, .work-card > figcaption span { white-space: normal; overflow-wrap: break-word; word-break: normal; }
@media (hover: hover) and (pointer: fine) {
    .work-card:is(:hover,:focus-within) .img-ph-work, .gallery-item:is(:hover,:focus-visible) { transform: translateY(-9px) scale(1.02); box-shadow: 0 18px 32px rgba(16,24,40,.16); }
    .work-card:is(:hover,:focus-within) .cms-image img, .gallery-item:is(:hover,:focus-visible) .cms-image img { transform: scale(1.055); }
}
@media (max-width: 1120px) and (min-width: 561px) {
    .testimonials-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-flow: row; overflow-x: visible; }
    .works-track:has(> .work-arrow) { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 560px) {
    .testimonials-grid { display: flex; }
    .review-card { flex: 0 0 88%; }
    .works-track, .works-track:has(> .work-arrow) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 16px; }
    .work-card > figcaption strong { font-size: 16px; }
}
/* Keep the complete phone label at normal desktop widths. */
@media (min-width: 1121px) and (max-width: 1280px) {
    .site-header .header-phone .phone-text { display: flex; }
    .site-header .header-inner { column-gap: 12px; }
    .site-header .main-nav .nav-link { padding-inline: 6px; }
    .site-header .header-actions { gap: 12px; }
    .site-header .btn-header { padding-inline: 16px; }
}
@media (hover: none) {
    .work-card:is(:hover,:focus-within) .img-ph-work, .gallery-item:is(:hover,:focus-visible), .work-card:is(:hover,:focus-within) .cms-image img, .gallery-item:is(:hover,:focus-visible) .cms-image img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .work-card .img-ph-work, .gallery-item, .work-card:is(:hover,:focus-within) .cms-image img, .gallery-item:is(:hover,:focus-visible) .cms-image img { transition: none; transform: none !important; }
}

@media (min-width: 901px) {
    .site-header .header-inner { column-gap: 16px; }
    .site-header .brand-lockup .logo-text strong { font-size: 29px; font-weight: 800; }
    .site-header .main-nav { flex: 0 0 auto; flex-wrap: nowrap; gap: 2px; }
    .site-header .has-brand-image + .main-nav { margin-left: 0; }
    .site-header .main-nav .nav-link { flex-shrink: 0; white-space: nowrap; padding-inline: 8px; }
    .site-header .header-actions { white-space: nowrap; }
    .hero-trust { display: grid; grid-template-columns: max-content max-content max-content; justify-content: space-between; gap: 14px 10px; }
    .hero-trust li { justify-content: center; }
    .hero-trust li:nth-child(4) { grid-column: 2; font-size: 19.5px; gap: 11.7px; white-space: nowrap; justify-self: center; }
    .hero-trust li:nth-child(4) .ico { width: 27.3px; height: 27.3px; }
}
@media (min-width: 901px) and (max-width: 1280px) {
    .header-phone .phone-text { display: none; }
    .header-inner, .header-actions { gap: 12px; }
    .nav-link { padding-inline: 9px; }
    .hero-trust { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .hero-trust li { font-size: 13px; gap: 5px; }
    .hero-trust li:nth-child(4) { font-size: 16.9px; white-space: normal; }
}
@media (max-width: 900px) {
    .site-header .logo-mark.logo-uploaded > .brand-image, .site-footer .logo-mark.logo-uploaded > .brand-image { width: 50px; height: 50px; }
    .site-header .brand-lockup .logo-text strong, .site-footer .brand-lockup .logo-text strong { font-size: 24px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual:has(.cms-image), .hero-visual .cms-image.img-ph-hero { min-height: 0; }
    .hero-visual:has(.cms-image) .hero-blob { inset: 8% 0 -4% 10%; }
    .hero-visual .cms-image.img-ph-hero img { max-height: 480px; }
    .header-actions { margin-left: auto; }
    .hero-trust li:nth-child(4) { font-size: 18.2px; }
    .hero-trust li:nth-child(4) .ico { width: 27.3px; height: 27.3px; }
}
@media (min-width: 901px) and (max-width: 1120px) {
    .header-actions .btn-header { display: none; }
}
@media (max-width: 560px) {
    .site-header .brand-lockup { gap: 8px; }
    .site-header .logo-mark.logo-uploaded > .brand-image { width: 44px; height: 44px; }
    .site-header .brand-lockup .logo-text strong { font-size: 22px; }
    .site-footer .logo-mark.logo-uploaded > .brand-image { width: 44px; height: 44px; }
    .site-footer .brand-lockup .logo-text strong { font-size: 22px; }
    .header-inner, .header-actions { gap: 10px; }
    .hero-trust li:nth-child(4) { grid-column: 1 / -1; justify-content: center; }
    .hero-visual .cms-image.img-ph-hero img { max-height: 420px; }
}
