/* ============================================
   Print-Image — Home demo pages (A/B/C/D)
   Shared layout + 4 palette variants
   Fonts: Tektur (headings) + Onest (body) — TechNova pairing
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Tektur:wght@400;500&family=Onest:wght@300;400;500;600&display=swap');

/* ---------- Base ---------- */
.pi-home { font-family: 'Onest', system-ui, -apple-system, Segoe UI, sans-serif; color: var(--pi-text); line-height: 1.55; font-weight: 300; font-feature-settings: "ss01", "cv11"; }
.pi-home * { box-sizing: border-box; }
.pi-home h1, .pi-home h2, .pi-home h3 { font-family: 'Tektur', 'Onest', system-ui, sans-serif; line-height: 1.15; color: var(--pi-heading); margin: 0 0 0.5em; font-weight: 400; letter-spacing: -0.02em; }
.pi-home h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
.pi-home h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-top: 0; }
.pi-home p { margin: 0 0 1em; }
.pi-home .pi-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.pi-home > section { padding: clamp(40px, 6vw, 80px) 0; }

/* Hide native Blocksy page-title "hero" + break entry-content out of Blocksy container on demo pages */
article:has(.pi-home) .hero-section { display: none !important; }
article:has(.pi-home) .entry-header { display: none !important; }
article:has(.pi-home) .entry-content { padding: 0 !important; max-width: none !important; }
article:has(.pi-home) > .ct-container,
article:has(.pi-home) .ct-container-narrow { max-width: none !important; padding: 0 !important; }
body:has(.pi-home) .entry-content > * { max-width: none !important; }

/* ---------- Demo ribbon ---------- */
.pi-demo-ribbon { position: fixed; top: 90px; right: 12px; background: var(--pi-accent); color: var(--pi-accent-text); padding: 8px 14px; font-weight: 400; border-radius: 8px; font-size: 0.85rem; z-index: 99; box-shadow: 0 4px 16px rgba(0,0,0,0.25); letter-spacing: 0.02em; }

/* ---------- Hero ---------- */
.pi-hero { position: relative; min-height: 640px; display: flex; align-items: center; background: var(--pi-hero-img) center/cover no-repeat; color: #fff; padding: 80px 0; overflow: hidden; }
.pi-hero::before { content: ""; position: absolute; inset: 0; background: var(--pi-hero-overlay); z-index: 0; }
.pi-hero .pi-container { position: relative; z-index: 1; max-width: 1240px; }
.pi-hero .pi-pill { display: inline-block; background: var(--pi-pill-bg); color: var(--pi-pill-text); font-size: 0.85rem; font-weight: 400; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; letter-spacing: 0.02em; backdrop-filter: blur(4px); }
.pi-hero h1 { color: #fff; margin-bottom: 20px; font-size: clamp(2rem, 5.2vw, 4.25rem); line-height: 1.05; letter-spacing: -0.03em; max-width: none; white-space: normal; }
.pi-hero p.pi-sub { font-size: clamp(1.05rem, 1.6vw, 1.35rem); max-width: 680px; opacity: 0.95; margin-bottom: 32px; }
.pi-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.pi-cta { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 10px; text-decoration: none; font-weight: 400; transition: transform .15s, box-shadow .15s, background-color .15s; border: none; cursor: pointer; font-size: 1rem; }
.pi-cta:hover { transform: translateY(-2px); }
.pi-cta-primary { background: var(--pi-accent); color: var(--pi-accent-text); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.pi-cta-primary:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.3); filter: brightness(1.05); }
.pi-cta-secondary { background: rgba(255,255,255,0.15); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); backdrop-filter: blur(6px); }
.pi-cta-secondary:hover { background: rgba(255,255,255,0.25); }

/* ---------- Trust strip ---------- */
.pi-trust { background: var(--pi-alt-bg); padding: 40px 0; border-top: 1px solid var(--pi-border); border-bottom: 1px solid var(--pi-border); }
.pi-trust-line { text-align: center; font-weight: 400; color: var(--pi-muted); margin-bottom: 24px; font-size: 0.98rem; letter-spacing: 0.02em; }
.pi-trust-line b { color: var(--pi-accent); font-weight: 400; }
.pi-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px 16px; align-items: center; justify-items: center; }
.pi-brands img { max-height: 42px; width: auto; opacity: 0.75; filter: grayscale(1) contrast(1.1); transition: opacity .2s, filter .2s; }
.pi-brands img:hover { opacity: 1; filter: none; }
.pi-brand-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pi-brand-list li { font-family: 'Tektur', 'Onest', system-ui, sans-serif; font-weight: 400; font-size: 0.92rem; letter-spacing: 0.02em; text-align: center; padding: 14px 10px; border-radius: 10px; transition: border-color .2s, background .2s, color .2s; }
@media (max-width: 600px) { .pi-brand-list { grid-template-columns: repeat(2, 1fr); } .pi-brand-list li { font-size: 0.85rem; padding: 12px 8px; } }

