/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy-dark: #08243c;
  --navy: #08345c;
  --navy-95: rgba(8, 52, 92, 0.95);
  --navy-80: rgba(8, 52, 92, 0.80);
  --orange: #e8772e;
  --gold: #c9a96e;
  --white: #f9fafb;
  --light-bg: #f9fafb;
  --dark-text: #0d202b;
  --gray-text: #6b7280;
  --green-whatsapp: #25d366;
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* ========== NAVBAR ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--navy-95);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  height: 48px;
  width: auto;
}

.footer-logo-img {
  height: 56px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links > a,
.nav-dropdown-btn {
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

.nav-links > a:hover,
.nav-dropdown-btn:hover {
  color: var(--orange);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chevron {
  font-size: 10px;
  transition: transform 0.3s;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  min-width: 260px;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.nav-dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown:hover .chevron {
  transform: rotate(180deg);
}

.dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  font-size: 14px;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background: rgba(255,255,255,0.1);
}

.btn-whatsapp-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-whatsapp) !important;
  border: 1px solid var(--green-whatsapp);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 13px !important;
  letter-spacing: 1.5px;
  transition: all 0.3s;
}

.btn-whatsapp-nav:hover {
  background: var(--green-whatsapp);
  color: #fff !important;
}

.btn-whatsapp-nav svg {
  width: 16px;
  height: 16px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(8, 36, 60, 0.85) 0%, rgba(8, 52, 92, 0.7) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--white);
  margin-bottom: 24px;
}

.hero-content h1 .highlight {
  color: var(--white);
}

.hero-line {
  width: 60px;
  height: 4px;
  background: var(--orange);
  margin: 0 auto;
}

/* ========== SERVICES GRID ========== */
.services-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  margin-top: -64px;
  position: relative;
  z-index: 20;
}

.services-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  background: #fff;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  overflow: hidden;
}

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

.services-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.service-card {
  padding: 32px 28px;
  display: flex;
  align-items: flex-start;
}

.service-card h2 {
  font-size: 20px;
  font-weight: 700;
}

.service-card-light {
  background: #fff;
  color: var(--dark-text);
}

.service-card-dark {
  background: var(--navy);
  color: #fff;
}

.service-card-dark h2 {
  color: #fff;
}

.service-card:last-child {
  grid-column: span 2;
}

/* ========== ABOUT ========== */
.about {
  padding: 100px 24px;
  background: var(--light-bg);
}

.about-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.section-label {
  display: inline-block;
  color: var(--orange);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.about-content h2 {
  font-size: 36px;
  color: var(--dark-text);
  margin-bottom: 24px;
}

.about-content p {
  color: var(--gray-text);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ========== INDÚSTRIA 4.0 ========== */
.industria40 {
  padding: 100px 24px;
  background: var(--light-bg);
}

.industria40-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.industria40-text h2 {
  font-size: 32px;
  color: var(--dark-text);
  margin-bottom: 24px;
  line-height: 1.3;
}

.industria40-text p {
  color: var(--gray-text);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.btn-cta {
  display: inline-block;
  background: var(--gray-text);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s;
}

.btn-cta:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

.industria40-image img {
  width: 100%;
  border-radius: 8px;
}

/* ========== PILLARS (O QUÊ / COMO / POR QUÊ) ========== */
.pillars {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pillars-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.pillars-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 36, 60, 0.88);
  z-index: 2;
}

.pillars-container {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.pillar h2 {
  font-size: 28px;
  color: var(--orange);
  margin-bottom: 16px;
}

.pillar-line {
  width: 40px;
  height: 3px;
  background: var(--orange);
  margin-bottom: 20px;
}

.pillar p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  line-height: 1.8;
}

/* ========== SEGMENTOS ========== */
.segments {
  padding: 100px 24px;
  background: var(--light-bg);
}

.segments-header {
  text-align: center;
  margin-bottom: 60px;
}

.segments-header h2 {
  font-size: 36px;
  color: var(--dark-text);
}

.segments-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.segment-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.segment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.segment-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.segment-label {
  background: var(--gold);
  color: #fff;
  padding: 16px 24px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

/* ========== FOOTER ========== */
footer {
  background: var(--navy-dark);
  color: #fff;
  padding: 60px 24px 30px;
}

.footer-top {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}


.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-social a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--orange);
}

.footer-columns {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h3 {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--gold);
  font-size: 15px;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--orange);
}

.footer-col p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  line-height: 1.7;
}

.mt-2 {
  margin-top: 28px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

.footer-bottom a {
  color: var(--gold);
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: var(--orange);
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--green-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1024px) {
  .services-container {
    grid-template-columns: 1fr;
  }

  .services-image {
    height: 300px;
    overflow: hidden;
  }

  .about-container,
  .industria40-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pillars-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--navy);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .hamburger {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    display: none;
  }

  .nav-dropdown.active .dropdown-content {
    display: block;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .services-grid {
    margin-top: -32px;
  }

  .services-cards {
    grid-template-columns: 1fr;
  }

  .service-card:last-child {
    grid-column: span 1;
  }

  .about-content h2,
  .industria40-text h2,
  .segments-header h2 {
    font-size: 26px;
  }

  .segments-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pillar h2 {
    font-size: 22px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .nav-container {
    height: 70px;
  }

  .logo-name {
    font-size: 20px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .service-card h2 {
    font-size: 17px;
  }

  .about,
  .industria40,
  .segments {
    padding: 60px 16px;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }
}
