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

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

	/* Colors */
	--background-color: #f9f7f3;
	--text-color: #2c3e50;
	--primary-color: #008080;
	--primary-color-hover: #006666;
	--accent-color: #e87a24;
	--footer-bg: #2c3e50;
	--footer-text: #bdc3c7;
	--footer-link-hover: #ffffff;

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

	--font-size-normal: 1rem;
	--font-size-small: 0.9rem;
	--font-size-h1: 2.5rem;
	--font-size-h2: 2rem;
	--font-size-h3: 1.5rem;

	/* Other */
	--border-radius: 8px;
	--transition-duration: 0.3s;
	--container-width: 1200px;
	--container-padding: 1rem;
}

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

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.2;
}

ul {
	list-style: none;
}

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

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

/* REUSABLE CLASSES */
.container {
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

/* LOGO */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--text-color);
}

.logo__icon {
	color: var(--primary-color);
	width: 24px;
	height: 24px;
}

/* HEADER */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: rgba(249, 247, 243, 0.8);
	backdrop-filter: blur(10px);
	z-index: 100;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.header__burger {
	display: none; /* Hidden on desktop */
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-color);
}

/* NAVIGATION */
.nav__list {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.nav__link {
	position: relative;
	color: var(--text-color);
	font-weight: 500;
	transition: color var(--transition-duration);
}

.nav__link::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-color);
	transition: width var(--transition-duration);
}

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

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

.nav__link--button {
	background-color: var(--primary-color);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: var(--border-radius);
	transition: background-color var(--transition-duration);
}

.nav__link--button:hover {
	background-color: var(--primary-color-hover);
	color: white;
}
.nav__link--button:hover::after {
	width: 0;
}

/* MOBILE MENU STYLES */
@media (max-width: 768px) {
	.header__burger {
		display: block;
		z-index: 101;
	}

	.header__nav {
		position: fixed;
		top: 0;
		right: -100%; /* Initially hidden */
		width: 70%;
		height: 100vh;
		background-color: var(--background-color);
		box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
		padding-top: calc(var(--header-height) + 2rem);
		transition: right var(--transition-duration) ease-in-out;
	}

	.header__nav.is-active {
		right: 0;
	}

	.nav__list {
		flex-direction: column;
		align-items: center;
		gap: 2rem;
	}

	.nav__link {
		font-size: 1.2rem;
	}
}

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

.footer__container {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 2.5rem;
	margin-bottom: 3rem;
}

.footer__column--about .footer__logo {
	color: white;
	margin-bottom: 1rem;
}

.footer__description {
	font-size: var(--font-size-small);
	max-width: 300px;
}

.footer__title {
	font-family: var(--font-heading);
	color: white;
	font-size: 1.2rem;
	margin-bottom: 1rem;
}

.footer__list li:not(:last-child) {
	margin-bottom: 0.5rem;
}

