/* -------------------------
   Global Styles for Kampunging
   ------------------------- */

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

:root {
	--color-primary: #ffffff;
	--color-accent: #ec008c;
	--color-text: #000000;

	--max-width: 1440px; /* content width */
	--frame-width: 1920px; /* design frame width */

	--font-base: "Noto Sans SC", sans-serif;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-base);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background-color: var(--color-primary);
}

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

@media (max-width: 1024px) {
	.container {
		padding: 0 20px;
	}
}

a {
	text-decoration: none;
}

.title-image {
	width: 100%;
	display: flex;
	justify-content: center;
}

/* -------------------------
   Navigation
   ------------------------- */

header {
	background: var(--color-primary);
	border-bottom: 1px solid #eaeaea; /* optional */
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
}

/* Logo */
.logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Nav Links */
.nav-links {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 2rem;
}

.nav-links a {
	font-size: 1rem;
	font-weight: 500;
	line-height: 50px;
	color: var(--color-text);
	transition: color 0.3s ease;
}

.nav-links a:hover {
	color: var(--color-accent);
}

/* Call-to-Action */
.nav-cta .btn-accent {
	background: var(--color-accent);
	font-size: 0.875rem; /*14px*/
	font-weight: 500;
	line-height: 30px;
	color: #fff;
	padding: 12px 40px;
	border-radius: 30px;
	font-weight: 400;
	transition: background 0.3s ease;
}

.nav-cta .btn-accent:hover {
	background: #b80069; /* darker pink */
	color: #fff;
}

/* Hamburger hidden by default */
.nav-right {
	display: none;
	align-items: center;
	gap: 10px;
}

.hamburger {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 24px;
	height: 18px;
	cursor: pointer;
	z-index: 1100;
}

.hamburger span {
	display: block;
	height: 3px;
	background: #000;
	border-radius: 2px;
	transition: all 0.3s ease;
}

/* Default nav */
.nav-links {
	display: flex;
	gap: 2rem;
	list-style: none;
}

.hamburger.open span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
	opacity: 0;
}
.hamburger.open span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

.nav-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6); /* semi-transparent black */
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
	z-index: 900; /* lower than nav-links (1000) but above content */
}

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

.mobile-only {
	display: none;
}
.desktop-only {
	display: block;
}

/* -------------------------
   Hero Section
   ------------------------- */

.hero-section {
	position: relative;
	background: linear-gradient(to bottom, #ffffff 0%, #8395af 100%); /* adjust bg */
	overflow: hidden; /* ensures image can bleed out cleanly */
	padding: 80px 0;
	max-height: 800px;
}

.hero-container {
	display: flex;
	gap: 20px;
	padding-right: 16px;
}

/* Left Image (breaks out of container) */
.hero-image {
	flex: 0 1 800px;
	position: relative;
}

.hero-image img {
	width: 150%; /* extend beyond the container */
	max-width: 1920px; /* ignore container's max */
	transform: translate(-32%, -40%); /* shift left out of 1440px grid */
}

/* Right Content */

.hero-title img {
	max-width: 100%; /* never overflow parent */
	height: auto; /* keep aspect ratio */
	display: block; /* removes inline gap */
}

.hero-content {
	width: 40%;
	display: flex;
	flex-direction: column;
	padding-top: 40px;
}

.hero-subtitle {
	padding-left: 16px;
}

.hero-content h2 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 20px;
}

.hero-content h2 .highlight {
	color: var(--color-accent);
}

.hero-content h3 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 20px;
}

.hero-content p {
	margin-bottom: 20px;
	font-size: 1rem;
	line-height: 1.8;
}

/* CTA */
.hero-content .btn-accent {
	background: var(--color-accent);
	padding: 14px 40px;
	border-radius: 30px;
	color: #fff;
	font-weight: 400;
	transition: background 0.3s ease;
}

.hero-content .btn-accent:hover {
	background: #b80069;
}

@media (max-width: 1024px) {
	.hero-subtitle {
		padding-top: 8px;
		padding-left: 8px;
	}

	.hero-container {
		padding: 0;
	}
}

