/* ==========================================================================
   PMO „Szałwia” — wygląd strony odszkodowaniaradca.pl (2026-11-30)
   Źródło projektu: ~/proj/olszewski/notatki/2026-11-30-modernizacja-design.md, makieta notatki/makiety/B.html
   Zasada: kolory/fonty jako zmienne; nadpisujemy Astrę i Spectrę łagodnie (bez !important, poza
   miejscami, gdzie wtyczki wstawiają style inline — tam oznaczone komentarzem).
   ========================================================================== */

:root {
	--pmo-bg: #FAFAF7;
	--pmo-bg-alt: #F0F2EC;
	--pmo-ink: #22302B;
	--pmo-muted: #4D5A54;
	--pmo-accent: #2F6B57;
	--pmo-accent-dark: #24543F;
	--pmo-gold: #C9A24A;          /* tylko ozdoby (linie, kropki) — za mały kontrast na tekst */
	--pmo-card: #FFFFFF;
	--pmo-line: #E3E7EC;
	--pmo-footer: #E9ECE4;
	--pmo-radius: 10px;
	--pmo-font-head: 'Lora', Georgia, serif;
	--pmo-font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* Globalna paleta Astry (używana przez Astrę i bloki) */
	--ast-global-color-0: var(--pmo-accent);
	--ast-global-color-1: var(--pmo-accent-dark);
	--ast-global-color-2: var(--pmo-ink);
	--ast-global-color-3: var(--pmo-muted);
	--ast-global-color-4: var(--pmo-bg);
	--ast-global-color-5: var(--pmo-card);
	--ast-global-color-6: var(--pmo-bg-alt);
	--ast-global-color-7: var(--pmo-line);
	--ast-global-color-8: var(--pmo-ink);
}

/* ---------- Typografia ---------- */
body, button, input, select, textarea,
.ast-button, .ast-custom-button {
	font-family: var(--pmo-font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--pmo-ink);
}
body { background-color: var(--pmo-bg); -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4, h5, h6,
.entry-title, .site-title, .site-title a,
.entry-content :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--pmo-font-head);
	font-weight: 600;
	line-height: 1.2;
	color: var(--pmo-ink);
	letter-spacing: 0;
	text-transform: none;
}
h1, .entry-content h1 { font-size: clamp(31px, 4vw, 46px); }
h2, .entry-content h2 { font-size: clamp(26px, 3vw, 34px); }
h3, .entry-content h3 { font-size: clamp(20px, 2vw, 24px); }
h4, .entry-content h4 { font-size: 19px; }

p, li { color: inherit; }
.entry-content p, .entry-content li { max-width: 72ch; }
.entry-content :is(p, li) { color: var(--pmo-ink); }

a { color: var(--pmo-accent); }
a:hover, a:focus { color: var(--pmo-accent-dark); }
:focus-visible { outline: 3px solid var(--pmo-gold); outline-offset: 2px; }

/* Stary wygląd zaznaczał tekst blokami <mark> w kolorze — wyłączamy podkreślenie kolorem */
.entry-content mark { background: transparent; color: inherit; }

/* ---------- Nagłówek ---------- */
.site-header, .main-header-bar, .ast-primary-header-bar {
	background-color: #fff;
	border-bottom: 1px solid var(--pmo-line);
}
.site-title a { font-size: 18px; color: var(--pmo-ink); }
.site-description { font-family: var(--pmo-font-body); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--pmo-muted); }
.main-header-menu .menu-link, .ast-builder-menu .menu-item > .menu-link {
	font-family: var(--pmo-font-body);
	font-weight: 500;
	font-size: 15px;
	color: var(--pmo-ink);
	text-transform: none;
}
.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current-menu-ancestor > .menu-link { color: var(--pmo-accent); }
.main-header-menu .sub-menu { border-top: 2px solid var(--pmo-gold); box-shadow: 0 12px 24px -12px rgba(34,48,43,.25); }
.ast-mobile-menu-trigger-minimal, .menu-toggle, .ast-mobile-menu-buttons .menu-toggle { color: var(--pmo-accent); }
.ast-mobile-menu-buttons .menu-toggle .ast-mobile-svg { fill: var(--pmo-accent); }

