/* ESTILOS PRINCIPAIS DO SITE */

/* Aplicado a: produtos.html e contato.html */

/* Configuração básica */
body {
    font-family: Arial,sans-serif;
    line-height: 1.6;
    color: #333;
}

/* === CABEÇALHO === */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 0;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.caixa {
    position: relative;
    width: 940px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
header h1 img {
    max-height: 100px;
    width: auto;
}

/* === NAVEGAÇÃO === */
nav ul {
    display: flex;
    gap: 30px;
}

nav li {
    list-style: none;
}

nav a {
    text-transform: uppercase;
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

nav a:active {
    background: rgba(255,255,255,0.3);
}

/* === CONTEÚDO PRINCIPAL === */
main {
    width: 940px;
    margin: 0 auto;
    padding: 50px 0;
}

.titulo-principal-produtos {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
    font-weight: bold;
}

/* === PRODUTOS === */
.produtos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0;
    margin: 0;
}

.produtos li {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.produtos li:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-color: #667eea;
}

.produtos li:active {
    transform: translateY(-5px);
}

.produtos h3 {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.produtos img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.produto-descricao {
    font-size: 1em;
    margin: 15px 0;
    color: #666;
    line-height: 1.5;
}

.produto-preco {
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 15px;
    color: #28a745;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
}

/* === RODAPÉ === */
footer {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
    margin-top: 50px;
}

footer img {
    max-height: 90px;
    width: auto;
    margin-bottom: 20px;
}

.copyright {
    color: #ffffff;
    font-size: 14px;
    margin: 0;
}

/* === RESPONSIVIDADE === */
@media (max-width: 940px) {
    .caixa,
    main {
        width: 90%;
        padding: 20px;
    }

    .caixa {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .titulo-principal-produtos {
        font-size: 2em;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    nav a {
        font-size: 16px;
        padding: 8px 15px;
    }
}
/* === FORMULÁRIOS === */
form {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 50px;
}

fieldset {
  border: 2px solid #dee2e6;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  background: white;
}

legend {
  background: #667eea;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1.1em;
}

form label {
  display: block;
  font-size: 1.1em;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.input-padrao {
  display: block;
  margin-bottom: 20px;
  padding: 12px 20px;
  width: 100%;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input-padrao:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-padrao::placeholder {
  color: #999;
  font-style: italic;
}

/* === RADIO BUTTONS CUSTOMIZADOS === */
.radio-label {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  cursor: pointer;
  font-weight: normal;
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #dee2e6;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: #667eea;
  background: #667eea;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* === CHECKBOX CUSTOMIZADO === */
.checkbox-label {
  display: flex;
  align-items: center;
  margin: 25px 0;
  cursor: pointer;
  font-size: 1.1em;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  border-color: #28a745;
  background: #28a745;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✔';
  position: absolute;
  top: 50%;
  left: 50%;
  color: white;
  font-size: 14px;
  font-weight: bold;
  transform: translate(-50%, -50%);
}

/* === BOTÃO DE ENVIO === */
.enviar {
  width: 100%;
  max-width: 300px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  font-weight: bold;
  font-size: 1.2em;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 30px auto 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.enviar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.enviar:active {
  transform: translateY(-1px);
}

/* === INFORMAÇÕES DE CONTATO === */
.informacoes-contato {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.informacoes-contato h3 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  color: #333;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.info-item {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border-left: 5px solid #667eea;
}

.info-item h4 {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: #333;
}

.info-item p {
  line-height: 1.6;
  color: #666;
}

/* === TABELA DE HORÁRIOS === */
.horarios {
  width: 100%;
  margin: 30px 0;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.horarios caption {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.horarios thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.horarios th,
.horarios td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.horarios tbody tr:hover {
  background: #f8f9fa;
}

.horarios tbody tr:last-child td {
  border-bottom: none;
}

/* === RESPONSIVIDADE PARA FORMULÁRIOS === */
@media (max-width: 768px) {
  form,
  .informacoes-contato {
    padding: 20px;
    margin: 20px 0;
  }

  .input-padrao {
    padding: 10px 15px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .horarios th,
  .horarios td {
    padding: 10px 15px;
    font-size: 0.9em;
  }
}
/* === ANIMAÇÕES AVANÇADAS === */

/* Animação de entrada para produtos */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.produtos li {
  animation: fadeInUp 0.6s ease forwards;
}

.produtos li:nth-child(1) { animation-delay: 0.1s; }
.produtos li:nth-child(2) { animation-delay: 0.2s; }
.produtos li:nth-child(3) { animation-delay: 0.3s; }

/* Efeito de hover mais elaborado */
.produtos li::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, #667eea, #764ba2);
  opacity: 0;
  border-radius: 15px;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.produtos li {
  position: relative;
  overflow: hidden;
}

.produtos li:hover::before {
  opacity: 0.1;
}

/* Animação do botão de envio */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.enviar:hover {
  animation: pulse 1.5s infinite;
}

/* Efeito parallax simples no banner */
#banner {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* === EFEITOS VISUAIS MODERNOS === */

/* Gradiente de fundo para seções */
.principal {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
}

.principal::before {
  content: '';
  position: absolute;
  inset: 0;
  /* textura sutil (grain) opcional */
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="g" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23g)"/></svg>');
  pointer-events: none;
}

/* Sombras suaves (cards) */
.card-shadow {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.24);
  transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.card-shadow:hover {
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.25),
    0 10px 10px rgba(0, 0, 0, 0.22);
}

/* Bordas arredondadas modernas */
.modern-border {
  border-radius: 20px;
  overflow: hidden;
}
/* === ESTILOS PARA JAVASCRIPT === */

/* Estado de erro nos inputs */
.input-padrao.erro {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.input-padrao.erro::placeholder {
  color: #dc3545;
}

/* Animação de carregamento */
.enviar:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  animation: loading 1.5s infinite linear;
}

@keyframes loading {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
