/* ======== STAGE 0: GLOBAL STYLES ======== */

/* 1. Google Fonts Import (Done in HTML) */

/* 2. CSS Variables (Color Palette & Fonts) */
:root {
	--color-bg: #f8f9fa;
	--color-text: #1a1d2c;
	--color-primary: #4a69ff;
	--color-primary-dark: #364fcc;
	--color-border: #e0e0e0;
	--color-white: #ffffff;
	--color-footer-bg: #1a1d2c;
	--color-footer-text: #ced4da;

	--font-body: 'Inter', sans-serif;
	--font-heading: 'Rubik', sans-serif;

	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: var(--font-body);
	background-color: var(--color-bg);
	color: var(--color-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

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

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

ul {
	list-style: none;
}

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

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

/* 4. Utility Classes */
.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

/* ======== STAGE 1: HEADER ======== */
.header {
	background-color: var(--color-white);
	height: var(--header-height);
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--color-text);
}
.logo:hover {
	color: var(--color-text); /* Logo text doesn't change color on hover */
}

.logo__svg {
	color: var(--color-primary);
	transition: transform 0.3s ease;
}
.logo:hover .logo__svg {
	transform: rotate(-15deg);
}

.nav {
	/* Mobile-first: Nav is hidden by default */
	position: fixed;
	top: var(--header-height);
	left: 0;
	width: 100%;
	height: calc(100vh - var(--header-height));
	background-color: var(--color-white);
	transform: translateX(-100%);
	transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
	overflow-y: auto;
}

.nav--open {
	transform: translateX(0);
}

.nav__list {
	display: flex;
	flex-direction: column;
	padding: 2rem;
	gap: 1.5rem;
}

.nav__link {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--color-text);
	padding: 0.5rem;
	display: block;
	position: relative;
}

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

.nav__link:hover::after {
	width: calc(100% - 1rem);
}

.nav__link--cta {
	background-color: var(--color-primary);
	color: var(--color-white);
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	text-align: center;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.nav__link--cta:hover {
	background-color: var(--color-primary-dark);
	color: var(--color-white);
}
.nav__link--cta::after {
	display: none; /* No underline for CTA button */
}

.header__burger {
	display: block; /* Visible on mobile */
	color: var(--color-text);
	padding: 0.5rem;
}

/* Tablet and Desktop styles */
@media (min-width: 992px) {
	.nav {
		position: static;
		transform: none;
		width: auto;
		height: auto;
		background-color: transparent;
	}

	.nav__list {
		flex-direction: row;
		padding: 0;
		gap: 2rem;
		align-items: center;
	}

	.nav__link {
		font-size: 1rem;
		padding: 0.25rem 0;
		display: inline-block;
	}

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

	.nav__link--cta {
		padding: 0.5rem 1.25rem;
	}

	.header__burger {
		display: none; /* Hide burger on desktop */
	}
}

/* ======== STAGE 2: FOOTER ======== */
.footer {
	background-color: var(--color-footer-bg);
	color: var(--color-footer-text);
	padding: 4rem 0 2rem 0;
	margin-top: 5rem; /* Placeholder margin for content */
}

.footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	margin-bottom: 3rem;
}

.footer__column--logo .logo {
	color: var(--color-white);
}
.footer__column--logo .logo__svg {
	color: var(--color-primary);
}
.footer__description {
	margin-top: 1rem;
	font-size: 0.9rem;
	max-width: 300px;
}

.footer__title {
	font-family: var(--font-heading);
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--color-white);
	margin-bottom: 1.25rem;
}

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

.footer__link {
	color: var(--color-footer-text);
	font-size: 0.9rem;
	transition: color 0.3s ease, padding-left 0.3s ease;
}

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

.footer__list--contact {
	gap: 1rem;
}

.footer__list--contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.9rem;
	line-height: 1.5;
}

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

.footer__copyright {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.85rem;
	color: var(--color-footer-text);
}

