/* GLOBAL STYLES */
:root {
	--primary-dark: #141d2b;
	--primary-accent: #4a90e2;
	--primary-light: #f5f8fa;
	--secondary-gray: #aab2bd;
	--border-color: #e1e8ed;
	--text-light: #ffffff;
	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Inter', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	background-color: var(--primary-light);
	color: var(--primary-dark);
	line-height: 1.6;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
	color: var(--primary-dark);
}

ul {
	list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	font-weight: 700;
}

/* HEADER */
.header {
	background-color: var(--primary-light);
	padding: 15px 0;
	border-bottom: 1px solid var(--border-color);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 24px;
	color: var(--primary-dark);
}

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

.header__nav {
	display: none;
}

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

.header__nav-link {
	font-size: 16px;
	font-weight: 500;
	color: var(--primary-dark);
	position: relative;
	padding-bottom: 5px;
}

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

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

.header__nav-link--button {
	background-color: var(--primary-accent);
	color: var(--text-light);
	padding: 10px 20px;
	border-radius: 8px;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.header__nav-link--button:hover {
	background-color: #357abd;
	color: var(--text-light);
	transform: translateY(-2px);
}

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

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

/* Mobile Nav Styles */
.header__nav--mobile {
	display: flex;
	position: fixed;
	top: 0;
	right: -100%;
	width: 80%;
	max-width: 300px;
	height: 100vh;
	background-color: var(--primary-dark);
	flex-direction: column;
	padding: 80px 30px 30px;
	box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
	transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
	z-index: 9999;
}

.header__nav--mobile .header__nav-list {
	flex-direction: column;
	align-items: flex-start;
	gap: 25px;
}

.header__nav--mobile .header__nav-link {
	color: var(--text-light);
	font-size: 20px;
}

.header__nav--mobile .header__nav-link--button {
	margin-top: 20px;
}

.header__burger--close {
	position: fixed;
	top: 25px;
	right: 20px;
	z-index: 10000;
	color: var(--text-light);
}

/* Main Content Placeholder */
.main {
	padding-top: 75px; /* Height of the header */
}

/* FOOTER */
.footer {
	background-color: var(--primary-dark);
	color: var(--text-light);
	padding: 60px 0 0;
}

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

.footer__column--about .logo {
	color: var(--text-light);
	margin-bottom: 15px;
}

.footer__description {
	color: var(--secondary-gray);
	font-size: 14px;
	max-width: 300px;
}

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

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

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

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

.footer__list--contacts .footer__list-item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--secondary-gray);
}

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

.footer__bottom {
	border-top: 1px solid #2a3b52;
	padding: 20px 0;
}

.footer__bottom-container {
	text-align: center;
	font-size: 14px;
	color: var(--secondary-gray);
}

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

@media (min-width: 992px) {
	.header__burger {
		display: none;
	}
	.header__nav {
		display: block;
	}
	.footer__container {
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
		gap: 50px;
	}
}

/* BUTTONS */
.button {
	display: inline-block;
	padding: 14px 28px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 16px;
	border-radius: 8px;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease,
		box-shadow 0.3s ease;
	border: none;
}

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

.button--primary:hover {
	background-color: #357abd;
	color: var(--text-light);
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* HERO SECTION */
.hero {
	background-color: var(--primary-light);
	padding: 80px 0;
	overflow: hidden;
}

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

.hero__title {
	font-size: 1.5rem; /* 40px */
	line-height: 1.2;
	margin-bottom: 20px;
}

/* For JS animation */
.hero__title .char {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	display: inline-block;
}

.hero__description {
	font-size: 1.125rem; /* 18px */
	color: var(--secondary-gray);
	margin-bottom: 30px;
	max-width: 550px;
}

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

.hero__image {
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(20, 29, 43, 0.1);
	animation: floatAnimation 4s ease-in-out infinite;
}

@keyframes floatAnimation {
	0% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
	100% {
		transform: translateY(0);
	}
}

/* HERO RESPONSIVE STYLES */
@media (min-width: 768px) {
	.hero {
		padding: 100px 0;
	}
	.hero__title {
		font-size: 2.5rem; /* 48px */
	}
}

@media (min-width: 992px) {
	.hero {
		min-height: 90vh;
		display: flex;
		align-items: center;
	}
	.hero__container {
		grid-template-columns: 1fr 1fr;
		gap: 60px;
	}
	.hero__content {
		order: 1;
	}
	.hero__image-wrapper {
		order: 2;
	}
}

/* SECTION HEADER */
.section-header {
	text-align: center;
	margin-bottom: 60px;
}

.section-header__title {
	font-size: 2.25rem; /* 36px */
	margin-bottom: 15px;
}

.section-header__subtitle {
	font-size: 1.125rem; /* 18px */
	color: var(--secondary-gray);
	max-width: 700px;
	margin: 0 auto;
}

/* ABOUT SECTION */
.about {
	padding: 80px 0;
	background-color: var(--text-light);
}

.about__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

.about__card {
	background-color: var(--primary-light);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 40px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about__card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 30px rgba(20, 29, 43, 0.08);
}

.about__card-icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: #eaf2fc; /* Light blue background for icon */
	color: var(--primary-accent);
	margin-bottom: 25px;
}

