/* Reset e variáveis */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-light: #f3fff4;
  --bg-white: #ffffff;
  --text-dark: #064e3b;
  --text-light: #687c70;
  --accent: #34d399;
  --accent-dark: #059669;
  --accent-darker: #047857;
  --border: #d1fae5;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Header */
header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  padding: 1rem 2rem;
}

header > div {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}

header .header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

header img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
}

header nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

header nav a,
header nav .phone {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}

header nav a:hover {
  color: var(--accent-dark);
}

header .phone {
  background-color: var(--accent-dark);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

header .phone:hover {
  background-color: var(--accent-darker);
}

/* Navigation Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.5rem;
  align-items: center;
  justify-content: center;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

/* Main */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  padding: 3rem;
  border-radius: 0.75rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.hero h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero a {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.hero a:first-of-type {
  background-color: white;
  color: var(--accent-dark);
}

.hero a:first-of-type:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
}

.hero a:last-of-type {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.hero a:last-of-type:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Sections */
section {
  margin-bottom: 3rem;
}

section#sobre {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

section#sobre h3,
section#servicos h3,
section#contato h3 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.5rem;
}

section#sobre p,
section#contato p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Lista de competências */
section#sobre ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  list-style: none;
  margin-top: 1.5rem;
}

section#sobre li {
  background-color: var(--bg-light);
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.2s;
}

section#sobre li:hover {
  border-color: var(--accent);
  background-color: rgba(52, 211, 153, 0.05);
  transform: translateY(-2px);
}

/* Serviços */
section#servicos {
  padding: 0;
}

.service {
  background-color: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.service:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service h4 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.service p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Contato */
section#contato {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

section#contato a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-dark);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
  margin: 1rem auto;
  transition: all 0.2s;
  width: fit-content;
}

section#contato a:hover {
  background-color: var(--accent-darker);
  transform: translateY(-2px);
}

section#contato {
  text-align: center;
}

section#contato a:hover {
  background-color: var(--accent-darker);
  transform: translateY(-2px);
}

section#contato iframe {
  width: 100%;
  max-width: 800px;
  height: 450px;
  border-radius: 0.5rem;
  border: none;
  margin: 2rem auto;
  display: block;
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  border-top: 3px solid var(--accent);
}

footer p {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

footer a:hover {
  color: white;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 1rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-menu.active {
    max-height: 300px;
    padding: 1rem 0;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    display: block;
    padding: 0.5rem 1rem;
  }

  .nav-menu .phone {
    margin: 0.5rem 1rem;
    width: calc(100% - 2rem);
  }

  header > div {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
  }

  header .header-left {
    flex: 1;
  }

  .hero {
    padding: 2rem;
  }

  .hero h2 {
    font-size: 1.75rem;
  }

  .hero a {
    display: block;
    margin: 0.5rem auto;
    width: 100%;
    max-width: 300px;
  }

  main {
    padding: 2rem 1rem;
  }

  section {
    margin-bottom: 2rem;
  }

  section#contato iframe {
    height: 300px;
  }

  .service {
    padding: 1.5rem;
  }

  section#sobre ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1rem;
  }

  header nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  header nav a {
    font-size: 0.875rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  section h3 {
    font-size: 1.5rem;
  }
}
