/*
Theme Name: HENE Twenty Twenty-Five Child
Theme URI: https://hene.vlastimilcerny.cz
Description: Šablona pro Helena Nenádlová s.r.o. — profesionální předseda a správa nemovitostí. Postaveno na Twenty Twenty-Five.
Author: HENE
Template: twentytwentyfive
Version: 1.1.12
Requires at least: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hene-tt5-child
*/

/* Most styling lives in theme.json. This file holds only what theme.json cannot
   express: the brand stripe, accent bars, arrow links, icons and the split hero. */

:root {
	--hene-stripe: linear-gradient(
		90deg,
		var(--wp--preset--color--accent-1) 0 25%,
		var(--wp--preset--color--accent-2) 25% 50%,
		var(--wp--preset--color--accent-3) 50% 75%,
		var(--wp--preset--color--accent-4) 75% 100%
	);
	--hene-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9.5 3.5 14 8l-4.5 4.5' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E");
	--hene-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 2.8 9.4 6.5c.4.5.3 1.2-.1 1.7L7.8 9.8a13 13 0 0 0 6.4 6.4l1.6-1.5c.5-.4 1.2-.5 1.7-.1l3.7 2.8c.5.4.6 1.2.2 1.7l-1.6 2c-.6.8-1.7 1.1-2.7.8C10.7 20 4 13.3 2.1 6.9c-.3-1 0-2.1.8-2.7l2-1.6c.5-.4 1.3-.3 1.7.2Z' fill='none' stroke='black' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
	--hene-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='1' fill='none' stroke='black' stroke-width='1.4'/%3E%3Cpath d='m3 6 9 7 9-7' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E");
	--hene-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.5s-7-6.2-7-12a7 7 0 0 1 14 0c0 5.8-7 12-7 12Z' fill='none' stroke='black' stroke-width='1.4'/%3E%3Ccircle cx='12' cy='9.5' r='2.5' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E");
	--hene-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke='black' stroke-width='1.4'/%3E%3Cpath d='M12 6.5V12l3.5 2.5' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E");
}

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

.hene-logo {
	margin: 0;
	line-height: 1;
}
.hene-logo a {
	display: inline-block;
}
/* Logo from hene.cz (300×109 source, the only size that exists). */
.hene-logo img {
	display: block;
	width: auto;
	height: 44px;
}
.hene-logo--tile {
	display: inline-block;
	background: var(--wp--preset--color--white);
	padding: 14px 22px 16px;
}

/* ---------- Page frame ---------- */

/* Sections carry their own backgrounds; no root block gap between main and footer. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

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

.hene-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.hene-header .wp-block-navigation__container {
	gap: clamp(1rem, 2.6vw, 2.3rem);
}
/* Mobile menu overlay: large, left-aligned items. */
.hene-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start;
	padding-top: 3.5rem;
}
.hene-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
	gap: 1.1rem;
	font-family: var(--wp--preset--font-family--source-serif);
	font-size: 1.6rem;
}

/* On phones the hamburger is enough; every page repeats the CTA in its content. */
@media (max-width: 600px) {
	.hene-header .hene-header__cta {
		display: none;
	}
}

/* ---------- Brand stripe & accent bars ---------- */

.hene-stripe {
	height: 6px;
	background: var(--hene-stripe);
	border: 0;
	margin: 0;
}

.hene-accent::before {
	content: "";
	display: block;
	width: 36px;
	height: 3px;
	margin-bottom: 1.1rem;
	background: var(--hene-accent, var(--wp--preset--color--accent-1));
}
.hene-accent--yellow { --hene-accent: var(--wp--preset--color--accent-2); }
.hene-accent--blue   { --hene-accent: var(--wp--preset--color--accent-3); }
.hene-accent--red    { --hene-accent: var(--wp--preset--color--accent-4); }

/* ---------- Button style: text link with arrow ---------- */

.wp-block-button.is-style-hene-link .wp-block-button__link {
	background: transparent;
	color: inherit;
	padding-left: 0;
	padding-right: 0;
	border-radius: 0;
}
.wp-block-button.is-style-hene-link .wp-block-button__link::after,
.hene-arrow-link a::after {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-left: 0.7em;
	vertical-align: -0.15em;
	background: currentColor;
	-webkit-mask: var(--hene-arrow) center / contain no-repeat;
	mask: var(--hene-arrow) center / contain no-repeat;
	transition: transform 0.15s ease;
}
.wp-block-button.is-style-hene-link .wp-block-button__link:hover {
	background: transparent;
	color: var(--wp--preset--color--accent-1);
}
.wp-block-button.is-style-hene-link .wp-block-button__link:hover::after,
.hene-arrow-link a:hover::after {
	transform: translateX(3px);
}

/* ---------- Text helpers ---------- */

