* {
  box-sizing: border-box;
}

html {
  background: #F5F7FA;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #F5F7FA; /* ice white */
  color: #162B34;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ===== Language Selector ===== */
.language-selector {
  position: relative;
}

.language-selector-btn {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.site-header.scrolled .language-selector-btn {
  color: #162B34;
  border-color: #162B34;
}

.language-selector-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.site-header.scrolled .language-selector-btn:hover {
  background-color: #F5F7FA;
}

.language-selector-btn img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
}

.language-selector-btn .arrow-down {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  list-style: none;
  padding: 8px;
  margin: 0;
  width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1100;
}

.language-dropdown.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: #162B34;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.language-dropdown li a:hover {
  background-color: #F5F7FA;
}

.language-dropdown li a img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  background-color: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
  padding: 16px 0;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.header-social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 48px;
}

.site-header .icon-btn {
  width: 28px;
  height: 28px;
  color: #ffffff;
  transition: color 0.3s ease;
  background-color: transparent;
  border: none;
}

.site-header .icon-btn:hover {
  background-color: transparent;
  border-color: transparent;
}


.site-header .icon-btn svg,
.site-header .icon-btn img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.site-header .icon-btn img {
   width: 28px;
   height: 28px;
}


.site-header.scrolled .icon-btn {
  color: #6B7680;
}

.site-header.scrolled .icon-btn svg,
.site-header.scrolled .icon-btn img {
  filter: none;
}

.site-header.scrolled .icon-btn:hover {
  color: #162B34;
}

.logo-img {
  height: 28px;
  display: block;
}

.manager-logo {
  height: 15px;
}

