/**
		 FRW Architects

		 Apidom 2026.
*/

/* ====================================
   CSS Variables
   ==================================== */
:root {
	--color-black: #000;
	--color-white: #fff;
	--color-gray-light: #f5f5f5;
	--color-gray: #999;
	--color-gray-dark: #333;

	--font-primary: 'DIN', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

	--spacing-xs: 8px;
	--spacing-sm: 16px;
	--spacing-md: 25px;
	--spacing-lg: 40px;
	--spacing-xl: 60px;

	--transition: 0.3s ease;

	--max-width: 1400px;
}

/* ====================================
   Reset & Base Styles
   ==================================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: var(--font-primary);
	background-color: var(--color-white);
	color: var(--color-black);
	line-height: 1.6;
	overflow-x: hidden;
}

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

video {
	/* Hide video controls for autoplay experience */
	outline: none;
}

video::-webkit-media-controls {
	display: none!important;
}

video::-webkit-media-controls-enclosure {
	display: none!important;
}

video::-webkit-media-controls-panel {
	display: none!important;
}

video::-moz-media-controls {
	display: none!important;
}

a {
	color: var(--color-black);
	text-decoration: none;
	transition: color var(--transition);
}

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

/* ====================================
   Typography
   ==================================== */
h1, h2, h3, h4, h5, h6 {
	font-weight: 400;
	line-height: 1.2;
	margin-bottom: var(--spacing-md);
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.5rem;
}

p {
	margin-bottom: var(--spacing-sm);
}

/* ====================================
   Layout
   ==================================== */
#main {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--spacing-md);
}

.content {
	flex: 1;
}

.page {
	padding: 60px 0;
	min-height: 60vh;
}

div.no-title {
	display: block;
	height: 60px;
}

/* ====================================
   Header & Navigation
   ==================================== */
.header {
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	transition: transform 300ms ease, background 300ms ease, padding 300ms ease;
	padding: 20px 0;
	will-change: transform;
	/* Default: dark mode (on hero sections) */
	background: linear-gradient(to bottom, rgb(0, 0, 0), rgba(0, 0, 0, 0));
}

/* Header hidden (scrolling down) */
.header.header-hidden {
	transform: translateY(-100%);
}

/* Light mode: on light backgrounds */
.header.header-light {
	background: rgba(255, 255, 255, 0.85);
}

/* Compact mode when scrolled */
.header.scrolled {
	padding: 8px 0;
}

.main-nav {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--spacing-md);
}

.nav-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--spacing-md);
}

.nav-logo {
	display: block;
	height: 55px;
	flex-shrink: 0;
	margin-left: var(--spacing-md);
	transform: scale(0.98);
	transition: all 0.3s ease, opacity 0.3s ease;
}

.header.scrolled .nav-logo {
	height: 32px;
}

/* Logo images - white by default (dark hero), black on light mode */
.nav-logo .logo-white {
	display: block;
}

.nav-logo .logo-black {
	display: none;
}

.header.header-light .nav-logo .logo-white {
	display: none;
}

.header.header-light .nav-logo .logo-black {
	display: block;
}

.nav-logo img {
	height: 100%;
	width: auto;
	display: block;
	transition: none;
	pointer-events: none;
}

.nav-logo:hover {
	transform: scale(1);
}

.nav-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-md);
	align-items: center;
	margin-left: auto;
}

.nav-list li {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: -.25px;
}

/* Dark mode (default - on hero): white text */
.nav-list li a {
	position: relative;
	display: inline-block;
	padding: 8px 0;
	font-weight: 500;
	color: #fff;
	transition: color 0.3s ease;
}

.nav-list li.active a {
	font-weight: 700;
	color: #fff;
}

.nav-list li.active a::after {
	transform: scaleX(1);
}

.nav-list li.active a:hover::after {
	transform: scaleX(1);
}

.nav-list a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8px;
	height: 1px;
	background-color: #fff;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-list a:hover {
	color: #fff;
}

.nav-list a:hover::after {
	transform: scaleX(1);
}

.nav-list .lang-switch {
	border-left: 1px solid rgba(255, 255, 255, 0.3);
	padding-left: var(--spacing-md);
	transition: border-color 0.3s ease;
}

/* Light mode: black text */
.header.header-light .nav-list li a {
	color: rgba(0, 0, 0, 0.8);
}

.header.header-light .nav-list li.active a {
	color: #000;
}

.header.header-light .nav-list a::after {
	background-color: #000;
}

.header.header-light .nav-list a:hover {
	color: #000;
}

.header.header-light .nav-list .lang-switch {
	border-left-color: rgba(0, 0, 0, 0.2);
}

/* Hamburger Menu */
.nav-hamburger {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	z-index: 1001;
}

.nav-hamburger span {
	display: block;
	width: 25px;
	height: 2px;
	background-color: #fff;
	transition: all 0.3s ease;
}

.nav-hamburger.active span {
	background-color: var(--color-black);
}

/* Light mode hamburger */
.header.header-light .nav-hamburger span {
	background-color: var(--color-black);
}

.nav-hamburger.active span:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.nav-hamburger.active span:nth-child(2) {
	opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

/* ====================================
   Breadcrumb
   ==================================== */
.breadcrumb {
	background-color: var(--color-gray-light);
	padding: var(--spacing-sm) 0;
	font-size: 0.875rem;
}

.breadcrumb-list {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--spacing-md);
	list-style: none;
	display: flex;
	gap: var(--spacing-xs);
	flex-wrap: wrap;
}

.breadcrumb-list li::after {
	content: '›';
	margin-left: var(--spacing-xs);
	color: var(--color-gray);
}

.breadcrumb-list li:last-child::after {
	content: '';
}

.breadcrumb-list li.active {
	color: var(--color-gray);
}

/* ====================================
   Home Page
   ==================================== */
.home {
	margin: 0;
	padding-top: 0!important; /* Override default content padding for full-height hero */
}

.home-hero {
	position: relative;
	height: 100vh;
	width: 100%;
	overflow: hidden;
}

/* Home Carousel */
.home-carousel {
	position: relative;
	width: 100%;
	height: 100%;
}

.carousel-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transform: translateX(0);
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
	display: block;
	text-decoration: none;
}

