/*
Theme Name: Adamsynowski Lite
Theme URI: https://adamsynowski.pl
Author: rochowski.org
Author URI: https://rochowski.org
Description: Lekki motyw blokowy (FSE) dla poradni laryngologicznej. Kliniczno-edytorska estetyka, petrol+bursztyn, typografia Newsreader + Hanken Grotesk, sygnaturowy motyw fali dzwiekowej/bledNika. Wspolpracuje z pluginem Dr Content Manager (tryb wielu lokalizacji).
Version: 1.0.0
Requires at least: 6.1
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adamsynowski-lite
*/

:root {
	--as-shadow: 0 22px 60px rgba(10, 46, 49, .12);
	--as-shadow-sm: 0 8px 26px rgba(10, 46, 49, .09);
	--as-radius: 14px;
	--as-radius-sm: 8px;
	/* Sygnatura: koncentryczne luki (fala dzwiekowa / bledNik) */
	--as-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%231c7a82' stroke-width='1.4'%3E%3Ccircle cx='300' cy='300' r='70'/%3E%3Ccircle cx='300' cy='300' r='130'/%3E%3Ccircle cx='300' cy='300' r='192'/%3E%3Ccircle cx='300' cy='300' r='256'/%3E%3Ccircle cx='300' cy='300' r='322'/%3E%3C/g%3E%3C/svg%3E");
}

/* ===== Atmosfera tla ===== */
body {
	background-color: var(--wp--preset--color--base);
	background-image:
		radial-gradient(58rem 42rem at 92% -12%, rgba(28, 122, 130, .12), transparent 58%),
		radial-gradient(46rem 40rem at -12% 16%, rgba(14, 81, 88, .08), transparent 55%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Subtelny grain */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9999;
	opacity: .04;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.has-text-align-center p, p.has-text-align-center { margin-inline: auto; }

/* ===== Eyebrow (etykieta nadrzedna) ===== */
.eyebrow {
	display: flex;
	align-items: center;
	gap: .7rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: .78rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
	margin: 0 0 .5rem;
}
.eyebrow::before {
	content: "";
	width: 2.1rem;
	height: 2px;
	background: var(--wp--preset--color--accent);
	flex: none;
}
.section-eyebrow { justify-content: center; }

/* ===== Naglowek ===== */
.site-header {
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: rgba(238, 240, 234, .85);
	backdrop-filter: saturate(1.1) blur(9px);
	position: sticky;
	top: 0;
	z-index: 50;
}
.site-logo-mark { display: inline-flex; line-height: 0; }
.site-logo-mark img { display: block; }
.site-brand .wp-block-site-title { line-height: 1.05; }
.site-brand .wp-block-site-title a {
	text-decoration: none;
	color: var(--wp--preset--color--primary);
}

/* Nawigacja z podkresleniem (bursztyn) */
.wp-block-navigation { font-size: .95rem; }
.wp-block-navigation a.wp-block-navigation-item__content {
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	padding-bottom: 3px;
	position: relative;
	white-space: nowrap;
}
.wp-block-navigation a.wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0; right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--wp--preset--color--accent);
	transition: right .28s ease;
}
.wp-block-navigation a.wp-block-navigation-item__content:hover::after,
.wp-block-navigation .current-menu-item a.wp-block-navigation-item__content::after { right: 0; }

.site-phone a {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	text-decoration: none;
	font-weight: 700;
	color: #fff;
	background: var(--wp--preset--color--primary);
	border-radius: 6px;
	padding: .55rem 1.15rem;
	white-space: nowrap;
	transition: background-color .2s ease, transform .18s ease;
}
.site-phone a:hover { background: var(--wp--preset--color--secondary); transform: translateY(-1px); }

/* ===== HERO (graficzny, asymetryczny, motyw fali) ===== */
.hero {
	position: relative;
	overflow: hidden;
	padding-top: clamp(1.5rem, 0.8rem + 1.6vw, 3rem);
	padding-bottom: clamp(2.5rem, 1rem + 5vw, 5.5rem);
}
.hero__grid { align-items: center; position: relative; z-index: 1; }
.hero__text h1 {
	margin: .25rem 0 1.15rem;
	letter-spacing: -0.025em;
	font-weight: 460;
}
.hero__text h1 em {
	font-style: italic;
	color: var(--wp--preset--color--secondary);
}
.hero__text .lead {
	font-size: 1.2rem;
	color: var(--wp--preset--color--muted);
	max-width: 34rem;
}

/* Chipy kompetencji */
.hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem !important; }
.hero__chips .chip,
.chip {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-size: .82rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	padding: .42rem .9rem;
}
.chip::before {
	content: "";
	width: .5rem; height: .5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	flex: none;
}

