/* --------------------------------------------------
RESET & BASE
-------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: 'DM Sans', Arial, sans-serif;
	color: var(--clr-text);
	background: var(--clr-bg);
	line-height: 1.6;
	overflow-x: hidden;
}

img,
picture {
	max-width: 100%;
	display: block;
}

a {
	color: var(--clr-link);
	text-decoration: none;
	transition: color .3s ease;
}
a:hover,
a:focus {
	color: var(--clr-link-hover);
}

ul { list-style: none; }

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
}

.is-two-thirds {
	width: 100%;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Space Grotesk', sans-serif;
	color: var(--clr-heading);
	line-height: 1.2;
	margin-bottom: .75em;
	text-align: center;
	text-shadow: 1px 1px 3px rgba(0,0,0,.15);
}

/* --------------------------------------------------
THEME VARIABLES
-------------------------------------------------- */
:root {
	/* Core Palette */
	--clr-primary: #ff007a;
	--clr-primary-dark: #c4005f;
	--clr-secondary: #009dff;
	--clr-secondary-dark: #0070b2;
	--clr-accent: #34e09c;

	--clr-bg: #ffffff;
	--clr-bg-alt: #fafafa;

	--clr-heading: #222222;
	--clr-text: #333333;

	--clr-link: var(--clr-primary);
	--clr-link-hover: var(--clr-primary-dark);

	/* Gradients */
	--grad-main: linear-gradient(135deg, #ff007a 0%, #009dff 100%);
	--grad-alt: linear-gradient(135deg, #34e09c 0%, #009dff 100%);

	/* Radius & Shadows */
	--radius: 8px;
	--shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

	/* Transition */
	--transition: all .35s ease;
}

/* --------------------------------------------------
GLOBAL UTILITIES
-------------------------------------------------- */
.section {
	padding: 4rem 0;
}

.section-bg-gradient {
	background: var(--grad-alt);
	color: #fff;
}

.flex-center {
	display: flex;
	justify-content: center;
	align-items: center;
}

.text-center { text-align: center; }

.btn,
button,
input[type='submit'] {
	display: inline-block;
	padding: .85rem 2.5rem;
	border-radius: var(--radius);
	border: none;
	cursor: pointer;
	font-weight: 600;
	font-family: 'DM Sans', sans-serif;
	transition: var(--transition);
	text-align: center;
}

.btn-primary {
	background: var(--clr-primary);
	color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
	background: var(--clr-primary-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.btn-secondary {
	background: var(--clr-secondary);
	color: #fff;
}
.btn-secondary:hover,
.btn-secondary:focus {
	background: var(--clr-secondary-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.btn-link {
	color: var(--clr-secondary);
	font-weight: 600;
	border-bottom: 2px solid transparent;
}
.btn-link:hover {
	border-color: currentColor;
}

/* --------------------------------------------------
HEADER & NAV
-------------------------------------------------- */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background: rgba(255,255,255,.9);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 6px rgba(0,0,0,.05);
	transition: var(--transition);
}

.header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
}

.logo {
	font-size: 1.6rem;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	color: var(--clr-primary);
}
.logo span {
	color: var(--clr-secondary);
}

.nav ul {
	display: flex;
	gap: 1.5rem;
}

.nav a {
	font-weight: 500;
	position: relative;
}
.nav a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0;
	height: 2px;
	background: var(--clr-primary);
	transition: width .3s ease;
}
.nav a:hover::after,
.nav a:focus::after {
	width: 100%;
}

.burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: transparent;
	border: none;
	cursor: pointer;
}
.burger span {
	width: 25px;
	height: 3px;
	background: var(--clr-heading);
	transition: var(--transition);
}

/* Mobile Nav */
@media (max-width: 768px) {
	.nav {
		position: fixed;
		right: 0;
		top: 0;
		width: 70%;
		height: 100vh;
		background: var(--clr-bg);
		transform: translateX(100%);
		transition: transform .4s ease;
		padding-top: 6rem;
	}
	.nav.open { transform: translateX(0); }
	.nav ul {
		flex-direction: column;
		gap: 2rem;
		align-items: center;
	}
	.burger { display: flex; }
	.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.burger.active span:nth-child(2) { opacity: 0; }
	.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* --------------------------------------------------
HERO
-------------------------------------------------- */
.hero {
	min-height: 85vh;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}
.hero::before { /* extra gradient overlay safeguard */
	content:'';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.3) 100%);
}
.hero > .container {
	position: relative;
	z-index: 2;
}
.hero * { color: #fff; }
.hero-title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	margin-bottom: 1rem;
}
.hero-subtitle {
	font-size: clamp(1rem, 2.3vw, 1.35rem);
	margin-bottom: 2rem;
}
#cta-hero { font-size: 1rem; }

/* --------------------------------------------------
SECTIONS GENERIC
-------------------------------------------------- */
.research-section,
.events-section,
.stories-section,
.community-section,
.blog-section,
.workshops-section,
.webinars-section,
.contact-section {
	padding: 4rem 0;
	background: var(--clr-bg);
}

.section-title { margin-bottom: 2rem; }

/* --------------------------------------------------
CARDS
-------------------------------------------------- */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit,minmax(270px,1fr));
	gap: 2rem;
}

.card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: var(--clr-bg-alt);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); }

