/*
Theme Name: SAINT
Theme URI: https://saint.pl
Author: SAINT (Strategy for Artificial Intelligence and New Technologies)
Description: Custom block theme dla SAINT — butikowa firma doradczo-szkoleniowa AI. Mobile-first, performance-optimized, design w stylu Anthropic/Stripe.
Version: 1.3.10
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saint
Tags: block-theme, full-site-editing, custom-colors, custom-fonts, one-column, accessibility-ready, blog, business
*/

/* ============================================================
   SAINT THEME — additional styles
   Design tokens są w theme.json. Tutaj tylko style niemożliwe
   do wyrażenia przez theme.json + style logo, mikroanimacje.
   ============================================================ */

/* ---------- Logo lockup ---------- */

.saint-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  line-height: 1;
}

.saint-logo:hover {
  text-decoration: none !important;
}

.saint-wordmark {
  font-family: var(--wp--preset--font-family--inter);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 28px;
  line-height: 1;
  color: var(--wp--preset--color--text-primary);
  white-space: nowrap;
}

.saint-wordmark .ai {
  color: var(--wp--preset--color--accent);
}

.saint-mark {
  display: inline-flex;
  color: var(--wp--preset--color--accent);
  flex-shrink: 0;
}

.saint-mark svg {
  width: 30px;
  height: 30px;
  display: block;
}

/* Rozmiary logo — przez modyfikator klasy */
.saint-logo--xl { gap: 6px; }
.saint-logo--xl .saint-wordmark { font-size: 56px; }
.saint-logo--xl .saint-mark svg { width: 58px; height: 58px; }

.saint-logo--lg { gap: 4px; }
.saint-logo--lg .saint-wordmark { font-size: 40px; }
.saint-logo--lg .saint-mark svg { width: 42px; height: 42px; }

.saint-logo--md { gap: 3px; }
.saint-logo--md .saint-wordmark { font-size: 28px; }
.saint-logo--md .saint-mark svg { width: 30px; height: 30px; }

.saint-logo--sm { gap: 2px; }
.saint-logo--sm .saint-wordmark { font-size: 22px; }
.saint-logo--sm .saint-mark svg { width: 24px; height: 24px; }

/* Wersja na ciemnym tle (stopka) */
.saint-logo--dark .saint-wordmark {
  color: var(--wp--preset--color--bg);
}

/* ---------- Header / Navigation ---------- */

/* Sticky header z subtelnym tłem przy scrollu */
header.wp-block-template-part,
.wp-site-blocks > header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(250, 249, 246, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}

/* Linki w nawigacji — bez podkreślenia (w przeciwieństwie do linków w treści) */
.saint-nav-desktop a:where(:not(.wp-element-button)) {
  text-decoration: none;
  color: var(--wp--preset--color--text-primary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.saint-nav-desktop a:where(:not(.wp-element-button)):hover {
  color: var(--wp--preset--color--accent-text);
}

/* ---------- Hero — editorial polish ---------- */

.saint-section-hero h1 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.saint-section-hero .is-style-lead {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

/* (Usunięto stare border-top/bottom na sekcjach — sekcje są bez ramek, mają border-radius) */

/* Manifesto: pierwszy akapit jako lead, większy */
.saint-section-manifesto > p:first-of-type + p,
.saint-section-manifesto .wp-block-paragraph:nth-of-type(2) {
  font-size: 22px;
  font-weight: 500;
}

/* ---------- Tytuły kart (h3) — wymuszony Inter 700 + ciemny kolor dla pełnej czytelności ---------- */

.saint-section-problems h3.wp-block-heading,
.saint-section-services h3.wp-block-heading,
.saint-section-audience h3.wp-block-heading,
.saint-section-process h3.wp-block-heading,
.saint-section-trust h3.wp-block-heading,
.saint-section-principles h3.wp-block-heading,
.saint-section-insights h3.wp-block-heading,
.saint-insight-card h3.wp-block-heading,
.saint-insight-card .wp-block-post-title {
  color: var(--wp--preset--color--text-primary) !important;
  font-family: var(--wp--preset--font-family--inter) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

/* Linki w tytułach kart (np. Post Title z isLink:true) — też ciemne */
.saint-section-problems h3.wp-block-heading a,
.saint-insight-card h3.wp-block-heading a,
.saint-insight-card .wp-block-post-title a {
  color: var(--wp--preset--color--text-primary) !important;
  text-decoration: none;
}

/* ---------- Cookie consent banner ---------- */

#saint-cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9500;
  max-width: 380px;
  width: calc(100% - 40px);
  background-color: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--text-primary);
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--wp--preset--color--border-strong);
  box-shadow: 0 8px 24px rgba(26, 24, 21, 0.12);
  font-family: var(--wp--preset--font-family--inter);
  font-size: 13px;
  line-height: 1.5;
  transform: translateY(140%);
  transition: transform 0.3s ease;
}

#saint-cookie-banner.is-visible {
  transform: translateY(0);
}

