/*
Theme Name: GewerkStark Core
Description: Core theme — branding and content configured via the Customizer and the AI Page Generator site factory.
Version: 1.0.0
Author: Sven Rother
Author URI: https://www.gewerkstark.de
Text Domain: gewerkstark
Requires at least: 6.4
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   1. Fonts — self-hosted, variable woff2. Open Sans = body (gewerkstark.de),
   Montserrat = headings. Both cover weights 400–800 in a single file each.
   ========================================================================== */
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('fonts/open-sans-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('fonts/montserrat-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('fonts/montserrat-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   2. Base / reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

:root {
	/* Brand vars are re-emitted (Customizer-aware) in wp_head; these are the defaults. */
	--primary: #0F52BA;
	--accent: #277FC9;
	/* Contrast-guaranteed (≥4.6:1 vs white) derivations — text on light
	   backgrounds and surfaces under white text. Overridden at runtime by
	   gws_brand_vars_css() for configured brand colors. */
	--primary-safe: #0F52BA;
	--accent-safe: #226FB0;
	--accent-shadow: rgba(39, 127, 201, 0.18);
	--heroh1: clamp(1.9rem, 4.5vw, 3rem);
	/* Design tokens aligned to gewerkstark.de (werklotse). */
	--text: #0F172A;
	--muted: #586577;
	--second-text: rgba(3, 4, 12, 0.72);
	--line: #E2E8F0;
	--card: #ffffff;
	--background: #F1F5F9;
	--bg-soft: #F1F5F9;
	/* Aliases so werklotse's APG stylesheet (css/apg-sections.css) maps onto
	   our token names without edits: --foreground→--text, --border→--line. */
	--foreground: var(--text);
	--border: var(--line);
	--radius: 1rem;
	--radius-sm: 0.5rem;
	--shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1);
	--shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1);
	--header-h: 72px;
	--container: 1280px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: 'Open Sans', system-ui, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text);
	background: var(--background);
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', system-ui, sans-serif; line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; color: var(--text); }
h1 { font-size: var(--heroh1); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
a { color: var(--primary-safe); }
a:hover { color: var(--accent); }

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	border-radius: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1100;
	background: var(--primary-safe);
	color: #fff;
	padding: 0.6em 1em;
}
.skip-link:focus { left: 0; color: #fff; }

.gws-container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 16px;
}
@media (min-width: 1024px) { .gws-container { padding: 0 32px; } }

/* White card sections on the slate page background; --soft drops back to the
   slate tint for the alternating rhythm seen on gewerkstark.de. */
.gws-section { padding: 48px 0; background: var(--card); }
.gws-section--soft { background: var(--bg-soft); }
@media (min-width: 1024px) { .gws-section { padding: 80px 0; } }

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.gws-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-safe);
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	padding: 0.875rem 1.5rem;
	border: 0;
	border-radius: var(--radius-sm);
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	box-shadow: 0 10px 15px -3px var(--accent-shadow), 0 4px 6px -4px var(--accent-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.gws-btn:hover { background: var(--primary-safe); color: #fff; transform: scale(1.02); box-shadow: 0 20px 25px -5px var(--accent-shadow), 0 10px 15px -3px var(--accent-shadow); }
.gws-btn:active { transform: scale(1); }
.gws-btn--ghost {
	background: transparent;
	color: var(--primary-safe);
	box-shadow: inset 0 0 0 2px var(--primary);
}
.gws-btn--ghost:hover { background: var(--primary-safe); color: #fff; }

/* ==========================================================================
   4. Header / navigation
   ========================================================================== */
.gws-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
	min-height: var(--header-h);
	display: flex;
	align-items: center;
	/* The backdrop-filter makes this the containing block for the fixed
	   .gws-nav panel; clip x so the closed panel (translateX(100%)) doesn't
	   widen the page. y stays visible — the open panel hangs below. */
	overflow-x: clip;
	overflow-y: visible;
}
.gws-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
}
.gws-header__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--primary-safe);
	text-decoration: none;
	letter-spacing: -0.01em;
}
.gws-header__brand img.custom-logo { max-height: 40px; width: auto; }