.card-image {
	width: 100%;
	height: 220px;
	overflow: hidden;
}
.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* --------------------------------------------------
TOGGLE SWITCHES
-------------------------------------------------- */
.toggle {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin: 0 1rem 1rem 0;
	cursor: pointer;
}
.toggle input {
	display: none;
}
.slider {
	position: relative;
	width: 40px;
	height: 20px;
	background: #ccc;
	border-radius: 20px;
	transition: var(--transition);
}
.slider::after {
	content: '';
	position: absolute;
	top: 2px; left: 2px;
	width: 16px; height: 16px;
	border-radius: 50%;
	background: #fff;
	transition: var(--transition);
}
input:checked + .slider {
	background: var(--clr-primary);
}
input:checked + .slider::after {
	transform: translateX(20px);
}
.label-text { font-size: .9rem; }

/* --------------------------------------------------
ACCORDION
-------------------------------------------------- */
.accordion {
	margin-top: 2rem;
}
.accordion-item + .accordion-item { margin-top: 1rem; }

.accordion-header {
	width: 100%;
	text-align: left;
	background: var(--grad-main);
	color: #fff;
	padding: 1rem;
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	font-family: 'DM Sans', sans-serif;
	position: relative;
}
.accordion-header::after {
	content:'+';
	position: absolute;
	right: 1.5rem; top: 50%;
	transform: translateY(-50%);
	font-weight: 700;
}
.accordion-header.active::after { content:'−'; }

.accordion-body {
	max-height: 0;
	overflow: hidden;
	background: var(--clr-bg-alt);
	transition: max-height .4s ease;
	padding: 0 1rem;
	border-radius: 0 0 var(--radius) var(--radius);
}
.accordion-body p,
.accordion-body ul { padding: 1rem 0; }

/* --------------------------------------------------
MODAL
-------------------------------------------------- */
.modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0; top: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,.65);
	justify-content: center;
	align-items: center;
	padding: 1rem;
}
.modal-content {
	background: #fff;
	padding: 2rem;
	border-radius: var(--radius);
	max-width: 500px;
	width: 100%;
	position: relative;
	text-align: center;
}
.close {
	position: absolute;
	top: 12px; right: 12px;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--clr-primary-dark);
}

/* --------------------------------------------------
CONTACT FORM
-------------------------------------------------- */
form {
	display: grid;
	gap: 1.5rem;
	margin-top: 2rem;
}
.form-group {
	display: flex;
	flex-direction: column;
}
label {
	font-weight: 600;
	margin-bottom: .5rem;
	color: var(--clr-heading);
}
input[type="text"],
input[type="email"],
textarea {
	padding: .9rem 1rem;
	border: 1px solid #ddd;
	border-radius: var(--radius);
	transition: border-color .3s;
	font-family: inherit;
}
input:focus,
textarea:focus {
	outline: none;
	border-color: var(--clr-primary);
}

/* --------------------------------------------------
FOOTER
-------------------------------------------------- */
.footer {
	background: var(--grad-main);
	color: #fff;
	padding: 3rem 0 2rem;
	text-align: center;
}
.footer-nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}
.footer-nav a {
	color: #fff;
	font-weight: 500;
}
.footer-nav a:hover { text-decoration: underline; }

.social-links {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 1rem;
}
.social-links a {
	color: #fff;
	font-weight: 600;
	position: relative;
}
.social-links a::after {
	content: '';
	position: absolute;
	left: 0; bottom: -4px;
	width: 0; height: 2px;
	background: #fff;
	transition: width .3s ease;
}
.social-links a:hover::after { width: 100%; }

copyright { font-size: .85rem; }

/* --------------------------------------------------
EXTERNAL LINKS SECTION
-------------------------------------------------- */
.external-links ul {
	margin-top: 2rem;
	display: grid;
	gap: 1.25rem;
}
.external-links li a {
	display: block;
	padding: 1rem 1.25rem;
	border: 1px solid #eee;
	border-radius: var(--radius);
	background: var(--clr-bg-alt);
	transition: var(--transition);
}
.external-links li a:hover {
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}

/* --------------------------------------------------
SUCCESS PAGE
-------------------------------------------------- */
.success-page {
	min-height: 100vh;
	@extend .flex-center; /* graceful if Sass, mimic below */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 1.5rem;
	padding: 1rem;
}

/* --------------------------------------------------
PRIVACY & TERMS PAGES
-------------------------------------------------- */
.page-content {
	max-width: 900px;
	margin: 0 auto;
	padding: 120px 1rem 4rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* --------------------------------------------------
PARALLAX UTILITY
-------------------------------------------------- */
.parallax {
	background-attachment: fixed;
	background-size: cover;
	background-repeat: no-repeat;
}

/* --------------------------------------------------
ANIMATIONS / REVEALS
-------------------------------------------------- */
[data-sr] { opacity: 0; transform: translateY(20px); }
[data-sr].sr-show { opacity: 1; transform: none; transition: opacity .9s ease, transform .9s ease; }

/* --------------------------------------------------
MEDIA QUERIES
-------------------------------------------------- */
@media (min-width: 992px) {
	.container.is-two-thirds { width: 66.666%; }
}

/* --------------------------------------------------
HELPERS
-------------------------------------------------- */
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.pt-1 { padding-top: 1rem; }
.pb-1 { padding-bottom: 1rem; }