/*===================================================================
  ROOT VARIABLES & RESET
===================================================================*/
:root {
  /* Colors - Modern Dental Palette */
  --primary: #2e0281;
  /* Teal/Turquoise for medical trust */
  --primary-light: #2dd4bf;
  --primary-dark: #0f766e;
  --primary-rgb: 13, 148, 136;
  --secundary-color: #78a4e7;
  --secundary-color-rgb: 120, 164, 231;

  --secondary: #0ea5e9;
  /* Soft blue for cleanliness */
  --accent: #f59e0b;
  /* Warm gold/amber for premium feel */

  --bg-color: #f8fafc;
  --surface: #ffffff;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-muted2: rgb(179, 194, 214) b;
  --text-claro: #7e6125;
  --text-claro2: #dfceae;
  --border: #e2e8f0;

  /* Typography */
  --font-family: "Outfit", sans-serif;

  /* Shadows & Radius */
  --shadow-sm:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(var(--primary-rgb), 0.3);
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

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

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

html {
  /* Desativado pois o Lenis assumirá o scroll-behavior */
  scroll-behavior: auto;
}

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

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-primary {
  color: var(--primary);
}

.text-claro {
  color: var(--text-claro);
}

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

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

.contorno {
  -webkit-text-stroke: 0.02rem #fff;
}

/*===================================================================
  BUTTONS & UTILITIES
===================================================================*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(var(--secundary-color-rgb), 0.6);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.badge2 {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(var(--secundary-color-rgb), 0.6);
  color: var(--primary);
  border-radius: 1rem;
}

/*===================================================================
  ADVANCED NAVIGATION BAR
===================================================================*/
.navbar-container {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 60px);
  max-width: 1000px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar {
  /*background: rgba(255, 255, 255, 0.85);
   Lightened for better contrast with dark text */
  background: #000000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  padding: 12px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(54, 53, 53, 0.3),
    transparent
  );
  transition: left 0.8s ease;
}

.navbar:hover::before {
  left: 100%;
}

.navbar:hover {
  transform: translateY(-2px);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.navbar-container.scrolled {
  top: 0;
  width: 100%;
  max-width: 100%;
}

/* LOGO SECTION */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.4rem;
  z-index: 2;
  position: relative;
  color: var(--text-main);
}

