/* Goggle Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700&family=Playfair+Display:wght@700&display=swap');

/* CSS Variables */
:root {
	--primary-color: #1a2a4c;
	--secondary-color: #ffffff;
	--accent-color: #d4af37;
	--bg-color: #f8f9fa;
	--text-color: #333333;
	--footer-bg-color: #1a2a4c;
	--footer-text-color: #e0e0e0;
	--font-primary: 'Manrope', sans-serif;
	--font-secondary: 'Playfair Display', serif;
}

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

html {
	scroll-behavior: smooth;
}

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

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

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

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

ul {
	list-style: none;
}

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

button {
	cursor: pointer;
	border: none;
	background: none;
	font-family: inherit;
}

/* Header */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background-color: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	padding: 15px 0;
}

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

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

.logo__svg path:first-child {
	stroke: var(--primary-color);
}

.nav__list {
	display: flex;
	gap: 30px;
}

.nav__link {
	font-weight: 500;
	position: relative;
	padding: 5px 0;
}

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

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

.burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	width: 30px;
	height: 22px;
}

.burger__line {
	width: 100%;
	height: 2px;
	background-color: var(--primary-color);
	transition: all 0.3s ease;
}

/* Footer */
.footer {
	background-color: var(--footer-bg-color);
	color: var(--footer-text-color);
	padding-top: 60px;
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer__logo .logo__text {
	color: var(--secondary-color);
}

.footer__title {
	font-size: 20px;
	color: var(--secondary-color);
	margin-bottom: 20px;
}

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

.footer__link:hover {
	color: var(--accent-color);
	text-decoration: underline;
}

.footer__list--contacts {
	gap: 15px;
}

.footer__list--contacts .footer__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.footer__icon {
	flex-shrink: 0;
	margin-top: 3px;
	color: var(--accent-color);
	width: 18px;
	height: 18px;
}

.footer__address {
	font-style: normal;
}

.footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 20px 0;
	text-align: center;
}

.footer__copyright {
	font-size: 14px;
	color: #a0a0a0;
}

