/* =========================================
   1. CSS VARIABLES
   ========================================= */
:root {
	/* Branding Colors */
	--primary-blue: #0263ff;
	--primary-orange: #ff7200;
	--dark-blue: #08205c;
	
	/* UI Colors */
	--bg-color: #f4f6f9;
	--card-bg: #ffffff;
	--text-dark: #333333;
	--text-light: #666666;
	--success-green: #28a745;
	--warning-yellow: #ffc107;
	
	/* Spacing & Layout */
	--container-width: 1100px;
	--border-radius: 12px;
	--box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* =========================================
   2. RESET & TYPOGRAPHY
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
	font-family: 'Poppins', sans-serif;
	background-color: var(--bg-color);
	color: var(--text-dark);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
section { padding: 60px 0; }
button { cursor: pointer; }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
	background-color: var(--dark-blue);
	color: white;
	text-align: center;
	padding: 10px 20px 0 20px; 
	position: relative; /* Referência para o ninja absoluto */
	overflow: hidden;
}

.hero .container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.hero-content {
	width: 100%;
	padding-bottom: 30px; 
	position: relative; /* ADICIONADO para garantir z-index do texto */
	z-index: 2; /* Texto acima do ninja */
}

.hero h1 { font-size: 2.5rem; margin-bottom: 10px; color: white; }
.hero p { font-size: 1.2rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* Decorative line */
.hero-line {
	width: 60px;
	height: 4px;
	background-color: var(--primary-orange);
	margin: 20px auto 0;
	border-radius: 2px;
}

.hero-logo {
	width: 26%; 
	max-width: 560px; 
	height: auto; 
	display: block; 
	margin: 0 auto 10px auto;
}

.hero-ninja {
	width: 60%;
	max-width: 210px; /* Último tamanho ajustado */
	height: auto;
	margin-top: 0;
	display: block;
	position: relative;
	z-index: 1;
	/* Garante que no mobile ele não tenha margem extra empurrando para cima */
	margin-bottom: -5px; 
}

/* DESKTOP LAYOUT ADJUSTMENTS */
@media (min-width: 992px) {
	.hero {
		padding-bottom: 30px;
	}

	.hero .container {
		flex-direction: row;
		justify-content: flex-start;
		align-items: center; 
		text-align: left;
		min-height: 280px; 
	}
	
	.hero-content {
		flex: 0 1 65%; 
		text-align: left;
		padding-right: 40px;
		padding-bottom: 0; 
	}

	.hero h1 {
		text-align: left;
	}

	.hero p {
		margin: 0; 
		text-align: left;
		max-width: 100%;
	}

	.hero-logo {
		margin: 0 0 20px 0; 
		width: 35%; 
	}

	.hero-line {
		margin: 20px 0 0 0; 
	}

	.hero-ninja {
		position: absolute; /* Fixa em relação ao .hero */
		top: 10px; /* Posiciona a partir do topo, descendo para mostrar a cabeça */
		right: calc(50% - 550px + 20px); /* Centraliza em relação ao container de 1100px, mas alinhado à direita */
		right: 5%; /* Fallback simples / Ajuste visual */
		width: auto;
		height: auto;
		max-width: 300px; /* Último tamanho ajustado */
		margin: 0;
	}
	
	/* Melhoria para telas muito largas para o ninja não fugir demais */
	@media (min-width: 1200px) {
		.hero-ninja {
			 right: calc(50% - 500px); /* Mantém dentro do container visualmente */
		}
	}
}

/* =========================================
   4. TIMELINE SECTION
   ========================================= */
.section-title { text-align: center; margin-bottom: 50px; color: var(--dark-blue); font-size: 2rem; }

.timeline-container { 
	display: flex; 
	flex-direction: row; /* Força lado a lado */
	gap: 20px; 
	position: relative; 
	justify-content: space-between; 
	align-items: flex-start;
}

.timeline-container::before {
	content: ''; 
	position: absolute; 
	top: 30px; 
	left: 50px; 
	right: 50px; 
	height: 4px; 
	background: #e0e0e0; 
	z-index: 0;
}

.timeline-step {
	flex: 1; background: var(--card-bg); padding: 30px 20px; border-radius: var(--border-radius);
	box-shadow: var(--box-shadow); text-align: center; position: relative; z-index: 1; transition: transform 0.3s ease;
}
.timeline-step:hover { transform: translateY(-5px); }
.step-icon {
	width: 60px; height: 60px; background-color: var(--primary-blue); color: white; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.5rem;
	border: 4px solid white; box-shadow: 0 0 0 4px var(--bg-color);
}
.step-title { color: var(--primary-blue); margin-bottom: 10px; font-size: 1.2rem; }
.step-desc { font-size: 0.9rem; color: var(--text-light); }
.highlight-orange { color: var(--primary-orange); font-weight: 700; }

/* =========================================
   5. STATUS & FEES GRID
   ========================================= */
.grid-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .grid-layout { grid-template-columns: repeat(2, 1fr); } }