.about__card-icon i {
	width: 32px;
	height: 32px;
}

.about__card-title {
	font-size: 1.5rem; /* 24px */
	margin-bottom: 10px;
}

.about__card-text {
	color: var(--secondary-gray);
	line-height: 1.7;
}

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

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

/* SERVICES SECTION */
.services {
	padding: 80px 0;
	background-color: var(--primary-light);
}

.services__tabs-wrapper {
	background: var(--text-light);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(20, 29, 43, 0.05);
	border: 1px solid var(--border-color);
}

.services__tabs-nav {
	display: flex;
	border-bottom: 1px solid var(--border-color);
	padding: 0 20px;
	overflow-x: auto;
	overflow-y: hidden;
}

.services__tabs-nav-item {
	padding: 20px;
	font-family: var(--font-heading);
	font-weight: 600;
	cursor: pointer;
	color: var(--secondary-gray);
	position: relative;
	white-space: nowrap;
	transition: color 0.3s ease;
}

.services__tabs-nav-item:hover {
	color: var(--primary-dark);
}

.services__tabs-nav-item--active {
	color: var(--primary-accent);
}

.services__tabs-nav-item--active::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--primary-accent);
}

.services__tab-pane {
	display: none;
	padding: 40px;
	animation: fadeIn 0.5s ease;
}

.services__tab-pane--active {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	align-items: center;
}

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

.services__tab-pane-title {
	font-size: 1.75rem; /* 28px */
	margin-bottom: 15px;
}

.services__tab-pane-text {
	color: var(--secondary-gray);
	margin-bottom: 25px;
	line-height: 1.7;
}

.services__tab-pane-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.services__tab-pane-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
}

.services__tab-pane-list i {
	color: var(--primary-accent);
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.services__tab-pane-image img {
	border-radius: 8px;
	width: 100%;
}

/* SERVICES RESPONSIVE STYLES */
@media (min-width: 992px) {
	.services__tab-pane--active {
		grid-template-columns: 1fr 1fr;
		gap: 60px;
	}
	.services__tab-pane-image {
		order: 2;
	}
	.services__tab-pane-content {
		order: 1;
	}
}

/* CASES SECTION */
.cases {
	padding: 80px 0;
	background-color: var(--text-light);
}

.cases__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

.cases__card {
	display: flex;
	flex-direction: column;
	background-color: var(--primary-light);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	color: var(--primary-dark);
}

.cases__card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 30px rgba(20, 29, 43, 0.08);
	color: var(--primary-dark);
}

.cases__card-image-wrapper {
	overflow: hidden;
	aspect-ratio: 16 / 10;
}

.cases__card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.cases__card:hover .cases__card-image {
	transform: scale(1.05);
}

.cases__card-content {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.cases__card-category {
	display: inline-block;
	background-color: #eaf2fc;
	color: var(--primary-accent);
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 15px;
	align-self: flex-start;
}

.cases__card-title {
	font-size: 1.375rem; /* 22px */
	margin-bottom: 10px;
}

.cases__card-description {
	color: var(--secondary-gray);
	margin-bottom: 20px;
	flex-grow: 1;
}

.cases__card-link {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--primary-accent);
	transition: color 0.3s ease, gap 0.3s ease;
}

.cases__card:hover .cases__card-link {
	gap: 12px;
}