.logo-icon {
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

.logo-icon::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: logo-pulse 2s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%,
  100% {
    transform: scale(0.2);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.brand-text {
  color: var(--text-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.brand-text-min {
  color: #fff;
  font-size: 0.7rem;
}

.brand-text2 {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--text-claro2);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  font-size: 1rem;
}

/* NAVIGATION LINKS */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  z-index: 2;
  position: relative;
}

@media (min-width: 993px) {
  .navbar-nav {
    display: flex !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    flex-direction: row !important;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  text-decoration: none;
  color: #c9d6ee;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 25px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--primary-rgb), 0.05);
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link:hover {
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.nav-link.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.nav-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon {
  transform: scale(1.1);
}

/* MOBILE MENU TOGGLE */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 1001;
  position: relative;
  flex-shrink: 0;
}

.mobile-toggle:hover {
  background: rgba(var(--primary-rgb), 0.1);
  transform: scale(1.1);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 18px;
  justify-content: center;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

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

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

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

/* CTA BUTTON IN NAV */
.cta-button {
  display: inline-flex;
  margin-left: 5px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 25px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
}

/* MOBILE RESPONSIVE */
@media (max-width: 992px) {
  .navbar-container {
    top: 20px;
    width: calc(100% - 30px);
  }

  .navbar {
    padding: 12px 20px;
    position: relative;
  }

  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .navbar-nav {
    display: none;
  }

  .brand-text {
    font-size: 1.2rem;
  }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Container */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--surface);
  z-index: 1600;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateY(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 30px 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-main);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.mobile-menu-close:hover {
  background: rgba(var(--primary-rgb), 0.1);
  transform: scale(1.1);
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
  padding: 40px 30px;
  list-style: none;
}

.mobile-menu-item {
  margin-bottom: 8px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  background: var(--bg-color);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  transform: translateX(8px);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
}

.mobile-menu-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.mobile-cta {
  margin: 10px 30px 40px;
}

.mobile-cta-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px;
  border-radius: 20px;
  font-size: 1.1rem;
}

@media (max-width: 480px) {
  .navbar-container {
    width: calc(100% - 20px);
    top: 15px;
  }

  .navbar {
    padding: 10px 15px;
  }

  .navbar-brand {
    gap: 8px;
  }

  .logo-icon {
    width: 35px;
    height: 35px;
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .hero-logo-center {
    width: 52vw;
  }
}

/*===================================================================
  SCROLL ANIMATIONS (Intersection Observer)
===================================================================*/
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

.delay-4 {
  transition-delay: 0.8s;
}

.delay-5 {
  transition-delay: 1s;
}

.delay-6 {
  transition-delay: 1.2s;
}

.delay-7 {
  transition-delay: 1.4s;
}

/*===================================================================
  HERO SECTION
===================================================================*/
.hero-scroll-container {
  height: 400vh;
  position: relative;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;

  .logoFundo {
    position: absolute;
    z-index: 3;

    width: 20vw;
    mix-blend-mode: color-dodge;
  }
}

.hero-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  transform-origin: center center;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100vh;
  background: linear-gradient(to bottom right, #e0f2fe, #ccfbf1);
  border-bottom-left-radius: 100px;
  z-index: -1;
}

.hero-logo-center {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(13vw, 420px);
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  z-index: 3;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 24px;
}

.hero-text h1 span {
  color: var(--primary);
  position: relative;
}

.hero-text h1 span::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: rgba(var(--primary-rgb), 0.2);
  z-index: -1;
  border-radius: 4px;
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--text-main);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.stat h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat p {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-blob {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 600px;
  margin: 0 auto;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: blob-morph 8s ease-in-out infinite alternate;
}

.hero-image-blob img {
  position: absolute;
  width: 50%;
  height: 50%;
  object-fit: cover;
  /*ix-blend-mode: color-dodge;*/
  right: 25%;
  bottom: 20%;
}

@keyframes blob-morph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }

  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
}

.floating-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.floating-card strong {
  display: block;
  font-size: 1.125rem;
  color: var(--text-main);
}

.floating-card span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.fb-1 {
  top: 10%;
  right: -5%;
  animation-delay: 0s;
}

.fb-2 {
  bottom: 15%;
  right: -5%;
  animation-delay: 2s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/*===================================================================
  CENTRAL HIGHLIGHTS SECTION
===================================================================*/
.highlights {
  padding: 50px 0;
  background-color: var(--surface);
  position: relative;
}

.section-header {
  max-width: 600px;
  margin: 0 auto 60px;
}

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

.section-title span {
  color: var(--primary);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.highlight-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  z-index: 1;
}

.highlight-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.highlight-card.featured-card {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary);
}

.highlight-card.featured-card:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: var(--shadow-glow);
}

.featured-badge {
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--accent);
  color: white;
  padding: 4px 40px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
  transition: var(--transition);
}

.style-1 .card-icon {
  background: #fee2e2;
  color: #ef4444;
}

.style-2 .card-icon {
  background: #e0f2fe;
  color: var(--secondary);
}

.style-3 .card-icon {
  background: #ccfbf1;
  color: var(--primary);
}

.style-4 .card-icon {
  background: #fef3c7;
  color: var(--accent);
}

.highlight-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card-content p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 24px;
  min-height: 66px;
}

.card-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.style-1 .card-link {
  color: #ef4444;
}

.style-2 .card-link {
  color: var(--secondary);
}

.style-3 .card-link {
  color: var(--primary);
}

.style-4 .card-link {
  color: var(--accent);
}

.card-link i {
  transition: var(--transition);
}

.highlight-card:hover .card-link i {
  transform: translateX(5px);
}

.card-bg-icon {
  position: absolute;
  bottom: -20px;
  right: -20px;
  font-size: 140px;
  opacity: 0.03;
  z-index: 0;
  transition: var(--transition);
}

.highlight-card:hover .card-bg-icon {
  transform: scale(1.2) rotate(-10deg);
  opacity: 0.06;
}

/*===================================================================
  newcard 
===================================================================*/
.cardw {
  background: #4745b3;
  border-radius: 2rem;
  padding: 0.5rem;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  height: 33rem;
  overflow: clip;
  > img {
    max-width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: 50% 5%;
    border-radius: 1.5rem;
    display: block;
    transition:
      aspect-ratio 0.6s cubic-bezier(0.4, 0, 0.2, 1),
      object-position 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* firefox patch */
    width: 100%;
    height: auto;
  }
}

/* Define o cursor de clique para a miniatura */
.miniatura {
  cursor: pointer;
}

/* Efeito visual ao passar o mouse (Hover) */
.cardw:hover > .miniatura {
  /* Deixa a imagem ligeiramente mais clara/brilhante para destacar */
  filter: brightness(1.15) contrast(1.05);
  
  /* Faz um leve zoom na imagem aproveitando o efeito do seu card */
  transform: scale(1.05);
}

