/* 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: 5rem;

	/* Colors */
	--primary-color: #1d3557;
	--secondary-color: #457b9d;
	--background-light: #f1faee;
	--background-white: #ffffff;
	--accent-color: #e63946;
	--text-color: #1d3557;
	--text-color-light: #f1faee;

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

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

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

html {
	scroll-behavior: smooth;
}

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

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

ul {
	list-style: none;
}

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

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

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

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

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

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

.logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--title-font);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--primary-color);
}

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

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

.nav {
	display: none; /* Hidden on mobile */
}

/* Mobile menu (overlay) */
.nav--open {
	display: block;
	position: fixed;
	top: var(--header-height);
	left: 0;
	right: 0;
	height: calc(100dvh - var(--header-height));
	background-color: var(--background-white);
	padding: 1.5rem 1rem 2rem;
	overflow-y: auto;
	animation: fadeIn 0.2s ease-out;
}

.nav--open .nav__list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
}

/* Prevent body scroll when mobile menu is open */
body.no-scroll {
	overflow: hidden;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

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

.nav__link {
	font-weight: 500;
	font-size: var(--normal-font-size);
}

.nav__link--button {
	background-color: var(--accent-color);
	color: var(--background-white);
	padding: 0.5rem 1.5rem;
	border-radius: 50px;
	transition: background-color 0.3s, transform 0.2s;
}

.nav__link--button:hover {
	background-color: #d62828;
	color: var(--background-white);
	transform: translateY(-2px);
}

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

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

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

.footer__column--brand .logo {
	color: var(--text-color-light);
}

.footer__tagline {
	margin-top: 1rem;
	color: var(--secondary-color);
	max-width: 250px;
}

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

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

.footer__link {
	color: var(--secondary-color);
	font-size: var(--normal-font-size);
}

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

.footer__list--contact li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.footer__list--contact .lucide {
	flex-shrink: 0;
}

.footer__bottom {
	padding: 1.5rem 0;
	border-top: 1px solid var(--secondary-color);
	text-align: center;
}

.footer__bottom p {
	font-size: var(--small-font-size);
	color: var(--secondary-color);
}

/* RESPONSIVE DESIGN */
@media (min-width: 768px) {
	.burger {
		display: none;
	}

	.nav {
		display: block;
		position: static;
	}
	.nav--open {
		display: block; /* no overlay behavior on desktop */
		position: static;
		background: transparent;
		padding: 0;
		overflow: visible;
		animation: none;
		height: auto;
	}

	.footer__container {
		grid-template-columns: 2fr repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	:root {
		--h1-font-size: 3.5rem;
		--h2-font-size: 2rem;
	}
}


/* BUTTONS */
.button {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-family: var(--title-font);
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
}

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

.button--primary:hover {
    background-color: #d62828;
    color: var(--background-white);
    transform: translateY(-3px);
}

/* HERO SECTION */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    background-color: var(--background-white);
    overflow: hidden; /* To prevent horizontal scroll on small devices */
}

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

.hero__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

/* For animation */
.hero__title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

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

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

.hero__image {
    width: 100%;
    border-radius: 20px;
    animation: float-animation 4s ease-in-out infinite;
}

/* Float animation for the image */
@keyframes float-animation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}


/* RESPONSIVE DESIGN for Hero */
@media (min-width: 768px) {
    .hero__container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 5rem);
        padding-bottom: 5rem;
    }
}

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

.section-header__title {
    font-size: var(--h2-font-size);
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

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

/* SERVICES SECTION */
.services {
    padding: 5rem 0;
    background-color: var(--background-light);
}

.services__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; /* Mobile first */
}

.service-card {
    background-color: var(--background-white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-card__icon {
    margin-bottom: 1.5rem;
}

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

.service-card__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.service-card__description {
    color: var(--secondary-color);
    line-height: 1.7;
}

/* RESPONSIVE DESIGN for Services */
@media (min-width: 576px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Center the last card if there are 4 */
    .service-card:nth-child(4) {
        grid-column: 2 / 3;
    }
}

@media (min-width: 1200px) {
     .services__grid {
        grid-template-columns: repeat(4, 1fr);
    }
     /* Reset column span for 4 cards */
    .service-card:nth-child(4) {
        grid-column: auto;
    }
}

/* PROCESS SECTION */
.process {
    padding: 5rem 0;
    background-color: var(--background-white);
}

.process__timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* The vertical line */
.process__timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--background-light);
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline__item {
    padding-left: 50px;
    position: relative;
    margin-bottom: 3rem;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

/* The circle on the timeline */
.timeline__item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--background-white);
    border: 3px solid var(--accent-color);
    z-index: 1;
}

