/*
Theme Name: AlmarFit
Theme URI: https://www.almarfit.com/
Author: AlmarFit
Description: Tema (designul) site-ului AlmarFit: culorile, fonturile, meniul, subsolul și aspectul paginilor pe calculator și pe telefon. Conținutul și funcțiile vin din pluginurile „AlmarFit – Site public” și „AlmarFit – Zona clientelor”.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 2.22.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: almarfit
*/

/* =========================================================
   AlmarFit brand: charcoal, gold, blush. Classic serif caps.
   ========================================================= */

/* ---------- Quality floor ---------- */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--gold-light);
	outline-offset: 3px;
	border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--wp--preset--color--gold-light); color: var(--wp--preset--color--night); }

/* Smooth page-to-page change (browsers that support it); the header stays put. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Page rhythm ---------- */
.wp-site-blocks > main, .wp-site-blocks > footer { margin-block-start: 0; }

/* ---------- Sticky header, present while scrolling and on every page ---------- */
.wp-site-blocks > header:first-child {
	position: sticky; top: 0; z-index: 100;
}
.admin-bar .wp-site-blocks > header:first-child { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header:first-child { top: 0; } }
/* The blur sits on a pseudo-element: a backdrop-filter on the header itself would trap the
   full-screen mobile menu inside the header's height. */
.af-header {
	position: relative; isolation: isolate;
	border-bottom: 1px solid rgba(210, 176, 76, .25);
}
.af-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(29, 28, 30, .94);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.af-header .af-logo img { width: 64px; height: auto; border-radius: 50%; }
.af-header .wp-block-site-logo:has(img) + .af-wordmark { display: none; }
.af-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--cream); }
.af-header .wp-block-navigation a:hover,
.af-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--gold-light); }
.af-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--night) !important;
	border: 1px solid rgba(210, 176, 76, .3) !important;
	border-radius: 12px; padding: .5rem 0; min-width: 240px;
}
.af-header .wp-block-navigation .wp-block-navigation__submenu-container a { padding: .5rem 1rem; }
.af-header .af-header__cta .wp-block-button__link { padding: .55rem 1.1rem; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--gold-light); }
.af-header .af-header__social { gap: .75rem; }
@media (max-width: 1100px) { .af-header .af-header__social { display: none; } }
@media (max-width: 600px) { .af-header .af-header__cta { display: none; } }

/* ---------- Buttons: gold gradient like the current brand ---------- */
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:not(.has-background) {
	background-image: linear-gradient(135deg, #C79F36 0%, #EBD58A 55%, #D2B04C 100%);
	box-shadow: 0 6px 18px rgba(210, 176, 76, .22);
}
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:not(.has-background):hover { filter: brightness(1.06); }
.wp-element-button, .wp-block-button__link { transition: filter .15s ease, background-color .15s ease, color .15s ease; }

/* ---------- Section colour contexts ---------- */
.has-blush-background-color { color: var(--wp--preset--color--wine); }
.has-blush-background-color a:not(.wp-element-button) { color: var(--wp--preset--color--wine); }
.has-light-background-color, .has-white-background-color { color: var(--wp--preset--color--base); }
.has-light-background-color a:not(.wp-element-button),
.has-white-background-color a:not(.wp-element-button) { color: var(--wp--preset--color--wine); }
.has-blush-background-color .is-style-outline .wp-block-button__link,
.has-light-background-color .is-style-outline .wp-block-button__link { color: var(--wp--preset--color--wine); }

/* ---------- Lead paragraph ---------- */
.af-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.55; color: inherit; opacity: .92; }
.af-muted { color: var(--wp--preset--color--muted); }

/* ---------- Hero ---------- */
.af-hero.wp-block-cover { min-height: calc(100svh - 90px); }
.af-hero h1 { max-width: 16em; margin-inline: auto; }
.af-hero .af-hero__quote { max-width: 30em; font-style: italic; }
.af-hero .af-hero__quote cite { display: block; font-style: normal; margin-top: .4rem; opacity: .8; }

