@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #F9F9FB;
  --bg-pure: #FFFFFF;
  --bg-secondary: #111111;
  --text-main: #222222;
  --text-light: #666666;
  --text-inverse: #E5E7EB;
  --brand-color: #2F694D; /* Verde Botânico MM Engenharia */
  --brand-light: #ece5e2; /* Original light variation */
  --brand-accent: #C5A059; /* Gold touch */
  --border-color: rgba(34, 34, 34, 0.1);
  --border-light: rgba(255, 255, 255, 0.1);
  
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-main);
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 8rem 0;
  position: relative;
}

/* Typography Utility */
.text-brand { color: var(--brand-color); }
.text-light { color: var(--text-light); }
.text-inverse { color: var(--bg-pure); }
.bg-dark { background-color: var(--bg-secondary); color: var(--bg-pure); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--bg-pure); }

.subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--brand-color);
  margin-bottom: 1rem;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.btn-primary {
  background-color: var(--brand-color);
  color: var(--bg-pure);
}

.btn-primary:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-outline {
  border-color: var(--text-main);
  color: var(--text-main);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--text-main);
  color: var(--bg-pure);
}

.btn-inverse-outline {
  border-color: var(--bg-pure);
  color: var(--bg-pure);
  background: transparent;
}

.btn-inverse-outline:hover {
  background-color: var(--bg-pure);
  color: var(--bg-secondary);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stagger-item {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-container.active .stagger-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }
.stagger-item:nth-child(5) { transition-delay: 0.5s; }
.stagger-item:nth-child(6) { transition-delay: 0.6s; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  background: transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header.scrolled .nav-link {
  color: var(--text-main);
}

.header.scrolled .logo-text {
  color: var(--text-main);
}

.header.scrolled .logo-img {
  height: 55px;
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 75px;
  width: auto;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--bg-pure);
  transition: var(--transition-smooth);
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bg-pure);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--brand-color);
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-bottom: 4rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}

/* Premium Transition for the First Section */
#sobre {
  margin-top: -80px;
  position: relative;
  z-index: 10;
  background-color: var(--bg-pure);
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.15);
  padding-top: 8rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(17, 17, 17, 0.9) 0%, rgba(17, 17, 17, 0.4) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  color: var(--bg-pure);
}

.hero-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  color: var(--bg-pure);
}

.hero-desc {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--bg-pure);
  opacity: 0.7;
  transition: var(--transition-smooth);
  animation: bounce 2s infinite;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background-color: var(--bg-pure);
  margin-top: 0.5rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

/* Value Proposition */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.feature-card {
  padding: 2rem;
  background: var(--bg-pure);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  border-color: var(--brand-color);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

.feature-icon {
  font-size: 2rem;
  color: var(--brand-color);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.feature-desc {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Projects Showcase */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-tags {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.project-card:hover .project-tags {
  transform: translateY(0);
}

.tag {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  font-size: 0.75rem;
  color: var(--bg-pure);
  border: 1px solid rgba(255,255,255,0.2);
}

.project-title {
  color: var(--bg-pure);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  transition-delay: 0.05s;
}

.project-card:hover .project-title {
  transform: translateY(0);
}

/* Specifications / Accordion */
.specs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.specs-img-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.specs-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.accordion {
  margin-top: 2rem;
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-header {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.accordion-icon {
  transition: transform 0.3s ease;
  color: var(--brand-color);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--text-light);
}

.accordion-item.active .accordion-content {
  padding-bottom: 1.5rem;
}

/* Metrics Section */
.metrics-section {
  background-color: var(--bg-secondary);
  color: var(--bg-pure);
  padding: 6rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--brand-accent);
  margin-bottom: 0.5rem;
  display: block;
}

.metric-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
  background-color: var(--brand-color);
  color: var(--bg-pure);
  text-align: center;
}

.cta-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--bg-pure);
}

/* Footer */
.footer {
  background-color: #0A0A0A;
  color: rgba(255,255,255,0.6);
  padding: 5rem 0 2rem;
}

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

.footer-logo {
  filter: brightness(0) invert(1);
  height: 40px;
  margin-bottom: 1.5rem;
}

.footer-desc {
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-title {
  color: var(--bg-pure);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

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

.footer-link {
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--brand-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* Form Layout in CTA Section */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cta-form-container {
  background: rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-smooth);
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: var(--bg-pure);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

/* Floating WhatsApp Button */
.float-whatsapp {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.float-whatsapp:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: #FFF;
}

.float-tooltip {
  position: absolute;
  right: 80px;
  background: var(--bg-pure);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.float-whatsapp:hover .float-tooltip {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .specs-layout { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-layout { gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; } /* Add hamburger menu later */
  .hero-title { font-size: 2.5rem; }
  .hero-ctas { flex-direction: column; }
  .projects-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .float-whatsapp { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .float-tooltip { display: none; }
}
