/*
 * Navestrias EHS - Modern 2025 Stylesheet
 * Contemporary design with responsive layout
 */

:root {
	--primary-green: #10b981;
	--primary-dark: #059669;
	--primary-light: #34d399;
	--accent-color: #06b6d4;
	--text-primary: #1f2937;
	--text-secondary: #6b7280;
	--text-light: #9ca3af;
	--bg-primary: #ffffff;
	--bg-secondary: #f9fafb;
	--bg-tertiary: #f3f4f6;
	--border-color: #e5e7eb;
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	--radius-sm: 0.375rem;
	--radius-md: 0.5rem;
	--radius-lg: 0.75rem;
	--transition: all 0.3s ease;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-primary);
	background-color: var(--bg-secondary);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Modern Navigation */
.modern-nav {
	background: var(--bg-primary);
	box-shadow: var(--shadow-md);
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, 0.95);
}

.nav-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 70px;
}

.nav-logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-green);
	text-decoration: none;
	letter-spacing: -0.025em;
	transition: var(--transition);
}

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

.nav-menu {
	display: flex;
	gap: 2rem;
	list-style: none;
	align-items: center;
}

.nav-menu a {
	color: var(--text-secondary);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
	transition: var(--transition);
	padding: 0.5rem 0;
	position: relative;
}

.nav-menu a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--primary-green);
	transition: width 0.3s ease;
}

.nav-menu a:hover {
	color: var(--primary-green);
}

.nav-menu a:hover::after {
	width: 100%;
}

.nav-menu a.active {
	color: var(--primary-green);
}

/* Language Selector */
.lang-selector {
	display: flex;
	gap: 0.5rem;
	margin-left: 1rem;
	padding-left: 1rem;
	border-left: 1px solid var(--border-color);
}

.lang-selector a {
	padding: 0.25rem 0.5rem;
	border-radius: var(--radius-sm);
	transition: var(--transition);
}

.lang-selector a:hover {
	background: var(--bg-tertiary);
}

/* Mobile Menu Toggle */
.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 0.35rem;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

.menu-toggle span {
	width: 25px;
	height: 2px;
	background: var(--text-primary);
	transition: var(--transition);
}

/* Container */
.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Modern Header Banner */
.header-banner {
	background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
	color: white;
	padding: 4rem 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.header-banner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>');
	opacity: 0.5;
}

.header-banner-content {
	position: relative;
	z-index: 1;
}

.header-banner h1 {
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 1rem;
	letter-spacing: -0.025em;
}

.header-banner p {
	font-size: 1.25rem;
	opacity: 0.95;
	max-width: 700px;
	margin: 0 auto;
}

/* Content Sections */
.content-section {
	padding: 4rem 0;
}

.section-title {
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 1rem;
	text-align: center;
}

.section-subtitle {
	font-size: 1.125rem;
	color: var(--text-secondary);
	text-align: center;
	max-width: 700px;
	margin: 0 auto 3rem;
}

/* Service Cards */
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.service-card {
	background: var(--bg-primary);
	border-radius: var(--radius-lg);
	padding: 2rem;
	box-shadow: var(--shadow-md);
	transition: var(--transition);
	border: 1px solid var(--border-color);
}

.service-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--primary-green);
}

.service-card h3 {
	font-size: 1.5rem;
	color: var(--primary-green);
	margin-bottom: 1rem;
	font-weight: 600;
}

.service-card ul {
	list-style: none;
	padding-left: 0;
}

.service-card li {
	padding: 0.5rem 0;
	color: var(--text-secondary);
	position: relative;
	padding-left: 1.5rem;
}

.service-card li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--primary-green);
	font-weight: bold;
}

/* Two Column Layout */
.two-column {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 3rem;
	align-items: start;
}

/* Services List */
.services-list {
	list-style: none;
	padding-left: 0;
}

.services-list li {
	padding: 0.75rem 0;
	padding-left: 1.5rem;
	position: relative;
	line-height: 1.6;
}

.services-list li::before {
	content: '●';
	color: var(--primary-green);
	font-size: 0.8rem;
	position: absolute;
	left: 0;
	top: 0.85rem;
}

/* Call to Action */
.cta-section {
	background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
	color: white;
	padding: 3rem 2rem;
	border-radius: var(--radius-lg);
	text-align: center;
	margin: 3rem 0;
}

.cta-section h2 {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.cta-section p {
	font-size: 1.125rem;
	margin-bottom: 2rem;
	opacity: 0.95;
}

.btn {
	display: inline-block;
	padding: 0.875rem 2rem;
	background: white;
	color: var(--primary-green);
	text-decoration: none;
	border-radius: var(--radius-md);
	font-weight: 600;
	transition: var(--transition);
	border: 2px solid transparent;
}

.btn:hover {
	background: transparent;
	color: white;
	border-color: white;
	transform: translateY(-2px);
}

.btn-secondary {
	background: transparent;
	color: white;
	border: 2px solid white;
}

.btn-secondary:hover {
	background: white;
	color: var(--primary-green);
}

/* Footer */
.modern-footer {
	background: var(--text-primary);
	color: white;
	padding: 3rem 0 1.5rem;
	margin-top: 4rem;
}

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

.footer-section h4 {
	font-size: 1.125rem;
	margin-bottom: 1rem;
	color: var(--primary-light);
}

.footer-section ul {
	list-style: none;
}

.footer-section li {
	margin-bottom: 0.5rem;
}

.footer-section a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: var(--transition);
}