/* Footer layout for tablets */
@media (min-width: 576px) {
	.footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Footer layout for desktops */
@media (min-width: 992px) {
	.footer__grid {
		/* 2fr 1fr 1.5fr 1.5fr */
		grid-template-columns: 2.5fr 1fr 1.5fr 2fr;
		gap: 3rem;
	}
}

/* ======== STAGE 3: HERO SECTION ======== */

/* Utility: Button Styles (we'll use them site-wide) */
.btn {
	display: inline-block;
	padding: 0.85rem 2rem;
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 1rem;
	border-radius: 8px;
	cursor: pointer;
	text-align: center;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.btn--primary {
	background-color: var(--color-primary);
	color: var(--color-white);
}
.btn--primary:hover {
	background-color: var(--color-primary-dark);
	color: var(--color-white);
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(74, 105, 255, 0.3);
}

.btn--outline {
	background-color: transparent;
	color: var(--color-primary);
	border-color: var(--color-primary);
}
.btn--outline:hover {
	background-color: var(--color-primary);
	color: var(--color-white);
	transform: translateY(-3px);
}

/* Hero Section Styles */
.hero {
	padding: 4rem 0;
	overflow: hidden; /* For decorative elements */
}

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

.hero__title {
	font-size: 1.5rem; /* 40px */
	font-weight: 700;
	margin-bottom: 1.5rem;
}

/* Typing animation cursor */
.hero__title--animated {
	color: var(--color-primary);
	border-right: 3px solid var(--color-primary);
	animation: blink 0.7s infinite;
	min-height: 28px; /* Avoid layout shift */
	display: inline-block;
}

@keyframes blink {
	0%,
	100% {
		border-color: transparent;
	}
	50% {
		border-color: var(--color-primary);
	}
}

.hero__description {
	font-size: 1.125rem; /* 18px */
	line-height: 1.7;
	margin-bottom: 2.5rem;
	max-width: 550px;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.hero__visual {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero__image-wrapper {
	position: relative;
	padding: 1rem;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--color-white), var(--color-bg));
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
	z-index: 1;
}

.hero__image {
	width: 100%;
	max-width: 500px;
	border-radius: 12px;
}

/* Decorative shapes */
.hero__deco {
	position: absolute;
	border-radius: 50%;
	z-index: 0;
}
.hero__deco--1 {
	width: 150px;
	height: 150px;
	background: rgba(74, 105, 255, 0.1); /* Light blue */
	top: -30px;
	left: -50px;
	filter: blur(20px);
}
.hero__deco--2 {
	width: 200px;
	height: 200px;
	background: rgba(74, 105, 255, 0.15); /* Light blue */
	bottom: -50px;
	right: -70px;
	filter: blur(30px);
}

/* Desktop layout */
@media (min-width: 992px) {
	.hero {
		padding: 6rem 0;
		min-height: calc(100vh - var(--header-height));
		display: flex;
		align-items: center;
	}

	.hero__container {
		grid-template-columns: 1fr 1fr;
	}

	.hero__content {
		order: 1; /* Text first */
	}

	.hero__visual {
		order: 2; /* Visual second */
	}

	.hero__title {
		font-size: 2.5rem; /* 56px */
	}

	.hero__title--animated {
		min-height: 48px;
	}
}

/* ======== STAGE 3.2: SERVICES SECTION ======== */

/* Utility: Section Header (we'll reuse this) */
.services__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 3.5rem auto;
}

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

.services__subtitle {
	font-size: 1.125rem; /* 18px */
	color: var(--color-text);
	opacity: 0.8;
	line-height: 1.7;
}

/* Services Section Styles */
.services {
	padding: 4rem 0;
	background-color: var(--color-white); /* Slightly different from main BG */
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
}

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

/* Service Card */
.service-card {
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 2.5rem 2rem;
	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.07);
}

.service-card__icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: rgba(74, 105, 255, 0.1); /* Light blue bg */
	color: var(--color-primary);
	margin-bottom: 1.5rem;
}

.service-card__icon i {
	width: 30px;
	height: 30px;
}

.service-card__title {
	font-size: 1.5rem; /* 24px */
	margin-bottom: 0.75rem;
}

.service-card__description {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--color-text);
	opacity: 0.9;
}

/* Desktop layout */
@media (min-width: 768px) {
	.services {
		padding: 6rem 0;
	}

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

	.service-card {
		text-align: left; /* Align left on desktop */
	}

	.service-card__icon {
		margin-left: 0; /* Align left */
	}

	.services__title {
		font-size: 2.75rem; /* 44px */
	}
}

/* ======== STAGE 3.3: TECHNOLOGIES SECTION ======== */
.tech {
	padding: 4rem 0;
}

.tech__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 3.5rem auto;
}

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

.tech__subtitle {
	font-size: 1.125rem; /* 18px */
	color: var(--color-text);
	opacity: 0.8;
	line-height: 1.7;
}

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

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

.tech__nav-btn {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1.25rem 1.5rem;
	border-radius: 10px;
	border: 1px solid var(--color-border);
	background-color: var(--color-white);
	font-family: var(--font-heading);
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--color-text);
	text-align: left;
	width: 100%;
	transition: all 0.3s ease;
}

