:root {
  --header-bg: #9E948F;
  --m-header-bg: #9E948F;
  --m-container: min(1200px, 92vw);
  --m-accent: #b8956b;
  --m-accent-hover: #a08050;
  --m-transition: 0.25s ease;
  --valores-bg: #5C4A41;
  --text-white: #FFFFFF;
  --contact-bg: #FFFFFF;
  --bg-light: #F5F5F5;
  --quote-bg: #635249;
  --text-brown: #5C4A41;
  --footer-bg: #9E948F;
}

html {
  scroll-behavior: smooth;
}

/* Compensa header fixo ao rolar para âncoras */
[id="clinicas-medicas"],
[id="contencioso-defensivo"],
[id="reproducao-assistida"],
[id="servicos"],
[id="contato"] {
  scroll-margin-top: 80px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-brown);
  line-height: 1.6;
}

/* Header styles (visual moderno) */
.m-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.875rem 0;
  background: var(--m-header-bg);
  transition: background var(--m-transition), box-shadow var(--m-transition);
}

.m-header-inner {
  max-width: var(--m-container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.m-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-white);
  font-weight: 500;
  font-size: 1.05rem;
}

.m-logo-img {
  height: 2rem;
  width: auto;
}

.m-logo-text {
  color: var(--text-white);
}

.m-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.m-nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-transform: uppercase;
  transition: color var(--m-transition), background var(--m-transition);
}

.m-nav-link:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.08);
}

.m-nav-link-cta {
  color: #fff;
  background: var(--m-accent);
  margin-left: 0.5rem;
}

.m-nav-link-cta:hover {
  background: var(--m-accent-hover);
  color: #1a1a1a;
}

.m-header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.m-header-social-icons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.m-header-actions .m-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background-color: rgba(132, 120, 114, 0.9);
  transition: opacity var(--m-transition);
}

.m-header-actions .m-icon-link:hover {
  opacity: 0.8;
}

.m-header-actions .m-icon-link img {
  width: 1.1rem;
  height: 1.1rem;
  filter: brightness(0) invert(1);
}

.language-flags {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-left: 0.15rem;
}

.language-flags img {
  height: 15px;
  width: 22px;
  display: block;
}

.m-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-white);
}

.m-menu-btn-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* Hero Split: dois blocos esquerda/direita, clique leva à seção */
.hero-split {
  padding: calc(80px + 4rem) 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--quote-bg) 0%, var(--valores-bg) 100%);
  background-image: url('../assets/images/office2.png');
  background-size: cover;
}

.hero-split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  background: var(--contact-bg);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-brown);
  box-shadow: 0 4px 24px rgba(92, 74, 65, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(92, 74, 65, 0.08);
  max-width: 300px;
}

.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(92, 74, 65, 0.18);
}

.hero-card:focus-visible {
  outline: 2px solid var(--valores-bg);
  outline-offset: 4px;
}

.hero-card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.35rem 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-white);
  background: var(--valores-bg);
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 1rem;
  color: var(--text-brown);
}

.hero-card-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  color: var(--text-brown);
  flex-grow: 1;
}

.hero-card-cta {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--valores-bg);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
}

.hero-card:hover .hero-card-cta {
  gap: 0.6rem;
}

/* Hero Section (antiga – slider) */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-menu {
  position: absolute;
  height: 80px;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-arrow {
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 30px;
  color: var(--text-white);
  z-index: 10;
  transition: background-color 0.3s ease;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.slider-dots {
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--text-white);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background: var(--text-white);
}

/* Valores Section */
.valores-section {
  background-color: var(--valores-bg);
  padding: 4rem 0;
  position: relative;
  color: var(--text-white);
}

.valores-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.valores-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 3rem;
  color: var(--text-white);
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.valor-item {
  padding: 2rem;
}

.valor-item h3 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.valor-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-white);
  font-weight: 300;
}

