/**
 * AquaFit Sursee — front-end theme styles.
 *
 * Everything references the CSS custom properties emitted by the dynamic CSS
 * engine (inc/dynamic-css.php), so the dashboard controls the whole look.
 *
 * @package AquaFit_Sursee
 */

/* ------------------------------------------------------------------ *
 * 1. Base & typography
 * ------------------------------------------------------------------ */
:root { color-scheme: dark; }
body.af-skin-light { color-scheme: light; }

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--af-font-body, sans-serif);
	font-size: var(--af-base-size, 17px);
	line-height: var(--af-line, 1.7);
	color: var(--af-text);
	background-color: var(--af-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--af-font-heading, serif);
	color: var(--af-heading);
	font-weight: var(--af-heading-weight, 600);
	letter-spacing: var(--af-heading-spacing, 0);
	line-height: 1.15;
	margin: 0 0 var(--af-heading-margin, .6em);
}
h1 { font-size: var(--af-h1); }
h2 { font-size: var(--af-h2); }
h3 { font-size: var(--af-h3); }
h4 { font-size: var(--af-h4); }
h5 { font-size: var(--af-h5); }
h6 { font-size: var(--af-h6); }

p { margin: 0 0 1.2em; }

a { color: var(--af-link, var(--af-primary)); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--af-link, var(--af-primary)); opacity: .82; }

img { max-width: 100%; height: auto; display: block; }