.carousel-slide.active {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

/* Slide out animations */
.carousel-slide.slide-out-left {
	opacity: 0;
	transform: translateX(-30%);
}

.carousel-slide.slide-out-right {
	opacity: 0;
	transform: translateX(30%);
}

.carousel-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.carousel-slide-info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 80px 60px 60px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.carousel-project-name {
	font-size: 42px;
	font-weight: 900;
	color: #fff;
	text-align: right;
	line-height: 1.2;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--spacing-md);
	text-shadow: 2px 2px 4px #000;
	text-transform: uppercase;
}

/* Carousel Arrows */
.carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: #fff;
	width: 80px;
	height: 120px;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.carousel-arrow svg {
	width: 96px;
	height: 96px;
	stroke-width: 2.5;
}

.carousel-arrow-left {
	left: 20px;
}

.carousel-arrow-right {
	right: 20px;
}

.carousel-arrow-left:hover {
	left: 10px;
}


.carousel-arrow-right:hover {
	right: 10px;
}

/* Carousel Bullets */
.carousel-bullets {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	z-index: 10;
}

.carousel-bullet {
	width: 18px;
	height: 18px;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	position: relative;
}

.carousel-bullet svg {
	width: 18px;
	height: 18px;
	transform: rotate(-90deg);
}

.carousel-bullet .bullet-center {
	fill: #fff;
}

.carousel-bullet .bullet-progress {
	fill: none;
	stroke: #fff;
	stroke-width: 3;
	stroke-dasharray: 100.53;
	stroke-dashoffset: 100.53;
	/* Animation controlled by JavaScript for perfect sync */
}

/* Fallback placeholder */
.home-hero-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #333 0%, #111 100%);
	color: #fff;
	text-align: center;
	padding: var(--spacing-md);
}

.home-hero-placeholder h1 {
	font-size: 3rem;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 4px;
	margin-bottom: var(--spacing-sm);
}

.home-hero-placeholder p {
	font-size: 1.25rem;
	font-weight: 300;
	letter-spacing: 2px;
	opacity: 0.8;
}

/* Responsive carousel */
@media (max-width: 768px) {
	.carousel-arrow {
		width: 44px;
		height: 60px;
	}

	.carousel-arrow svg {
		width: 32px;
		height: 32px;
	}

	.carousel-arrow-left {
		left: 10px;
	}

	.carousel-arrow-right {
		right: 10px;
	}

	.carousel-slide-info {
		padding: 60px 20px 40px;
	}

	.carousel-project-name {
		font-size: 1.25rem;
	}

	.carousel-bullets {
		bottom: 20px;
		gap: 8px;
	}

	.carousel-bullet {
		width: 28px;
		height: 28px;
	}

	.carousel-bullet svg {
		width: 28px;
		height: 28px;
	}
}

.home-text-block {
	padding: 60px 20px;
	background: var(--background-color);
}

.home-text-block .container {
	max-width: 900px;
	margin: 0 auto;
	line-height: 1.4;

	font-size: 2rem;
	font-weight: 700;
}

.home-text-block p {
	margin-bottom: 1em;
}

.home-text-block h2,
.home-text-block h3 {
	margin-top: 1.5em;
	margin-bottom: 0.75em;
}

/* Home Social CTA */
.home-social-cta {
	padding: 28px 20px;
	margin-bottom: 20px;
	background: #f5f5f5;
}

.social-cta-box {
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.social-cta-text {
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	margin: 0;
	line-height: 1;
}

.social-cta-links {
	display: flex;
	gap: 16px;
}

.social-cta-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: var(--text-color);
	text-decoration: none;
	padding: 8px 18px;
	background: #fff;
	border: 1px solid #000;
	border-radius: 50px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.social-cta-links a:hover {
	background: #000;
	color: #fff;
}

.social-cta-links a svg {
	transition: fill 0.3s ease;
}

.social-cta-links a:hover svg {
	fill: #fff;
}

@media (max-width: 600px) {
	.social-cta-box {
		flex-direction: column;
		gap: 20px;
		text-align: center;
		padding: 24px;
	}
}

/* Home Category Sections */
.home-category-section {
	padding: 60px 0;
}

.home-category-section:first-of-type {
	padding-top: 80px;
}

.category-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.category-title {
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	margin: 0;
}

.category-explore {
	font-size: 0.85rem;
	color: var(--color-black);
	text-decoration: none;
	font-weight: 500;
}

.category-explore:hover {
	text-decoration: underline;
}

/* Category Slider */
.category-slider {
	position: relative;
}

.category-slider-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-bottom: 10px;
}

.category-slider-track::-webkit-scrollbar {
	display: none;
}

.category-project-card {
	flex: 0 0 auto;
	width: calc(25% - 12px);
	min-width: 280px;
	text-decoration: none;
	display: block;
}

.category-project-image {
	position: relative;
	width: 100%;
	aspect-ratio: 1/1;
	overflow: hidden;
}

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

.category-project-card:hover .category-project-image img {
	transform: scale(1.05);
}

/* Category Slider Arrow */
.category-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: -20px;
	width: 40px;
	height: 40px;
	background: var(--color-white);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
	transition: all var(--transition);
}

.category-slider-arrow:hover {
	background: var(--color-black);
	color: var(--color-white);
}

.category-slider-arrow.hidden {
	display: none;
}

.category-slider-arrow svg {
	width: 24px;
	height: 24px;
}

/* Responsive Category Slider */
@media (max-width: 1200px) {
	.category-project-card {
		width: calc(33.333% - 11px);
	}
}

@media (max-width: 900px) {
	.category-project-card {
		width: calc(50% - 8px);
		min-width: 220px;
	}

	.category-slider-arrow {
		right: 0;
	}
}

@media (max-width: 600px) {
	.home-category-section {
		padding: 40px 0;
	}

	.category-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.category-project-card {
		width: 75vw;
		min-width: 240px;
	}

	.category-slider-arrow {
		display: none;
	}
}

/* ====================================
   Projects Page
   ==================================== */
.page-title {
	margin: var(--spacing-lg) 0 var(--spacing-md);
	text-align: center;
	text-transform: uppercase;
	font-weight: 700;
}

.projects-filters {
	margin-bottom: var(--spacing-lg);
}

.filter-group {
	margin-bottom: var(--spacing-md);
}

.filter-group:last-child {
	margin-bottom: 0;
}