@media (max-width: 768px) {
  .valores-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Contact Section */
.contato-section {
  background-color: var(--contact-bg);
  padding: 4rem 0;
  position: relative;
}

.contato-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contato-content {
  color: var(--text-brown);
}

.contato-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--text-brown);
}

.contato-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-brown);
  margin-bottom: 2rem;
}

.contato-form {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 0;
}

.contato-form input,
.contato-form textarea {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 2px solid var(--text-brown);
  border-radius: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  margin-bottom: 0;
}

.contato-form textarea {
  min-height: 100px;
  resize: vertical;
  margin-bottom: 0.5rem;
}

.contato-form button {
  align-self: flex-end;
  background-color: var(--text-brown);
  color: var(--text-white);
  padding: 0.5rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  padding: 4rem 0 1rem 0;
  color: var(--text-white);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.m-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.m-footer-logo-img {
  width: 8rem;
  height: auto;
}

.m-footer-logo-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-white);
}

.social-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-social h3 {
  font-size: 1.1rem;
  font-weight: 300;
}

.social-description {
  font-size: 1.1rem;
  font-weight: 300;
  display: flex;
  flex-direction: column;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #847872;
  border-radius: 50%;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.social-icons img {
  width: 1.125rem;
  height: 1.125rem;
  filter: brightness(0) invert(1);
}

.inline-icon {
  height: 24px;
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  vertical-align: middle;
}

.padding-right-5 {
  padding-right: 10px;
}

.footer-info {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-info p {
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-info a {
  color: inherit;
  text-decoration: none;
}

.ig.inflar-10 {
  padding: 10px;
}

.ig.margem-top-20 {
  margin-top: 20px;
}

.ig .margem-0 {
  margin: 0;
}

.ig .container-wide {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

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

.ig .negrito {
  font-weight: 600;
  color: var(--text-white);
  text-decoration: none;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 72%;
  background-color: var(--header-bg);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  padding: 2rem;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  transform: translateX(0) !important;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  z-index: 999;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu nav {
  margin-top: 2rem;
}

.mobile-menu nav a {
  display: block;
  color: var(--text-white);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu nav a:last-child {
  border-bottom: none;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 1036px) {

  .m-nav,
  .m-header-actions {
    display: none;
  }

  .m-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .contato-container {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .m-footer-brand {
    justify-content: center;
    align-items: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Hero Section Mobile */
  .hero-split {
    padding: calc(80px + 2rem) 1rem 2rem;
    min-height: auto;
  }

  .hero-split-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .hero-card {
    padding: 1.75rem;
  }

  .hero-card-title {
    font-size: 1.25rem;
  }

  .hero-section {
    height: 100vh;
    margin-top: 60px;
  }

  .hero-text-container {
    left: 5%;
    max-width: 90%;
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.4;
  }

  .hero-menu {
    width: 90%;
    height: 60px;
  }

  /* Services Section Mobile */
  .servicos-container {
    max-width: 95%;
    padding: 0 1rem;
  }

  .servico-content {
    /* background: url('../assets/images/logo\ niver\ marrom.png') no-repeat; */
    background-size: contain;
    background-position: center;
    padding: 2rem;
    border-radius: 10px;
  }

  /* Quote Section Mobile */
  .quote-background {
    display: none;
    width: 0%;
  }

  .quote-content {
    padding: 3rem 0;
    width: 100%;
  }

  .quote-text-container {
    width: 100%;
  }

  .servico-item {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .servico-item.reverse {
    direction: ltr;
  }

  .servico-content {
    order: 2;
  }

  .servico-image {
    order: 1;
    min-height: 250px;
  }

  .servico-tittle {
    flex-direction: column;
    gap: 0.5rem;
  }

  .servico-heading {
    font-size: 1.5rem;
  }

  .servico-description {
    font-size: 0.95rem;
  }

  .servico-list li {
    font-size: 0.85rem;
  }

  /* Niver Section Mobile */
  .niver-section {
    padding: 3rem 0;
  }

  .niver-container {
    max-width: 95%;
    padding: 0 1rem;
    flex-direction: column;
    gap: 2rem;
  }

  .niver-content {
    max-width: 100%;
    order: 2;
  }

  .niver-image {
    max-width: 100%;
    height: 300px;
    order: 1;
  }

  .niver-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .niver-text {
    gap: 1rem;
  }

  .niver-text p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .logo-overlay {
    top: -10%;
    right: -10%;
    width: 120%;
    height: 120%;
    opacity: 0.1;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-text {
    font-size: 0.9rem;
  }

  .servicos-title {
    font-size: 1.8rem;
  }

  .servico-heading {
    font-size: 1.3rem;
  }

  .niver-title {
    font-size: 1.6rem;
  }

  .niver-image {
    height: 250px;
  }

  .quote-background {
    display: none;
  }

  .quote-content {
    padding: 2rem 0;
  }

  .quote-text {
    font-size: 1.5rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Serviços Section */
.servicos-section {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.servicos-container {
  max-width: 80%;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Bg só aplicado em telas maiores que 768px */
@media (min-width: 768px) {
  .servicos-container {
    /* background: url('../assets/images/logo\ niver\ marrom.png') no-repeat; */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
  }
}

.servicos-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-brown);
  font-weight: 300;
  margin-bottom: 4rem;
  position: relative;
}

.servicos-grid {
  display: flex;
  flex-direction: column;
  gap: 3vh;
}

.servico-item {
  display: grid;
  grid-template-columns: 50% 40%;
  gap: 10%;
  align-items: center;
  margin-bottom: 3vh;
  overflow: visible;
}

.servico-item.reverse {
  direction: rtl;

}

.servico-item.reverse .servico-content {
  direction: ltr;
}

.servico-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.servico-icon {
  width: 50px;
  height: 50px;
  background-color: var(--text-brown);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.servico-icon img {
  width: 30px;
  height: 30px;
}

.servico-heading {
  font-size: 1.8rem;
  color: var(--text-brown);
  font-weight: 300;
}

.servico-description {
  color: var(--text-brown);
  font-size: 1rem;
  line-height: 1.6;
}

.servico-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.servico-list li {
  position: relative;
  color: var(--text-brown);
  font-size: 0.9rem;
}



.servico-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  position: relative;
  overflow: visible;
  padding-right: clamp(0.75rem, 5vw, 2.25rem);
  padding-bottom: clamp(1.25rem, 7vw, 3.5rem);
}


.servico-image.esquerda {
  padding-left: clamp(0.75rem, 5vw, 2.25rem);
  padding-right: 0;
}

.servico-image::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 5%;
  left: -2%;
  right: -22%;
  bottom: 0;
  background: linear-gradient(160deg,
      #efe6dc 0%,
      #dccfbc 45%,
      #d0c0b2 100%);
  border-radius: 1.25rem 1.6rem 2.25rem 1.1rem;
  box-shadow: 0 20px 48px rgba(92, 74, 65, 0.1);
  transform: rotate(5deg) skewX(7deg) skewY(3.5deg);
  transform-origin: 0 40%;
}

.servico-image.esquerda::before {
  left: -22%;
  right: -2%;
}

.servico-image img,
.servico-image .rounded-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.22);
}

@media (max-width: 968px) {
  .servico-image::before {
    right: -16%;
    bottom: 0;
    transform: rotate(4deg) skewX(5deg) skewY(2.5deg);
  }
  .servico-image.esquerda::before {
    left: -16%;
    bottom: 0;
    transform: rotate(4deg) skewX(5deg) skewY(2.5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .servico-image::before {
    transform: none;
  }
}

.servico-tittle {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

@media (max-width: 968px) {

  .servico-item,
  .servico-item.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }

  .servico-image {
    min-height: 300px;
  }
}

/* Quote Section */
.quote-section {
  background-color: var(--quote-bg);
  position: relative;
  overflow: hidden;
}

.quote-container {
  max-width: 80%;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.quote-content {
  padding: 5rem 0;
  width: 75%;
}

.quote-text {
  color: var(--text-white);
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1.4;
}

.quote-text-container {
  width: 70%;
  margin: 0 auto;
}

.quote-background {
  width: 25%;
  height: auto;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.quote-bg-image {
  height: 120%;
}

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

  .quote-background {
    opacity: 0.05;
  }
}

/* Niver Section */
.niver-section {
  padding-top: 6rem;
  background-color: var(--contact-bg);
  position: relative;
  overflow: visible;
}

.niver-container {
  max-width: 80%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
}

.niver-content {
  flex: 1;
  max-width: 50%;
}

.niver-title {
  font-size: 2rem;
  color: var(--text-brown);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.niver-title strong {
  font-weight: 500;
}

.niver-text {
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 0.8rem;
}

.niver-text p {
  color: var(--text-brown);
  font-size: 1rem;
  font-weight: 300;
}

.niver-image {
  flex: 1;
  position: relative;
  height: 600px;
  max-width: 50%;
}

.niver-profile-frame {
  --profile-size: min(22rem, min(100%, 80vw));
  --profile-ring: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 0.6rem;
}

.niver-profile-frame::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: calc(var(--profile-size) + var(--profile-ring) * 2);
  height: calc(var(--profile-size) + var(--profile-ring) * 2);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(160deg,
      #efe6dc 0%,
      #dccfbc 55%,
      #d0c0b2 100%);
  box-shadow: 0 14px 36px rgba(92, 74, 65, 0.12);
}

.profile-image {
  position: relative;
  z-index: 1;
  width: var(--profile-size);
  height: var(--profile-size);
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 968px) {
  .niver-profile-frame {
    --profile-size: 340px;
    --profile-ring: 0.25rem;
    padding: 0.5rem;
  }
}

.logo-overlay {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 140%;
  height: 140%;
  background: url('../assets/images/logo niver branco.png') no-repeat;
  background-position: right top;
  background-size: contain;
  opacity: 0.15;
  pointer-events: none;
  transform: rotate(0deg);
}

@media (max-width: 968px) {
  .niver-container {
    flex-direction: column;
    gap: 3rem;
  }

  .niver-content,
  .niver-image {
    max-width: 100%;
  }

  .niver-image {
    height: 400px;
    order: -1;
  }

  .niver-title {
    font-size: 2rem;
  }
}

.hero-text-container {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 45%;
  color: var(--text-white);
}

.hero-text-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-text-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-text {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.6;
}

/* Add a semi-transparent overlay to make text more readable */
.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation Classes */
.animate-fadeInUp {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fadeInLeft {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fadeInRight {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-scaleIn {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Active States */
.animate-fadeInUp.active,
.animate-fadeInLeft.active,
.animate-fadeInRight.active,
.animate-scaleIn.active {
  opacity: 1;
  transform: translate(0);
}

/* Apply animations to sections */
.servicos-section,
.niver-section,
.valores-section,
.contato-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.servicos-section.active,
.niver-section.active,
.valores-section.active,
.contato-section.active {
  opacity: 1;
  transform: translateY(0);
}

/* Apply animations to specific elements */
.servico-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.servico-item.active {
  opacity: 1;
  transform: translateY(0);
}

.valor-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.valor-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for items */
.servico-item:nth-child(1) {
  transition-delay: 0.2s;
}

.servico-item:nth-child(2) {
  transition-delay: 0.4s;
}

.valor-item:nth-child(1) {
  transition-delay: 0.2s;
}

.valor-item:nth-child(2) {
  transition-delay: 0.4s;
}

.valor-item:nth-child(3) {
  transition-delay: 0.6s;
}
