/* Global Styles - Simples Informática */

/* CSS Variables */
:root {
  --primary-color: #28a745;
  --primary-dark: #1e7e34;
  --primary-light: #34ce57;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
}

/* Base Styles */
body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  padding-top: 118px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* ================================================
   NAVBAR STYLES - Consolidado do navbar-modern
   ================================================ */

/* Container principal fixo */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040;
}

/* Topbar integrada */
.topbar-integrated {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  min-height: 48px;
  height: 48px;
  display: flex;
  align-items: center;
}

.topbar-integrated .container {
  height: 100%;
}

.topbar-integrated .row {
  height: 100%;
  margin: 0;
  width: 100%;
}

.topbar-integrated .col-md-8,
.topbar-integrated .col-md-4 {
  display: flex;
  align-items: center;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.topbar-integrated .col-md-8 {
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.topbar-integrated .col-md-4 {
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}

@media (min-width: 768px) {
  .topbar-integrated .col-md-8 {
    justify-content: flex-start;
  }

  .topbar-integrated .col-md-4 {
    justify-content: flex-end;
  }
}

.topbar-link {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  gap: 6px;
}

.topbar-link i {
  margin-right: 6px;
}

.topbar-link:hover {
  color: #28a745;
}

.topbar-phone {
  background-color: #28a745;
  color: #ffffff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.topbar-phone:hover {
  background-color: #1e7e34;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.topbar-divider {
  color: #dee2e6;
  margin: 0 12px;
}

/* Menu navbar */
.navbar-main {
  background-color: #212529 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  min-height: 70px;
}

.navbar-main .container {
  min-height: 70px;
}

.navbar-main .navbar-brand {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.navbar-main .navbar-brand:hover {
  color: #28a745 !important;
}

.navbar-main .navbar-brand img {
  height: 45px;
  width: auto;
  max-width: 180px;
  transition: transform 0.3s ease;
}

.navbar-main .navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-main .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  padding: 8px 16px !important;
  margin: 0 4px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-main .nav-link:hover {
  color: #28a745 !important;
  background-color: rgba(40, 167, 69, 0.2);
}

.navbar-main .nav-link.active {
  color: #28a745 !important;
  background-color: rgba(40, 167, 69, 0.25);
  font-weight: 600;
}

.navbar-main .navbar-toggler {
  border: 2px solid #ffffff;
  padding: 6px 10px;
}

.navbar-main .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-main .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  color: #ffffff;
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  margin: 0;
  line-height: 60px;
}

/* ================================================
   RESPONSIVE STYLES
   ================================================ */

/* Tablets e Mobile Grande */
@media (max-width: 991px) {
  .navbar-main .navbar-collapse {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-main .nav-link {
    margin: 4px 0;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .topbar-divider {
    display: none !important;
  }

  .topbar-link {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .topbar-phone {
    padding: 6px 16px;
    font-size: 0.8rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
  }

  .whatsapp-float i {
    line-height: 50px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  body {
    padding-top: 115px;
  }

  .navbar-main .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-main .navbar-brand img {
    height: 35px;
    width: auto;
    max-width: 150px;
  }
}
