@charset "utf-8";
/* CSS Document 

Tooplate 2148 Bistro Elegance

https://www.tooplate.com/view/2148-bistro-elegance

*/

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Arial', sans-serif;
	line-height: 1.6;
	color: #333;
	background: #fff;
	overflow-x: hidden;
}

/* Navigation */
nav {
	position: fixed;
	top: 0;
	width: 100%;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	z-index: 1000;
	padding: 1rem 0;
	transition: all 0.3s ease;
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 2rem;
}

.logo {
	font-size: 1.8rem;
	font-weight: bold;
	color: #333;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 10px;
	transition: all 0.3s ease;
}

.logo:hover {
	transform: translateY(-2px);
}

.logo svg {
	transition: transform 0.3s ease;
}

.logo:hover svg {
	transform: rotate(-10deg) scale(1.1);
}

.logo-text {
	display: flex;
	align-items: center;
	gap:8px;
}

.logo-text img{
	width: 50px;
	height: auto;
}

.nav-links {
	display: flex;
	list-style: none;
	gap: 2rem;
}

.nav-links a {
	text-decoration: none;
	color: #333;
	font-weight: 500;
	transition: all 0.3s ease;
	cursor: pointer;
	padding: 8px 16px;
	border-radius: 4px;
	position: relative;
}

.nav-links a:hover,
.nav-links a.active {
	color: #3c4ae7;
	border: 2px solid #3c5ee7;
}

.menu-toggle {
	display: none;
	flex-direction: column;
	cursor: pointer;
}

.menu-toggle span {
	width: 25px;
	height: 3px;
	background: #333;
	margin: 3px 0;
	transition: 0.3s;
}

/* Hero Section with Diagonal Grid */
.hero {
	height: 100vh;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.diagonal-grid {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 1;
}

.soft-block {
	position: absolute;
	height: 800px;
	background: #f0f0f0;
	transform: rotate(45deg);
	animation: moveBackForth 20s ease-in-out infinite;
	border-radius: 5px;
	opacity: 0.4;
}

@keyframes moveBackForth {

	0%,
	100% {
		transform: translateX(-50px) rotate(45deg);
	}

	50% {
		transform: translateX(50px) rotate(45deg);
	}
}

.static-decoration {
	position: absolute;
	top: 0;
	right: 0;
	width: 400px;
	height: 400px;
	pointer-events: none;
	z-index: 1;
}

.bottom-right-decoration {
	position: absolute;
	bottom: 80px;
	right: 0;
	width: 300px;
	height: 200px;
	pointer-events: none;
	z-index: 1;
}

.static-block {
	position: absolute;
	background: linear-gradient(45deg, #f0f0f0, #e5e5e5, #f5f5f5);
	transform: rotate(45deg);
	border-radius: 3px;
	opacity: 0.6;
}

.static-block-outline {
	position: absolute;
	background: transparent;
	border: 2px solid #e0e0e0;
	transform: rotate(45deg);
	border-radius: 3px;
	opacity: 0.6;
}

.red-block {
	position: absolute;
	background: #3c78e7;
	transform: rotate(45deg);
	border-radius: 4px;
	opacity: 0.7;
}

.red-block-outline {
	position: absolute;
	background: transparent;
	border: 2px solid #3c67e7;
	transform: rotate(45deg);
	border-radius: 4px;
	opacity: 0.7;
}

.hero-content {
	text-align: center;
	z-index: 2;
	max-width: 800px;
	padding: 0 2rem;
	margin-top: 100px;
}

.hero h1 {
	font-size: 3.5rem;
	margin-bottom: 1rem;
	animation: fadeInUp 1s ease;
}

.hero p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	color: #666;
	animation: fadeInUp 1s ease 0.3s both;
	position: relative;
	min-height: 2em;
	height: auto;
	display: flex;
	justify-content: center;
	align-items: center;
}

.text-option {
	position: absolute;
	width: 100%;
	text-align: center;
	left: 0;
	right: 0;
	opacity: 0;
	animation: textCycle 12s ease-in-out infinite;
	white-space: normal;
	padding: 0 20px;
}

.text-option:nth-child(1) {
	animation-delay: 0s;
}

.text-option:nth-child(2) {
	animation-delay: 4s;
}

.text-option:nth-child(3) {
	animation-delay: 8s;
}

@keyframes textCycle {

	0%,
	100% {
		opacity: 0;
		transform: translateY(20px) scale(0.95);
	}

	8%,
	25% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}

	33% {
		opacity: 0;
		transform: translateY(-20px) scale(0.95);
	}
}