/* Garante que o transform funcione de forma suave usando a transição que você já tem */
.cardw > .miniatura {
  transition: 
    filter 0.4s ease,
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    aspect-ratio 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    object-position 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay {
  display: none; 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); 
  z-index: 9999; 
  justify-content: center; 
  align-items: center;
  opacity: 0; 
  transition: opacity 0.3s ease;
  overflow: hidden; /* NOVO: Garante que a imagem expandida não quebre a tela */
}

.overlay.ativo { 
  display: flex; 
  opacity: 1; 
}

/* Imagem expandida padrão */
.imagem-expandida { 
  max-width: 85%; 
  max-height: 85vh; 
  border-radius: 1.5rem; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: scale(0.7); 
  /* AJUSTE: Removemos a transição do transform daqui para não dar atraso ao mover o mouse */
  transition: opacity 0.3s ease, cursor 0.1s; 
  cursor: zoom-in;
  transform-origin: center center; /* Ponto inicial do zoom */
}

.overlay.ativo .imagem-expandida { 
  transform: scale(1); 
}

/* ESTADO DE ZOOM: Quando a imagem for clicada */
.imagem-expandida.zoom {
  transform: scale(2.5) !important; /* Aumentamos para 2.5x para facilitar a leitura */
  cursor: zoom-out; 
}

/* Botão de fechar (X) */
.botao-fechar { 
  position: absolute; 
  top: 20px; 
  right: 30px; 
  color: #fff; 
  font-size: 45px; 
  cursor: pointer; 
}

.card {
  --bg: #fff;
  --title-color: #fff;
  --title-color-hover: #000;
  --text-color: #666;
  --button-color: #eee;
  --button-color-hover: #ddd;
  background: var(--bg);
  border-radius: 2rem;
  padding: 0.5rem;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  height: 33rem;
  /*   aspect-ratio: 2 / 3;
  height: auto; */
  overflow: clip;
  position: relative;
  font-family: Lato, Montserrat, Helvetica, Arial, sans-serif;
  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  &.dark {
    --bg: #4745b3;
    --title-color: #fff;
    --title-color-hover: #fff;
    --text-color: #ccc;
    --button-color: #555;
    --button-color-hover: #444;
  }

  &::before {
    content: "";
    position: absolute;
    width: calc(100% - 1rem);
    height: 30%;
    bottom: 0.5rem;
    left: 0.5rem;
    mask: linear-gradient(#0000, #000f 80%);
    backdrop-filter: blur(1rem);
    border-radius: 0 0 1.5rem 1.5rem;
    translate: 0 0;
    transition: translate 0.25s;
  }

  > img {
    max-width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: 50% 5%;
    border-radius: 1.5rem;
    display: block;
    transition:
      aspect-ratio 0.6s cubic-bezier(0.4, 0, 0.2, 1),
      object-position 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* firefox patch */
    width: 100%;
    height: auto;
  }

  > section {
    margin: 1rem;
    height: calc(35% - 1rem);
    display: flex;
    flex-direction: column;

    h2 {
      margin: 0;
      margin-block-end: 1rem;
      font-size: 1.5rem;
      opacity: 0;
      translate: 0 -200%;
      opacity: 1;
      color: var(--title-color);
      transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    p {
      font-size: 0.95rem;
      line-height: 1.3;
      color: var(--text-color);
      opacity: 0;
      margin: 0;
      translate: 0 100%;
      transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    }

    > div {
      flex: 1;
      align-items: flex-end;
      display: flex;
      justify-content: space-between;
      translate: 0 100%;
      opacity: 0;
      transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;

      .tag {
        align-self: center;
        color: var(--title-color-hover);
      }

      button {
        border: 1px solid #0000;
        border-radius: 1.25rem 1.25rem 1.5rem 1.25rem;
        font-size: 1rem;
        padding: 1rem 1.5rem 1rem 2.75rem;
        translate: 1rem;
        background: var(--button-color);
        transition: background 0.33s;
        outline-offset: 2px;
        position: relative;
        color: var(--title-color-hover);
        /* specific to demo */
        width: 8.2rem;
        text-align: right;

        &::before,
        &::after {
          content: "";
          width: 0.85rem;
          height: 0.1rem;
          background: currentcolor;
          position: absolute;
          top: 50%;
          left: 1.33rem;
          border-radius: 1rem;
        }

        &::after {
          rotate: 90deg;
          transition: rotate 0.15s;
        }

        &.following {
          &::after {
            rotate: 0deg;
          }
        }

        &:hover {
          background: var(--button-color-hover);
        }

        &:focus {
          outline: 2px solid var(--text-color);
        }
      }
    }
  }

  &:hover,
  &:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    &::before {
      translate: 0 100%;
    }

    > img {
      aspect-ratio: 1.1 / 1;
      object-position: 50% 10%;
      height: 65%;
      transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    > section {
      h2,
      p {
        translate: 0 0;
        margin-block-end: 0.5rem;
        opacity: 1;
      }

      h2 {
        color: var(--title-color-hover);
      }

      > div {
        translate: 0 0;
        opacity: 1;
        transition:
          translate 0.25s 0.25s,
          opacity 0.5s 0.25s;
      }
    }
  }
}

/*===============
novo menu
=================*/

/*===================================================================
  FEATURES (Sobre Nós)
===================================================================*/
.features {
  padding: 50px 0;
  position: relative;
}

.pattern-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image: radial-gradient(var(--primary) 2px, transparent 2px);
  background-size: 30px 30px;
  z-index: -1;
}

.features-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  align-items: center;
}

