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

:root {
  /* Color Palette - Corporate NICK LOGISTICS */
  --color-green: #0a3d2e;      
  --color-blue: #0b2b46;       
  --color-gold: #c6a86c;       
  --color-gold-hover: #b5985d;
  
  --bg-light: #f4f6f8;
  --bg-white: #ffffff;
  
  --text-main: #334155;
  --text-heading: #1e293b;
  --text-light: #f1f5f9;
  --text-muted: #64748b;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --section-padding: 120px 5%;
  --container-width: 1300px;
  --radius: 8px; /* Slightly softer for images */
  
  /* Shadows */
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
  --shadow-image: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
  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-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  border-radius: var(--radius);
  display: block;
}

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

/* Typography Helpers */
.highlight-text {
  color: var(--color-gold);
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--bg-light);
  color: var(--color-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-left: 4px solid var(--color-gold);
  margin-bottom: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-gold);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(198, 168, 108, 0.4);
}

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

.btn-outline:hover {
  background-color: #ffffff;
  color: var(--color-blue);
  transform: translateY(-3px);
}

/* Navbar */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 5px 5%; /* Increased padding to prevent logo from sticking out */
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar.scrolled {
  position: fixed;
  padding: 8px 5%; /* Slightly more compact when scrolled */
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ENORMOUS LOGO */
.nav-brand img {
  height: 140px; /* Reduced slightly for better proportions */
  width: auto !important; /* Force aspect ratio preservation */
  margin-top: 0px;
  margin-bottom: 0px;
  transition: var(--transition);
  border-radius: 0;
  transform: translateY(2px); /* Reduced vertical offset */
  mix-blend-mode: normal; /* Disabling blend mode as JS background removal is more reliable */
}

.navbar.scrolled .nav-brand img {
  height: 90px;
  width: auto !important;
  transform: translateY(0);
}

.nav-links {
  display: flex;
  gap: 20px; /* Further reduced to accommodate large logo */
  align-items: center;
  flex-shrink: 0; /* Don't squash the nav area */
}

.lang-switcher {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
  margin-right: 25px; 
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: var(--transition);
  border-radius: 4px;
  overflow: hidden;
}

.lang-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lang-btn.active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--color-gold);
}

.lang-btn img {
  width: 24px;
  height: auto;
  display: block;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.85rem; /* Slightly smaller font to help avoid wrapping */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 5px;
  white-space: nowrap; /* Prevent breaking line */
}

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

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

.nav-link:hover {
  color: var(--color-gold);
}

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

.hamburger span {
  display: block;
  width: 32px;
  height: 3px;
  background: var(--color-blue);
  transition: all 0.4s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  padding: 0 5%;
  background-color: var(--color-green);
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Darker gradient overlay for better text contrast */
  background: linear-gradient(135deg, rgba(10, 61, 46, 0.85) 0%, rgba(11, 43, 70, 0.9) 100%),
              url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?q=80&w=2670&auto=format&fit=crop') center/cover no-repeat;
  /* Add subtle scale animation to background */
  animation: heroBgZoom 20s infinite alternate linear;
  z-index: 1;
}

@keyframes heroBgZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: 180px; /* Restored to 180px as approved */
}

.hero-content .badge {
  background-color: rgba(255,255,255,0.15);
  color: #fff;
  border-left-color: var(--color-gold);
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 30px;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 50px;
  max-width: 700px;
  font-weight: 400;
  line-height: 1.6;
}

/* Smooth cut to body */
.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
}

.hero-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* Animations Trigger */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in {
  opacity: 0;
  transition: 1s ease-in;
}

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.visible {
  opacity: 1;
  transform: translate(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Sections */
.section {
  padding: var(--section-padding);
}

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

/* Image wrappers for fancy reveal */
.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-image);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  transition: transform 0.7s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(11, 43, 70, 0.9), transparent);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
}

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

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 30px;
  color: var(--color-blue);
}

.about-text p {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 24px;
}

.about-details {
  border-top: 2px solid rgba(0,0,0,0.05);
  padding-top: 30px;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.about-detail-item h3 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.4rem;
  color: var(--color-green);
  margin-bottom: 10px;
}

.about-detail-item h3 i {
  color: var(--color-gold);
  font-size: 1.8rem;
}

/* Services Weave Layout */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px auto;
}

.section-header h2 {
  font-size: 3rem;
  color: var(--color-blue);
  margin-bottom: 20px;
}

.services-weave {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.services-weave.flip .weave-content {
  order: 2;
}

.services-weave.flip .weave-image {
  order: 1;
}

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

.service-card {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  height: 100%;
}

.bg-offset .service-card {
  background: var(--bg-white);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(198, 168, 108, 0.1);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 2rem;
  margin-bottom: 30px;
  transition: var(--transition);
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--color-blue);
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-main);
  margin-bottom: 24px;
  font-size: 1rem;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--color-gold);
}

.service-card:hover .service-icon {
  background: var(--color-gold);
  color: #fff;
}

/* Service Card List */
.service-list {
  margin-top: 15px;
}
.service-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.service-list li i {
  color: var(--color-gold);
  margin-top: 3px;
}

/* Grid within Weave needs adjustments */
.weave-content .services-grid {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media screen and (min-width: 1400px) {
  .weave-content .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Full Width Grid */
.full-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* CTA Section */
.cta-section {
  background-color: var(--color-blue);
  background-image: url('https://images.unsplash.com/photo-1494412519320-aa613dfb7738?q=80&w=2670&auto=format&fit=crop');
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 120px 5%;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 24px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 48px;
}

/* Footer */
.footer {
  background-color: #051624;
  color: #fff;
  padding: 80px 5% 40px;
}

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

.footer-brand img.footer-logo-img {
  height: 110px;
  width: auto !important;
  margin-bottom: 25px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  padding: 0;
  /* Ensure it pops on dark background */
  filter: brightness(1.1) contrast(1.1); 
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  max-width: 350px;
}

.footer h4 {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--color-gold);
  letter-spacing: 1px;
}

.footer-links li {
  margin-bottom: 16px;
}

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

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}
/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 65px;
  height: 65px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #128c7e;
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

@media screen and (max-width: 768px) {
  .whatsapp-float {
    width: 65px; /* Slightly bigger */
    height: 65px;
    bottom: 30px;
    right: 20px;
    font-size: 35px;
  }
}
