/* ==========================================================================
   Centrum — CPT single (location / pracoviště)
   Built from the homepage premium system: .hero grid-line bg + two-tone
   heading, floating facts card, soft icon tiles, shadow panels, a clean
   schedule table, team roster, green grid-line CTA close.
   ========================================================================== */

/* --- Hero (reuses .hero base: grid-line bg, .hero__media image, band below) - */
.hero--centrum .hero__top { align-items: stretch; }
.hero--centrum .hero__title { margin-bottom: 1.1rem; }

/* Trim the hero's large bottom padding so the sticky sub-nav sits snug beneath
   the facts card instead of leaving a band of grid-line background (the "gap"). */
.hero--centrum .hero__inner { padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }

/* Hero photo fills the full height of the text column. Centred: the old
   85% offset was tuned for a single-doctor stock shot and cut group photos
   down to their right side (CIT). */
.hero--centrum .hero__media { height: 100%; }
.hero--centrum .hero__img {
	height: 100%;
	min-height: 440px;
	aspect-ratio: auto;
	object-fit: cover;
	object-position: 50% 40%;
}

/* Tablet: in two columns the media column is too narrow for a landscape
   group photo — it either crops to a strip or shrinks to a thumbnail. Stack
   photo heroes like phones do (copy first, then the photo at full width). */
@media (min-width: 901px) and (max-width: 1240px) {
	.hero--centrum .hero__top:has(> .hero__media > .hero__img) { grid-template-columns: 1fr; }
	/* Same for an hours table (round 7): in the half column it is ~370px wide,
	   too narrow for day + 2–3 time columns. */
	.hero--centrum .hero__top:has(.hero-sheet__table) { grid-template-columns: 1fr; }
	.hero--centrum .hero__media:has(> .hero__img) { height: auto; }
	.hero--centrum .hero__img {
		height: auto;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
}

/* Mobile: keep the text block first, image below (homepage hero flips it). */
@media (max-width: 900px) {
	.hero--centrum .hero__media { order: 0; }
	/* Auto-built schedule card: the full labelled table follows a scroll below,
	   so on phones it only doubled the hero's height. Hand-authored sheets stay. */
	.hero--centrum .hero__media:has(> .hero__sheet--auto) { display: none; }
	/* The empty brand panel beside the services list is decoration only;
	   on phones it is a screen of nothing between the insurers and the note. */
	.centrum-sluzby__photo:has(> .centrum-sluzby__panel) { display: none; }
	/* The desktop 440px min-height cropped a landscape group photo to its right
	   half on phones (CIT, round 6) — show the whole frame at its natural ratio. */
	.hero--centrum .hero__img {
		height: auto;
		min-height: 0;
		aspect-ratio: 3 / 2;
		object-position: 50% 50%;
	}
}

.centrum-hero__top { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; }
.centrum-hero__top .icon-tile {
	background: var(--primary);
	color: #fff;
}
.centrum-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

/* Contact facts — full-width band below the hero columns (mirrors .hero__stats) */
.centrum-facts-bar {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 2.25rem);
	flex-wrap: wrap;
	margin-top: clamp(2rem, 4vw, 3.25rem);
	padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2.25rem);
	background: var(--bg-body);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}
.centrum-facts-bar__badge {
	display: inline-flex;
	align-items: center;
	/* Hug the text: without this the flex parent stretches it and the pill
	   radius turns into a blob on narrow screens. */
	align-self: start;
	gap: 0.5rem;
	padding: 0.5rem 0.9rem;
	border-radius: var(--radius-pill);
	background: var(--primary-soft);
	color: var(--primary-dark);
	font-weight: 700;
	font-size: 0.85rem;
}
.centrum-facts-bar__badge svg { width: 1rem; height: 1rem; }
.centrum-facts-bar__items {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1rem, 3vw, 2.25rem);
	flex: 1;
	min-width: 0;
}
.centrum-fact { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.centrum-fact .icon-tile { flex: none; width: 2.75rem; height: 2.75rem; }
.centrum-fact__label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--muted);
	margin-bottom: 0.1rem;
}
.centrum-fact__value { color: var(--heading); font-weight: 600; font-size: 0.96rem; line-height: 1.35; word-break: break-word; }
.centrum-fact__value a { color: var(--heading); }
.centrum-fact__value a:hover { color: var(--primary); }

