/**
 * Main Styles for Flaha Agri Tech Website
 *
 * @format
 */

/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&display=swap");

/* CSS Variables for Brand Colors */
:root {
	/* Primary Colors */
	--flaha-green: #3d7a42;
	--tech-blue: #1e5f8c;
	--earth-brown: #8c6d4f;
	--neutral-gray: #bcbec0;

	/* Division Accent Colors */
	--la-accent: #8bc34a;
	--pa-accent: #2196f3;
	--ag-accent: #ff9800;

	/* Extended Palette */
	--green-dark: #2e5b31;
	--green-medium: #4a9350;
	--green-light: #6abf69;

	--blue-dark: #174869;
	--blue-medium: #2979b4;
	--blue-light: #64b5f6;

	--earth-dark: #6d543d;
	--earth-medium: #a68566;
	--earth-light: #d4b69b;

	--neutral-lightest: #f5f5f5;
	--neutral-light: #e0e0e0;
	--neutral-medium: #9e9e9e;
	--neutral-dark: #424242;

	/* Font Families */
	--font-primary: "Montserrat", sans-serif;
	--font-secondary: "Open Sans", sans-serif;
}

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

/* Full-page snap scrolling */
html {
	scroll-snap-type: y mandatory;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-secondary);
	font-size: 16px;
	line-height: 1.6;
	color: var(--neutral-dark);
	background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-primary);
	font-weight: 600;
	margin-bottom: 1rem;
}

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

a:hover {
	color: var(--blue-medium);
}

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

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

/* Preloader */
.preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	transition:
		opacity 0.5s ease,
		visibility 0.5s ease;
}

.preloader.hidden {
	opacity: 0;
	visibility: hidden;
}

.preloader-logo {
	width: 120px;
	height: 120px;
	animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
	0% {
		transform: scale(0.95);
		opacity: 0.7;
	}
	50% {
		transform: scale(1.05);
		opacity: 1;
	}
	100% {
		transform: scale(0.95);
		opacity: 0.7;
	}
}

/* Header and Navigation */
.header {
	background-color: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 100;
}

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
}

.logo {
	display: flex;
	align-items: center;
}

.logo img {
	height: 50px;
}

.nav-links {
	display: flex;
	list-style: none;
}

.nav-links li {
	margin-left: 1.5rem;
}

.nav-links a {
	font-family: var(--font-primary);
	font-weight: 500;
	color: var(--neutral-dark);
	text-transform: uppercase;
	font-size: 0.9rem;
	letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
	color: var(--flaha-green);
}

.mobile-menu-btn {
	display: none;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--neutral-dark);
}

/* Hero Section */
.hero {
	position: relative;
	height: 100vh;
	min-height: 100vh;
	background-size: cover;
	background-position: center;
	color: #fff;
	display: flex;
	align-items: center;
	scroll-snap-align: start;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 800px;
	padding: 0 1rem;
	margin: 0 auto;
	text-align: center;
}

.hero-title {
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
}

.hero-subtitle {
	font-size: 1.5rem;
	font-weight: 500;
	margin-bottom: 1.5rem;
}

/* Section Styles */
.section {
	padding: 4rem 0;
}