/* ---------- Fluent Forms on palette D (dark background) ---------- */
.pi-palette-d .fluentform,
.pi-palette-d .ff-el-group,
.pi-palette-d .ff-el-input--label label,
.pi-palette-d .ff_form_instance_wrapper { color: #E8EDF5; }
.pi-palette-d .fluentform .ff-el-input--label label { color: #fff; font-family: 'Tektur', 'Onest', sans-serif; font-weight: 400; font-size: 0.92rem; letter-spacing: 0.01em; margin-bottom: 6px; }
.pi-palette-d .fluentform input[type="text"],
.pi-palette-d .fluentform input[type="email"],
.pi-palette-d .fluentform input[type="tel"],
.pi-palette-d .fluentform textarea,
.pi-palette-d .fluentform select {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: #fff !important;
  padding: 11px 14px !important;
  border-radius: 8px !important;
  font-family: 'Onest', system-ui, sans-serif !important;
  font-size: 0.95rem !important;
  transition: border-color .15s, background .15s;
}
.pi-palette-d .fluentform input::placeholder,
.pi-palette-d .fluentform textarea::placeholder { color: rgba(255,255,255,0.35) !important; }
.pi-palette-d .fluentform input:focus,
.pi-palette-d .fluentform textarea:focus,
.pi-palette-d .fluentform select:focus {
  border-color: var(--pi-accent) !important;
  background: rgba(62,130,255,0.06) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(62,130,255,0.15) !important;
}
.pi-palette-d .fluentform select option { background: #0B111E; color: #fff; }
.pi-palette-d .fluentform .ff-btn,
.pi-palette-d .fluentform button[type="submit"] {
  background: var(--pi-accent) !important;
  color: #fff !important;
  border: none !important;
  padding: 13px 28px !important;
  border-radius: 10px !important;
  font-family: 'Tektur', 'Onest', sans-serif !important;
  font-weight: 400 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.01em !important;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.pi-palette-d .fluentform .ff-btn:hover { background: #5B94FF !important; transform: translateY(-1px); }
.pi-palette-d .fluentform .ff-el-form-check label { color: #C9D2E0; font-family: 'Onest', sans-serif; font-size: 0.88rem; }
.pi-palette-d .fluentform .ff-el-form-check input[type="checkbox"] { accent-color: var(--pi-accent); margin-right: 8px; }
.pi-palette-d .fluentform .ff-name-field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .pi-palette-d .fluentform .ff-name-field-wrapper { grid-template-columns: 1fr; } }
.pi-palette-d .fluentform .ff-message-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.4); color: #A7F3D0; padding: 16px 20px; border-radius: 10px; }
.pi-palette-d .fluentform .ff-el-is-error .text-danger { color: #FCA5A5 !important; font-size: 0.82rem; margin-top: 4px; }

/* ---------- Homepage: suppress Blocksy default page-title/hero-section ---------- */
body.home .ct-hero-section,
body.home .page-title,
body.home header.entry-header,
body.home .entry-header-background-wrapper { display: none !important; }
body.home .entry-content > .pi-home { margin-top: 0; }

/* ---------- Linked card (service cards on hub) ---------- */
.pi-card.pi-card-link { text-decoration: none; color: inherit; display: block; position: relative; }
.pi-card.pi-card-link:hover { transform: translateY(-2px); }
.pi-card-arrow { position: absolute; top: 20px; right: 22px; font-size: 1.35rem; color: var(--pi-accent); opacity: 0.6; transition: opacity .2s, transform .2s; }
.pi-card.pi-card-link:hover .pi-card-arrow { opacity: 1; transform: translateX(4px); }

/* ---------- Services / Cards ---------- */
.pi-services h2, .pi-advantages h2, .pi-faq h2, .pi-about h2, .pi-contact-cta h2, .pi-testimonials h2 { text-align: center; margin-bottom: 10px; }
.pi-section-lead { text-align: center; color: var(--pi-muted); max-width: 680px; margin: 0 auto 40px; font-size: 1.05rem; }
.pi-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.pi-card { background: #fff; border: 1px solid var(--pi-border); border-radius: 16px; padding: 28px 24px; transition: transform .2s, box-shadow .2s, border-color .2s; text-decoration: none; color: inherit; display: block; }
a.pi-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); border-color: var(--pi-accent); }
.pi-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: var(--pi-accent-soft); color: var(--pi-accent); border-radius: 14px; margin-bottom: 18px; font-size: 26px; }
.pi-card h3 { font-size: 1.15rem; margin: 0 0 10px; }
.pi-card p { color: var(--pi-muted); font-size: 0.95rem; margin: 0; }

/* ---------- Advantages ---------- */
.pi-advantages { background: var(--pi-alt-bg); }
.pi-card-number { font-family: 'Tektur', 'Onest', sans-serif; font-weight: 400; font-size: 2.1rem; color: var(--pi-accent); margin-bottom: 8px; line-height: 1; letter-spacing: -0.03em; }

/* ---------- About ---------- */
.pi-about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.pi-about img { width: 100%; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.14); display: block; }
.pi-about .pi-badges { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 26px; }
.pi-about .pi-badge { display: flex; flex-direction: column; }
.pi-about .pi-badge b { font-family: 'Tektur', sans-serif; font-weight: 500; font-size: 2rem; color: var(--pi-accent); line-height: 1; }
.pi-about .pi-badge span { color: var(--pi-muted); font-size: 0.9rem; margin-top: 4px; }
@media (max-width: 820px) { .pi-about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Testimonials ---------- */
.pi-testimonial .pi-quote { font-style: italic; color: var(--pi-text); margin-bottom: 18px; font-size: 1rem; }
.pi-testimonial .pi-author { font-weight: 400; color: var(--pi-heading); }
.pi-testimonial .pi-author-role { color: var(--pi-muted); font-size: 0.9rem; margin-top: 2px; }
.pi-placeholder-note { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--pi-border); font-size: 0.82rem; color: var(--pi-muted); font-style: italic; }

/* ---------- FAQ ---------- */
.pi-faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.pi-faq details { background: #fff; border: 1px solid var(--pi-border); border-radius: 12px; padding: 18px 22px; transition: border-color .2s, box-shadow .2s; }
.pi-faq details[open] { border-color: var(--pi-accent); box-shadow: 0 4px 14px rgba(0,0,0,0.05); }
.pi-faq summary { font-weight: 400; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--pi-heading); gap: 16px; }
.pi-faq summary::-webkit-details-marker { display: none; }
.pi-faq summary::after { content: "+"; font-size: 1.5rem; color: var(--pi-accent); font-weight: 300; transition: transform .2s; line-height: 1; flex-shrink: 0; }
.pi-faq details[open] summary::after { content: "\2212"; }
.pi-faq details p { margin: 12px 0 0; color: var(--pi-muted); }

/* ---------- Contact CTA ---------- */
.pi-contact-cta { background: var(--pi-dark-bg); color: #fff; text-align: center; }
.pi-contact-cta h2 { color: #fff; }
.pi-contact-cta p { max-width: 600px; margin: 0 auto 28px; opacity: 0.88; font-size: 1.08rem; }
.pi-contact-cta .pi-contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; justify-content: center; margin-top: 32px; max-width: 860px; margin-left: auto; margin-right: auto; text-align: left; }
.pi-contact-cta .pi-contact-info b { display: block; color: var(--pi-accent); font-size: 0.82rem; letter-spacing: 0.08em; margin-bottom: 6px; font-weight: 400; text-transform: uppercase; }
.pi-contact-cta .pi-contact-info div { color: rgba(255,255,255,0.92); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .pi-hero { min-height: 480px; padding: 60px 0; }
  .pi-hero p.pi-sub { font-size: 1.02rem; }
  .pi-ctas { flex-direction: column; align-items: stretch; }
  .pi-cta { justify-content: center; }
  .pi-demo-ribbon { top: auto; bottom: 12px; right: 12px; }
}

/* ============================================
   PALETTE A — Print-Image heritage (orange)
   ============================================ */
.pi-palette-a {
  --pi-text: #2C2C2C;
  --pi-heading: #1A1A1A;
  --pi-muted: #6E6E6E;
  --pi-border: #ECECEC;
  --pi-alt-bg: #FAFAFA;
  --pi-accent: #EE7F1A;
  --pi-accent-soft: #FEF2E4;
  --pi-accent-text: #fff;
  --pi-hero-img: url('https://print-image.com/wp-content/uploads/2026/04/704A0037.jpg');
  --pi-hero-overlay: linear-gradient(115deg, rgba(28,28,28,0.88) 0%, rgba(238,127,26,0.72) 100%);
  --pi-pill-bg: #EE7F1A;
  --pi-pill-text: #fff;
  --pi-dark-bg: #2C2C2C;
}

/* ============================================
   PALETTE B — TechBlue
   ============================================ */
.pi-palette-b {
  --pi-text: #1A2332;
  --pi-heading: #0B1F4A;
  --pi-muted: #5C6B82;
  --pi-border: #E3E7ED;
  --pi-alt-bg: #F5F8FC;
  --pi-accent: #1E6CFF;
  --pi-accent-soft: #E8F0FF;
  --pi-accent-text: #fff;
  --pi-hero-img: url('https://print-image.com/wp-content/uploads/2026/04/704A6850.jpg');
  --pi-hero-overlay: linear-gradient(115deg, rgba(11,31,74,0.90) 0%, rgba(30,108,255,0.68) 100%);
  --pi-pill-bg: rgba(255,255,255,0.18);
  --pi-pill-text: #fff;
  --pi-dark-bg: #0B1F4A;
}

/* ============================================
   PALETTE D — Dark TechNova (black + blue)
   ============================================ */
.pi-palette-d {
  --pi-text: #CBD5E1;
  --pi-heading: #FFFFFF;
  --pi-muted: #8A99B5;
  --pi-border: rgba(255,255,255,0.08);
  --pi-alt-bg: #0B111E;
  --pi-card-bg: #0F1729;
  --pi-accent: #3E82FF;
  --pi-accent-soft: rgba(62,130,255,0.14);
  --pi-accent-text: #fff;
  --pi-coral: #FF6B3D;
  --pi-hero-img: url('https://print-image.com/wp-content/uploads/2026/04/704A6850.jpg');
  --pi-hero-overlay: radial-gradient(1200px 600px at 78% 30%, rgba(62,130,255,0.28) 0%, rgba(0,0,0,0) 60%), radial-gradient(900px 500px at 10% 90%, rgba(30,60,160,0.35) 0%, rgba(0,0,0,0) 55%), linear-gradient(180deg, rgba(5,7,13,0.85) 0%, rgba(5,7,13,0.95) 100%);
  --pi-pill-bg: rgba(62,130,255,0.12);
  --pi-pill-text: #9CBAFF;
  --pi-dark-bg: #05070D;
}

/* Palette D — dark-surface overrides */
.pi-palette-d { background: #05070D; color: var(--pi-text); }
/* Extend dark bg to surrounding Blocksy chrome */
body:has(.pi-palette-d) { background: #05070D !important; }
body:has(.pi-palette-d) #main-container,
body:has(.pi-palette-d) .ct-container,
body:has(.pi-palette-d) .ct-container-narrow,
body:has(.pi-palette-d) .entry-content,
body:has(.pi-palette-d) article.post,
body:has(.pi-palette-d) article.page { background: #05070D !important; }
body:has(.pi-palette-d) .pi-home > section { background: transparent; }
/* Dark header for Palette D */
body:has(.pi-palette-d) header[data-id],
body:has(.pi-palette-d) [data-row],
body:has(.pi-palette-d) .site-header,
body:has(.pi-palette-d) .ct-header { background: #05070D !important; }
body:has(.pi-palette-d) .site-title,
body:has(.pi-palette-d) .site-title a,
body:has(.pi-palette-d) .ct-header [data-id="text"] a,
body:has(.pi-palette-d) header a { color: #fff !important; }
.pi-palette-d .pi-hero { color: #fff; }
.pi-palette-d .pi-pill { border: 1px solid rgba(62,130,255,0.35); backdrop-filter: blur(8px); }
.pi-palette-d .pi-trust { background: #0B111E; border-top-color: var(--pi-border); border-bottom-color: var(--pi-border); }
.pi-palette-d .pi-trust-line { color: #AEB9CC; }
.pi-palette-d .pi-brands img { filter: grayscale(1) brightness(2.2) contrast(1.1); opacity: 0.55; }
.pi-palette-d .pi-brands img:hover { opacity: 1; filter: grayscale(0) brightness(1.1) contrast(1); }
.pi-palette-d .pi-brand-list li { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); color: #C9D2E0; }
.pi-palette-d .pi-brand-list li:hover { background: rgba(62,130,255,0.08); border-color: rgba(62,130,255,0.45); color: #fff; }
.pi-palette-d .pi-services,
.pi-palette-d .pi-about,
.pi-palette-d .pi-testimonials,
.pi-palette-d .pi-faq { background: #05070D; }
.pi-palette-d .pi-advantages { background: #0B111E; }
.pi-palette-d .pi-card { background: var(--pi-card-bg); border-color: var(--pi-border); color: var(--pi-text); }
.pi-palette-d .pi-card h3 { color: #fff; }
.pi-palette-d .pi-card p { color: var(--pi-muted); }
.pi-palette-d a.pi-card:hover { border-color: var(--pi-accent); box-shadow: 0 12px 30px rgba(62,130,255,0.15), 0 0 0 1px var(--pi-accent); }
.pi-palette-d .pi-card-icon { background: var(--pi-accent-soft); color: var(--pi-accent); }
.pi-palette-d .pi-card-number { color: var(--pi-accent); }
.pi-palette-d .pi-about .pi-badge b { color: var(--pi-accent); }
.pi-palette-d .pi-about img { box-shadow: 0 24px 60px rgba(62,130,255,0.18), 0 0 0 1px rgba(62,130,255,0.12); }
.pi-palette-d .pi-testimonial .pi-quote { color: #D6DFEC; }
.pi-palette-d .pi-testimonial .pi-author { color: #fff; }
.pi-palette-d .pi-placeholder-note { border-top-color: var(--pi-border); color: var(--pi-muted); }
.pi-palette-d .pi-faq details { background: var(--pi-card-bg); border-color: var(--pi-border); }
.pi-palette-d .pi-faq details[open] { border-color: var(--pi-accent); box-shadow: 0 6px 20px rgba(62,130,255,0.12); }
.pi-palette-d .pi-faq summary { color: #fff; }
.pi-palette-d .pi-faq details p { color: var(--pi-muted); }
.pi-palette-d .pi-cta-primary { background: var(--pi-accent); color: #fff; box-shadow: 0 6px 20px rgba(62,130,255,0.38), 0 0 0 1px rgba(62,130,255,0.35); }
.pi-palette-d .pi-cta-primary:hover { box-shadow: 0 10px 30px rgba(62,130,255,0.55), 0 0 0 1px rgba(62,130,255,0.6); }
.pi-palette-d .pi-cta-secondary { background: transparent; border-color: rgba(255,255,255,0.25); color: #fff; }
.pi-palette-d .pi-cta-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.pi-palette-d .pi-contact-cta { background: radial-gradient(900px 400px at 80% 50%, rgba(62,130,255,0.18) 0%, rgba(0,0,0,0) 60%), #05070D; }
.pi-palette-d .pi-contact-cta .pi-contact-info b { color: var(--pi-accent); }
/* TechNova-style monospace accent on section leads */
.pi-palette-d .pi-section-lead { color: var(--pi-muted); }
.pi-palette-d .pi-services h2::before,
.pi-palette-d .pi-advantages h2::before,
.pi-palette-d .pi-about h2::before,
.pi-palette-d .pi-testimonials h2::before,
.pi-palette-d .pi-faq h2::before { content: "[ "; color: var(--pi-accent); font-weight: 400; }
.pi-palette-d .pi-services h2::after,
.pi-palette-d .pi-advantages h2::after,
.pi-palette-d .pi-about h2::after,
.pi-palette-d .pi-testimonials h2::after,
.pi-palette-d .pi-faq h2::after { content: " ]"; color: var(--pi-accent); font-weight: 400; }

/* TechNova font polish for Palette D */
.pi-palette-d .pi-pill { font-family: 'Tektur', 'Onest', sans-serif; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 400; }
.pi-palette-d .pi-hero h1 { font-weight: 400; letter-spacing: -0.035em; line-height: 1.05; }
.pi-palette-d .pi-hero .pi-sub { font-family: 'Onest', sans-serif; font-size: 1.1rem; color: #B6C2D8; max-width: 680px; }
.pi-palette-d .pi-cta { font-family: 'Tektur', 'Onest', sans-serif; letter-spacing: 0.01em; font-weight: 400; }
.pi-palette-d .pi-contact-info b { font-family: 'Tektur', sans-serif; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 400; }
.pi-palette-d .pi-trust-line { font-family: 'Tektur', 'Onest', sans-serif; letter-spacing: 0.02em; }
.pi-palette-d .pi-trust-line b { font-weight: 400; color: var(--pi-accent); }
.pi-palette-d .pi-demo-ribbon { font-family: 'Tektur', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }

/* ---------- Interior page helpers (about, service pages) ---------- */
.pi-hero.pi-hero-compact { min-height: 380px; padding: 64px 0 56px; }
.pi-hero.pi-hero-compact h1 { font-size: clamp(1.8rem, 3.8vw, 2.75rem); }
.pi-about-grid-reverse { direction: rtl; }
.pi-about-grid-reverse > * { direction: ltr; }
@media (max-width: 860px) { .pi-about-grid-reverse { direction: ltr; } }
.pi-about.pi-about-alt { background: var(--pi-alt-bg); }
.pi-trust h2 { margin-bottom: 8px; }
.pi-palette-d .pi-trust h2::before { content: "[ "; color: var(--pi-accent); font-weight: 400; }
.pi-palette-d .pi-trust h2::after { content: " ]"; color: var(--pi-accent); font-weight: 400; }

/* ============================================
   PALETTE C — Warm tech (teal)
   ============================================ */
.pi-palette-c {
  --pi-text: #1A2332;
  --pi-heading: #0F2C30;
  --pi-muted: #5E7278;
  --pi-border: #E5ECE9;
  --pi-alt-bg: #F7F4ED;
  --pi-accent: #0FB5AE;
  --pi-accent-soft: #E4F8F6;
  --pi-accent-text: #fff;
  --pi-hero-img: url('https://print-image.com/wp-content/uploads/2026/04/704A0042.jpg');
  --pi-hero-overlay: linear-gradient(115deg, rgba(26,35,50,0.87) 0%, rgba(15,181,174,0.62) 100%);
  --pi-pill-bg: #0FB5AE;
  --pi-pill-text: #fff;
  --pi-dark-bg: #1A2332;
}

/* ============================================
   Hero split layout + illustration (v2.1.0)
   ============================================ */
.pi-hero-split .pi-hero-grid {
  display: block;
  position: relative;
}
.pi-hero-split .pi-hero-text {
  min-width: 0;
}
.pi-hero-visual {
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 46%;
  max-width: 560px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.pi-hero-visual img { width: 100%; height: auto; display: block; }
.pi-hero-split .pi-hero-text { position: relative; z-index: 1; max-width: 100%; }
.pi-illo {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(62,130,255,0.18));
}
.pi-hero-compact .pi-illo {
  max-width: 440px;
}
@media (max-width: 880px) {
  .pi-hero-split .pi-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pi-hero-visual { display: none; }
  .pi-illo, .pi-hero-compact .pi-illo { max-width: 380px; margin: 0 auto; }
}

/* ============================================
   Photo gallery (v2.2.0)
   ============================================ */
.pi-gallery {
  padding: 72px 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(62,130,255,0.08), transparent 60%),
    linear-gradient(to bottom, rgba(5,7,13,0) 0%, rgba(5,7,13,0.3) 100%);
}
.pi-gallery h2 { text-align: center; }
.pi-gallery .pi-section-lead { text-align: center; margin-bottom: 36px; }
.pi-gallery-grid {
  display: grid;
  gap: 18px;
}
.pi-gallery-grid-2 { grid-template-columns: 1fr 1fr; }
.pi-gallery-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pi-gallery-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pi-photo {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--pi-border);
  background: var(--pi-card-bg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.pi-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
}
.pi-photo:hover img { transform: scale(1.04); filter: brightness(1.08); }
.pi-photo-portrait { aspect-ratio: 3 / 4; }
.pi-photo-landscape { aspect-ratio: 4 / 3; }
.pi-photo-wide { aspect-ratio: 16 / 9; }
.pi-photo-square { aspect-ratio: 1 / 1; }
.pi-photo-featured {
  aspect-ratio: 16 / 9;
  grid-column: 1 / -1;
  margin-bottom: 8px;
}
.pi-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,7,13,0.25), transparent 50%);
  pointer-events: none;
}
@media (max-width: 880px) {
  .pi-gallery-grid-3, .pi-gallery-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .pi-gallery-grid-2, .pi-gallery-grid-3, .pi-gallery-grid-4 { grid-template-columns: 1fr; }
}


/* ========= Palette D shimmer / flowing blue glow (v2.3.0) ========= */

/* Flowing shimmer layer for Palette D */
body:has(.pi-palette-d) {
  position: relative;
}
body:has(.pi-palette-d)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 30% at 12% 25%, rgba(62,130,255,0.28), transparent 65%),
    radial-gradient(ellipse 70% 40% at 88% 70%, rgba(30,108,255,0.32), transparent 68%),
    radial-gradient(ellipse 45% 22% at 55% 45%, rgba(120,170,255,0.14), transparent 72%);
  filter: blur(60px) saturate(1.1);
  animation: pi-shimmer-bg 18s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
body:has(.pi-palette-d) main,
body:has(.pi-palette-d) header,
body:has(.pi-palette-d) footer { position: relative; z-index: 1; }

@keyframes pi-shimmer-bg {
  0%   { transform: translate3d(-4%, -2%, 0) rotate(-1deg) scale(1.0); opacity: 0.85; }
  50%  { transform: translate3d(2%, 1%, 0) rotate(1.5deg) scale(1.08); opacity: 1; }
  100% { transform: translate3d(4%, 3%, 0) rotate(-0.5deg) scale(1.03); opacity: 0.9; }
}

/* Curving light streaks across hero sections */
.pi-palette-d .pi-hero,
.pi-palette-d .pi-about,
.pi-palette-d .pi-services,
.pi-palette-d .pi-testimonials,
.pi-palette-d .pi-contact,
.pi-palette-d .pi-faq { position: relative; overflow: hidden; isolation: isolate; }

.pi-palette-d .pi-hero::before,
.pi-palette-d .pi-about::before,
.pi-palette-d .pi-services::before,
.pi-palette-d .pi-contact::before {
  content: "";
  position: absolute;
  top: 50%; left: -10%;
  width: 120%; height: 220%;
  background:
    radial-gradient(ellipse 40% 60% at 20% 50%, rgba(62,130,255,0.55) 0%, rgba(62,130,255,0) 55%),
    radial-gradient(ellipse 35% 50% at 80% 55%, rgba(80,150,255,0.45) 0%, rgba(80,150,255,0) 58%),
    radial-gradient(ellipse 25% 40% at 55% 45%, rgba(150,190,255,0.35) 0%, rgba(150,190,255,0) 60%);
  transform: translateY(-50%) rotate(-8deg);
  filter: blur(50px);
  animation: pi-streak 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
  opacity: 0.75;
}

.pi-palette-d .pi-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(110deg, transparent 25%, rgba(62,130,255,0.08) 45%, rgba(120,170,255,0.15) 52%, rgba(62,130,255,0.08) 58%, transparent 80%);
  background-size: 250% 100%;
  animation: pi-sheen 9s linear infinite;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
}

@keyframes pi-streak {
  0%   { transform: translateY(-52%) rotate(-8deg) scale(1); opacity: 0.55; }
  50%  { transform: translateY(-48%) rotate(-6deg) scale(1.08); opacity: 0.9; }
  100% { transform: translateY(-50%) rotate(-9deg) scale(1.02); opacity: 0.7; }
}

@keyframes pi-sheen {
  0%   { background-position: 150% 0; }
  100% { background-position: -150% 0; }
}

/* Softer glow on cards + section edges */
.pi-palette-d .pi-card { position: relative; transition: box-shadow .4s ease, border-color .4s ease, transform .4s ease; }
.pi-palette-d .pi-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(62,130,255,0.22), 0 0 0 1px rgba(62,130,255,0.6), 0 0 60px -10px rgba(120,170,255,0.25); }

/* Thin accent underline under hero headline */
.pi-palette-d .pi-hero h1 { position: relative; display: inline-block; }
.pi-palette-d .pi-hero h1::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(62,130,255,0.85), transparent);
  filter: blur(0.5px);
  animation: pi-underline 6s ease-in-out infinite alternate;
}
@keyframes pi-underline {
  0%   { transform: scaleX(0.85); opacity: 0.6; }
  100% { transform: scaleX(1);    opacity: 1;   }
}

/* Section-edge curved light (TechNova-style sweeping arc) */
.pi-palette-d .pi-hero::before { box-shadow: 0 0 120px 40px rgba(62,130,255,0.15) inset; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  body:has(.pi-palette-d)::before,
  .pi-palette-d .pi-hero::before,
  .pi-palette-d .pi-hero::after,
  .pi-palette-d .pi-hero h1::after { animation: none !important; }
}

/* Mobile: throttle shimmer cost */
@media (max-width: 768px) {
  body:has(.pi-palette-d)::before { filter: blur(40px); opacity: 0.7; }
  .pi-palette-d .pi-hero::before { filter: blur(35px); }
}


/* ========= Pi-Impact: TechNova-style stats section (v2.4.0) ========= */
.pi-impact { position: relative; padding: clamp(80px, 12vw, 160px) 0; background: #05070D; color: #fff; overflow: hidden; isolation: isolate; }
.pi-impact::before {
  content: "";
  position: absolute;
  inset: -15% -10%;
  background:
    radial-gradient(ellipse 55% 50% at 10% 30%, rgba(62,130,255,0.45), transparent 60%),
    radial-gradient(ellipse 50% 45% at 90% 70%, rgba(30,108,255,0.42), transparent 62%),
    radial-gradient(ellipse 30% 40% at 50% 50%, rgba(160,200,255,0.18), transparent 65%);
  filter: blur(80px) saturate(1.15);
  animation: pi-impact-glow 20s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}
.pi-impact::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 30%, rgba(120,170,255,0.12) 48%, rgba(200,220,255,0.18) 50%, rgba(120,170,255,0.12) 52%, transparent 72%);
  background-size: 300% 100%;
  animation: pi-impact-sheen 14s linear infinite;
  z-index: -1;
  mix-blend-mode: screen;
  pointer-events: none;
}
@keyframes pi-impact-glow {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
  100% { transform: translate3d(4%, 2%, 0) scale(1.08); }
}
@keyframes pi-impact-sheen {
  0% { background-position: 180% 0; }
  100% { background-position: -180% 0; }
}

.pi-impact-inner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px); display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.pi-impact-eyebrow {
  display: inline-block;
  font-family: 'Tektur','Onest',sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8FAEE6;
  border-left: 2px solid #3E82FF;
  padding-left: 10px;
  margin-bottom: 24px;
}
.pi-impact-head h2 {
  font-family: 'Tektur','Onest',sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.12;
  color: #fff;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.pi-impact-head p {
  color: #AEB9CC;
  font-size: 15px;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 0 32px;
}
.pi-impact-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Tektur','Onest',sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: color .3s, border-color .3s, letter-spacing .3s;
}
.pi-impact-cta:hover { color: #8FAEE6; border-bottom-color: #3E82FF; letter-spacing: 0.22em; }
.pi-impact-marker { width: 10px; height: 10px; background: #FF6B1A; display: inline-block; transform: rotate(45deg); }

.pi-impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  grid-template-rows: repeat(2, auto);
  gap: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px);
}
.pi-impact-stat { position: relative; padding: 4px 0 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.pi-impact-stat b {
  display: block;
  font-family: 'Tektur','Onest',sans-serif;
  font-weight: 300;
  font-size: clamp(52px, 7.5vw, 104px);
  line-height: 0.95;
  color: #fff;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #C9D8FF 45%, #7FA4FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.pi-impact-stat:hover b { transform: translateY(-4px); }
.pi-impact-stat b sup {
  font-size: 0.45em;
  top: -0.45em;
  color: #7FA4FF;
  -webkit-text-fill-color: #7FA4FF;
  margin-left: 0.05em;
  font-weight: 300;
}
.pi-impact-stat .pi-impact-sep { display: inline-block; width: 0.08em; }
.pi-impact-label {
  font-family: 'Onest','Tektur',sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #AEB9CC;
  text-transform: none;
  letter-spacing: 0.01em;
  max-width: 18ch;
  display: block;
}
.pi-impact-chip { position: absolute; right: 0; bottom: 16px; width: 8px; height: 8px; background: #FF6B1A; display: block; }

/* Hide old .pi-badges strip if still rendered (so they don't visually duplicate) */
.pi-home .pi-badges { display: none; }

/* Responsive */
@media (max-width: 960px) {
  .pi-impact-inner { grid-template-columns: 1fr; gap: 48px; }
  .pi-impact-head p { max-width: 100%; }
}
@media (max-width: 560px) {
  .pi-impact-grid { grid-template-columns: 1fr; gap: 28px; }
  .pi-impact-stat b { font-size: clamp(44px, 14vw, 72px); }
}




/* ========= Header (v2.6.0): title centered below logo, no word-gap stretching ========= */
:root { --pi-logo-w: clamp(180px, 20vw, 260px); }

.ct-header .site-branding {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 18px !important;
  text-align: left !important;
}
.ct-header .site-branding .site-logo-container {
  display: block !important;
  width: var(--pi-logo-w);
  line-height: 0 !important;
  margin: 0 !important;
}
.ct-header .site-branding .site-logo-container img {
  display: block !important;
  width: var(--pi-logo-w) !important;
  height: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ct-header .site-branding .site-title-container {
  display: block !important;
  width: var(--pi-logo-w) !important;
  margin: 0 !important;
  padding: 14px 0 0 !important;
}
.ct-header .site-branding .site-title {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  line-height: 1.1 !important;
}
.ct-header .site-branding .site-title a {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  text-transform: uppercase;
  font-family: 'Tektur','Onest',sans-serif !important;
  font-size: clamp(10px, 1vw, 13px) !important;
  font-weight: 400 !important;
  letter-spacing: 0.32em !important;
  word-spacing: 0.1em !important;
  line-height: 1.2 !important;
  color: #0B111E !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  padding: 0 !important;
  margin: 0 !important;
  text-indent: 0.32em;            /* compensate for right letter-spacing to look centered */
}
/* Dark header (palette D): light title */
body:has(.pi-palette-d) .ct-header .site-branding .site-title a { color: #EAF0FB !important; }

/* Mobile: smaller logo + tighter tracking */
@media (max-width: 600px) {
  :root { --pi-logo-w: 180px; }
  .ct-header .site-branding .site-title a { font-size: 10px !important; letter-spacing: 0.22em !important; }
}


/* ========= Anchor scroll fix (v2.7.0) ========= */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
#repair-request, [id^="pi-"] { scroll-margin-top: 100px; }
.pi-advantages#repair-request { scroll-margin-top: 110px; }


/* ========= Fluent Forms — palette D theming (v2.8.0) ========= */
.pi-form-wrapper .ff-el-group {
  margin-bottom: 18px;
}
.pi-form-wrapper .ff-el-input--label label,
.pi-form-wrapper .ff-el-input--label > label {
  color: #E6EDF8 !important;
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 8px;
}
.pi-form-wrapper input[type="text"],
.pi-form-wrapper input[type="tel"],
.pi-form-wrapper input[type="email"],
.pi-form-wrapper input[type="number"],
.pi-form-wrapper select,
.pi-form-wrapper textarea {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #F4F7FC !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  font-family: 'Onest', sans-serif !important;
  font-size: 15px !important;
  transition: border-color .15s, background .15s, box-shadow .15s;
  box-shadow: none !important;
}
.pi-form-wrapper input[type="text"]::placeholder,
.pi-form-wrapper input[type="tel"]::placeholder,
.pi-form-wrapper input[type="email"]::placeholder,
.pi-form-wrapper textarea::placeholder {
  color: rgba(230,237,248,0.4) !important;
}
.pi-form-wrapper input:focus,
.pi-form-wrapper select:focus,
.pi-form-wrapper textarea:focus {
  border-color: #3E82FF !important;
  background: rgba(62,130,255,0.06) !important;
  box-shadow: 0 0 0 3px rgba(62,130,255,0.15) !important;
  outline: none !important;
}
.pi-form-wrapper textarea { min-height: 120px; resize: vertical; }
.pi-form-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%237FA4FF' d='M6 8 0 0h12z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 40px !important;
}
.pi-form-wrapper select option { background: #0B111E; color: #F4F7FC; }
.pi-form-wrapper .ff-el-form-check label,
.pi-form-wrapper .ff_item_lbl_check label {
  color: #C9D2E2 !important;
  font-size: 14px;
}
.pi-form-wrapper input[type="checkbox"] {
  accent-color: #3E82FF !important;
  width: 18px; height: 18px;
  margin-right: 8px;
  vertical-align: middle;
}
.pi-form-wrapper .ff-el-is-required.asterisk-right label:after,
.pi-form-wrapper .ff-el-is-required label:after {
  color: #7FA4FF !important;
}
.pi-form-wrapper .ff-btn,
.pi-form-wrapper button[type="submit"] {
  background: linear-gradient(135deg, #3E82FF 0%, #5B9BFF 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 14px 32px !important;
  font-family: 'Onest', sans-serif !important;
  font-weight: 400 !important;
  font-size: 15px !important;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(62,130,255,0.25);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.pi-form-wrapper .ff-btn:hover,
.pi-form-wrapper button[type="submit"]:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(62,130,255,0.35);
}
.pi-form-wrapper .ff-el-group-title,
.pi-form-wrapper .ff-el-tc-check-label {
  color: #C9D2E2 !important;
}
.pi-form-wrapper .ff-el-name-prefix .ff-el-input--label {
  margin-bottom: 4px;
}
.pi-form-wrapper .error, .pi-form-wrapper .ff-el-is-error .text-danger {
  color: #FF7E7E !important;
  font-size: 13px;
  margin-top: 6px;
}
.pi-form-wrapper .ff-message-success {
  background: rgba(62,130,255,0.08) !important;
  border: 1px solid rgba(62,130,255,0.35) !important;
  color: #E6EDF8 !important;
  padding: 20px !important;
  border-radius: 12px !important;
}
/* Name subfields side-by-side on desktop */
@media (min-width: 560px) {
  .pi-form-wrapper .ff-el-form-name,
  .pi-form-wrapper .ff-el-input--content > .ff-name-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

/* =========================================================================
   Floating Call Button (mobile, all pages)
   Added 2026-04-23
   Rendered via wp_footer hook in functions.php
   ========================================================================= */
.pi-float-call {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #3E82FF;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(62,130,255,0.45), 0 4px 8px rgba(0,0,0,0.18);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pi-float-call:hover,
.pi-float-call:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(62,130,255,0.55), 0 6px 12px rgba(0,0,0,0.2);
  color: #fff;
}
.pi-float-call:active {
  transform: translateY(0);
}
.pi-float-call-icon {
  position: relative;
  z-index: 2;
}
.pi-float-call-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(62,130,255,0.55);
  animation: pi-float-pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}
@keyframes pi-float-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(62,130,255,0.45); }
  70%  { box-shadow: 0 0 0 18px rgba(62,130,255,0);    }
  100% { box-shadow: 0 0 0 0    rgba(62,130,255,0);    }
}
/* Mobile-only */
@media (max-width: 900px) {
  .pi-float-call { display: inline-flex; }
}
/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .pi-float-call-pulse { animation: none; }
  .pi-float-call { transition: none; }
}
/* Avoid overlapping iOS safe-area */
@supports (padding: max(0px)) {
  .pi-float-call {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* Hide Blocksy auto page-title H1 on pages - content has its own H1 */
.page .hero-section,.page .hero-section .entry-header{display:none!important}

/* Footer-area social icons (injected after .pi-contact-info via the_content filter) */
.pi-socials { display:flex; gap:14px; justify-content:center; margin:8px 0 0; }
.pi-soc {
  width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:50%; background:rgba(255,255,255,0.08); color:var(--pi-accent);
  transition:transform .15s ease, background .15s ease, color .15s ease; text-decoration:none;
}
.pi-soc:hover { transform:translateY(-2px); background:var(--pi-accent); color:var(--pi-accent-text); }
.pi-soc:focus-visible { outline:2px solid var(--pi-accent); outline-offset:3px; }
.pi-palette-d .pi-contact-cta .pi-socials { margin-top:18px; }
@media (max-width:480px) { .pi-socials { gap:10px; } .pi-soc { width:42px; height:42px; } }

/* Contact page social block (under "Як нас знайти") */
.pi-socials-wrap { text-align:center; margin-top:32px; padding-top:28px; border-top:1px solid var(--pi-border); }
.pi-socials-heading { font-size:1.05rem; font-weight:400; color:var(--pi-muted); margin:0 0 14px; letter-spacing:0.02em; text-align:center; }

/* ---------- VIDEO FACADE (lazy-load YouTube) ---------- */
.pi-video-wrap{position:relative;border-radius:14px;overflow:hidden;background:#000;border:1px solid var(--pi-border);box-shadow:0 8px 28px rgba(0,0,0,.25)}
.pi-video-facade{position:relative;width:100%;aspect-ratio:16/9;background-size:cover;background-position:center;cursor:pointer;display:block;border:0;padding:0;color:#fff}
.pi-video-facade::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05) 0%,rgba(0,0,0,.35) 100%);transition:background .25s}
.pi-video-facade:hover::after{background:linear-gradient(180deg,rgba(0,0,0,.1) 0%,rgba(0,0,0,.25) 100%)}
.pi-video-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:84px;height:84px;border-radius:50%;background:rgba(0,0,0,.72);border:3px solid rgba(255,255,255,.95);display:grid;place-items:center;transition:transform .2s,background .2s;z-index:2}
.pi-video-facade:hover .pi-video-play{transform:translate(-50%,-50%) scale(1.08);background:var(--pi-accent,#3e82ff)}
.pi-video-play::before{content:"";display:block;width:0;height:0;border-left:22px solid #fff;border-top:14px solid transparent;border-bottom:14px solid transparent;margin-left:6px}
.pi-video-label{position:absolute;left:20px;bottom:18px;z-index:2;font-size:.95rem;letter-spacing:.02em;text-shadow:0 1px 4px rgba(0,0,0,.6)}
.pi-video-iframe{width:100%;aspect-ratio:16/9;border:0;display:block}
@media (max-width:560px){.pi-video-play{width:64px;height:64px;border-width:2px}.pi-video-play::before{border-left-width:18px;border-top-width:11px;border-bottom-width:11px;margin-left:5px}.pi-video-label{font-size:.85rem;left:14px;bottom:12px}}

/* ---------- TIMELINE / MILESTONES LIST ---------- */
.pi-timeline{list-style:none;padding:0;margin:20px 0 28px;display:grid;gap:10px}
.pi-timeline li{position:relative;padding:12px 16px 12px 76px;background:rgba(62,130,255,.06);border-left:3px solid var(--pi-accent,#3e82ff);border-radius:6px;line-height:1.55;color:var(--pi-text,inherit)}
.pi-timeline li b{position:absolute;left:14px;top:12px;color:var(--pi-accent,#3e82ff);font-weight:700;font-size:1rem;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.pi-history-lead{margin-top:24px!important;font-weight:600;color:var(--pi-text,inherit)}
@media (max-width:560px){.pi-timeline li{padding:36px 14px 12px 14px}.pi-timeline li b{position:static;display:block;margin-bottom:4px}}

/* ---------- HISTORY PHOTOS STACK (about-us right column) ---------- */
.pi-history-photos{display:grid;gap:18px}
.pi-history-photos img{width:100%;height:auto;border-radius:14px;display:block;box-shadow:0 6px 22px rgba(0,0,0,.18)}

/* ---------- MESSENGER FAB (sticky bottom-right widget, all pages) ---------- */
.pi-msg-fab{position:fixed;right:20px;bottom:20px;z-index:9990;font-family:inherit}
.pi-msg-fab *{box-sizing:border-box}
.pi-msg-fab__toggle{width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;background:#3e82ff;color:#fff;box-shadow:0 6px 22px rgba(0,0,0,.28);display:flex;align-items:center;justify-content:center;padding:0;transition:transform .25s ease,background .25s ease;position:relative}
.pi-msg-fab__toggle:hover{transform:scale(1.06)}
.pi-msg-fab__toggle svg{width:28px;height:28px;display:block;transition:transform .3s ease,opacity .2s ease}
.pi-msg-fab__toggle .pi-msg-fab__icon-close{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-90deg);opacity:0}
.pi-msg-fab.is-open .pi-msg-fab__toggle{background:#2a2f3a}
.pi-msg-fab.is-open .pi-msg-fab__toggle .pi-msg-fab__icon-open{opacity:0;transform:rotate(90deg)}
.pi-msg-fab.is-open .pi-msg-fab__toggle .pi-msg-fab__icon-close{opacity:1;transform:translate(-50%,-50%) rotate(0)}
.pi-msg-fab__list{position:absolute;right:3px;bottom:72px;list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;align-items:flex-end;opacity:0;pointer-events:none;transform:translateY(8px);transition:opacity .22s ease,transform .22s ease}
.pi-msg-fab.is-open .pi-msg-fab__list{opacity:1;pointer-events:auto;transform:translateY(0)}
.pi-msg-fab__list li{margin:0;padding:0}
.pi-msg-fab__btn{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;text-decoration:none;box-shadow:0 4px 14px rgba(0,0,0,.22);transition:transform .2s ease,box-shadow .2s ease;position:relative}
.pi-msg-fab__btn:hover{transform:scale(1.08);box-shadow:0 6px 18px rgba(0,0,0,.32);color:#fff}
.pi-msg-fab__btn svg{width:28px;height:28px;display:block;fill:currentColor}
.pi-msg-fab__btn .pi-msg-fab__label{position:absolute;right:64px;top:50%;transform:translateY(-50%);background:rgba(20,24,32,.92);color:#fff;font-size:13px;line-height:1;padding:7px 10px;border-radius:6px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s ease}
.pi-msg-fab__btn:hover .pi-msg-fab__label,.pi-msg-fab__btn:focus-visible .pi-msg-fab__label{opacity:1}
.pi-msg-fab--viber{background:#7360f2}
.pi-msg-fab--tg{background:#26a5e4}
.pi-msg-fab--wa{background:#25d366}
@media (max-width:560px){
  .pi-msg-fab{right:14px;bottom:14px}
  .pi-msg-fab__toggle{width:52px;height:52px}
  .pi-msg-fab__toggle svg{width:24px;height:24px}
  .pi-msg-fab__btn{width:48px;height:48px}
  .pi-msg-fab__btn svg{width:24px;height:24px}
  .pi-msg-fab__list{bottom:64px;gap:10px}
  .pi-msg-fab__btn .pi-msg-fab__label{display:none}
}
@media print{.pi-msg-fab{display:none!important}}

/* ─── Polylang language switcher — larger flag (default Polylang size 16×11 is too small) ─── */
.menu-item-language a,
li.lang-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.menu-item-language img,
li.lang-item img {
  width: 24px !important;
  height: auto !important;
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
  margin: 0;
}
/* Mobile menu spacing */
@media (max-width:767px){
  .menu-item-language img,
  li.lang-item img { width: 22px !important; }
}

/* ---------- MOBILE FAB STACKING — avoid pi-float-call overlap with pi-msg-fab ---------- */
@media (max-width: 900px) {
  /* On mobile, .pi-float-call is shown at bottom-right (56px @ bottom:16px right:16px).
     Lift the messenger FAB above it so they stack instead of overlap. */
  .pi-msg-fab { bottom: 88px; right: 16px; }
}
@media (max-width: 900px) and (max-width: 480px) {
  /* tighter gutters on narrow phones */
  .pi-msg-fab { bottom: 84px; }
}
@supports (padding: max(0px)) {
  @media (max-width: 900px) {
    .pi-msg-fab {
      bottom: max(88px, calc(72px + env(safe-area-inset-bottom)));
      right:  max(16px, env(safe-area-inset-right));
    }
  }
}