.filter-label {
	display: block;
	margin-bottom: var(--spacing-sm);
	font-size: 0.875rem;
	text-transform: uppercase;
	font-weight: 600;
}

.filter-buttons {
	display: flex;
	gap: var(--spacing-xs);
	flex-wrap: wrap;
}

.filter-btn {
	padding: var(--spacing-xs) var(--spacing-sm);
	background-color: var(--color-white);
	border: 1px solid var(--color-black);
	color: var(--color-black);
	cursor: pointer;
	transition: all var(--transition);
	font-size: 0.85rem;
	font-weight: 500;
	border-radius: 3px;
}

.filter-btn:hover,
.filter-btn.active {
	background-color: var(--color-black);
	color: var(--color-white);
}

.projects-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-md);
	margin-bottom: var(--spacing-lg);
}

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

@media (min-width: 1024px) {
	.projects-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.project-card {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1;
	background-color: #000;
	transition: all var(--transition);
}

.project-card:hover {
	border-radius: 25px;
}
.project-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition);
	will-change: transform;
}

.project-card:hover img {
	transform: scale(1.1);
	opacity: .55;
}

.project-card-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: var(--spacing-md);
	background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
	color: var(--color-white);
	transform: translateY(100%);
	transition: transform var(--transition);
}

.project-card:hover .project-card-overlay {
	transform: translateY(0);
}

.project-card-title {
	font-size: 1.125rem;
	margin-bottom: 0;
	font-weight: 900;
}

.project-card-meta {
	font-size: 0.875rem;
	opacity: 0.8;
}

.loading {
	text-align: center;
	padding: var(--spacing-xl) 0;
	color: var(--color-gray);
}

.no-results {
	text-align: center;
	padding: var(--spacing-xl) 0;
	color: var(--color-gray);
}

/* ====================================
   Single Project Page
   ==================================== */
.project-meta {
	margin-bottom: var(--spacing-lg);
}

.project-info {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-sm);
}

@media (min-width: 768px) {
	.project-info {
		grid-template-columns: repeat(2, 1fr);
	}
}

.project-info-item {
	display: flex;
	gap: var(--spacing-sm);
}

.project-info-label {
	font-weight: 600;
}

.project-description {
	margin-bottom: var(--spacing-lg);
	line-height: 1.8;
}

.project-gallery {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-md);
	margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
	.project-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

.project-gallery img {
	width: 100%;
	cursor: pointer;
	transition: opacity var(--transition);
}

.project-gallery img:hover {
	opacity: 0.8;
}

.project-nav {
	text-align: center;
	padding: var(--spacing-lg) 0;
}

.btn-back {
	display: inline-block;
	padding: var(--spacing-sm) var(--spacing-md);
	font-size: 0.875rem;
	position: relative;
	text-decoration: none;
	color: #000000;
}

.btn-back::after {
	content: '';
	position: absolute;
	left: var(--spacing-md);
	right: var(--spacing-md);
	bottom: var(--spacing-sm);
	height: 1px;
	background-color: #000000;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.3s ease;
}

.btn-back:hover {
	color: #000000;
	opacity: 1;
}

.btn-back:hover::after {
	transform: scaleX(1);
}

/* ====================================
   Contact Page
   ==================================== */
.contact-intro {
	text-align: center;
	margin-bottom: var(--spacing-lg);
}

.contact-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-lg);
	margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
	.contact-container {
		grid-template-columns: 2fr 1fr;
	}
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
}

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

.form-label {
	margin-bottom: var(--spacing-xs);
	font-size: 0.875rem;
	text-transform: uppercase;
}

.required {
	color: var(--color-gray);
}