/* Mobile Styles */
@media (max-width: 768px) {
	.nav {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background-color: var(--secondary-color);
		box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
		padding: 20px;
		transform: translateY(-120%);
		transition: transform 0.4s ease-in-out;
		opacity: 0;
		visibility: hidden;
	}

	.nav--active {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
	}

	.nav__list {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	.burger {
		display: flex;
		z-index: 10;
	}

	.burger--active .burger__line:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	.burger--active .burger__line:nth-child(2) {
		opacity: 0;
	}
	.burger--active .burger__line:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.main {
	padding-top: 72px; /* Header height */
}

.hero {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 72px);
	padding: 60px 0;
	text-align: center;
	background-color: var(--secondary-color);
}

.hero__content {
	max-width: 1100px;
	margin: 0 auto;
}

.hero__title {
	font-size: clamp(2.5rem, 6vw, 4.5rem); /* Responsive font size */
	line-height: 1.2;
	margin-bottom: 20px;
}

.hero__title-line {
	display: block;
	overflow: hidden; /* Hide the letters before animation */
}

/* This will be the animated part */
.hero__title-line span {
	display: inline-block;
	transform: translateY(110%);
	opacity: 0;
	transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.8s;
}

.hero__subtitle {
	font-size: 1.1rem;
	max-width: 650px;
	margin: 0 auto 30px;
	color: var(--text-color);
	line-height: 1.8;
}

.btn {
	display: inline-block;
	padding: 15px 35px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--primary-color);
	background-color: var(--accent-color);
	border-radius: 50px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
	.hero {
		text-align: left;
	}
	.hero__content {
		max-width: 100%;
	}
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about {
	padding: 80px 0;
	background-color: var(--bg-color);
}

.about__container {
	display: grid;
	grid-template-columns: 1fr 1.1fr; /* Image column is slightly smaller */
	align-items: center;
	gap: 60px;
}

.about__image-wrapper {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Decorative element for image */
.about__image-wrapper::before {
	content: '';
	position: absolute;
	top: -20px;
	left: -20px;
	width: 80%;
	height: 80%;
	border: 10px solid var(--accent-color);
	border-radius: 10px;
	z-index: 1;
	opacity: 0.5;
}

.about__image {
	position: relative;
	z-index: 2;
	width: 100%;
	border-radius: 10px;
}

.about__title {
	font-size: clamp(2rem, 5vw, 2.8rem);
	line-height: 1.3;
	margin-bottom: 20px;
}

.about__text {
	margin-bottom: 20px;
	font-size: 1.05rem;
}

.about__text:last-of-type {
	margin-bottom: 30px;
}

.about__btn {
	background-color: var(--primary-color);
	color: var(--secondary-color);
}

.about__btn:hover {
	box-shadow: 0 10px 20px rgba(26, 42, 76, 0.3);
}

/* Responsive adjustments for about section */
@media (max-width: 992px) {
	.about__container {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.about__image-wrapper {
		max-width: 500px;
		margin: 0 auto;
	}

	.about__content {
		text-align: center;
	}
}

@media (max-width: 768px) {
	.about {
		padding: 60px 0;
	}
	.about__content {
		text-align: left;
	}
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services {
	padding: 80px 0;
	background-color: var(--secondary-color);
}

.services__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 50px;
}

.services__title {
	font-size: clamp(2rem, 5vw, 2.8rem);
	margin-bottom: 15px;
}

.services__subtitle {
	font-size: 1.1rem;
	color: #6c757d;
}

.services__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.service-card {
	border: 1px solid #e9ecef;
	border-radius: 10px;
	padding: 40px 30px;
	text-align: center;
	background-color: var(--secondary-color);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card__icon-wrapper {
	margin: 0 auto 20px;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background-color: var(--bg-color);
	display: flex;
	align-items: center;
	justify-content: center;
}

.service-card__icon {
	width: 32px;
	height: 32px;
	color: var(--accent-color);
}

.service-card__title {
	font-size: 1.5rem;
	font-family: var(
		--font-primary
	); /* Using Manrope for card titles for consistency */
	font-weight: 700;
	margin-bottom: 15px;
}

.service-card__text {
	line-height: 1.7;
	color: #6c757d;
}

/* Responsive adjustments for services section */
@media (max-width: 768px) {
	.services {
		padding: 60px 0;
	}

	.services__header {
		text-align: left;
	}

	.service-card {
		text-align: left;
	}

	.service-card__icon-wrapper {
		margin: 0 0 20px;
	}
}

/*--------------------------------------------------------------
# Cases Section
--------------------------------------------------------------*/
.cases {
	padding: 80px 0;
	background-color: var(--bg-color);
}

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

.cases__title {
	font-size: clamp(2rem, 5vw, 2.8rem);
	margin-bottom: 15px;
}

.cases__subtitle {
	font-size: 1.1rem;
	color: #6c757d;
}

.cases__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 30px;
}

.case-card {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	min-height: 400px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: var(--secondary-color);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.case-card:hover {
	transform: translateY(-8px);
}

.case-card__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
	transition: transform 0.4s ease;
}

.case-card:hover .case-card__bg {
	transform: scale(1.05);
}

.case-card__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to top,
		rgba(12, 22, 44, 0.85) 20%,
		rgba(26, 42, 76, 0.1) 100%
	);
	z-index: 2;
}

.case-card__content {
	position: relative;
	z-index: 3;
	padding: 30px;
}

.case-card__tag {
	display: inline-block;
	padding: 5px 15px;
	border-radius: 50px;
	background-color: var(--accent-color);
	color: var(--primary-color);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 15px;
}

.case-card__title {
	font-family: var(--font-secondary);
	font-size: 1.7rem;
	color: var(--secondary-color);
	margin-bottom: 10px;
	line-height: 1.3;
}

.case-card__description {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 20px;
}

.case-card__link {
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--secondary-color);
}

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

.case-card__icon {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.case-card__link:hover .case-card__icon {
	transform: translateX(5px);
}

/* Responsive adjustments for cases section */
@media (max-width: 768px) {
	.cases {
		padding: 60px 0;
	}

	.cases__header {
		text-align: left;
	}
}

/*--------------------------------------------------------------
# Blog Section
--------------------------------------------------------------*/
.blog {
	padding: 80px 0;
	background-color: var(--secondary-color);
}

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

.blog__title {
	font-size: clamp(2rem, 5vw, 2.8rem);
	margin-bottom: 15px;
}

.blog__subtitle {
	font-size: 1.1rem;
	color: #6c757d;
}

.blog__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 30px;
}

.blog-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e9ecef;
	border-radius: 10px;
	overflow: hidden;
	background-color: var(--secondary-color);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card__image-link {
	display: block;
}

.blog-card__image {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.blog-card__content {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.blog-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.85rem;
	color: #6c757d;
	margin-bottom: 15px;
}

.blog-card__category {
	font-weight: 700;
	color: var(--accent-color);
}

.blog-card__title {
	font-family: var(--font-secondary);
	font-size: 1.4rem;
	line-height: 1.4;
	margin-bottom: 10px;
}

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

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

.blog-card__excerpt {
	font-size: 0.95rem;
	line-height: 1.7;
	color: #6c757d;
	flex-grow: 1;
}

/* Responsive adjustments for blog section */
@media (max-width: 768px) {
	.blog {
		padding: 60px 0;
	}

	.blog__header {
		text-align: left;
	}
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
	padding: 80px 0;
	background-color: var(--bg-color);
}

.contact__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 50px;
}

