:root {
  /* Colors */
  --primary-color: #1a2b4b;
  /* Navy Blue */
  --secondary-color: #ff6b35;
  /* Orange */
  --text-color: #333333;
  --light-bg: #f5f7fa;
  --white: #ffffff;
  --grey: #666666;
  color-scheme: only light;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 80px 0;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-color) !important;
  background: linear-gradient(var(--white), var(--white)) !important;
  background-color: var(--white) !important;
  line-height: 1.6;
  color-scheme: only light !important;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.eyebrow {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.divider {
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 20px auto 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
  border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

.btn-outline {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--white);
  /* margin-left: 20px; Removed - handled by gap */
  font-weight: 600;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--white);
}

/* Navigation */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  /* Add padding to prevent logo sticking */
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
}

.logo .accent {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary-color);
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.nav-links .btn-nav {
  padding: 8px 20px;
  background-color: var(--secondary-color);
  color: var(--white);
  border: 2px solid var(--secondary-color);
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

.nav-links .btn-nav:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  /* height: 100vh; Removed fixed height to prevent overlap */
  min-height: 100vh;
  /* Use min-height instead */
  padding-bottom: 60px;
  /* Add bottom padding for content */
  background-color: var(--primary-color);
  /* Fallback */
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  padding-top: 80px;
  /* Nav height */
  background: linear-gradient(rgba(26, 43, 75, 0.92), rgba(26, 43, 75, 0.85)), url('assets/hero-bg.jpg') no-repeat center center/cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.hero-logo {
  max-width: 320px;
  margin-bottom: 30px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hero-title,
.hero-content h1 {
  font-size: 2.2rem;
  /* Reduced from 2.8rem */
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--secondary-color);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* About Section */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.value-card {
  background: var(--primary-color);
  color: var(--white);
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s;
}

.value-card p {
  margin-bottom: 0;
  /* Reset browser default */
}

.value-card:hover {
  transform: translateY(-10px);
}

.value-card.highlight-card {
  background: var(--secondary-color);
}

.value-card h3 {
  color: var(--white);
  margin-top: 0;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.value-card .icon-box {
  font-size: 3rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  /* Fixed height for title alignment */
}

.value-card .icon-box svg {
  width: 48px;
  height: 48px;
  stroke: var(--secondary-color);
}

.value-card.highlight-card .icon-box svg {
  stroke: var(--primary-color);
}

.values-list {
  text-align: left;
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 0;
  display: inline-block;
}

.values-list li {
  margin-bottom: 0;
  /* Remove margin to match paragraph line spacing */
  font-size: 0.95rem;
  color: inherit;
  line-height: 1.6;
  /* Match global body line-height */
}

.about-company {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.badge {
  color: var(--primary-color);
  font-weight: 700;
  font-family: var(--font-heading);
}

.badge::before {
  content: '✔';
  color: var(--secondary-color);
  margin-right: 8px;
}

/* Methodology */
.methodology {
  background-color: var(--light-bg);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  /* 220px allows 4 items in a row */
  gap: 30px;
}

.step-item {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  /* border-top handled by specific classes */
  transition: transform 0.3s;
  /* Smooth hover effect */
}

.step-item:hover {
  transform: translateY(-10px);
  /* Lift effect like About Us */
}

.step-number {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(26, 43, 75, 0.1);
  position: absolute;
  top: -10px;
  right: 10px;
  line-height: 1;
}

.step-item h3 {
  text-transform: uppercase;
  font-size: 1.5rem;
  /* Increased for impact */
  margin-bottom: 10px;
  font-weight: 800;
}

.step-item strong {
  display: block;
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.step-item p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* Color Variants */
.step-orange {
  border-top: 5px solid var(--secondary-color);
}

.step-orange h3 {
  color: var(--secondary-color);
}

.step-blue {
  border-top: 5px solid var(--primary-color);
}

.step-blue h3 {
  color: var(--primary-color);
}

.step-number {
  font-size: 4rem;
  /* Reduced to avoid overlap */
  font-weight: 900;
  color: #e6efff;
  /* Very light blue for background number similar to ref */
  position: absolute;
  top: -10px;
  right: 15px;
  line-height: 1;
  z-index: 0;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  text-align: left;
  /* Switch to left alignment for a more premium look */
  padding: 40px 30px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 4px solid transparent;
  /* Prepare for hover effect */
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--secondary-color);
  /* Subtle color accent on hover */
}

.service-icon {
  margin-bottom: 25px;
  /* Fixed height container for perfect alignment across all cards */
  height: 90px;
  width: 100%;
  display: flex;
  align-items: center;
  /* Vertically center the icon */
  justify-content: flex-start;
  /* Left align (or center if preferred, but cards are left-aligned) */
}

.service-icon img {
  display: block;
  /* distinct sizes controlled by max-height/width to maintain aspect ratio */
  max-height: 80px;
  max-width: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Specific Border Colors */
.service-orange {
  border-left: 5px solid var(--secondary-color);
}

.service-blue {
  border-left: 5px solid var(--primary-color);
}

/* Portfolio Highlight */
.portfolio-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  /* height: 500px; Remove fixed height from container to let content breathe or adjust via padding */
  min-height: 500px;
  /* Ensure a substantial size */
}

.portfolio-image {
  height: 400px;
  /* Fixed height for all images, smaller than container */
  width: 100%;
  overflow: hidden;
  display: flex;
  /* Center image if needed, though object-fit covers it */
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Default center cropping for all */
  transition: transform 0.5s ease;
}

.portfolio-img:hover {
  transform: scale(1.05);
  /* Slight zoom on hover */
}

/* Specific adjustment: Shift left (25%) to crop right columns and center stand */
.img-brametal {
  object-position: 25% center;
}

.img-placeholder {
  background-color: #333;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
}

.portfolio-content {
  padding: 40px;
}

.portfolio-content h3 {
  color: var(--white);
  font-size: 2rem;
}

.tag {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.portfolio-features {
  margin: 20px 0;
}

.portfolio-features li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary-color);
}

.btn-text {
  color: var(--secondary-color);
  font-weight: 700;
  margin-top: 20px;
  display: inline-block;
}

/* Footer */
.footer {
  background-color: #111;
  color: #888;
  padding: 60px 0 20px;
}

.footer h3,
.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #333;
  padding-bottom: 40px;
}

.brand-description {
  margin-top: 15px;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #25D366;
  /* WhatsApp Green */
  text-decoration: none;
  font-weight: 600;
  margin-top: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: #888;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  /* border: 1px solid #444; Removed border */
  /* border-radius: 50%; Removed circle */
}

.social-links a:hover {
  /* color: var(--secondary-color); */
  /* border-color: var(--secondary-color); */
  transform: translateY(-3px);
  filter: brightness(1.2);
  /* Brighten image on hover */
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
}

/* Mobile Toggle Base Styles */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  /* Ensure above overlay */
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {

  .hero-title,
  .hero-content h1 {
    font-size: 1.5rem;
    /* Reduced from 1.8rem */
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    /* Reduced text size */
    line-height: 1.6;
  }

  .hero-logo {
    max-width: 180px;
    /* Reduced logo size on mobile */
  }

  .nav-links {
    display: none;
    /* Mobile menu hidden by default */
  }

  .portfolio-highlight {
    grid-template-columns: 1fr;
  }

  .mobile-toggle {
    display: block;
    /* Show hamburger */
  }

  /* Fix Mobile Buttons */
  .hero-cta {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
  }
}



/* Slider Styles */
.portfolio-slider {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.slides-container {
  position: relative;
}

.slide {
  display: none;
  animation: fade 0.5s ease-in-out;
}

.slide.active {
  display: block;
}

@keyframes fade {
  from {
    opacity: .4
  }

  to {
    opacity: 1
  }
}

/* Controls */
/* Controls - Desktop & Base */
.slider-controls button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent !important;
  /* Force transparent */
  color: var(--secondary-color) !important;
  /* Force orange */
  border: none !important;
  width: auto !important;
  height: auto !important;
  padding: 10px;
  cursor: pointer;
  font-size: 3rem !important;
  /* Large discreet arrow */
  z-index: 100;
  /* High z-index */
  transition: transform 0.3s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.slider-controls button:hover {
  transform: translateY(-50%) scale(1.2);
  background-color: transparent !important;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.slider-dots {
  text-align: center;
  margin-top: 20px;
  position: relative;
  z-index: 10;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
  background-color: var(--secondary-color);
}

/* Mobile Controls Overrides */
@media (max-width: 768px) {
  .slider-controls button {
    font-size: 2rem !important;
    top: auto;
    bottom: auto;
    /* We want to position relative to the image which is the first child of highlight */
    /* But since button is absolute to slider, we must rely on fixed offset or % */
    top: 400px;
    /* Approximate seam */
    /* On mobile, image height + header might vary, but 400px was the previous value that worked */
  }

  .prev-btn {
    left: 5px;
  }

  .next-btn {
    right: 5px;
  }
}

/* Navigation Scroll Fix */
html {
  scroll-behavior: smooth;
}

#sobre,
#servicos,
#portfolio,
#contato,
#como-trabalhamos,
#home {
  scroll-margin-top: 70px;
}

/* LGPD Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1a2b4b; /* Primary dark blue */
  color: #ffffff;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: 90%;
  max-width: 900px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.cookie-banner.show {
  opacity: 1;
  visibility: visible;
  bottom: 30px; /* Slight slide up effect */
}

.cookie-content {
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-content p {
  margin: 0;
  color: #e0e0e0;
}

.cookie-btn {
  background-color: #ff6b35; /* Secondary Orange */
  color: #ffffff;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-heading);
  transition: background-color 0.3s;
}

.cookie-btn:hover {
  background-color: #e55a2b;
}

@media (max-width: 768px) {
  .cookie-banner {
      flex-direction: column;
      text-align: center;
      bottom: 20px !important;
      padding: 20px;
      gap: 15px;
  }

  .cookie-btn {
      width: 100%;
      padding: 12px;
  }
}