.timeline__content {
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 8px;
    position: relative;
}

.timeline__step {
    font-family: var(--title-font);
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.timeline__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.timeline__description {
    color: var(--secondary-color);
}

/* RESPONSIVE DESIGN for Process */
@media (min-width: 768px) {
    .process__timeline::after {
        left: 50%;
        margin-left: -1.5px;
    }

    .timeline__item {
        padding-left: 0;
        width: 50%;
    }

    /* Push the item to the right */
    .timeline__item:nth-child(even) {
        left: 50%;
        padding-left: 30px;
    }

    /* Push the item to the left */
    .timeline__item:nth-child(odd) {
        padding-right: 30px;
        text-align: right;
    }

    .timeline__item::before {
        left: 50%;
        margin-left: -14px;
    }

    /* Arrow pointers */
    .timeline__content::before {
        content: '';
        position: absolute;
        top: 15px;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 10px;
    }
    
    .timeline__item:nth-child(even) .timeline__content::before {
        right: 100%;
        border-color: transparent var(--background-light) transparent transparent;
    }
    
    .timeline__item:nth-child(odd) .timeline__content::before {
        left: 100%;
        border-color: transparent transparent transparent var(--background-light);
    }
}

/* CASES (TESTIMONIALS) SECTION */
.cases {
    padding: 5rem 0;
    background-color: var(--background-light);
}

.cases-slider {
    padding-bottom: 3rem; /* Space for pagination */
}

.testimonial-card {
    background-color: var(--background-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%; /* Ensure all cards have same height */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card__img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--background-light);
}

.testimonial-card__rating {
    display: flex;
    gap: 0.25rem;
    color: #FFC700;
    margin-bottom: 1rem;
}

.testimonial-card__rating .lucide-star {
    fill: #FFC700;
}

.testimonial-card__quote {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Makes quote take available space */
}

.testimonial-card__name {
    font-size: 1.125rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.testimonial-card__role {
    font-size: var(--small-font-size);
    color: var(--secondary-color);
}

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

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

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

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

.blog-card {
    background-color: var(--background-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    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 10px 25px rgba(0,0,0,0.1);
}

.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;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__category {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: var(--small-font-size);
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
}
.blog-card__category:hover {
    text-decoration: underline;
}

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

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

.blog-card__excerpt {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card__meta {
    font-size: var(--small-font-size);
    color: var(--secondary-color);
    border-top: 1px solid var(--background-light);
    padding-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

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

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

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

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

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

.contact__description {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.contact__note {
    font-size: var(--small-font-size);
    color: var(--secondary-color);
    padding: 1rem;
    background-color: #2a4a75;
    border-radius: 8px;
    display: inline-block;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    background-color: #2a4a75;
    color: var(--text-color-light);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input::placeholder {
    color: #a9b9d0;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.3);
}

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

.form-group--checkbox input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

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

.button--full {
    width: 100%;
}

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

.success-message .lucide {
    width: 48px;
    height: 48px;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* RESPONSIVE DESIGN for Contact */
@media (min-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* BUTTON--SMALL MODIFIER */
.button--small {
    padding: 0.5rem 1.2rem;
    font-size: var(--small-font-size);
}

/* COOKIE POP-UP */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: rgba(29, 53, 87, 0.95);
    color: var(--text-color-light);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    padding: 1rem;
    z-index: 200;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-popup__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

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

@media (min-width: 768px) {
    .cookie-popup__content {
        flex-direction: row;
        justify-content: space-between;
    }
}


/* STYLES FOR STATIC PAGES (PRIVACY, TERMS, etc.) */
.pages {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
}

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

.pages h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.pages h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

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

.pages li {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

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

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