.contact__title {
	font-size: clamp(2rem, 5vw, 2.8rem);
	margin-bottom: 15px;
}

.contact__subtitle {
	font-size: 1.1rem;
	color: #6c757d;
}

.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: flex-start;
}

.contact__info-title {
	font-size: 1.8rem;
	margin-bottom: 15px;
}

.contact__info-text {
	margin-bottom: 30px;
	line-height: 1.8;
}

.contact__info-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact__info-item {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	font-size: 1.05rem;
}

.contact__info-icon {
	flex-shrink: 0;
	margin-top: 4px;
	color: var(--accent-color);
	width: 20px;
	height: 20px;
}

.contact__info-item a:hover {
	color: var(--accent-color);
}

.contact__info-item address {
	font-style: normal;
}

/* Form Styles */
.contact-form {
	background: var(--secondary-color);
	padding: 40px;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

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

.form-group__input {
	width: 100%;
	padding: 15px;
	border: 1px solid #ced4da;
	border-radius: 5px;
	font-size: 1rem;
	transition: border-color 0.3s ease;
}

.form-group__input:focus {
	outline: none;
	border-color: var(--accent-color);
}

.form-group__label {
	position: absolute;
	top: 15px;
	left: 15px;
	color: #6c757d;
	pointer-events: none;
	transition: all 0.2s ease;
	background-color: var(--secondary-color);
	padding: 0 5px;
}

.form-group__input:focus + .form-group__label,
.form-group__input:not(:placeholder-shown) + .form-group__label {
	top: -10px;
	left: 10px;
	font-size: 0.85rem;
	color: var(--accent-color);
}

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

.form-group--checkbox input[type='checkbox'] {
	margin-top: 5px;
	width: 16px;
	height: 16px;
}

.form-group--checkbox label {
	font-size: 0.9rem;
	color: #6c757d;
}

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

.form-group--checkbox a:hover {
	color: var(--accent-color);
}

.contact-form__btn {
	width: 100%;
	background-color: var(--primary-color);
	color: var(--secondary-color);
}

.contact-form__btn:hover {
	box-shadow: 0 10px 20px rgba(26, 42, 76, 0.3);
}

/* Success Message */
.form-success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 30px;
	border: 2px solid #28a745;
	background-color: #e9f7ec;
	border-radius: 10px;
	margin-top: 20px;
}

.form-success-message--visible {
	display: block; /* Shown via JS */
}

.form-success-message__icon {
	width: 40px;
	height: 40px;
	color: #28a745;
	margin-bottom: 15px;
}

/* Responsive adjustments for contact section */
@media (max-width: 992px) {
	.contact__grid {
		grid-template-columns: 1fr;
		gap: 50px;
	}
}
@media (max-width: 768px) {
	.contact {
		padding: 60px 0;
	}
	.contact__header,
	.contact__info {
		text-align: left;
	}
}

/*--------------------------------------------------------------
# Cookie Pop-up
--------------------------------------------------------------*/
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--primary-color);
	color: var(--secondary-color);
	padding: 20px;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
	z-index: 2000;
	transform: translateY(120%);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.5s ease-in-out, opacity 0.5s, visibility 0.5s;
}

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

.cookie-popup__content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.cookie-popup__text {
	font-size: 0.95rem;
}

.cookie-popup__text a {
	text-decoration: underline;
	font-weight: 700;
}

.cookie-popup__text a:hover {
	color: var(--accent-color);
}

.cookie-popup__btn {
	flex-shrink: 0;
	padding: 10px 30px;
}

@media (max-width: 768px) {
	.cookie-popup__content {
		flex-direction: column;
		text-align: center;
	}
}

/*--------------------------------------------------------------
# Policy Pages (privacy.html, terms.html, etc.)
--------------------------------------------------------------*/
.pages {
	padding: 100px 0;
}

.pages .container {
	max-width: 800px; /* Limit line length for readability */
}

.pages h1,
.pages h2 {
	font-family: var(--font-secondary);
	color: var(--primary-color);
	margin-bottom: 20px;
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 30px;
	border-bottom: 2px solid var(--accent-color);
	padding-bottom: 15px;
}

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

.pages p {
	font-size: 1.1rem;
	line-height: 1.8;
	margin-bottom: 20px;
	color: var(--text-color);
}

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

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

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

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

.pages strong {
	color: var(--primary-color);
}