/* ---------- Przyciski (Astra, Gutenberg, Spectra, CF7) ---------- */
.wp-block-button__link, .ast-button, .button, .ast-custom-button,
input[type="submit"], button[type="submit"], .wpcf7-submit,
.uagb-buttons-repeater, .wp-block-uagb-buttons-child .uagb-buttons-repeater {
	background-color: var(--pmo-accent);
	border: 1.5px solid var(--pmo-accent);
	color: #fff;
	border-radius: 6px;
	font-family: var(--pmo-font-body);
	font-weight: 600;
	font-size: 16px;
	padding: 13px 22px;
	text-transform: none;
	letter-spacing: 0;
	transition: background-color .15s ease;
}
.wp-block-button__link:hover, .ast-button:hover, .button:hover,
input[type="submit"]:hover, .wpcf7-submit:hover, .uagb-buttons-repeater:hover {
	background-color: var(--pmo-accent-dark);
	border-color: var(--pmo-accent-dark);
	color: #fff;
}
.is-style-outline .wp-block-button__link, .pmo-btn-outline .wp-block-button__link {
	background: transparent;
	color: var(--pmo-accent);
}

/* ---------- Klasy do użycia w treści (etapy 2–4) ----------
   pmo-section       — sekcja z odstępem;    pmo-section--alt — tło #F0F2EC
   pmo-eyebrow       — mała etykieta nad H1   pmo-lead — większy tekst wstępu
   pmo-cards         — kolumny z kartami      pmo-card — karta (biała, złota linia u góry)
   pmo-steps         — kroki z numerami       pmo-facts — lista faktów z kropkami
   pmo-faq           — pytania (details/summary)                                    */
.pmo-section { padding-block: clamp(44px, 6vw, 64px); }
.pmo-section--alt { background-color: var(--pmo-bg-alt); }
.pmo-eyebrow { color: var(--pmo-accent); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4em; }
.pmo-lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--pmo-muted); }
.pmo-card, .pmo-cards > .wp-block-column {
	background: var(--pmo-card);
	border: 1px solid var(--pmo-line);
	border-top: 3px solid var(--pmo-gold);
	border-radius: var(--pmo-radius);
	padding: 26px;
}
.pmo-card ul, .pmo-cards ul { padding-left: 18px; margin: 0 0 16px; color: var(--pmo-muted); font-size: 15.5px; }
.pmo-card a, .pmo-cards a { font-weight: 600; text-decoration: none; }
.pmo-steps { counter-reset: pmo-step; }
.pmo-steps > .wp-block-column::before {
	counter-increment: pmo-step;
	content: counter(pmo-step);
	display: block;
	font-family: var(--pmo-font-head);
	font-size: 30px;
	color: var(--pmo-accent);
	margin-bottom: 6px;
}
.pmo-facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--pmo-muted); }
.pmo-facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pmo-gold); margin-right: 8px; vertical-align: middle; }
.pmo-faq details, details.wp-block-details {
	background: var(--pmo-card);
	border: 1px solid var(--pmo-line);
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 10px;
}
.pmo-faq summary, details.wp-block-details summary { font-weight: 600; cursor: pointer; }
.pmo-portrait img { border-radius: var(--pmo-radius); box-shadow: 0 20px 40px -20px rgba(20,30,50,.35); }

/* ---------- Formularz CF7 ---------- */
.wpcf7 input:not([type="submit"]):not([type="checkbox"]), .wpcf7 textarea, .wpcf7 select {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #CFD6DE;
	border-radius: 6px;
	background: #fff;
	font: inherit;
	color: var(--pmo-ink);
}
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--pmo-accent); outline: none; box-shadow: 0 0 0 3px rgba(47,107,87,.15); }
.wpcf7 label { font-size: 14px; font-weight: 600; }

/* ---------- Opinie Google (Trustindex) — wtyczka wstrzykuje własne style, stąd wyższa specyficzność ---------- */
.ti-widget.ti-goog .ti-review-item > .ti-inner,
.ti-widget.ti-goog .ti-review-content {
	font-family: var(--pmo-font-body);
	color: var(--pmo-ink);
}
.ti-widget.ti-goog .ti-review-item > .ti-inner {
	background: var(--pmo-card);
	border: 1px solid var(--pmo-line);
	border-radius: var(--pmo-radius);
}
.ti-widget.ti-goog .ti-name { font-family: var(--pmo-font-body); font-weight: 600; color: var(--pmo-ink); }
.ti-widget.ti-goog .ti-read-more span, .ti-widget.ti-goog a { color: var(--pmo-accent); }