.form-input,
.form-textarea {
	padding: var(--spacing-sm);
	border: 1px solid var(--color-gray);
	font-family: inherit;
	font-size: 1rem;
	transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus {
	outline: none;
	border-color: var(--color-black);
}

.btn-submit {
	padding: var(--spacing-sm) var(--spacing-md);
	background-color: var(--color-black);
	color: var(--color-white);
	border: none;
	cursor: pointer;
	text-transform: uppercase;
	font-size: 0.875rem;
	transition: opacity var(--transition);
}

.btn-submit:hover {
	opacity: 0.8;
}

.form-message {
	padding: var(--spacing-sm);
	border-radius: 2px;
	font-size: 0.875rem;
}

.form-message.success {
	background-color: #d4edda;
	color: #155724;
}

.form-message.error {
	background-color: #f8d7da;
	color: #721c24;
}

/* Contact Offices Wrapper */
.contact-offices-wrapper h2 {
	margin-bottom: var(--spacing-md);
	font-size: 1.25rem;
	font-weight: 600;
	text-transform: uppercase;
}

.contact-social {
	margin-bottom: 40px;
}

.contact-social-links {
	display: flex;
	gap: 20px;
}

.contact-social-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: var(--text-color);
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.contact-social-links a:hover {
	opacity: 0.5;
}

.offices-stack {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
}

.office-card {
	background-color: var(--color-white);
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow var(--transition);
}

.office-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.office-map {
	width: 100%;
	height: 200px;
	background-color: var(--color-gray-light);
}

.office-map iframe {
	display: block;
	width: 100%;
	height: 100%;
}

.office-info {
	padding: var(--spacing-sm) var(--spacing-md);
}

.office-city {
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: var(--spacing-xs);
	text-transform: uppercase;
}

.office-address {
	font-size: 0.8rem;
	line-height: 1.5;
	margin-bottom: var(--spacing-xs);
	color: var(--color-gray-dark);
}

.office-contact {
	font-size: 0.85rem;
	margin-bottom: 0;
}

.office-contact a {
	color: var(--color-black);
	text-decoration: none;
	transition: opacity var(--transition);
	font-weight: 500;
}

.office-contact a:hover {
	opacity: 0.7;
}

.office-email {
	padding: var(--spacing-sm) 0;
	text-align: center;
	margin-top: var(--spacing-xs);
}

.office-email a {
	color: var(--color-black);
	text-decoration: none;
	font-size: 0.85rem;
	transition: opacity var(--transition);
}

.office-email a:hover {
	opacity: 0.7;
}

/* ====================================
   Common Components
   ==================================== */

/* Page Intro */
.page-intro {
	max-width: 800px;
	margin: 0 auto 64px;
	text-align: center;
	font-size: 18px;
	line-height: 1.6;
	color: #555; /* Improved contrast from #666 */
}

.page-intro p {
	margin-bottom: 16px;
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 80px 20px;
	color: #999;
	font-size: 18px;
}

/* ====================================
   Lightbox
   ==================================== */
.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 10000;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.lightbox.active {
	display: flex;
	animation: lightboxFadeIn 0.3s ease forwards;
}

.lightbox.closing {
	animation: lightboxFadeOut 0.3s ease forwards;
}

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

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

.lightbox-content {
	position: relative;
	max-width: 90%;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-image,
.lightbox-video {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	opacity: 0;
	transform: scale(0.95);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-image.active,
.lightbox-video.active {
	opacity: 1;
	transform: scale(1);
}

.lightbox-image.slide-out-left,
.lightbox-video.slide-out-left {
	animation: slideOutLeft 0.3s ease forwards;
}

.lightbox-image.slide-out-right,
.lightbox-video.slide-out-right {
	animation: slideOutRight 0.3s ease forwards;
}

.lightbox-image.slide-in-left,
.lightbox-video.slide-in-left {
	animation: slideInLeft 0.3s ease forwards;
}

.lightbox-image.slide-in-right,
.lightbox-video.slide-in-right {
	animation: slideInRight 0.3s ease forwards;
}

@keyframes slideOutLeft {
	from {
		opacity: 1;
		transform: translateX(0);
	}
	to {
		opacity: 0;
		transform: translateX(-90%);
	}
}

@keyframes slideOutRight {
	from {
		opacity: 1;
		transform: translateX(0);
	}
	to {
		opacity: 0;
		transform: translateX(90%);
	}
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-90%);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(90%);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.lightbox-close {
	position: fixed;
	top: 20px;
	right: 30px;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 50px;
	cursor: pointer;
	z-index: 10001;
	padding: 0;
	width: 50px;
	height: 50px;
	line-height: 40px;
	transition: opacity 0.3s ease, transform 0.2s ease;
}

.lightbox-close:hover {
	opacity: 0.6;
	transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: #fff;
	font-size: 60px;
	cursor: pointer;
	z-index: 10001;
	padding: 20px;
	transition: opacity 0.3s ease, transform 0.2s ease;
}

.lightbox-prev {
	left: 20px;
}

.lightbox-next {
	right: 20px;
}

.lightbox-prev:hover {
	opacity: 0.6;
	transform: translateY(-50%) translateX(-5px);
}

.lightbox-next:hover {
	opacity: 0.6;
	transform: translateY(-50%) translateX(5px);
}

.lightbox-counter {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 16px;
	background: rgba(0, 0, 0, 0.7);
	padding: 8px 16px;
	border-radius: 20px;
	z-index: 10001;
}

/* ====================================
   Awards Page
   ==================================== */
.awards-list {
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.award-item {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 32px;
	padding: 32px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	transition: box-shadow 0.3s;
}

.award-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.award-image {
	width: 100%;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	border-radius: 4px;
	overflow: hidden;
}

.award-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 16px;
}

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

.award-title {
	font-size: 24px;
	margin: 0;
	font-weight: 600;
}

.award-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 14px;
	color: #555; /* Improved contrast from #666 */
}

.award-organization {
	font-weight: 500;
}

.award-year {
	font-style: italic;
}

.award-organization::after {
	content: '•';
	margin-left: 16px;
	color: #ccc;
}

.award-description {
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	margin-top: 8px;
}

.award-description p {
	margin-bottom: 12px;
}

/* Shared content link style (used by awards, news, projects) */
.content-link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-black);
	text-decoration: none;
	border-bottom: 1px solid var(--color-black);
	padding-bottom: 2px;
	transition: opacity 0.3s ease;
}

.content-link:hover {
	opacity: 0.6;
}

.content-link-arrow {
	transition: transform 0.3s ease;
}

.content-link:hover .content-link-arrow {
	transform: translateX(4px);
}

.award-link {
	margin-top: 16px;
}

/* ====================================
   Generic Hero Section
   ==================================== */
.hero {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 400px;
	overflow: hidden;
	background: #000;
}

.hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.hero-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 60px 40px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.hero-title {
	max-width: var(--max-width);
	margin: 0 auto;
	font-size: 48px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: -0.1rem;
}

/* Hero size variants */
.hero--third {
	height: 33vh;
	min-height: 250px;
}

.hero--half {
	height: 50vh;
	min-height: 300px;
}

.hero--twothird {
	height: 66vh;
	min-height: 350px;
}

.hero--full {
	height: 100vh;
}

/* Adjust overlay padding for shorter heroes */
.hero--third .hero-overlay {
	padding: 30px 40px;
}

.hero--half .hero-overlay {
	padding: 40px 40px;
}

/* Adjust title size for shorter heroes */
.hero--third .hero-title {
	font-size: 32px;
}

.hero--half .hero-title {
	font-size: 36px;
}

/* Page with hero - remove top padding */
.hero + .page,
.hero + .page-content {
	padding-top: 40px;
}

/* ====================================
   Team/About Page
   ==================================== */
.team-page {
	padding-bottom: 80px;
}

/* About Section - Before team grid */
.about-section {
	margin: 0 auto var(--spacing-xl);
	max-width: 800px;
}

.about-title {
	font-size: 1.75rem;
	font-weight: 600;
	margin: 0 0 var(--spacing-md) 0;
	color: var(--color-black);
}

.about-content {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--color-text);
}

.about-content p {
	margin-bottom: var(--spacing-md);
}

.about-content p:last-child {
	margin-bottom: 0;
}

/* Team Section Header */
.team-section {
	margin-bottom: var(--spacing-lg);
}

.team-section-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0;
	color: var(--color-black);
}

/* Team Grid */
.team-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--spacing-md);
}

/* Les 2 premiers membres (les boss) seuls sur la première ligne */
.team-grid .team-card:nth-child(3) {
	grid-column-start: 1;
}

@media (max-width: 1024px) {
	.team-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.team-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.team-grid {
		grid-template-columns: 1fr;
		max-width: 300px;
		margin: 0 auto;
	}
}

/* Team Card - Same style as project cards */
.team-card {
	position: relative;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background-color: #f5f5f5;
	cursor: pointer;
	transition: all var(--transition);
}