/* ---------- Offer path (a real sequence) ---------- */
.af-path { counter-reset: af-step; --af-bg: var(--wp--preset--color--base); }
.has-ink-background-color .af-path, .af-path.has-ink-background-color { --af-bg: var(--wp--preset--color--ink); }
.af-path > .wp-block-column { position: relative; padding-top: 2.75rem; }
.af-path > .wp-block-column::before {
	counter-increment: af-step; content: counter(af-step);
	position: absolute; top: 0; left: 0; width: 2rem; height: 2rem; border-radius: 50%;
	display: grid; place-items: center; font-weight: 700; font-size: .95rem;
	background: var(--af-bg); border: 1.5px solid var(--wp--preset--color--gold); color: var(--wp--preset--color--gold-light); z-index: 1;
}
.af-path > .wp-block-column::after {
	content: ""; position: absolute; top: 1rem; left: 2rem; right: -2rem;
	border-top: 1.5px dashed rgba(210, 176, 76, .45);
}
.af-path > .wp-block-column:last-child::after { display: none; }
.af-path > .af-step--featured::before { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--night); }
.af-step__price { font-family: var(--wp--preset--font-family--caslon); font-size: var(--wp--preset--font-size--x-large); line-height: 1; margin-block: .25rem .5rem; color: var(--wp--preset--color--gold-light); }
.has-blush-background-color .af-step__price, .has-light-background-color .af-step__price { color: var(--wp--preset--color--wine); }
.af-step__price small { font-family: var(--wp--preset--font-family--figtree); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.af-step__tag { font-size: .8125rem; font-weight: 600; color: var(--wp--preset--color--gold-light); line-height: 1.2; }
.af-path > .wp-block-column > .af-step__tag { position: absolute; top: .45rem; left: 2.75rem; margin: 0; background: var(--af-bg); padding-right: .5rem; z-index: 1; }
@media (max-width: 781px) {
	.af-path > .wp-block-column { padding-top: 0; padding-left: 3rem; }
	.af-path > .wp-block-column > .af-step__tag { position: static; background: none; padding: 0; margin-bottom: .25rem; }
	.af-path > .wp-block-column::after { top: 2.25rem; bottom: -2rem; left: 1rem; right: auto; border-top: 0; border-left: 1.5px dashed rgba(210, 176, 76, .45); }
}

/* ---------- Markers ---------- */
.af-marker { position: relative; padding-left: 1.75rem; }
.af-marker::before { content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .9rem; border-radius: 50% 50% 50% 0; background: var(--af-marker, var(--wp--preset--color--gold)); }
.af-marker--leaf, .af-marker--grain, .af-marker--citrus { --af-marker: var(--wp--preset--color--gold); }
.af-marker--sprout { --af-marker: var(--wp--preset--color--sage); }
.af-marker--beet { --af-marker: var(--wp--preset--color--blush); }
.af-marker h3, .af-marker h4 { margin-top: 0; }

/* ---------- Plans ---------- */
.af-plan { border-top: 1.5px solid rgba(243, 239, 232, .35); padding-top: var(--wp--preset--spacing--50); scroll-margin-top: 120px; }
.af-plan--featured { border-top-color: var(--wp--preset--color--gold); }

/* ---------- Photos ---------- */
.af-photo { border-radius: var(--wp--custom--radius--large); overflow: hidden; }

/* ---------- Cards ---------- */
.af-cards .wp-block-post-title { margin-top: .9rem; }
.af-cards .wp-block-post-title a:hover { color: var(--wp--preset--color--gold-light); }
.af-cards .wp-block-post-excerpt { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.has-blush-background-color .af-cards .wp-block-post-excerpt { color: inherit; }
.af-terms a { text-decoration: none; }
.af-terms .wp-block-categories { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.af-terms .wp-block-categories li a { display: inline-block; padding: .35rem .9rem; border: 1px solid rgba(210, 176, 76, .55); border-radius: 999px; color: var(--wp--preset--color--cream); }
.af-terms .wp-block-categories li a:hover { background: rgba(210, 176, 76, .15); }

/* ---------- FAQ ---------- */
.wp-block-details summary { cursor: pointer; font-weight: 600; font-size: var(--wp--preset--font-size--large); }
.wp-block-details[open] summary { margin-bottom: .5rem; }

/* ---------- Long text (story, articles) ---------- */
.af-prose p { margin-block: 0 1.1em; }

/* ---------- Footer ---------- */
.af-footer a { color: inherit; text-decoration: none; }
.af-footer a:hover { text-decoration: underline; color: var(--wp--preset--color--gold-light); }
.af-footer .wp-block-heading { color: var(--wp--preset--color--gold-light); }
.af-footer .af-footer__list { list-style: none; padding: 0; margin: 0; }
.af-footer .af-footer__list li { margin-block: .4rem; }
.af-footer .af-footer__fine { font-size: var(--wp--preset--font-size--small); opacity: .75; }

/* ---------- Editor-only notes ---------- */
.af-todo { background: #FFF3C4; color: #3A3200; border-left: 4px solid var(--wp--preset--color--gold); padding: .75rem 1rem; font-size: var(--wp--preset--font-size--small); text-transform: none; }

/* Mobile: logo left, language switcher and menu button on the right */
@media (max-width: 781px) {
	.af-header .alignwide > .wp-block-group:first-child { display: contents; }
	.af-header .alignwide > .wp-block-group:last-child { order: 2; margin-left: auto; }
	.af-header .af-nav { order: 3; }
}

/* ---------- Language switcher ---------- */
.af-lang { display: flex; gap: .15rem; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; }
.af-lang a { color: var(--wp--preset--color--muted); text-decoration: none; padding: .25rem .4rem; border-radius: 6px; }
.af-lang a:hover { color: var(--wp--preset--color--gold-light); }
.af-lang a.is-current { color: var(--wp--preset--color--night); background: var(--wp--preset--color--gold-light); }
.af-header .wp-block-shortcode, .af-header .af-lang { margin: 0; }

/* ---------- Mobile menu (full screen) ---------- */
.af-nav .af-nav-mobile-only { display: none; }
.af-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--night) !important;
	padding: calc(1.25rem + env(safe-area-inset-top, 0px)) 1.5rem 2rem;
	overflow-y: auto;
}
.af-header .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem; gap: .25rem; }
.af-header .is-menu-open .wp-block-navigation__container { gap: .15rem !important; width: 100%; }
.af-header .is-menu-open .wp-block-navigation-item { width: 100%; }
.af-header .is-menu-open .wp-block-navigation-item > a,
.af-header .is-menu-open .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--caslon); text-transform: uppercase; letter-spacing: .04em;
	font-size: 1.25rem; padding: .55rem 0; display: block;
}
.af-header .is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important; border: 0 !important; border-left: 1px solid rgba(210, 176, 76, .35) !important;
	border-radius: 0; padding: 0 0 .5rem 1rem !important; min-width: 0; margin-left: .25rem;
}
.af-header .is-menu-open .wp-block-navigation__submenu-container a {
	font-family: var(--wp--preset--font-family--figtree) !important; text-transform: none !important; letter-spacing: 0 !important;
	font-size: 1.0625rem !important; padding: .4rem 0 !important; color: var(--wp--preset--color--muted) !important;
}
.af-header .is-menu-open .wp-block-navigation__submenu-icon { display: none; }
.af-header .is-menu-open .af-nav-mobile-only { display: block; margin-top: 1rem; }
.af-header .is-menu-open .af-nav-mobile-only > a {
	display: inline-block !important; border: 1.5px solid var(--wp--preset--color--gold-light); border-radius: 999px;
	padding: .6rem 1.4rem !important; font-size: 1rem !important; color: var(--wp--preset--color--gold-light) !important;
}
.af-header .wp-block-navigation__responsive-container-close { top: calc(1.25rem + env(safe-area-inset-top, 0px)); right: 1.5rem; color: var(--wp--preset--color--cream); }
.af-header .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--cream); }
.af-header .wp-block-navigation__responsive-container-open svg,
.af-header .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }

