/* style.css - Estilos para FastDiet.fun - V2 (Responsivo & Ícones) */

/* --- Importação de Fontes --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@600;700&display=swap');

/* --- Variáveis de Cor --- */
:root {
	--primary-color: #007bff;
	--secondary-color: #28a745;
	--background-light: #f9f9f9;
	--text-color: #333;
	--text-light: #555;
	--border-color: #eee;
	--white: #fff;
	--footer-bg: #333;
}

/* --- Reset Básico e Estilos Gerais --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Lato', sans-serif; line-height: 1.7; color: var(--text-color); background-color: var(--white); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 600; line-height: 1.3; margin-bottom: 1rem; }
h1 span, h2 span { color: var(--primary-color); }
h2 { font-size: 2.2em; text-align: center; margin-bottom: 3rem; color: var(--text-color); }
p { margin-bottom: 1rem; color: var(--text-light); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }
section { padding: 4rem 0; text-align: center; }
section:nth-child(even) { background-color: var(--background-light); }

/* --- Cabeçalho e Logo --- */
header { background: var(--white); padding: 1.5rem 0; border-bottom: 1px solid var(--border-color); text-align: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
header .logo { font-family: 'Montserrat', sans-serif; font-size: 1.8em; font-weight: 700; color: var(--text-color); }
header .logo span { color: var(--primary-color); }

/* --- Seção Hero / Quiz --- */
.hero { background: #e9f5ff; padding: 4rem 0; display: flex; align-items: center; }
.hero .container { display: flex; justify-content: space-between; align-items: center; text-align: left; gap: 3rem; }
.hero-text { flex: 1; }
.hero-image { flex: 1; text-align: center; }
.hero-image img { border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.quiz-box { background: var(--white); padding: 2.5rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-top: 1.5rem; text-align: center; }
.quiz-box h3 { font-size: 1.3em; margin-bottom: 1.5rem; }
.gender-select button { background: var(--primary-color); color: var(--white); border: none; padding: 15px 40px; margin: 5px 10px; font-size: 1.1em; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease; }
.gender-select button:hover { background: #0056b3; text-decoration: none; }

/* --- Seção Estatísticas --- */
.stats { display: flex; justify-content: space-around; text-align: center; background: var(--white); padding: 3rem 1rem; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.stats-item { flex: 1; padding: 1rem; }
.stats-item h3 { font-size: 3em; margin: 0; color: var(--primary-color); font-weight: 700; }
.stats-item p { margin: 0; color: var(--text-light); font-weight: bold; font-size: 1.1em; }

/* --- Seção Como Funciona --- */
.how-it-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 3rem; text-align: center; }
.step { background: var(--white); padding: 2rem; border-radius: 8px; box-shadow: 0 3px 10px rgba(0,0,0,0.08); transition: transform 0.3s ease; }
.step:hover { transform: translateY(-5px); }
.step span { display: block; background: var(--primary-color); color: var(--white); border-radius: 50%; width: 50px; height: 50px; line-height: 50px; margin: 0 auto 1.5rem auto; font-size: 1.8em; font-weight: 700; }
.step h4 { font-size: 1.3em; color: var(--text-color); margin-bottom: 0.5rem; }

/* --- Botão CTA --- */
.cta-button { display: inline-block; background: var(--secondary-color); color: var(--white) !important; padding: 15px 35px; text-decoration: none; border-radius: 5px; margin-top: 20px; font-size: 1.2em; font-weight: bold; transition: background-color 0.3s ease; border: none; cursor: pointer; }
.cta-button:hover { background: #218838; text-decoration: none; color: var(--white); }

/* --- Seção Porquê Escolher --- */
#por-que-escolher { background-color: var(--background-light); }
.why-choose { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; text-align: left; margin-top: 3rem; }
.why-item { background: var(--white); padding: 2rem; border-radius: 8px; box-shadow: 0 3px 10px rgba(0,0,0,0.05); display: flex; align-items: flex-start; gap: 1.5rem; /* Aumentei o gap */ }
.why-item i { font-size: 1.8em; /* Ajustei tamanho */ color: var(--primary-color); margin-top: 5px; width: 30px; /* Largura fixa para alinhar */ text-align: center; }
.why-item div { flex: 1; } /* Div do texto ocupa o resto */
.why-item h4 { margin-top: 0; margin-bottom: 0.5rem; color: var(--text-color); font-size: 1.2em; }

/* --- Seção Testemunhos --- */
.testimonials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.card { background: var(--white); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.5rem; box-shadow: 0 3px 8px rgba(0,0,0,0.07); text-align: left; display: flex; flex-direction: column; justify-content: space-between; }
.card p:first-child { font-style: italic; color: var(--text-light); flex-grow: 1; }
.card p:last-child { font-weight: bold; text-align: right; margin-top: 1rem; margin-bottom: 0; color: var(--primary-color); }

/* --- CTA Final --- */
.cta-final { background: #d4edda; padding: 4rem 0; }
.cta-final .cta-button { background: var(--secondary-color); }
.cta-final .cta-button:hover { background: #1e7e34; }

/* --- Rodapé --- */
footer { background: var(--footer-bg); color: var(--white); text-align: center; padding: 2.5rem 0; margin-top: 0; }
footer .logo { font-family: 'Montserrat', sans-serif; font-size: 1.5em; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
footer .logo span { color: var(--primary-color); }
footer p { margin: 8px 0; font-size: 0.9em; color: #ccc; }
footer a { color: #6cb6ff; }
footer a:hover { color: var(--white); }
footer .disclaimer { font-size: 0.8em; color: #888; margin-top: 1rem; }
footer .social-link { display: inline-block; margin-top: 1rem; font-size: 1.5em; color: var(--white); transition: color 0.3s ease; }
footer .social-link i { margin: 0 10px; } /* Espaço para ícones sociais */
footer .social-link:hover { color: var(--primary-color); text-decoration: none; }


/* --- ################################# --- */
/* ---        MEDIA QUERIES (RESPONSIVO) --- */
/* --- ################################# --- */

/* --- Tablets (até 992px) --- */
@media (max-width: 992px) {
	h2 { font-size: 2em; }
	.hero .container { flex-direction: column; text-align: center; gap: 2rem; }
	.hero-text { text-align: center; }
	.why-choose { grid-template-columns: repeat(2, 1fr); }
	.testimonials { grid-template-columns: repeat(2, 1fr); }
}

/* --- Telemóveis (até 768px) --- */
@media (max-width: 768px) {
	h2 { font-size: 1.8em; margin-bottom: 2rem; }
	section { padding: 3rem 0; }
	.container { padding: 0 1rem; }

	.hero { padding: 3rem 0; }
	.hero-text h1 { font-size: 1.8em; }

	.stats { flex-direction: column; gap: 1.5rem; padding: 2rem 1rem; }
	.stats-item h3 { font-size: 2.5em; }

	.how-it-works { grid-template-columns: 1fr; gap: 2rem; }

	.why-choose { grid-template-columns: 1fr; gap: 1.5rem; }
	.why-item { padding: 1.5rem; }

	.testimonials { grid-template-columns: 1fr; gap: 1.5rem; }

	.gender-select button { padding: 12px 30px; font-size: 1em; display: block; width: 80%; margin: 10px auto; }

	footer { padding: 2rem 0; }
}


#quizDialog{border:none;border-radius:8px;padding:2rem;width:90%;max-width:500px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);}
#quizDialog::backdrop{background:rgba(0,0,0,0.6);}

#quizContent button.option{display:block;width:100%;padding:12px;margin:5px 0;background:#f5f5f5;color:var(--text-color);border:1px solid var(--border-color);border-radius:5px;cursor:pointer;text-align:left;transition:background-color 0.2s ease;}
#quizContent button.option:hover{background:#e9e9e9;}
#quizContent button.option.selected{background:var(--secondary-color);color:var(--white);}
#quizContent button.option::before{font-family:'Font Awesome 6 Free';font-weight:900;content:'\f111';margin-right:8px;}
#quizContent button.option.selected::before{content:'\f058';}

.progress-counter{text-align:right;font-size:0.9em;color:var(--text-light);margin-bottom:0.5rem;}

#quizContent input,#quizContent select{width:100%;padding:10px;margin:10px 0;border:1px solid var(--border-color);border-radius:5px;}

.nav-buttons{text-align:right;margin-top:15px;}
.nav-buttons button{min-width:120px;margin-left:10px;}
#quizContent .back-button{background:#ccc;color:#000;border:none;padding:10px 20px;border-radius:5px;cursor:pointer;}
#quizContent .back-button:hover{background:#b5b5b5;}
.nav-buttons .next{padding:10px 20px;}
.nav-buttons .next::before{font-family:'Font Awesome 6 Free';font-weight:900;content:'\f105';margin-right:6px;}
.nav-buttons .back-button::before{font-family:'Font Awesome 6 Free';font-weight:900;content:'\f104';margin-right:6px;}

@media (max-width: 480px) {
	h1 { font-size: 1.6em; }
	h2 { font-size: 1.6em; }
	.stats-item h3 { font-size: 2em; }
	.stats-item p { font-size: 1em; }
	.cta-button { font-size: 1.1em; padding: 12px 25px; }
}
