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

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

	/* Colors */
	--bg-color: #f8f9fa;
	--text-color: #0d1b2a;
	--accent-color: #ff8c42;
	--secondary-color: #415a77;
	--footer-bg-color: #1b263b;
	--card-bg-color: #ffffff;

	/* Typography */
	--font-body: 'Inter', sans-serif;
	--font-heading: 'Syne', sans-serif;

	--h1-font-size: 2.75rem;
	--h2-font-size: 1.75rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* Z-index */
	--z-fixed: 100;
	--z-modal: 200;
}

@media screen and (min-width: 992px) {
	:root {
		--h1-font-size: 3.5rem;
		--h2-font-size: 2.25rem;
		--h3-font-size: 1.5rem;
		--normal-font-size: 1.125rem;
	}
}

/* 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(--normal-font-size);
	background-color: var(--bg-color);
	color: var(--text-color);
	line-height: 1.6;
}

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

ul {
	list-style: none;
}

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

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

/* REUSABLE CLASSES */
.container {
	max-width: 1140px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

@media screen and (min-width: 1170px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
}

/* HEADER & NAV */
.header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(248, 249, 250, 0.8);
	backdrop-filter: blur(10px);
	z-index: var(--z-fixed);
	border-bottom: 1px solid 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(--font-heading);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--text-color);
}

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

/* Navigation base styles */
.nav__list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.nav__link {
	font-weight: 500;
	transition: color 0.3s;
}

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

/* Burger button */
.header__burger {
	position: relative;
	z-index: 999;
	display: inline-flex;
	font-size: 1.5rem;
	cursor: pointer;
	background: none;
	border: none;
	color: var(--accent-color);
}

/* Mobile styles */
@media screen and (max-width: 768px) {
	.nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		height: 100vh;
		background-color: var(--footer-bg-color);
		color: var(--bg-color);
		padding: 4rem 2rem 2rem;
		transition: right 0.4s ease-in-out;
		z-index: var(--z-fixed);
	}

	/* Show menu */
	.nav.show-menu {
		right: 0;
	}
}

/* Desktop styles */
@media screen and (min-width: 769px) {
	.header__burger {
		display: none;
	}

	.nav__list {
		flex-direction: row;
		gap: 2.5rem;
	}
}

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

.footer__container {
	display: grid;
	gap: 2.5rem;
}

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

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

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

.footer__description {
	margin-top: 1rem;
	font-size: var(--small-font-size);
	max-width: 300px;
	color: #b0b8c4;
}

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

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

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

.footer__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 2px;
}

.footer__link {
	color: #b0b8c4;
	transition: color 0.3s, padding-left 0.3s;
	font-size: var(--small-font-size);
	position: relative;
}

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

.footer__bottom {
	margin-top: 4rem;
	padding: 1.5rem 0;
	border-top: 1px solid var(--secondary-color);
	text-align: center;
	font-size: var(--small-font-size);
	color: #b0b8c4;
}

/* ==================== BUTTON ==================== */
.button {
	display: inline-block;
	background-color: var(--accent-color);
	color: #fff;
	padding: 1rem 2rem;
	border-radius: 8px;
	font-weight: 500;
	font-family: var(--font-heading);
	transition: transform 0.3s, box-shadow 0.3s;
}

.button:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(255, 140, 66, 0.3);
}

/* ==================== HERO ==================== */
.hero {
	padding-top: calc(var(--header-height) + 1rem);
	min-height: 100vh;
	display: flex;
	align-items: center;
}

.hero__container {
	display: grid;
	gap: 3rem;
	align-items: center;
}

@media screen and (min-width: 768px) {
	.hero__container {
		grid-template-columns: 1.1fr 0.9fr;
	}
}

.hero__title {
	font-size: 2rem;
	margin-bottom: 1.5rem;
	line-height: 1.2;
	min-height: 154px;
}

@media screen and (min-width: 992px) {
	.hero__title {
		min-height: 77px;
	}
}

/* Typing animation cursor */
.hero__title::after {
	content: '|';
	animation: blink 1s infinite;
	font-weight: 400;
	color: var(--accent-color);
}

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

.hero__description {
	font-size: var(--normal-font-size);
	margin-bottom: 2.5rem;
	max-width: 500px;
	color: var(--secondary-color);
}

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

.hero__image {
	border-radius: 16px;
	filter: saturate(0);
	opacity: 0.8;
	transition: filter 0.4s, opacity 0.4s;
}

.hero__image-wrapper:hover .hero__image {
	filter: saturate(1);
	opacity: 1;
}

