:root {
  --primary-color: #1E3F33; /* Deep Pine */
  --secondary-color: #4A7C59; /* Bright Sage */
  --accent-color: #D4A373; /* Golden Sand */
  --bg-color: #F9F9FC;
  --surface-color: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-light: #666666;
  --white: #FFFFFF;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-md: 12px;
  --radius-lg: 24px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-padding {
  padding: 6rem 0;
}

.text-center {
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(74, 124, 89, 0.1);
  color: var(--secondary-color);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(30, 63, 51, 0.39);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 124, 89, 0.23);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-dark);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background-color: var(--primary-color);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary-color) 0%, rgba(30, 63, 51, 0.7) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.hero-content {
  max-width: 700px;
  animation: fadeUp 1s ease-out forwards;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* About Section */
.about {
  background: var(--surface-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-img-wrapper:hover img {
  transform: scale(1.03);
}

.about-stats {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  animation: float 6s ease-in-out infinite;
}

.stats-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1;
}

.stats-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
}

.about-content ul {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-content li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(74, 124, 89, 0.1);
  color: var(--secondary-color);
  border-radius: 50%;
}

/* Services */
.services {
  background: var(--bg-color);
}

.services-header {
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.service-category-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.mb-5 { margin-bottom: 4rem; }
.mt-5 { margin-top: 4rem; }

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

.service-card {
  background: var(--surface-color);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--secondary-color);
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  height: 6px;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(74, 124, 89, 0.1);
  color: var(--secondary-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--secondary-color);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.875rem;
}

.service-link:hover {
  color: var(--secondary-color);
  gap: 0.75rem;
}

/* Call to Action */
.cta {
  background: var(--primary-color);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  color: var(--white);
}

.cta::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--secondary-color);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(50px);
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta h2 {
  color: var(--white);
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* Footer */
footer {
  background: #111111;
  color: #fff;
  padding: 5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: #999;
  font-size: 0.95rem;
}

.footer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: #999;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: #999;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-contact i {
  color: var(--accent-color);
  margin-top: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: #666;
  font-size: 0.875rem;
}

/* Logo Image */
.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.footer-brand .logo-img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Authority Section */
.authority {
  background: var(--surface-color);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.authority-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.authority-img-wrapper {
  position: relative;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f0f0f0;
}

.authority-img-wrapper img {
  width: 100%;
  display: block;
}

.authority-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
}

.authority-features {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.authority-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  color: var(--text-dark);
}

.authority-features i {
  color: var(--secondary-color);
  font-size: 1.25rem;
}

/* Auditoria IA Section */
.auditor-box {
  background: var(--surface-color);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.input-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  resize: vertical;
  transition: var(--transition);
}

.input-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.auditor-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  color: var(--secondary-color);
}

.auditor-loading i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.auditor-result {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

#iaContent {
  background: rgba(74, 124, 89, 0.05);
  padding: 2rem;
  border-left: 4px solid var(--secondary-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2rem;
}

#iaContent h3, #iaContent strong {
  color: var(--primary-color);
}

#iaContent ul {
  padding-left: 1.5rem;
  list-style: disc;
  margin-bottom: 1.5rem;
}

.auditor-cta {
  background: var(--primary-color);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.auditor-cta h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.auditor-cta .btn {
  margin-top: 1rem;
  background: var(--accent-color);
  color: var(--white);
}

.auditor-cta .btn:hover {
  background: var(--secondary-color);
  color: var(--white);
}

/* Ticker de Editais Dinâmico */
.edital-ticker-wrapper {
  background: var(--primary-color);
  color: white;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
}
.ticker-label {
  background: var(--accent-color);
  color: white;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  position: absolute;
  left: 0;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
}
.edital-ticker {
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  display: inline-block;
  padding-left: 100%;
}
.edital-ticker:hover {
  animation-play-state: paused;
}
.ticker-item {
  display: inline-block;
  margin-right: 60px;
  font-size: 0.95rem;
}
.ticker-item i {
  color: var(--secondary-color);
  margin-right: 6px;
}
.ticker-link {
  color: white;
  text-decoration: none;
}
.ticker-link:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}


/* Glassmorphism & Premium Portfolio Utils */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.bg-pattern {
  background-image: radial-gradient(var(--secondary-color) 0.5px, transparent 0.5px);
  background-size: 20px 20px;
  background-position: 0 0;
  opacity: 0.1;
  position: absolute;
  inset: 0;
  z-index: -1;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

.project-hero {
  padding-top: 180px;
  padding-bottom: 100px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.project-hero h1 {
  color: white;
  margin-bottom: 1rem;
}

.project-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(4px);
}

.project-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.project-content {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.content-main {
  background: white;
  padding: 4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-box {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.sidebar-box h4 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.impact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.impact-item {
  display: flex;
  flex-direction: column;
}

.impact-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1.2;
}

.impact-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  background: var(--primary-color);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  opacity: 0.7;
}

.portfolio-card:hover img {
  transform: scale(1.1);
  opacity: 0.4;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(30, 63, 51, 0.9) 0%, transparent 60%);
  color: white;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
  background: linear-gradient(to top, rgba(30, 63, 51, 0.95) 0%, rgba(30, 63, 51, 0.4) 100%);
}

.portfolio-overlay h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay h3 {
  transform: translateY(0);
}

.portfolio-overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay p {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  width: fit-content;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.portfolio-card:hover .portfolio-btn {
  opacity: 1;
  transform: translateY(0);
  background: var(--white);
  color: var(--primary-color);
}

/* Instagram Grid */
.insta-mock:hover img {
    transform: scale(1.1);
}
.insta-mock:hover .insta-hover {
    opacity: 1 !important;
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid, .authority-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .nav-links {
    display: none; /* In a real app we'd add a hamburger menu */
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