.tech__nav-btn i {
	width: 22px;
	height: 22px;
	color: var(--color-primary);
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.tech__nav-btn:hover {
	border-color: var(--color-primary);
}

.tech__nav-btn--active {
	background-color: var(--color-primary);
	color: var(--color-white);
	border-color: var(--color-primary);
	box-shadow: 0 4px 15px rgba(74, 105, 255, 0.2);
}

.tech__nav-btn--active i {
	color: var(--color-white);
}

.tech__content {
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 2.5rem;
	min-height: 300px; /* To avoid layout jump */
}

.tech__pane {
	display: none; /* Hide all panes by default */
	animation: fadeIn 0.5s ease-in-out;
}

.tech__pane--active {
	display: block; /* Show only active pane */
}

.tech__pane-title {
	font-size: 1.75rem; /* 28px */
	margin-bottom: 1.25rem;
	color: var(--color-primary);
}

.tech__pane-description {
	font-size: 1rem;
	line-height: 1.7;
	margin-bottom: 2rem;
}

.tech__pane-list {
	display: grid;
	grid-template-columns: 1fr; /* 1 column on mobile */
	gap: 1rem;
}

.tech__pane-list li {
	position: relative;
	padding-left: 2.25rem; /* More space for icon */
	font-weight: 500;
	font-size: 0.95rem;
}

.tech__pane-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 2px;
	width: 20px;
	height: 20px;
	/* Embedded SVG checkmark icon */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234A69FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-check-circle-2'%3E%3Cpath d='M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

/* Fade-in animation for panes */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Tablet layout for list */
@media (min-width: 576px) {
	.tech__pane-list {
		grid-template-columns: 1fr 1fr; /* 2 columns on tablet+ */
	}
}

/* Desktop layout for section */
@media (min-width: 992px) {
	.tech {
		padding: 6rem 0;
	}

	.tech__title {
		font-size: 2.75rem; /* 44px */
	}

	.tech__content-wrapper {
		grid-template-columns: 1fr 2fr; /* 1/3 for nav, 2/3 for content */
		gap: 2.5rem;
		align-items: flex-start;
	}

	.tech__nav {
		flex-direction: column;
	}
}

/* ======== STAGE 3.4: CASES SECTION ======== */
.cases {
	padding: 4rem 0;
	background-color: var(--color-white);
	border-top: 1px solid var(--color-border);
}

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

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

.cases__subtitle {
	font-size: 1.125rem; /* 18px */
	color: var(--color-text);
	opacity: 0.8;
	line-height: 1.7;
}

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

.case-card {
	display: block;
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: var(--color-text);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.case-card__image-wrapper {
	overflow: hidden;
	height: 250px;
}

.case-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover; /* Ensures image covers the area */
	transition: transform 0.4s ease;
}

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

.case-card__content {
	padding: 1.5rem 1.75rem 2rem 1.75rem;
}

.case-card__tag {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	background-color: rgba(74, 105, 255, 0.1);
	color: var(--color-primary);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.case-card__title {
	font-size: 1.5rem; /* 24px */
	margin-bottom: 0.75rem;
	line-height: 1.4;
	color: var(--color-text); /* Ensure title color */
}

.case-card__description {
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
	opacity: 0.9;
}

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

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

.case-card:hover .case-card__link {
	gap: 0.75rem;
}

.case-card:hover .case-card__link i {
	transform: translateX(4px);
}

/* Desktop layout */
@media (min-width: 768px) {
	.cases {
		padding: 6rem 0;
	}

	.cases__grid {
		/* Flexible grid, auto-fit cards */
		grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
		gap: 2.5rem;
	}

	.cases__title {
		font-size: 2.75rem; /* 44px */
	}
}

/* ======== STAGE 3.5: BLOG SECTION ======== */
.blog {
	padding: 4rem 0;
}

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

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

.blog__subtitle {
	font-size: 1.125rem; /* 18px */
	color: var(--color-text);
	opacity: 0.8;
	line-height: 1.7;
}

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

.blog-card {
	display: block;
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card__link-wrapper {
	display: block;
	text-decoration: none;
	color: var(--color-text);
}

.blog-card__image-wrapper {
	overflow: hidden;
	height: 220px;
}

.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: 1.5rem 1.75rem 2rem 1.75rem;
}

.blog-card__date {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--color-primary);
	letter-spacing: 0.5px;
	margin-bottom: 0.75rem;
}

.blog-card__title {
	font-size: 1.3rem; /* 21px */
	margin-bottom: 0.75rem;
	line-height: 1.4;
	color: var(--color-text);
}

.blog-card__excerpt {
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
	opacity: 0.9;
	/* Limit text to 3 lines */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

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

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

.blog-card:hover .blog-card__readmore {
	gap: 0.75rem;
}

.blog-card:hover .blog-card__readmore i {
	transform: translateX(4px);
}

/* Desktop layout */
@media (min-width: 768px) {
	.blog {
		padding: 6rem 0;
	}

	.blog__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2.5rem;
	}

	.blog__title {
		font-size: 2.75rem; /* 44px */
	}
}

@media (max-width: 991px) and (min-width: 576px) {
	.blog__grid {
		/* On tablets, show 2 columns */
		grid-template-columns: 1fr 1fr;
	}
}

.contact {
	padding: 4rem 0;
	background: linear-gradient(
		180deg,
		var(--color-bg) 0%,
		var(--color-white) 100%
	);
}

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

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

.contact__description {
	font-size: 1.125rem; /* 18px */
	line-height: 1.7;
	margin-bottom: 2rem;
	opacity: 0.9;
}

.contact__features {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 2rem;
}

.contact__features li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1rem;
	font-weight: 500;
}