.footer-section a:hover {
	color: var(--primary-light);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 1.5rem;
	text-align: center;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.875rem;
}

/* Feature List */
.feature-list {
	background: var(--bg-primary);
	border-radius: var(--radius-lg);
	padding: 2rem;
	box-shadow: var(--shadow-sm);
}

.feature-list ul {
	list-style: none;
}

.feature-list li {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--border-color);
	color: var(--text-secondary);
	padding-left: 1.5rem;
	position: relative;
}

.feature-list li:last-child {
	border-bottom: none;
}

.feature-list li::before {
	content: '→';
	position: absolute;
	left: 0;
	color: var(--primary-green);
	font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
	.menu-toggle {
		display: flex;
	}

	.nav-menu {
		position: absolute;
		top: 70px;
		left: 0;
		right: 0;
		flex-direction: column;
		background: var(--bg-primary);
		box-shadow: var(--shadow-lg);
		padding: 1rem;
		gap: 0.5rem;
		display: none;
	}

	.nav-menu.active {
		display: flex;
	}

	.lang-selector {
		border-left: none;
		padding-left: 0;
		margin-left: 0;
		justify-content: center;
	}

	.header-banner h1 {
		font-size: 2rem;
	}

	.header-banner p {
		font-size: 1rem;
	}

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

	.two-column {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.footer-content {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 1rem;
	}

	.content-section {
		padding: 2rem 0;
	}

	.header-banner {
		padding: 2rem 0;
	}
}

/* Utility Classes */
.text-center {
	text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

/* Modern Photo Gallery */
.gallery-container {
	padding: 3rem 0;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
	padding: 2rem 0;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--bg-primary);
	box-shadow: var(--shadow-md);
	transition: var(--transition);
	cursor: pointer;
	aspect-ratio: 4/3;
}

.gallery-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.gallery-item:hover img {
	transform: scale(1.05);
}

.gallery-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1rem;
	background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
	color: white;
	font-size: 0.875rem;
	transform: translateY(100%);
	transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
	transform: translateY(0);
}

/* Lightbox */
.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.95);
	z-index: 10000;
	padding: 2rem;
	align-items: center;
	justify-content: center;
}

.lightbox.active {
	display: flex;
}

.lightbox-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	animation: lightboxZoom 0.3s ease-out;
}

@keyframes lightboxZoom {
	from {
		transform: scale(0.8);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.lightbox-image {
	max-width: 100%;
	max-height: 85vh;
	border-radius: var(--radius-lg);
	box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-caption {
	color: white;
	text-align: center;
	padding: 1rem;
	font-size: 1rem;
	max-width: 800px;
	margin: 1rem auto 0;
}

.lightbox-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: rgba(255,255,255,0.1);
	border: 2px solid white;
	color: white;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 2rem;
	font-weight: 300;
	transition: var(--transition);
	backdrop-filter: blur(10px);
}

.lightbox-close:hover {
	background: rgba(255,255,255,0.2);
	transform: rotate(90deg);
}

.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,0.1);
	border: 2px solid white;
	color: white;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 1.5rem;
	transition: var(--transition);
	backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
	background: rgba(255,255,255,0.2);
}

.lightbox-prev {
	left: 2rem;
}

.lightbox-next {
	right: 2rem;
}

/* Gallery Filter/Categories */
.gallery-filters {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.filter-btn {
	padding: 0.5rem 1.5rem;
	background: var(--bg-primary);
	border: 2px solid var(--border-color);
	border-radius: var(--radius-md);
	color: var(--text-secondary);
	font-weight: 500;
	cursor: pointer;
	transition: var(--transition);
}

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

.filter-btn.active {
	background: var(--primary-green);
	border-color: var(--primary-green);
	color: white;
}

/* Responsive Gallery */
@media (max-width: 768px) {
	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 1rem;
	}

	.lightbox-content {
		max-width: 95%;
	}

	.lightbox-nav,
	.lightbox-close {
		width: 40px;
		height: 40px;
		font-size: 1.25rem;
	}

	.lightbox-prev {
		left: 0.5rem;
	}

	.lightbox-next {
		right: 0.5rem;
	}

	.lightbox-close {
		top: 0.5rem;
		right: 0.5rem;
	}
}

@media (max-width: 480px) {
	.gallery-grid {
		grid-template-columns: 1fr;
	}
}