.btn-contact {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.site-header.scrolled .btn-contact {
  color: #162B34;
  border-color: #162B34;
}

.btn-contact:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.site-header.scrolled .btn-contact:hover {
  background-color: #F5F7FA;
}


.btn-manager {
  background-color: #162B34;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.btn-manager:hover {
  background-color: #3D5A68;
}

/* Tablet */
@media (max-width: 1024px) {
    .header-social-icons {
        display: none;
    }
}


@media (max-width: 768px) {
  .header-actions {
    gap: 16px;
  }
  .header-container {
    padding: 0 24px;
  }
  .logo-img {
    height: 24px;
  }
  .manager-logo {
    height: 13px;
  }
  .btn-manager {
    padding: 8px 12px;
  }
  .btn-contact {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .header-container {
    padding: 0 16px;
  }
  .btn-manager {
    padding: 6px 12px;
  }
  .btn-contact {
      display: none;
  }
}


.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* center content vertically */
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
  padding: 32px 16px;
}

.hero-subtitle {
  font-size: 1rem; /* 16px */
  margin: 0 0 24px;
  font-weight: 400;
  line-height: 1.4;
  max-width: 420px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-title {
  font-size: 1.75rem; /* 28px */
  font-weight: 700;
  margin: 0 0 32px;
  line-height: 1.15;
  max-width: 480px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.75);
}

.btn-primary {
  display: inline-block;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid #fff;
  color: #fff;
  background: #162B34;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* Pressed state */
.btn-primary:active {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(0.96);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* === On Light Background Modifier === */
.btn-primary.on-light {
  border-color: #162B34; /* Dark border to be visible on light backgrounds */
}

.btn-primary.on-light:hover {
  background: #e0e0e0; /* Darker background for better contrast */
  color: #162B34;
  border-color: #162B34;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-primary.on-light:active {
  background: #E8EBEF; /* Slightly darker for pressed state */
  color: #162B34;
  transform: scale(0.96);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tablet */
@media (min-width: 600px) {
  .hero-subtitle {
    font-size: 1.125rem; /* 18px */
    max-width: 600px;
  }
  .hero-title {
    font-size: 2.25rem; /* 36px */
    max-width: 800px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero-subtitle {
    font-size: 1.25rem; /* 20px */
    max-width: 980px;
  }
  .hero-title {
    font-size: 3rem; /* 48px */
    max-width: 1100px;
  }
  .btn-primary {
    font-size: 1.125rem;
  }
}

/* ---------- Video container styles ---------- */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* Background video full coverage */
.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 56.25vw; /* 100/16*9 */
  min-height: 100vh;
  min-width: 177.77vh; /* 100/9*16 */
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: none;
}

/* Mobile video adjustments - allow overflow for full coverage */
@media (max-width: 768px) {
  .hero-video iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
  }
}

/* Remove previous portrait orientation rule */
@media (orientation: portrait) {
  /* no-op: removed canvas sizing; rely on width/height 100% */
}

/* ===== Use Cases Section ===== */
.usecases {
  padding: 72px 16px;
  background: #F5F7FA; /* ice white to match body */
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #162B34;
  margin-bottom: 48px;
  padding: 0 16px;
}

.usecases-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4), 0 8px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-title {
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  color: #162B34;
  margin: 0;
}

.card-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #6B7680;
  margin: 0;
}

.card-link {
  margin-top: auto;
  font-size: 1rem;
  font-weight: 600;
  color: #162B34;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.25s ease;
}

.card-link:hover {
  color: #1F3D52;
}

/* Tablet - two columns or full width with spacing */
@media (min-width: 600px) {
  .usecases-container {
    gap: 32px;
  }
  .card-title {
    font-size: 1.5rem; /* 24px */
  }
}

/* Desktop - 3 columns */
@media (min-width: 1024px) {
  .usecases-container {
    flex-direction: row;
    gap: 32px;
  }
  .card {
    flex: 1 1 0;
    max-width: calc(33.333% - 32px);
  }
  .card-image {
    height: 200px;
  }
}

/* ===== CTA Section ===== */
.cta-section {
  position: relative;
  padding: 80px 16px;
  z-index: 1;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background-image: url('images/Background_logs.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: blur(3px);
  z-index: -1;
}

.cta-container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.cta-image {
  max-width: 250px;
  flex-shrink: 0;
}

.cta-content {
  display: flex;
  flex-direction: column;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #162B34;
  margin: 0 0 16px;
}

.cta-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #6B7680;
  margin: 0 0 24px;
}

.btn-tertiary {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: #162B34;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease-out;
}

.btn-tertiary:hover {
  color: #3D5A68; /* Lighter shade */
}

.btn-tertiary:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .cta-container {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }
  .cta-image {
    max-width: 200px;
    margin-bottom: 16px;
  }
  .cta-title {
    font-size: 1.5rem;
  }
}

/* ===== Products Section ===== */
.products-section {
  padding: 80px 16px;
  background: #F5F7FA;
}

.products-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  gap: 40px;
}

