/* ==========================================================================
   Watch for Good — project stylesheet (child theme)
   Native Elementor controls handle spacing, colours and typography.
   This file only covers what native controls cannot express:
   flex-grow helpers, arrow icons, hero composition, decorative bars,
   chips/check lists, navigation, the visual-only signup and responsive tweaks.
   Tokens mirror Elementor Kit globals (see spec/design-tokens.md).
   ========================================================================== */

:root {
	--wfg-pink: var(--e-global-color-primary, #ec368d);
	--wfg-ink: var(--e-global-color-secondary, #0b0b0f);
	--wfg-body: var(--e-global-color-text, #5c5c69);
	--wfg-tint: #fdecf4;
	--wfg-pink-light: #f8b0d2;
	--wfg-border: #e5e5eb;
	--wfg-muted-dark: #adadb8;
	--wfg-arrow: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2718%27 height=%2718%27 viewBox=%270 0 18 18%27 fill=%27none%27%3E%3Cpath d=%27M3.75 9H14.25M9.75 13.5L14.25 9L9.75 4.5%27 stroke=%27%23000%27 stroke-width=%271.65%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Spacing comes from container gaps (Figma auto-layout), not paragraph margins. */
.elementor-widget-text-editor p:last-child,
.elementor-widget-text-editor ul:last-child,
.elementor-widget-text-editor table:last-child {
	margin-bottom: 0;
}

.elementor-widget-text-editor p:only-child {
	margin-top: 0;
}

.wfg-hl {
	color: var(--wfg-pink);
}

.wfg-hl-medium {
	color: var(--wfg-pink);
	font-weight: 500;
}

:where(.elementor) a:focus-visible,
:where(.elementor) button:focus-visible,
:where(.elementor) input:focus-visible {
	outline: 2px solid var(--wfg-pink);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Equal-width flex children (Elementor containers default to flex-grow:0). */
.e-con.e-flex.wfg-grow {
	--flex-grow: 1;
	--flex-shrink: 1;
	--flex-basis: 0%;
	min-width: 0;
}

/* Widgets that share a row with a growing column. */
.elementor-element.elementor-widget.wfg-grow {
	flex: 1 1 0%;
	min-width: 0;
}

/* Containers in a row that should size to their content (Elementor defaults children to 100%). */
.e-con.e-flex.wfg-auto {
	--width: auto;
	--flex-shrink: 0;
}

/* Push an element to the bottom of a column container (card links). */
.elementor-element.wfg-push-bottom {
	margin-top: auto;
}

/* ---------- Buttons & arrow links ---------- */
.wfg-arrow .elementor-button-text::after,
.wfg-arrow-sm .elementor-button-text::after {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-left: 10px;
	vertical-align: -3px;
	background-color: currentColor;
	-webkit-mask: var(--wfg-arrow) center / contain no-repeat;
	mask: var(--wfg-arrow) center / contain no-repeat;
	transition: transform 0.2s ease;
}

.wfg-arrow-sm .elementor-button-text::after {
	margin-left: 8px;
}

.wfg-arrow-pink .elementor-button-text::after {
	background-color: var(--wfg-pink);
}

/* Text-link buttons wrap left-aligned with the arrow kept on the last line. */
.wfg-link .elementor-button {
	text-align: left;
	white-space: normal;
}

.wfg-arrow .elementor-button:hover .elementor-button-text::after,
.wfg-arrow-sm .elementor-button:hover .elementor-button-text::after {
	transform: translateX(3px);
}

.elementor-button {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

/* ---------- Header (Theme Builder template; Nav Menu styled natively) ---------- */
.wfg-announce .elementor-heading-title {
	text-wrap: balance;
}

/* PRO Nav Menu: on tablet/mobile the dropdown opens as an overlay panel under the toggle
   (colours, typography and spacing are set natively on the widget). */
@media (max-width: 1024px) {
	.elementor-element.wfg-header-nav {
		position: relative;
	}

	.wfg-header-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container {
		position: absolute;
		top: 100%;
		right: 0;
		left: auto;
		z-index: 100;
		width: min(320px, calc(100vw - 40px));
		padding: 8px;
		border: 1px solid var(--wfg-border);
		border-radius: 20px;
		background: #fff;
	}

	.wfg-header-nav .elementor-nav-menu--dropdown a {
		border-radius: 12px;
	}
}

/* Button widgets: no inherited body line-height strut around inline-block buttons (text links stay at their Figma height). */
.elementor-widget-button {
	line-height: 1;
}

.elementor-widget-button .elementor-button {
	vertical-align: top;
}

/* ---------- Badge (hero eyebrow pill) ---------- */
.wfg-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--wfg-pink);
	vertical-align: 1px;
}

/* ---------- Hero visual composition (Figma 560×640, kept proportional) ---------- */
.e-con.wfg-hero-visual {
	position: relative;
	width: 560px;
	max-width: 100%;
	aspect-ratio: 560 / 640;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	flex: none;
}

.e-con.wfg-hero-shape {
	position: absolute;
	left: 19.643%;
	top: 9.375%;
	width: 78.571%;
	height: 87.5%;
	background: var(--wfg-pink);
	border-radius: 40px;
}

.elementor-element.wfg-hero-img {
	position: absolute;
	left: 12.5%;
	top: 3.125%;
	width: 78.571%;
	height: 87.5%;
	margin: 0;
}

.wfg-hero-img .elementor-widget-container,
.wfg-hero-img img {
	width: 100%;
	height: 100%;
}

.wfg-hero-img img {
	object-fit: cover;
	border-radius: 36px;
}

.e-con.wfg-float-watch {
	position: absolute;
	left: 0;
	top: 59.375%;
	width: auto;
	z-index: 2;
}

.e-con.wfg-float-rev {
	position: absolute;
	left: 58.929%;
	top: 6.25%;
	width: auto;
	z-index: 2;
}

.elementor-element.wfg-hero-script {
	position: absolute;
	left: 60.7%;
	top: 93.1%;
	width: auto;
	transform: rotate(6deg);
	white-space: nowrap;
	z-index: 2;
}

/* Progress bar inside the "Now watching" card */
.wfg-progress {
	width: 236px;
	max-width: 100%;
	height: 6px;
	overflow: hidden;
	border-radius: 3px;
	background: var(--wfg-tint);
}

.wfg-progress span {
	display: block;
	width: 63.56%; /* 150 / 236 */
	height: 100%;
	border-radius: 3px;
	background: var(--wfg-pink);
}

/* Audience quick links ("I'm a: Nonprofit → Brand → Viewer →") */
.wfg-audience p {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	margin: 0;
}

.wfg-audience a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--wfg-ink);
	font-weight: 600;
	text-decoration: none;
}

.wfg-audience a::after {
	content: "";
	width: 16px;
	height: 16px;
	background-color: var(--wfg-pink);
	-webkit-mask: var(--wfg-arrow) center / contain no-repeat;
	mask: var(--wfg-arrow) center / contain no-repeat;
	transition: transform 0.2s ease;
}

.wfg-audience a:hover {
	color: var(--wfg-pink);
}

.wfg-audience a:hover::after {
	transform: translateX(3px);
}

/* ---------- Money flow pill ---------- */
.wfg-flow-arrow img {
	display: block;
}

/* ---------- Audience cards ---------- */
.e-con.wfg-aud-card {
	overflow: hidden;
}

.wfg-aud-card .wfg-aud-img img {
	display: block;
	width: 100%;
	height: 250px;
	object-fit: cover;
}

/* ---------- Check list ---------- */
.wfg-checks ul {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wfg-checks li {
	position: relative;
	padding-left: 34px;
	line-height: 1.4;
}

.wfg-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 22px;
	height: 22px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M20.1667 11C20.1667 16.0626 16.0626 20.1667 11 20.1667C5.93739 20.1667 1.83333 16.0626 1.83333 11C1.83333 5.93739 5.93739 1.83333 11 1.83333C16.0626 1.83333 20.1667 5.93739 20.1667 11Z' stroke='%23EC368D' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M7.33333 11L10.0833 13.75L14.6667 8.25' stroke='%23EC368D' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wfg-checks strong {
	font-weight: 600;
	color: var(--wfg-ink);
}

/* ---------- Revenue card ---------- */
.wfg-bar {
	display: flex;
	gap: 4px;
	height: 18px;
	overflow: hidden;
	border-radius: 999px;
}

.wfg-bar span {
	flex: 1 1 0;
}

.wfg-bar .is-pink,
.wfg-legend-dot.is-pink {
	background: var(--wfg-pink);
}

.wfg-bar .is-ink,
.wfg-legend-dot.is-ink {
	background: var(--wfg-ink);
}

.wfg-bar .is-light,
.wfg-legend-dot.is-light {
	background: var(--wfg-pink-light);
}

/* 60 / 30 / 10 split (Impact page) */
.wfg-bar.is-proportional .is-pink {
	flex-grow: 6;
}

.wfg-bar.is-proportional .is-ink {
	flex-grow: 3;
}

.wfg-bar.is-proportional .is-light {
	flex-grow: 1;
}

.wfg-legend {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wfg-legend li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wfg-legend-dot {
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.wfg-legend .wfg-legend-label {
	flex: 1 1 auto;
}

.wfg-legend .wfg-legend-value {
	font-weight: 600;
	color: var(--wfg-ink);
}

/* Data table (Impact page) */
.wfg-table table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 16px;
}

.wfg-table th,
.wfg-table td {
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid var(--wfg-border);
	text-align: left;
	background: transparent;
}

.wfg-table th {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wfg-pink);
}

.wfg-table td:last-child,
.wfg-table th:last-child {
	text-align: right;
	font-weight: 600;
	color: var(--wfg-ink);
}

.wfg-table tr:last-child td {
	border-bottom: 0;
	font-weight: 700;
	color: var(--wfg-ink);
}

.wfg-table tbody tr:hover > td,
.wfg-table tbody > tr:nth-child(odd) > td {
	background: transparent;
}

/* ---------- Chips ---------- */
.wfg-chips ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wfg-chips li {
	padding: 10px 16px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.25;
}

.wfg-chips.is-light li {
	border-color: rgba(236, 54, 141, 0.35);
	background: #fff;
	color: var(--wfg-ink);
}

/* ---------- Causes band (exact 3-stop Figma overlay over the band fill) ---------- */
.e-con.wfg-band {
	background-image: linear-gradient(90deg, rgba(11, 11, 15, 0.92) 0%, rgba(11, 11, 15, 0.55) 65%, rgba(11, 11, 15, 0.25) 100%);
}

/* ---------- Quote ---------- */
.wfg-quote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-style: normal;
	quotes: none;
}

.wfg-quote blockquote p {
	margin: 0;
}

/* ---------- Founder avatar ---------- */
.e-con.wfg-avatar {
	flex: none;
}

/* ---------- CTA card ---------- */
.e-con.wfg-cta-card {
	position: relative;
	overflow: hidden;
}

.elementor-element.wfg-cta-deco {
	position: absolute;
	left: 74.17%; /* 890 / 1200 */
	top: -200px;
	width: 420px;
	margin: 0;
	pointer-events: none;
	z-index: 0;
}

.wfg-cta-card > .e-con-inner > .e-con,
.wfg-cta-card > .e-con {
	position: relative;
	z-index: 1;
}

/* Signup form (PRO Elements Form widget) shown as a single white pill: email field + dark Join button */
.wfg-signup-form .elementor-form-fields-wrapper {
	flex-wrap: nowrap;
	align-items: center;
	margin: 0;
	padding: 6px 6px 6px 24px;
	border-radius: 999px;
	background: #fff;
}

.wfg-signup-form .elementor-field-group.elementor-column {
	width: auto;
	margin: 0;
	padding: 0;
}

.wfg-signup-form .elementor-field-type-email {
	flex: 1 1 auto;
	min-width: 0;
}

.wfg-signup-form .elementor-field-type-submit {
	flex: none;
}

.wfg-signup-form .elementor-field-group .elementor-field.elementor-field-textual {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.wfg-signup-form .elementor-field::placeholder {
	color: #9e9eab;
	opacity: 1;
}

.wfg-signup-form .elementor-form-fields-wrapper:focus-within {
	outline: 2px solid var(--wfg-ink);
	outline-offset: 3px;
}

.wfg-signup-form .elementor-button .elementor-button-text::after {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-left: 10px;
	vertical-align: -3px;
	background-color: currentColor;
	-webkit-mask: var(--wfg-arrow) center / contain no-repeat;
	mask: var(--wfg-arrow) center / contain no-repeat;
}

.wfg-signup-form .elementor-message {
	color: #fff;
}

@media (max-width: 767px) {
	.wfg-signup-form .elementor-form-fields-wrapper {
		padding-left: 18px;
	}

	.wfg-signup-form .elementor-button {
		padding: 14px 20px;
	}
}

/* ---------- Footer ---------- */
.wfg-footer-links ul {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wfg-footer-links a,
.wfg-footer-bottom a {
	color: #d9d9e0;
	text-decoration: none;
	transition: color 0.2s ease;
}

.wfg-footer-bottom a {
	color: #9e9eab;
}

.wfg-footer-bottom p {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0;
}

.wfg-footer-links a:hover,
.wfg-footer-bottom a:hover {
	color: var(--wfg-pink);
}

/* Figma exports social glyphs with preserveAspectRatio="none": keep their own ratio inside a 24px box. */
.wfg-socials .elementor-widget-image img {
	width: 24px;
	height: 20px;
	object-fit: contain;
}

.wfg-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	opacity: 1;
	transition: opacity 0.2s ease;
}

.wfg-socials a:hover {
	opacity: 0.7;
}

/* ---------- Accordion (FAQ) ---------- */
.wfg-faq .elementor-accordion-item {
	margin-bottom: 12px;
	border: 1px solid var(--wfg-border) !important; /* overrides widget default border shorthand */
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
}

.wfg-faq .elementor-tab-title {
	padding: 22px 24px;
}

.wfg-faq .elementor-tab-content {
	padding: 0 24px 24px;
	border-top: 0 !important; /* widget prints a top border inline */
}

/* ---------- Responsive (no tablet/mobile frames in Figma — conservative behaviour) ---------- */
@media (max-width: 1024px) {
	.wfg-flow-arrow img {
		transform: rotate(90deg);
	}

	.elementor-element.wfg-header-cta {
		margin-left: auto;
	}

	.e-con.wfg-hero-visual {
		width: min(560px, 100%);
		margin-inline: auto;
	}

	.elementor-element.wfg-cta-deco {
		left: auto;
		right: -160px;
	}
}

@media (max-width: 767px) {
	.e-con.wfg-float-watch {
		transform: scale(0.82);
		transform-origin: left top;
	}

	.e-con.wfg-float-rev {
		left: auto;
		right: 0;
		transform: scale(0.82);
		transform-origin: right top;
	}

	.elementor-element.wfg-hero-script {
		left: auto;
		right: 4%;
	}

	.elementor-element.wfg-cta-deco {
		width: 280px;
		top: -140px;
		right: -140px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important; /* user preference */
	}
}
