/* Sticky landing header — always on top while scrolling */
html {
	scroll-padding-top: var(--fanni-header-offset, 4.75rem);
}

.home .wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 200;
	background-color: #f5f0e8;
	/* Never clip the mobile nav overlay / hamburger */
	overflow: visible;
}

.fanni-site-header {
	position: relative;
	z-index: 201;
	background-color: #f5f0e8;
	overflow: visible;
}

.fanni-site-header .wp-block-navigation,
.fanni-site-header .wp-block-navigation__responsive-container,
.fanni-site-header .wp-block-navigation__responsive-container.is-menu-open {
	z-index: 100000;
}

/* Brand = wordmark, not a plain underlined link */
.fanni-brand-wrap {
	max-width: 16rem;
}

.fanni-brand,
.fanni-brand a,
.fanni-brand-role,
.fanni-brand-role a {
	color: inherit !important;
	text-decoration: none !important;
	text-underline-offset: unset;
}

.fanni-brand,
.fanni-brand a {
	color: #2c2c2c !important;
	font-weight: 600 !important;
	letter-spacing: -0.015em;
}

.fanni-brand-role,
.fanni-brand-role a {
	color: #5c7a62 !important;
	font-weight: 450 !important;
	letter-spacing: 0.01em;
}

.fanni-brand a:hover,
.fanni-brand a:focus,
.fanni-brand-role a:hover,
.fanni-brand-role a:focus {
	color: #4a684f !important;
	text-decoration: none !important;
}