.cta-btn {
	background: #3c89e7;
	color: white;
	padding: 1rem 2rem;
	border: none;
	border-radius: 50px;
	font-size: 1.1rem;
	cursor: pointer;
	transition: all 0.3s ease;
	animation: fadeInUp 1s ease 0.6s both;
	text-decoration: none;
	display: inline-block;
}

.cta-btn:hover {
	background: #c0392b;
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.home-section, .hero, .banner, header {
    height: auto !important;
    min-height: 100vh !important;
    padding-bottom: 80px;
}


/* Section Styles */
section {
	padding: 5rem 2rem;
	max-width: 1200px;
	margin: 0 auto;
	min-height: 100v;
	height: auto;
}

h2 {
	font-size: 2.5rem;
	text-align: center;
	margin-bottom: 3rem;
	color: #333;
	position: relative;
}

h2::after {
	content: '';
	position: absolute;
	bottom: -15px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background: #e0e0e0;
	border-radius: 2px;
}

/* Menu Section */

.data-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}


.menu-item {
	background: #f8f9fa;
	padding: 2rem;
	border-radius: 15px;
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.menu-item-image {
	width: 50px;
	height: 50px;
	border-radius: 10px;
	margin-bottom: 1.5rem;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.menu-item-image:hover {
	transform: scale(1.05);
}

.menu-item-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.menu-item:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.menu-item h3 {
	color: #333;
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

.menu-item p {
	color: #666;
	margin-bottom: 1rem;
}

.price {
	font-size: 1.2rem;
	font-weight: bold;
	color: #e74c3c;
	margin-top: auto;
	margin-bottom: 1rem;
}

.ingredients-btn {
	background: none;
	border: 2px solid #e74c3c;
	color: #e74c3c;
	padding: 0.5rem 1rem;
	border-radius: 25px;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 1rem;
}

.ingredients-btn:hover {
	background: #e74c3c;
	color: white;
}

.info-box {
    background-color: #afc3f3;
    padding: 20px;
    border-radius: 10px;
    width: 400px;     /* panjang ke samping */
    margin: 20px auto;
    /* tidak ada height! biarkan otomatis */
}

.text-besar {
    font-size: 14px;
	font-family:Arial, Helvetica, sans-serif;
}

.text-kecil {
    font-size: 12px;
	font-family:Arial, Helvetica, sans-serif;
}





/* Ingredients Modal */
.modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	animation: fadeIn 0.3s ease;
}

.modal-content {
	background: white;
	margin: 10% auto;
	padding: 2rem;
	border-radius: 15px;
	width: 90%;
	max-width: 500px;
	position: relative;
	animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes slideIn {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.close {
	position: absolute;
	right: 1rem;
	top: 1rem;
	font-size: 2rem;
	cursor: pointer;
	color: #999;
}

.close:hover {
	color: #333;
}

.ingredient-list {
	list-style: none;
	margin-top: 1rem;
}

.ingredient-list li {
	padding: 0.5rem 0;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
}

.allergen {
	color: #e74c3c;
	font-weight: bold;
}

/* Reservation Section */
/* Baris yang berisi peta + legend */
.map-row {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* Kontainer frame peta (dibungkus sendiri) */
.map-container {
    width: 100%;
    height: auto;
    display: block;
}



/* iframe peta */
.qgis-map {
    width: 100%;
    height: 500px;
    border: none;
}


/* Kotak ikon legend */
.legend-color {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    margin-right: 10px;
    border: 1px solid #222;
    display: inline-block;

    /* Animasi ikon */
    animation: pulse 2s infinite ease-in-out;
}

/* Animasi kotak */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.legend-custom {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 18px;
    margin-left: 30px;
    margin-top: 40px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.legend-item:hover {
    transform: translateX(5px);
}

.legend-color {
    width: 22px;
    height: 22px;
    border-radius: 6px; /* BIAR LEBIH IKON-LOOK */
    display: inline-block;
    transition: transform 0.2s ease;
    border: 1px solid #3333;
}

.legend-item:hover .legend-color {
    transform: scale(1.15);
}


.map-description {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    line-height: 1.7;
    font-size: 18px;
}

.map-description h3 {
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}



@media (max-width: 992px) {
    .qgis-map {
        height: 700px;   /* tetap besar di tablet */
    }
}

@media (max-width: 768px) {
    .qgis-map {
        height: 550px;   /* HP besar */
    }
}

@media (max-width: 480px) {
    .qgis-map {
        height: 400px;   /* HP kecil */
    }
}


.rekomendasi-section {
    width: 100%;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    background: #f8f8f8;
}

.container-box {
    width: 90%;
    max-width: 1100px;
    display: flex;
    gap: 20px;
}

.box {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-left: 8px solid #1976d2;
}

.left-box {
    border-left-color: #1976d2; /* biru */
}

.right-box {
    border-left-color: #2e7d32; /* hijau */
}

.box h2 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

.box p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #444;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .container-box {
        flex-direction: column;
    }
}


/* ================================
   2 PETA BERDAMPINGAN (MAP WRAPPER)
   ================================ */

.map-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap; /* Supaya responsif */
    margin-bottom: 40px;
}

.map-box {
    width: 48%;
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.map-box h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

/* ukuran map QGIS */
.map-box .qgis-map {
    width: 100%;
    height: 430px;
    border: none;
    border-radius: 10px;
}

/* gambar map (peta kanan) */
.static-map {
    width: 100%;
    border-radius: 10px;
}

/* ANALISIS DI BAWAH PETA */
.map-analysis {
    width: 100%;
    background: #fafafa;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.map-analysis h3 {
    text-align: center;
    margin-bottom: 15px;
}


/* ================================
   RESPONSIVE HP / TABLET
   ================================ */

@media (max-width: 992px) {
    .map-box {
        width: 100%;
    }

    .map-box .qgis-map {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .map-box .qgis-map {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .map-box .qgis-map {
        height: 350px;
    }
}




/* Footer */
footer {
	background: #333;
	color: white;
	text-align: center;
	padding: 3rem 2rem;
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.footer-section h3 {
	margin-bottom: 1rem;
	color: #e74c3c;
}

.footer-section p,
.footer-section a {
	color: #ccc;
	text-decoration: none;
	line-height: 1.8;
}

.footer-section a:hover {
	color: #e74c3c;
}

.footer-links {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 1rem;
}

.footer-links a {
	color: #ccc;
	text-decoration: none;
	padding: 0 10px;
	transition: color 0.3s ease;
}

.footer-links a:hover {
	color: #e74c3c;
}

.footer-links span {
	color: #555;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.nav-links {
		position: fixed;
		top: 70px;
		left: -100%;
		width: 100%;
		height: calc(100vh - 70px);
		background: white;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		padding-top: 2rem;
		transition: left 0.3s ease;
	}

	.nav-links.active {
		left: 0;
	}

	.menu-toggle {
		display: flex;
	}

	.hero-content {
		margin-top: 80px;
		margin-bottom: 80px;
	}

	.hero h1 {
		font-size: 2.5rem;
	}

	.hero p {
		font-size: 1rem;
	}

	h2 {
		font-size: 2rem;
	}

	section {
		padding: 3rem 1rem;
	}

	.reservation {
		padding: 2rem 1rem;
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.reservation-right {
		min-height: 300px;
	}

	.modal-content {
		width: 95%;
		margin: 20% auto;
	}
}

@media (max-width: 480px) {
	.hero-content {
		margin-top: 80px;
		margin-bottom: 80px;
	}

	.hero h1 {
		font-size: 2rem;
	}

	.menu-grid {
		grid-template-columns: 1fr;
	}

	.reservation-form {
		grid-template-columns: 1fr;
	}
}


/* ===========================
   BACKGROUND KIRI & KANAN
   UNTUK REKOMENDASI SECTION
   =========================== */

.rekomendasi-section {
    position: relative;
    overflow: hidden; /* Supaya gambar tidak keluar */
    background: #f8f8f8;
}

/* Background kiri */
.rekomendasi-section::before {
    content: "";
    position: absolute;
    left: -50px;          /* geser lebih kiri */
    top: 50%;
    transform: translateY(-50%);
    width: 380px;         /* ukuran gambar */
    height: 380px;
    background-image: url("images/data\ tpt.png"); /* ganti sesuai file kamu */
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.18;        /* transparansi */
    pointer-events: none; /* tidak mengganggu klik */
}

/* Background kanan */
.rekomendasi-section::after {
    content: "";
    position: absolute;
    right: -50px;         /* geser lebih kanan */
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    height: 380px;
    background-image: url("images/data\ kemiskinan.png"); /* ganti sesuai file kamu */
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.18;
    pointer-events: none;
}

/* RESPONSIVE: HP → gambar lebih kecil */
@media (max-width: 768px) {
    .rekomendasi-section::before,
    .rekomendasi-section::after {
        width: 220px;
        height: 220px;
        opacity: 0.12;
    }
}

@media (max-width: 480px) {
    .rekomendasi-section::before,
    .rekomendasi-section::after {
        width: 150px;
        height: 150px;
        opacity: 0.10;
    }
}


/* menu-item KEMBALIKAN jadi block */
#menu .menu-item {
    display: block;
}

/* grid 2 kolom */
#menu .data-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

/* card kiri & kanan */
#menu .data-card {
    flex: 0 0 45%;
    max-width: 45%;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
}

/* HAPUS background biru info-box */
#menu .info-box {
    background: none;
    padding: 0;
    margin-top: 10px;
    width: auto;
}

/* teks */
#menu .text-besar {
    font-weight: bold;
    margin-top: 10px;
}

#menu .text-kecil {
    color: #555;
    margin-top: 5px;
}

/* RESPONSIVE HP */
@media (max-width: 768px) {
    #menu .data-grid {
        flex-direction: column;
    }

    #menu .data-card {
        max-width: 100%;
    }
}