/* Wizual hero: kompozycja z fala + karta */
.hero__visual {
	position: relative;
	min-height: clamp(320px, 42vw, 520px);
}
.hero__visual::before {
	content: "";
	position: absolute;
	inset: -8% -6% -8% 0;
	background: var(--as-wave) center / contain no-repeat;
	opacity: .5;
	-webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
	        mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
}
/* Bursztynowy luk-akcent na wierzchu fali */
.hero__visual::after {
	content: "";
	position: absolute;
	right: 6%; top: 50%;
	width: clamp(180px, 26vw, 320px);
	aspect-ratio: 1;
	transform: translateY(-50%);
	border-radius: 50%;
	border: 2.5px solid var(--wp--preset--color--accent);
	border-left-color: transparent;
	border-bottom-color: transparent;
	rotate: -38deg;
	opacity: .9;
}
.hero__card {
	position: absolute;
	left: 0; bottom: 8%;
	z-index: 2;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--as-radius);
	box-shadow: var(--as-shadow);
	padding: 1.4rem 1.6rem;
	max-width: 21rem;
}
.hero__card .hc-label {
	font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
	font-weight: 700; color: var(--wp--preset--color--secondary); margin: 0 0 .55rem;
}
.hero__card .hc-row {
	display: flex; align-items: baseline; gap: .6rem;
	padding: .5rem 0; margin: 0;
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: .98rem;
}
.hero__card .hc-row:first-of-type { border-top: 0; }
.hero__card .hc-row strong { color: var(--wp--preset--color--primary); font-family: var(--wp--preset--font-family--display); font-weight: 500; }
.hero__card .hc-row span { margin-left: auto; color: var(--wp--preset--color--muted); }

/* Optional: zdjecie w hero (slot na realne foto) */
.hero__img { position: relative; z-index: 1; margin: 0; border-radius: var(--as-radius); overflow: hidden; box-shadow: var(--as-shadow); }
.hero__img img { display: block; width: 100%; height: clamp(360px, 50vw, 540px); object-fit: cover; }

/* Przyciski */
.wp-block-button.is-style-ghost .wp-block-button__link,
.wp-block-button__link.is-ghost {
	background: transparent;
	color: var(--wp--preset--color--primary);
	border: 1.5px solid var(--wp--preset--color--primary);
}
.wp-block-button.is-style-accent .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	color: #2a1a06;
}
.wp-block-button.is-style-accent .wp-block-button__link:hover { background: #c7792d; }
.wp-block-button__link { box-shadow: var(--as-shadow-sm); transition: transform .18s ease, background-color .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); }

/* ===== Sekcje ===== */
h2.section-title { text-align: center; margin-bottom: .6rem; }
.section-lead { text-align: center; color: var(--wp--preset--color--muted); max-width: 42rem; margin: 0 auto 2.6rem; }

/* Pasek statystyk pod hero */
.stat-strip { border-block: 1px solid var(--wp--preset--color--border); }
.stat-strip .wp-block-column { text-align: center; padding: 1.4rem .5rem; position: relative; }
.stat-strip .wp-block-column + .wp-block-column::before {
	content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px;
	background: var(--wp--preset--color--border);
}
.stat-strip .stat-num { font-family: var(--wp--preset--font-family--display); font-size: 2rem; color: var(--wp--preset--color--primary); line-height: 1; margin: 0 0 .35rem; }
.stat-strip .stat-lbl { font-size: .9rem; color: var(--wp--preset--color--muted); margin: 0; }

/* ===== Huby uslug: karty edytorskie ===== */
.hubs-grid { counter-reset: hub; gap: 1.5rem; }
.hubs-grid .hub-card {
	position: relative;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: var(--as-radius);
	padding: 2.4rem 1.7rem 1.7rem !important;
	box-shadow: var(--as-shadow-sm);
	height: 100%;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
/* Luk dekoracyjny w rogu karty */
.hubs-grid .hub-card::before {
	content: "";
	position: absolute;
	right: -3.5rem; top: -3.5rem;
	width: 8rem; height: 8rem;
	border-radius: 50%;
	border: 1.5px solid var(--wp--preset--color--soft);
	border-bottom-color: transparent; border-left-color: transparent;
	transition: border-color .25s ease, transform .3s ease;
}
.hubs-grid .hub-card::after {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0; width: 4px;
	background: var(--wp--preset--color--accent);
	transform: scaleY(0); transform-origin: top;
	transition: transform .25s ease;
}
.hubs-grid .hub-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--as-shadow);
	border-color: var(--wp--preset--color--secondary) !important;
}
.hubs-grid .hub-card:hover::before { border-color: var(--wp--preset--color--secondary); transform: rotate(-15deg); }
.hubs-grid .hub-card:hover::after { transform: scaleY(1); }
.hubs-grid .hub-card .hub-kicker {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.6rem; font-style: italic;
	color: var(--wp--preset--color--accent);
	margin: 0 0 .4rem; line-height: 1;
}
.hubs-grid .hub-card h3 {
	margin: 0 0 1rem; padding-bottom: .9rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.hubs-grid .hub-card h3 a { color: var(--wp--preset--color--primary); text-decoration: none; }
.hubs-grid .hub-card ul { margin: 0; padding-left: 1.1rem; }
.hubs-grid .hub-card ul li { margin: .28rem 0; color: var(--wp--preset--color--muted); }
.hubs-grid .hub-card .hub-more {
	display: inline-block; margin-top: 1rem;
	font-weight: 700; text-decoration: none;
	color: var(--wp--preset--color--secondary);
}
.hubs-grid .hub-card .hub-more:hover { color: var(--wp--preset--color--primary); }

/* ===== Kafelki problemow ===== */
.problems-grid { gap: 1rem; }
.problems-grid .problem-tile {
	display: block;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--as-radius-sm);
	padding: 1.15rem 1.25rem;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	transition: border-color .2s ease, background .2s ease, transform .18s ease;
}
.problems-grid .problem-tile:hover {
	border-color: var(--wp--preset--color--secondary);
	background: var(--wp--preset--color--soft);
	transform: translateY(-2px);
}
.problems-grid .problem-tile .pt-arrow { color: var(--wp--preset--color--accent); font-weight: 800; }