/* ---------- Okno zgód Complianz (zamiast fioletu) ---------- */
.cmplz-cookiebanner { font-family: var(--pmo-font-body); color: var(--pmo-ink); border-radius: var(--pmo-radius); }
.cmplz-cookiebanner .cmplz-btn.cmplz-accept { background-color: var(--pmo-accent) !important; border-color: var(--pmo-accent) !important; color: #fff !important; } /* !important: Complianz ustawia kolory inline */
.cmplz-cookiebanner .cmplz-btn.cmplz-deny,
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,
.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences { background-color: var(--pmo-bg-alt) !important; border-color: var(--pmo-line) !important; color: var(--pmo-ink) !important; }
.cmplz-cookiebanner .cmplz-links a { color: var(--pmo-accent) !important; }

/* ---------- Stopka (jasna) ---------- */
.site-footer, .site-primary-footer-wrap, .site-below-footer-wrap, .footer-adv, .ast-small-footer {
	background-color: var(--pmo-footer);
	color: var(--pmo-muted);
	font-size: 15px;
}
.site-footer :is(h2, h3, h4, .widget-title) { font-size: 17px; color: var(--pmo-ink); }
.site-footer a, .site-footer .menu-link { color: var(--pmo-ink); }
.site-footer a:hover { color: var(--pmo-accent); }
.site-below-footer-wrap { border-top: 1px solid rgba(34,48,43,.1); font-size: 13px; }

/* ---------- Pasek „Zadzwoń / Napisz” (tylko smartfon; breakpoint Astry 921 px) ---------- */
.pmo-callbar { display: none; }
@media (max-width: 921px) {
	.pmo-callbar {
		display: flex;
		gap: 8px;
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 9990;              /* pod oknem zgód Complianz (z-index 99999) */
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: #fff;
		box-shadow: 0 -4px 14px rgba(0,0,0,.1);
	}
	.pmo-callbar a {
		flex: 1;
		text-align: center;
		padding: 12px;
		border-radius: 6px;
		font-weight: 700;
		text-decoration: none;
		border: 1.5px solid var(--pmo-accent);
	}
	.pmo-callbar__call { background: var(--pmo-accent); color: #fff; }
	.pmo-callbar__call:hover { color: #fff; }
	.pmo-callbar__write { background: #fff; color: var(--pmo-accent); }
	body { padding-bottom: 72px; }   /* pasek nie zasłania stopki */
	.entry-content p, .entry-content li { max-width: none; }
}

/* ---------- Telefon w menu głównym (functions.php: pmo_child_menu_phone) ---------- */
.main-header-menu .pmo-menu-phone > .menu-link {
	background: var(--pmo-accent);
	color: #fff;
	border-radius: 6px;
	padding: 10px 18px;
	margin-left: 10px;
	font-weight: 600;
	line-height: 1.2;
}
.main-header-menu .pmo-menu-phone > .menu-link:hover { background: var(--pmo-accent-dark); color: #fff; }
@media (max-width: 921px) {
	.main-header-menu .pmo-menu-phone > .menu-link { margin: 10px 20px; display: inline-block; }
	/* Astra ustawia grubą czarną linię pod nagłówkiem mobilnym — zastępujemy delikatną */
	.ast-mobile-header-wrap .ast-primary-header-bar, .ast-header-break-point .main-header-bar { border-bottom: 1px solid var(--pmo-line); }
}
/* Astra nadaje linkom menu wysokość całego paska — przycisk telefonu wyśrodkowany, o własnej wysokości */
.main-header-menu .pmo-menu-phone { display: flex; align-items: center; }
.main-header-menu .pmo-menu-phone > .menu-link { height: auto; line-height: 1.2; }

/* ---------- Strona główna i sekcje z treści (etap 2) ---------- */
.pmo-muted { color: var(--pmo-muted); }
.pmo-more { margin-top: 24px; font-weight: 600; }
.pmo-more a { text-decoration: none; }
.pmo-hero h1 { margin: .2em 0 .45em; }
.pmo-hero .wp-block-buttons { margin: 28px 0 22px; gap: 14px; }
.pmo-portrait figure { margin: 0; }
.pmo-portrait img { width: 100%; height: auto; }
.pmo-cards { gap: 20px; }
.pmo-cards h3 { font-size: 22px; margin-bottom: .6em; }
.pmo-cards > .wp-block-column > p:last-child { margin-bottom: 0; }
.pmo-steps { gap: 28px; }
.pmo-steps h3 { font-size: 20px; }
.pmo-steps p { color: var(--pmo-muted); }
.pmo-faq summary { font-family: var(--pmo-font-body); }
.pmo-faq details p { margin: 10px 0 0; color: var(--pmo-muted); }
.pmo-form { background: var(--pmo-card); border: 1px solid var(--pmo-line); border-radius: var(--pmo-radius); padding: 26px; }
.pmo-contact { gap: 48px; }
/* Sekcje pełnej szerokości: zerujemy marginesy Astry między blokami alignfull */
.entry-content > .alignfull.pmo-section { margin-top: 0; margin-bottom: 0; }
@media (max-width: 781px) {
	.pmo-hero__cols { flex-direction: column-reverse; }          /* zdjęcie nad tekstem, ale mniejsze */
	.pmo-hero .pmo-portrait { max-width: 240px; }
	.pmo-hero .wp-block-buttons .wp-block-button { width: 100%; }
	.pmo-hero .wp-block-button__link { width: 100%; text-align: center; }
}

/* ---------- Nagłówek mobilny: logo + nazwa po lewej, menu po prawej w jednym wierszu ----------
   Strona używa starego nagłówka Astry z ustawieniem „stack” (klasa ast-mobile-header-stack),
   które układa elementy pionowo. Nadpisujemy w CSS zamiast przełączać na kreator nagłówka. */
@media (max-width: 921px) {
	#masthead.ast-mobile-header-stack .main-header-container {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
	}
	#masthead.ast-mobile-header-stack .site-branding { /* #masthead: Astra ustawia tu width:100% z wysoką specyficznością */
		flex: 1 1 0;
		min-width: 0;
		width: auto;
		text-align: left;
		padding: 10px 0;
	}
	#masthead.ast-mobile-header-stack .ast-site-identity { justify-content: flex-start; }
	#masthead.ast-mobile-header-stack .ast-mobile-menu-buttons {
		flex: 0 0 auto;
		width: auto;
		order: 2;
		justify-content: flex-end;
		padding: 0;
	}
	#masthead.ast-mobile-header-stack .ast-main-header-bar-alignment { flex: 0 0 100%; order: 3; }
	#masthead.ast-mobile-header-stack .custom-logo-link img { max-width: 64px; height: auto; }
	#masthead.ast-mobile-header-stack .site-title { line-height: 1.15; }
	#masthead.ast-mobile-header-stack .site-title a { font-size: 15px; }
	#masthead.ast-mobile-header-stack .site-description { font-size: 10px; margin: 2px 0 0; }
	.pmo-hero .pmo-facts { padding-left: 0; }
}
/* Na smartfonie telefon jest w pasku „Zadzwoń” na dole — w rozwiniętym menu zbędny */
@media (max-width: 921px) { #masthead .main-header-menu .pmo-menu-phone { display: none; } }

/* ---------- Podstrony usług (etap 3) ---------- */
.pmo-crumbs { font-size: 14px; color: var(--pmo-muted); margin-bottom: .6em; }
.pmo-crumbs a { text-decoration: none; }
.pmo-cta { text-align: left; }
.pmo-cta .wp-block-buttons { margin-top: 18px; gap: 14px; }
.pmo-hero .wp-block-buttons { gap: 14px; }

/* ---------- Moje sprawy: lista spraw (blok Query Loop, kategorie 14–17) ---------- */
.pmo-cases .wp-block-post-template { gap: 20px; list-style: none; padding: 0; margin: 0; }
.pmo-cases .wp-block-post {
	background: var(--pmo-card);
	border: 1px solid var(--pmo-line);
	border-top: 3px solid var(--pmo-gold);
	border-radius: var(--pmo-radius);
	padding: 24px;
	margin: 0;
}
.pmo-cases .wp-block-post-title { font-size: 20px; margin: 6px 0 10px; }
.pmo-cases .wp-block-post-title a { color: var(--pmo-ink); text-decoration: none; }
.pmo-cases .wp-block-post-title a:hover { color: var(--pmo-accent); }
.pmo-case-cat { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pmo-case-cat a { color: var(--pmo-accent); text-decoration: none; }
.pmo-cases .wp-block-post-excerpt__excerpt { color: var(--pmo-muted); font-size: 15.5px; }
.pmo-cases .wp-block-post-excerpt__more-link { font-weight: 600; text-decoration: none; }
@media (max-width: 781px) { .pmo-cases .wp-block-post-template { grid-template-columns: 1fr; } }