#saint-cookie-banner p {
  margin: 0 0 12px;
  color: var(--wp--preset--color--text-secondary);
}

#saint-cookie-banner p strong {
  color: var(--wp--preset--color--text-primary);
}

#saint-cookie-banner a {
  color: var(--wp--preset--color--accent-text);
  text-decoration: underline;
}

#saint-cookie-banner .saint-cookie-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

#saint-cookie-banner button {
  flex: 1;
  border: none;
  cursor: pointer;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 6px;
  transition: background-color 0.15s ease;
}

#saint-cookie-banner .saint-cookie-accept {
  background-color: var(--wp--preset--color--accent-dark);
  color: var(--wp--preset--color--bg);
}

#saint-cookie-banner .saint-cookie-accept:hover {
  background-color: var(--wp--preset--color--accent-hover);
}

#saint-cookie-banner .saint-cookie-reject {
  background-color: transparent;
  color: var(--wp--preset--color--text-secondary);
  border: 1px solid var(--wp--preset--color--border-strong);
}

#saint-cookie-banner .saint-cookie-reject:hover {
  background-color: var(--wp--preset--color--bg-alt);
}

@media (max-width: 500px) {
  #saint-cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    width: auto;
  }
}

/* ---------- Scroll progress bar (musztardowy na samej górze) ---------- */

#saint-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background-color: var(--wp--preset--color--accent);
  z-index: 9999;
  transition: width 0.05s linear;
  box-shadow: 0 1px 3px rgba(168, 116, 30, 0.25);
  pointer-events: none;
}

/* ============================================================
   3 STYLE SEKCJI — rotacja A → B → C
   A: beżowe (bg-alt) z białymi kartami
   B: off-white (body bg) z kartami bez tła
   C: ciemne (text-primary) z jasnym tekstem
   ============================================================ */

/* --- Style A — beżowe (bg-alt) --- */
/* Wzmocnione specificity żeby wygrać z .has-*-background-color z patternów */
.wp-site-blocks .saint-section-problems,
.wp-site-blocks .saint-section-audience,
.wp-site-blocks .saint-section-trust,
.wp-site-blocks .saint-section-final-cta,
main .saint-section-problems,
main .saint-section-audience,
main .saint-section-trust,
main .saint-section-final-cta {
  background-color: var(--wp--preset--color--bg-alt) !important;
  color: var(--wp--preset--color--text-primary) !important;
}

/* Wszystkie dzieci Style A — ciemny tekst (override has-bg-color z patternu) */
.saint-section-final-cta,
.saint-section-final-cta * {
  color: var(--wp--preset--color--text-primary) !important;
}
.saint-section-final-cta .wp-element-button,
.saint-section-final-cta .wp-block-button__link {
  color: var(--wp--preset--color--bg) !important;
}

/* --- Style B — off-white (body bg), karty bez tła --- */
.saint-section-manifesto,
.saint-section-principles,
.saint-section-insights {
  background-color: var(--wp--preset--color--bg) !important;
  color: var(--wp--preset--color--text-primary) !important;
}