/* In-page anchor nav — a sticky pill bar that rides just under the header as you
   scroll, with a scroll-spy "you are here" active pill (JS: initCentrumNav). */
.centrum-subnav {
	position: sticky;
	top: 73px; /* sits directly under the sticky .site-header (~74px tall) */
	z-index: 90; /* below the header (z-index: 100) so the header stays on top */
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid rgba(6, 29, 97, 0.05); /* faint hairline divider */
}
.centrum-subnav__inner {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.5rem;
	overflow-x: auto; /* pills scroll horizontally on narrow screens */
	padding-top: 0.35rem;
	padding-bottom: 1.15rem;
	scrollbar-width: none;
}
.centrum-subnav__inner::-webkit-scrollbar { display: none; }
/* Once pinned under the header the pills need more top air than in the snug
   resting state below the facts card (JS toggles .is-stuck). */
.centrum-subnav.is-stuck .centrum-subnav__inner { padding-top: 0.95rem; }
.centrum-subnav__link {
	flex: none;
	padding: 0.5rem 1.05rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--heading);
	font-weight: 600;
	font-size: 0.9rem;
	white-space: nowrap;
}
.centrum-subnav__link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.centrum-subnav__link.is-active {
	border-color: var(--primary);
	background: var(--primary);
	color: #fff;
}

/* Anchor targets clear the sticky header + sticky sub-nav when jumped to
   (covers direct #hash page loads; JS handles the offset for pill clicks). */
.centrum-single .centrum-sec { scroll-margin-top: 140px; }

/* --- Nabízené služby — premium green grid-line band (mirrors the live layout:
   services + insurances on the left, image + "objednání" promise on the right). */
.centrum-sluzby__band {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
	background: var(--primary-deep);
}
.centrum-sluzby__inner { position: relative; z-index: 1; }