.team-card:hover {
	border-radius: 25px;
}

.team-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition), opacity var(--transition);
	will-change: transform;
}

.team-card:hover img {
	transform: scale(1.1);
	opacity: 0.55;
}

.team-card-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.team-card-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: var(--spacing-md);
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
	color: var(--color-white);
	transform: translateY(100%);
	transition: transform var(--transition);
}

.team-card:hover .team-card-overlay {
	transform: translateY(0);
}

/* Touch devices - show overlay on tap */
@media (hover: none) {
	.team-card-overlay {
		transform: translateY(0);
		background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
	}
}

.team-card-name {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 4px 0;
}

.team-card-title {
	font-size: 0.875rem;
	opacity: 0.8;
	font-style: italic;
}

/* Team Modal */
.team-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 10000;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.team-modal.active {
	display: flex;
	animation: modalFadeIn 0.3s ease forwards;
}

.team-modal.closing {
	animation: modalFadeOut 0.3s ease forwards;
}

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

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

.team-modal-content {
	position: relative;
	max-width: 900px;
	max-height: 90vh;
	width: 90%;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	transform: scale(0.95);
	transition: transform 0.3s ease;
}

.team-modal.active .team-modal-content {
	transform: scale(1);
}

.team-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	color: #fff;
	font-size: 32px;
	width: 44px;
	height: 44px;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
	border-radius: 50%;
	z-index: 10;
	transition: background 0.3s ease, transform 0.2s ease;
}

.team-modal-close:hover {
	background: rgba(0, 0, 0, 0.8);
	transform: rotate(90deg);
}

.team-modal-inner {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	min-height: 400px;
}

.team-modal-photo {
	background: #f5f5f5;
	overflow: hidden;
}

.team-modal-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.team-modal-placeholder {
	width: 100%;
	height: 100%;
	min-height: 300px;
	background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.team-modal-info {
	padding: 40px;
	overflow-y: auto;
	max-height: 80vh;
}

.team-modal-name {
	font-size: 28px;
	font-weight: 400;
	margin: 0 0 8px 0;
}

.team-modal-title {
	font-size: 16px;
	color: #666;
	font-style: italic;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e0e0e0;
}

.team-modal-bio {
	font-size: 15px;
	line-height: 1.8;
	color: #333;
}

.team-modal-bio p {
	margin-bottom: 16px;
}

.team-modal-bio ul,
.team-modal-bio ol {
	margin: 16px 0;
	padding-left: 24px;
}

.team-modal-bio li {
	margin: 8px 0;
}

/* Team Modal Responsive */
@media (max-width: 768px) {
	.team-modal-inner {
		grid-template-columns: 1fr;
	}

	.team-modal-photo {
		max-height: 250px;
	}

	.team-modal-info {
		padding: 24px;
	}

	.team-modal-name {
		font-size: 24px;
	}

	.hero-title {
		font-size: 32px;
	}

	.hero-overlay {
		padding: 40px 20px;
	}

	/* Hero size variants - mobile */
	.hero--third {
		height: 25vh;
		min-height: 200px;
	}

	.hero--half {
		height: 40vh;
		min-height: 250px;
	}

	.hero--twothird {
		height: 50vh;
		min-height: 300px;
	}

	.hero--full {
		height: 100vh;
	}

	.hero--third .hero-title {
		font-size: 24px;
	}

	.hero--half .hero-title {
		font-size: 28px;
	}

	.hero--third .hero-overlay,
	.hero--half .hero-overlay {
		padding: 20px;
	}
}

/* ====================================
   Careers Page
   ==================================== */
.careers-page .careers-content {
	max-width: 800px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.8;
}

.careers-page .careers-content h2,
.careers-page .careers-content h3 {
	margin-top: 32px;
	margin-bottom: 16px;
}

.careers-page .careers-content p {
	margin-bottom: 16px;
}

.careers-page .careers-content ul,
.careers-page .careers-content ol {
	margin: 16px 0;
	padding-left: 24px;
}

.careers-page .careers-content li {
	margin: 8px 0;
}

/* ====================================
   News Page
   ==================================== */

/* Single News */
/* News Single Article */
.news-single {
	max-width: 800px;
	margin: 0 auto;
}

.news-hero {
	margin: -20px 0 32px;
	border-radius: 4px;
	overflow: hidden;
}

.news-hero img {
	width: 100%;
	height: auto;
	display: block;
}

.news-title {
	font-size: 36px;
	margin-bottom: 16px;
}

.news-meta {
	color: #666;
	margin-bottom: 32px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e0e0e0;
}

.news-date {
	font-size: 14px;
}

.news-content {
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 48px;
}

.news-content h1,
.news-content h2,
.news-content h3 {
	margin-top: 32px;
	margin-bottom: 16px;
}

.news-content img {
	max-width: 100%;
	height: auto;
	margin: 24px 0;
	border-radius: 4px;
}

.news-content ul,
.news-content ol {
	margin: 16px 0;
	padding-left: 24px;
}

.news-content li {
	margin: 8px 0;
}

.news-back {
	margin-top: 48px;
}

/* News List */
.news-list {
	max-width: 1000px;
	margin: 0 auto;
}

.news-item {
	display: flex;
	gap: 32px;
	padding: 32px 0;
	border-bottom: 1px solid #e0e0e0;
}

.news-item:last-child {
	border-bottom: none;
}

.news-item-image {
	flex-shrink: 0;
	width: 280px;
	height: 200px;
	border-radius: 4px;
	overflow: hidden;
}

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

.news-item-image:hover img {
	transform: scale(1.03);
}

.news-item-body {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.news-item-title {
	font-size: 24px;
	margin-bottom: 8px;
}

.news-item-title a {
	color: var(--color-black);
	text-decoration: none;
	transition: opacity 0.3s;
}

.news-item-title a:hover {
	opacity: 0.6;
}

.news-item-meta {
	color: #666;
	font-size: 14px;
	margin-bottom: 12px;
}

.news-item-excerpt {
	color: #444;
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 16px;
	flex: 1;
}

/* .news-item-link — uses shared .content-link */

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 24px;
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid #e0e0e0;
}

.pagination-btn {
	padding: 12px 24px;
	background: #000;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	transition: opacity 0.3s;
}

.pagination-btn:hover {
	opacity: 0.8;
}

.pagination-info {
	color: #666;
	font-size: 14px;
}

/* ====================================
   Project Detail Page
   ==================================== */

/* Remove padding-top when hero is present */
.content.project-with-hero {
	padding-top: 0;
}

/* Hero Section */
.project-hero {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
	background: #000000;
	margin-bottom: 30px;
}

.project-hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0;
}

