/* G L O B A L S */
:root {
	--color-background: #121821;
	--color-text-primary: #f3f4f6;
	--color-text-secondary: #9ca3af;
	--color-accent: #4ade80;
	--color-surface: #1e293b;
	--color-border: #374151;

	--font-primary: 'Manrope', sans-serif;
	--font-secondary: 'Space Grotesk', sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	background-color: var(--color-background);
	color: var(--color-text-primary);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

h1,
h2,
h3 {
	font-family: var(--font-secondary);
	font-weight: 700;
}

a {
	color: var(--color-text-primary);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--color-accent);
}

ul {
	list-style: none;
}

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

/* H E A D E R */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 20px 0;
	z-index: 100;
	background-color: rgba(18, 24, 33, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-border);
}

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

.header__logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-secondary);
	font-size: 20px;
	font-weight: 700;
}

.header__logo img {
	width: 28px;
	height: 28px;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 30px;
}

.nav__link {
	font-size: 15px;
	padding: 5px 0;
	position: relative;
}

.nav__link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--color-accent);
	transition: width 0.3s ease;
}

.nav__link:hover::after {
	width: 100%;
}

.nav__link--cta {
	background-color: var(--color-accent);
	color: var(--color-background);
	padding: 8px 20px;
	border-radius: 50px;
	font-weight: 700;
}

.nav__link--cta:hover {
	color: var(--color-background);
	opacity: 0.9;
}
.nav__link--cta::after {
	display: none;
}

.header__toggle {
	display: none;
	background: none;
	border: none;
	color: var(--color-text-primary);
	cursor: pointer;
}

/* F O O T E R */
.footer {
	background-color: var(--color-background);
	padding: 80px 0 0;
	border-top: 1px solid var(--color-border);
	margin-top: 100px;
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
	padding-bottom: 60px;
}

.footer__logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-secondary);
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 15px;
}
.footer__logo img {
	width: 28px;
	height: 28px;
}

.footer__description {
	color: var(--color-text-secondary);
	font-size: 14px;
}

.footer__title {
	font-size: 18px;
	margin-bottom: 20px;
}

.footer__list li:not(:last-child) {
	margin-bottom: 12px;
}

.footer__link {
	color: var(--color-text-secondary);
	font-size: 15px;
}
.footer__link:hover {
	color: var(--color-accent);
}

.footer__list--contacts .footer__link,
.footer__address {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--color-text-secondary);
}

.footer__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.footer__address {
	font-style: normal;
	align-items: flex-start;
}

.footer__bottom {
	border-top: 1px solid var(--color-border);
	padding: 20px 0;
	text-align: center;
	font-size: 14px;
	color: var(--color-text-secondary);
}

/* M O B I L E   R E S P O N S I V E */
@media (max-width: 768px) {
	.header__nav {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background-color: var(--color-background);
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.header__nav.active {
		display: flex;
	}

	.nav__list {
		flex-direction: column;
		gap: 40px;
	}

	.nav__link {
		font-size: 24px;
	}

	.header__toggle {
		display: block;
		z-index: 101;
	}
}

/* B A S E  C O M P O N E N T S */
.button {
	display: inline-block;
	background-color: var(--color-accent);
	color: var(--color-background);
	padding: 14px 32px;
	border-radius: 50px;
	font-weight: 700;
	font-family: var(--font-secondary);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
	color: var(--color-background);
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(74, 222, 128, 0.2);
}

/* H E R O */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 80px; /* Header height */
	text-align: center;
	overflow: hidden;
}

.hero__canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero__container {
	position: relative;
	z-index: 2;
}

.hero__content {
	max-width: 750px;
	margin: 0 auto;
}

.hero__title {
	font-size: 52px;
	line-height: 1.2;
	margin-bottom: 20px;
}

.hero__description {
	font-size: 18px;
	color: var(--color-text-secondary);
	margin-bottom: 40px;
}

/* M O B I L E   R E S P O N S I V E  (Hero) */
@media (max-width: 768px) {
	.hero__title {
		font-size: 36px;
	}
	.hero__description {
		font-size: 16px;
	}
}

/* S E C T I O N  G L O B A L S */
.section {
	padding: 100px 0;
}

.section__header {
	text-align: center;
	max-width: 600px;
	margin: 0 auto 60px;
}