.card {
	background: var(--card-bg); border-radius: var(--border-radius); padding: 30px;
	box-shadow: var(--box-shadow); border-left: 5px solid transparent;
}
.card.status-good { border-left-color: var(--success-green); }
.card.status-wait { border-left-color: var(--warning-yellow); }
.card.status-info { border-left-color: var(--primary-blue); }
.card h3 { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }

.status-badge {
	background: #eee; padding: 4px 8px; border-radius: 4px; font-size: 0.8rem;
	font-family: 'Montserrat', sans-serif; font-weight: bold; text-transform: uppercase;
}
.badge-recebido { background: #d4edda; color: #155724; }
.badge-wait { background: #fff3cd; color: #856404; }
.badge-internal { background: #cce5ff; color: #004085; }

.fee-display { text-align: center; padding: 20px; }
.big-number {
	font-size: 3.5rem; font-family: 'Montserrat', sans-serif; font-weight: 800;
	color: var(--primary-blue); line-height: 1; margin-bottom: 10px;
}
.big-number.orange { color: var(--primary-orange); }
.fee-label { font-weight: 600; color: var(--dark-blue); font-size: 1.1rem; }

/* =========================================
   6. SECURITY ALERT BOX
   ========================================= */
.alert-box {
	background-color: #fff8e1; border: 2px solid var(--primary-orange); border-radius: var(--border-radius);
	padding: 30px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
}
@media (min-width: 768px) { .alert-box { flex-direction: row; text-align: left; } }
.alert-icon { font-size: 2.5rem; color: var(--primary-orange); min-width: 60px; }

/* =========================================
   RESPONSIVE DESIGN (MOBILE FIRST)
   ========================================= */
@media (max-width: 767px) {
	section { padding: 40px 0; }
	.section-title { font-size: 1.8rem; margin-bottom: 30px; }
	.hero h1 { font-size: 2rem; }

	/* --- Timeline Adjustments for Mobile --- */
	.timeline-container {
		flex-direction: column; /* Stack items vertically */
		gap: 30px;
		align-items: stretch; /* Stretch items to full width */
	}

	/* Replace horizontal line with a vertical one */
	.timeline-container::before {
		left: 48px; /* Align with the center of the icons */
		right: auto;
		top: 30px;
		bottom: 30px;
		width: 4px; /* Vertical line */
		height: auto;
	}

	.timeline-step {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
		gap: 20px;
		padding: 0;
		background: none;
		box-shadow: none;
	}
	.timeline-step:hover { transform: none; }

	.step-icon {
		margin: 0;
		flex-shrink: 0; /* Prevent icon from shrinking */
	}

	.step-title { margin-bottom: 5px; }
}

/* =========================================
   7. FAQ ACCORDION
   ========================================= */
.accordion-item {
	background: white; border-radius: 8px; margin-bottom: 15px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05); overflow: hidden;
}
.accordion-header {
	width: 100%; padding: 20px; background: none; border: none; outline: none; text-align: left;
	cursor: pointer; display: flex; justify-content: space-between; align-items: center;
	font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1rem; color: var(--dark-blue);
	transition: background 0.3s;
}
.accordion-header:hover { background-color: #f9f9f9; }
.accordion-header::after { content: '+'; font-size: 1.5rem; color: var(--primary-blue); font-weight: bold; }
.accordion-header.active::after { content: '-'; color: var(--primary-orange); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background-color: white; }
.accordion-content p { padding: 20px; color: var(--text-light); border-top: 1px solid #eee; }

/* =========================================
   8. FOOTER
   ========================================= */
footer { background-color: var(--dark-blue); color: white; padding: 40px 0; text-align: center; font-size: 0.9rem; }
footer p { opacity: 0.7; }

/* =========================================
   9. BACK TO TOP BUTTON
   ========================================= */
#back-to-top-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 50px;
	height: 50px;
	background-color: var(--primary-orange);
	color: white;
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
	z-index: 1000;
}
#back-to-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top-btn:hover { background-color: #e66600; }