/* ==================== GOOGLE FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;700&family=Roboto:wght@400;500&display=swap');

/* ==================== CSS VARIABLES ==================== */
:root {
	--header-height: 4.5rem;

	/* Colors */
	--primary-color: #4f46e5;
	--primary-color-alt: #4338ca;
	--text-color: #111827;
	--text-color-light: #6b7280;
	--body-color: #ffffff;
	--container-color: #f9fafb;
	--border-color: #e5e7eb;

	/* Fonts */
	--body-font: 'Roboto', sans-serif;
	--heading-font: 'Inter', sans-serif;

	--h1-font-size: 2.5rem;
	--h2-font-size: 1.5rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* Font weight */
	--font-medium: 500;
	--font-bold: 700;

	/* Margins */
	--mb-0-5: 0.5rem;
	--mb-1: 1rem;
	--mb-1-5: 1.5rem;
	--mb-2: 2rem;

	/* Z-index */
	--z-tooltip: 10;
	--z-fixed: 100;
}

/* ==================== BASE ==================== */
* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	background-color: var(--body-color);
	color: var(--text-color);
}

h1,
h2,
h3 {
	font-family: var(--heading-font);
	font-weight: var(--font-bold);
	color: var(--text-color);
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

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

/* ==================== REUSABLE CSS CLASSES ==================== */
.container {
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

/* ==================== HEADER ==================== */
.header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: var(--z-fixed);
	background-color: var(--body-color);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header__container {
	height: var(--header-height);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--heading-font);
	font-weight: var(--font-bold);
	color: var(--text-color);
	transition: color 0.3s;
}

.logo:hover {
	color: var(--primary-color);
}

.logo__icon {
	width: 32px;
	height: 32px;
}

.header__nav-list {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.header__nav-link {
	font-family: var(--heading-font);
	font-weight: var(--font-medium);
	color: var(--text-color);
	position: relative;
	transition: color 0.3s;
}

.header__nav-link::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-color);
	transition: width 0.3s ease-in-out;
}

.header__nav-link:hover {
	color: var(--primary-color);
}

.header__nav-link:hover::after {
	width: 100%;
}

.header__nav-link--button {
	background-color: var(--primary-color);
	color: var(--body-color);
	padding: 0.75rem 1.5rem;
	border-radius: 6px;
	transition: background-color 0.3s;
}

.header__nav-link--button:hover {
	background-color: var(--primary-color-alt);
	color: var(--body-color);
}

.header__nav-link--button::after {
	display: none;
}

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

/* Mobile Menu Styles */
@media screen and (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: var(--header-height);
		right: -100%;
		width: 100%;
		height: 100%;
		background-color: var(--body-color);
		padding: 2rem;
		transition: right 0.4s ease;
		box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
	}

	.header__nav.show-menu {
		right: 0;
	}

	.header__nav-list {
		flex-direction: column;
		gap: 2.5rem;
		align-items: flex-start;
	}

	.header__burger {
		display: block;
	}
}

/* ==================== FOOTER ==================== */
.footer {
	background-color: var(--text-color);
	color: var(--body-color);
	padding: 4rem 0 2rem;
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2rem;
}

.footer__column .logo__text {
	color: var(--body-color);
}

.footer__column .logo__icon path {
	stroke: var(--primary-color);
}

.footer__column .logo__icon path:last-child,
.footer__column .logo__icon path:nth-child(4) {
	stroke: var(--body-color);
}

.footer__copyright {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
	margin-top: var(--mb-1);
}