/* Nav links: clean, slightly stronger weight */
.fanni-site-header .wp-block-navigation a,
.fanni-nav .wp-block-navigation-item__content {
	color: #2c2c2c !important;
	font-weight: 480 !important;
	text-decoration: none !important;
	opacity: 0.9;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.fanni-site-header .wp-block-navigation a:hover,
.fanni-site-header .wp-block-navigation a:focus,
.fanni-nav .wp-block-navigation-item__content:hover,
.fanni-nav .wp-block-navigation-item__content:focus {
	color: #5c7a62 !important;
	opacity: 1;
	text-decoration: none !important;
}

/* Readable body + headings on the one-pager */
.home .wp-site-blocks,
.home main.wp-block-group {
	color: #2c2c2c;
	font-family: Manrope, "Segoe UI", sans-serif;
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.home main h1,
.home main h2,
.home main h3,
.home main .wp-block-heading {
	font-family: Manrope, "Segoe UI", sans-serif;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: #2c2c2c;
	text-wrap: balance;
	font-weight: 600 !important;
}

.home main h1 {
	font-weight: 600 !important;
}

@media (min-width: 782px) {
	.home main h1 .fanni-title-role {
		white-space: nowrap;
	}
}

.home main h2 {
	font-weight: 600 !important;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.home main h3 {
	font-weight: 550 !important;
	line-height: 1.35;
}

.fanni-services h3 {
	color: #5c7a62;
	font-size: clamp(1.2rem, 2.2vw, 1.35rem) !important;
}

.fanni-services p {
	max-width: none;
}

.home main p {
	line-height: 1.7;
	max-width: 42rem;
	font-weight: 400;
}

.home main strong {
	font-weight: 600;
}

.home main .has-text-align-center p,
.home main p.has-text-align-center {
	max-width: none;
}

.home main .wp-block-quote {
	border-left-color: #5c7a62;
	font-size: 1.05rem;
	line-height: 1.7;
}

.home main .wp-block-quote cite {
	font-size: 0.9rem;
	font-style: normal;
	font-weight: 500;
	color: #5c7a62;
	opacity: 0.95;
}

.home main a:not(.wp-element-button) {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.home main .wp-element-button {
	font-family: Manrope, "Segoe UI", sans-serif;
	font-weight: 500;
	letter-spacing: 0.01em;
}

/* Footer readability */
.wp-site-blocks > footer.wp-block-template-part {
	font-family: Manrope, "Segoe UI", sans-serif;
	line-height: 1.5;
	/* Kill theme block-gap (white strip between contact + footer) */
	margin-block-start: 0 !important;
}

.wp-site-blocks > footer.wp-block-template-part a {
	color: inherit;
	text-decoration: none !important;
}

/* Landing page: no white seams between full-bleed sections */
.home .wp-site-blocks > main.wp-block-group {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* Contact — same type scale as about, no boxed “form card” look */
.fanni-contact-details {
	max-width: none;
}

.fanni-contact-item {
	max-width: none;
	width: 100%;
}

.fanni-contact-label {
	max-width: none !important;
	margin: 0 !important;
	color: #5c7a62 !important;
	font-size: 0.78rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.08em;
	line-height: 1.3 !important;
	text-transform: uppercase;
}

.fanni-contact-line {
	max-width: none !important;
	margin: 0 !important;
	color: #4a4a4a;
	font-size: inherit;
	font-weight: 400;
	line-height: 1.55 !important;
}

.fanni-contact-line a {
	color: #2c2c2c !important;
	font-weight: 400 !important;
	text-decoration: none !important;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.fanni-contact-line a:hover,
.fanni-contact-line a:focus {
	color: #5c7a62 !important;
	border-bottom-color: #5c7a62;
}

/* Address list — soft dividers instead of sharp boxes */
.fanni-map-addresses {
	max-width: none;
	width: 100%;
}

.fanni-map-addresses > .fanni-contact-label {
	margin-bottom: 0.15rem !important;
}

.fanni-map-address-row {
	max-width: none !important;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
	border-bottom: 1px solid #e0d9cc;
	border-radius: 0;
	background: transparent;
	line-height: 1.5 !important;
	transition: background-color 0.2s ease;
}

.fanni-map-addresses > .fanni-map-address-row:first-of-type {
	border-top: 1px solid #e0d9cc;
}

.fanni-map-address {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.35rem 1rem;
	box-sizing: border-box;
	width: 100%;
	padding: 0.85rem 0.15rem;
	color: #4a4a4a !important;
	font-size: inherit;
	font-weight: 400 !important;
	letter-spacing: -0.01em;
	text-decoration: none !important;
	cursor: pointer;
	outline: none;
}

.fanni-map-address:focus {
	outline: none;
}

.fanni-map-address:focus-visible {
	outline: 2px solid #5c7a62;
	outline-offset: 2px;
}

.fanni-map-address-row:hover,
.fanni-map-address-row:focus-within {
	background: rgba(92, 122, 98, 0.06);
}

.fanni-map-address:hover,
.fanni-map-address:focus,
.fanni-map-address.is-active {
	color: #5c7a62 !important;
}

.fanni-map-address-row:has(.fanni-map-address.is-active) {
	background: rgba(92, 122, 98, 0.08);
}

.fanni-map-address-text {
	font-weight: 400;
}

.fanni-map-address-action {
	color: #5c7a62;
	font-size: 0.9em;
	font-weight: 450;
	letter-spacing: 0.01em;
	white-space: nowrap;
	opacity: 0.85;
}

.fanni-map-popup strong,
.fanni-map-popup a {
	display: block;
}

.fanni-map-popup strong {
	margin-bottom: 0.65rem;
	color: #2c2c2c;
	font-size: 0.95rem;
	line-height: 1.4;
	font-weight: 500;
}

.fanni-map-popup a {
	padding: 0.55rem 0.85rem;
	border-radius: 8px;
	color: #fff !important;
	background: #5c7a62;
	font-size: 0.9rem;
	font-weight: 450;
	text-align: center;
	text-decoration: none !important;
}

.fanni-map-popup a:hover,
.fanni-map-popup a:focus {
	background: #4a684f;
}

/* Contact map (Leaflet) — soft corners, match about image radius */
#kapcsolat .wp-block-columns {
	align-items: stretch;
}

.fanni-map-frame {
	display: block;
	width: 100%;
	height: 480px;
	border-radius: 12px;
	overflow: hidden;
	background: #ebe6dc;
}

#fanni-contact-map {
	display: block;
	width: 100%;
	height: 480px;
	background: #ebe6dc;
}

#fanni-contact-map.leaflet-container {
	width: 100%;
	height: 480px;
	font: inherit;
	z-index: 0;
	border-radius: 12px;
}

@media (max-width: 781px) {
	.fanni-map-frame,
	#fanni-contact-map,
	#fanni-contact-map.leaflet-container {
		height: 360px;
		min-height: 360px;
	}

	.fanni-map-frame {
		margin-top: 0.5rem;
	}
}

/* Contact form — matches the soft, sage-on-cream palette */
.fanni-contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	margin-top: 1.75rem;
	max-width: 100%;
}

.fanni-form-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.fanni-form-label {
	color: #5c7a62;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.fanni-form-input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.85rem;
	border: 1px solid #d8d0c2;
	border-radius: 6px;
	background: #fffdf8;
	color: #2c2c2c;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fanni-form-input:focus {
	outline: none;
	border-color: #5c7a62;
	box-shadow: 0 0 0 3px rgba(92, 122, 98, 0.15);
}

/* Inline field errors — appear under each field, clear individually */
.fanni-field-error {
	display: block;
	margin-top: 0.35rem;
	color: #b4463c;
	font-size: 0.82rem;
	font-weight: 450;
	line-height: 1.4;
}

.fanni-form-input[aria-invalid="true"] {
	border-color: #b4463c;
	box-shadow: 0 0 0 3px rgba(180, 70, 60, 0.12);
}

.fanni-form-checkbox-label input[type="checkbox"][aria-invalid="true"] {
	outline: 2px solid #b4463c;
	outline-offset: 2px;
}

.fanni-form-consent .fanni-field-error {
	margin-top: 0.5rem;
	margin-left: 1.6rem;
}

.fanni-form-textarea {
	resize: vertical;
	min-height: 6rem;
}

/* Segmented toggle: Párterápia | Családterápia */
.fanni-form-toggle {
	display: flex;
	gap: 0.5rem;
}

.fanni-form-toggle input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.fanni-form-toggle label {
	flex: 1;
	box-sizing: border-box;
	padding: 0.65rem 1rem;
	border: 1px solid #d8d0c2;
	border-radius: 6px;
	background: #fffdf8;
	color: #4a4a4a;
	font-size: 0.95rem;
	font-weight: 500;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fanni-form-toggle label:hover {
	border-color: #5c7a62;
}

.fanni-form-toggle input[type="radio"]:checked + label {
	background: #5c7a62;
	border-color: #5c7a62;
	color: #fff;
}

.fanni-form-toggle input[type="radio"]:focus-visible + label {
	outline: 2px solid #5c7a62;
	outline-offset: 2px;
}

/* Consent checkbox */
.fanni-form-consent {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.6rem;
}

.fanni-form-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	color: #4a4a4a;
	font-size: 0.85rem;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.5;
	text-transform: none;
	cursor: pointer;
}

.fanni-form-checkbox-label input[type="checkbox"] {
	margin-top: 0.2rem;
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	accent-color: #5c7a62;
	cursor: pointer;
}

/* Honeypot — hidden from users, visible to bots */
.fanni-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Submit button — matches hero CTA */
.fanni-form-button {
	align-self: flex-start;
	padding: 0.9rem 1.75rem;
	border: none;
	border-radius: 6px;
	background: #5c7a62;
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.fanni-form-button:hover,
.fanni-form-button:focus {
	background: #4a684f;
	outline: none;
}

.fanni-form-button:focus-visible {
	outline: 2px solid #5c7a62;
	outline-offset: 2px;
}

/* Success / error messages */
.fanni-form-message {
	padding: 1rem 1.25rem;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
	margin-bottom: 1rem;
	border-left: 4px solid;
}

.fanni-form-success {
	background: #e8f0ea;
	border: 1px solid #5c7a62;
	border-left: 4px solid #5c7a62;
	color: #2d4a33;
}

.fanni-form-error {
	background: #fbeae8;
	border: 1px solid #b4463c;
	border-left: 4px solid #b4463c;
	color: #7a2a24;
}

.fanni-form-error ul {
	margin: 0;
	padding-left: 1.2rem;
}

.fanni-form-error li {
	margin: 0.2rem 0;
}

@media (max-width: 781px) {
	.fanni-form-toggle {
		flex-direction: column;
	}
}