/* Karty w stylu B — beżowe tło bg-alt na off-white sekcji (subtelny kontrast) */
.saint-section-principles .wp-block-group.has-surface-background-color,
.saint-section-insights .wp-block-group.has-surface-background-color {
  background-color: var(--wp--preset--color--bg-alt) !important;
}

/* --- Style C — ciemne (text-primary) z jasnym tekstem --- */
.wp-site-blocks .saint-section-services,
.wp-site-blocks .saint-section-process,
.wp-site-blocks .saint-section-newsletter,
main .saint-section-services,
main .saint-section-process,
main .saint-section-newsletter {
  background-color: var(--wp--preset--color--text-primary) !important;
  color: var(--wp--preset--color--bg) !important;
}

/* Aggressive override: wszystko wewnątrz Style C — jasny tekst */
.saint-section-services,
.saint-section-services *:not(.wp-element-button):not(.wp-block-button__link):not(.is-style-eyebrow),
.saint-section-process,
.saint-section-process *:not(.wp-element-button):not(.wp-block-button__link):not(.is-style-eyebrow),
.saint-section-newsletter,
.saint-section-newsletter *:not(.wp-element-button):not(.wp-block-button__link):not(.is-style-eyebrow) {
  color: var(--wp--preset--color--bg) !important;
}

.saint-section-services h2,
.saint-section-services h3,
.saint-section-services h4,
.saint-section-services p,
.saint-section-services li,
.saint-section-services strong,
.saint-section-process h2,
.saint-section-process h3,
.saint-section-process h4,
.saint-section-process p,
.saint-section-process li,
.saint-section-process strong,
.saint-section-newsletter h2,
.saint-section-newsletter p {
  color: var(--wp--preset--color--bg) !important;
}

/* Eyebrow w stylu C — musztardowy accent (jasniejszy) */
.saint-section-services .is-style-eyebrow,
.saint-section-process .is-style-eyebrow,
.saint-section-newsletter .is-style-eyebrow {
  color: var(--wp--preset--color--accent) !important;
}

/* Karty w stylu C — subtelne ciemne accent (lekko jaśniejsze tło) */
.saint-section-services .wp-block-group.has-surface-background-color,
.saint-section-process .wp-block-group.has-surface-background-color {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--wp--preset--color--bg) !important;
}

/* Tytuły kart h3 w stylu C — jasne */
.saint-section-services .wp-block-group.has-surface-background-color h3,
.saint-section-process .wp-block-group.has-surface-background-color h3 {
  color: var(--wp--preset--color--bg) !important;
}

/* Eyebrows wewnątrz kart w stylu C ("01 — Doradztwo", "W RAMACH...") — musztardowe */
.saint-section-services .wp-block-group p.has-accent-text-color,
.saint-section-services .wp-block-group p.has-text-muted-color,
.saint-section-process .wp-block-group p.has-accent-text-color,
.saint-section-process .wp-block-group p.has-text-muted-color {
  color: var(--wp--preset--color--accent) !important;
}

/* Listy w stylu C — jasny tekst */
.saint-section-services ul.wp-block-list li,
.saint-section-process ul.wp-block-list li {
  color: var(--wp--preset--color--bg) !important;
}

/* Linki w stylu C — musztardowe jaśniejsze */
.saint-section-services a:not(.wp-element-button),
.saint-section-process a:not(.wp-element-button),
.saint-section-newsletter a:not(.wp-element-button) {
  color: var(--wp--preset--color--accent) !important;
}

/* Final CTA — był wcześniej ciemny (text-primary background z bloku), teraz beżowy */
.saint-section-final-cta * {
  color: var(--wp--preset--color--text-primary) !important;
}
.saint-section-final-cta .wp-block-button__link {
  color: var(--wp--preset--color--bg) !important;
}

/* ---------- Wszystkie nagłówki sekcji + eyebrow + lead — wyśrodkowane ---------- */