.section__subtitle {
	font-family: var(--font-secondary);
	color: var(--color-accent);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 14px;
}

.section__title {
	font-size: 42px;
	margin-top: 10px;
}

.section__description {
	color: var(--color-text-secondary);
	font-size: 18px;
	margin-top: 15px;
}

/* D I R E C T I O N S */
.directions__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
}

.card {
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 30px;
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-8px);
	border-color: var(--color-accent);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card__icon-wrapper {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(74, 222, 128, 0.1);
	border-radius: 8px;
	margin-bottom: 25px;
}

.card__icon {
	width: 28px;
	height: 28px;
	color: var(--color-accent);
}

.card__title {
	font-size: 22px;
	margin-bottom: 10px;
}

.card__description {
	font-size: 15px;
	color: var(--color-text-secondary);
	margin-bottom: 20px;
	flex-grow: 1; /* Pushes tag to the bottom if cards are different heights */
}

.card__tag {
	display: inline-block;
	background-color: var(--color-border);
	color: var(--color-text-primary);
	padding: 5px 12px;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 700;
}

/* To ensure all cards have same height in a row */
.directions__grid {
	align-items: stretch;
}
.card {
	display: flex;
	flex-direction: column;
}

/* M O B I L E   R E S P O N S I V E (Section) */
@media (max-width: 768px) {
	.section {
		padding: 80px 0;
	}
	.section__title {
		font-size: 32px;
	}
	.section__description {
		font-size: 16px;
	}
}

/* P R O C E S S */
.process__timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
	padding: 20px 0;
}

.process__timeline::before {
	content: '';
	position: absolute;
	top: 0;
	left: 14px;
	height: 100%;
	width: 2px;
	background-color: var(--color-border);
}

.timeline__item {
	position: relative;
	margin-bottom: 40px;
	padding-left: 50px;
}

.timeline__item:last-child {
	margin-bottom: 0;
}

.timeline__marker {
	position: absolute;
	left: 0;
	top: 5px;
	width: 30px;
	height: 30px;
	border: 3px solid var(--color-border);
	background-color: var(--color-background);
	border-radius: 50%;
	z-index: 1;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.timeline__content {
	/* Reusing .card styles from previous section */
	position: relative;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline__item.is-visible .timeline__content {
	opacity: 1;
	transform: translateY(0);
}

.timeline__item.is-visible .timeline__marker {
	background-color: var(--color-accent);
	border-color: var(--color-accent);
}

.timeline__header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 15px;
}

.timeline__icon {
	width: 24px;
	height: 24px;
	color: var(--color-accent);
}

.timeline__title {
	font-size: 20px;
	margin: 0;
}

.timeline__description {
	font-size: 15px;
	color: var(--color-text-secondary);
}

/* M O B I L E   R E S P O N S I V E (Process) */
@media (max-width: 768px) {
	.process__timeline::before {
		left: 9px;
	}
	.timeline__item {
		padding-left: 40px;
	}
	.timeline__marker {
		width: 20px;
		height: 20px;
		left: 0;
	}
}
/* A B O U T */
.about__grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 60px;
	align-items: center;
}

.about__image-wrapper {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
}

.about__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about__text {
	color: var(--color-text-secondary);
	margin: 20px 0 30px;
}