/* White heading on the green band — left-aligned */
.section__head--light { text-align: left; }
.section__head--light .section__title { color: #fff; }
.section__head--light .section__title .hl { color: #dcecff; }
.eyebrow--light { color: rgba(255, 255, 255, 0.82); }

/* Explicit 2×3 grid so the image can span from the top of the heading down to
   the end of the services list; the insurers list continues underneath it and
   the "objednání" note sits beside them. */
.centrum-sluzby__cols {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	grid-template-rows: auto auto auto;
	column-gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
}
.centrum-sluzby__cols > .section__head--light { grid-area: 1 / 1; margin-bottom: 0; }
.centrum-sluzby__list { grid-area: 2 / 1; align-self: start; }
.centrum-sluzby__poj  { grid-area: 3 / 1; }
/* Image: top flush with the heading, bottom flush with the last service. */
.centrum-sluzby__photo { grid-area: 1 / 2 / 3 / 3; }
.centrum-sluzby__promise { grid-area: 3 / 2; }

/* Services + insurance lists */
.centrum-sluzby__list { display: grid; gap: 0.85rem; }
.centrum-sluzby__list li,
.centrum-sluzby__poj-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	color: #fff;
	line-height: 1.55;
	font-weight: 500;
}
.centrum-sluzby__mark {
	flex: none;
	display: grid;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	margin-top: 0.1rem;
}
.centrum-sluzby__mark svg { width: 0.95rem; height: 0.95rem; }

.centrum-sluzby__poj {
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.centrum-sluzby__poj-title { color: #fff; font-size: 1.02rem; margin-bottom: 1rem; }
.centrum-sluzby__poj-list { display: grid; gap: 0.6rem; }

/* Aside: framed image (top-aligned, tall) + the "objednání" promise box */
.centrum-sluzby__photo {
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: #fff;
	padding: 8px;
}
.centrum-sluzby__img {
	display: block;
	width: 100%;
	border-radius: var(--radius-sm);
	object-fit: cover;
	aspect-ratio: 1 / 1;
}
.centrum-sluzby__promise {
	margin-top: clamp(1.5rem, 3vw, 2rem);
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.35rem 1.6rem;
	border-radius: var(--radius);
	background: #fff;
}
.centrum-sluzby__promise-ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--primary-soft);
	color: var(--primary);
}
.centrum-sluzby__promise-ico svg { width: 1.4rem; height: 1.4rem; }
.centrum-sluzby__promise-text {
	margin: 0;
	color: var(--primary-dark);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.45;
}

@media (max-width: 860px) {
	.centrum-sluzby__cols { grid-template-columns: 1fr; }
}

/* --- Feature lists (Vybavení) — inside a premium panel --------------------- */
.centrum-panel { padding: clamp(1.75rem, 3vw, 2.6rem); }

/* Reassurance callout — patient-facing promise above the service list */
.centrum-callout {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.15rem 1.35rem;
	margin-bottom: 1.75rem;
	border-radius: var(--radius);
	background: var(--primary-soft);
	border-left: 4px solid var(--primary);
}
.centrum-callout__ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--primary);
	color: #fff;
}
.centrum-callout__ico svg { width: 1.25rem; height: 1.25rem; }
.centrum-callout__text {
	margin: 0;
	color: var(--heading);
	font-weight: 700;
	font-size: 1.02rem;
	line-height: 1.45;
}
.centrum-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.05rem 2.25rem; }
.centrum-feature { display: flex; align-items: flex-start; gap: 0.85rem; color: var(--body); line-height: 1.55; }
.centrum-feature__ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 50%;
	background: var(--primary-soft);
	color: var(--primary);
	margin-top: 0.05rem;
}
.centrum-feature__ico svg { width: 1.05rem; height: 1.05rem; }