/* ==================== REUSABLE SECTION STYLES ==================== */
.section {
	padding: 5rem 0;
}

.section__title,
.section__subtitle {
	text-align: center;
}

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

.section__subtitle {
	font-size: var(--normal-font-size);
	color: var(--secondary-color);
	max-width: 600px;
	margin: 0 auto 3.5rem;
}

/* ==================== PROCESS SECTION ==================== */
.process__container {
	display: grid;
	gap: 2rem;
}

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

.process__card {
	background-color: var(--card-bg-color);
	padding: 2.5rem 2rem;
	border-radius: 16px;
	text-align: center;
	border: 1px solid #e9ecef;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s, box-shadow 0.3s;
}

.process__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.process__icon-wrapper {
	width: 64px;
	height: 64px;
	margin: 0 auto 1.5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #ff8c4220; /* semi-transparent accent color */
	border-radius: 50%;
	color: var(--accent-color);
}

.process__icon-wrapper i {
	width: 32px;
	height: 32px;
}

.process__card-title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.75rem;
}

.process__card-description {
	font-size: var(--small-font-size);
	line-height: 1.7;
	color: var(--secondary-color);
}

/* ==================== DIRECTIONS SECTION ==================== */
.directions__container {
	display: grid;
	gap: 3rem;
}

@media screen and (min-width: 992px) {
	.directions__container {
		grid-template-columns: 0.7fr 1.3fr;
		gap: 4rem;
		align-items: flex-start;
	}
}