/* -------------------------
   Event Section (Flexbox)
   ------------------------- */

.event-section {
	position: relative;
	padding-top: 60px;
	background: linear-gradient(to bottom, #8395af 9%, #ffffff 100%);
	overflow: hidden;
}

/* Flex container */
.event-content {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	gap: 30px;
	height: 100%;
}

.event-info {
	display: flex;
	flex: 1;
	gap: 30px;
	flex-direction: column;
	width: 50%;
	justify-content: space-between;
}

.event-image {
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 50%;
}

.event-image img {
	width: 100%;
	height: 100%;
	border-radius: 16px;
	object-fit: cover;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Cards */
.card {
	display: flex;
	height: 100%;
	justify-content: center;
	flex-direction: column;
	background: #fff;
	padding: 48px 24px 48px 56px;
	border-radius: 16px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	gap: 24px;
}

.card p,
.card a {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1rem;
	line-height: 1.6;
}

.card a {
	text-decoration: underline;
	color: #000;
}

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

.card img {
	width: 40px;
	height: 40px;
}

.bottom-card {
	padding: 48px 40px 48px 56px;
}

/* Note text */
.note {
	font-size: 0.875rem; /*14 px*/
	color: #000;
	font-weight: 700;
	line-height: 30px;
	margin-top: 10px;
}

/* CTA Button */
.event-cta {
	text-align: center;
	margin-top: 40px;
}

.btn-accent {
	background: var(--color-accent);
	color: #fff;
	padding: 14px 40px;
	border-radius: 30px;
	border: none;
	font-weight: 400;
	display: inline-block;
	transition: background 0.3s ease;
}

.btn-accent:hover {
	background: #b80069;
	cursor: pointer;
}

/* -------------------------
   Highlight Section
   ------------------------- */
.highlight-section {
	padding-top: 60px;
	text-align: center;
}

.highlight-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 36px;
	padding-top: 60px;
}

.highlight-card {
	background: #17479e; /* dark blue background */
	color: #fff;
	border-radius: 16px;
	padding: 60px 24px;
	text-align: left;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	gap: 16px;
}

.highlight-card-right {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.highlight-card-right a {
	color: #ffffff; /* accent color for links */
	text-decoration: underline;
	font-weight: 400;
	margin-left: 4px;
}

.highlight-card img {
	width: 90px;
	height: 90px;
}

.highlight-card h3 {
	font-size: 1.25rem;
	line-height: 24px;
	font-weight: 700;
}

.highlight-card p {
	font-size: 1rem;
	line-height: 24px;
	font-weight: 400;
}

/* -------------------------
   Village Section
   ------------------------- */

.village-section {
	padding-top: 60px;
	text-align: center;
	background: linear-gradient(to bottom, #ffffff 0%, rgba(131, 149, 175, 0.8) 47%, #ffffff 100%);
}

.village-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr); /* 4 per row */
	gap: 24px;
	padding-top: 24px;
}

.village-card {
	position: relative;
	display: flex;
	flex-direction: column; /* stack vertically */
	align-items: flex-start; /* center horizontally */
	justify-content: flex-end; /* push text to bottom if you want */
	border-radius: 16px;
	overflow: hidden;
	background: #f9f9f9;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	aspect-ratio: 1/1;
}

/* Full-size image inside the card */
.village-card img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover; /* ensures image fills card */
	z-index: 1;
}

/* Text on top of the image */
.village-card p {
	position: relative;
	z-index: 2;
	color: #fff;
	font-size: 1.125rem; /*18px*/
	font-weight: 500;
	text-align: left;
	margin: 0 0 24px 36px;
	padding: 8px;
	border-radius: 8px;
}

.village-link-card {
	display: flex;
	flex-direction: column;
	margin: 0 0 24px 36px;
	gap: 0;
}

.village-link-card p {
	margin: 0;
	padding: 0;
}

/* Optional link style */
.village-card a {
	display: inline-block;
	color: #fff;
	font-size: 0.875rem; /*14px*/
	font-weight: 400;
	line-height: 24px;
	text-decoration: underline;
}

