:root {
    --bg-color: #121212;
    --text-color: #ffffff;
    --card-bg: #1e1e1e;
    --header-footer-bg: #181818;
  }

  body.light-mode {
    --bg-color: #fafafa;
    --text-color: #121212;
    --card-bg: #ffffff;
    --header-footer-bg: #ededed;
  }

  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }

  body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
  }

  main {
    flex: 1;
  }

  header {
    background-color: var(--header-footer-bg);
    color: var(--text-color);
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #333;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    min-height: 150px;
  }

  #toggle-theme {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background-color: #1db954;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
}

  .header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #1db954;
  }

  section {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
  }

  h1, h2 {
    margin-bottom: 1rem;
  }

  .services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-content: center;
  }

  .service {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: center;
    transition: transform 0.2s ease, background-color 0.3s;
  }

  .service:hover {
    transform: translateY(-5px);
  }

  .service img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
  }

  .icon-green {
    filter: invert(41%) sepia(91%) saturate(449%) hue-rotate(88deg) brightness(94%) contrast(92%);
  }

  footer {
    background-color: var(--header-footer-bg);
    color: var(--text-color);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    border-top: 1px solid #333;
  }

  .whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 100;
  }

  .whatsapp-float img {
    width: 35px;
    margin-top: 12px;
  }

  .header-content .logo {
    height: 100%;
    max-height: 100px;
    object-fit: contain;
  }

  /* MOBILE: botão fixo no topo, fora do fluxo */
@media (max-width: 768px) {
  #toggle-theme {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 0;
    text-align: center;
    z-index: 1000;
  }

  body {
    padding-top: 60px; /* espaço para o botão fixo */
  }
}