.directions__tabs {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.directions__tab {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 1rem 1.25rem;
	border-radius: 8px;
	border: 1px solid transparent;
	background-color: transparent;
	font-family: var(--font-heading);
	font-size: var(--normal-font-size);
	font-weight: 600;
	cursor: pointer;
	text-align: left;
	color: var(--secondary-color);
	transition: background-color 0.3s, color 0.3s;
}

.directions__tab:hover {
	background-color: #e9ecef;
}

.directions__tab-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.directions__tab--active {
	background-color: var(--accent-color);
	color: #fff;
}
.directions__tab--active:hover {
	background-color: var(--accent-color);
}

.directions__content {
	background-color: var(--card-bg-color);
	border-radius: 16px;
	padding: 2rem;
	border: 1px solid #e9ecef;
	min-height: 250px;
}

.directions__pane {
	display: none; /* Hidden by default */
	animation: fadeIn 0.5s;
}

.directions__pane--active {
	display: grid; /* Shown when active */
	gap: 1.5rem;
	align-items: center;
}

@media screen and (min-width: 576px) {
	.directions__pane--active {
		grid-template-columns: 1fr 1fr;
	}
}

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

.directions__pane-title {
	font-size: var(--h3-font-size);
	margin-bottom: 1rem;
}

.directions__pane-description {
	font-size: var(--small-font-size);
	color: var(--secondary-color);
	line-height: 1.7;
}

.directions__pane-image {
	border-radius: 8px;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-height: 200px;
}

/* ==================== FORMATS SECTION ==================== */
.formats {
	background-color: #e9ecef; /* A slightly different background for visual separation */
}

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

.formats__card {
	background-color: var(--card-bg-color);
	padding: 2.5rem 2rem;
	border-radius: 16px;
	border: 1px solid transparent;
	text-align: left;
	transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.formats__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
	border-color: var(--accent-color);
}

.formats__icon-wrapper {
	width: 56px;
	height: 56px;
	margin-bottom: 1.5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: var(--bg-color);
	border-radius: 12px;
	color: var(--accent-color);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.formats__icon-wrapper i {
	width: 28px;
	height: 28px;
}

.formats__card-title {
	font-size: 1.35rem; /* Slightly larger than h3 */
	margin-bottom: 0.75rem;
}

.formats__card-description {
	font-size: var(--small-font-size);
	line-height: 1.7;
	color: var(--secondary-color);
}

/* ==================== CASES SECTION (SWIPER) ==================== */
.cases__container {
	padding: 1rem 0 3rem; /* Add padding for navigation elements */
}

.cases__card {
	background-color: var(--card-bg-color);
	border-radius: 16px;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	text-align: center;
	border: 1px solid #e9ecef;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media screen and (min-width: 576px) {
	.cases__card {
		flex-direction: row;
		text-align: left;
		gap: 2rem;
	}
}

.cases__card-img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto;
	flex-shrink: 0;
}

@media screen and (min-width: 576px) {
	.cases__card-img {
		margin: 0;
	}
}

.cases__card-quote {
	font-style: italic;
	color: var(--text-color);
	margin-bottom: 1.5rem;
	position: relative;
	padding-left: 20px;
}

.cases__card-quote::before {
	content: '“';
	font-size: 3rem;
	color: var(--accent-color);
	position: absolute;
	left: -10px;
	top: -10px;
	font-style: normal;
	font-family: serif;
}

.cases__card-author {
	font-family: var(--font-heading);
	font-size: 1.2rem;
	margin-bottom: 0.25rem;
}

.cases__card-role {
	font-size: var(--small-font-size);
	color: var(--secondary-color);
}

/* Swiper Customization */
.swiper-pagination-bullet {
	background-color: var(--secondary-color);
}

.swiper-pagination-bullet-active {
	background-color: var(--accent-color);
}

.swiper-button-next,
.swiper-button-prev {
	color: var(--accent-color);
	width: 50px !important;
	height: 50px !important;
	background-color: #fff;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
	font-size: 1.5rem !important;
	font-weight: bold;
}

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

/* ==================== CONTACT SECTION ==================== */
.contact {
	background-color: #e9ecef;
}

.contact__container {
	display: grid;
	gap: 3rem;
}

@media screen and (min-width: 992px) {
	.contact__container {
		grid-template-columns: 0.8fr 1.2fr;
		gap: 5rem;
	}
}

.section__title--left {
	text-align: left;
}

.contact__description {
	margin-top: 1.5rem;
	color: var(--secondary-color);
}

.contact__form-container {
	background-color: var(--card-bg-color);
	padding: 2.5rem;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact__form-group {
	position: relative;
	margin-bottom: 2rem;
}

.contact__form-input {
	width: 100%;
	padding: 1rem;
	border: 1px solid #ced4da;
	border-radius: 8px;
	outline: none;
	font-size: var(--normal-font-size);
	font-family: var(--font-body);
	background: none;
	z-index: 1;
}

.contact__form-label {
	position: absolute;
	top: 1rem;
	left: 1rem;
	color: var(--secondary-color);
	background-color: var(--card-bg-color);
	padding: 0 0.25rem;
	transition: all 0.3s;
	pointer-events: none;
}

.contact__form-input:focus {
	border-color: var(--accent-color);
}

.contact__form-input:focus + .contact__form-label,
.contact__form-input:not(:placeholder-shown) + .contact__form-label {
	top: -0.75rem;
	left: 0.75rem;
	font-size: var(--small-font-size);
	color: var(--accent-color);
	z-index: 10;
}

/* Custom Checkbox */
.contact__form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 2.5rem;
}

.contact__form-checkbox {
	appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #ced4da;
	border-radius: 4px;
	margin-top: 2px;
	cursor: pointer;
	flex-shrink: 0;
	position: relative;
	transition: background-color 0.3s, border-color 0.3s;
}

.contact__form-checkbox:checked {
	background-color: var(--accent-color);
	border-color: var(--accent-color);
}

.contact__form-checkbox:checked::before {
	content: '✓';
	font-size: 14px;
	color: #fff;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.contact__form-checkbox-label {
	font-size: var(--small-font-size);
	color: var(--secondary-color);
	line-height: 1.5;
}

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

.contact__form-submit {
	width: 100%;
	padding: 1.125rem;
	border: none;
}

/* Success Message */
.contact__success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 2rem;
	animation: fadeIn 0.5s;
}

.contact__success-icon {
	color: var(--accent-color);
	margin-bottom: 1rem;
}

.contact__success-icon i {
	width: 64px;
	height: 64px;
}

.contact__success-title {
	font-size: var(--h2-font-size);
	margin-bottom: 0.5rem;
}

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

/* ==================== MAIN CONTENT PADDING ==================== */
.main {
	/* Ensures content on all pages starts below the fixed header */
	padding-top: var(--header-height);
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--footer-bg-color);
	color: var(--bg-color);
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
	z-index: var(--z-modal);
	transition: bottom 0.5s ease-in-out;
}

/* Modifier to show the popup */
.cookie-popup.show {
	bottom: 0;
}

.cookie-popup .container {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	text-align: center;
}

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

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

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

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

/* ==================== POLICY PAGES STYLES ==================== */
.pages {
	background-color: var(--card-bg-color);
	padding: 6rem 0;
}

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

.pages h1,
.pages h2,
.pages p,
.pages ul {
	margin-bottom: 1.5rem;
}

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

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

.pages p {
	line-height: 1.8;
	color: var(--secondary-color);
}

.pages ul {
	list-style: disc;
	padding-left: 25px;
	line-height: 1.8;
	color: var(--secondary-color);
}

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

.pages a {
	color: var(--accent-color);
	text-decoration: underline;
	font-weight: 500;
}

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