/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Poppins:wght@400;500;600;700&display=swap');

/* CSS VARIABLES */
:root {
	--primary-color: #4a90e2; /* Calm Blue */
	--secondary-color: #f5a623; /* Energetic Orange */
	--dark-color: #1a1a1a;
	--light-color: #ffffff;
	--gray-color: #f8f9fa;
	--text-color: #333333;

	--font-family-headings: 'Poppins', sans-serif;
	--font-family-body: 'Lora', serif;

	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--text-color);
	background-color: var(--light-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-family-headings);
	color: var(--dark-color);
	line-height: 1.3;
}

ul {
	list-style: none;
}

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

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

.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

/* HEADER & NAVIGATION */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background-color: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	z-index: 100;
	border-bottom: 1px solid #e9ecef;
}

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

.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-family-headings);
	font-weight: 600;
	font-size: 1.5rem;
	color: var(--dark-color);
}

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

.nav__list {
	display: flex;
	gap: 2rem;
}

.nav__link {
	font-family: var(--font-family-headings);
	font-size: 1rem;
	font-weight: 500;
	color: var(--text-color);
	position: relative;
	transition: color 0.3s ease;
}

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

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

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

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

/* FOOTER */
.footer {
	background-color: var(--gray-color);
	padding: 4rem 0 2rem;
	border-top: 1px solid #e9ecef;
}

.footer__container {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer__column--brand .logo {
	margin-bottom: 1rem;
}

.footer__tagline {
	font-size: 0.9rem;
	color: #6c757d;
}

.footer__title {
	font-size: 1.1rem;
	margin-bottom: 1rem;
}

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

.footer__list--contacts .footer__item {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.footer__icon {
	width: 18px;
	height: 18px;
	margin-top: 4px;
	color: var(--primary-color);
}

.footer__link {
	font-size: 0.95rem;
	transition: color 0.3s ease;
}

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

.footer__bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid #dee2e6;
	font-size: 0.9rem;
	color: #6c757d;
}

/* PAGES (for privacy.html, etc.) */
.pages {
	padding: calc(var(--header-height) + 4rem) 0 4rem;
}

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

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

.pages p,
.pages ul {
	margin-bottom: 1rem;
	max-width: 800px;
}

.pages ul {
	list-style: disc;
	padding-left: 20px;
}

.pages li {
	margin-bottom: 0.5rem;
}

.pages a {
	color: var(--primary-color);
	text-decoration: underline;
}

.pages a:hover {
	text-decoration: none;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.nav {
		position: fixed;
		top: var(--header-height);
		left: -100%;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--light-color);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transition: left 0.3s ease-in-out;
	}

	.nav--open {
		left: 0;
	}

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

	.nav__link {
		font-size: 1.5rem;
	}

	.burger {
		display: block;
	}

	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__list--contacts .footer__item {
		justify-content: center;
	}
}

/* REUSABLE COMPONENTS: BUTTONS */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8rem 1.8rem;
	font-family: var(--font-family-headings);
	font-weight: 500;
	font-size: 1rem;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
}

.button--primary {
	background-color: var(--primary-color);
	color: var(--light-color);
}

.button--primary:hover {
	background-color: #3a7bc8;
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

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

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

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

.hero__content {
	text-align: center;
}

.hero__title {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	line-height: 1.2;
}

.hero__subtitle {
	font-size: 1.5rem;
	color: var(--text-color);
	margin-bottom: 1.5rem;
	min-height: 2.4rem; /* To prevent layout shift */
}

.hero__animated-text {
	color: var(--primary-color);
	font-weight: bold;
	font-family: var(--font-family-headings);
}

.hero__cursor {
	display: inline-block;
	background-color: var(--primary-color);
	width: 3px;
	animation: blink 1s infinite;
	font-size: 1.5rem; /* Match subtitle font-size */
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

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

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

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

/* RESPONSIVE HERO SECTION */
@media (min-width: 768px) {
	.hero {
		min-height: 100vh;
	}
	.hero__container {
		grid-template-columns: 1.2fr 1fr;
		gap: 3rem;
	}
	.hero__content {
		text-align: left;
	}
	.hero__description {
		margin-left: 0;
		margin-right: 0;
	}
	.hero__title {
		font-size: 2rem;
	}
}


/* REUSABLE COMPONENTS: SECTION HEADER */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header__title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-header__subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

/* BLOG SECTION */
.blog {
    background-color: var(--light-color);
}

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

.blog-card {
    background-color: var(--light-color);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.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;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Makes footer stick to bottom */
}

.blog-card__category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--secondary-color);
    color: var(--light-color);
    font-family: var(--font-family-headings);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 50px;
    margin-bottom: 1rem;
    align-self: flex-start; /* Align to the start of the flex container */
}

.blog-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.blog-card__title a {
    transition: color 0.3s ease;
}

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

.blog-card__excerpt {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-family-headings);
    font-weight: 500;
    color: var(--primary-color);
    transition: gap 0.3s ease;
}

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

.blog-card__link i {
    width: 18px;
    height: 18px;
}

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