.contact__features i {
	width: 22px;
	height: 22px;
	color: var(--color-primary);
}

.contact__note {
	font-size: 0.85rem;
	opacity: 0.7;
	font-style: italic;
}

.contact__form-wrapper {
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 2.5rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
	position: relative;
	overflow: hidden;
}

.contact__form-title {
	font-size: 1.75rem; /* 28px */
	text-align: center;
	margin-bottom: 2rem;
}

.contact__form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

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

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

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

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

/* Checkbox styles */
.form-checkbox-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0.5rem 0;
}

.form-checkbox {
	width: 1.15em;
	height: 1.15em;
	margin-top: 0.25em;
	flex-shrink: 0;
	cursor: pointer;
	accent-color: var(--color-primary); /* Modern way to style checkboxes */
}

.form-checkbox-label {
	font-size: 0.85rem;
	line-height: 1.5;
	opacity: 0.8;
}
.form-checkbox-label a {
	text-decoration: underline;
}

.btn--full {
	width: 100%;
	font-size: 1.1rem;
	padding: 1rem;
	margin-top: 0.5rem;
}

/* Success Message (Hidden by default) */
.contact__success-message {
	display: none;
	text-align: center;
	padding: 3rem 1rem;
	animation: fadeIn 0.5s ease;
	/* This will be shown by JS */
}

.contact__success-message i {
	width: 60px;
	height: 60px;
	color: var(--color-primary);
	margin-bottom: 1.5rem;
}

.contact__success-title {
	font-size: 1.75rem;
	margin-bottom: 0.5rem;
}

/* Desktop layout */
@media (min-width: 992px) {
	.contact {
		padding: 6rem 0;
	}
	.contact__grid {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
		align-items: center;
	}

	.contact__title {
		font-size: 2.75rem; /* 44px */
	}
}


/* ======== STAGE 5.1: COOKIE POPUP ======== */

/* Utility class for small button (reusable) */
.btn--sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-footer-bg); /* Use footer color for contrast */
    color: var(--color-footer-text);
    padding: 1.5rem 0;
    z-index: 1100; /* Above all content */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    
    /* Animation settings */
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(0); /* Default state: VISIBLE */
}

/* Class to hide the popup */
.cookie-popup--hidden {
    transform: translateY(150%); /* Slide down */
}

.cookie-popup__container {
    display: flex;
    flex-direction: column; /* Mobile-first */
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-popup__text {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    max-width: 600px;
}

.cookie-popup__text a {
    color: var(--color-white);
    font-weight: 700;
    text-decoration: underline;
}
.cookie-popup__text a:hover {
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .cookie-popup__container {
        flex-direction: row; /* Desktop layout */
        gap: 2rem;
    }
    .cookie-popup__text {
        text-align: left;
    }
}


.pages {
    padding: 3rem 0;
    background-color: var(--color-white);
    min-height: 60vh; /* Ensure footer doesn't rise up on short pages */
}

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

.pages h1 {
    font-size: 1.5rem; /* 40px */
    font-weight: 700;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 1rem;
}

.pages h2 {
    font-size: 1.5rem; /* 28px */
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.pages p {
    font-size: 1rem; /* 16px */
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.pages ul {
    list-style: disc; /* Standard bullet points */
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.pages li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.pages a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.pages a:hover {
    color: var(--color-primary-dark);
    background-color: rgba(74, 105, 255, 0.05); /* Light hover bg */
}

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

/* Desktop styles */
@media (min-width: 768px) {
    .pages {
        padding: 5rem 0;
    }
    
    .pages h1 {
        font-size: 3rem; /* 48px */
    }

    .pages h2 {
        font-size: 2rem; /* 32px */
    }
    
    .pages p, .pages li {
        font-size: 1.05rem; /* 17px */
    }
}