:root {
  /* Color Palette */
  --color-primary: #0A192F; /* Deep Navy Blue */
  --color-primary-light: #172A46;
  --color-accent: #D4AF37; /* Soft Gold */
  --color-accent-hover: #F1C40F;
  --color-dark: #222222;
  --color-text: #4A5568;
  --color-text-light: #718096;
  --color-bg: #FFFFFF;
  --color-bg-light: #F8F9FA;
  
  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  
  /* Layout */
  --container-width: 1200px;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-hover: 0 15px 35px rgba(10, 25, 47, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Adjust for fixed header */
}

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

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

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

ul {
  list-style: none;
}

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

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

.section {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--color-bg-light);
}

.bg-dark {
  background-color: var(--color-primary);
  color: #fff;
}

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

.text-white {
  color: #fff;
}

/* Typography elements */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 15px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.section-description {
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  color: var(--color-text-light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-family: var(--font-body);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
  color: var(--color-primary);
}

.btn-outline-light {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  padding: 15px 0;
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

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

.logo img {
  height: 50px;
  width: auto;
}

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

.nav-list {
  display: flex;
  gap: 25px;
}

.nav-link {
  font-weight: 500;
  color: var(--color-primary);
  position: relative;
  font-size: 0.95rem;
}

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

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

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.6) 100%);
  z-index: -1;
}

.hero-content {
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* About / Quem Somos Addon */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.highlight-card {
  background: var(--color-primary);
  color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

.stat-number {
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Services */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  display: flex;
  flex-direction: column;
  flex: 0 1 calc(33.333% - 20px);
  min-width: 340px;
  height: auto;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(10, 25, 47, 0.15);
  border-bottom-color: var(--color-accent);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 25px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--color-primary);
  color: var(--color-accent);
}

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

.service-list {
  flex-grow: 1;
}

.service-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: var(--color-text);
  font-size: 0.95rem;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: bold;
}

.card-span-2 {
  grid-column: span 2;
}

.list-columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Clients */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
  margin-top: 50px;
}

.client-logo-wrapper {
  background: #fff;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  width: 160px;
  flex-shrink: 0;
  aspect-ratio: 3/2;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%) opacity(0.7);
}

.client-logo-wrapper:hover {
  filter: grayscale(0%) opacity(1);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.client-logo {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
}

/* Foreign Clients Sidebar / Feature */
.foreign-clients {
  position: relative;
}

.foreign-clients-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.fc-intro {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 50px;
}

.fc-eyebrow {
  color: var(--color-accent);
}

.fc-text p {
  margin-bottom: 20px;
  opacity: 0.9;
  font-size: 1.1rem;
}

.fc-list {
  margin-top: 30px;
}

.fc-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  opacity: 0.9;
}

.fc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.fc-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fc-graphic {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  animation: pulse 4s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.2); }
  100% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(212, 175, 55, 0); }
}

/* Contacts */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-info {
  padding: 50px;
}

.contact-methods {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-method {
  display: flex;
  gap: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--color-bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-method-text h4 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.contact-method-text p a {
  color: var(--color-text);
  transition: var(--transition);
}

.contact-method-text p a:hover {
  color: var(--color-accent);
}

.contact-map {
  min-height: 400px;
}

/* Footer */
.footer {
  background-color: var(--color-primary-light);
  color: #fff;
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo {
  max-width: 200px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  opacity: 0.7;
  max-width: 300px;
}

.footer-links-group h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-links-group h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-links-group ul li {
  margin-bottom: 12px;
}

.footer-links-group ul li a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links-group ul li a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Floating Elements */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
  color: #fff;
  padding: 15px 0;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 20px;
}

.cookie-content p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.cookie-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: bounce 2s infinite;
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-5px);
  background-color: var(--color-accent-hover);
  color: var(--color-primary);
  animation-play-state: paused;
}

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

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  border-radius: var(--border-radius);
  padding: 40px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
}

.modal-body h2 {
  margin-bottom: 20px;
}

/* Animations Trigger System */
.animate-on-scroll {
  opacity: 0;
  will-change: opacity, transform;
  transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Animation Variants */
.fade-up {
  transform: translateY(60px);
}

.fade-left {
  transform: translateX(-60px);
}

.fade-right {
  transform: translateX(60px);
}

.zoom-in {
  transform: scale(0.85);
}

/* Staggered Delays (Incremental) */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }
.delay-8 { transition-delay: 0.8s; }

/* Interactive Floating Move */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.float-anim {
  animation: float 4s ease-in-out infinite;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-title { font-size: 3rem; }
  .about-grid { gap: 30px; }
  .card-span-2 { grid-column: span 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 300px; }
}

@media (max-width: 768px) {
  .header { padding: 8px 0; }
  .logo img { height: 40px; }
  .hero-title { font-size: 2.5rem; }
  .header-container { position: relative; }
  
  .menu-toggle { display: flex; }
  
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }
  
  .nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }
  
  .nav .btn { display: block; margin-top: 15px; width: 100%; }
  
  .about-grid { grid-template-columns: 1fr; }
  .foreign-clients-layout { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  
  .cookie-content { flex-direction: column; text-align: center; }
  
  .highlight-card { grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; padding: 20px;}
  .stat-number { font-size: 2rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .section { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .highlight-card { grid-template-columns: 1fr; }
  .contact-info { padding: 40px 20px; }
  .stat-number { font-size: 2.5rem; }
}