.product-card {
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.product-card[data-video-src] {
  cursor: pointer;
}

.product-card:hover .product-image-wrapper {
  transform: translateY(-20px);
}

.product-image-wrapper {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0; /* Prevent shrinking */
  object-fit: contain;
}

.product-image,
.product-image-hover {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.product-card.has-image-swap .product-image,
.product-image-hover {
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-card.has-image-swap:hover .product-image {
  opacity: 0;
}

.product-card.has-image-swap:hover .product-image-hover {
  opacity: 1;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #162B34;
  margin-top: 24px;
}

.product-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #6B7680;
  margin-top: 8px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* Tablet */
@media (max-width: 1024px) {
  .products-container {
    flex-direction: column;
    align-items: center;
    gap: 60px;
  }
  .product-card {
    max-width: 400px;
  }
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  padding: 72px 16px;
  background: #F5F7FA;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  overflow: hidden;
}

.testimonials-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #6B7680;
  margin-bottom: -16px; /* pull carousel closer */
}

.logo-carousel-container {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  cursor: grab;
}

.logo-carousel {
  display: flex;
  width: max-content;
  /* animation will be controlled by JS */
}

.logo-carousel.is-dragging {
    cursor: grabbing;
}

.logo-carousel img {
  height: 107px; /* Valor alterado para 107px */
  margin: 0 40px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.logo-carousel img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.testimonial-card {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.testimonial-card::after {
  content: '”';
  position: absolute;
  top: 10px;
  right: 30px;
  font-size: 100px;
  color: #F5F7FA;
  line-height: 1;
  z-index: 1;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.testimonial-author-logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background-color: #162B34; /* Dark blue background */
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-author-logo img {
  width: 40px;
  height: auto;
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: normal;
  line-height: 1.6;
  color: #6B7680;
  margin: 0;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  font-size: 1rem;
}

.author-name {
  font-weight: 700;
  margin: 0;
  color: #162B34;
}

.author-role {
  color: #6B7680;
  margin: 0;
}

@media (max-width: 768px) {
  .testimonial-text {
    font-size: 1rem;
  }

  .testimonial-card {
    padding: 24px;
  }

  .testimonial-card::after {
    font-size: 80px;
    top: 5px;
    right: 20px;
  }
}

/* ===== Testimonials Carousel ===== */
.testimonials-carousel {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-carousel .testimonial-card {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.testimonials-carousel .testimonial-card.active {
  display: block;
  opacity: 1;
}

.testimonials-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.testimonial-nav-btn {
  background: none;
  border: 2px solid #162B34;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #162B34;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.testimonial-nav-btn:hover {
  background-color: #162B34;
  color: #ffffff;
  transform: scale(1.05);
}

.testimonial-nav-btn:active {
  transform: scale(0.95);
}

.testimonial-nav-btn svg {
  width: 20px;
  height: 20px;
}

.testimonial-dots {
  display: flex;
  gap: 12px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: #E8EBEF;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background-color: #162B34;
  transform: scale(1.2);
}

.testimonial-dot:hover {
  background-color: #6B7680;
  transform: scale(1.1);
}

/* Ajuste para o logo da Cocelpa - placeholder com texto */
.testimonial-author-logo.cocelpa-logo {
  background-color: #162B34;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 40px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.testimonial-author-logo.cocelpa-logo span {
  color: #ffffff;
}

@media (max-width: 768px) {
  .testimonials-navigation {
    gap: 16px;
    margin-top: 24px;
  }
  
  .testimonial-nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .testimonial-nav-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .testimonial-dot {
    width: 10px;
    height: 10px;
  }
}

/* ===== Partnerships Section ===== */
.partnerships-section {
  padding: 80px 16px;
  position: relative;
  background-image: url('images/Background blue.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partnerships-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(22, 43, 52, 0.85); /* Dark blue overlay */
  z-index: 1;
}

.partnerships-section .section-title {
  color: #ffffff;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.partnerships-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.partnership-cta {
  position: relative;
  z-index: 2;
  margin-top: 48px;
}

.partnership-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.partnership-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #162B34;
  margin: 0;
}

.partnership-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.partnership-logo {
  height: 50px;
  width: auto;
}

.partnership-name {
  display: flex;
  flex-direction: column;
}

.partnership-name strong {
  font-weight: 700;
  color: #162B34;
}

.partnership-name span {
  color: #6B7680;
  font-size: 0.875rem;
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
  .partnerships-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding: 0 16px 16px 16px; /* for shadow visibility and side padding */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }

  .partnerships-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
  }

  .partnership-card {
    flex: 0 0 calc(100% - 32px);
    scroll-snap-align: start;
    max-width: 320px;
    margin-right: 16px;
  }
  
  .partnership-card:last-child {
    margin-right: 0;
  }
}

/* Mobile Styles - Vertical Layout */
@media (max-width: 768px) {
  .partnerships-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px 20px 20px;
    overflow-x: visible;
    margin: 0 auto;
  }

  .partnership-card {
    flex: none;
    margin: 0 auto;
    scroll-snap-align: none;
    max-width: calc(100% - 0px);
    width: 100%;
    box-sizing: border-box;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .partnerships-container {
    padding: 0 20px 20px 20px;
    gap: 24px;
    margin: 0 auto;
  }
  
  .partnership-card {
    padding: 24px 20px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
  }
}

/* Ultra small screens - 320px and below */
@media (max-width: 320px) {
  .partnerships-container {
    padding: 0 16px 16px 16px;
    gap: 20px;
    margin: 0;
  }
  
  .partnership-card {
    padding: 20px 16px;
    margin: 0;
    width: calc(100% - 0px);
    max-width: none;
    box-sizing: border-box;
  }
}

/* ===== About Section ===== */
.about-section {
  padding: 80px 16px;
  background: #ffffff;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  flex: 1;
  max-width: 500px;
}

.about-title {
  text-align: left;
  margin-bottom: 32px;
}

.about-text-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #162B34;
  margin: 0 0 16px;
}

.about-text-content p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #6B7680;
  margin: 0 0 32px;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #F5F7FA;
  border: 1px solid #E8EBEF;
  border-radius: 50%;
  color: #162B34;
  transition: all 0.2s ease-out;
}

.icon-btn:hover {
  background-color: #E8EBEF;
  border-color: #DDE1E6;
}

.icon-btn:active {
  transform: scale(0.95);
  background-color: #DDE1E6;
}

.icon-btn svg {
  width: 24px;
  height: 24px;
}

.icon-btn img {
  width: 36px;
  height: 36px;
}

.map-container {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-width: 500px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

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

  .social-icons {
    justify-content: center;
  }

  .map-container {
    width: 100%;
    max-width: none;
    margin-top: 48px;
  }
}

/* Team Section */
.team-section {
  padding: 80px 20px;
  background-color: #fff;
  text-align: center;
}

.team-section-subtitle {
  color: #555;
  font-size: 1.125rem;
  line-height: 1.5;
  margin-top: 8px;
  margin-bottom: 56px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.team-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  justify-items: center;
  align-items: start;
  justify-content: center;
}

/* Mobile team layout - single column */
@media (max-width: 768px) {
  .team-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 400px;
  }
  
  .team-member-photo-container {
    width: 140px;
    height: 140px;
  }
}

.team-member-card {
  text-align: center;
}

.team-member-photo-container {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  position: relative;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.team-member-card:hover .team-member-photo-container {
  transform: translateY(-8px);
  box-shadow: 0 18px 30px rgba(0,0,0,0.15);
}

.team-member-card:hover .team-member-photo {
  filter: grayscale(100%);
}

.team-member-card:hover .linkedin-icon-link {
  opacity: 1;
}

.team-member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease-in-out;
}

.linkedin-icon-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(19, 43, 57, 0.75);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.linkedin-icon-link svg {
  width: 40px;
  height: 40px;
  color: #fff;
}

.team-member-name {
  font-size: 1.35rem;
  color: #0d2a4c;
  font-weight: 700;
  margin-bottom: 6px;
}

.team-member-role {
  font-size: 1.05rem;
  color: #555;
}

@media (min-width: 1024px) {
  .team-container {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    gap: 64px 80px;
    justify-items: center;
    justify-content: center;
  }

  .team-member-photo-container {
    width: 180px;
    height: 180px;
  }

  .team-member-name {
    font-size: 1.75rem;
  }

  .team-member-role {
    font-size: 1.125rem;
  }
}

/* Footer */
.site-footer {
  background-color: #132B39;
  color: #fff;
  padding: 60px 20px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  width: 140px;
}

.footer-slogan {
  font-size: 0.75rem;
  color: #A9B4C4;
  margin: 0;
  width: 140px;
  text-align: center;
  white-space: nowrap;
}

.sitemap-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
  color: #fff;
}

.sitemap-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}