/* Header order: logo left, then nav, contact, hamburger grouped right.
   margin-left:auto on the brand pushes everything else to the right edge. */
.gws-header__brand { order: 0; margin-right: auto; }
.gws-nav { order: 1; }
.gws-header__contact { order: 2; }
.gws-menu-toggle { order: 3; }

/* Header contact (phone + e-mail), mirrors gewerkstark.de. Mobile-first:
   icon-only on phones, icon + text from ~600px up, stacked from ~900px up. */
.gws-header__contact {
	display: flex;
	align-items: center;
	gap: 6px 14px;
	flex-wrap: wrap;
}
.gws-header__contact-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--text);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	white-space: nowrap;
	line-height: 1.2;
}
.gws-header__contact-item:hover { color: var(--primary-safe); }
.gws-header__contact-item svg { color: var(--primary-safe); flex: 0 0 auto; }
/* Phones: keep just the tappable icons so the bar never overflows. */
.gws-header__contact-item span { display: none; }
@media (min-width: 600px) {
	.gws-header__contact-item span { display: inline; }
}
@media (min-width: 901px) {
	/* Desktop: stack the two lines tightly in the top-right, like the live site. */
	.gws-header__contact { flex-direction: column; align-items: flex-end; gap: 4px; }
}

.gws-nav { display: flex; align-items: center; gap: 8px; }
.gws-nav ul {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.gws-nav a {
	display: block;
	padding: 0.55em 0.85em;
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	white-space: nowrap;
}
.gws-nav a:hover { color: var(--primary); background: var(--bg-soft); }

.gws-menu-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 10px;
	cursor: pointer;
}
.gws-menu-toggle .bar {
	display: block;
	width: 26px;
	height: 3px;
	border-radius: 2px;
	background: var(--primary);
	margin: 5px 0;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
	.gws-menu-toggle { display: block; }
	.gws-nav {
		position: fixed;
		inset: 0;
		top: var(--header-h);
		/* Explicit height: the header's backdrop-filter makes it the
		   containing block for this fixed panel, so bottom:0 (via inset)
		   resolves against the 72px header — not the viewport. */
		height: calc(100vh - var(--header-h));
		height: calc(100dvh - var(--header-h));
		flex-direction: column;
		align-items: stretch;
		background: #fff;
		padding: 24px 20px;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		overflow-y: auto;
		z-index: 999;
	}
	.gws-nav.is-open { transform: translateX(0); }
	.gws-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.gws-nav a { padding: 0.9em 0.6em; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	body.gws-nav-open { overflow: hidden; }
	.gws-menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.gws-menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
	.gws-menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ==========================================================================
   5. Footer
   ========================================================================== */
.gws-footer {
	background: var(--text);
	color: rgba(255, 255, 255, 0.7);
	padding: 56px 0 28px;
	margin-top: auto;
}
.gws-footer a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.gws-footer a:hover { color: var(--accent); }
.gws-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 36px;
	margin-bottom: 36px;
}
.gws-footer__logo img { max-height: 54px; width: auto; }
.gws-footer h2 { color: #fff; font-size: 1.02rem; margin-bottom: 0.9em; }
.gws-footer ul { list-style: none; margin: 0; padding: 0; }
.gws-footer li { margin-bottom: 0.5em; }
/* Page index: a full-width bar between the footer grid and the legal row
   (mirrors the live footer's middle strip), each group a horizontal
   wrapping row (hubs line, services line below). */
.gws-footer__cities {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 22px;
	margin-bottom: 28px;
}
.gws-footer__cities ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; }
.gws-footer__cities li { margin-bottom: 0; }
.gws-footer__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
	font-size: 0.9rem;
}
.gws-footer__legal ul { display: flex; flex-wrap: wrap; gap: 18px; }

/* ==========================================================================
   6. Homepage — hero
   ========================================================================== */
