:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: 'Roboto', sans-serif;
}

/* Reset e Estilos Gerais */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', 'Arial', 'Helvetica', sans-serif;
  background: #0f172a;
  color: #fff;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes underline {
  from { width: 0; }
  to { width: 100%; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeIn 0.6s ease;
}

/* Navegação */
.sticky-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #1e293b, #334155);
  padding: 3px 8px; /* altura menor, largura mantida */
  position: fixed; /* alterado de sticky para fixed */
  top: 0;
  left: 0;
  width: 100%; /* garante largura total */
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid #004aad;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo-img {
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 74, 173, 0.5);
  transition: transform 0.3s ease;
}
.logo-img:hover {
  transform: scale(1.1);
}
.logo-container span {
  font: 700 22px/1 'Roboto', sans-serif;
  color: #ff4d4d;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
}

.logo-link:hover {
  opacity: 0.9;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  transition: 0.3s ease;
}
.menu-toggle:hover {
  transform: rotate(90deg);
  color: #007bff;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}
.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  border-radius: 5px;
  transition: 0.3s ease;
  position: relative;
}
.nav-link:hover, .nav-link:focus {
  color: #007bff;
  background: rgba(0, 74, 173, 0.2);
  transform: scale(1.05);
}
.nav-link i {
  transition: 0.3s ease;
}
.nav-link:hover i, .nav-link:focus i {
  transform: rotate(10deg);
  color: #ff4d4d;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 18px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #007bff, #ff4d4d);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link:focus::after {
  width: calc(100% - 36px);
  animation: underline 0.3s ease;
}

/* Dropdown de Login */
.login-dropdown {
    position: relative;
    margin-left: 10px;
}

.login-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #004aad, #007bff);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-toggle:hover {
    background: linear-gradient(45deg, #003087, #005bb5);
    transform: translateY(-2px);
}

.login-toggle i:last-child {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.login-dropdown.active .login-toggle i:last-child {
    transform: rotate(180deg);
}

.login-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 5px;
    width: 200px;
    padding: 8px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.login-dropdown.active .login-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.login-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.login-option:first-child {
    border-bottom: 1px solid #334155;
}

.login-option i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.login-option:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateX(5px);
}

.login-option:first-child:hover {
    color: #007bff;
}

.login-option:last-child:hover {
    color: #dc3545;
}