.af-muted { color: var(--af-muted); }
.af-label, .af-eyebrow { font-size: .78rem; letter-spacing: .14em; color: var(--af-muted); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.af-skip-link { position: absolute; left: -9999px; z-index: 1000; }
.af-skip-link:focus {
	left: 16px; top: 12px; width: auto; height: auto; clip: auto;
	background: var(--af-primary); color: #fff; padding: 10px 16px; border-radius: 8px;
}

.dashicons { font-family: dashicons; }

/* ------------------------------------------------------------------ *
 * 2. Layout helpers
 * ------------------------------------------------------------------ */
.af-container { width: 100%; max-width: var(--af-container, 1320px); margin: 0 auto; padding: 0 24px; }
.af-container-fluid { width: 100%; padding: 0 24px; }
.af-section { padding: clamp(48px, 7vw, 96px) 0; }
.af-content-col { min-width: 0; }

.af-section-head { margin-bottom: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.af-section-head--center { flex-direction: column; text-align: center; gap: 14px; }
.af-section-title { margin: 0; }
.af-section-rule { flex: 1; height: 1px; background: var(--af-border); max-width: 120px; }
.af-section-rule--top { width: 60px; height: 2px; background: var(--af-primary); border-radius: 2px; }

/* ------------------------------------------------------------------ *
 * 3. Buttons
 * ------------------------------------------------------------------ */
.af-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: var(--af-btn-padding, 14px 30px);
	border-radius: var(--af-btn-radius, 40px);
	font-weight: 600; font-size: .95rem; line-height: 1;
	border: 1px solid transparent; cursor: pointer;
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
	text-align: center;
}
.af-btn .dashicons { font-size: 18px; width: 18px; height: 18px; }
.af-btn:hover { transform: translateY(-2px); }
.af-btn--secondary { background: var(--af-btn-bg); color: var(--af-btn-text); }
.af-btn--secondary:hover { background: var(--af-btn-bg-hover); color: var(--af-btn-text); }
.af-btn--primary { background: var(--af-primary); color: #fff; }
.af-btn--primary:hover { background: var(--af-primary-08); color: #fff; box-shadow: 0 12px 30px -10px var(--af-primary); }
.af-btn--outline { background: transparent; border-color: var(--af-border); color: var(--af-heading); }
.af-btn--outline:hover { border-color: var(--af-primary); color: var(--af-primary); }
.af-btn--ghost { background: rgba(255,255,255,.06); border-color: var(--af-border); color: var(--af-heading); backdrop-filter: blur(6px); }
.af-btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--af-heading); }
.af-btn--sm { padding: 10px 20px; font-size: .85rem; }
.af-btn--lg { padding: 16px 34px; font-size: 1rem; }

/* Announcement top bar */
.af-topbar { position: relative; z-index: 110; font-size: .88rem; border-bottom: 1px solid var(--af-border); }
.af-topbar-inner { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 42px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.af-topbar-text { opacity: .92; }
.af-topbar-link { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.af-topbar-link:hover { color: inherit; opacity: .8; }
.af-topbar-close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .7; }
.af-topbar-close:hover { opacity: 1; }
.af-topbar.is-hidden { display: none; }
.rtl .af-topbar-close { right: auto; left: 16px; }

/* ------------------------------------------------------------------ *
 * 4. Header
 * ------------------------------------------------------------------ */
.af-header { position: relative; z-index: 100; background: var(--af-bg-alt); border-bottom: 1px solid var(--af-border); }
.af-header--transparent { position: absolute; inset: 0 0 auto 0; background: transparent; border-bottom-color: transparent; }
.af-header--sticky.is-stuck {
	position: fixed; inset: 0 0 auto 0; background: color-mix(in srgb, var(--af-bg-alt) 88%, transparent);
	backdrop-filter: blur(14px); border-bottom-color: var(--af-border);
	animation: afSlideDown .35s ease; box-shadow: 0 10px 30px -18px #000;
}
@keyframes afSlideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
body.af-admin-bar .af-header--sticky.is-stuck { top: 32px; }

.af-header-inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.af-header--centered-logo .af-nav { margin: 0 auto; }
.af-header-brand { flex-shrink: 0; }
.af-header-brand img { max-height: 52px; width: auto; }
.custom-logo-link { display: inline-block; }
.af-logo-text { font-family: var(--af-font-heading); font-size: 1.6rem; color: var(--af-heading); letter-spacing: .04em; }

.af-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.af-action {
	display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; cursor: pointer;
	color: var(--af-heading); font-size: .9rem; padding: 8px 10px; border-radius: 10px;
}
.af-action:hover { color: var(--af-primary); }
.af-action .dashicons { font-size: 18px; width: 18px; height: 18px; }

/* Nav */
.af-nav { padding: 0; }
.af-menu { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.af-menu .nav-link {
	color: var(--af-heading); font-size: .96rem; padding: 10px 14px; border-radius: 10px;
	opacity: .9; position: relative;
}
.af-menu .nav-link:hover, .af-menu .active > .nav-link { color: var(--af-primary); opacity: 1; }
.af-menu .dropdown-menu {
	background: var(--af-bg-alt); border: 1px solid var(--af-border); border-radius: var(--af-radius-sm);
	padding: 8px; min-width: 210px; box-shadow: 0 20px 40px -20px #000; margin-top: 8px;
}
.af-menu .dropdown-item { color: var(--af-text); border-radius: 8px; padding: 9px 12px; }
.af-menu .dropdown-item:hover { background: var(--af-surface); color: var(--af-primary); }

/* Department menu items: per-item color + icon, revealed on hover/active. */
.af-menu .nav-link, .af-menu .dropdown-item { display: flex; align-items: center; gap: 8px; }
.af-menu .af-has-department { --af-item-color: var(--af-primary); }
.af-menu-icon { font-size: 16px; width: 16px; height: 16px; color: var(--af-muted); transition: color .2s ease, transform .2s ease; flex-shrink: 0; }
.af-menu-label { position: relative; }
.af-menu .af-has-department:hover, .af-menu .active > .af-has-department, .af-menu .af-has-department[aria-current="page"] { color: var(--af-item-color); }
.af-menu .af-has-department:hover .af-menu-icon, .af-menu .active > .af-has-department .af-menu-icon { color: var(--af-item-color); transform: scale(1.12); }

/* Reveal: underline */
.af-menu .af-reveal-underline .af-menu-label::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
	background: var(--af-item-color); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.af-menu .af-reveal-underline:hover .af-menu-label::after,
.af-menu .active > .af-reveal-underline .af-menu-label::after { transform: scaleX(1); }

/* Reveal: filled background */
.af-menu .af-reveal-background { border-radius: 10px; transition: background .2s ease, color .2s ease; }
.af-menu .af-reveal-background:hover, .af-menu .active > .af-reveal-background { background: var(--af-item-color); color: #fff; }
.af-menu .af-reveal-background:hover .af-menu-icon, .af-menu .active > .af-reveal-background .af-menu-icon { color: #fff; }

/* Reveal: color dot */
.af-menu .af-reveal-dot .af-menu-label::after {
	content: ""; position: absolute; left: 50%; bottom: -8px; width: 6px; height: 6px; border-radius: 50%;
	background: var(--af-item-color); transform: translateX(-50%) scale(0); transition: transform .2s ease;
}
.af-menu .af-reveal-dot:hover .af-menu-label::after,
.af-menu .active > .af-reveal-dot .af-menu-label::after { transform: translateX(-50%) scale(1); }

.dropdown-submenu { position: relative; }
.dropdown-submenu .dropdown-menu { top: 0; left: 100%; margin: 0 0 0 6px; }

.af-nav-toggle { display: none; border: 1px solid var(--af-border); background: transparent; border-radius: 10px; padding: 9px 11px; cursor: pointer; }
.af-nav-backdrop { position: fixed; inset: 0; z-index: 130; background: rgba(4,10,15,.5); }

/* Logo variants (only swap when the alternate logo is actually set) */
.af-logo--sticky, .af-logo--mobile { display: none; }
.af-logo img, .af-logo--sticky img, .af-logo--mobile img { max-height: 52px; width: auto; }
.af-header--sticky.is-stuck .has-sticky-logo .af-logo--main { display: none; }
.af-header--sticky.is-stuck .has-sticky-logo .af-logo--sticky { display: inline-block; }

/* Mega menu (full-width dropdown) */
.af-menu .af-mega { position: static; }
.af-menu .af-mega .dropdown-menu {
	left: 0; right: 0; width: 100%; display: flex; flex-wrap: wrap; gap: 8px 34px;
	padding: 26px clamp(24px, 5vw, 60px);
}
.af-menu .af-mega .dropdown-menu > li { flex: 1 1 180px; }
.af-menu .af-mega .dropdown-menu .dropdown-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0; background: transparent; }
.af-burger, .af-burger::before, .af-burger::after {
	display: block; width: 22px; height: 2px; background: var(--af-heading); border-radius: 2px; transition: .25s;
}
.af-burger { position: relative; }
.af-burger::before, .af-burger::after { content: ""; position: absolute; left: 0; }
.af-burger::before { top: -7px; }
.af-burger::after { top: 7px; }

/* Search flyout */
.af-search-flyout {
	position: absolute; inset: 100% 0 auto 0; background: var(--af-bg-alt);
	border-bottom: 1px solid var(--af-border); padding: 26px 0; z-index: 120;
	box-shadow: 0 20px 40px -24px #000;
}
.af-search-flyout .af-container { position: relative; display: flex; }
.af-search-form { display: flex; width: 100%; gap: 10px; }
.af-search-input {
	flex: 1; background: var(--af-surface); border: 1px solid var(--af-border); color: var(--af-heading);
	border-radius: 40px; padding: 14px 22px; font-size: 1.05rem;
}
.af-search-submit, .af-search-close {
	background: var(--af-primary); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; cursor: pointer;
}
.af-search-close { background: transparent; color: var(--af-muted); font-size: 26px; }

/* ------------------------------------------------------------------ *
 * 5. Hero
 * ------------------------------------------------------------------ */
.af-hero {
	position: relative; min-height: 92vh; display: flex; align-items: center;
	background-size: cover; background-position: center; color: #fff;
	background-color: #0c1a26;
}
.af-hero-overlay {
	position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(6,16,24,.86) 0%, rgba(6,16,24,.5) 45%, rgba(6,16,24,.15) 100%),
		var(--af-hero-overlay);
}
.af-parallax { background-attachment: fixed; }
.af-hero-inner { position: relative; z-index: 2; }
.af-hero-content { max-width: 620px; }
.af-hero-title { font-size: clamp(2.6rem, 5.2vw, 4.4rem); color: #fff; margin-bottom: .3em; }
.af-hero-highlight { color: var(--af-primary); }
.af-hero-subtitle { font-size: 1.2rem; color: rgba(255,255,255,.8); margin-bottom: 2em; max-width: 42ch; }
.af-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.af-hero-scroll {
	position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2;
	display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,.7);
	font-size: .7rem; letter-spacing: .22em;
}
.af-hero-scroll .dashicons { animation: afBob 1.8s ease-in-out infinite; }
@keyframes afBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Info cards over hero (optional, right side) */
.af-hero-info { position: absolute; right: 0; top: 20%; z-index: 2; }

/* ------------------------------------------------------------------ *
 * 6. Page title bar
 * ------------------------------------------------------------------ */
.af-page-title { position: relative; padding: clamp(70px, 12vw, 140px) 0 clamp(40px, 6vw, 70px); background: var(--af-bg-alt); overflow: hidden; }
.af-page-title.af-has-image { background-size: cover; background-position: center; }
.af-page-title-overlay { position: absolute; inset: 0; background: var(--af-hero-overlay); }
.af-page-title.af-has-image .af-page-title-overlay { display: block; }
.af-page-title:not(.af-has-image) .af-page-title-overlay { display: none; }
.af-page-title-inner { position: relative; z-index: 2; }
.af-page-title-heading { margin: 0 0 .3em; }
.af-breadcrumbs { font-size: .88rem; color: var(--af-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.af-breadcrumbs a { color: var(--af-muted); }
.af-breadcrumbs a:hover { color: var(--af-primary); }
.af-breadcrumbs .af-sep { opacity: .5; }

/* ------------------------------------------------------------------ *
 * 7. Areas grid (front page)
 * ------------------------------------------------------------------ */
.af-areas-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.af-area-card {
	position: relative; display: flex; flex-direction: column; gap: 10px;
	background-color: var(--af-surface); border: 1px solid var(--af-border); border-radius: var(--af-radius);
	padding: 26px 22px 46px; color: var(--af-text); overflow: hidden; transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.af-area-card:hover { transform: translateY(-6px); border-color: var(--af-primary); background-color: color-mix(in srgb, var(--af-primary) 8%, var(--af-surface)); }

/* Area card with a representing background image */
.af-area-card--image {
	background-size: cover; background-position: center; background-repeat: no-repeat;
	color: #fff; border-color: rgba(255,255,255,.14); min-height: 240px; justify-content: flex-end;
}
.af-area-overlay {
	position: absolute; inset: 0; z-index: 1; border-radius: inherit;
	background: linear-gradient(to top, rgba(6,16,24,.92) 0%, rgba(6,16,24,.45) 55%, rgba(6,16,24,.22) 100%);
	transition: background .3s ease;
}
.af-area-card--image > *:not(.af-area-overlay) { position: relative; z-index: 2; }
.af-area-card--image .af-area-title { color: #fff; }
.af-area-card--image .af-area-desc { color: rgba(255,255,255,.85); }
.af-area-card--image .af-area-icon { background: color-mix(in srgb, var(--af-primary) 65%, transparent); color: #fff; }
.af-area-card--image:hover { border-color: var(--af-primary); background-color: transparent; }
.af-area-card--image:hover .af-area-overlay { background: linear-gradient(to top, rgba(6,16,24,.94) 0%, rgba(6,16,24,.55) 60%, rgba(6,16,24,.3) 100%); }
.af-area-card--image .af-area-arrow { color: #fff; }

.af-area-icon {
	font-size: 26px; width: 52px; height: 52px; display: grid; place-items: center;
	border-radius: 14px; background: color-mix(in srgb, var(--af-primary) 16%, transparent); color: var(--af-primary);
}
.af-area-title { margin: 4px 0 0; font-size: 1.25rem; }
.af-area-desc { margin: 0; color: var(--af-muted); font-size: .92rem; }
.af-area-arrow { position: absolute; right: 20px; bottom: 18px; color: var(--af-muted); opacity: 0; transform: translateX(-6px); transition: .25s; }
.af-area-card:hover .af-area-arrow { opacity: 1; transform: translateX(0); color: var(--af-primary); }

/* ------------------------------------------------------------------ *
 * 8. Booking bar
 * ------------------------------------------------------------------ */
.af-booking-wrap { padding-top: 0; }
.af-booking {
	display: grid; grid-template-columns: 1fr 2.4fr; gap: 26px; align-items: center;
	background: var(--af-surface); border: 1px solid var(--af-border); border-radius: var(--af-radius); padding: 30px;
}
.af-booking-lead h2 { font-size: 1.5rem; margin: 0 0 .3em; }
.af-booking-form { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; }
.af-booking-field {
	flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 4px;
	background: var(--af-bg-alt); border: 1px solid var(--af-border); border-radius: 12px; padding: 10px 14px;
}
.af-booking-label { font-size: .72rem; color: var(--af-muted); letter-spacing: .05em; text-transform: uppercase; }
.af-booking-field select, .af-booking-field input { background: transparent; border: 0; color: var(--af-heading); font-size: .95rem; outline: none; }

/* ------------------------------------------------------------------ *
 * 9. Portfolio
 * ------------------------------------------------------------------ */
.af-portfolio-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.af-filter {
	background: transparent; border: 1px solid var(--af-border); color: var(--af-muted);
	border-radius: 40px; padding: 8px 20px; cursor: pointer; font-size: .9rem; transition: .2s;
}
.af-filter:hover, .af-filter.is-active { background: var(--af-primary); border-color: var(--af-primary); color: #fff; }

.af-portfolio { display: grid; gap: 24px; }
.af-cols-1 { grid-template-columns: 1fr; }
.af-cols-2 { grid-template-columns: repeat(2, 1fr); }
.af-cols-3 { grid-template-columns: repeat(3, 1fr); }
.af-cols-4 { grid-template-columns: repeat(4, 1fr); }
.af-cols-5 { grid-template-columns: repeat(5, 1fr); }
.af-cols-6 { grid-template-columns: repeat(6, 1fr); }

.af-work-item { position: relative; border-radius: var(--af-radius); overflow: hidden; }
.af-work-media { position: relative; overflow: hidden; border-radius: var(--af-radius); background: var(--af-surface); }
.af-work-img, .af-work-placeholder { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.af-portfolio--masonry .af-work-img { aspect-ratio: auto; }
.af-work-placeholder { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--af-surface), var(--af-bg-alt)); }
.af-work-item:hover .af-work-img { transform: scale(1.06); }

.af-work-rollover {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
	padding: 20px; background: var(--af-rollover); opacity: 0; transition: opacity .3s ease;
}
.af-work-item:hover .af-work-rollover { opacity: 1; }
.af-work-icons { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; }
.af-work-icon {
	width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
	background: rgba(255,255,255,.14); color: #fff; transform: translateY(10px); transition: .3s;
}
.af-work-item:hover .af-work-icon { transform: translateY(0); }
.af-work-icon:hover { background: var(--af-primary); }
.af-work-caption { position: relative; z-index: 2; }
.af-work-title { margin: 0 0 4px; font-size: 1.2rem; }
.af-work-title a { color: #fff; }
.af-work-cats { color: rgba(255,255,255,.75); font-size: .85rem; }

/* Classic layout adds a body under the image */
.af-portfolio--classic .af-work-rollover { justify-content: center; }
.af-work-body { padding: 18px 4px 0; }
.af-portfolio--classic .af-work-title a { color: var(--af-heading); }

/* Text layout */
.af-portfolio--text { display: block; }
.af-portfolio--text .af-work-item { border-bottom: 1px solid var(--af-border); border-radius: 0; padding: 22px 0; }
.af-portfolio--text .af-work-title a { color: var(--af-heading); }
.af-portfolio--text.af-cols-2, .af-portfolio--text.af-cols-3, .af-portfolio--text.af-cols-4 { display: grid; }
/* Text layout — boxed variant */
.af-portfolio--text-boxed .af-work-item { border-bottom: 0; border: 1px solid var(--af-border); background: var(--af-surface); border-radius: var(--af-radius); padding: 24px 26px; }

/* ------------------------------------------------------------------ *
 * Catalog (Angebote / Bereiche)
 * ------------------------------------------------------------------ */
.af-catalog-intro { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.af-catalog-lead { font-family: var(--af-font-heading); font-size: 1.3rem; color: var(--af-heading); }

.af-catalog-subnav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.af-subcat { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--af-border); color: var(--af-muted); border-radius: 40px; padding: 8px 18px; font-size: .9rem; }
.af-subcat .dashicons { font-size: 15px; width: 15px; height: 15px; }
.af-subcat:hover, .af-subcat.is-active { background: var(--af-primary); border-color: var(--af-primary); color: #fff; }

.af-catalog { display: grid; gap: 26px; }
.af-catalog-item { display: flex; flex-direction: column; background: var(--af-surface); border: 1px solid var(--af-border); border-radius: var(--af-radius); overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.af-catalog-item:hover { transform: translateY(-5px); border-color: var(--af-primary); }
.af-catalog-media { position: relative; display: block; overflow: hidden; }
.af-catalog-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.af-catalog-item:hover .af-catalog-img { transform: scale(1.05); }
.af-catalog-price { position: absolute; top: 14px; right: 14px; background: var(--af-secondary); color: #10202b; font-weight: 700; border-radius: 30px; padding: 6px 14px; font-size: .85rem; }
.af-catalog-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.af-catalog-title { font-size: 1.3rem; margin: 0 0 6px; }
.af-catalog-title a { color: var(--af-heading); }
.af-catalog-title a:hover { color: var(--af-primary); }
.af-catalog-subtitle { margin: 0 0 12px; }
.af-catalog-meta { display: flex; gap: 16px; font-size: .85rem; margin-bottom: 14px; }
.af-catalog-meta .dashicons { font-size: 15px; width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; color: var(--af-primary); }
.af-catalog-body .af-readmore { margin-top: auto; }
.af-catalog-cats .af-catalog-cat:hover { border-color: var(--af-item-color, var(--af-primary)); background: color-mix(in srgb, var(--af-item-color, var(--af-primary)) 8%, var(--af-surface)); }
.af-catalog-cats .af-catalog-cat:hover .af-area-icon { background: color-mix(in srgb, var(--af-item-color, var(--af-primary)) 18%, transparent); color: var(--af-item-color, var(--af-primary)); }

/* Offering detail */
.af-angebot-lead { font-family: var(--af-font-heading); font-size: 1.3rem; color: var(--af-heading); margin-bottom: 1em; }
.af-angebot-card { background: var(--af-surface); border: 1px solid var(--af-border); border-radius: var(--af-radius); padding: 28px; position: sticky; top: 100px; }
.af-angebot-pill { display: inline-block; background: var(--af-primary); color: #fff; border-radius: 30px; padding: 5px 16px; font-size: .82rem; font-weight: 600; margin-bottom: 16px; }
.af-angebot-heading { font-size: 1.3rem; margin: 0 0 10px; }
.af-angebot-details { margin: 0 0 22px; }
.af-angebot-details dt { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--af-muted); margin-top: 14px; }
.af-angebot-details dd { margin: 2px 0 0; color: var(--af-heading); font-weight: 600; }
.af-angebot-price { color: var(--af-secondary) !important; font-size: 1.4rem; }
.af-angebot-card .af-btn { width: 100%; justify-content: center; }

@media (max-width: 991.98px) { .af-angebot-card { position: static; } }
@media (max-width: 767.98px) { .af-catalog.af-cols-3, .af-catalog.af-cols-4 { grid-template-columns: 1fr; } }

/* Section band shortcode */
.af-sc-section { position: relative; padding: clamp(48px, 7vw, 96px) 0; color: #fff; overflow: hidden; }
.af-sc-section-overlay { position: absolute; inset: 0; z-index: 1; }
.af-sc-section-inner { position: relative; z-index: 2; }

/* ------------------------------------------------------------------ *
 * 10. Blog layouts
 * ------------------------------------------------------------------ */
.af-blog { display: grid; gap: 30px; }
.af-blog--grid, .af-blog--masonry { grid-template-columns: repeat(var(--af-blog-cols, 2), 1fr); }
.af-blog--grid.af-cols-1, .af-blog--masonry.af-cols-1 { grid-template-columns: 1fr; }
.af-blog--grid.af-cols-2, .af-blog--masonry.af-cols-2 { grid-template-columns: repeat(2, 1fr); }
.af-blog--grid.af-cols-3, .af-blog--masonry.af-cols-3 { grid-template-columns: repeat(3, 1fr); }
.af-blog--grid.af-cols-4, .af-blog--masonry.af-cols-4 { grid-template-columns: repeat(4, 1fr); }

.af-blog-item { background: var(--af-surface); border: 1px solid var(--af-border); border-radius: var(--af-radius); overflow: hidden; }
.af-post-media { position: relative; overflow: hidden; }
.af-post-thumb { width: 100%; object-fit: cover; transition: transform .5s ease; }
.af-blog-item:hover .af-post-thumb { transform: scale(1.04); }
.af-format-badge {
	position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 50%;
	background: var(--af-primary); color: #fff; display: grid; place-items: center;
}
.af-blog-content { padding: 24px 26px 28px; }
.af-post-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .82rem; margin-bottom: 12px; }
.af-post-meta .dashicons { font-size: 15px; width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; color: var(--af-primary); }
.af-post-meta a { color: var(--af-muted); }
.af-blog-title { font-size: 1.5rem; margin: 0 0 .5em; }
.af-blog-title a { color: var(--af-heading); }
.af-blog-title a:hover { color: var(--af-primary); }
.af-readmore { font-weight: 600; font-size: .9rem; }

/* Large / medium (media beside content) */
.af-blog--large, .af-blog--large-alternate, .af-blog--medium, .af-blog--medium-alternate { grid-template-columns: 1fr; }
.af-blog--large .af-blog-inner, .af-blog--large-alternate .af-blog-inner,
.af-blog--medium .af-blog-inner, .af-blog--medium-alternate .af-blog-inner {
	display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch;
}
.af-blog--medium .af-blog-inner, .af-blog--medium-alternate .af-blog-inner { grid-template-columns: 320px 1fr; }
.af-blog--large .af-post-thumb, .af-blog--large-alternate .af-post-thumb,
.af-blog--medium .af-post-thumb, .af-blog--medium-alternate .af-post-thumb { height: 100%; }
.af-blog-item.af-alt .af-blog-inner { direction: rtl; }
.af-blog-item.af-alt .af-blog-content { direction: ltr; }

/* Timeline */
.af-blog--timeline { position: relative; grid-template-columns: 1fr; padding-left: 34px; }
.af-blog--timeline::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--af-border); }
.af-blog--timeline .af-blog-item { position: relative; }
.af-blog--timeline .af-blog-item::before {
	content: ""; position: absolute; left: -34px; top: 28px; width: 14px; height: 14px; border-radius: 50%;
	background: var(--af-primary); box-shadow: 0 0 0 4px var(--af-bg);
}

/* ------------------------------------------------------------------ *
 * 11. Single post / entry content
 * ------------------------------------------------------------------ */
.af-single-media { margin: 0 0 34px; border-radius: var(--af-radius); overflow: hidden; }
.af-single-media--half { max-width: 640px; }
.af-entry { font-size: 1.06rem; }
.af-entry h2, .af-entry h3 { margin-top: 1.6em; }
.af-entry img { border-radius: var(--af-radius-sm); margin: 1em 0; }
.af-entry blockquote {
	margin: 1.6em 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--af-primary);
	font-family: var(--af-font-heading); font-size: 1.3rem; color: var(--af-heading);
}
.af-entry a { text-decoration: underline; text-underline-offset: 3px; }
.af-entry ul, .af-entry ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.af-tags { margin-top: 26px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.af-tags a { background: var(--af-surface); border: 1px solid var(--af-border); border-radius: 30px; padding: 5px 14px; font-size: .82rem; color: var(--af-muted); }
.af-tags a:hover { border-color: var(--af-primary); color: var(--af-primary); }

.af-share { display: flex; align-items: center; gap: 10px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--af-border); }
.af-share-label { margin-right: 4px; }
.af-share-link { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--af-surface); border: 1px solid var(--af-border); color: var(--af-muted); }
.af-share-link:hover { background: var(--af-primary); color: #fff; border-color: var(--af-primary); }

.af-author-profile { display: flex; gap: 26px; align-items: center; background: var(--af-surface); border: 1px solid var(--af-border); border-radius: var(--af-radius); padding: 34px; margin-bottom: 44px; }
.af-author-profile .avatar { border-radius: 50%; }
.af-author-profile-name { margin: 4px 0 10px; }
.af-author-profile-bio { margin: 0 0 14px; max-width: 70ch; }
@media (max-width: 575.98px) { .af-author-profile { flex-direction: column; text-align: center; } }

.af-related { margin-top: 54px; padding-top: 34px; border-top: 1px solid var(--af-border); }
.af-related-title { margin-bottom: 26px; }

/* Post format: quote / link cards (no featured image) */
.af-blog-item--quote .af-blog-content { padding: 34px 30px; }
.af-blog-item--quote .af-blog-title { font-size: 1.5rem; }
.af-blog-item--quote .af-blog-excerpt {
	font-family: var(--af-font-heading); font-size: 1.35rem; line-height: 1.5; color: var(--af-heading);
	border-left: 3px solid var(--af-primary); padding-left: 20px;
}
.af-format-badge--large { position: static; width: auto; height: auto; border-radius: 30px; padding: 4px 14px; display: inline-flex; gap: 6px; margin-bottom: 14px; font-size: .78rem; }

.af-top-shortcode { margin: 0 0 10px; }
.af-author-box { display: flex; gap: 20px; align-items: flex-start; background: var(--af-surface); border: 1px solid var(--af-border); border-radius: var(--af-radius); padding: 26px; margin: 40px 0; }
.af-author-box .avatar { border-radius: 50%; }
.af-author-name { margin: 4px 0 8px; font-size: 1.25rem; }
.af-author-name a { color: var(--af-heading); }
.af-author-bio { margin: 0; }

.af-post-nav { display: flex; justify-content: space-between; gap: 20px; margin: 44px 0; padding-top: 24px; border-top: 1px solid var(--af-border); }
.af-post-nav a { color: var(--af-heading); }
.af-nav-label { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--af-muted); }

/* Project details */
.af-project-card { background: var(--af-surface); border: 1px solid var(--af-border); border-radius: var(--af-radius); padding: 28px; position: sticky; top: 100px; }
.af-project-card dl { margin: 0; }
.af-project-card dt { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--af-muted); margin-top: 14px; }
.af-project-card dd { margin: 2px 0 0; color: var(--af-heading); font-weight: 600; }
.af-project-heading { font-size: 1.3rem; margin: 0 0 6px; }

/* ------------------------------------------------------------------ *
 * 12. Sidebar & widgets
 * ------------------------------------------------------------------ */
.af-sidebar .widget, .af-footer-col .widget { margin-bottom: 34px; }
.widget-title { font-size: 1.1rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--af-primary); }
.af-sidebar .widget { background: var(--af-surface); border: 1px solid var(--af-border); border-radius: var(--af-radius); padding: 24px; }
.af-sidebar .widget-title { color: var(--af-sidebar-heading, var(--af-heading)); }
.af-sidebar ul { list-style: none; margin: 0; padding: 0; }
.af-sidebar li { padding: 8px 0; border-bottom: 1px solid var(--af-border); }
.af-sidebar li:last-child { border-bottom: 0; }
.af-sidebar a { color: var(--af-text); }
.af-sidebar a:hover { color: var(--af-primary); }

/* Custom widgets */
.af-widget-posts { list-style: none; margin: 0; padding: 0; }
.af-widget-post { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0 !important; }
.af-widget-thumb img { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; }
.af-widget-post-title { display: block; color: var(--af-heading); font-weight: 600; line-height: 1.3; }
.af-widget-post-title:hover { color: var(--af-primary); }
.af-widget-post-date { font-size: .8rem; }
.af-widget-contact { list-style: none; margin: 0; padding: 0; }
.af-widget-contact li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0 !important; border: 0 !important; }
.af-widget-contact .dashicons { color: var(--af-primary); flex-shrink: 0; margin-top: 2px; }

/* ------------------------------------------------------------------ *
 * 13. Alerts / icon boxes / map (shortcodes)
 * ------------------------------------------------------------------ */
.af-alert { border-radius: var(--af-radius-sm); padding: 16px 20px; margin: 0 0 1.4em; border: 1px solid var(--af-border); }
.af-alert--info { background: var(--af-alert-info); }
.af-alert--success { background: var(--af-alert-success); }
.af-alert--warning { background: var(--af-alert-warning); }
.af-alert--error { background: var(--af-alert-error); }
.af-icon-box { text-align: center; padding: 24px; }
.af-icon-box-icon { font-size: 34px; width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 18px; background: color-mix(in srgb, var(--af-primary) 14%, transparent); color: var(--af-primary); }
.af-map { border-radius: var(--af-radius); overflow: hidden; border: 1px solid var(--af-border); }
.af-map iframe { display: block; }

/* ------------------------------------------------------------------ *
 * 14. Stats
 * ------------------------------------------------------------------ */
.af-stats-wrap { padding: 0 0 clamp(48px,7vw,96px); }
.af-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; background: var(--af-surface); border: 1px solid var(--af-border); border-radius: var(--af-radius); padding: 40px; }
.af-stat { text-align: center; }
.af-stat-value { display: block; font-family: var(--af-font-heading); font-size: 2.4rem; color: var(--af-primary); font-weight: 600; }
.af-stat-label { font-size: .9rem; }

/* ------------------------------------------------------------------ *
 * 15. Pagination
 * ------------------------------------------------------------------ */
.af-pagination { margin-top: 46px; }
.af-pagination ul { list-style: none; display: flex; gap: 8px; justify-content: center; padding: 0; margin: 0; flex-wrap: wrap; }
.af-pagination a, .af-pagination span {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
	border-radius: 12px; border: 1px solid var(--af-border); color: var(--af-text);
}
.af-pagination .current { background: var(--af-primary); border-color: var(--af-primary); color: #fff; }
.af-pagination a:hover { border-color: var(--af-primary); color: var(--af-primary); }

/* ------------------------------------------------------------------ *
 * 16. Comments
 * ------------------------------------------------------------------ */
.af-comments { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--af-border); }
.af-comment-list { list-style: none; margin: 0; padding: 0; }
.af-comment-list ol.children { list-style: none; margin-left: 34px; }
.af-comments .comment-body { background: var(--af-surface); border: 1px solid var(--af-border); border-radius: var(--af-radius); padding: 22px; margin-bottom: 18px; }
.af-comments .avatar { border-radius: 50%; }
.af-comment-form input[type=text], .af-comment-form input[type=email], .af-comment-form input[type=url], .af-comment-form textarea {
	width: 100%; background: var(--af-surface); border: 1px solid var(--af-border); border-radius: 12px; padding: 12px 16px; color: var(--af-heading);
}

/* ------------------------------------------------------------------ *
 * 17. Footer
 * ------------------------------------------------------------------ */
.af-footer { background: var(--af-footer-bg); border-top: 1px solid var(--af-border); margin-top: 20px; font-size: var(--af-footer-size, 15px); color: var(--af-footer-text, var(--af-muted)); }
.af-footer-widgets { padding: clamp(44px,6vw,72px) 0 20px; }
.af-footer .widget-title { color: var(--af-footer-heading, var(--af-heading)); }
.af-footer a { color: var(--af-footer-text, var(--af-muted)); }
.af-copyright { color: var(--af-footer-text, var(--af-muted)); }
.af-footer a:hover { color: var(--af-primary); }
.af-footer-bottom { border-top: 1px solid var(--af-border); padding: 22px 0; }
.af-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.af-copyright p { margin: 0; font-size: .9rem; }
.af-legal-menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.af-socials { display: flex; gap: 10px; }
.af-social { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--af-surface); border: 1px solid var(--af-border); color: var(--af-muted); }
.af-social:hover { background: var(--af-primary); color: #fff; border-color: var(--af-primary); }

/* ------------------------------------------------------------------ *
 * 18. Side navigation template
 * ------------------------------------------------------------------ */
.af-sidenav-menu { list-style: none; margin: 0; padding: 0; position: sticky; top: 100px; }
.af-sidenav-menu li { border-bottom: 1px solid var(--af-border); }
.af-sidenav-menu a { display: block; padding: 12px 14px; color: var(--af-text); border-radius: 8px; }
.af-sidenav-menu a:hover, .af-sidenav-menu .current-menu-item > a { color: var(--af-primary); background: var(--af-surface); }
.af-sidenav-menu .sub-menu { list-style: none; margin: 0; padding: 0 0 0 14px; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.af-sidenav-layout[data-trigger="hover"] .menu-item-has-children:hover > .sub-menu,
.af-sidenav-menu .current-menu-item .sub-menu,
.af-sidenav-menu .menu-item.is-open > .sub-menu { max-height: 600px; }

/* ------------------------------------------------------------------ *
 * 19. Misc: back-to-top, preloader, 404
 * ------------------------------------------------------------------ */
.af-back-to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 200; width: 48px; height: 48px; border: 0; cursor: pointer;
	border-radius: 50%; background: var(--af-primary); color: #fff; display: grid; place-items: center;
	opacity: 0; transform: translateY(14px); transition: .3s; box-shadow: 0 14px 30px -12px var(--af-primary);
}
.af-back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.af-preloader { position: fixed; inset: 0; z-index: 9999; background: var(--af-bg); display: grid; place-items: center; transition: opacity .4s ease; }
.af-preloader.is-hidden { opacity: 0; pointer-events: none; }
.af-preloader-drop { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: var(--af-primary); transform: rotate(45deg); animation: afPulse 1s ease-in-out infinite; }
@keyframes afPulse { 0%,100% { transform: rotate(45deg) scale(1); opacity: 1; } 50% { transform: rotate(45deg) scale(.6); opacity: .5; } }

.af-404 { text-align: center; }
.af-404-code { font-family: var(--af-font-heading); font-size: clamp(6rem, 18vw, 12rem); color: var(--af-primary); line-height: 1; display: block; }
.af-404-inner .af-search-form { max-width: 460px; margin: 22px auto; }

.af-empty, .af-none { text-align: center; color: var(--af-muted); padding: 40px 0; }

/* Scroll reveal */
.af-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); will-change: opacity, transform; }
.af-revealed { opacity: 1; transform: none; }

/* Sticky sidebar */
.af-sidebar--sticky { position: sticky; top: 100px; align-self: flex-start; }

/* Cookie notice */
.af-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; background: var(--af-bg-alt); border-top: 1px solid var(--af-border); transform: translateY(100%); transition: transform .4s ease; }
.af-cookie.is-in { transform: translateY(0); }
.af-cookie-inner { display: flex; align-items: center; gap: 18px; justify-content: space-between; padding: 14px 24px; flex-wrap: wrap; }
.af-cookie-text { font-size: .9rem; color: var(--af-text); }

/* ------------------------------------------------------------------ *
 * 20. Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 1200px) {
	.af-areas-grid { grid-template-columns: repeat(3, 1fr); }
	.af-cols-5, .af-cols-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px) {
	.af-nav-toggle { display: inline-flex; align-items: center; }
	/* Off-canvas panel */
	.af-nav-collapse {
		position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 84vw); z-index: 140;
		background: var(--af-bg-alt); border-left: 1px solid var(--af-border);
		padding: 78px 22px 22px; overflow-y: auto; transform: translateX(100%);
		transition: transform .32s cubic-bezier(.2,.8,.2,1); display: block !important;
	}
	.af-nav-collapse.is-open { transform: translateX(0); box-shadow: -20px 0 50px -24px #000; }
	body.af-menu-open { overflow: hidden; }
	.af-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.af-menu .dropdown-menu { position: static; box-shadow: none; margin: 0 0 0 12px; border: 0; background: transparent; display: block; }
	.af-menu .af-mega .dropdown-menu { padding: 0 0 0 12px; gap: 0; }
	.dropdown-submenu .dropdown-menu { left: 0; margin-left: 12px; }
	.rtl .af-nav-collapse { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--af-border); transform: translateX(-100%); }
	.has-mobile-logo .af-logo--main { display: none; }
	.has-mobile-logo .af-logo--mobile { display: inline-block; }
	.af-action-label { display: none; }
	.af-booking { grid-template-columns: 1fr; }
	.af-blog--large .af-blog-inner, .af-blog--large-alternate .af-blog-inner,
	.af-blog--medium .af-blog-inner, .af-blog--medium-alternate .af-blog-inner { grid-template-columns: 1fr; }
	.af-blog-item.af-alt .af-blog-inner { direction: ltr; }
	.af-project-card { position: static; }
}
@media (max-width: 767.98px) {
	.af-areas-grid { grid-template-columns: repeat(2, 1fr); }
	.af-cols-3, .af-cols-4, .af-cols-5, .af-cols-6 { grid-template-columns: repeat(2, 1fr); }
	.af-blog--grid, .af-blog--masonry, .af-blog--grid.af-cols-3, .af-blog--grid.af-cols-4 { grid-template-columns: 1fr; }
	.af-stats { grid-template-columns: repeat(2, 1fr); }
	.af-hero { min-height: 84vh; }
	.af-header-cta .dashicons { display: none; }
}
@media (max-width: 479.98px) {
	.af-areas-grid, .af-cols-2, .af-cols-3, .af-cols-4 { grid-template-columns: 1fr; }
	.af-stats { grid-template-columns: 1fr; }
	.af-header-cta { display: none; }
}

