/* ============================================
   SOUND AGRICULTURE BR — DESIGN SYSTEM GLOBAL
   Auditado contra brand guide oficial
   ============================================ */

:root {
  /* CORES — auditadas conforme brand guide */
  --dark-blue: #1C222E;
  --dark-blue-alt: #28334A;
  --neutral-light: #FDF6E9;
  --neutral-warm: #EDDFC5;
  --orange: #D05327;          /* Orange Secondary digital — corrigido */
  --aa-orange: #E95B29;       /* Acento viral */
  --yellow: #EBA723;
  --purple: #5A4C9F;
  --green: #00946E;
  --light-blue: #0088CA;
  --white: #ffffff;

  /* TIPOGRAFIA — 100% alinhada ao Brand Guide Sound Agriculture
     Alternativas web oficiais (Google Fonts):
     - Roboto Bold/Black (headlines) — proxy de Roc Grotesk/Favorit Bold
     - Roboto Regular (body) — proxy de Favorit Regular
     - Roboto Mono (labels) — proxy de Favorit Mono */
  --font-display: 'Roboto', -apple-system, sans-serif;
  --font-body: 'Roboto', -apple-system, sans-serif;
  --font-mono: 'Roboto Mono', monospace;

  /* ESPAÇAMENTO */
  --section-py: clamp(4rem, 10vw, 7rem);
  --container-px: clamp(20px, 5vw, 60px);

  /* EASINGS */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--neutral-light);
  color: var(--dark-blue);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--neutral-light); }
::-webkit-scrollbar-thumb { background: var(--dark-blue-alt); border-radius: 3px; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* LABEL MONO — conforme brand guide (Favorit Mono proxy) */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--orange);
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--orange);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  color: var(--dark-blue);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.section-title em {
  font-style: normal;
  font-weight: 900;
  color: var(--orange);
}

.eyebrow-mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(28,34,46,0.5);
}

/* ANIMAÇÕES base */
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  30% { transform: translate(3%, -15%); }
  50% { transform: translate(12%, 9%); }
  70% { transform: translate(9%, 4%); }
  90% { transform: translate(-1%, 7%); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-delay-5 { transition-delay: 0.6s; }

/* ============================================
   NAV GLOBAL
   ============================================ */
nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all 0.4s var(--ease-out);
  background: transparent;
}
nav.site-nav.dark-page {
  background: rgba(28,34,46,0.0);
}
nav.site-nav.scrolled {
  background: rgba(253,246,233,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 30px rgba(28,34,46,0.06);
  padding: 0.8rem 0;
}
nav.site-nav.dark-page.scrolled {
  background: rgba(28,34,46,0.92);
  box-shadow: 0 1px 30px rgba(0,0,0,0.2);
}
nav.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 30px; width: auto; transition: filter 0.3s; }
nav.site-nav.dark-page:not(.scrolled) .nav-logo img,
nav.site-nav.dark-page.scrolled .nav-logo img { filter: brightness(0) invert(1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links > li > a {
  text-decoration: none;
  color: var(--dark-blue);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  padding: 0.3rem 0;
}
nav.site-nav.dark-page:not(.scrolled) .nav-links > li > a { color: var(--neutral-light); }
nav.site-nav.dark-page.scrolled .nav-links > li > a { color: var(--neutral-light); }
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s var(--ease-out);
}
.nav-links > li > a:hover { color: var(--orange); }
.nav-links > li > a:hover::after { width: 100%; }
.nav-links > li > a.active { color: var(--orange); }
.nav-links > li > a.active::after { width: 100%; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.nav-dropdown-trigger svg { width: 10px; height: 10px; transition: transform 0.3s; }
.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white);
  min-width: 240px;
  padding: 0.6rem;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(28,34,46,0.12), 0 0 0 1px rgba(28,34,46,0.04);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
  list-style: none;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--dark-blue) !important;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-dropdown-menu a:hover {
  background: var(--neutral-light);
  color: var(--orange) !important;
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a small {
  display: block;
  font-size: 0.72rem;
  color: rgba(28,34,46,0.5);
  font-weight: 400;
  margin-top: 2px;
}

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 0.7rem 1.5rem !important;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: all 0.3s var(--ease-out) !important;
  box-shadow: 0 4px 15px rgba(208,83,39,0.25);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--aa-orange) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(208,83,39,0.35);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark-blue);
  transition: all 0.3s;
  border-radius: 2px;
}
nav.site-nav.dark-page:not(.scrolled) .menu-toggle span { background: var(--neutral-light); }

/* ============================================
   BOTÕES
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--orange);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 20px rgba(208,83,39,0.3);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--aa-orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(208,83,39,0.4);
}
.btn-primary .arrow { transition: transform 0.3s; font-size: 1.1rem; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--dark-blue);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1.5px solid rgba(28,34,46,0.15);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--dark-blue);
  background: var(--dark-blue);
  color: var(--neutral-light);
}

.btn-secondary-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--neutral-light);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid rgba(253,246,233,0.2);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}
.btn-secondary-light:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(208,83,39,0.05);
}

/* ============================================
   PAGE HERO (páginas internas)
   ============================================ */
.page-hero {
  background: var(--dark-blue);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  color: var(--neutral-light);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(208,83,39,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(90,76,159,0.06) 0%, transparent 60%);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: -200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
  pointer-events: none;
  opacity: 0.4;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(253,246,233,0.5);
  margin-bottom: 1.5rem;
}
.page-hero .breadcrumb a {
  color: rgba(253,246,233,0.5);
  text-decoration: none;
  transition: color 0.3s;
}
.page-hero .breadcrumb a:hover { color: var(--orange); }
.page-hero .breadcrumb .sep {
  margin: 0 0.6rem;
  opacity: 0.5;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--neutral-light);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
  max-width: 800px;
}
.page-hero h1 em { font-style: normal; font-weight: 900; color: var(--orange); }
.page-hero p.hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(253,246,233,0.7);
  max-width: 640px;
}

/* ============================================
   FOOTER EXPANDIDO (conforme feedback Sound)
   ============================================ */
footer.site-footer {
  background: var(--dark-blue);
  padding: 5rem 0 2rem;
  color: rgba(253,246,233,0.6);
  position: relative;
  overflow: hidden;
}
footer.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(208,83,39,0.3), transparent);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(253,246,233,0.08);
}
.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { margin-bottom: 1.2rem; }
.footer-brand .nav-logo img {
  filter: brightness(0) invert(1);
  height: 28px;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.footer-newsletter {
  display: flex;
  gap: 0.5rem;
  background: rgba(253,246,233,0.05);
  border: 1px solid rgba(253,246,233,0.08);
  border-radius: 50px;
  padding: 4px;
  max-width: 100%;
}
.footer-newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.6rem 1rem;
  color: var(--neutral-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.footer-newsletter input::placeholder { color: rgba(253,246,233,0.4); }
.footer-newsletter button {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.3s;
  font-family: var(--font-body);
}
.footer-newsletter button:hover { background: var(--aa-orange); }

.footer-col h4 {
  font-family: var(--font-mono);
  color: var(--neutral-light);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.footer-col a {
  display: block;
  color: rgba(253,246,233,0.55);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s, transform 0.3s;
}
.footer-col a:hover {
  color: var(--orange);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a {
  color: rgba(253,246,233,0.5);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-bottom-links a:hover { color: var(--orange); }

.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(253,246,233,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(253,246,233,0.6);
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
}
.footer-social a:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-social a svg { width: 16px; height: 16px; fill: currentColor; }

/* ============================================
   RESPONSIVE GLOBAL
   ============================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { padding: 130px 0 70px; }
}
@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr; }
}