/* -------------------------
   Products Section
   ------------------------- */
.products-section {
	padding-bottom: 64px;
	padding-top: 60px;
}

.products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-top: 40px;
}

.product-card {
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
}

.product-card img {
	width: 100%;
	/*max-width: 100%;
	height: auto;*/
	border-radius: 20px;
	display: block;
}

.hidden-card {
	display: none; /* stay hidden until toggled */
}

.see-more-btn {
	display: flex;
	justify-content: center;
	padding-top: 36px;
}

/* -------------------------
   Closing Section
   ------------------------- */

.closing-section {
	position: relative;
	background: url("assets/closing-bg.png") no-repeat center center/cover;
	height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.closing-content {
	text-align: center;
	color: #fff;
	max-width: 800px;
}

.closing-text {
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.8;
	margin-bottom: 20px;
}
.closing-social-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 30px;
}
.closing-subtext {
	font-size: 1rem;
	line-height: 2.5;
}

.closing-socials a {
	margin: 0 10px;
	display: inline-block;
}

.closing-socials img {
	width: 32px;
	height: 32px;
	transition: transform 0.3s ease;
}

.closing-socials img:hover {
	transform: scale(1.1);
}

@media (max-width: 525px) {
	.closing-social-cta {
		flex-direction: column;
	}
}

/* -------------------------
   Footer Section
   ------------------------- */

.footer-section {
	background: linear-gradient(to bottom, #ffffff 0%, #97a6bc 100%);
	padding: 40px 20px;
	text-align: center;
}

.footer-logos {
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin-bottom: 64px;
	margin-top: 75px;
	padding: 0;
}

.footer-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
}

.footer-first-row {
	display: flex;
	align-items: center;
	justify-content: center;
}

.first-row-middle {
	padding-left: 20px;
	margin-right: 20px;
	border-left: 1px solid #c9c9c9;
	border-right: 1px solid #c9c9c9;
}

.logo-pos {
	margin-right: 20px;
}

.footer-row p {
	font-weight: 600;
	line-height: 26px;
	font-size: 1rem;
	color: #17479e;
}

.footer-row img {
	height: 60px;
	object-fit: contain;
	margin-right: 40px;
	max-width: 130px;
}

.footer-bottom {
	padding-top: 15px;
	font-size: 1rem;
	line-height: 1.6;
	color: #000;
}

@media (max-width: 768px) {
	/* -------------------------
   		Hero Section
   ------------------------- */

	.hero-section {
		max-height: none;
	}

	.hero-container {
		flex-direction: column; /* stack image and content */
		align-items: center;
		text-align: center; /* center align text */
		gap: 20px;
	}

	.hero-image {
		flex: 0 1 auto; /* reset desktop flex sizing */
		width: 100%;
		height: auto;
		display: flex;
		justify-content: center;
	}

	.hero-image img {
		width: 120%; /* scale down properly */
		max-width: 800px; /* keep it tidy */
		transform: none; /* reset the shift */
		transform: translate(-15%, -45%); /* shift left out of 1440px grid */
	}

	.hero-content {
		margin-top: -275px;
		width: 100%;
		align-items: flex-start;
		max-width: 100%; /* allow full width for text */
		padding: 0 10px;
	}

	.hero-title img {
		width: 100%; /* scale hero title image */
		height: auto;
	}

	.hero-subtitle {
		text-align: left;
	}

	/* -------------------------
   		Events Section
   ------------------------- */

	.event-content {
		display: flex;
		flex-direction: column-reverse;
		justify-content: space-between;
		gap: 20px;
	}

	.event-info {
		width: 100%;
	}

	.event-image {
		width: 100%;
	}

	.event-image img {
		aspect-ratio: 4 / 3;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	/* -------------------------
   		Highlight Section
   ------------------------- */

	.highlight-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}

	.highlight-card img {
		width: 75px;
		height: 75px;
	}

	.highlight-card {
		padding: 40px 16px;
	}

	/* -------------------------
   		Village Section
   ------------------------- */
	.village-grid {
		grid-template-columns: repeat(3, 1fr); /* 4 per row */
		gap: 24px;
	}

	.village-card p {
		font-size: 1rem;
		font-weight: 600;
		text-align: left;
		margin: 0 0 8px 8px;
	}

	.village-link-card {
		font-weight: 600;
		text-align: left;
		margin: 0 0 8px 8px;
	}

	/* -------------------------
   		Products Section
   ------------------------- */
	.products-section .title-image img {
		width: 70%;
	}

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

	/* -------------------------
   		Closing Section
   ------------------------- */

	/* -------------------------
   		Footer Section
   ------------------------- */
	.footer-first-row {
		flex-wrap: wrap;
		gap: 16px;
	}
	.footer-row img {
		margin-right: 16px;
	}
}

