/* ========================================================
   homepage.css — PT Tapal Koeda Indonesia (Takindo)
   Styles for the public homepage (index.php)
   ======================================================== */

/* ========== BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
body {
	font-family: 'Inter', 'Poppins', sans-serif;
	color: #1a1a1a;
	background: #fff;
	margin: 0;
}

/* ========== SLIDER ========== */
.slick-next { right: 25px; }
.slick-prev { z-index: 100; left: 25px; }
.slick-slide img { display: initial; }

.hero-slide {
	width: 100%;
	position: relative;
	overflow: hidden;
}
.hero-slide img {
	width: 100%;
	height: 85vh;
	object-fit: cover;
	display: block;
}
.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10,30,15,0.72) 0%, rgba(10,30,15,0.25) 60%, transparent 100%);
	display: flex;
	align-items: center;
}
.hero-text {
	padding: 0 60px;
	max-width: 640px;
	color: white;
	animation: fadeSlideUp 0.8s ease both;
}
.hero-tag {
	display: inline-block;
	background: #65AD5E;
	color: white;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 6px 18px;
	border-radius: 30px;
	margin-bottom: 18px;
}
.hero-text h1 {
	font-family: 'Playfair Display', serif;
	font-size: clamp(32px, 5vw, 58px);
	line-height: 1.15;
	margin: 0 0 16px;
	font-weight: 700;
}
.hero-text p {
	font-size: 16px;
	line-height: 1.7;
	opacity: 0.9;
	margin: 0 0 28px;
}
.hero-btn {
	display: inline-block;
	background: #65AD5E;
	color: white;
	padding: 14px 36px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.25s, transform 0.2s;
	border: 2px solid #65AD5E;
}
.hero-btn:hover {
	background: transparent;
	color: white;
	transform: translateY(-2px);
}
.hero-btn-outline {
	display: inline-block;
	color: white;
	padding: 14px 36px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid rgba(255,255,255,0.5);
	margin-left: 12px;
	transition: border-color 0.25s, background 0.25s;
}
.hero-btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); color: white; }