@media (min-width: 992px) {
    .blog__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .section-header__title {
        font-size: 2.5rem;
    }
}

/* TRACKS SECTION */
.tracks {
    background-color: var(--gray-color);
}

.tracks__tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #dee2e6;
    flex-wrap: wrap;
}

.tracks__tab-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 3px solid transparent;
    background-color: transparent;
    cursor: pointer;
    font-family: var(--font-family-headings);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}

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

.tracks__tab-button--active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tracks__tab-icon {
    width: 20px;
    height: 20px;
}

.tracks__content-panel {
    display: none; /* Hidden by default */
    animation: fadeIn 0.5s ease-in-out;
}

.tracks__content-panel--active {
    display: block; /* Shown when active */
}

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

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

.tracks__panel-image-wrapper {
    text-align: center;
}

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

.tracks__panel-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.tracks__panel-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.tracks__panel-list {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tracks__panel-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.tracks__list-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--primary-color);
    margin-top: 2px;
}


/* RESPONSIVE TRACKS SECTION */
@media (min-width: 992px) {
    .tracks__panel-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 4rem;
    }

    /* Reverse image order for the second tab for visual variety */
    [data-panel="2"] .tracks__panel-grid {
        grid-template-columns: 1.2fr 1fr;
    }
    [data-panel="2"] .tracks__panel-image-wrapper {
        order: 2;
    }
}

/* TOOLS SECTION & ACCORDION */
.tools {
    background-color: var(--light-color);
}

.tools__accordion {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #dee2e6;
}

.accordion__item {
    border-bottom: 1px solid #dee2e6;
}

.accordion__header {
    margin: 0;
}

.accordion__button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem 1rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-family-headings);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: background-color 0.3s ease;
}

.accordion__button:hover {
    background-color: var(--gray-color);
}

.accordion__icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: transform 0.4s ease-in-out;
    flex-shrink: 0; /* Prevents icon from shrinking */
}

.accordion__item--active .accordion__icon {
    transform: rotate(180deg);
}

.accordion__collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.accordion__content {
    padding: 0 1rem 1.5rem 1rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #6c757d;
}

/* CASES SECTION & SWIPER */
.cases {
    background-color: var(--gray-color);
}

.cases__slider {
    padding: 1rem 0 4rem; /* Add padding for pagination and navigation */
}

.case-card {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-card__quote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-color);
    margin: 0 0 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.case-card__quote::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: var(--primary-color);
    font-family: var(--font-family-body);
    opacity: 0.5;
}

.case-card__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.case-card__photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.case-card__name {
    font-size: 1.1rem;
    margin: 0;
}

.case-card__track {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* SWIPER STYLES OVERRIDE */
.cases .swiper-pagination-bullet {
    background-color: var(--primary-color);
    opacity: 0.5;
}

.cases .swiper-pagination-bullet-active {
    opacity: 1;
}

.cases .swiper-button-next,
.cases .swiper-button-prev {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.cases .swiper-button-next:hover,
.cases .swiper-button-prev:hover {
    transform: scale(1.1);
}

/* Hide navigation on smaller screens */
@media (max-width: 768px) {
    .cases .swiper-button-next,
    .cases .swiper-button-prev {
        display: none !important;
    }
}

/* CONTACT SECTION */
.contact {
    background-color: var(--light-color);
}

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

.contact__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact__description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.contact__perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__perks li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact__perk-icon {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
}

.contact__form-wrapper {
    background-color: var(--light-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.contact__form-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-family: var(--font-family-headings);
}

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

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

.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.form-group--checkbox input {
    margin-top: 5px;
}
.form-group--checkbox label {
    font-size: 0.9rem;
    color: #6c757d;
}
.form-group--checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact__submit-btn {
    width: 100%;
    padding: 1rem;
}

.success-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 2rem;
    border: 2px dashed var(--primary-color);
    border-radius: 15px;
}

.success-message__icon {
    width: 60px;
    height: 60px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.success-message__title {
    font-size: 2rem;
}
.success-message__text {
    font-size: 1.1rem;
    color: #6c757d;
}

@media (min-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* COOKIE POP-UP */
.cookie-popup {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 500px;
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 200;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.cookie-popup--hidden {
    transform: translateY(calc(100% + 1.5rem));
    opacity: 0;
    pointer-events: none;
}

.cookie-popup__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-popup__text {
    margin: 0;
    line-height: 1.6;
}

.cookie-popup__link {
    text-decoration: underline;
    color: var(--light-color);
}

.cookie-popup__button {
    width: 100%;
    padding: 0.6rem 1.5rem;
    background-color: var(--primary-color);
}

@media (min-width: 576px) {
    .cookie-popup {
        max-width: none;
        left: 50%;
        transform: translateX(-50%);
    }
    .cookie-popup--hidden {
        transform: translate(-50%, calc(100% + 1.5rem));
    }
    .cookie-popup__content {
        flex-direction: row;
        align-items: center;
    }
    .cookie-popup__button {
        width: auto;
        flex-shrink: 0;
    }
}