@media (max-width: 768px) {
    .login-dropdown {
        width: 100%;
        margin: 10px 0;
    }

    .login-toggle {
        width: 100%;
        justify-content: center;
    }

    .login-options {
        position: static;
        width: 100%;
        margin-top: 5px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .login-dropdown.active .login-options {
        display: block;
    }
}

/* Hero */
.hero {
  text-align: center;
  padding: 300px 120px;
  background: linear-gradient(0deg, rgba(0,0,0,0.56), rgba(0,0,0,0.56)), url(../img/fundo_cabeçalho.jpeg) center/cover no-repeat fixed;
}
.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero p {
  font-size: 20px;
  margin: 0 auto 30px;
  max-width: 600px;
}
.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(45deg, #004aad, #007bff);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  transition: 0.3s ease;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(45deg, #003087, #005bb5);
  transform: scale(1.05);
}

/* Conteúdo Geral */
.content {
  padding: 60px 20px;
  text-align: center;
}
.content h2 {
  font-size: 36px;
  margin-bottom: 25px;
  position: relative;
}
.content h2::after {
  content: '';
  width: 50px;
  height: 3px;
  background: #004aad;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Serviços */
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}
.service {
  background: #1e40af;
  padding: 25px;
  border-radius: 8px;
  width: 200px;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.service:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
.service i {
  font-size: 40px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}
.service:hover i {
  transform: scale(1.2);
}

/* Depoimentos */

.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}
.testimonial {
  margin: 0 auto;
  font-style: italic;
  font-size: 18px;
  max-width: 600px;
  padding: 20px;
  background: #1e293b;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Formulário */
form {
  background: #1e293b;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  max-width: 600px;
  margin: 30px auto;
}
form label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  font-weight: bold;
}
form input, form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 5px;
  color: #fff;
  transition: 0.3s ease;
}
form input:focus, form textarea:focus {
  border-color: #004aad;
  box-shadow: 0 0 5px rgba(0,74,173,0.5);
}
form input::placeholder, form textarea::placeholder {
  color: #94a3b8;
}
form button {
  background: linear-gradient(45deg, #004aad, #007bff);
  border: none;
  padding: 15px;
  width: 100%;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
}
form button:hover, form button:focus {
  background: linear-gradient(45deg, #003087, #005bb5);
  transform: scale(1.02);
}

/* Estilos do Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 20px;
}

.login-form {
    background: rgba(30, 41, 59, 0.95);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.erro-mensagem {
    background: rgba(220, 38, 38, 0.1);
    color: #ef4444;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
}

.toggle-password:hover {
    color: #007bff;
}

.login-button {
    background: linear-gradient(45deg, #004aad, #007bff);
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.login-button:hover {
    background: linear-gradient(45deg, #003087, #005bb5);
    transform: translateY(-2px);
}

.login-button i {
    font-size: 1.1rem;
}

/* Estilos dos botões de login */
.login-button {
    background: rgba(0, 123, 255, 0.1) !important;
    border: 1px solid #007bff !important;
}

.login-button:hover {
    background: rgba(0, 123, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

.admin-button {
    background: rgba(220, 53, 69, 0.1) !important;
    border: 1px solid #dc3545 !important;
}

.admin-button:hover {
    background: rgba(220, 53, 69, 0.2) !important;
    transform: translateY(-2px) !important;
}

.login-button i,
.admin-button i {
    margin-right: 5px;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-overlay p {
  margin-top: 1rem;
  color: #fff;
  font-weight: 500;
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  padding: 15px;
  border-radius: 50%;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: 0.3s ease;
  z-index: 1000;
}
.whatsapp-button:hover, .whatsapp-button:focus {
  background: #128C7E;
  transform: scale(1.1);
}

/* Botão Voltar ao Topo */
.btn-topo {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 20px; /* Alterado de right para left */
  right: auto; /* Remove a propriedade right */
  z-index: 9999;
  width: 40px;
  height: 40px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  opacity: 0.9;
}

.btn-topo:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  opacity: 1;
}

/* Rodapé */
footer {
  text-align: center;
  padding: 30px;
  background: #1e293b;
  border-top: 1px solid #334155;
}
footer .social-links a {
  color: #fff;
  margin: 0 15px;
  font-size: 24px;
  transition: 0.3s ease;
}
footer .social-links a:hover, footer .social-links a:focus {
  color: #004aad;
}

/* Footer */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem;
  background: #1e293b;
  border-top: 1px solid #334155;
}

.footer-section h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background: #007bff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-section ul li a:hover {
  color: #007bff;
  transform: translateX(5px);
}

.footer-section ul li a i {
  font-size: 0.9rem;
}

.footer-section .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-section .social-links a {
  color: #cbd5e1;
  font-size: 1.5rem;
  transition: 0.3s ease;
}

.footer-section .social-links a:hover {
  color: #007bff;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  background: #151e2b;
  color: #cbd5e1;
}

/* Responsivo do Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-section .social-links {
    justify-content: center;
  }
}

/* Acessibilidade */
a:focus, button:focus {
  outline: 2px solid #004aad;
  outline-offset: 2px;
}

/* About Section */
.about {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  gap: 40px;
  flex-wrap: wrap;
}
.about-content, .about-image {
  flex: 1 1 400px;
  text-align: center;
}
.about-content {
  text-align: left;
}
.about-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}
.about-content p {
  font-size: 18px;
  color: #cbd5e1;
  text-align: justify;
}
.about-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: 0.3s ease;
}
.about-image img:hover {
  transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 768px) {
  .sticky-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
    position: static;
  }
  .menu-toggle {
    display: block;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: linear-gradient(90deg, #1e293b, #334155);
  }
  .nav-list.active {
    display: flex;
  }
  .nav-list li {
    width: 100%;
    text-align: right;
    padding: 15px 20px;
  }
  .hero {
    padding: 150px 20px;
    background-attachment: scroll;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 16px;
  }
  .content {
    padding: 40px 15px;
  }
  .content h2 {
    font-size: 28px;
  }
  .service {
    width: 100%;
    max-width: 300px;
  }
  form {
    padding: 20px;
  }
  .about {
    flex-direction: column;
  }
}