.features-image {
  position: relative;
}

.rounded-shadow {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.play-button-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.play-button {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.play-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: ripple 2s infinite ease-in-out;
  z-index: -1;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.feature-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
}

.feature-item {
  display: flex;
  gap: 20px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--text-muted);
}

/*===================================================================
  CALL TO ACTION
===================================================================*/
.cta-section {
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
  color: white;
  box-shadow: var(--shadow-lg);
}

.map {
  grid-column: 1 / -1;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cta-content h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 24px;
}

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

.cta-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.input-group {
  margin-bottom: 20px;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--text-main);
  background: var(--bg-color);
  transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/*===================================================================
  FOOTER
===================================================================*/
.footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding-top: 80px;
}

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

.brand-col .logo {
  color: white;
  margin-bottom: 24px;
}

.brand-col p {
  margin-bottom: 24px;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer h3 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 24px;
}

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

.footer ul a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.contact-col li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-col i {
  color: var(--primary);
  margin-top: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  font-size: 0.875rem;
}

/*===================================================================
  WHATSAPP BUTTON
===================================================================*/
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe57;
}

.pulse {
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/*===================================================================
  ANIMATIONS & RESPONSIVE
===================================================================*/
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 3rem;
  }

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

  .features-content {
    gap: 40px;
  }

  .cta-box {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .map iframe {
    height: 300px;
  }

  .hero-logo-center {
    width: 28vw;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .btn-primary.nav-btn {
    display: none;
  }

  .hero-logo-center {
    width: 40vw;
  }

  .menu-toggle {
    display: block;
  }

  .hero-inner {
    align-items: flex-start;
    padding-top: 120px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    margin-top: 0;
  }

  .hero-text p {
    margin: 0 auto 30px;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
  }

  .stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-bg {
    width: 100%;
    border-bottom-left-radius: 0;
  }

  .floating-card {
    display: none;
  }

  .features-content {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .features-image {
    order: -1;
  }

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

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

  .highlight-card.featured-card {
    transform: scale(1);
  }

  .highlight-card.featured-card:hover {
    transform: translateY(-10px);
  }
}

/*===================================================================
  SEÇÃO SOBRE NÓS INOVADOR
===================================================================*/
.sobre-inovador {
  background-color: var(--bg-color);
  padding: 30px 0;
}

.inovador-wrapper {
  display: flex;
  background-color: var(--surface);
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.inovador-imagem-col {
  flex: 1;
  position: relative;
  padding: 50px;
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
/*
.inovador-imagem-bg {
  position: absolute;
  top: 45%;
  left: 45%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 70%;
  background-color: var(--text-claro);
  z-index: 1;
}
*/
.inovador-img {
  position: relative;
  z-index: 2;
  width: 120%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  border: 12px solid var(--text-claro);
}

.inovador-conteudo-col {
  flex: 1;
  padding: 60px 60px 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.inovador-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-claro);
  font-weight: 700;
  margin-bottom: 10px;
}

.inovador-titulo {
  font-size: 3.5rem;
  color: var(--text-claro);
  margin-bottom: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.inovador-texto {
  color: var(--text-claro);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.inovador-btn {
  align-self: flex-start;
  background-color: var(--text-claro);
  color: white;
  border-radius: 0;
  padding: 12px 24px;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.inovador-btn:hover {
  background-color: var(--text-main);
  color: white;
}

@media (max-width: 768px) {
  .inovador-wrapper {
    flex-direction: column;
  }

  .inovador-imagem-col {
    padding: 40px;
  }

  .inovador-imagem-bg {
    top: 50%;
    left: 45%;
    width: 60%;
    height: 80%;
  }

  .inovador-conteudo-col {
    padding: 40px 30px;
  }
}