.cases__card-link i {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.cases__card:hover .cases__card-link i {
	transform: translateX(4px);
}

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

@media (min-width: 992px) {
	.cases__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* BLOG SECTION */
.blog {
	padding: 80px 0;
	background-color: var(--primary-light);
}

.blog__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

.blog__card {
	display: flex;
	flex-direction: column;
	background-color: var(--text-light);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	color: var(--primary-dark);
}

.blog__card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 30px rgba(20, 29, 43, 0.08);
	color: var(--primary-dark);
}

.blog__card-image-wrapper {
	overflow: hidden;
	aspect-ratio: 16 / 10;
}

.blog__card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.blog__card:hover .blog__card-image {
	transform: scale(1.05);
}

.blog__card-content {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.blog__card-meta {
	display: flex;
	gap: 20px;
	font-size: 14px;
	color: var(--secondary-gray);
	margin-bottom: 15px;
}

.blog__card-meta span {
	display: flex;
	align-items: center;
	gap: 8px;
}

.blog__card-meta i {
	width: 16px;
	height: 16px;
}

.blog__card-title {
	font-size: 1.375rem; /* 22px */
	margin-bottom: 15px;
	flex-grow: 1;
}

.blog__card-link {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--primary-accent);
	transition: color 0.3s ease, gap 0.3s ease;
}

.blog__card:hover .blog__card-link {
	gap: 12px;
}

.blog__card-link i {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.blog__card:hover .blog__card-link i {
	transform: translateX(4px);
}

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

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

/* CONTACT SECTION */
.contact {
	padding: 80px 0;
	background-color: var(--text-light);
}

.contact__wrapper {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	background-color: var(--primary-light);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	overflow: hidden;
}

.contact__info {
	padding: 40px;
}

.contact__title {
	font-size: 2.25rem; /* 36px */
	margin-bottom: 20px;
}

.contact__description {
	font-size: 1.125rem; /* 18px */
	color: var(--secondary-gray);
	margin-bottom: 30px;
}

.contact__info-image {
	width: 100%;
	max-width: 400px;
	border-radius: 8px;
	margin-top: auto;
}

.contact__form-wrapper {
	padding: 40px;
	background-color: var(--text-light);
}

.contact__form-group {
	position: relative;
	margin-bottom: 25px;
}

.contact__form-input {
	width: 100%;
	padding: 15px;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 16px;
	font-family: var(--font-body);
	transition: border-color 0.3s ease;
}

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

/* Floating Label */
.contact__form-label {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	background-color: var(--text-light);
	padding: 0 5px;
	color: var(--secondary-gray);
	transition: all 0.2s ease-in-out;
	pointer-events: none;
}

.contact__form-input:focus ~ .contact__form-label,
.contact__form-input:not(:placeholder-shown) ~ .contact__form-label {
	top: 0;
	font-size: 12px;
	color: var(--primary-accent);
}

.contact__form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 30px;
}

.contact__form-checkbox {
	margin-top: 5px;
	flex-shrink: 0;
}

.contact__form-checkbox-label {
	font-size: 14px;
	color: var(--secondary-gray);
}
.contact__form-checkbox-label a {
	text-decoration: underline;
}

.contact__form-button {
	width: 100%;
}

.contact__form-input.error {
	border-color: #e74c3c;
}

.contact__success-message {
	text-align: center;
	border: 1px solid #2ecc71;
	background-color: #f0fff4;
	border-radius: 8px;
	padding: 40px;
}

.contact__success-message-icon {
	color: #2ecc71;
	margin-bottom: 20px;
}

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

.contact__success-message-title {
	font-size: 1.75rem;
	margin-bottom: 10px;
}

/* CONTACT RESPONSIVE STYLES */
@media (min-width: 992px) {
	.contact__wrapper {
		grid-template-columns: 1fr 1fr;
	}
	.contact__info {
		display: flex;
		flex-direction: column;
	}
}

/* COOKIE POP-UP */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--primary-dark);
	color: var(--text-light);
	padding: 20px 0;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
	z-index: 1001;
	transform: translateY(120%);
	transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

.cookie-popup__text {
	text-align: center;
	font-size: 15px;
}

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

.cookie-popup__button {
	padding: 10px 25px;
	flex-shrink: 0;
}

/* COOKIE POP-UP RESPONSIVE STYLES */
@media (min-width: 768px) {
	.cookie-popup__container {
		flex-direction: row;
	}
	.cookie-popup__text {
		text-align: left;
	}
}

/* ========================================= */
/* STYLES FOR POLICY PAGES           */
/* ========================================= */

.pages {
	padding: 120px 0;
	background-color: var(--text-light);
	min-height: 60vh; /* Ensures footer is not too high on short pages */
}

/* Limit the width of the text for better readability */
.pages .container {
	max-width: 800px;
}

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

.pages h2 {
	font-size: 1.75rem; /* 28px */
	margin-top: 40px;
	margin-bottom: 20px;
}

.pages p {
	font-size: 1rem; /* 16px */
	line-height: 1.8;
	color: var(--primary-dark);
	margin-bottom: 20px;
}

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

.pages li {
	margin-bottom: 15px;
	line-height: 1.8;
}

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

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

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

/* Policy Pages Responsive Styles */
@media (max-width: 768px) {
	.pages h1 {
		font-size: 1.5rem; /* 32px */
	}
	.pages h2 {
		font-size: 1.5rem; /* 24px */
	}
}