.footer__title {
	font-size: var(--h3-font-size);
	color: var(--body-color);
	margin-bottom: var(--mb-1);
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer__link {
	color: var(--text-color-light);
	transition: color 0.3s, padding-left 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.footer__link:hover {
	color: var(--primary-color);
	padding-left: 5px;
}

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

.footer__address {
	color: var(--text-color-light);
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

/* For main content push */
.main {
	padding-top: var(--header-height);
}

/* ==================== REUSABLE CSS CLASSES (доповнення) ==================== */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1rem 2rem;
	background-color: var(--primary-color);
	color: var(--body-color);
	font-family: var(--heading-font);
	font-weight: var(--font-medium);
	border-radius: 6px;
	border: none;
	cursor: pointer;
	transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
	background-color: var(--primary-color-alt);
	transform: translateY(-2px);
}

.button__icon {
	width: 20px;
	height: 20px;
}

/* ==================== HERO ==================== */
.hero {
	padding: 4rem 0;
	background-color: var(--container-color);
	overflow: hidden; /* Для корректной работы AOS */
}

.hero__container {
	display: grid;
	align-items: center;
	gap: 3rem;
	grid-template-columns: 1fr;
}

.hero__title {
	font-size: var(--h1-font-size);
	line-height: 1.2;
	margin-bottom: var(--mb-1);
}

.hero__description {
	font-size: 1.125rem;
	color: var(--text-color-light);
	margin-bottom: var(--mb-2);
	max-width: 500px;
}

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

.hero__image {
	border-radius: 12px;
	width: 100%;
	max-width: 450px;
	height: auto;
	object-fit: cover;
}

/* Responsive Grid for Hero */
@media screen and (min-width: 768px) {
	.hero {
		padding: 6rem 0;
	}

	.hero__container {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}
}

@media screen and (min-width: 1024px) {
	.hero__title {
		font-size: 3rem;
	}
}

/* ==================== REUSABLE CSS CLASSES (доповнення) ==================== */
.section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.section-header__title {
	font-size: var(--h2-font-size);
	margin-bottom: var(--mb-0-5);
}

.section-header__subtitle {
	font-size: var(--normal-font-size);
	color: var(--text-color-light);
	max-width: 600px;
	margin: 0 auto;
}

@media screen and (min-width: 768px) {
	.section-header__title {
		font-size: 2rem;
	}
	.section-header__subtitle {
		font-size: 1.125rem;
	}
}

/* ==================== PRACTICES ==================== */
.practices {
	padding: 4rem 0;
	background-color: var(--body-color);
}

.practices__grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.practice-card {
	background-color: var(--container-color);
	padding: 2rem;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	text-align: center;
	transition: transform 0.3s, box-shadow 0.3s;
}

.practice-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

.practice-card__icon-wrapper {
	width: 64px;
	height: 64px;
	margin: 0 auto var(--mb-1-5);
	background-color: var(--primary-color);
	color: var(--body-color);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.practice-card__icon {
	width: 32px;
	height: 32px;
}

.practice-card__title {
	font-size: var(--h3-font-size);
	margin-bottom: var(--mb-0-5);
}

.practice-card__description {
	color: var(--text-color-light);
	line-height: 1.6;
}

@media screen and (min-width: 768px) {
	.practices {
		padding: 6rem 0;
	}
}

/* ==================== TOOLS ==================== */
.tools {
	padding: 4rem 0;
	background-color: var(--container-color);
}

.tools__list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: 800px;
	margin: 0 auto;
}

.tool-item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.5rem;
	padding: 1.5rem;
	background-color: var(--body-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	transition: background-color 0.3s, transform 0.3s;
}

.tool-item:hover {
	transform: scale(1.02);
	background-color: #fdfdff;
}

.tool-item__logo-wrapper {
	width: 60px;
	height: 60px;
	flex-shrink: 0;
}

.tool-item__logo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
}

.tool-item__title {
	font-size: 1.125rem;
	margin-bottom: 0.25rem;
}

.tool-item__description {
	color: var(--text-color-light);
	font-size: var(--small-font-size);
}

.tool-item__tag {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: var(--font-medium);
	border-radius: 12px;
	background-color: #eef2ff; /* Indigo light */
	color: #4338ca; /* Indigo dark */
}

.tool-item__tag--image {
	background-color: #e0f2fe; /* Sky light */
	color: #0369a1; /* Sky dark */
}

.tool-item__tag--productivity {
	background-color: #f0fdf4; /* Green light */
	color: #15803d; /* Green dark */
}

@media screen and (max-width: 576px) {
	.tool-item {
		grid-template-columns: auto 1fr;
		gap: 1rem;
	}
	.tool-item__tag-wrapper {
		grid-column: 2 / 3;
		padding-top: 0.5rem;
	}
}

@media screen and (min-width: 768px) {
	.tools {
		padding: 6rem 0;
	}
}

/* ==================== BEGINNER (FAQ) ==================== */
.beginner {
	padding: 4rem 0;
	background-color: var(--body-color);
}

.beginner__accordion {
	max-width: 768px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.accordion-item {
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	overflow: hidden;
}

.accordion-item[open] {
	border-color: var(--primary-color);
}

.accordion-item__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	cursor: pointer;
	font-family: var(--heading-font);
	font-weight: var(--font-medium);
	font-size: 1.125rem;
}

/* Remove default marker from summary */
.accordion-item__header::-webkit-details-marker {
	display: none;
}

.accordion-item__icon {
	width: 24px;
	height: 24px;
	color: var(--primary-color);
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.accordion-item[open] .accordion-item__icon {
	transform: rotate(180deg);
}

.accordion-item__content {
	padding: 0 1.5rem 1.5rem 1.5rem;
	color: var(--text-color-light);
	line-height: 1.6;
}

@media screen and (min-width: 768px) {
	.beginner {
		padding: 6rem 0;
	}
}

/* ==================== BLOG ==================== */
.blog {
	padding: 4rem 0;
	background-color: var(--container-color);
}

.blog__grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

@media screen and (min-width: 768px) {
	.blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.blog-card {
	background-color: var(--body-color);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

.blog-card__image-wrapper {
	overflow: hidden;
}

.blog-card__image {
	width: 100%;
	height: 220px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image {
	transform: scale(1.05);
}

.blog-card__content {
	padding: 1.5rem;
}

.blog-card__tag {
	display: inline-block;
	margin-bottom: var(--mb-0-5);
	background-color: #ede9fe; /* Violet light */
	color: #5b21b6; /* Violet dark */
	padding: 0.25rem 0.75rem;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: var(--font-medium);
}

.blog-card__title {
	font-size: 1.25rem;
	margin-bottom: var(--mb-0-5);
}

.blog-card__title a {
	color: var(--text-color);
	transition: color 0.3s;
}

.blog-card__title a:hover {
	color: var(--primary-color);
}

.blog-card__excerpt {
	color: var(--text-color-light);
	margin-bottom: var(--mb-1);
	line-height: 1.6;
}

.blog-card__link {
	font-family: var(--heading-font);
	font-weight: var(--font-medium);
	color: var(--primary-color);
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	transition: gap 0.3s;
}

.blog-card__link:hover {
	gap: 0.5rem;
}

.blog-card__link-icon {
	width: 16px;
	height: 16px;
}

@media screen and (min-width: 768px) {
	.blog {
		padding: 6rem 0;
	}
}

/* ==================== CONTACT ==================== */
.contact {
	padding: 4rem 0;
	background-color: var(--body-color);
}

.contact__content-grid {
	display: grid;
	gap: 3rem;
}

@media screen and (min-width: 992px) {
	.contact__content-grid {
		grid-template-columns: 1fr 1.5fr;
		align-items: center;
	}
}

.contact__info-title {
	font-size: var(--h2-font-size);
	margin-bottom: var(--mb-1);
}

.contact__info-description {
	color: var(--text-color-light);
	line-height: 1.7;
}

.contact__form {
	display: grid;
	gap: 1.5rem;
}

.contact__form-group {
	display: flex;
	flex-direction: column;
}

.contact__form-label {
	margin-bottom: var(--mb-0-5);
	font-size: var(--small-font-size);
	font-weight: var(--font-medium);
}

.contact__form-input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.contact__form-input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.contact__form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.contact__form-checkbox {
	margin-top: 3px;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.contact__form-checkbox-label {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
}

.contact__form-checkbox-label a {
	color: var(--primary-color);
	text-decoration: underline;
}

.contact__form-button {
	width: 100%;
}

.contact__success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 2rem;
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
}

.contact__success-icon {
	width: 48px;
	height: 48px;
	color: #16a34a; /* Green */
	margin-bottom: var(--mb-1);
}

.contact__success-title {
	font-size: var(--h3-font-size);
	margin-bottom: var(--mb-0-5);
}

@media screen and (min-width: 768px) {
	.contact {
		padding: 6rem 0;
	}
}

/* ==================== COOKIE POP-UP ==================== */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	right: 0;
	z-index: var(--z-fixed);
	padding: 1rem;
	display: flex;
	justify-content: center;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
	bottom: 1rem; /* Visible state */
}

.cookie-popup__content {
	max-width: 600px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 1.5rem;
	background-color: var(--text-color);
	color: var(--body-color);
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	text-align: center;
}

@media screen and (min-width: 576px) {
	.cookie-popup__content {
		flex-direction: row;
		text-align: left;
	}
}

.cookie-popup__text {
	font-size: var(--small-font-size);
}

.cookie-popup__text a {
	color: var(--body-color);
	text-decoration: underline;
	font-weight: var(--font-medium);
}

.cookie-popup__button {
	padding: 0.75rem 1.5rem;
	flex-shrink: 0;
}

/* ==================== POLICY & TEXT PAGES ==================== */
.pages {
	padding: 8rem 0;
}

.pages .container {
	max-width: 800px; /* Optimal width for reading text */
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: var(--mb-2);
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 2.5rem;
	margin-bottom: var(--mb-1);
}

.pages p,
.pages li {
	line-height: 1.7;
	color: var(--text-color-light);
	margin-bottom: var(--mb-1);
}

.pages ul {
	list-style: disc;
	padding-left: 2rem;
	margin-bottom: var(--mb-1-5);
}

.pages a {
	color: var(--primary-color);
	text-decoration: underline;
	font-weight: var(--font-medium);
	transition: color 0.3s;
}

.pages a:hover {
	color: var(--primary-color-alt);
}

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

@media screen and (min-width: 768px) {
	.pages {
		padding: 6rem 0;
	}
}