/* ========== SECTION PATTERNS ========== */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-label {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: #65AD5E;
	margin-bottom: 12px;
}
.section-title {
	font-size: clamp(24px, 3.5vw, 38px);
	font-weight: 800;
	color: #1a2e1a;
	margin: 0 0 16px;
	line-height: 1.2;
}
.section-title span { color: #4A6645; }
.section-desc {
	font-size: 15px;
	line-height: 1.8;
	color: #5a6872;
	max-width: 580px;
}
.divider-line {
	width: 56px;
	height: 4px;
	background: linear-gradient(90deg, #4A6645, #65AD5E);
	border-radius: 2px;
	margin: 16px 0 24px;
}
.divider-line.center { margin: 16px auto 24px; }

/* ========== ABOUT US ========== */
.about-section { background: #fff; }
.about-icon-box {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 20px;
}
.about-icon {
	width: 48px;
	height: 48px;
	min-width: 48px;
	background: linear-gradient(135deg, #4A6645, #65AD5E);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}
.about-card {
	background: linear-gradient(135deg, #4A6645 0%, #2d6a4f 100%);
	border-radius: 20px;
	padding: 40px;
	color: white;
	position: relative;
	overflow: hidden;
}
.about-card::before {
	content: '';
	position: absolute;
	top: -40px; right: -40px;
	width: 200px; height: 200px;
	background: rgba(255,255,255,0.06);
	border-radius: 50%;
}
.about-card .stat {
	font-size: 42px;
	font-weight: 800;
	line-height: 1;
	color: #b8f5b0;
}
.about-card .stat-label {
	font-size: 13px;
	opacity: 0.8;
	margin-top: 4px;
}
.about-stat-row {
	display: flex;
	gap: 20px;
	margin-top: 30px;
	border-top: 1px solid rgba(255,255,255,0.2);
	padding-top: 24px;
}
.about-stat-item { flex: 1; }

/* ========== HISTORY ========== */
.history-section { background: #f7faf7; }
.timeline-item {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	margin-bottom: 32px;
}
.timeline-dot {
	min-width: 56px;
	height: 56px;
	background: linear-gradient(135deg, #4A6645, #65AD5E);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: 800;
	font-size: 11px;
	text-align: center;
	line-height: 1.2;
	flex-shrink: 0;
}
.timeline-content h5 {
	font-size: 16px;
	font-weight: 700;
	color: #1a2e1a;
	margin: 0 0 6px;
}
.timeline-content p {
	font-size: 14px;
	color: #5a6872;
	line-height: 1.7;
	margin: 0;
}

/* ========== POSITION SECTION ========== */
.position-section {
	background: linear-gradient(135deg, #1a2e1a 0%, #2d5a2d 50%, #4A6645 100%);
	color: white;
	position: relative;
	overflow: hidden;
}
.position-section::before {
	content: '';
	position: absolute;
	top: -100px; right: -100px;
	width: 400px; height: 400px;
	background: rgba(255,255,255,0.03);
	border-radius: 50%;
}
.position-section::after {
	content: '';
	position: absolute;
	bottom: -80px; left: -80px;
	width: 300px; height: 300px;
	background: rgba(255,255,255,0.03);
	border-radius: 50%;
}
.position-badge {
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.2);
	color: white;
	display: inline-block;
	padding: 8px 20px;
	border-radius: 30px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 20px;
}
.position-highlight {
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: 20px;
	padding: 36px;
	backdrop-filter: blur(10px);
}

/* ========== MISSION CARDS ========== */
.mission-section { background: #fff; }
.mission-card {
	background: white;
	border-radius: 16px;
	padding: 32px 28px;
	height: 100%;
	box-shadow: 0 4px 24px rgba(0,0,0,0.06);
	border-top: 4px solid #4A6645;
	transition: transform 0.25s, box-shadow 0.25s;
	position: relative;
	overflow: hidden;
}
.mission-card:nth-child(2) { border-top-color: #65AD5E; }
.mission-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 40px rgba(74,102,69,0.15);
}
.mission-card-icon {
	width: 52px;
	height: 52px;
	background: linear-gradient(135deg, #e8f5e4, #c8e6c0);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 18px;
}
.mission-card h5 {
	font-size: 16px;
	font-weight: 700;
	color: #1a2e1a;
	margin: 0 0 12px;
}
.mission-card p {
	font-size: 13.5px;
	line-height: 1.8;
	color: #5a6872;
	margin: 0;
}

/* ========== STATS ========== */
.stats-section {
	background: linear-gradient(135deg, #4A6645 0%, #65AD5E 100%);
	color: white;
}
.stat-card {
	text-align: center;
	padding: 30px 20px;
}
.stat-number {
	font-size: 56px;
	font-weight: 800;
	line-height: 1;
	color: white;
}
.stat-number sup {
	font-size: 28px;
	font-weight: 700;
}
.stat-unit {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	opacity: 0.75;
	text-transform: uppercase;
	margin-top: 8px;
}
.stat-divider {
	width: 1px;
	background: rgba(255,255,255,0.2);
	height: 80px;
	align-self: center;
}

/* ========== COVERAGE ========== */
.coverage-section { background: #f7faf7; }
.principal-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: white;
	border: 1.5px solid #e0eede;
	border-radius: 50px;
	padding: 10px 24px;
	font-weight: 700;
	font-size: 15px;
	color: #2d5a2d;
	margin: 6px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.principal-pill:hover {
	border-color: #65AD5E;
	box-shadow: 0 4px 16px rgba(74,102,69,0.12);
}
.coverage-info {
	background: white;
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.coverage-info h6 {
	font-size: 14px;
	font-weight: 700;
	color: #4A6645;
	margin: 0 0 8px;
}
.coverage-info p {
	font-size: 13.5px;
	color: #5a6872;
	line-height: 1.7;
	margin: 0;
}

/* ========== VISION ========== */
.vision-section { background: #1a2e1a; color: white; }
.vision-card {
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 20px;
	padding: 40px 32px;
	text-align: center;
	height: 100%;
	transition: background 0.3s, transform 0.3s;
}
.vision-card:hover {
	background: rgba(255,255,255,0.1);
	transform: translateY(-4px);
}
.vision-card .icon {
	font-size: 44px;
	margin-bottom: 16px;
	display: block;
}
.vision-card h4 {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 1px;
	margin: 0 0 14px;
	color: #b8f5b0;
}
.vision-card p {
	font-size: 13.5px;
	line-height: 1.8;
	opacity: 0.8;
	margin: 0;
}

/* ========== PRODUCTS ========== */
.products-section { background: #fff; }
.product-card {
	border-radius: 20px;
	padding: 36px 24px;
	text-align: center;
	color: white;
	text-decoration: none;
	display: block;
	transition: transform 0.28s, box-shadow 0.28s;
	position: relative;
	overflow: hidden;
}
.product-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255,255,255,0.05);
	opacity: 0;
	transition: opacity 0.3s;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.product-card:hover::before { opacity: 1; }
.product-card .icon { font-size: 44px; margin-bottom: 14px; display: block; }
.product-card h5 { font-size: 15px; font-weight: 800; letter-spacing: 1.5px; margin: 0 0 8px; }
.product-card span { font-size: 12px; opacity: 0.8; font-weight: 500; }
.pc-1 { background: linear-gradient(145deg, #2d6a4f, #52b788); }
.pc-2 { background: linear-gradient(145deg, #4A6645, #65AD5E); }
.pc-3 { background: linear-gradient(145deg, #1b4332, #40916c); }
.pc-4 { background: linear-gradient(145deg, #386641, #6a994e); }

/* ========== BUTTONS ========== */
.btn-primary-green {
	display: inline-block;
	background: #4A6645;
	color: white;
	padding: 14px 36px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid #4A6645;
	transition: all 0.25s;
}
.btn-primary-green:hover {
	background: transparent;
	color: #4A6645;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeSlideUp {
	from { opacity: 0; transform: translateY(30px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Fade-up animation - now handled by WOW.js + Animate.css */
/* Keeping for backward compatibility if needed */
.fade-up {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
	.hero-text { padding: 0 24px; }
	.hero-text h1 { font-size: 28px; }
	.section { padding: 60px 0; }
}