/* =========================
   HERO BACKGROUND FOTO + OVERLAY GELAP
   ========================= */

.hero {
    background: url("images/background_kemiskinan.jpg") center / cover no-repeat;
    position: relative;
}

/* layer gelap */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); /* tingkat gelap (0.4–0.7) */
    z-index: 1;
}

/* pastikan konten di atas overlay */
.hero-content {
    position: relative;
    z-index: 2;
}

/* teks jadi putih biar kontras */
.hero h2,
.hero p,
.hero .text-option {
    color: #ffffff;
}

/* tombol lebih kontras */
.hero .cta-btn {
    background: #1e88e5;
}

.hero .cta-btn:hover {
    background: #1565c0;
}



/* =========================
   LABEL KOTAK DI ATAS GAMBAR DATA
   ========================= */

#menu .data-card {
    position: relative;
    overflow: hidden;
}

/* kotak label */
#menu .data-label {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(25, 118, 210, 0.9);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* beda warna untuk non spasial */
#menu .data-card:nth-child(2) .data-label {
    background: rgba(46, 125, 50, 0.9);
}

/* kasih jarak supaya label tidak nutup gambar */
#menu .data-img {
    margin-top: 50px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #menu .data-label {
        font-size: 12px;
        padding: 6px 16px;
    }
}
