/*
 * Automate Leaders – dodatki do arkusza głównego (assets/vendor/css/style.css).
 *
 * Wyłącznie elementy, których arkusz główny nie ma: logo kodowe, ikony SVG motywu,
 * formularz krokowy, toast, modal, licznik do terminu, treść z edytora WP,
 * dostępność. Kolory ze zmiennych motywu (--theme-color1..4) – zmiana palety
 * w jednym miejscu obejmuje także te elementy.
 */

/* ─── Dostępność ─────────────────────────────────────────────── */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; left: 16px; top: 16px; z-index: 100000; width: auto; height: auto; clip: auto; padding: 12px 22px; background: var(--theme-color1); color: var(--theme-color2); border-radius: 30px; font-weight: 600; }
:focus-visible { outline: 3px solid var(--theme-color1); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ─── Logo kodowe Automate Leaders ────────────────────────────────────── */
.al-logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.al-logo svg { width: 44px; height: 44px; flex-shrink: 0; }
/* Znak: kafel, linia monogramu „AL” i węzeł; na ciemnym tle kafel w niebieskim marki */
.al-logo__tile { fill: var(--theme-color2); }
.al-logo__a { stroke: #fff; }
.al-logo__node { fill: var(--theme-color1); stroke: var(--theme-color2); }
.al-logo--dark .al-logo__tile { fill: var(--theme-color3); }
.al-logo--dark .al-logo__node { stroke: var(--theme-color3); }
/* Napis w jednej linii: automate (lżejsze) + leaders (pogrubione, akcent) */
.al-logo__text { font-family: var(--heading-font-family, "Inter"), sans-serif; font-size: 24px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--theme-color2); white-space: nowrap; }
.al-logo__text b { font-weight: 800; color: var(--theme-color3); }
.al-logo--dark .al-logo__text { color: #fff; }
.al-logo--dark .al-logo__text b { color: var(--theme-color1); }
.al-logo-img { max-height: 48px; width: auto; }

/* ─── Ikony SVG motywu w miejscach ikon fontowych ───── */
.al-svg-icon { width: 1em; height: 1em; display: inline-block; vertical-align: middle; }
.service-icon .al-svg-icon, .choose-us-block-content1 .icon .al-svg-icon, .funfact-box .icon .al-svg-icon, .about-section .info .icon .al-svg-icon { width: 1em; height: 1em; }
.al-feature-icon { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 50%; background: var(--theme-color1); color: var(--theme-color2); font-size: 64px; max-width: 150px; margin: 0 auto; }

/* ─── Pas „logotypów”: nazwy obszarów, gdy brak logotypów partnerów ─── */
.al-brand-word { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--theme-color2); white-space: nowrap; }
.al-brand-word .al-svg-icon { color: var(--theme-color3); font-size: 22px; }

/* ─── Opinie: stan bez opinii ────────────────────────────────── */
.al-quotes-empty { padding: 40px; border-radius: 30px; background: rgba(255, 255, 255, .08); color: #fff; }
.al-quotes-empty p { color: #fff; font-size: 18px; line-height: 1.6; margin-bottom: 28px; }

/* ─── Licznik do najbliższego szkolenia ──────────────────────── */
.al-countdown-wrap { margin: 10px 0 40px; }
.al-countdown { position: relative; overflow: hidden; display: grid; gap: 30px; align-items: center; padding: 40px; border-radius: 30px; background: var(--theme-color2); color: #fff; }
@media (min-width: 992px) { .al-countdown { grid-template-columns: 1.1fr 1fr; padding: 50px 60px; } }
.al-countdown .sub-title { color: var(--theme-color1); text-transform: uppercase; letter-spacing: .12em; font-size: 14px; font-weight: 600; }
.al-countdown h3 { color: #fff; margin: 10px 0 8px; }
.al-countdown__meta { color: rgba(255, 255, 255, .7); margin-bottom: 26px; }
.al-countdown__units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; text-align: center; }
.al-countdown__units li { padding: 22px 6px; border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.al-countdown__units b { display: block; font-size: 42px; line-height: 1; color: var(--theme-color1); font-variant-numeric: tabular-nums; }
.al-countdown__units span { display: block; margin-top: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.al-countdown__after { padding: 26px; border-radius: 20px; background: rgba(255, 255, 255, .07); }

/* ─── Formularz krokowy (kreator) ────────────────────────────── */
.al-form-card { background: #fff; border-radius: 30px; padding: 40px; box-shadow: 0 30px 70px -40px rgba(var(--theme-color2-rgb), .45); }
@media (max-width: 575px) { .al-form-card { padding: 26px 20px; } }
.eg-form h3 { font-size: 24px; margin-bottom: 6px; }
.eg-form h3 + p { color: #6b7a74; margin-bottom: 22px; }
.eg-form .grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .eg-form .grid { grid-template-columns: 1fr 1fr; } .eg-form .sm\:col-span-2 { grid-column: span 2; } }
.eg-form label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 15px; color: var(--theme-color2); }
.eg-form input:not([type="checkbox"]):not([type="hidden"]), .eg-form select, .eg-form textarea { width: 100%; height: 56px; padding: 0 20px; border: 1px solid #dfe7e3; border-radius: 10px; background: #f6f9f7; color: var(--theme-color2); font-size: 16px; }
.eg-form textarea { height: 160px; padding: 16px 20px; resize: vertical; }
.eg-form input:focus, .eg-form select:focus, .eg-form textarea:focus { outline: none; border-color: var(--theme-color3); box-shadow: 0 0 0 4px rgba(var(--theme-color1-rgb), .45); background: #fff; }
.eg-form [aria-invalid="true"] { border-color: #d64545 !important; }
.eg-field-error { margin-top: 6px; color: #c0392b; font-size: 14px; font-weight: 500; }
.eg-consent { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; line-height: 1.6; color: #55625d !important; }
.eg-consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--theme-color3); }
.eg-link { background: none; border: 0; padding: 0; color: var(--theme-color3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.eg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eg-wizard-steps { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0 0 30px; }
.eg-wizard-step { display: flex; align-items: center; gap: 10px; color: #8a9893; font-size: 15px; }
.eg-wizard-dot { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #dfe7e3; font-weight: 700; font-size: 14px; }
.eg-wizard-step.is-on { color: var(--theme-color2); }
.eg-wizard-step.is-on .eg-wizard-dot { background: var(--theme-color1); border-color: var(--theme-color1); color: var(--theme-color2); }
.eg-wizard-step.is-done .eg-wizard-dot { background: var(--theme-color2); border-color: var(--theme-color2); color: #fff; }
.eg-wizard-nav { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
/* Przyciski kreatora i wysyłki w stylu przycisków motywu. */
.eg-form .btn, .eg-form button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 34px; border-radius: 30px; border: 2px solid var(--theme-color2); font-weight: 600; font-size: 16px; cursor: pointer; transition: all .3s ease; }
.eg-form .btn-ink, .eg-form button[type="submit"] { background: var(--theme-color2); color: #fff; }
.eg-form .btn-ink:hover, .eg-form button[type="submit"]:hover { background: var(--theme-color1); border-color: var(--theme-color1); color: var(--theme-color2); }
.eg-form .btn-line { background: transparent; color: var(--theme-color2); }
.eg-form .btn-line:hover { background: var(--theme-color2); color: #fff; }
.eg-form button[type="submit"] { margin-top: 18px; }
.eg-form p.mt-6 { margin-top: 18px; font-size: 14px; color: #6b7a74; }
.al-contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.al-contact-list .contact-info-box { display: grid; grid-template-columns: 50px 1fr; column-gap: 14px; align-items: center; padding: 16px 20px; border-radius: 20px; background: #fff; }
.al-contact-list .icon { grid-row: span 2; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--theme-color1); color: var(--theme-color2); font-size: 20px; }
.al-contact-list .title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #6b7a74; }
.al-contact-list a { color: var(--theme-color2); font-weight: 600; }

/* Formularz „powiadom o terminach” w stopce. */
.main-footer .form-clt { position: relative; }
.al-notify-consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .7); }
.al-notify-consent input { width: 14px !important; height: 14px !important; margin-top: 3px; padding: 0 !important; accent-color: var(--theme-color1); }

/* ─── Toast (komunikaty zamiast alert()) ─────────────────────── */
.eg-toast { position: fixed; right: 20px; bottom: 20px; left: 20px; z-index: 100000; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.eg-toast-item { pointer-events: auto; display: flex; gap: 14px; align-items: flex-start; max-width: 440px; padding: 16px 20px; border-radius: 20px; background: var(--theme-color2); color: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.eg-toast-item.is-in { opacity: 1; transform: none; }
.eg-toast-text { flex: 1; margin: 0; color: #fff; font-size: 15px; line-height: 1.5; }
.eg-toast-close { background: none; border: 0; color: rgba(255, 255, 255, .7); cursor: pointer; }
.eg-toast-success { border-left: 5px solid var(--theme-color1); }
.eg-toast-error { border-left: 5px solid #ff6b5a; }

/* ─── Modal (klauzula RODO, film) ────────────────────────────── */
.eg-modal { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 20px; }
.eg-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); }
.eg-modal-box { position: relative; width: 100%; max-width: 720px; max-height: 85vh; overflow-y: auto; padding: 40px; border-radius: 30px; background: #fff; }
.eg-modal-box h2 { font-size: 28px; }
.eg-modal-box .btn-round { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--theme-color2); background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.eg-modal-box .btn { margin-top: 24px; padding: 14px 30px; border-radius: 30px; background: var(--theme-color2); color: #fff; border: 0; }
html.eg-modal-on { overflow: hidden; }
.eg-modal .flex { display: flex; } .eg-modal .justify-between { justify-content: space-between; } .eg-modal .items-start { align-items: flex-start; } .eg-modal .gap-6 { gap: 24px; }

/* ─── Treść z edytora WordPressa (strony, wpisy, szkolenia) ──── */
.al-prose { font-size: 17px; line-height: 1.8; color: #55625d; }
.al-prose h2, .al-prose h3 { margin: 1.6em 0 .6em; color: var(--theme-color2); }
.al-prose ul { padding-left: 1.2em; margin-bottom: 1.2em; }
.al-prose li { margin-bottom: .4em; }
.al-prose a { color: var(--theme-color3); text-decoration: underline; }
.al-prose img { border-radius: 20px; height: auto; }

/* Karta szczegółów szkolenia (pasek boczny). */
.al-training-facts { list-style: none; padding: 0; margin: 0; }
.al-training-facts li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #e5ece8; }
.al-training-facts li:last-child { border-bottom: 0; }
.al-training-facts .icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: var(--theme-color1); color: var(--theme-color2); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.al-training-facts small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #6b7a74; }
.al-training-facts strong { color: var(--theme-color2); }

/* Filtr szkoleń (strona „Szkolenia”). */
.al-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.al-filter .chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 30px; border: 1px solid #dfe7e3; background: #fff; color: var(--theme-color2); font-weight: 500; transition: all .25s; }
.al-filter .chip:hover { border-color: var(--theme-color2); }
.al-filter .chip.chip-on { background: var(--theme-color2); border-color: var(--theme-color2); color: #fff; }
[data-filter-item][hidden] { display: none !important; }

/* Akapit pod tytułem podstrony (arkusz główny go nie ma). */
.al-page-lead { max-width: 760px; margin: 14px auto 18px; color: rgba(255, 255, 255, .85); font-size: 18px; line-height: 1.6; }
.al-pagination ul { display: flex; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 40px 0 0; }
.al-pagination .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 14px; border-radius: 30px; border: 1px solid #dfe7e3; color: var(--theme-color2); font-weight: 600; }
.al-pagination .current { background: var(--theme-color2); border-color: var(--theme-color2); color: #fff; }
.al-program { margin-top: 40px; background: none; }
.al-program .h3 { margin-bottom: 20px; }
.al-training-card { position: sticky; top: 120px; }
.al-cert { margin: 16px 0 20px; padding: 12px 16px; border-radius: 14px; background: rgba(var(--theme-color1-rgb), .35); color: var(--theme-color2); font-weight: 600; }
.al-training-card .theme-btn { justify-content: center; }
.al-month { margin-bottom: 60px; }
.al-month__title { margin-bottom: 26px; text-transform: capitalize; }
.al-month__title small { font-size: 15px; color: #6b7a74; text-transform: none; margin-left: 10px; }
.al-map { width: 100%; height: 440px; border: 0; border-radius: 30px; }
.al-searchform { display: flex; gap: 10px; margin: 20px 0; }
.al-searchform input { flex: 1; height: 56px; padding: 0 22px; border: 1px solid #dfe7e3; border-radius: 30px; }

/* Bootstrap koloruje span.mark (podkreślenie z panelu) – w tym motywie akcentem jest kolor tekstu. */
.mark { background: none; padding: 0; color: var(--theme-color3); }
.banner-section .mark, .page-title .mark, .testimonial-section .mark, .al-countdown .mark { color: var(--theme-color1); }
.al-hero-claim { display: block; margin-bottom: 8px; font-size: 1.15em; color: #fff; }
/* Drugi egzemplarz nazwy obszaru w slajdzie jest kopią do animacji – czytnik ekranu go pomija. */
.brand-box-1 .brand-img-1 + .brand-img-1 { speak: never; }

/* Znak marki w środku obracającej się plakietki „O nas”. */
.al-badge-mark svg { width: 64px; height: 64px; fill: var(--theme-color2); }

/* Szablon pisze przyciski i okruszki „Każde Słowo Wielką Literą” (zwyczaj angielski);
   po polsku to błąd – zostawiamy pisownię z panelu. */
.theme-btn .btn-title, .theme-btn, .page-breadcrumb li, .page-breadcrumb a, .link-btn, .sec-title .sub-title { text-transform: none; }

/* ─── Ekran ładowania: okrągły loader ───
   Nadpisuje .preloader:after z assets/vendor/css/style.css. */
.preloader:after {
  content: "";
  width: 56px;
  height: 56px;
  margin-left: -28px;
  margin-top: -60px;
  background: none;
  border: 5px solid rgba(var(--theme-color2-rgb), .12);
  border-top-color: var(--theme-color2);
  border-right-color: var(--theme-color1);
  border-radius: 50%;
  animation: al-spin .8s linear infinite;
}
.preloader:before { content: "Ładowanie"; }
@keyframes al-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .preloader:after { animation-duration: 2s; } }

/* Nakładka hero w kolorach marki */
.banner-section .outer-box .bg-image:before {
	background-image: linear-gradient(180deg, rgba(var(--theme-color2-rgb), .55) 0%, rgba(var(--theme-color2-rgb), .25) 45%, rgba(var(--theme-color2-rgb), .85) 100%);
}

/* Bez ozdobnika przy numerach etapów */
.working-block-style2 .number-top .shape-style1 { display: none; }
/* Dłuższe napisy przycisków */
.faq-section .bottom-box { flex-wrap: wrap; gap: 16px; }
.theme-btn .btn-title { white-space: nowrap; }

/* Lista kontaktowa przy formularzu – arkusz główny (.contact-list-one) daje biały tekst
   i ikonę „position:absolute” (projekt na ciemne tło); u nas karty są białe. */
.al-contact-list .contact-info-box { color: var(--theme-color2); }
.al-contact-list .contact-info-box a { color: var(--theme-color2) !important; }
.al-contact-list .contact-info-box .icon { position: static; font-size: 20px; color: var(--theme-color2); }
.al-contact-list .contact-info-box .title { align-self: end; }
.al-contact-list .contact-info-box { grid-template-columns: 50px 1fr !important; row-gap: 2px; padding: 16px 20px !important; }
.al-contact-list .contact-info-box .icon { grid-column: 1; grid-row: 1 / span 2; color: var(--theme-color2) !important; }
.al-contact-list .contact-info-box .title,
.al-contact-list .contact-info-box a,
.al-contact-list .contact-info-box .value { grid-column: 2; width: auto !important; color: var(--theme-color2) !important; }
.al-contact-list .contact-info-box .title { color: #6b7a74 !important; font-size: 12px; }

/* Newsletter w stopce: pole + okrągły przycisk w jednym rzędzie, zgoda pod spodem.
   Bez tego flex ściskał przycisk do 20 px szerokości (owalny kształt). */
.footer-middle-box .form-clt { flex-wrap: wrap; align-items: center; gap: 12px; }
.footer-middle-box .form-clt input[type="email"] { flex: 1 1 220px; min-width: 0; }
.footer-middle-box .form-clt .submit-btn { flex: 0 0 56px; width: 56px; height: 56px; padding: 0; line-height: 1; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.footer-middle-box .form-clt .al-notify-consent { flex: 1 0 100%; }
.footer-middle-box .right-box .title { flex: 0 0 auto; white-space: nowrap; margin-right: 8px; }

/* Stopka: dłuższe nazwy (specjalizacje) łamią się na dwie linie – ciaśniejsza interlinia
   i kropka przy pierwszej linii zamiast pośrodku pozycji. */
.main-footer .links-widget .user-links li a { line-height: 1.5; padding-top: 6px; padding-bottom: 6px; }
.main-footer .links-widget .user-links li a i { top: calc(6px + .75em); }

/* ─── Hero: dłuższy H1 z frazą główną („Automatyzacja AI dla firm”) ───
   Napis > 14 znaków dostaje klasę al-title-long (template-parts/sections/hero.php):
   mniejsza czcionka, żeby zmieścił się w kolumnie 670 px w dwóch linijkach. */
.banner-section .outer-box .outer-container .inner-container .banner-content .banner-title.al-title-long { font-size: clamp(34px, 4.9vw, 74px); line-height: 1.04; letter-spacing: -0.01em; }

/* ─── Definicja frazy głównej (GEO) – template-parts/sections/geo.php ─── */
.al-geo__answer { font-size: 20px; line-height: 1.6; font-weight: 500; color: var(--theme-color2); margin-bottom: 18px; }
.al-geo__text { color: #55625d; line-height: 1.8; margin-bottom: 18px; }
.al-geo__text a { color: var(--theme-color3); text-decoration: underline; }
.al-geo .theme-btn { margin-top: 6px; }
.al-geo__facts { display: grid; gap: 20px; margin: 0; }
@media (min-width: 768px) { .al-geo__facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 991.98px) { .al-geo__facts { margin-top: 40px; } }
.al-geo__fact { margin: 0; padding: 32px; border-radius: 20px; background: var(--theme-color-silver, #f4f6f5); }
.al-geo__fact dt { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--theme-color2); margin-bottom: 12px; }
.al-geo__num { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--theme-color1); color: var(--theme-color2); font-size: 14px; font-weight: 700; }
.al-geo__fact dd { margin: 0; color: #55625d; line-height: 1.7; }