/* ------------------------------------------------------------------ *
 * 21. RTL tweaks
 * ------------------------------------------------------------------ */
.rtl .af-hero-overlay { background: linear-gradient(270deg, rgba(6,16,24,.86) 0%, rgba(6,16,24,.5) 45%, rgba(6,16,24,.15) 100%), var(--af-hero-overlay); }
.rtl .widget-title::after { left: auto; right: 0; }
.rtl .af-header-actions { margin-left: 0; margin-right: auto; }

/* ------------------------------------------------------------------ *
 * 22. Content elements (shortcodes)
 * ------------------------------------------------------------------ */

/* Carousel */
.af-carousel { border-radius: var(--af-radius); overflow: hidden; }
.af-carousel .carousel-item img { object-fit: cover; }
.af-carousel-caption { background: linear-gradient(transparent, rgba(6,16,24,.8)); border-radius: 0; padding: 40px 20px 24px; }

/* Tabs */
.af-nav-tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 20px; border-bottom: 1px solid var(--af-border); }
.af-tab-btn {
	background: transparent; border: 0; color: var(--af-muted); cursor: pointer;
	padding: 12px 20px; font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.af-tab-btn:hover { color: var(--af-heading); }
.af-tab-btn.active { color: var(--af-primary); border-bottom-color: var(--af-primary); }

/* Accordion */
.af-accordion-item { background: var(--af-surface); border: 1px solid var(--af-border); border-radius: var(--af-radius-sm); margin-bottom: 12px; overflow: hidden; }
.af-accordion-button {
	width: 100%; text-align: left; background: transparent; border: 0; color: var(--af-heading);
	font-family: var(--af-font-heading); font-size: 1.12rem; font-weight: 600; padding: 18px 22px; cursor: pointer;
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.af-accordion-button::after {
	content: "\f347"; font-family: dashicons; transition: transform .3s ease; color: var(--af-primary); flex-shrink: 0;
}
.af-accordion-button.collapsed::after { transform: rotate(-90deg); }
.af-accordion-body { padding: 0 22px 20px; color: var(--af-text); }

/* Testimonials */
.af-testimonials { max-width: 760px; margin: 0 auto; text-align: center; }
.af-tst-card { margin: 0; padding: 20px 40px 50px; }
.af-tst-quote { font-family: var(--af-font-heading); font-size: 1.5rem; line-height: 1.5; color: var(--af-heading); margin: 0 0 22px; }
.af-tst-quote::before { content: "\201C"; color: var(--af-primary); font-size: 2em; line-height: 0; vertical-align: -.35em; margin-right: 6px; }
.af-tst-meta { display: flex; gap: 14px; align-items: center; justify-content: center; }
.af-tst-avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.af-tst-meta > div { text-align: left; }
.af-tst-name { display: block; font-weight: 700; color: var(--af-heading); }
.af-testimonials .carousel-control-prev, .af-testimonials .carousel-control-next { width: 44px; }

/* Counter */
.af-counter { text-align: center; }
.af-counter-icon { font-size: 30px; width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 16px; background: color-mix(in srgb, var(--af-primary) 14%, transparent); color: var(--af-primary); }
.af-counter-value { display: block; font-family: var(--af-font-heading); font-size: 2.8rem; font-weight: 600; color: var(--af-primary); line-height: 1; }
.af-counter-label { display: block; margin-top: 8px; }

/* Progress */
.af-progress { margin: 0 0 20px; --af-progress-color: var(--af-primary); }
.af-progress-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .9rem; }
.af-progress-label { color: var(--af-heading); font-weight: 600; }
.af-progress-pct { color: var(--af-muted); }
.af-progress-track { height: 10px; background: var(--af-surface); border: 1px solid var(--af-border); border-radius: 20px; overflow: hidden; }
.af-progress-bar { height: 100%; width: 0; background: var(--af-progress-color); border-radius: 20px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }

/* Pricing */
.af-pricing-table { display: grid; gap: 24px; }
.af-pricing-table.af-cols-2 { grid-template-columns: repeat(2,1fr); }
.af-pricing-table.af-cols-3 { grid-template-columns: repeat(3,1fr); }
.af-pricing-table.af-cols-4 { grid-template-columns: repeat(4,1fr); }
.af-pricing-card { position: relative; background: var(--af-surface); border: 1px solid var(--af-border); border-radius: var(--af-radius); padding: 34px 28px; text-align: center; display: flex; flex-direction: column; }
.af-pricing-card.is-featured { border-color: var(--af-primary); box-shadow: 0 20px 50px -24px var(--af-primary); transform: translateY(-6px); }
.af-pricing-badge { position: absolute; top: 16px; right: 16px; background: var(--af-primary); color: #fff; font-size: .72rem; padding: 4px 12px; border-radius: 20px; letter-spacing: .05em; }
.af-pricing-title { font-size: 1.3rem; }
.af-pricing-amount { font-family: var(--af-font-heading); font-size: 2.8rem; color: var(--af-heading); font-weight: 600; }
.af-pricing-period { display: block; }
.af-pricing-features { list-style: none; padding: 20px 0; margin: 20px 0; border-top: 1px solid var(--af-border); border-bottom: 1px solid var(--af-border); text-align: left; }
.af-pricing-features li { padding: 7px 0; display: flex; gap: 10px; align-items: center; }
.af-pricing-features .dashicons { color: var(--af-primary); }
.af-pricing-card .af-btn { margin-top: auto; justify-content: center; }

/* Gallery */
.af-gallery { display: grid; gap: 14px; }
.af-gallery-item { position: relative; display: block; border-radius: var(--af-radius-sm); overflow: hidden; }
.af-gallery-img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s ease; }
.af-gallery-item:hover .af-gallery-img { transform: scale(1.08); }
.af-gallery-zoom { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--af-primary); color: #fff; opacity: 0; transition: opacity .3s ease; }
.af-gallery-item:hover .af-gallery-zoom { opacity: 1; }

/* Video / separators / spacer */
.af-video { border-radius: var(--af-radius); overflow: hidden; margin: 1.4em 0; }
.af-separator { margin: 34px 0; height: 1px; background: var(--af-border); }
.af-separator--dots { height: 6px; background: none; background-image: radial-gradient(var(--af-border) 40%, transparent 40%); background-size: 16px 6px; }
.af-separator--wave { height: 12px; background: none; background-image: radial-gradient(circle at 10px -4px, transparent 12px, var(--af-border) 13px, transparent 14px); background-size: 20px 12px; }

@media (max-width: 767.98px) {
	.af-pricing-table.af-cols-2, .af-pricing-table.af-cols-3, .af-pricing-table.af-cols-4 { grid-template-columns: 1fr; }
	.af-tst-quote { font-size: 1.25rem; }
}

/* ------------------------------------------------------------------ *
 * 22b. WooCommerce
 * ------------------------------------------------------------------ */
.af-cart { position: relative; }
.af-cart-count {
	position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
	background: var(--af-secondary); color: #10202b; border-radius: 20px; font-size: 11px; font-weight: 700;
	display: grid; place-items: center; line-height: 1;
}
.af-cart-count.is-empty { display: none; }

.woocommerce ul.products { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
.woocommerce ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
.woocommerce ul.products li.product {
	background: var(--af-surface); border: 1px solid var(--af-border); border-radius: var(--af-radius);
	padding: 16px; margin: 0 !important; width: auto !important; float: none !important; text-align: center;
}
.woocommerce ul.products li.product img { border-radius: var(--af-radius-sm); margin-bottom: 14px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.1rem; color: var(--af-heading); padding: 0; }
.woocommerce ul.products li.product .price { color: var(--af-heading); }
.woocommerce ul.products li.product .price del { color: var(--af-muted); }
.woocommerce .price, .woocommerce div.product p.price { color: var(--af-heading); }
.woocommerce span.onsale {
	background: var(--af-secondary); color: #10202b; border-radius: 20px; min-height: 0; min-width: 0;
	padding: 4px 12px; line-height: 1.4; top: 12px; left: 12px;
}
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt {
	background: var(--af-primary); color: #fff; border-radius: var(--af-btn-radius); padding: 12px 24px; font-weight: 600;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--af-primary-08); }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info { border-top-color: var(--af-primary); background: var(--af-surface); color: var(--af-text); }
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: var(--af-primary); }
.woocommerce-tabs ul.tabs li.active { background: var(--af-surface); border-bottom-color: var(--af-surface); }
.woocommerce table.shop_table, .woocommerce .cart-collaterals .cart_totals { border-color: var(--af-border); border-radius: var(--af-radius); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce .select2-container .select2-selection {
	background: var(--af-surface); border: 1px solid var(--af-border); color: var(--af-heading); border-radius: 10px; padding: 10px 14px;
}
@media (max-width: 991.98px) { .woocommerce ul.products.columns-3, .woocommerce ul.products.columns-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .woocommerce ul.products.columns-3, .woocommerce ul.products.columns-4 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ *
 * 23. Core block / entry element styling (tables, lists, embeds…)
 * ------------------------------------------------------------------ */
.af-entry table, .wp-block-table table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.af-entry th, .af-entry td, .wp-block-table td, .wp-block-table th { border: 1px solid var(--af-border); padding: 12px 16px; text-align: left; }
.af-entry thead th, .wp-block-table thead th { background: var(--af-surface); color: var(--af-heading); }
.af-entry tbody tr:nth-child(even) { background: color-mix(in srgb, var(--af-surface) 60%, transparent); }

.af-entry ul li, .af-entry ol li { margin: 6px 0; }
.af-entry ul { list-style: none; padding-left: 0; }
.af-entry ul li { position: relative; padding-left: 26px; }
.af-entry ul li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--af-primary); }
.af-entry ol { padding-left: 1.3em; }

.wp-block-image img, .af-entry figure img { border-radius: var(--af-radius-sm); }
.wp-block-image figcaption, .wp-caption-text { color: var(--af-muted); font-size: .85rem; text-align: center; margin-top: 8px; }
.wp-block-pullquote, .wp-block-quote { border-left: 3px solid var(--af-primary); padding-left: 22px; }
.wp-block-button__link { background: var(--af-primary); color: #fff; border-radius: var(--af-btn-radius); padding: 12px 26px; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 1px solid var(--af-primary); color: var(--af-primary); }
.wp-block-embed, .wp-block-video, .wp-block-audio { margin: 1.4em 0; }
.wp-block-embed iframe, .wp-block-video video { border-radius: var(--af-radius-sm); max-width: 100%; }
.wp-block-separator { border-color: var(--af-border); }
.wp-block-columns { gap: 24px; }
.af-entry code, .af-entry kbd { background: var(--af-surface); border: 1px solid var(--af-border); border-radius: 6px; padding: 2px 7px; font-size: .9em; }
.af-entry pre { background: var(--af-bg-alt); border: 1px solid var(--af-border); border-radius: var(--af-radius-sm); padding: 18px 20px; overflow: auto; }