/* ===== Sekcja "O lekarzu" / trust band (motyw fali) ===== */
.trust-band {
	position: relative;
	background: var(--wp--preset--color--primary);
	color: #e7f1f0;
	border-radius: var(--as-radius);
	overflow: hidden;
}
.trust-band::after {
	content: "";
	position: absolute;
	right: -10%; top: 50%; transform: translateY(-50%);
	width: 30rem; height: 30rem;
	background: var(--as-wave) center / contain no-repeat;
	opacity: .14;
	filter: brightness(3);
	pointer-events: none;
}
.trust-band h2, .trust-band h3 { color: #fff; }
.trust-band .eyebrow { color: #8fd0d3; }
.trust-band .eyebrow::before { background: var(--wp--preset--color--accent); }
.trust-band a { color: #fff; }

/* ===== Gabinety (dr-content-manager, wiele lokalizacji) ===== */
.drcm-doctor {
	--drcm-accent: #0e5158;
	--drcm-text: #11302f;
	--drcm-muted: #54635f;
	--drcm-border: #cddedc;
	--drcm-bg-soft: transparent;
}
.gabinety-section .drcm-doctor {
	background: transparent;
	max-width: none;
	padding: 0; border: 0; box-shadow: none;
}
.gabinety-section .drcm-doctor__header { display: none; }
.gabinety-section .drcm-places {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}
.gabinety-section .drcm-place-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--as-radius);
	padding: 1.7rem 1.6rem;
	box-shadow: var(--as-shadow-sm);
}
.gabinety-section .drcm-section--prices {
	margin-top: 1.5rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--as-radius);
	padding: 1.7rem 1.6rem;
}
.gabinety-section .drcm-section--booking { margin-top: 1.5rem; text-align: center; }
.gabinety-section .drcm-section--booking .drcm-booking-actions { justify-content: center; }
.drcm-section__title {
	font-family: var(--wp--preset--font-family--display) !important;
	font-weight: 500;
	color: var(--wp--preset--color--primary);
}
.drcm-price-table__value { color: var(--wp--preset--color--secondary); font-weight: 700; }
.drcm-btn--primary { border-radius: 6px !important; }
@media (max-width: 781px) {
	.gabinety-section .drcm-places { grid-template-columns: 1fr; }
}

/* ===== Artykuly (podstrony) ===== */
.entry-content h2, .wp-block-post-content h2 { margin-top: 2.4rem; }
.wp-block-post-title { margin-bottom: 1.6rem; }
.article-hero { margin-top: 0; }
.article-hero img { box-shadow: var(--as-shadow); display: block; }
/* Lekko zwezony tekst artykulu dla czytelnosci, ale > 1120px na desktop nieprzekraczane (content 1200) */
.wp-block-post-content { font-size: 1.075rem; }

/* ===== Stopka ===== */
.site-footer { background: var(--wp--preset--color--deep) !important; color: #c8dad8; }
.site-footer h3 { color: #fff; font-weight: 500; }
.site-footer a { color: #d9e7e5; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-rule { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: var(--wp--preset--spacing--40) 0 var(--wp--preset--spacing--30); }

/* ===== Ruch wejscia ===== */
@keyframes as-rise {
	from { opacity: 0; transform: translateY(15px); }
	to { opacity: 1; transform: translateY(0); }
}
.hero__text > *, .hero__visual, .hero__img { animation: as-rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero__text .eyebrow { animation-delay: .05s; }
.hero__text h1 { animation-delay: .12s; }
.hero__text .lead { animation-delay: .2s; }
.hero__text .wp-block-buttons { animation-delay: .28s; }
.hero__text .hero__chips { animation-delay: .34s; }
.hero__visual, .hero__img { animation-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
	.hero__text > *, .hero__visual, .hero__img { animation: none; }
	.wp-block-button__link, .problem-tile, .hub-card { transition: none; }
	html { scroll-behavior: auto; }
}

/* ===== Responsywnosc ===== */
@media (max-width: 781px) {
	.hero__visual { min-height: 280px; margin-top: 1.5rem; }
	.hero__card { position: static; max-width: none; margin-top: 1rem; }
	.hero__visual::after { right: 10%; }
	.hero__img img { height: 320px; }
	.stat-strip .wp-block-column + .wp-block-column::before { display: none; }
}

html { scroll-behavior: smooth; }

/* Skip-link */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100000; }
.skip-link:focus {
	left: 8px; top: 8px; padding: 10px 16px;
	background: #fff; color: #11302f; border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