.sitemap-links a {
  color: #A9B4C4;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.sitemap-links a:hover {
  color: #fff;
}

/* Social Icons in Footer */
.site-footer .social-icons {
  margin-top: 0;
  gap: 12px;
}

.site-footer .icon-btn {
  background-color: transparent;
  border: 1px solid #A9B4C4;
  color: #fff;
}

.site-footer .icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: none;
}

.site-footer .icon-btn:active {
  transform: translateY(0);
  background-color: rgba(255, 255, 255, 0.05);
}

.site-footer .icon-btn svg,
.site-footer .icon-btn img {
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .site-footer .social-icons {
    justify-content: center;
  }

  .sitemap-links {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.3s, opacity 0.3s ease-in-out;
}

.video-modal.is-visible {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.modal-content {
  position: relative;
  z-index: 1001;
  width: 90%;
  max-width: 900px;
  background-color: #000;
  border-radius: 8px;
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out;
}

.video-modal.is-visible .modal-content {
  transform: scale(1);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #ccc;
}

/* ===== Floating WhatsApp Button ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1000;
  width: 91px;
  height: 91px;
  background-color: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease-in-out;
  overflow: hidden;
}

.whatsapp-fab:hover {
  transform: scale(1.05);
}

.whatsapp-fab img {
  width: 91px;
  height: 91px;
}

/* ===== Contact Modal ===== */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.3s, opacity 0.3s ease-in-out;
  padding: 20px 0;
  box-sizing: border-box;
  overflow-y: auto;
}

.contact-modal.is-visible {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.contact-modal .modal-overlay {
  background-color: rgba(22, 43, 52, 0.7);
  backdrop-filter: blur(4px);
}

.contact-modal .modal-content {
  width: 90%;
  max-width: 900px;
  max-height: 95vh;
  background-color: #ffffff;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contact-modal {
  padding: 20px 0;
  box-sizing: border-box;
}

/* Media queries para altura da viewport */
/* Faixa específica para iMac 13" (701-759px) */
@media (min-height: 701px) and (max-height: 759px) {
  .contact-modal {
    align-items: flex-start !important;
    padding: 15px 0 !important;
  }
  
  .contact-modal .modal-content {
    max-height: calc(100vh - 30px) !important;
    margin-top: 0 !important;
  }
  
  .modal-form-container {
    padding: 25px !important;
    max-height: calc(100vh - 80px) !important;
    overflow-y: auto !important;
  }
  
  .modal-header {
    margin-bottom: 18px !important;
  }
  
  .contact-form .form-group {
    margin-bottom: 14px !important;
  }
  
  .pipedriveWebForms {
    min-height: 650px !important;
  }
  
  .pipedriveWebForms iframe {
    min-height: 650px !important;
  }
}

@media (max-height: 700px) {
  .contact-modal {
    align-items: flex-start !important;
    padding: 10px 0 !important;
  }
  
  .contact-modal .modal-content {
    max-height: calc(100vh - 20px) !important;
    margin-top: 0 !important;
  }
  
  .modal-form-container {
    padding: 30px !important;
    max-height: calc(100vh - 100px) !important;
    overflow-y: auto !important;
  }
  
  .modal-header {
    margin-bottom: 20px !important;
  }
  
  .contact-form .form-group {
    margin-bottom: 15px !important;
  }
}

@media (max-height: 600px) {
  .contact-modal .modal-content {
    max-height: 85vh;
  }
  
  .modal-form-container {
    padding: 20px !important;
  }
  
  .modal-header {
    margin-bottom: 15px !important;
  }
  
  .contact-form .form-group {
    margin-bottom: 12px !important;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 10px !important;
    font-size: 0.9rem !important;
  }
}

@media (max-height: 500px) {
  .contact-modal .modal-content {
    max-height: 80vh;
  }
  
  .modal-form-container {
    padding: 15px !important;
  }
  
  .modal-header {
    margin-bottom: 10px !important;
  }
  
  .contact-form .form-group {
    margin-bottom: 10px !important;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 8px !important;
    font-size: 0.85rem !important;
  }
}

.modal-body {
  display: flex;
  width: 100%;
  min-height: 500px;
  max-height: calc(95vh - 40px);
  overflow: hidden;
  flex: 1;
}

.contact-modal .modal-image-container {
  position: relative;
  width: 45%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  background-image: url('../images/Backgrond P.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-modal .modal-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Opcional: escurecer um pouco para o logo 'p' se destacar */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.contact-modal.is-successful .modal-image-container::before {
  opacity: 1;
}

.contact-modal .modal-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; /* Ajuste o tamanho conforme necessário */
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 2;
}

.contact-modal.is-successful .modal-logo {
  opacity: 1;
}

.contact-modal.is-successful .modal-image {
  opacity: 0;
}

.log-overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  -webkit-mask-image: radial-gradient(
    circle 120px at var(--mouse-x, -500px) var(--mouse-y, -500px),
    black 100%,
    transparent
  );
  mask-image: radial-gradient(
    circle 120px at var(--mouse-x, -500px) var(--mouse-y, -500px),
    black 100%,
    transparent
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

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

.log-circle {
  position: absolute;
  border-radius: 50%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 2px solid #55C4F5;
  background-color: rgba(85, 196, 245, 0.2);
  transition: all 0.2s ease;
}

.log-circle span {
  color: #fff;
  font-weight: 500;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

.modal-form-container {
  flex: 1 1 55%;
  padding: 40px;
  overflow-y: auto;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.pipedriveWebForms {
  height: 100% !important;
  min-height: 800px !important;
  overflow: visible !important;
  flex: 1;
}

.pipedriveWebForms iframe {
  height: 100% !important;
  min-height: 800px !important;
  width: 100% !important;
  border: none !important;
  overflow: visible !important;
}

/* Força o iframe a mostrar todo o conteúdo */
.pipedriveWebForms iframe[src*="pipedrive"] {
  height: 850px !important;
  min-height: 850px !important;
}

/* Garante que o container do formulário tenha scroll quando necessário */
.modal-form-container {
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

@media (max-width: 768px) {
  .modal-form-container {
    padding: 20px;
  }
}

.contact-modal .modal-close-btn {
    top: 15px;
    right: 20px;
    color: #6B7680;
    z-index: 10;
}

.contact-modal .modal-close-btn:hover {
    color: #162B34;
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #3D5A68;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #DDE1E6;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #162B34;
  box-shadow: 0 0 0 3px rgba(22, 43, 52, 0.1);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn-primary {
  width: 100%;
  background-color: #162B34;
  border: none;
}

.contact-form .btn-primary:hover {
    background-color: #3D5A68;
}

@media (max-width: 768px) {
  .contact-modal {
    padding: 5px;
  }
  
  .contact-modal .modal-content {
    width: 95%;
    max-width: 95vw;
    max-height: 95vh;
    margin: 0;
    flex-direction: column;
  }
  
  .modal-body {
    flex-direction: column;
    max-height: calc(95vh - 20px);
    overflow: hidden;
  }
  
  .modal-image-container {
    display: none;
  }

  .pipedriveWebForms {
    height: 100% !important;
    min-height: 600px !important;
    overflow: visible !important;
    flex: 1;
  }

  .pipedriveWebForms iframe {
    height: 100% !important;
    min-height: 600px !important;
    width: 100% !important;
    border: none !important;
  }

  .pipedriveWebForms .cui-messages {
    display: none;
  }
  
  .modal-form-container {
    padding: 15px;
    max-height: calc(95vh - 20px);
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .contact-modal .modal-close-btn {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
  }
}

/* Scroll suave para todos os elementos */
* {
  scroll-behavior: smooth;
}

.modal-form-container::-webkit-scrollbar {
  width: 8px;
}

.modal-form-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-form-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.modal-form-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Combinação de largura e altura pequenas */
@media (max-width: 768px) and (max-height: 700px) {
  .contact-modal {
    padding: 5px 0;
  }
  
  .contact-modal .modal-content {
    max-height: 98vh;
  }
  
  .modal-form-container {
    padding: 15px;
    max-height: calc(98vh - 40px);
  }
  
  .pipedriveWebForms {
    min-height: 650px !important;
  }
  
  .pipedriveWebForms iframe {
    min-height: 650px !important;
  }
}

@media (max-width: 768px) and (max-height: 600px) {
  .contact-modal {
    padding: 5px 0;
  }
  
  .contact-modal .modal-content {
    max-height: 98vh;
  }
  
  .modal-form-container {
    padding: 10px;
    max-height: calc(98vh - 30px);
  }
  
  .pipedriveWebForms {
    min-height: 600px !important;
  }
  
  .pipedriveWebForms iframe {
    min-height: 600px !important;
  }
}

@media (max-width: 768px) and (max-height: 500px) {
  .contact-modal {
    padding: 2px 0;
  }
  
  .contact-modal .modal-content {
    max-height: 99vh;
  }
  
  .modal-form-container {
    padding: 8px;
    max-height: calc(99vh - 20px);
  }
  
  .pipedriveWebForms {
    min-height: 550px !important;
  }
  
  .pipedriveWebForms iframe {
    min-height: 550px !important;
  }
}

@media (max-width: 600px) {
    .modal-title {
        font-size: 1.5rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .contact-modal .modal-content {
    width: 98%;
    max-width: 98vw;
    margin: 1%;
  }
  
  .modal-form-container {
    padding: 10px;
  }
  
  .pipedriveWebForms {
    min-height: 550px !important;
  }
  
  .pipedriveWebForms iframe {
    min-height: 550px !important;
  }
  
  .modal-video-content {
    width: 98%;
    max-width: 98vw;
  }
}

/* ===== Modals ===== */
.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.modal-wrapper.is-visible {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 24, 39, 0.8);
  cursor: pointer;
}

.modal-content {
  position: relative;
  z-index: 1001;
  background-color: #fff;
  border-radius: 16px;
  max-width: 90%;
  width: 1000px;
  display: flex;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-wrapper.is-visible .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-video-content {
  position: relative;
  z-index: 1001;
  width: 80%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
}

/* Mobile video modal adjustments */
@media (max-width: 768px) {
  .modal-video-content {
    width: 95%;
    max-width: 95vw;
    margin: 0 auto;
  }
  
  .modal-video-content .modal-close-btn {
    top: -40px;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
  }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #888;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1002;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #111;
}

.modal-content .modal-close-btn {
    color: #888;
}

.modal-content .modal-close-btn:hover {
    color: #111;
}

.modal-video-content .modal-close-btn {
    color: #fff;
}

#video-container {
  width: 100%;
  height: 100%;
}

#video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.modal-image-container {
  position: relative;
  width: 45%;
  height: auto;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
}

.log-overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  -webkit-mask-image: radial-gradient(
    circle 120px at var(--mouse-x, -500px) var(--mouse-y, -500px),
    black 100%,
    transparent
  );
  mask-image: radial-gradient(
    circle 120px at var(--mouse-x, -500px) var(--mouse-y, -500px),
    black 100%,
    transparent
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.modal-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.log-circle {
  position: absolute;
  border-radius: 50%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 2px solid #55C4F5;
  background-color: rgba(85, 196, 245, 0.2);
}

.log-circle span {
  color: #fff;
  font-weight: 500;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
  font-size: 1.2em;
}

.modal-form-container {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
}

.modal-form-container h2 {
  font-size: 2rem;
  color: var(--dark-blue);
  margin-top: 0;
  margin-bottom: 8px;
}

.modal-form-container p {
  color: #666;
  margin-top: 0;
  margin-bottom: 32px;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
}

#contact-form label {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 6px;
}

#contact-form input,
#contact-form textarea {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--main-blue);
  box-shadow: 0 0 0 3px rgba(85, 196, 245, 0.3);
}

#contact-form textarea {
  resize: vertical;
  min-height: 80px;
  flex-grow: 1;
}

#contact-form button {
  margin-top: auto;
  padding: 16px;
  font-size: 1.1rem;
}