.gws-hero {
	background: rgba(244, 247, 250, 0.5);
	padding: 48px 0;
}
@media (min-width: 1024px) {
	.gws-hero { min-height: 80vh; display: flex; align-items: center; padding: 16px 0; }
	.gws-hero .gws-container { width: 100%; }
}
.gws-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 3rem;
	align-items: center;
}
.gws-hero__kicker {
	display: inline-block;
	color: #475569;
	font-weight: 600;
	font-size: 1rem;
	margin-bottom: 0.5rem;
}
.gws-hero h1 { color: var(--primary-safe); }
.gws-hero__text { font-size: 1.125rem; color: #475569; line-height: 1.6; }
.gws-hero__subtext { color: #475569; font-weight: 500; }
.gws-hero__badges {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	list-style: none;
	margin: 1rem 0;
	padding: 0;
}
.gws-hero__badges li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: fit-content;
	background: var(--card);
	border: 1px solid rgba(46, 125, 191, 0.2);
	color: var(--text);
	border-radius: var(--radius-sm);
	padding: 0.5rem 0.75rem;
	font-size: 0.8rem;
	font-weight: 500;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.gws-hero__badges li::before { content: "✓"; color: var(--accent-safe); font-weight: 800; }
.gws-hero__cta { margin-top: 1.5rem; }
.gws-hero__media img {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	width: 100%;
	height: auto;
	object-fit: cover;
}
/* External-URL images carry no width/height — reserve their space (CLS). */
.gws-hero__media img:not([width]) { aspect-ratio: 4 / 3; }
.gws-hero__media { display: grid; gap: 16px; }

@media (max-width: 900px) {
	.gws-hero__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Phones (≤600px): tighten the hero so as much as possible lands on one
   screen. Tuned for iPhone 13 (390px) — the smallest phones (13 mini) may
   still scroll a little, by design. All copy is kept; the image is shrunk,
   never hidden, so the headline + CTA lead the viewport. */
@media (max-width: 600px) {
	.gws-hero { padding: 24px 0 32px; }
	.gws-hero__grid { gap: 20px; }
	/* Kicker stays subordinate to the H1; tighter tracking + balanced wrap
	   keep typical copy to two lines (three at most for longer client text). */
	.gws-hero__kicker { letter-spacing: 0.04em; margin-bottom: 8px; text-wrap: balance; }
	.gws-hero h1 { margin-bottom: 0.4em; text-wrap: balance; }
	.gws-hero__text { font-size: 1.05rem; line-height: 1.5; }
	.gws-hero__subtext { line-height: 1.5; margin-bottom: 0; }
	.gws-hero__cta { margin-top: 18px; }
	.gws-hero__badges { gap: 8px; margin-top: 16px; }
	.gws-hero__badges li { padding: 0.35em 0.85em; font-size: 0.88rem; }
	/* Kept, but cropped to a slim band (~180px) instead of a tall 4:3 block. */
	.gws-hero__media img { aspect-ratio: 2 / 1; }
}

/* ==========================================================================
   7. Homepage — why / steps / video / infographic
   ========================================================================== */
.gws-why__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 3rem;
	align-items: start;
}
.gws-why__title em { color: var(--primary-safe); font-style: normal; }
.gws-why__intro { color: #475569; font-size: 1rem; line-height: 1.75; }

/* First intro paragraph rendered as a callout (border-left accent), as on
   gewerkstark.de. */
.gws-why__intro:first-of-type {
	background: rgba(244, 247, 250, 0.6);
	border-left: 4px solid var(--primary);
	border-radius: 0.75rem;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.5rem;
}

/* Text-only "Warum" (no image column): single column, comfortable measure. */
.gws-why--no-media .gws-why__grid { grid-template-columns: 1fr; }
.gws-why--no-media .gws-why__copy { max-width: 820px; }

/* Bold-led points (intro + label: text). */
.gws-why__points { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 18px; }
.gws-why__points li {
	position: relative;
	padding-left: 1.9em;
	line-height: 1.6;
}
.gws-why__points li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--accent-safe);
	font-weight: 800;
}
.gws-why__point-label { color: var(--primary-safe); font-weight: 700; }
.gws-why__point-text { color: var(--text); }

.gws-why ul.gws-checklist { list-style: none; padding: 0; }
.gws-checklist li {
	padding-left: 1.8em;
	position: relative;
	margin-bottom: 0.7em;
	font-weight: 600;
}
.gws-checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--accent-safe);
	font-weight: 800;
}
.gws-why__images {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.gws-why__images img {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}
@media (max-width: 900px) {
	.gws-why__grid { grid-template-columns: 1fr; gap: 32px; }
}

.gws-steps__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 24px;
	margin-top: 36px;
	counter-reset: gws-step;
}
.gws-step {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px 24px;
	box-shadow: var(--shadow);
	counter-increment: gws-step;
}
.gws-step::before {
	content: counter(gws-step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--primary-safe);
	color: #fff;
	font-weight: 800;
	font-size: 1.15rem;
	margin-bottom: 14px;
}
.gws-step h3 { margin-bottom: 0.4em; }
.gws-step p { margin: 0; color: var(--muted); }

