/* ==========================================================================
   Ragged Edge Elementor — Core Design System & Interactive Styles
   Tokens extracted from https://raggededge.com (Ink #181F1F, Cyan #96EBEB)
   ========================================================================== */

@font-face {
	font-family: "ABCDiatype-Regular";
	src:
		url("https://raggededge.com/dist/fonts/ABCDiatype-Regular.woff2") format("woff2"),
		url("https://raggededge.com/dist/fonts/ABCDiatype-Regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "ABCDiatypeExpanded-Bold";
	src:
		url("https://raggededge.com/dist/fonts/ABCDiatypeExpanded-Bold.woff2") format("woff2"),
		url("https://raggededge.com/dist/fonts/ABCDiatypeExpanded-Bold.woff") format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Grit-Regular";
	src:
		url("https://raggededge.com/dist/fonts/Grit-Regular.woff2") format("woff2"),
		url("https://raggededge.com/dist/fonts/Grit-Regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--re-ink: #181f1f;
	--re-ink-light: #1f3233;
	--re-ink-border: rgba(24, 31, 31, 0.2);
	--re-ink-muted: rgba(24, 31, 31, 0.45);
	--re-blue: #96ebeb;
	--re-blue-light: #ebf7f3;
	--re-pill-glass: rgba(220, 242, 235, 0.6);
	--re-white: #ffffff;
	--re-black: #000000;
	--re-green: #94a683;
	--re-gold: #a99856;
	--re-orange: #ff8c5e;
	--re-pink: #ffc7f5;
	--re-red: #db3700;

	--re-font-body: "Grit-Regular", "Instrument Serif", Georgia, serif;
	--re-font-heading: "ABCDiatypeExpanded-Bold", "Space Grotesk", sans-serif;
	--re-font-heading-alt: "ABCDiatype-Regular", "Space Grotesk", sans-serif;
}

.re-body {
	margin: 0;
	background-color: var(--re-white);
	color: var(--re-ink);
	font-family: var(--re-font-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.re-wordmark-svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

/* ==========================================================================
   Floating Glassmorphic Pill Navigation
   ========================================================================== */
.re-floating-header {
	position: fixed;
	left: 0;
	bottom: 24px;
	width: 100%;
	z-index: 60;
	pointer-events: none;
	padding: 0 32px;
	box-sizing: border-box;
}

.re-floating-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 12px;
}

.c-nav {
	pointer-events: auto;
}

.c-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.c-nav__item {
	margin: 0;
	padding: 0;
}

.c-nav__link,
.c-nav .menu-item > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: 54px;
	background-color: var(--re-pill-glass);
	color: var(--re-black);
	font-family: var(--re-font-body);
	font-size: 16px;
	line-height: 1;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	-webkit-backdrop-filter: blur(40px);
	backdrop-filter: blur(40px);
	transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease, transform 0.2s ease;
}

.c-nav__link:hover,
.c-nav .menu-item > a:hover {
	background-color: var(--re-blue);
	color: var(--re-ink);
}

.c-nav__link.is-active,
.c-nav .current-menu-item > a {
	background-color: var(--re-white);
	color: var(--re-ink);
}

.re-mobile-menu-toggle {
	display: none;
	pointer-events: auto;
}

@media (max-width: 767px) {
	.re-floating-header {
		top: 16px;
		bottom: auto;
		padding: 0 16px;
	}
	.c-nav--left,
	.c-nav--right {
		display: none;
	}
	.re-mobile-menu-toggle {
		display: inline-flex;
		margin-left: auto;
	}
}

.re-mobile-drawer[hidden] {
	display: none;
}

.re-mobile-drawer {
	position: fixed;
	inset: 0;
	z-index: 80;
	background: rgba(24, 31, 31, 0.94);
	backdrop-filter: blur(24px);
	padding: 24px;
	display: flex;
	flex-direction: column;
}

.re-mobile-drawer__close {
	align-self: flex-end;
	margin-bottom: 32px;
}

.re-mobile-drawer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.re-mobile-drawer__link {
	color: var(--re-white);
	font-family: var(--re-font-heading);
	font-size: 32px;
	text-decoration: none;
}

/* ==========================================================================
   Buttons & Pills
   ========================================================================== */
.o-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 54px;
	background-color: var(--re-blue);
	color: var(--re-ink);
	font-family: var(--re-font-body);
	line-height: 1;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.o-btn:hover {
	background-color: var(--re-ink);
	color: var(--re-white);
}

.o-btn--black {
	background-color: var(--re-ink);
	color: var(--re-white);
}

.o-btn--black:hover {
	background-color: var(--re-blue);
	color: var(--re-ink);
}

.o-btn--cta {
	font-size: clamp(20px, 3vw, 40px);
	padding: clamp(16px, 2vw, 26px) clamp(24px, 3vw, 40px);
}

.o-btn--newsletter {
	background-color: var(--re-ink);
	color: var(--re-white);
	font-size: clamp(16px, 2vw, 24px);
	padding: 16px 28px;
	border-radius: 54px;
	white-space: nowrap;
}

.o-btn--newsletter:hover {
	background-color: var(--re-blue);
	color: var(--re-ink);
}

/* ==========================================================================
   Editorial Stat Badge (+ / Arrow Pill)
   ========================================================================== */
.re-stat-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.re-stat-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--re-black);
	color: var(--re-white);
	border-radius: 40px;
	width: 32px;
	height: 22px;
	flex-shrink: 0;
}

.re-stat-badge svg {
	width: 12px;
	height: 12px;
	fill: currentColor;
}

/* ==========================================================================
   Case Study Cards & Custom "More" Hover Pill
   ========================================================================== */
.re-case-card {
	position: relative;
	transition: opacity 0.4s ease;
}

.re-case-card .elementor-widget-video video {
	object-fit: cover;
	width: 100%;
	height: 100%;
	display: block;
}

.re-cursor-pill {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 90;
	pointer-events: none;
	padding: 12px 20px;
	border-radius: 54px;
	background-color: var(--re-blue);
	color: var(--re-ink);
	font-family: var(--re-font-body);
	font-size: 16px;
	line-height: 1;
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.85);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.re-cursor-pill.is-visible {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* ==========================================================================
   Newsletter Shortcode Form
   ========================================================================== */
.re-newsletter-form {
	width: 100%;
}

.re-newsletter-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	border-bottom: 1px solid var(--re-ink-border);
	padding-bottom: 16px;
}

.re-newsletter-input {
	flex: 1 1 260px;
	border: 0;
	background: transparent;
	color: var(--re-ink);
	font-family: var(--re-font-body);
	font-size: clamp(20px, 2.5vw, 34px);
	line-height: 1.2;
	outline: none;
	padding: 8px 0;
}

.re-newsletter-input::placeholder {
	color: rgba(24, 31, 31, 0.35);
}

.re-newsletter-status {
	margin-top: 12px;
	font-family: var(--re-font-heading-alt);
	font-size: 15px;
	color: var(--re-ink);
}

/* ==========================================================================
   Contact Copy Buttons & Scroll Reveal
   ========================================================================== */
.re-copy-btn {
	background: transparent;
	border: 0;
	padding: 0;
	color: rgba(24, 31, 31, 0.4);
	font-family: var(--re-font-heading-alt);
	font-size: 14px;
	cursor: pointer;
	transition: color 0.2s ease;
}

.re-copy-btn:hover {
	color: var(--re-ink);
}

.re-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.re-reveal.is-revealed {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.re-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
