/* BildPresse — Modern UI (v3)
   Ensure the site looks modern even on default block themes.
*/
:root{
  --bp-max: 1120px;
  --bp-pad: 22px;

  --bp-bg: #f6f7fb;
  --bp-surface: #ffffff;
  --bp-text: #0b1220;
  --bp-muted: rgba(11,18,32,.66);
  --bp-border: rgba(11,18,32,.10);

  --bp-primary: #2563eb;
  --bp-accent: #7c3aed;
  --bp-radius: 18px;

  --bp-shadow: 0 14px 40px rgba(11,18,32,.10);
  --bp-shadow-soft: 0 10px 26px rgba(11,18,32,.08);
}

html{ scroll-behavior:smooth; }
body{
  background: var(--bp-bg);
  color: var(--bp-text);
  line-height: 1.65;
  font-size: 17px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a{
  color: var(--bp-primary);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover{ color: #1d4ed8; }

/* Header / Nav (block themes) */
header.wp-block-template-part,
.wp-site-blocks > header{
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11,18,32,.08);
}
@supports (position: sticky){
  header.wp-block-template-part,
  .wp-site-blocks > header{
    position: sticky;
    top: 0;
    z-index: 50;
  }
}
.wp-block-site-title a{
  color: var(--bp-text) !important;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.wp-block-site-title a:hover{ color: #111827 !important; }

.wp-block-navigation .wp-block-navigation__container{ gap: 16px; }
.wp-block-navigation-item__content{
  text-decoration: none;
  color: rgba(11,18,32,.78);
  padding: 10px 12px;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.wp-block-navigation-item__content:hover{
  background: rgba(37,99,235,.10);
  color: var(--bp-text);
  transform: translateY(-1px);
}
.wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation-item.current_page_item > .wp-block-navigation-item__content{
  background: rgba(37,99,235,.14);
  color: var(--bp-text);
}

/* Content typography */
.entry-content > *{ margin-top: 0; }
.entry-content p{ max-width: 82ch; margin: 0 0 14px; }
.entry-content h1, .entry-content h2, .entry-content h3{
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.entry-content h1{ font-size: clamp(2.0rem, 3.5vw, 3.0rem); margin: 0 0 12px; }
.entry-content h2{ font-size: clamp(1.45rem, 2.2vw, 2.05rem); margin: 0 0 10px; }
.entry-content h3{ font-size: 1.25rem; margin: 0 0 8px; }
.entry-content ul{ margin: 10px 0 0; padding-left: 18px; }
.entry-content li{ margin: 6px 0; }

/* Our helpers */
.bp-wrap{ max-width: var(--bp-max); margin: 0 auto; padding: 0 var(--bp-pad); }
.bp-section{ padding: 26px 0; }

/* Hero */
.bp-hero{ padding: 44px 0 10px; position: relative; }
.bp-hero::before{
  content:"";
  position:absolute;
  inset: -10px -10px 0 -10px;
  background:
    radial-gradient(700px 240px at 12% 12%, rgba(37,99,235,.22), rgba(37,99,235,0) 60%),
    radial-gradient(680px 240px at 88% 18%, rgba(124,58,237,.18), rgba(124,58,237,0) 60%);
  pointer-events:none;
  z-index: 0;
}
.bp-hero > *{ position: relative; z-index: 1; }
.bp-hero p{ color: var(--bp-muted); font-size: 1.06rem; }

/* Cards */
.bp-cards.wp-block-columns{ gap: 18px; margin: 18px 0 6px; }
@media (max-width: 820px){ .bp-cards.wp-block-columns{ flex-direction: column; } }

.bp-card{
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  padding: 18px 18px 16px;
  box-shadow: var(--bp-shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bp-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--bp-shadow);
  border-color: rgba(37,99,235,.22);
}
.bp-card p{ color: var(--bp-muted); margin: 0; }

/* CTA */
.bp-cta{
  background: linear-gradient(135deg, rgba(37,99,235,.09), rgba(124,58,237,.07));
  border: 1px solid rgba(37,99,235,.18);
  border-radius: var(--bp-radius);
  padding: 18px;
  margin: 14px 0 34px;
  box-shadow: var(--bp-shadow-soft);
}
.bp-muted{ color: var(--bp-muted); }

.bp-contact{
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  padding: 18px;
  margin: 16px 0;
  box-shadow: var(--bp-shadow-soft);
}

/* Buttons */
.wp-block-button__link{
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0);
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, border-color .14s ease;
}
.wp-block-button__link:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37,99,235,.18);
}
.wp-block-button.is-style-outline .wp-block-button__link{
  background: transparent !important;
  border-color: rgba(11,18,32,.18) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover{
  border-color: rgba(37,99,235,.40) !important;
  box-shadow: 0 10px 24px rgba(11,18,32,.10);
}

/* Footer */
footer.wp-block-template-part,
.wp-site-blocks > footer{
  margin-top: 28px;
  background: rgba(255,255,255,.85);
  border-top: 1px solid rgba(11,18,32,.08);
}

/* Hide demo footer menus/lists if theme renders them */
footer .wp-block-page-list,
footer .wp-block-navigation,
.wp-site-blocks > footer .wp-block-page-list,
.wp-site-blocks > footer .wp-block-navigation{
  display: none !important;
}

/* Hide front page title */
.home .entry-title,
.home h1.entry-title{ display:none !important; }

/* Keep "Zaufali nam" hidden until ready */
.clients-carousel{ display:none; }

/* Remove theme/page auto titles (we keep H1 inside content) */
body.page .entry-header .entry-title,
body.page .wp-block-post-title,
body.page .entry-title{
  display:none !important;
}

/* Equal-height cards inside our .bp-cards columns */
.bp-cards.wp-block-columns{
  align-items: stretch;
}

.bp-cards.wp-block-columns > .wp-block-column{
  display: flex;
  flex-direction: column;
}

.bp-cards.wp-block-columns > .wp-block-column > .bp-card{
  flex: 1;
  height: 100%;
}
.bp-cards .bp-card > *:last-child{
  margin-bottom: 0;
}

.bp-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 1.55em;
  height: 1.55em;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(37,99,235,.10);
  color: rgba(37,99,235,.95);
  flex: 0 0 auto;
  transform: translateY(-1px);
}
.bp-ico svg{
  width: 1.05em;
  height: 1.05em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Align icon + title nicely */
.bp-contact-card h3{
  display:flex;
  align-items:center;
  gap: 0;
}
.bp-lead{ font-size: 1.08rem; color: rgba(11,18,32,.70); max-width: 70ch; }

/* ===== Global background (all pages) ===== */
body{
  background-color: var(--bp-bg);
  background-image:
    radial-gradient(1000px 320px at 12% -10%, rgba(37,99,235,.16), rgba(37,99,235,0) 60%),
    radial-gradient(1000px 320px at 88% -10%, rgba(124,58,237,.12), rgba(124,58,237,0) 60%);
  background-repeat: no-repeat;
}

/* ===== Full-width hero background (stretches to page edges) ===== */
.bp-hero{ position: relative; overflow: visible; }
.bp-hero::before{
  content:"";
  position:absolute;
  left:50%;
  top:-120px;                      /* reaches under the header */
  width:100vw;
  height: calc(100% + 170px);
  transform: translateX(-50%);
  background:
    radial-gradient(900px 260px at 12% 18%, rgba(37,99,235,.20), rgba(37,99,235,0) 60%),
    radial-gradient(900px 260px at 88% 18%, rgba(124,58,237,.16), rgba(124,58,237,0) 60%);
  pointer-events:none;
  z-index: 0;
}
.bp-hero > *{ position: relative; z-index: 1; }

/* ===== Hero split (use on Contact & About) ===== */
.bp-hero-split.wp-block-columns{
  align-items: center;
  gap: 26px;
}
@media (max-width: 820px){
  .bp-hero-split.wp-block-columns{ gap: 18px; }
}
.bp-hero-illus img{
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin-left: auto;
  filter: drop-shadow(0 18px 30px rgba(11,18,32,.10));
}

/* ===== Contact page small tweaks ===== */
.bp-lead{ font-size: 1.08rem; color: rgba(11,18,32,.70); max-width: 72ch; }

:where(.wp-site-blocks){
  padding-top: 0 !important;
}
:where(.wp-site-blocks) > .wp-block-spacer:first-child{
  display: none !important;
  height: 0 !important;
}

/* Extend hero glow higher (covers area under header) */
.bp-hero::before{
  top: -220px !important;
  height: calc(100% + 320px) !important;
}