.gws-video video {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	background: #000;
}
.gws-infographic img {
	margin: 0 auto;
	border-radius: var(--radius);
}

/* Proof / "Vertrauen" section — single trust card (optionally a link). */
.gws-proof__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	max-width: 920px;
	margin: 0 auto;
}
.gws-proof__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.5rem;
	box-shadow: var(--shadow);
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.gws-proof__card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12); }
.gws-proof__card img { max-width: 320px; width: 100%; height: auto; }
.gws-proof__body { display: flex; flex-direction: column; gap: 0.4rem; }
.gws-proof__headline { font-weight: 600; color: var(--text); font-size: 1.05rem; line-height: 1.45; margin: 0; }
.gws-proof__sub { color: var(--muted); font-size: 0.95rem; line-height: 1.5; margin: 0; }
@media (min-width: 640px) {
	.gws-proof__card { flex-direction: row; align-items: center; gap: 1.5rem; }
}

/* ==========================================================================
   8. FAQ accordion (shared: homepage + APG faq section)
   ========================================================================== */
.gws-faq__item {
	border-bottom: 1px solid var(--line);
	max-width: 860px;
	margin: 0 auto;
	background: transparent;
}
.gws-faq__q {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	width: 100%;
	background: none;
	border: 0;
	padding: 1.5rem 0;
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	text-align: left;
	cursor: pointer;
	color: var(--text);
}
.gws-faq__q:hover { color: var(--primary-safe); }
.gws-faq__q::after {
	content: "+";
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--primary-safe);
	line-height: 1;
	transition: transform 0.25s ease;
	flex: 0 0 auto;
}
.gws-faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.gws-faq__a { padding: 0 0 1.5rem; color: #475569; font-size: 0.95rem; line-height: 1.7; }
.gws-faq__a[hidden] { display: none; }

/* ==========================================================================
   9. Forms (contact + funnel)
   ========================================================================== */
.gws-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: 48px;
	align-items: start;
}
@media (max-width: 900px) {
	.gws-contact__grid { grid-template-columns: 1fr; }
}