.about__features {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.about__feature-item {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.about__feature-icon {
	width: 24px;
	height: 24px;
	color: var(--color-accent);
	flex-shrink: 0;
	margin-top: 5px;
}

.about__feature-title {
	font-size: 18px;
	margin-bottom: 5px;
}

.about__feature-text {
	color: var(--color-text-secondary);
	font-size: 15px;
}

/* M O B I L E   R E S P O N S I V E (About) */
@media (max-width: 992px) {
	.about__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

/* R E V I E W S */
.reviews {
	background-color: var(--color-surface);
}

.reviews__slider-wrapper {
	position: relative;
}

.reviews__slider {
	padding: 20px;
	margin: 0 -20px;
}

.review-card {
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 30px;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.review-card__text {
	color: var(--color-text-secondary);
	font-size: 16px;
	flex-grow: 1;
	margin-bottom: 25px;
	line-height: 1.7;
}

.review-card__author {
	display: flex;
	align-items: center;
	gap: 15px;
}

.review-card__avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}

.review-card__name {
	font-size: 16px;
	font-weight: 700;
}

.review-card__course {
	font-size: 14px;
	color: var(--color-text-secondary);
}

/* Swiper custom styles */
.reviews__slider-wrapper .swiper-button-prev,
.reviews__slider-wrapper .swiper-button-next {
	color: var(--color-accent);
	width: 44px;
	height: 44px;
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 50%;
	transition: background-color 0.3s ease;
}

.reviews__slider-wrapper .swiper-button-prev:hover,
.reviews__slider-wrapper .swiper-button-next:hover {
	background-color: var(--color-border);
}

.reviews__slider-wrapper .swiper-button-prev::after,
.reviews__slider-wrapper .swiper-button-next::after {
	font-size: 18px;
}

@media (max-width: 768px) {
	.reviews__slider-wrapper .swiper-button-prev,
	.reviews__slider-wrapper .swiper-button-next {
		display: none;
	}
}

/* C O N T A C T */
.contact {
	padding-bottom: 120px;
}
.contact__wrapper {
	max-width: 600px;
	margin: 0 auto;
	background-color: var(--color-surface);
	padding: 40px;
	border-radius: 12px;
	border: 1px solid var(--color-border);
}

.form__group {
	margin-bottom: 20px;
}

.form__label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 700;
}

.form__input {
	width: 100%;
	padding: 12px 16px;
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	color: var(--color-text-primary);
	font-family: var(--font-primary);
	font-size: 16px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.form__group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 25px;
}

.form__checkbox {
	margin-top: 5px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

.form__checkbox-label {
	font-size: 14px;
	color: var(--color-text-secondary);
}
.form__checkbox-label a {
	color: var(--color-text-primary);
	text-decoration: underline;
}
.form__checkbox-label a:hover {
	color: var(--color-accent);
}

.form__button {
	width: 100%;
	margin-top: 20px;
	padding: 16px;
	font-size: 16px;
}

/* Success Message */
.form__success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 20px;
}

.form__success-message.is-visible {
	display: block;
}

.form__success-icon {
	color: var(--color-accent);
	width: 50px;
	height: 50px;
	margin-bottom: 20px;
}

.form__success-title {
	font-size: 24px;
	margin-bottom: 10px;
}

.form__success-text {
	color: var(--color-text-secondary);
}

@media (max-width: 768px) {
	.contact__wrapper {
		padding: 25px;
	}
}

/* C O O K I E   P O P - U P */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--color-surface);
	border-top: 1px solid var(--color-border);
	padding: 20px 0;
	z-index: 200;
	transform: translateY(100%);
	transition: transform 0.5s ease-in-out;
}

.cookie-popup.is-visible {
	transform: translateY(0);
}

.cookie-popup__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.cookie-popup__text {
	color: var(--color-text-secondary);
	font-size: 14px;
}

.cookie-popup__text a {
	color: var(--color-text-primary);
	text-decoration: underline;
}
.cookie-popup__text a:hover {
	color: var(--color-accent);
}

.cookie-popup__button {
	padding: 8px 24px;
	white-space: nowrap; /* Prevent button text wrapping */
}

@media (max-width: 768px) {
	.cookie-popup__container {
		flex-direction: column;
		text-align: center;
	}
}

/* S T Y L E S   F O R   L E G A L   P A G E S */
.pages {
	padding: 120px 0 0; /* 140px top padding to offset header */
}

.pages .container {
	max-width: 800px; /* Narrower container for better readability */
}

.pages h1,
.pages h2 {
	font-family: var(--font-secondary);
	margin-bottom: 1em;
}

.pages h1 {
	font-size: 1.5rem;
	border-bottom: 1px solid var(--color-border);
	padding-bottom: 20px;
	margin-bottom: 30px;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 40px;
}

.pages p {
	font-size: 16px;
	line-height: 1.8;
	color: var(--color-text-secondary);
	margin-bottom: 20px;
}

.pages ul {
	list-style-type: disc;
	padding-left: 25px;
	margin-bottom: 20px;
}

.pages li {
	margin-bottom: 10px;
	color: var(--color-text-secondary);
	line-height: 1.8;
}

.pages a {
	color: var(--color-accent);
	text-decoration: underline;
}
.pages a:hover {
	text-decoration: none;
}

.pages strong {
	color: var(--color-text-primary);
	font-weight: 700;
}
