/* ---- Reset básico ---- */
*, *::before, *::after {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1a1a1a;
  background: #f5f6fa;
}

a {
  color: #1f7a5f;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1080px, 90vw);
  margin: 0 auto;
  padding: 1.5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  gap: 1.2rem;
}

.nav a {
  font-weight: 500;
  padding: 0.35rem 0.25rem;
  border-radius: 0.35rem;
  transition: background 0.2s ease;
}

.nav a:hover {
  background: rgba(31, 122, 95, 0.12);
}

/* Submenu (Aplicativos) */
.submenu {
  position: relative;
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.35rem 0.25rem;
  border-radius: 0.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
}

.submenu-toggle:hover {
  background: rgba(31, 122, 95, 0.12);
}

.submenu-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0.4rem 0 0;
  padding: 0.35rem 0;
  width: max-content;
  min-width: 160px;
  list-style: none;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 0.65rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 20;
}

.submenu.open .submenu-list {
  display: block;
}

.submenu-item {
  display: block;
  padding: 0.5rem 1rem;
  color: #1f7a5f;
  text-decoration: none;
  font-weight: 500;
}

.submenu-item:hover {
  background: rgba(31, 122, 95, 0.08);
}

.hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(145deg, #1f7a5f, #2aa877);
  color: white;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.hero p {
  max-width: 720px;
  margin: 1.4rem auto;
  font-size: 1.05rem;
  opacity: 0.92;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  border-radius: 0.5rem;
  background: rgba(31, 122, 95, 0.9);
  border: 1px solid rgba(31, 122, 95, 1);
  color: white;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: rgba(31, 122, 95, 1);
  transform: translateY(-2px);
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: #ffffff;
}

.section h2 {
  font-size: 2rem;
  margin: 0 0 1.25rem;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: white;
  padding: 1.8rem;
  border-radius: 1rem;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card h3 {
  margin-top: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.contact-list a {
  word-break: break-word;
}

.site-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  z-index: 10;
}

main {
  padding-bottom: 6.5rem;
}

.site-footer p {
  margin: 0;
  text-align: center;
  color: rgba(0, 0, 0, 0.65);
  font-size: 0.95rem;
}

@media (max-width: 660px) {
  .nav {
    display: none;
  }

  .hero {
    padding: 4.5rem 0 3rem;
  }

  .container {
    padding: 1.2rem 1rem;
  }
}

/* ---- Sidebar / Navbar recorrível ---- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  max-width: 90vw;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 1px 0 18px rgba(0, 0, 0, 0.18);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 15;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.sidebar__title {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.sidebar__close {
  padding: 0.25rem 0.5rem;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar__nav a {
  padding: 0.6rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(31, 122, 95, 0.05);
  color: #1f7a5f;
  font-weight: 600;
  transition: background 0.2s ease;
}

.sidebar__nav a:hover {
  background: rgba(31, 122, 95, 0.15);
}

.menu-toggle {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  display: none;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 14;
}

body.sidebar-open .overlay {
  opacity: 1;
  pointer-events: auto;
}

body.sidebar-open main {
  margin-left: 260px;
  transition: margin-left 0.25s ease;
}

.hero-image-wrapper {
  margin: 2.25rem auto 1.8rem;
  max-width: 680px;
  padding: 1.1rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.16);
}

.hero-image {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  height: auto;
  object-fit: cover;
}

@media (max-width: 880px) {
  .menu-toggle {
    display: inline-flex;
  }

  body.sidebar-open main {
    margin-left: 0;
  }

  .sidebar {
    width: min(280px, 85vw);
  }
}

/* ---- Modal de contato ---- */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 25;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal__panel {
  position: relative;
  background: #ffffff;
  border-radius: 1rem;
  max-width: 420px;
  width: 100%;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal__header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.modal__close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal__body {
  font-size: 1rem;
  line-height: 1.5;
}

.modal__body a {
  color: #1f7a5f;
  text-decoration: underline;
}

.modal__body a:hover {
  text-decoration: none;
}