.hene-eyebrow {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hene-arrow-link a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

.hene-icon {
	display: flex;
	align-items: center;
	gap: 0.9em;
}
.hene-icon::before {
	content: "";
	flex: none;
	width: 1.25em;
	height: 1.25em;
	background: currentColor;
	-webkit-mask: var(--hene-icon) center / contain no-repeat;
	mask: var(--hene-icon) center / contain no-repeat;
	opacity: 0.85;
}
.hene-icon--phone { --hene-icon: var(--hene-phone); }
.hene-icon--mail  { --hene-icon: var(--hene-mail); }
.hene-icon--pin   { --hene-icon: var(--hene-pin); }
.hene-icon--clock { --hene-icon: var(--hene-clock); }
.hene-icon a {
	text-decoration: none;
}
.hene-icon a:hover {
	text-decoration: underline;
}

/* ---------- Split hero ---------- */

/* Both columns sit in the wide container, so text and photo share the page grid. */
.hene-hero > .wp-block-columns {
	gap: 0;
	margin-top: 0;
	margin-bottom: 0;
}
.hene-hero__text {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
	padding-right: var(--wp--preset--spacing--60);
}
.hene-hero__media {
	position: relative;
	align-self: stretch;
	min-height: 320px;
}
.hene-hero__media .wp-block-image,
.hene-hero__media .wp-block-image img {
	height: 100%;
	width: 100%;
	margin: 0;
}
.hene-hero__media .wp-block-image img {
	object-fit: cover;
	display: block;
}
.hene-hero__media::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 6px;
	background: var(--hene-stripe);
}
@media (max-width: 781px) {
	.hene-hero__text {
		padding-right: 0;
	}
	.hene-hero__media {
		min-height: 0;
	}
	.hene-hero__media .wp-block-image img {
		aspect-ratio: 4 / 3;
	}
}

/* ---------- Values strip ---------- */

.wp-block-columns.hene-footer__cols {
	flex-wrap: wrap !important;
}
.wp-block-columns.hene-footer__cols > .wp-block-column {
	flex: 1 1 130px !important;
}

.hene-values {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.hene-values__items {
	gap: 0 !important;
}
.hene-values__items > * {
	margin: 0 !important;
	padding: 0.4rem clamp(1rem, 3vw, 2.6rem);
}
.hene-values__items > * + * {
	border-left: 1px solid var(--wp--preset--color--line);
}
@media (max-width: 781px) {
	.hene-values__items > * {
		padding: 0.4rem 1rem 0.4rem 0;
	}
	.hene-values__items > * + * {
		padding-left: 1rem;
	}
}

/* ---------- Cards, lists, figures ---------- */

.hene-card {
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--white);
}

/*
 * Empty filler column that pads out the last row of cards. Flex columns grow
 * from their padding + border, so the filler needs the same box as a card or
 * the last card comes out wider than the rest.
 */
.wp-block-columns:has(> .hene-card) > .wp-block-column:empty {
	padding-inline: var(--wp--preset--spacing--40);
	border: 1px solid transparent;
}

.hene-checklist {
	list-style: none;
	padding-left: 0;
}
.hene-checklist li {
	position: relative;
	padding-left: 1.6em;
	margin-bottom: 0.55em;
}
.hene-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 0.8em;
	height: 1px;
	background: var(--hene-accent, var(--wp--preset--color--accent-1));
}

.hene-figure-number {
	font-family: var(--wp--preset--font-family--source-serif);
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	line-height: 1;
}

.hene-step-number {
	font-family: var(--wp--preset--font-family--source-serif);
	font-size: 1.1rem;
	color: var(--wp--preset--color--accent-1);
}

.hene-photo img {
	display: block;
	width: 100%;
	object-fit: cover;
}

/* ---------- Timeline, offices, FAQ ---------- */

.hene-timeline > .wp-block-columns {
	margin: 0;
	padding: var(--wp--preset--spacing--40) 0;
	border-top: 1px solid var(--wp--preset--color--line);
}
.hene-timeline > .wp-block-columns:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.hene-timeline .hene-figure-number {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.hene-office + .hene-office {
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--line);
}

.hene-faq .wp-block-details {
	border-top: 1px solid var(--wp--preset--color--line);
	padding: 1.1rem 0;
}
.hene-faq .wp-block-details:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.hene-faq summary {
	cursor: pointer;
	font-weight: 500;
	list-style: none;
	position: relative;
	padding-right: 2rem;
}
.hene-faq summary::-webkit-details-marker {
	display: none;
}
.hene-faq summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: -0.1rem;
	font-size: 1.3rem;
	font-weight: 300;
	color: var(--wp--preset--color--accent-1);
}
.hene-faq details[open] summary::after {
	content: "−";
}
.hene-faq details > p {
	margin-top: 0.8rem;
}

/* Linked card titles read as headings, not as body links. */
.hene-card h3 a,
.hene-accent h3 a {
	text-decoration: none;
}
.hene-card h3 a:hover,
.hene-accent h3 a:hover {
	text-decoration: underline;
}

/* ---------- Footer ---------- */

.hene-footer a:not(.wp-element-button) {
	text-decoration: none;
}
.hene-footer a:not(.wp-element-button):hover {
	text-decoration: underline;
	color: inherit;
}
.hene-footer .hene-contact-lines > * + * {
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	padding-top: 1rem;
}
.hene-footer__rule {
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