.saint-section-problems > .wp-block-group:first-child,
.saint-section-services > .wp-block-group:first-child,
.saint-section-audience > .wp-block-group:first-child,
.saint-section-principles > .wp-block-group:first-child,
.saint-section-process > .wp-block-group:first-child,
.saint-section-trust > .wp-block-group:first-child,
.saint-section-insights > .wp-block-group:first-child,
.saint-section-newsletter > .wp-block-group:first-child,
.saint-section-manifesto > .wp-block-group:first-child {
  text-align: center;
  max-width: 800px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.saint-section-problems > .wp-block-group:first-child h2,
.saint-section-services > .wp-block-group:first-child h2,
.saint-section-audience > .wp-block-group:first-child h2,
.saint-section-principles > .wp-block-group:first-child h2,
.saint-section-process > .wp-block-group:first-child h2,
.saint-section-trust > .wp-block-group:first-child h2,
.saint-section-insights > .wp-block-group:first-child h2,
.saint-section-newsletter > .wp-block-group:first-child h2,
.saint-section-problems > .wp-block-group:first-child p,
.saint-section-services > .wp-block-group:first-child p,
.saint-section-audience > .wp-block-group:first-child p,
.saint-section-principles > .wp-block-group:first-child p,
.saint-section-process > .wp-block-group:first-child p,
.saint-section-trust > .wp-block-group:first-child p,
.saint-section-insights > .wp-block-group:first-child p,
.saint-section-newsletter > .wp-block-group:first-child p {
  text-align: center !important;
}

/* ---------- Padding sekcji — zredukowany, mniej pustego miejsca ---------- */

.saint-section-hero,
.saint-section-services,
.saint-section-principles,
.saint-section-trust,
.saint-section-newsletter {
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.saint-section-hero {
  padding-top: clamp(40px, 7vh, 96px) !important;
  padding-bottom: clamp(32px, 5vh, 64px) !important;
}

.saint-section-problems,
.saint-section-manifesto,
.saint-section-services,
.saint-section-audience,
.saint-section-principles,
.saint-section-process,
.saint-section-trust,
.saint-section-insights,
.saint-section-newsletter,
.saint-section-final-cta {
  padding-top: clamp(28px, 4vw, 56px) !important;
  padding-bottom: clamp(28px, 4vw, 56px) !important;
}

/* Margin między sekcjami — mniejszy */
main.wp-block-group > * {
  margin-block-start: clamp(8px, 1.5vw, 24px) !important;
}
main.wp-block-group > :first-child {
  margin-block-start: 0 !important;
}

/* ---------- Sekcje z tłem jako "wyspy" z zaokrąglonymi rogami ---------- */

/* WSZYSTKIE sekcje (post-Hero) — spójne zaokrąglenia, max-width, brak ramek */
.saint-section-problems,
.saint-section-manifesto,
.saint-section-services,
.saint-section-audience,
.saint-section-principles,
.saint-section-process,
.saint-section-trust,
.saint-section-insights,
.saint-section-newsletter,
.saint-section-final-cta {
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: calc(100% - clamp(24px, 5vw, 64px));
  border-radius: 24px !important;
  border: none !important;
  border-width: 0 !important;
  border-color: transparent !important;
  overflow: hidden;
}

@media (max-width: 768px) {
  .saint-section-problems,
  .saint-section-manifesto,
  .saint-section-audience,
  .saint-section-process,
  .saint-section-insights,
  .saint-section-final-cta {
    margin-left: 8px !important;
    margin-right: 8px !important;
    border-radius: 16px !important;
  }
}

/* ---------- Karty — bez ramek, zaokrąglone, czytelne tła per styl ---------- */

/* Reset: wszystkie karty wewnątrz sekcji + insight cards — bez ramek, zaokrąglone */
.saint-section-problems .wp-block-group[style*="border-color"],
.saint-section-services .wp-block-group[style*="border-color"],
.saint-section-audience .wp-block-group[style*="border-color"],
.saint-section-process .wp-block-group[style*="border-color"],
.saint-section-trust .wp-block-group[style*="border-color"],
.saint-section-principles .wp-block-group[style*="border-color"],
.saint-section-insights .wp-block-group[style*="border-color"],
.saint-section-problems .wp-block-group.has-surface-background-color,
.saint-section-services .wp-block-group.has-surface-background-color,
.saint-section-audience .wp-block-group.has-surface-background-color,
.saint-section-process .wp-block-group.has-surface-background-color,
.saint-section-trust .wp-block-group.has-surface-background-color,
.saint-section-principles .wp-block-group.has-surface-background-color,
.saint-section-insights .wp-block-group.has-surface-background-color,
.saint-insight-card {
  border: none !important;
  border-width: 0 !important;
  border-color: transparent !important;
  border-style: none !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

/* Style A (beżowe tło bg-alt): karty białe (surface) na beżowym, brak ramek */
.saint-section-problems .wp-block-group.has-surface-background-color,
.saint-section-audience .wp-block-group.has-surface-background-color,
.saint-section-trust .wp-block-group.has-surface-background-color {
  background-color: var(--wp--preset--color--surface) !important;
}

/* Style B (off-white): karty z subtelnym beżowym akcentem dla widoczności */
.saint-section-principles .wp-block-group.has-surface-background-color,
.saint-section-insights .wp-block-group.has-surface-background-color {
  background-color: var(--wp--preset--color--bg-alt) !important;
}

/* Style C (ciemne text-primary): karty z subtelnym jasnym akcentem (rgba białe) */
.saint-section-services .wp-block-group.has-surface-background-color,
.saint-section-process .wp-block-group.has-surface-background-color {
  background-color: rgba(255, 255, 255, 0.06) !important;
}

/* ---------- Listy w kartach (Services, Audience, Process, Principles, Trust) — czytelność ---------- */

.saint-section-services .wp-block-group ul.wp-block-list,
.saint-section-services .wp-block-group ul.wp-block-list li,
.saint-section-audience .wp-block-group ul.wp-block-list,
.saint-section-audience .wp-block-group ul.wp-block-list li,
.saint-section-process .wp-block-group ul.wp-block-list,
.saint-section-process .wp-block-group ul.wp-block-list li,
.saint-section-principles .wp-block-group ul.wp-block-list,
.saint-section-principles .wp-block-group ul.wp-block-list li,
.saint-section-trust .wp-block-group ul.wp-block-list,
.saint-section-trust .wp-block-group ul.wp-block-list li {
  color: var(--wp--preset--color--text-primary) !important;
  font-family: var(--wp--preset--font-family--inter) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

/* Musztardowe bullets w listach kart */
.saint-section-services .wp-block-group ul.wp-block-list li::marker,
.saint-section-audience .wp-block-group ul.wp-block-list li::marker,
.saint-section-process .wp-block-group ul.wp-block-list li::marker,
.saint-section-principles .wp-block-group ul.wp-block-list li::marker,
.saint-section-trust .wp-block-group ul.wp-block-list li::marker {
  color: var(--wp--preset--color--accent) !important;
  font-size: 1.1em;
}

/* Eyebrow w kartach (np. "W RAMACH DORADZTWA") — wzmocnij kontrast */
.saint-section-services .wp-block-group p.has-text-muted-color,
.saint-section-audience .wp-block-group p.has-text-muted-color,
.saint-section-process .wp-block-group p.has-text-muted-color,
.saint-section-trust .wp-block-group p.has-text-muted-color,
.saint-section-principles .wp-block-group p.has-text-muted-color {
  color: var(--wp--preset--color--accent-text) !important;
  font-weight: 700 !important;
}

/* ---------- Mobile header — tylko logo + CTA (brak hamburger menu) ---------- */

/* Wyłączamy hamburger i drawer/overlay całkowicie */
.saint-menu-toggle,
#saint-mobile-overlay,
#saint-mobile-backdrop {
  display: none !important;
}

@media (max-width: 768px) {
  /* Padding sekcji mobile */
  .saint-section-hero,
  .saint-section-problems,
  .saint-section-manifesto,
  .saint-section-services,
  .saint-section-audience,
  .saint-section-principles,
  .saint-section-process,
  .saint-section-trust,
  .saint-section-insights,
  .saint-section-newsletter,
  .saint-section-final-cta {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  main, body {
    overflow-x: hidden;
  }
  .saint-logo--md .saint-wordmark { font-size: 22px; }
  .saint-logo--md .saint-mark svg { width: 24px; height: 24px; }
  .saint-logo--md { gap: 2px; }

  /* Header na mobile: ukryj linki "Insights | Kontakt", pokazuj tylko CTA */
  .saint-nav-desktop > p { display: none !important; }

  /* Mocno kompaktowy CTA na mobile, żeby zmieścił 'Umów konsultację' */
  .saint-nav-desktop .wp-block-button__link {
    font-size: 10px !important;
    padding: 7px 10px !important;
    white-space: nowrap !important;
    letter-spacing: 0 !important;
    border-radius: 5px !important;
  }

  /* Header padding zmniejszony — więcej miejsca na CTA */
  header.wp-block-group {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Header zawsze nowrap, żeby nie łamało logo na CTA */
  header.wp-block-group > .wp-block-group.is-layout-flex {
    flex-wrap: nowrap !important;
    gap: 12px !important;
  }
  .saint-nav-desktop {
    flex-shrink: 0 !important;
  }
}

/* ---------- Mikroanimacje ---------- */

@media (prefers-reduced-motion: no-preference) {
  .saint-fade-in {
    opacity: 0;
    transform: translateY(8px);
    animation: saintFadeIn 0.6s ease-out forwards;
  }

  @keyframes saintFadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ---------- Focus visible ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Skip link (a11y) ---------- */

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--wp--preset--color--accent-dark);
  color: white;
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  top: 0;
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
}

/* ---------- Buttony — uzupełnienie theme.json ---------- */

.wp-block-button__link {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wp-block-button.is-style-fill .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--accent-hover) !important;
}

/* ---------- Editorial typography ---------- */

.is-style-editorial {
  font-family: var(--wp--preset--font-family--newsreader);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.is-style-eyebrow {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent-text);
}

/* ---------- Mobile typography fix ---------- */

/* Wyłącz hyphens globalnie — żadne dzielenie słów myślnikami */
html, body, p, h1, h2, h3, h4, h5, h6, li, a, .wp-block-heading, .wp-block-paragraph {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
}

/* Nagłówki H1/H2 — clamp values nie wystają na mobile (414px) */
@media (max-width: 768px) {
  .saint-section-hero h1,
  .wp-block-heading {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: none !important;
  }
  .saint-section-hero h1 {
    font-size: clamp(2rem, 9vw, 3rem) !important;
    line-height: 1.1 !important;
  }
  /* h2 we wszystkich sekcjach */
  .saint-section-problems h2,
  .saint-section-manifesto h2,
  .saint-section-services h2,
  .saint-section-audience h2,
  .saint-section-principles h2,
  .saint-section-process h2,
  .saint-section-trust h2,
  .saint-section-insights h2,
  .saint-section-newsletter h2,
  .saint-section-final-cta h2 {
    font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
    line-height: 1.15 !important;
  }
  /* Eyebrow nie wystaje — zmniejszony */
  .is-style-eyebrow {
    font-size: 11px !important;
    word-spacing: -2px;
  }
}

/* Hero eyebrow — duży napis "STRATEGY FOR AI...", wyrównany do lewej, czarny */
.saint-section-hero .is-style-eyebrow {
  font-family: var(--wp--preset--font-family--inter) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  text-transform: uppercase !important;
  font-size: clamp(28px, 6vw, 56px) !important;
  color: var(--wp--preset--color--text-primary) !important;
  line-height: 0.98 !important;
  margin-bottom: 32px !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  display: block;
  max-width: 100%;
  white-space: normal;
  text-align: left !important;
}

/* "Artificial Intelligence" — wyróżnione musztardowo */
.saint-section-hero .is-style-eyebrow .hero-accent-text {
  color: var(--wp--preset--color--accent) !important;
}

/* Sekcja Hero — dekoracyjny sygnet SAINT w prawym tle */
.saint-section-hero {
  position: relative;
  overflow: hidden;
}

.saint-section-hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-width: 540px;
  height: 80%;
  background-image: url('assets/images/logo-mark.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.saint-section-hero > * {
  position: relative;
  z-index: 1;
}

/* Hero h1 ("AI bez chaosu.") — mniejszy i wyśrodkowany pod mega eyebrow */
.saint-section-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem) !important;
  text-align: center !important;
  margin-top: 0 !important;
}

.saint-section-hero .is-style-lead {
  text-align: center !important;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile override — hero eyebrow mniejszy */
@media (max-width: 768px) {
  .saint-section-hero .is-style-eyebrow {
    font-size: clamp(22px, 7vw, 40px) !important;
    margin-bottom: 20px !important;
  }
  .saint-section-hero::after {
    width: 80%;
    max-width: 360px;
    height: 60%;
    opacity: 0.07;
  }
}

/* Wycentruj na wszelki wypadek */
.saint-section-hero p.is-style-eyebrow {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

.is-style-lead {
  font-family: var(--wp--preset--font-family--newsreader);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.55;
  color: var(--wp--preset--color--text-secondary);
}

/* ---------- Fluent Forms — dopasowanie do palety SAINT ---------- */

/* Submit button: musztardowy zamiast domyślnego niebieskiego */
.fluentform .ff-btn-submit,
.fluentform button[type="submit"],
.fluentform input[type="submit"] {
  background-color: var(--wp--preset--color--accent-dark) !important;
  border: none !important;
  color: var(--wp--preset--color--bg) !important;
  font-family: var(--wp--preset--font-family--inter) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  letter-spacing: 0.01em !important;
  padding: 12px 28px !important;
  border-radius: 6px !important;
  transition: background-color 0.2s ease !important;
  cursor: pointer;
}

.fluentform .ff-btn-submit:hover,
.fluentform button[type="submit"]:hover,
.fluentform input[type="submit"]:hover {
  background-color: var(--wp--preset--color--accent-hover) !important;
}

/* Inputy + textarea: lekki border zgodny z paletą */
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform input[type="number"],
.fluentform input[type="url"],
.fluentform textarea,
.fluentform select {
  border: 1px solid var(--wp--preset--color--border-strong) !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  font-family: var(--wp--preset--font-family--inter) !important;
  font-size: 16px !important;
  background-color: var(--wp--preset--color--surface) !important;
  color: var(--wp--preset--color--text-primary) !important;
  transition: border-color 0.2s ease;
}

.fluentform input[type="text"]:focus,
.fluentform input[type="email"]:focus,
.fluentform input[type="tel"]:focus,
.fluentform input[type="number"]:focus,
.fluentform input[type="url"]:focus,
.fluentform textarea:focus,
.fluentform select:focus {
  border-color: var(--wp--preset--color--accent) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(168, 116, 30, 0.12) !important;
}

/* Labels */
.fluentform label.ff-el-input--label {
  font-family: var(--wp--preset--font-family--inter) !important;
  font-weight: 500 !important;
  color: var(--wp--preset--color--text-primary) !important;
  font-size: 14px !important;
  margin-bottom: 6px !important;
}

/* Required asterisk */
.fluentform .ff-el-is-required.asterisk-right label:after,
.fluentform .ff_required_mark {
  color: var(--wp--preset--color--accent) !important;
}

/* ---------- Insights card ---------- */

.saint-insight-card {
  background: var(--wp--preset--color--surface);
  border: 0.5px solid var(--wp--preset--color--border);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.saint-insight-card:hover {
  border-color: var(--wp--preset--color--border-strong);
  transform: translateY(-2px);
}

.saint-insight-card__category {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent-text);
  margin-bottom: 8px;
}

.saint-insight-card__title {
  font-family: var(--wp--preset--font-family--newsreader);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--wp--preset--color--text-primary);
  margin-bottom: 8px;
}

.saint-insight-card__excerpt {
  color: var(--wp--preset--color--text-secondary);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.saint-insight-card__meta {
  font-size: 13px;
  color: var(--wp--preset--color--text-muted);
}

/* ---------- Container max widths ---------- */

.saint-container-narrow {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.saint-container-medium {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