.footer__link {
	transition: color var(--transition-duration);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.footer__link:hover {
	color: var(--footer-link-hover);
}

.footer__icon {
	width: 18px;
	height: 18px;
}

.footer__address {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.footer__bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: var(--font-size-small);
}

/* FOOTER & HEADER RESPONSIVE LAYOUT */
@media (min-width: 576px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.footer__container {
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
		gap: 2rem;
	}
}

/* REUSABLE CLASSES (add button style) */
.button {
	display: inline-block;
	background-color: var(--primary-color);
	color: white;
	padding: 0.8rem 1.8rem;
	border-radius: var(--border-radius);
	font-weight: 500;
	transition: background-color var(--transition-duration),
		transform var(--transition-duration);
	border: none;
	cursor: pointer;
}

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

/* HERO SECTION */
.hero {
	padding-top: calc(var(--header-height) + 2rem);
	padding-bottom: 4rem;
	min-height: 90vh;
	display: flex;
	align-items: center;
}

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

.hero__content {
	text-align: center;
	animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero__title {
	font-size: var(--font-size-h1);
	margin-bottom: 1.5rem;
	height: 192px;
}

.hero__title--highlight {
	color: var(--primary-color);
	position: relative;
	display: inline;
}

/* Typing cursor effect */
.hero__title--highlight::after {
	content: '|';
	position: absolute;
	right: -10px;
	animation: blink 0.7s infinite;
	color: var(--accent-color);
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

.hero__description {
	font-size: 1.1rem;
	max-width: 600px;
	margin: 0 auto 2.5rem;
	color: #555;
}

.hero__image-wrapper {
	display: flex;
	justify-content: center;
	animation: fadeIn 1s 0.5s ease-out forwards;
	opacity: 0; /* Start hidden for animation */
}

.hero__image {
	max-width: 450px;
	width: 100%;
	border-radius: var(--border-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* HERO RESPONSIVE LAYOUT */
@media (min-width: 768px) {
	.hero {
		min-height: 100vh;
	}

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

	.hero__content {
		text-align: left;
	}

	.hero__description {
		margin-left: 0;
		margin-right: 0;
	}
}
@media (min-width: 992px) {
	.hero__title {
		font-size: 3.2rem;
		height: 185px;
	}
}

/* TRACKS SECTION */
.tracks {
	padding: 4rem 0;
	background-color: #fff; /* A slightly different background to separate from hero */
}

.tracks__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 3rem;
}

.tracks__title {
	font-size: var(--font-size-h2);
	margin-bottom: 1rem;
}

.tracks__subtitle {
	font-size: 1.1rem;
	color: #555;
	line-height: 1.7;
}

.tracks__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.track-card {
	background-color: var(--background-color);
	border: 1px solid #e0e0e0;
	border-radius: var(--border-radius);
	padding: 2rem;
	text-align: center;
	transition: transform var(--transition-duration) ease,
		box-shadow var(--transition-duration) ease;
}

.track-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 24px rgba(44, 62, 80, 0.1);
}

.track-card__icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: rgba(0, 128, 128, 0.1);
	color: var(--primary-color);
	margin-bottom: 1.5rem;
}

.track-card__icon i svg {
	width: 32px;
	height: 32px;
}

.track-card__title {
	font-size: 1.3rem;
	margin-bottom: 0.75rem;
}

.track-card__description {
	font-size: var(--font-size-normal);
	color: #555;
	line-height: 1.6;
}

/* TRACKS RESPONSIVE LAYOUT */
@media (min-width: 576px) {
	.tracks__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.tracks {
		padding: 6rem 0;
	}
	.tracks__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

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

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

.tools__image {
	width: 100%;
	border-radius: var(--border-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tools__header {
	margin-bottom: 2rem;
}

.tools__title {
	font-size: var(--font-size-h2);
	margin-bottom: 1rem;
}

.tools__subtitle {
	font-size: 1.1rem;
	color: #555;
	line-height: 1.7;
}

/* ACCORDION STYLES */
.accordion__item {
	border-bottom: 1px solid #e0e0e0;
}
.accordion__item:first-child {
	border-top: 1px solid #e0e0e0;
}

.accordion__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 1.5rem 0.5rem;
	background: none;
	border: none;
	cursor: pointer;
	font-family: var(--font-heading);
	font-size: 1.1rem;
	font-weight: 600;
	text-align: left;
}

.accordion__icon {
	transition: transform var(--transition-duration) ease;
	color: var(--primary-color);
}

.accordion__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height var(--transition-duration) ease-out,
		padding var(--transition-duration) ease-out;
}

.accordion__content p {
	padding: 0 0.5rem 1.5rem;
	color: #555;
}

/* Accordion Active State */
.accordion__item.is-active .accordion__icon {
	transform: rotate(180deg);
}

.accordion__item.is-active .accordion__content {
	max-height: 200px; /* Adjust if content is taller */
}

/* TOOLS RESPONSIVE LAYOUT */
@media (min-width: 992px) {
	.tools {
		padding: 6rem 0;
	}
	.tools__container {
		grid-template-columns: 1fr 1.2fr;
		gap: 5rem;
	}
}

/* CASES SECTION */
.cases {
	padding: 4rem 0;
	background-color: #fff;
}

.cases__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 4rem;
}

.cases__title {
	font-size: var(--font-size-h2);
	margin-bottom: 1rem;
}

.cases__subtitle {
	font-size: 1.1rem;
	color: #555;
	line-height: 1.7;
}

.case-study {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	background-color: var(--background-color);
	padding: 2rem;
	border-radius: var(--border-radius);
	box-shadow: 0 8px 25px rgba(44, 62, 80, 0.08);
	margin-bottom: 3rem;
	align-items: center;
}

.case-study__image-wrapper {
	max-width: 300px;
	margin: 0 auto;
}

.case-study__image {
	width: 100%;
	border-radius: var(--border-radius);
}

.case-study__client {
	font-size: 1.4rem;
	margin-bottom: 2rem;
	font-weight: 700;
}

.case-study__block {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
}

.case-study__block::before {
	content: '';
	position: absolute;
	left: 0;
	top: 5px;
	width: 4px;
	height: 80%;
	background-color: var(--accent-color);
	border-radius: 2px;
}

.case-study__block-title {
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--accent-color);
	margin-bottom: 0.5rem;
}

.case-study__block-title--result {
	color: var(--primary-color);
}
.case-study__block--result::before {
	background-color: var(--primary-color);
}

/* CASES RESPONSIVE LAYOUT */
@media (min-width: 768px) {
	.case-study {
		grid-template-columns: 1fr 2fr;
		gap: 3rem;
		padding: 2.5rem;
	}

	.case-study--reversed {
		grid-template-columns: 2fr 1fr;
	}

	.case-study--reversed .case-study__image-wrapper {
		order: 2;
	}
}

@media (min-width: 992px) {
	.cases {
		padding: 6rem 0;
	}
}

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

.blog__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 3rem;
}