@media (max-width: 500px) {
	/* -------------------------
   		Navigation Section
   ------------------------- */
	.desktop-only {
		display: none;
	}
	.mobile-only {
		display: block;
	}
	.hamburger {
		display: flex;
	}

	.nav-right {
		display: flex;
	}

	.nav-links {
		position: fixed;
		top: 0;
		right: -100%;
		width: 90%; /* drawer style */
		height: 100vh;
		background: #fff;
		flex-direction: column;
		justify-content: flex-start;
		align-items: flex-start;
		padding: 8rem 0 8rem 2.25rem;
		gap: 2rem;
		transition: right 0.3s ease-in-out;
		z-index: 1000;
	}

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

	.desktop-only {
		display: none;
	}
	.mobile-only {
		display: block;
	}

	/* -------------------------
   		Hero Section
   ------------------------- */
	.hero-section {
		padding-bottom: 60px;
	}
	.hero-content {
		margin-top: -225px;
		padding: 0 14px;
	}

	.hero-image {
		flex: 0 1 500px;
		width: 130%;
	}
	.hero-image img {
		transform: translate(-15%, -40%);
	}

	/* -------------------------
   		Events Section
   ------------------------- */
	.card {
		padding: 36px 30px;
	}

	.event-cta .btn-accent {
		padding: 14px 64px;
		font-weight: 400;
		font-size: 1rem;
	}

	.event-section {
		padding-top: 0;
	}

	.event-info {
		gap: 20px;
	}

	/* -------------------------
   		Highlight Section
   ------------------------- */

	.highlight-grid {
		grid-template-columns: repeat(1, 1fr);
		gap: 16px;
	}

	.highlight-card p {
		font-size: 0.875rem;
	}

	.highlight-card img {
		width: 75px;
		height: 75px;
	}

	.highlight-card {
		padding: 50px 20px;
		gap: 12px;
	}

	/* -------------------------
   		Village Section
   ------------------------- */
	.village-grid {
		grid-template-columns: repeat(2, 1fr); /* 4 per row */
		gap: 12px;
	}

	.village-card p {
		font-size: 0.875rem;
		font-weight: 600;
		text-align: left;
		margin: 0 4px 18px 24px;
		padding: 0;
	}

	.village-link-card p {
		font-weight: 600;
		text-align: left;
		margin: 0 4px 0 16px;
	}

	/* -------------------------
   		Products Section
   ------------------------- */
	.products-section .title-image img {
		width: 70%;
	}

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

	.see-more-btn .btn-accent {
		padding: 14px 64px;
		font-weight: 400;
		font-size: 1rem;
	}

	/* -------------------------
   		Closing Section
   ------------------------- */
	.closing-text {
		font-size: 1.25rem;
		font-weight: 400;
		line-height: 1.5;
		margin-bottom: 20px;
	}
	.closing-social-cta {
		gap: 10px;
	}

	/* -------------------------
   		Footer Section
   ------------------------- */
	.first-row-middle {
		padding-left: 0;
		margin-right: 0;
		border: none;
	}

	.footer-logos {
		justify-content: flex-start;
	}

	.footer-first-row {
		justify-content: flex-start;
		gap: 30px;
	}

	.footer-second-row .footer-row {
		gap: 20px;
	}

	.footer-row {
		justify-content: flex-start;
	}
}