/* =========================================================
   v2: mobile clarity
   ========================================================= */

/* Hero: one main action, Maria visible */
.af-hero .af-hero__photo { min-height: 560px; }
.af-hero .af-hero__actions .wp-block-button { flex: 0 1 auto; }
.af-btn-big > .wp-block-button__link { font-size: 1.125rem; padding: 1.1rem 2.1rem; }
.af-hero__note { margin-top: .75rem; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.af-hero__note a { color: var(--wp--preset--color--gold-light); }

/* Results strip: swipe sideways on phones */
.af-strip { gap: 1.25rem !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.af-strip > .af-story { flex: 0 0 min(300px, 80vw); scroll-snap-align: start; margin: 0 !important; }
.af-story { background: rgba(29, 28, 30, .55); border: 1px solid rgba(210, 176, 76, .25); border-radius: 20px; padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.af-story .af-photo { border-radius: 14px; min-height: 280px !important; }
.af-story__quote { font-family: var(--wp--preset--font-family--caslon); font-style: italic; font-size: 1.125rem; line-height: 1.5; margin: 0; }
.af-story__name { font-weight: 700; color: var(--wp--preset--color--gold-light); margin: 0; }
.af-story--text { justify-content: center; }
.af-strip__more a { color: var(--wp--preset--color--gold-light); font-weight: 600; }

/* Nutrition summary box */
.af-summary-box { border: 1px solid rgba(210, 176, 76, .4); border-radius: 16px; padding: 1.25rem 1.5rem; background: rgba(29, 28, 30, .4); }
.af-summary-box h2 { margin-top: 0; }
.af-summary-box ul { margin: 0; padding-left: 1.2rem; }

/* About: timeline, pull quote, full story */
.has-light-background-color .af-path { --af-bg: var(--wp--preset--color--light); }
.has-light-background-color .af-path > .wp-block-column::before { border-color: var(--wp--preset--color--wine); color: var(--wp--preset--color--wine); }
.has-light-background-color .af-path > .wp-block-column::after { border-color: rgba(122, 52, 68, .35); }
.af-pullquote { border-left-color: var(--wp--preset--color--wine) !important; margin-block: var(--wp--preset--spacing--60) !important; }
.af-pullquote p { font-size: clamp(1.35rem, 3.5vw, 1.85rem); line-height: 1.4; }
.af-fullstory { border: 0 !important; }
.af-fullstory > summary {
	display: inline-flex; align-items: center; gap: .5rem; list-style: none; cursor: pointer;
	padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid currentColor; font-size: 1rem !important;
}
.af-fullstory > summary::-webkit-details-marker { display: none; }
.af-fullstory > summary::after { content: "↓"; }
.af-fullstory[open] > summary::after { content: "↑"; }
.af-fullstory[open] > summary { margin-bottom: 1.5rem; }
.af-fullstory p { max-width: 42em; }

/* Phone action bar (hidden on large screens) */
.af-mobilebar { display: none !important; }

/* Tap targets */
.wp-block-button__link { min-height: 44px; }

@media (max-width: 781px) {
	/* Type scale for phones: headings stay readable without eating the screen */
	h1, .wp-block-heading.has-display-font-size, h1.has-xx-large-font-size { font-size: clamp(1.9rem, 8.2vw, 2.4rem) !important; line-height: 1.12; }
	h2, h2.has-xx-large-font-size { font-size: clamp(1.5rem, 6.4vw, 1.9rem) !important; }
	.af-lead { font-size: 1.125rem; }

	/* Hero: portrait first, then the message and one clear action */
	.af-hero { padding-top: var(--wp--preset--spacing--50) !important; }
	.af-hero__cols .af-hero__media { order: -1; }
	.af-hero .af-hero__photo { min-height: 300px !important; }
	.af-hero__text { text-align: center; }
	.af-hero__actions { justify-content: center; }
	.af-hero__actions .wp-block-button, .af-hero__actions .wp-block-button__link { width: 100%; }

	/* About photo shorter on phones */
	.af-about__photo { min-height: 340px !important; }

	/* Free plan: the form comes first */
	.af-cols-form-first > .wp-block-column:last-child { order: -1; }

	/* Phone action bar */
	.af-mobilebar {
		display: flex !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; gap: .6rem !important;
		padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom, 0px)) !important; margin: 0 !important;
		background: rgba(29, 28, 30, .97); border-top: 1px solid rgba(210, 176, 76, .3);
	}
	.af-mobilebar .wp-block-buttons { margin: 0 !important; }
	.af-mobilebar__main { flex: 1; }
	.af-mobilebar__main .wp-block-button, .af-mobilebar__main .wp-block-button__link { width: 100%; }
	.af-mobilebar .wp-block-button__link { padding: .75rem 1rem !important; font-size: 1rem !important; }
	.af-mobilebar__wa .wp-block-button__link {
		color: #9FE3B4 !important; border-color: #4FBF72 !important;
		padding-left: 2.4rem !important;
		background: no-repeat .9rem 50% / 1.1rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239FE3B4'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.3-.4.7-1.4a.5.5 0 0 0 0-.5l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.8 11.9 11.9 0 0 0 4.6 4c1.7.7 2.4.8 3.2.7a2.8 2.8 0 0 0 1.8-1.3 2.3 2.3 0 0 0 .2-1.3c-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E") !important;
	}
	body:not(.af-no-mobilebar) .wp-site-blocks { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
	body.af-no-mobilebar .af-mobilebar { display: none !important; }

	/* Footer links: bigger tap targets */
	.af-footer .af-footer__list li { margin-block: .7rem; }
}

/* Mobile menu: account on top, free plan button at the bottom */
.af-header .is-menu-open .wp-block-navigation__container { display: flex; flex-direction: column; }
.af-header .is-menu-open .af-nav-account { order: -1; margin: 0 0 .75rem !important; }
.af-header .is-menu-open .af-nav-cta { order: 99; margin-top: 1.25rem !important; }
.af-header .is-menu-open .af-nav-cta > a {
	display: block !important; text-align: center; border: 0 !important; color: var(--wp--preset--color--night) !important;
	background-image: linear-gradient(135deg, #C79F36 0%, #EBD58A 55%, #D2B04C 100%); border-radius: 999px; padding: .9rem 1.4rem !important;
	font-family: var(--wp--preset--font-family--caslon) !important; text-transform: none !important; font-size: 1.125rem !important;
}

/* =========================================================
   v2.8: public pages rebuilt (first page, free plan, plans and prices, consultation).
   Every page is made of sections (.af-sec) holding ordinary blocks; the classes below only place and colour them.
   ========================================================= */
.af-sec {
	--af-line: rgba(243, 239, 232, .12);
	margin-block: 0 !important; padding: 52px 20px;
	background: var(--wp--preset--color--ink); color: var(--wp--preset--color--cream);
}
.af-sec--night { background: var(--wp--preset--color--night); }
.af-sec--base { background: var(--wp--preset--color--base); }
.af-sec--blush { background: var(--wp--preset--color--blush); color: var(--wp--preset--color--wine); --af-line: rgba(122, 52, 68, .18); }
.af-sec--head { padding-bottom: 36px; }
.af-sec > .af-wrap { max-width: var(--wp--style--global--wide-size, 1180px) !important; margin-inline: auto !important; }
.af-sec--narrow > .af-wrap { max-width: 760px !important; }
/* WordPress puts a gap above every block; inside these sections each class sets its own. */
html .af-sec :where(.af-wrap, .wp-block-column, .wp-block-group, .wp-block-columns) > * { margin-block: 0; }
.af-sec .wp-block-columns { display: block; }
.af-sec h2, .af-sec h3 { text-transform: none; letter-spacing: 0; }
.af-sec h1 { letter-spacing: .01em; }
.af-sec h3 { font-family: var(--wp--preset--font-family--figtree); font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.af-sec .af-eyebrow { font-size: .78rem; font-weight: 700; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--gold-light); margin-bottom: 10px; }
.af-sec .af-lead { font-size: 1.09rem; line-height: 1.55; color: var(--wp--preset--color--muted); opacity: 1; margin-top: 12px; }
.af-sec .af-micro { margin-top: 12px; font-size: .875rem; line-height: 1.45; color: var(--wp--preset--color--muted); }
.af-sec .af-more { margin-top: 16px; }
.af-sec .af-more a { font-weight: 600; color: var(--wp--preset--color--gold-light); text-decoration: none; }
.af-sec .af-more a:hover { text-decoration: underline; }
.af-sec .af-h-small { font-size: 1.5rem !important; margin-top: 44px; }
.af-sec--blush :is(h1, h2, .af-eyebrow, .af-lead, .af-micro) { color: var(--wp--preset--color--wine); }

/* Buttons inside the sections: one clear action, easy to tap */
.af-sec .wp-block-button__link, .af-mobilebar .wp-block-button__link {
	font-family: var(--wp--preset--font-family--figtree); font-weight: 700; letter-spacing: 0; min-height: 54px;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
}
.af-sec .af-btn-big > .wp-block-button__link { font-size: 1.0625rem; padding: .9rem 1.75rem; box-shadow: 0 10px 28px rgba(210, 176, 76, .28); }
.af-sec .af-btn-wa > .wp-block-button__link {
	background: #1F3A2B !important; background-image: none !important; color: #9BE3B5 !important;
	box-shadow: inset 0 0 0 1.5px rgba(111, 191, 140, .5) !important;
}
.af-sec .af-btn-wa > .wp-block-button__link::before {
	content: ""; flex: none; width: 20px; height: 20px;
	background: no-repeat 50% / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239BE3B5'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.3-.4.7-1.4a.5.5 0 0 0 0-.5l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.8 11.9 11.9 0 0 0 4.6 4c1.7.7 2.4.8 3.2.7a2.8 2.8 0 0 0 1.8-1.3 2.3 2.3 0 0 0 .2-1.3c-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E");
}
.af-hero2__cta, .af-plan2__cta { margin-top: 22px !important; }
.af-hero2__cta .wp-block-button, .af-plan2__cta .wp-block-button, .af-hero2__cta .wp-block-button__link, .af-plan2__cta .wp-block-button__link { width: 100%; }

/* Lists: ticks and diamonds */
.af-sec ul.af-checks, .af-sec ul.af-creds, .af-sec ul.af-chips { list-style: none; padding: 0; }
.af-sec ul.af-checks { display: grid; gap: 9px; margin-top: 16px; font-size: .97rem; line-height: 1.45; }
.af-sec ul.af-checks li { position: relative; padding-left: 26px; }
.af-sec ul.af-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--wp--preset--color--sage); font-weight: 800; }
.af-sec ul.af-creds { display: grid; gap: 8px; margin-top: 18px; font-size: .97rem; }
.af-sec ul.af-creds li { position: relative; padding-left: 22px; }
.af-sec ul.af-creds li::before { content: "◆"; position: absolute; left: 0; top: .32em; font-size: .68rem; color: var(--wp--preset--color--gold); }
.af-sec--blush ul.af-creds li::before { color: var(--wp--preset--color--wine); }
.af-sec ul.af-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.af-sec ul.af-chips li { padding: 7px 13px; border-radius: 999px; font-size: .875rem; font-weight: 600; color: #E6E1DA; box-shadow: inset 0 0 0 1px var(--af-line); background: rgba(243, 239, 232, .04); }

/* Opening of the first page */
.af-hero2 { background: var(--wp--preset--color--night); padding: 0 0 34px; position: relative; overflow: hidden; }
.af-hero2 > .af-wrap { max-width: none !important; }
.af-hero2__cols { display: flex !important; flex-direction: column; }
.af-hero2__media { order: -1; position: relative; }
.af-hero2__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 110px; background: linear-gradient(to bottom, rgba(29, 28, 30, 0), var(--wp--preset--color--night)); pointer-events: none; }
.af-hero2__photo { margin: 0 !important; }
.af-hero2__photo img { display: block; width: 100%; height: 320px; object-fit: cover; object-position: 38% 30%; border-radius: 0 !important; }
.af-hero2__text { padding: 6px 20px 0; }
.af-hero2__text .af-lead { font-size: 1.125rem; color: #E6E1DA; margin-top: 14px; }
.af-proof { display: grid; grid-template-columns: 1.15fr 1fr 1.25fr; margin-top: 28px !important; border-top: 1px solid var(--af-line); padding-top: 18px; }
.af-proof p { padding: 0 8px; border-left: 1px solid var(--af-line); font-size: .8125rem; line-height: 1.3; color: var(--wp--preset--color--muted); }
.af-proof p:first-child { border-left: 0; padding-left: 0; }
.af-proof p strong { display: block; margin-bottom: 6px; white-space: nowrap; font: 400 1.35rem/1 var(--wp--preset--font-family--caslon); color: var(--wp--preset--color--gold-light); }
.af-proof br { display: none; }

/* The app, in screens */
.af-phones { display: flex; gap: 18px; overflow-x: auto; padding: 26px 20px 6px; margin: 0 -20px !important; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.af-phones::-webkit-scrollbar { display: none; }
.af-phone { flex: none; width: 232px; scroll-snap-align: center; }
.af-phone__screen { margin: 0 !important; border-radius: 34px; padding: 7px; background: #0E0D0F; box-shadow: 0 0 0 1.5px #5A5650, 0 22px 44px rgba(0, 0, 0, .45); }
.af-phone__screen img { display: block; width: 100%; height: auto; border-radius: 28px !important; }
.af-phone h3 { margin-top: 16px; }
.af-phone p { margin-top: 4px; font-size: .94rem; line-height: 1.45; color: var(--wp--preset--color--muted); }

/* How Maria helps: the steps */
.af-tl { counter-reset: af-tl; margin-top: 26px !important; }
.af-tl__step { position: relative; padding: 0 0 24px 40px; counter-increment: af-tl; }
.af-tl__step::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 1.5px; background: linear-gradient(var(--wp--preset--color--gold), rgba(210, 176, 76, .15)); }
.af-tl__step:last-child { padding-bottom: 0; }
.af-tl__step:last-child::before { display: none; }
.af-tl__step::after {
	content: counter(af-tl); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
	display: grid; place-items: center; font: 700 .75rem/1 var(--wp--preset--font-family--figtree); color: #1D1C1E;
	background: linear-gradient(135deg, var(--wp--preset--color--gold-light), var(--wp--preset--color--gold));
}
.af-tl__when { font-size: .75rem; font-weight: 700; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--gold-light); }
.af-tl__step--elite .af-tl__when { color: #F2CDD3; }
.af-tl__step h3 { margin-top: 3px; font-size: 1.09rem; }
.af-tl__step p:last-child { margin-top: 3px; font-size: .97rem; line-height: 1.5; color: var(--wp--preset--color--muted); }
.af-tl__split { margin: 0 0 22px 40px !important; padding: 8px 14px; border-radius: 12px; font-size: .875rem; font-weight: 600; color: #F2CDD3; background: rgba(242, 205, 211, .08); box-shadow: inset 0 0 0 1px rgba(242, 205, 211, .25); }

/* Plans */
.af-plans { display: grid !important; gap: 14px; margin-top: 26px !important; }
.af-plan2 { border-radius: 22px; padding: 22px; background: rgba(243, 239, 232, .05); box-shadow: inset 0 0 0 1px var(--af-line); scroll-margin-top: 110px; }
.af-plan2--top { background: linear-gradient(160deg, #3A3526, #2C2B2D 60%); box-shadow: inset 0 0 0 1.5px rgba(210, 176, 76, .65); }
.af-plan2 h3 { font-family: var(--wp--preset--font-family--caslon); font-weight: 400; font-size: 1.25rem; }
.af-plan2 h2 { font-size: 1.6rem !important; }
.af-plan2__tag { display: inline-block; margin-bottom: 10px !important; padding: 4px 11px; border-radius: 999px; font-size: .75rem; font-weight: 700; line-height: 1.3; color: #1D1C1E; background: linear-gradient(135deg, var(--wp--preset--color--gold-light), var(--wp--preset--color--gold)); }
.af-sec .af-plan2__price { margin-top: 6px; font: 400 2rem/1.1 var(--wp--preset--font-family--caslon); color: var(--wp--preset--color--gold-light); }
.af-plan2--wide { background: rgba(0, 0, 0, .14); }
/* 2.8.2: the Maintenance Plan card on Plans and prices (for AlmarFit clients; chosen inside the app, so no button). */
.af-plan2__tag--line { color: var(--wp--preset--color--gold-light); background: none; box-shadow: inset 0 0 0 1px rgba(210, 176, 76, .55); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.af-plan2--maint + .af-plan2 { margin-top: 28px !important; }
/* 2.8.3: the Light Plan card (site plugin, [almarfit_light_card]) sits above the Maintenance Plan, at the same distance
   (also when Maria moves it below another card). */
.af-plan2--light + .af-plan2, .af-plan2--wide + .af-plan2--light { margin-top: 28px !important; }
.af-sec .af-plan2__price small { margin-left: 4px; font: 500 .94rem/1 var(--wp--preset--font-family--figtree, inherit); color: var(--wp--preset--color--muted, #C9C4BD); }
.af-sec .af-plan2__note { margin-top: 14px; font-size: .94rem; line-height: 1.55; color: var(--wp--preset--color--muted, #C9C4BD); }

/* About Maria */
.af-about2__photo { margin: 0 !important; border-radius: 22px; overflow: hidden; }
.af-about2__photo img { display: block; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 12%; border-radius: 0 !important; }
.af-about2__text { margin-top: 26px !important; }
.af-media { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; margin-top: 22px !important; padding: 12px; border-radius: 18px; background: rgba(243, 239, 232, .05); box-shadow: inset 0 0 0 1px var(--af-line); font-size: .94rem; line-height: 1.45; }
.af-media__photo { margin: 0 !important; }
.af-media__photo img { display: block; width: 100%; aspect-ratio: 1 / 1.15; object-fit: cover; object-position: 50% 15%; border-radius: 12px !important; }
.af-media p { color: var(--wp--preset--color--muted); }
.af-media p strong { font-size: 1rem; color: var(--wp--preset--color--cream); }

/* Three steps */
.af-steps3 { display: grid; gap: 14px; margin-top: 22px !important; counter-reset: af-s; }
.af-steps3__step { position: relative; padding-left: 46px; counter-increment: af-s; }
.af-steps3__step::before { content: counter(af-s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 400 1.0625rem/1 var(--wp--preset--font-family--caslon); color: var(--wp--preset--color--gold-light); box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--gold); }
.af-steps3__step p { margin-top: 2px; font-size: .97rem; line-height: 1.5; color: var(--wp--preset--color--muted); }

/* Free plan page */
.af-free__form { margin-top: 22px !important; }

/* Plans and prices: the comparison */
.af-pr__compare { margin-top: 44px !important; }
.af-pr__compare .af-h-small { margin-top: 0; }
.af-sec .af-cmp { margin: 22px 0 0; }
.af-sec .af-cmp table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.4; table-layout: fixed; }
.af-sec .af-cmp :is(th, td) { padding: 12px 4px; word-break: normal; overflow-wrap: normal; border: 0; border-bottom: 1px solid var(--af-line); text-align: center; vertical-align: middle; }
.af-sec .af-cmp thead { border: 0; }
.af-sec .af-cmp :is(th, td):first-child { text-align: left; padding-left: 0; }
.af-sec .af-cmp th:nth-child(2) { width: 74px; }
.af-sec .af-cmp th:nth-child(3) { width: 112px; }
.af-sec .af-cmp thead th { font-size: .8125rem; font-weight: 700; line-height: 1.2; color: var(--wp--preset--color--muted); }
.af-sec .af-cmp :is(th, td):nth-child(2) { color: var(--wp--preset--color--muted); }
.af-sec .af-cmp :is(th, td):nth-child(3) { background: rgba(210, 176, 76, .07); color: var(--wp--preset--color--sage); font-weight: 700; }
.af-sec .af-cmp thead th:nth-child(3) { color: var(--wp--preset--color--gold-light); }

@media (min-width: 900px) {
	.af-sec { padding: 88px 40px; }
	.af-sec--head { padding-bottom: 52px; }
	.af-sec .af-lead { font-size: 1.17rem; }
	.af-sec .af-h-small { font-size: 1.875rem !important; }
	.af-hero2 { padding: 0 40px; }
	.af-hero2 > .af-wrap { max-width: var(--wp--style--global--wide-size, 1180px) !important; }
	.af-hero2__cols { min-height: 640px; flex-direction: row; align-items: center; }
	.af-hero2__text { position: relative; z-index: 1; flex: none; width: 54%; padding: 70px 0; }
	.af-hero2__text .af-lead { font-size: 1.3rem; max-width: 520px; }
	.af-hero2__media { position: absolute; inset: 0 0 0 46%; order: 0; }
	.af-hero2__media::after { inset: 0 auto 0 0; width: 46%; height: auto; background: linear-gradient(to right, var(--wp--preset--color--night) 4%, rgba(29, 28, 30, 0)); }
	.af-hero2__photo, .af-hero2__photo img { height: 100%; }
	.af-hero2__photo img { object-position: 78% 40%; }
	.af-hero2__cta .wp-block-button, .af-hero2__cta .wp-block-button__link { width: auto; }
	.af-proof { max-width: 560px; }
	.af-proof p { font-size: .9rem; }
	.af-proof p strong { font-size: 2.1rem; }
	.af-phones { overflow: visible; justify-content: space-between; gap: 24px; margin: 0 !important; padding: 44px 0 0; }
	.af-phone { width: 23%; max-width: 250px; }
	.af-phones--3 { justify-content: center; gap: 72px; }
	.af-split { display: grid !important; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
	.af-split .af-tl { margin-top: 0 !important; }
	.af-plans { grid-template-columns: 1fr 1.18fr 1fr; gap: 20px; align-items: start; margin-top: 40px !important; }
	.af-plan2 { padding: 30px; }
	.af-about2 { display: grid !important; grid-template-columns: .8fr 1fr; gap: 64px; align-items: center; }
	.af-about2__text { margin-top: 0 !important; }
	.af-steps3 { grid-template-columns: repeat(3, 1fr); gap: 28px; }
	.af-free { display: grid !important; grid-template-columns: 1fr 460px; gap: 72px; align-items: center; }
	.af-free__form { margin-top: 0 !important; }
	.af-pr { display: grid !important; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
	.af-pr__compare { margin-top: 0 !important; }
	.af-plan2--wide .af-plan2__cta .wp-block-button, .af-plan2--wide .af-plan2__cta .wp-block-button__link { width: auto; }
}

/* Closing call of a page */
.af-closing h2 { font-size: 1.875rem !important; }
.af-closing .af-hero2__cta { margin-top: 22px !important; }
@media (min-width: 900px) {
	.af-closing > .af-wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
	.af-closing h2 { font-size: 2.6rem !important; }
	.af-closing .af-hero2__cta { margin-top: 0 !important; flex: none; }
}
.af-sec--head .af-plan2__price { margin-top: 18px; }
.af-sec .af-wrap > p:not([class]) { margin-top: 18px; }
.wp-site-blocks > .af-sec { margin-block-start: 0; }
/* The gold button of the phone bar keeps its dark text (the footer's link colour was washing it out). */
.af-mobilebar__main .wp-block-button__link { color: var(--wp--preset--color--night) !important; }
@media (min-width: 900px) {
	.af-hero2__text h1 { max-width: 10.5em; }
	.af-plans > .af-plan2 { align-self: start; }
}