/* Snap Section for full-page scrolling */
.snap-section {
	scroll-snap-align: start;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.snap-section .container {
	width: 100%;
}

.section-title {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 3rem;
}

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

/* Grid System */
.grid {
	display: grid;
	gap: 2rem;
}

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

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

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

.grid-cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* Card Styles */
.card {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.card-content {
	padding: 1.5rem;
}

.card-title {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.card-text {
	color: var(--neutral-medium);
	margin-bottom: 1rem;
}

/* Button Styles */
.btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	font-family: var(--font-primary);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	font-size: 0.9rem;
}

.btn-primary {
	background-color: var(--flaha-green);
	color: #fff;
}

.btn-primary:hover {
	background-color: var(--green-dark);
	color: #fff;
}

.btn-secondary {
	background-color: var(--tech-blue);
	color: #fff;
}

.btn-secondary:hover {
	background-color: var(--blue-dark);
	color: #fff;
}

.btn-outline {
	background-color: transparent;
	border: 2px solid var(--flaha-green);
	color: var(--flaha-green);
}

.btn-outline:hover {
	background-color: var(--flaha-green);
	color: #fff;
}

/* Division-specific styles */
.la-accent {
	color: var(--la-accent);
}

.pa-accent {
	color: var(--pa-accent);
}

.ag-accent {
	color: var(--ag-accent);
}

.bg-flaha-green {
	background-color: var(--flaha-green);
	color: #fff;
}

.bg-tech-blue {
	background-color: var(--tech-blue);
	color: #fff;
}

.bg-earth-brown {
	background-color: var(--earth-brown);
	color: #fff;
}

.bg-la-accent {
	background-color: var(--la-accent);
	color: #fff;
}

.bg-pa-accent {
	background-color: var(--pa-accent);
	color: #fff;
}

.bg-ag-accent {
	background-color: var(--ag-accent);
	color: #fff;
}

.bg-neutral-lightest {
	background-color: var(--neutral-lightest);
}

/* Footer */
.footer {
	background-color: var(--neutral-dark);
	color: #fff;
	padding: 4rem 0 2rem;
	scroll-snap-align: start;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer .container {
	width: 100%;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	margin-bottom: 3rem;
}

.footer-logo img {
	height: 60px;
	margin-bottom: 1rem;
}

.footer-heading {
	font-size: 1.2rem;
	margin-bottom: 1.5rem;
	color: #fff;
}

.footer-links {
	list-style: none;
}

.footer-links li {
	margin-bottom: 0.75rem;
}

.footer-links a {
	color: var(--neutral-light);
}

.footer-links a:hover {
	color: #fff;
}

.footer-contact {
	margin-bottom: 0.75rem;
	display: flex;
	align-items: flex-start;
}

.footer-contact i {
	margin-right: 0.75rem;
	color: var(--flaha-green);
}

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

.social-links {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
}

.social-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	color: #fff;
	transition: background-color 0.3s ease;
}

.social-links a:hover {
	background-color: var(--flaha-green);
}

/* Form Styles */
.form-group {
	margin-bottom: 1.5rem;
}

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

.form-control {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--neutral-light);
	border-radius: 4px;
	font-family: var(--font-secondary);
	font-size: 1rem;
}

.form-control:focus {
	outline: none;
	border-color: var(--tech-blue);
	box-shadow: 0 0 0 2px rgba(30, 95, 140, 0.2);
}

textarea.form-control {
	min-height: 150px;
	resize: vertical;
}

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

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

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

.mx-auto {
	margin-left: auto;
	margin-right: auto;
}

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

.px-1 {
	padding-left: 0.25rem;
	padding-right: 0.25rem;
}
.px-2 {
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}
.px-3 {
	padding-left: 1rem;
	padding-right: 1rem;
}
.px-4 {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}
.px-5 {
	padding-left: 3rem;
	padding-right: 3rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
	.grid-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}

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

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

	.hero {
		height: 400px;
	}

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

	.hero-subtitle {
		font-size: 1.25rem;
	}

	.section {
		padding: 3rem 0;
	}

	.section-title {
		font-size: 2rem;
	}

	.mobile-menu-btn {
		display: block;
	}

	.nav-links {
		position: fixed;
		top: 80px;
		left: 0;
		width: 100%;
		background-color: #fff;
		flex-direction: column;
		align-items: center;
		padding: 1rem 0;
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
		transform: translateY(-100%);
		opacity: 0;
		visibility: hidden;
		transition: all 0.3s ease;
	}

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

	.nav-links li {
		margin: 0.75rem 0;
	}
}

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

	.hero-title {
		font-size: 2rem;
	}

	.section-title {
		font-size: 1.75rem;
	}
}
