/* Bio GS Consultoria Ambiental — Estilos (modo escuro) */

:root {
  color-scheme: dark;
  /* Marca */
  --color-brand: #1b4332;
  --color-secondary: #5ca97e;
  --color-accent: #74c69d;
  --color-white: #ffffff;
  --color-whatsapp: #25d366;
  /* Superfícies */
  --bg-page: #0d1612;
  --bg-raised: #15231c;
  --bg-muted: #1a2e24;
  --bg-header: rgba(13, 22, 18, 0.92);
  /* Texto */
  --text: #e8f0ec;
  --text-muted: #9cb5a8;
  --text-on-accent: #0d1612;
  /* Bordas / sombras */
  --border: rgba(116, 198, 157, 0.18);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 12px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #95d4b3;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--text);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  text-align: center;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.container {
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
}

.section-padding {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo-link {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: inherit;
}

.logo-link:hover {
  color: inherit;
}

.logo-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  line-height: 1.15;
}

.logo-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle-bar {
  width: 26px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.site-header.menu-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.menu-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--text-on-accent);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: #5fb88a;
  border-color: #5fb88a;
  color: var(--text-on-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-cta-header {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
  white-space: nowrap;
}

.btn-cta-header:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    z-index: 1002;
  }

  .nav-links-wrap {
    position: fixed;
    inset: 0;
    top: 72px;
    background: var(--bg-raised);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }

  .site-header.menu-open .nav-links-wrap {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-links a.active {
    color: var(--color-accent);
    padding-left: 0.75rem;
    border-left: 3px solid var(--color-accent);
  }

  .nav-cta {
    margin-top: 1rem;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }

  body.menu-open-overlay {
    overflow: hidden;
  }
}

@media (min-width: 901px) {
  .nav-links-wrap {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.75rem);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 720px);
  display: flex;
  align-items: center;
  color: var(--color-white);
  padding-block: clamp(4rem, 12vw, 7rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      135deg,
      rgba(7, 18, 14, 0.96) 0%,
      rgba(13, 36, 28, 0.9) 45%,
      rgba(27, 67, 50, 0.55) 100%
    ),
    url("https://images.unsplash.com/photo-1497436072909-60f360e1d4b1?w=1600") center /
      cover no-repeat;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  opacity: 0.92;
  margin: 0 0 2rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions .btn-primary {
  background: var(--color-accent);
  color: var(--text-on-accent);
}

.hero-actions .btn-primary:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--text-on-accent);
}

/* Sobre highlight cards */
.bg-light-section {
  background: var(--bg-muted);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.highlight-card {
  background: var(--bg-raised);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.highlight-card span {
  color: var(--text-muted);
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.highlight-card strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card,
.diff-card {
  background: var(--bg-raised);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover,
.diff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.section-servicos .service-card {
  border-top: 4px solid var(--color-accent);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(116, 198, 157, 0.15);
  color: var(--color-accent);
  border-radius: 10px;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p,
.diff-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.section-diferenciais .diff-card {
  border-left: 4px solid var(--color-secondary);
}

.diff-card .card-icon {
  background: rgba(92, 169, 126, 0.15);
  color: var(--color-accent);
}

/* CNAE badges */
.section-cnae {
  background: linear-gradient(180deg, var(--bg-muted) 0%, var(--bg-page) 42%);
}

.cnae-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.65rem;
  max-width: 960px;
  margin-inline: auto;
}

.cnae-pill {
  display: block;
  padding: 0.65rem 1rem;
  background: var(--bg-raised);
  color: var(--text);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.cnae-code {
  font-weight: 700;
  color: var(--color-accent);
  margin-right: 0.35rem;
}

/* Contato */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-muted);
}

.contact-item a {
  color: var(--color-accent);
}

.contact-item a:hover {
  color: var(--color-white);
}

.contact-item i {
  color: var(--color-accent);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.contact-form-wrap {
  background: var(--bg-muted);
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-page);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2374c69d' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-raised);
  color: var(--text);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(116, 198, 157, 0.2);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #e74c3c;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.field-error {
  font-size: 0.78rem;
  color: #ff8a80;
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  background: #070f0c;
  color: rgba(255, 255, 255, 0.86);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.site-footer .logo-title {
  color: var(--color-white);
}

.site-footer .logo-tagline {
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-block h4 {
  color: var(--color-accent);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-align: left;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer a:hover {
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  text-align: center;
  opacity: 0.92;
}

.footer-cnpj {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  opacity: 0.85;
}

/* Floating WhatsApp */
.float-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-whatsapp);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 1.75rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-wa 2.2s ease-in-out infinite;
}

.float-whatsapp:hover {
  color: var(--color-white);
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

@keyframes pulse-wa {
  0%,
  100% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45),
      0 0 0 0 rgba(37, 211, 102, 0.35);
  }
  50% {
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5),
      0 0 0 14px rgba(37, 211, 102, 0);
  }
}

/* Fade-in (IntersectionObserver) */
.fade-observe {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-observe.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-parent .fade-observe:nth-child(1) {
  transition-delay: 0.05s;
}
.stagger-parent .fade-observe:nth-child(2) {
  transition-delay: 0.12s;
}
.stagger-parent .fade-observe:nth-child(3) {
  transition-delay: 0.19s;
}
.stagger-parent .fade-observe:nth-child(4) {
  transition-delay: 0.26s;
}
.stagger-parent .fade-observe:nth-child(5) {
  transition-delay: 0.33s;
}
.stagger-parent .fade-observe:nth-child(6) {
  transition-delay: 0.4s;
}

/* Legal pages */
.legal-layout {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  min-height: 60vh;
  background: var(--bg-page);
}

.breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--color-accent);
}

.breadcrumb span {
  margin: 0 0.35rem;
}

.legal-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.legal-layout h1 {
  color: var(--text);
}

.legal-layout h2 {
  text-align: left;
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-layout p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.legal-layout a:hover {
  color: var(--color-white);
}

.logo-link.logo-footer {
  align-items: flex-start;
}

.text-block {
  max-width: 800px;
  margin-inline: auto;
}

.prose-intro {
  text-align: left;
}

/* Texto corrido importante (ex.: Quem Somos) em cima da cor de subtítulo */
.section-subtitle.prose-intro {
  color: var(--text);
  opacity: 0.95;
}

.legal-layout .prose-intro {
  color: var(--text);
  opacity: 1;
}

@media (max-width: 560px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }
}