.gws-form {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 32px 28px;
	box-shadow: var(--shadow);
}
.gws-form__field { margin-bottom: 18px; }
.gws-form label {
	display: block;
	font-weight: 600;
	font-size: 0.95rem;
	margin-bottom: 6px;
}
.gws-form .required { color: #c0392b; }
.gws-form input[type="text"],
.gws-form input[type="email"],
.gws-form input[type="tel"],
.gws-form select,
.gws-form textarea {
	width: 100%;
	font: inherit;
	padding: 0.75rem 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--text);
	transition: border-color 0.15s, box-shadow 0.15s;
}
.gws-form input:focus,
.gws-form select:focus,
.gws-form textarea:focus {
	border-color: var(--primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(46, 125, 191, 0.1);
}
.gws-form textarea { min-height: 120px; resize: vertical; }
.gws-form input[type="file"] { font-size: 0.92rem; }
.gws-form__msg { margin-top: 14px; font-weight: 600; }
.gws-form__msg.is-success { color: #1e7d46; }
.gws-form__msg.is-error { color: #c0392b; }
.gws-form .gws-btn[disabled] { opacity: 0.6; cursor: wait; }

.gws-person {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 30px 28px;
	text-align: center;
	box-shadow: var(--shadow);
}
.gws-person img {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 16px;
	box-shadow: var(--shadow);
}
.gws-person__name { font-weight: 800; font-size: 1.15rem; margin-bottom: 0.2em; }
.gws-person__role { color: var(--accent-safe); font-weight: 600; margin-bottom: 1em; }
.gws-person__bio { color: var(--muted); font-size: 0.96rem; text-align: left; }

/* ==========================================================================
   10. Floating controls (defined once)
   ========================================================================== */
.gws-whatsapp {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 950;
	width: 56px; height: 56px;
	border-radius: 50%;
	background: #25d366;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease;
}
.gws-whatsapp:hover { transform: scale(1.07); }
.gws-whatsapp svg { width: 30px; height: 30px; fill: #fff; }

.gws-scroll-top {
	position: fixed;
	right: 24px;
	bottom: 86px;
	z-index: 950;
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 0;
	background: var(--primary-safe);
	color: #fff;
	font-size: 1.2rem;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.gws-scroll-top.is-visible { opacity: 1; visibility: visible; }

/* ==========================================================================
   11. Standard pages / child-pages grid / trades overview
   ========================================================================== */
/* Vertical padding only — must not clobber .gws-container's horizontal padding
   when both classes share an element (e.g. the 404 / fallback template). */
.gws-page { padding-block: 56px; }
.gws-page__title { color: var(--primary-safe); margin-bottom: 0.8em; }

.gws-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 24px;
	margin: 36px 0;
	padding: 0;
	list-style: none;
}
.gws-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform 0.15s ease;
}
.gws-card:hover { transform: translateY(-3px); }
.gws-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.gws-card a {
	display: block;
	padding: 18px 20px;
	font-weight: 700;
	text-decoration: none;
	color: var(--text);
}
.gws-card a:hover { color: var(--primary); }

/* ==========================================================================
   12. Carousel (optional .gws-carousel)
   ========================================================================== */
.gws-carousel {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
}
.gws-carousel__track {
	display: flex;
	transition: transform 0.45s ease;
}
.gws-carousel__slide { flex: 0 0 100%; }
.gws-carousel__dots {
	position: absolute;
	left: 0; right: 0; bottom: 12px;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.gws-carousel__dot {
	width: 10px; height: 10px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	padding: 0;
}
.gws-carousel__dot.is-active { background: #fff; }

/* Reference gallery (homepage section wrapping .gws-carousel): a fixed-height
   image band so mixed portrait/landscape references crop consistently and the
   slider never reflows (CLS). */
.gws-gallery .gws-carousel__slide img {
	display: block;
	width: 100%;
	height: clamp(280px, 46vw, 480px);
	object-fit: cover;
}

/* Cookie-consent banner (fixed overlay — never shifts layout). Rendered only
   when tracking is configured; hidden once the visitor chose. */
.gws-consent[hidden] { display: none; } /* display:flex below would defeat the hidden attribute */
.gws-consent {
	position: fixed;
	inset: auto 16px 16px 16px;
	z-index: 90;
	max-width: 720px;
	margin: 0 auto;
	padding: 20px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	justify-content: space-between;
	background: #0f172a;
	color: #fff;
	border-radius: var(--radius);
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}
.gws-consent__text { margin: 0; font-size: 0.9375rem; line-height: 1.6; flex: 1 1 320px; }
.gws-consent__text a { color: #93c5fd; text-decoration: underline; }
.gws-consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gws-consent__actions .gws-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.gws-footer__legal .gws-consent-open {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	font: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ==========================================================================
   13. Funnel widget (markup lives in page content)
   ========================================================================== */
.gws-funnel {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 32px 28px;
	max-width: 680px;
	margin: 0 auto;
}
.gws-funnel__step[hidden] { display: none; }
.gws-funnel__options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	margin: 18px 0;
}
.gws-funnel__option {
	border: 2px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	padding: 18px 14px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.15s ease;
}
.gws-funnel__option:hover,
.gws-funnel__option.is-selected { border-color: var(--accent); color: var(--primary-safe); }
.gws-funnel__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }

/* ==========================================================================
   14. Utilities
   ========================================================================== */
.gws-text-center { text-align: center; }
.gws-mt-0 { margin-top: 0; }
.gws-mb-0 { margin-bottom: 0; }
.gws-muted { color: var(--muted); }
.gws-section__head { max-width: 760px; margin: 0 auto 2rem; text-align: center; }
.gws-section__head h2 { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