.centrum-poj { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.centrum-poj__title { font-size: 1rem; color: var(--heading); margin-bottom: 1rem; }
.centrum-poj__list { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.centrum-poj__list li {
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	background: var(--bg-alt);
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--heading);
}

/* --- Ordinační doba — categorized matrix table + note cards ---------------- */
.centrum-sched-wrap { overflow-x: auto; }
.centrum-sched {
	min-width: 640px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: #fff;
}
.centrum-sched__head,
.centrum-sched__row {
	display: grid;
	grid-template-columns: minmax(140px, 0.9fr) repeat(var(--cols, 3), minmax(0, 1fr));
}
.centrum-sched__head { background: var(--navy); color: #fff; }
.centrum-sched__hcell {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1rem 1.1rem;
	font-weight: 700;
	font-size: 0.85rem;
	line-height: 1.35;
	border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.centrum-sched__hcell--day { border-left: 0; }
.centrum-sched__row { border-top: 1px solid var(--border); }
.centrum-sched__day {
	display: flex;
	align-items: center;
	padding: 1.15rem 1.35rem;
	font-weight: 800;
	color: var(--heading);
	/* No capitalize: Czech uses sentence case (client req 2026-07-08). */
	letter-spacing: 0.02em;
	font-size: 0.9rem;
}
.centrum-sched__cell {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1.15rem 1.1rem;
	border-left: 1px solid var(--border);
}
.centrum-sched__times { display: flex; flex-direction: column; gap: 0.25rem; align-items: center; }
.centrum-sched__time { font-weight: 700; color: var(--heading); font-size: 0.95rem; }
.centrum-sched__dash { color: var(--muted); }

/* Phones: the 640px table only showed its first column and hid the rest behind
   an unmarked sideways scroll. Each day becomes a card instead, one labelled
   line per column (label from the cell's data-label). */
@media (max-width: 640px) {
	.centrum-sched-wrap { overflow: visible; }
	.centrum-sched { min-width: 0; }
	.centrum-sched__head { display: none; }
	.centrum-sched__row { display: block; padding: 1rem 1.15rem; }
	.centrum-sched__row:first-of-type { border-top: 0; }
	.centrum-sched__day { padding: 0 0 0.35rem; font-size: 1rem; }
	.centrum-sched__cell {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.4rem 0;
		border-left: 0;
		text-align: left;
	}
	.centrum-sched__cell::before {
		content: attr(data-label);
		flex: 1 1 auto;
		font-size: 0.88rem;
		line-height: 1.4;
		color: var(--body);
	}
	.centrum-sched__times { flex: 0 0 auto; align-items: flex-end; text-align: right; }
}

.centrum-sched__notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.centrum-note {
	text-align: center;
	padding: clamp(1.5rem, 2.8vw, 2.1rem);
	border: 1px solid var(--border);
	border-top: 3px solid var(--primary);
}
.centrum-note__title {
	display: block;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: var(--primary);
	font-size: 0.85rem;
	margin-bottom: 0.65rem;
}
.centrum-note__text { color: var(--body); line-height: 1.6; font-size: 0.94rem; }
.centrum-note__text p { margin-bottom: 0.4rem; }
.centrum-note__text p:last-child { margin-bottom: 0; }

/* --- Rychlé odkazy — bold gradient action buttons -------------------------- */
.centrum-links-sec { padding-top: 0; margin-top: calc(1.25rem - var(--section-y)); }
.centrum-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.centrum-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.4rem 1.75rem;
	border-radius: var(--radius);
	background: var(--primary-deep);
	color: #fff;
}
.centrum-link:hover { background: var(--primary-dark); color: #fff; }
.centrum-link__label { font-weight: 700; letter-spacing: 0.02em; font-size: 0.92rem; }
.centrum-link__arrow { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.centrum-link__arrow svg { width: 1.05rem; height: 1.05rem; }

/* --- Náš tým — reuses the homepage .tym carousel component verbatim -------- */
/* Grid-line backdrop behind the team section (matches the hero). Scoped to the
   centrum page so the homepage team section is untouched. */
.centrum-single .tym { position: relative; }
.centrum-single .tym > .container { position: relative; z-index: 1; }

/* --- Kontakt — reuses the homepage .kontakt section verbatim ---------------
   (form left · details-card + map aside right). kontakt.css is enqueued
   globally, so all .kontakt__* classes are already styled — no overrides. */

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 720px) {
	.centrum-facts-bar__items { grid-template-columns: 1fr; gap: 1rem; }
	.centrum-facts-bar { align-items: stretch; }
}
@media (max-width: 680px) {
	.centrum-features { grid-template-columns: 1fr; }
	.centrum-schedule__row { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* Narrow screens: the badge text wraps to two lines, where a full pill radius
   reads as a bubble — square it off slightly instead. */
@media (max-width: 620px) {
	.centrum-facts-bar__badge { border-radius: var(--radius); }
}

/* --- Nabízené služby: image span sizing (see the 2×3 grid above) ---------- */
.centrum-sluzby__cols { row-gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.centrum-sluzby__photo { align-self: stretch; display: grid; }
.centrum-sluzby__photo > .centrum-sluzby__img,
.centrum-sluzby__photo > .media-panel { height: 100%; }
.centrum-sluzby__img { aspect-ratio: auto; min-height: 240px; }
.centrum-sluzby__panel { aspect-ratio: auto; min-height: 240px; }
.centrum-sluzby__poj { margin-top: 0; }
.centrum-sluzby__promise { align-self: start; }

@media (max-width: 860px) {
	/* Single column — back to source order, nothing spans. */
	.centrum-sluzby__cols > .section__head--light,
	.centrum-sluzby__list,
	.centrum-sluzby__poj,
	.centrum-sluzby__photo,
	.centrum-sluzby__promise { grid-area: auto; }
	.centrum-sluzby__img,
	.centrum-sluzby__panel { min-height: 260px; }
}