.blog__title {
	font-size: var(--font-size-h2);
	margin-bottom: 1rem;
}

.blog__subtitle {
	font-size: 1.1rem;
	color: #555;
	line-height: 1.7;
}

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

.article-card {
	background-color: #fff;
	border-radius: var(--border-radius);
	box-shadow: 0 5px 15px rgba(44, 62, 80, 0.05);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform var(--transition-duration) ease,
		box-shadow var(--transition-duration) ease;
}

.article-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(44, 62, 80, 0.1);
}

.article-card__image-link {
	display: block;
	overflow: hidden;
}

.article-card__image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform var(--transition-duration) ease;
}

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

.article-card__content {
	padding: 1.5rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.article-card__category {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--accent-color);
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}

.article-card__title {
	font-size: 1.2rem;
	margin-bottom: 1rem;
	flex-grow: 1;
}

.article-card__title a {
	color: var(--text-color);
	transition: color var(--transition-duration) ease;
}

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

.article-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--primary-color);
	font-weight: 600;
	transition: gap var(--transition-duration) ease;
}

.article-card__link:hover {
	gap: 0.75rem;
}

.article-card__icon {
	width: 18px;
	height: 18px;
}

/* BLOG RESPONSIVE LAYOUT */
@media (min-width: 576px) {
	.blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.blog {
		padding: 6rem 0;
	}
	.blog__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* CONTACT SECTION */
.contact {
	padding: 4rem 0;
	background-color: #fff;
}

.contact__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

.contact__title {
	font-size: var(--font-size-h2);
	margin-bottom: 1rem;
}

.contact__description {
	font-size: 1.1rem;
	color: #555;
	line-height: 1.7;
	margin-bottom: 2rem;
}

.contact__list li:not(:last-child) {
	margin-bottom: 1rem;
}

.contact__link {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--text-color);
	transition: color var(--transition-duration);
}

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

.contact__icon {
	color: var(--primary-color);
}

/* FORM STYLES */
.contact__form-wrapper {
	background-color: var(--background-color);
	padding: 2rem;
	border-radius: var(--border-radius);
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.form-input {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid #ddd;
	border-radius: var(--border-radius);
	font-size: 1rem;
	font-family: var(--font-body);
	transition: border-color var(--transition-duration),
		box-shadow var(--transition-duration);
}

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

.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: var(--font-size-small);
}

.form-group--checkbox input[type='checkbox'] {
	margin-top: 4px;
}

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

.contact__button {
	width: 100%;
	padding: 1rem;
	font-size: 1.1rem;
}

.form-success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 2rem;
}
.form-success-message__icon {
	width: 60px;
	height: 60px;
	color: var(--primary-color);
	margin-bottom: 1rem;
}
.form-success-message__title {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

/* CONTACT RESPONSIVE LAYOUT */
@media (min-width: 992px) {
	.contact {
		padding: 6rem 0;
	}
	.contact__container {
		grid-template-columns: 1fr 1fr;
		gap: 5rem;
		align-items: center;
	}
	.contact__form-wrapper {
		padding: 3rem;
	}
}

/* COOKIE POP-UP */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--footer-bg);
	color: var(--footer-text);
	padding: 1rem 0;
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
	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;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

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

.cookie-popup__text a {
	color: #fff;
	text-decoration: underline;
}

.cookie-popup__button {
	background-color: var(--primary-color);
	color: #fff;
	border: none;
	padding: 0.6rem 1.5rem;
	border-radius: var(--border-radius);
	cursor: pointer;
	white-space: nowrap;
	transition: background-color var(--transition-duration);
}

.cookie-popup__button:hover {
	background-color: var(--primary-color-hover);
}

@media (min-width: 768px) {
	.cookie-popup__container {
		flex-direction: row;
	}
	.cookie-popup__text {
		text-align: left;
	}
}

/* GENERIC PAGES STYLES (privacy.html, terms.html, etc.) */
.pages {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 4rem;
}

.pages h1,
.pages h2,
.pages h3,
.pages p,
.pages ul,
.pages ol {
	max-width: 800px; /* Optimal width for reading text */
	margin-left: auto;
	margin-right: auto;
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 3rem;
	margin-bottom: 1.5rem;
}

.pages p {
	margin-bottom: 1.5rem;
	line-height: 1.8;
	font-size: 1.1rem;
}

.pages ul,
.pages ol {
	padding-left: 2rem;
	margin-bottom: 1.5rem;
}

.pages li {
	margin-bottom: 1rem;
	line-height: 1.8;
	font-size: 1.1rem;
}

.pages a {
	color: var(--primary-color);
	text-decoration: none;
	border-bottom: 2px solid rgba(0, 128, 128, 0.2);
	transition: border-bottom-color var(--transition-duration);
}

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

.pages strong {
	font-weight: 600;
}