.project-hero-image.fade-in {
	animation: heroFadeIn 1.5s ease forwards;
}

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

/* Bottom overlay with title (wipes in) */
.project-hero-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 2;
	padding: 40px 80px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
	clip-path: inset(0 100% 0 0);
	pointer-events: none;
}

.project-hero-overlay.wipe-in {
	animation: overlayWipeIn 1s ease .5s forwards;
}

@keyframes overlayWipeIn {
	from {
		clip-path: inset(0 100% 0 0);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

.project-hero-title {
	font-size: 42px;
	font-weight: 900;
	color: #fff;
	text-align: right;
	line-height: 1.2;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--spacing-md);
	text-transform: uppercase;
	text-shadow: 2px 2px 4px #000;
}

/* Project Detail Layout */
.project-detail {
	background: #fff;
}

.project-layout {
	display: flex;
	min-height: 100vh;
}

/* Photo Gallery - 2/3 width */
.project-photos {
	width: 66.666%;
	display: flex;
	flex-direction: column;
}

.project-photo-item {
	width: 100%;
	cursor: pointer;
	overflow: hidden;
	margin-bottom: 30px;
}

.project-photo-item img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.project-photo-item:hover img {
	transform: scale(1.02);
}

.project-no-photos {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	color: #999;
	font-size: 18px;
}

/* Project Info - 1/3 width, sticky */
.project-info-sticky {
	width: 33.333%;
	height: 100vh;
	position: sticky;
	top: 0;
	overflow-y: auto;
}

.project-info-content {
	padding: 60px 40px 25px;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.project-title {
	font-size: 32px;
	font-weight: 400;
	margin: 0 0 30px 0;
	line-height: 1.2;
	color: #000;
}

.project-meta {
	margin-bottom: 30px;
	background: #f2f2f2;
	padding: 5px 15px;
	border-radius: 12px;
}

.project-meta-item {
	display: flex;
	justify-content: space-between;
	padding: 3px 0;
}

.meta-label {
	font-size: 11px;
	text-transform: uppercase;
	color: #666;
	font-weight: 500;
}

.meta-value {
	font-size: 12px;
	color: #000;
	text-align: right;
}

.project-description {
	font-size: 15px;
	line-height: 1.8;
	color: #333;
	margin-bottom: 40px;
	flex: 1;
}

.project-description p {
	margin: 0 0 16px 0;
}

/* .project-external-link — uses shared .content-link */
.project-external-link {
	margin-top: 8px;
}

/* Video Player Styles */
.project-video {
	width: 100%;
	height: auto;
	display: block;
	background-color: #000;
	border: none;
	outline: none;
}

.project-video:focus {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.project-video-item {
	cursor: default;
}

/* ====================================
   Project Navigation
   ==================================== */
.project-navigation {
	width: 100%;
	padding: 40px 0;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 20px;
	align-items: center;
}

.project-nav-left {
	justify-self: start;
}

.project-nav-center {
	justify-self: center;
}

.project-nav-right {
	justify-self: end;
}

.project-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	color: #000000;
	text-decoration: none;
	position: relative;
}

.project-nav-link::after {
	content: '';
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 8px;
	height: 1px;
	background-color: #000000;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.3s ease;
}

.project-nav-link:hover {
	color: #000000;
}

.project-nav-link:hover::after {
	transform: scaleX(1);
}

.project-nav-link.project-nav-all {
	font-weight: 300;
	font-size: 0.875rem;
}

.project-nav-arrow {
	font-size: 20px;
	line-height: 1;
}

.project-nav-label {
	font-size: 14px;
}

@media (max-width: 767px) {
	.project-navigation {
		grid-template-columns: 1fr;
		gap: 16px;
		text-align: center;
	}

	.project-nav-left,
	.project-nav-center,
	.project-nav-right {
		justify-self: center;
	}
}

/* ====================================
   Footer
   ==================================== */
.footer {
	background-color: #fff;
	color: #000;
	padding: 60px 0 40px;
	margin-top: var(--spacing-xl);
	border-top: 1px solid #eee;
}

.footer-content {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--spacing-md);
	display: flex;
	flex-direction: column;
	gap: 40px;
	align-items: flex-start;
}

@media (min-width: 768px) {
	.footer-content {
		flex-direction: row;
		justify-content: flex-end;
		align-items: flex-start;
		gap: 60px;
	}

	.footer-logo {
		margin-right: auto;
	}
}

/* Footer Logo */
.footer-logo {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer-logo-img {
	width: 160px;
	margin-top: 2px;
	height: auto;
}

.footer-brand {
	font-size: 1.25rem;
	font-weight: 700;
	text-transform: uppercase;
}

.footer-brand-light {
	font-weight: 300;
}

/* Footer Address */
.footer-address p {
	font-size: 0.9rem;
	line-height: 1.6;
	margin: 0;
}

.footer-map-link {
	margin-top: 12px;
}

.footer-map-link a {
	color: #000;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer-map-link a:hover {
	opacity: 0.7;
}

/* Footer Contact */
.footer-contact p {
	font-size: 0.9rem;
	line-height: 1.8;
	margin: 0;
}

.footer-contact a {
	color: #000;
	text-decoration: none;
}

.footer-contact a:hover {
	text-decoration: underline;
}

/* Footer Right (Copyright + Social) */
.footer-right {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

@media (min-width: 768px) {
	.footer-right {
		align-items: flex-end;
	}
}

.footer-copyright {
	font-size: 0.9rem;
	margin: 0;
}

.footer-social {
	display: flex;
	gap: 12px;
	align-items: center;
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #000;
	transition: opacity 0.2s ease;
}

.footer-social a:hover {
	opacity: 0.6;
}

.footer-social svg {
	width: 20px;
	height: 20px;
}

/* ====================================
   Error Page
   ==================================== */
.error-page {
	padding: var(--spacing-xl) 0;
	text-align: center;
}

.error-title {
	font-size: 8rem;
	font-weight: 300;
	opacity: 0.2;
}

.error-subtitle {
	margin-bottom: var(--spacing-md);
}

.btn-home {
	display: inline-block;
	margin-top: var(--spacing-md);
	padding: var(--spacing-sm) var(--spacing-md);
	border: 1px solid var(--color-black);
	text-transform: uppercase;
	font-size: 0.875rem;
}

/* ====================================
   Utilities
   ==================================== */
.text-center {
	text-align: center;
}

.hidden {
	display: none!important;
}

/* No select utility */
.no-select {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
	background-color: var(--color-gray-light);
}

/* Focus visible for accessibility */
*:focus-visible {
	outline: 2px solid var(--color-black);
	outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-to-content {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--color-black);
	color: var(--color-white);
	padding: 8px 16px;
	text-decoration: none;
	z-index: 10000;
}

.skip-to-content:focus {
	top: 0;
}

/* ====================================
   Skeleton Loading Screens
   ==================================== */
.skeleton-card {
	background: linear-gradient(
		90deg,
		var(--color-gray-light) 25%,
		#e0e0e0 50%,
		var(--color-gray-light) 75%
	);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite;
	border-radius: 0;
	pointer-events: none;
}

@keyframes shimmer {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

/* Skeleton for project cards */
.project-card.skeleton-card {
	aspect-ratio: 1;
	position: relative;
	overflow: hidden;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
	.skeleton-card {
		animation: none;
		background: var(--color-gray-light);
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms!important;
		animation-iteration-count: 1!important;
		transition-duration: 0.01ms!important;
	}
}

/* ====================================
   Responsive Adjustments
   ==================================== */


@media (max-width: 1250px) {
	.nav-list {
		gap: 8px;
	}

	.nav-list li {
		font-size: 13px;
	}

	.nav-list .lang-switch {
		border: none;
		padding-left: 0;
	}
}

/* Tablet and below - Show hamburger menu */
@media (max-width: 1000px) {
	/* Show hamburger menu */
	.nav-hamburger {
		display: flex;
	}

	/* Hide desktop menu by default */
	.nav-list {
		position: fixed;
		top: 0;
		right: -100%;
		width: 280px;
		height: 100vh;
		background-color: var(--color-white);
		flex-direction: column;
		align-items: flex-start;
		padding: 80px 24px 24px;
		gap: 0;
		margin: 0;
		box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
		transition: right 0.3s ease;
		overflow-y: auto;
	}

	.nav-list.active {
		right: 0;
	}

	.nav-list li {
		width: 100%;
		padding: 0 0 20px;
		font-size: 14px;
	}

	.nav-list li a {
		display: block;
		width: 100%;
		color: rgba(0, 0, 0, 0.8);
	}

	.nav-list li a:hover {
		color: #000;
	}

	.nav-list li.active a {
		color: #000;
	}

	.nav-list a::after {
		background-color: #000;
	}

	.nav-list .lang-switch {
		border-left: none;
		border-top: 2px solid var(--color-black);
		padding-left: 0;
		padding-top: 16px;
		margin-top: 16px;
	}

	/* Overlay when menu is open */
	.nav-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		opacity: 0;
		visibility: hidden;
		z-index: 999;
	}

	.nav-overlay.active {
		visibility: visible;
	}
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
	:root {
		--spacing-lg: 32px;
		--spacing-xl: 48px;
	}

	h1 {
		font-size: 2rem;
	}

	.home-title {
		font-size: 2.5rem;
	}

	.page-title {
		font-size: 32px;
		margin-bottom: 32px;
		letter-spacing: -0.1rem;
	}

	.header {
		padding: 12px 0;
	}

	.header.scrolled {
		padding: 8px 0;
	}

	.nav-logo {
		height: 48px;
	}

	.header.scrolled .nav-logo {
		height: 36px;
	}

	/* Awards Page Responsive */
	.awards-list {
		gap: 32px;
	}

	.award-item {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 24px;
	}

	.award-image {
		max-width: 150px;
		margin: 0 auto;
	}

	.award-title {
		font-size: 20px;
	}

	/* Team Page Responsive */
	.team-members {
		gap: 48px;
	}

	.team-member {
		grid-template-columns: 1fr!important;
		gap: 24px;
	}

	.team-member:nth-child(even) .team-member-photo {
		order: 1;
	}

	.team-member:nth-child(even) .team-member-content {
		order: 2;
		text-align: left;
	}

	.team-member-photo {
		max-width: 250px;
		margin: 0 auto;
	}

	.team-member-name {
		font-size: 24px;
	}

	.team-member-title {
		font-size: 16px;
	}

	/* News Page Responsive */
	.news-title {
		font-size: 28px;
	}

	.news-item {
		flex-direction: column;
		gap: 16px;
	}

	.news-item-image {
		width: 100%;
		height: 200px;
	}

	.news-item-title {
		font-size: 20px;
	}

	/* Project Hero Responsive */
	.project-hero {
		height: 80vh;
	}

	.project-hero-overlay {
		padding: 40px 20px;
	}

	.project-hero-title {
		font-size: 32px;
		letter-spacing: -0.1rem;
	}

	/* Project Detail Responsive */
	.project-layout {
		flex-direction: column;
	}

	.project-photos,
	.project-info-sticky {
		width: 100%;
	}

	.project-info-sticky {
		position: relative;
		height: auto;
		order: -1; /* Place text before images on mobile */
	}

	.project-photos {
		order: 1; /* Place images after text on mobile */
	}

	.project-info-content {
		padding: 40px 20px;
		min-height: auto;
	}

	.project-title {
		font-size: 24px;
		margin: 0 0 20px 0;
	}

	/* Lightbox Responsive */
	.lightbox-content {
		max-width: 95%;
	}

	.lightbox-prev {
		left: 10px;
		padding: 10px;
		font-size: 40px;
	}

	.lightbox-next {
		right: 10px;
		padding: 10px;
		font-size: 40px;
	}

	.lightbox-close {
		top: 10px;
		right: 15px;
		font-size: 40px;
	}

	.lightbox-counter {
		bottom: 20px;
		font-size: 14px;
		padding: 6px 12px;
	}

	/* Featured Project Responsive */
	.home-featured-project {
		padding: 40px 0;
	}

	.featured-project-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.featured-project-title {
		font-size: 1.5rem;
	}

	.featured-project-image {
		aspect-ratio: 4/3;
	}
}

/* ====================================
   Page Blocks (Frontend)
   ==================================== */
.page-content {
	padding: var(--spacing-xl) 0;
	min-height: 60vh;
}

.page-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: var(--spacing-lg);
	text-align: center;
}

.page-blocks {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--spacing-md);
}

/* Block Heading */
.block-heading {
	font-weight: 300;
	margin: var(--spacing-lg) 0 var(--spacing-md);
	line-height: 1.3;
}

.block-heading:first-child {
	margin-top: 0;
}

/* Block WYSIWYG */
.block-wysiwyg {
	margin: var(--spacing-md) 0;
}

.wysiwyg-content {
	line-height: 1.8;
	font-size: 1.05rem;
}

.wysiwyg-content p {
	margin: var(--spacing-sm) 0;
}

.wysiwyg-content ul,
.wysiwyg-content ol {
	margin: var(--spacing-sm) 0;
	padding-left: var(--spacing-lg);
}

.wysiwyg-content li {
	margin: var(--spacing-xs) 0;
}

.wysiwyg-content a {
	color: var(--color-black);
	text-decoration: underline;
	transition: opacity var(--transition);
}

.wysiwyg-content a:hover {
	opacity: 0.7;
}

.wysiwyg-content strong {
	font-weight: 600;
}

.wysiwyg-content em {
	font-style: italic;
}

.wysiwyg-content h2,
.wysiwyg-content h3,
.wysiwyg-content h4 {
	font-weight: 500;
	margin: var(--spacing-md) 0 var(--spacing-sm);
}

.wysiwyg-content h2 {
	font-size: 1.8rem;
}

.wysiwyg-content h3 {
	font-size: 1.5rem;
}

.wysiwyg-content h4 {
	font-size: 1.3rem;
}

/* Block Image */
.block-image {
	margin: var(--spacing-lg) 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.block-image img {
	width: 100%;
	height: auto;
	display: block;
	transition: opacity var(--transition);
}

.block-image img:hover {
	opacity: 0.95;
}

.block-image figcaption {
	margin-top: var(--spacing-sm);
	font-size: 0.9rem;
	color: var(--color-gray);
	text-align: center;
	font-style: italic;
}

/* Image Sizes */
.block-image.small {
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.block-image.medium {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.block-image.large {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.block-image.full {
	max-width: 100%;
}

/* Block Video */
.block-video {
	margin: var(--spacing-lg) 0;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

.block-video video {
	width: 100%;
	height: auto;
	display: block;
	background-color: var(--color-black);
}

.video-embed {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
}

.video-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.video-caption {
	margin-top: var(--spacing-sm);
	font-size: 0.9rem;
	color: var(--color-gray);
	text-align: center;
	font-style: italic;
}

/* Footer Navigation */
.footer-nav {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-sm);
	justify-content: center;
	margin-top: var(--spacing-sm);
	padding: 0;
}

.footer-nav li {
	margin: 0;
}

.footer-nav a {
	color: var(--color-white);
	text-decoration: none;
	font-size: 0.9rem;
	opacity: 0.7;
	transition: opacity var(--transition);
}

.footer-nav a:hover {
	opacity: 1;
	text-decoration: underline;
}

/* Responsive Adjustments for Blocks */
@media (max-width: 768px) {
	.page-title {
		font-size: 2rem;
	}

	.page-blocks {
		padding: 0 var(--spacing-sm);
	}

	.block-heading {
		font-size: 1.5rem;
		margin: var(--spacing-md) 0 var(--spacing-sm);
	}

	.wysiwyg-content {
		font-size: 1rem;
	}

	.wysiwyg-content h2 {
		font-size: 1.5rem;
	}

	.wysiwyg-content h3 {
		font-size: 1.3rem;
	}

	.wysiwyg-content h4 {
		font-size: 1.1rem;
	}

	.block-image.small,
	.block-image.medium,
	.block-image.large {
		max-width: 100%;
	}

	.footer-nav {
		flex-direction: column;
		align-items: center;
	}
}

/* ===========================
   SCROLL REVEAL ANIMATIONS
   =========================== */

.scroll-reveal {
	opacity: 0;
	transform: translateY(50px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
	opacity: 1;
	transform: translateY(0);
}

/* Section title styling */
.section-title {
	font-size: 32px;
	font-weight: 400;
	margin-bottom: 40px;
	text-align: center;
	color: #000000;
}

@media (max-width: 767px) {
	.section-title {
		font-size: 24px;
		margin-bottom: 30px;
	}
}

/* ===========================
   TESTIMONIALS PAGE
   =========================== */

.testimonials-list {
	max-width: 800px;
	margin: 0 auto;
}

.testimonial-item {
	border: none;
	margin: 0 0 60px 0;
	padding: 0;
	position: relative;
}

.testimonial-quote {
	font-size: 1.15rem;
	line-height: 1.8;
	color: #333;
	font-style: italic;
	padding-left: 24px;
	border-left: 2px solid #000;
}

.testimonial-quote p {
	margin: 0;
}

.testimonial-author {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 20px;
	padding-left: 24px;
}

.testimonial-name {
	font-style: normal;
	font-weight: 600;
	font-size: 0.95rem;
	color: #000;
}

.testimonial-title {
	font-size: 0.85rem;
	color: #666;
}

@media (max-width: 768px) {
	.testimonial-quote {
		font-size: 1rem;
	}

	.testimonial-item {
		margin-bottom: 40px;
	}
}

/* ===========================
   CLIENTS PAGE
   =========================== */

.clients-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px 30px;
	align-items: center;
	justify-items: center;
	max-width: 1000px;
	margin: 0 auto;
}

.client-item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 80px;
}

.client-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	transition: opacity 0.3s ease;
}

.client-link:hover {
	opacity: 0.7;
}

.client-logo {
	max-width: 160px;
	max-height: 70px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.7;
	transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-item:hover .client-logo {
	filter: grayscale(0%);
	opacity: 1;
}

.client-name-text {
	font-size: 0.9rem;
	color: #666;
	text-align: center;
}

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

@media (max-width: 600px) {
	.clients-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px 20px;
	}

	.client-logo {
		max-width: 120px;
		max-height: 50px;
	}
}
