/* Reset e variáveis globais */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  font-size: 62.5%;
  --primary-blue: #2C3E76;
  --secondary-blue: #4A63B5;
  --light-blue: #E8ECF5;
  --dark-blue: #1A2A5A;
  --gray-dark: #2C3A4E;
  --gray-medium: #5D6D87;
  --gray-light: #F5F7FA;
  --gray-border: #D1D9E6;
  --white: #FFFFFF;
  --shadow: rgba(44, 58, 118, 0.15);
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(to bottom, var(--gray-light), var(--primary-blue));
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  font-family: 'Inter', sans-serif;
  color: var(--gray-dark);
}

/* Estilos gerais de seções */
main,
header,
section,
.sobre-section,
.sobre-container {
  background: transparent;
}

/* Estilos da navbar */
.nav-bar {
  width: 100%;
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 15px var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  font-family: 'Inter', sans-serif;
}

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

.nav-bar .logo img {
  height: 5rem;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a,
.menu-link .menu-text {
  font-weight: 600;
  color: var(--gray-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--gray-dark);
  font-size: 1.6rem;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.18s ease 0.7s;
  z-index: 3100;
}

.menu-link .menu-text {
  position: relative;
  z-index: 3500;
  display: inline-block;
  pointer-events: none;
  transition: color 0.18s ease 0.7s;
}

.menu-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 0.22rem;
  width: 140%;
  background: var(--secondary-blue);
  transform: translateX(-120%) translateY(-50%);
  opacity: 1;
  pointer-events: none;
  z-index: 4200;
  border-radius: 2px;
  transition: transform 0.8s cubic-bezier(.25,.8,.25,1), opacity 0.05s ease;
}

.menu-link.animating::before {
  transform: translateX(120%) translateY(-50%);
}

.menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--light-blue);
  border-radius: 0.3rem;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.8s cubic-bezier(.25,.8,.25,1) 0.35s;
  pointer-events: none;
  z-index: 3000;
}

.menu-link:hover::after,
.menu-link:focus::after {
  transform: scaleY(1);
}

.menu-link:hover::before,
.menu-link:focus::before {
  animation: sweep 1.2s cubic-bezier(.25,.8,.25,1) forwards;
}

.menu-link:hover .menu-text,
.menu-link:focus .menu-text {
  color: var(--secondary-blue);
  text-shadow: 0 0 2px rgba(74, 99, 181, 0.25);
}

/* Estilos do dropdown */
.dropdown {
  position: relative;
}

.dropcontent {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--white);
  box-shadow: 0 1rem 2rem var(--shadow);
  min-width: 18rem;
  z-index: 4000;
  overflow: hidden;
  transform: scaleY(0);
  transform-origin: top;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-border);
}

.dropdown.active .dropcontent {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

.dropcontent a {
  display: block;
  padding: 1rem 1.2rem;
  color: var(--gray-dark);
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.3s ease, text-shadow 0.3s ease, background 0.3s ease;
  border-bottom: 1px solid var(--gray-border);
}

.dropcontent a:last-child {
  border-bottom: none;
}

.dropcontent a:hover,
.dropcontent a:focus {
  color: var(--secondary-blue);
  text-shadow: 0 0 2px rgba(74, 99, 181, 0.4);
  background: var(--light-blue);
  border-radius: 0;
}

/* Estilos da seção sobre */
.sobre-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8rem 2rem;
  background: transparent; 
}

.sobre-container {
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 10rem;
}

.sobre-texto h2 {
  font-weight: 800; 
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 2rem;
}

.sobre-texto p {
  text-align: justify;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--gray-dark);
  margin-bottom: 2rem;
}

.btn-sobre {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary-blue);
  color: var(--white);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background 0.3s ease;
}

.btn-sobre:hover {
  background-color: var(--secondary-blue);
}

.sobre-imagem {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 300px; 
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px var(--shadow);
}

/* Estilos da seção de serviços */
.servicos-section {
  width: 100%;
  background-color: var(--dark-blue);
  padding: 4.5rem 2rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  position: relative;
  z-index: 2;
  margin-top: 70px;
}

.servicos-inner {
  max-width: 1200px;
  margin: 0 auto;
  color: var(--white);
}

.servicos-title {
  font-size: 3.4rem;
  font-weight: 800;
  margin: 0 0 2.5rem 0;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  align-items: stretch;
}

.service-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.6rem;
  border-radius: 1rem;
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.2rem 2.4rem rgba(6,18,44,0.35);
  border-color: rgba(255,255,255,0.2);
}

.service-image {
  width: 100%;
  height: 20rem;
  background-color: rgba(255,255,255,0.05);
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.service-mini-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.service-desc {
  font-size: 1.4rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  margin-top: 0.5rem;
  flex: 1;
}

/* Estilos da seção de avaliações */
.reviews-section {
  background: linear-gradient(to bottom, var(--gray-light), var(--light-blue));
  padding: 6rem 2rem;
  color: var(--gray-dark);
}

.reviews-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.reviews-left .reviews-image-frame {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 12px 30px var(--shadow);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 100%;
  min-width: 100%;
}

.google-card {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  background: rgba(26, 42, 90, 0.85);
  color: var(--white);
  padding: 1.25rem 1.4rem;
  border-radius: 1rem;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  min-width: 170px;
  box-shadow: 0 8px 18px rgba(8,14,33,0.28);
  backdrop-filter: blur(5px);
  max-width: calc(100% - 4rem);
}

.google-icon svg { 
  display:block; 
  width:28px; 
  height:28px; 
}

.google-stats .count { 
  font-size: 2.2rem; 
  font-weight:700; 
  line-height:1; 
}

.google-stats .label { 
  font-size:1.1rem; 
  opacity:0.85; 
  margin-top:0.15rem; 
}

.google-stats .stars { 
  margin-top:0.4rem; 
  color:#FFD166; 
  font-size:1.25rem; 
  letter-spacing: 0.05rem; 
}

.reviews-title { 
  font-size: 4.0rem; 
  color: var(--primary-blue); 
  margin: 0 0 1.6rem 0; 
  font-weight:800; 
}

.carousel {
  position: relative;
  padding: 1rem 2rem 2.5rem 2rem;
  display: block;
}

.carousel-track {
  overflow: hidden;
  position: relative;
}

.review-slide {
  display: none;
  width: 100%;
  padding-right: 0;
}

.review-slide[aria-hidden="false"] {
  display: block;
  animation: slideFade .45s ease;
}

.review-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 20px var(--shadow);
  min-height: 200px;
  border: 1px solid var(--gray-border);
}

.review-meta {
  display:flex;
  gap: 1rem;
  align-items:center;
  margin-bottom: 1.1rem;
}

.avatar {
  width:56px;
  height:56px;
  border-radius:50%;
  background: var(--light-blue);
  color: var(--primary-blue);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:1.6rem;
}

.review-author { 
  display:block; 
  font-size:1.4rem; 
  color:var(--gray-dark); 
}

.review-rating { 
  color:#FFD166; 
  font-weight:700; 
  font-size:1.1rem; 
  margin-top:4px; 
}

.review-text { 
  font-size:1.5rem; 
  line-height:1.6; 
  color:var(--gray-medium); 
  margin:0; 
}

.carousel-btn {
  position: absolute;
  top: 43%;
  transform: translateY(-50%);
  width:40px;
  height:40px;
  border-radius:50%;
  border: none;
  background: var(--light-blue);
  box-shadow: 0 6px 18px var(--shadow);
  cursor:pointer;
  font-size:1.8rem;
  color: var(--primary-blue);
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .15s ease, background .15s ease;
  z-index: 10;
}

.carousel-btn:hover { 
  transform: translateY(-50%) scale(1.04); 
  background: var(--white);
}

.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }

.carousel-dots {
  display:flex;
  gap:10px;
  justify-content:center;
  margin-top:1.6rem;
}

.dot {
  width:10px;
  height:10px;
  border-radius:50%;
  background: var(--gray-border);
  border: none;
  cursor:pointer;
  transition: background .3s ease;
}

.dot.active { background: var(--primary-blue); }

.google-card-mobile {
  display: none;
}

/* Estilos do footer */
footer {
  background: var(--dark-blue);
  color: var(--white);
  padding: 30px 40px;
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  line-height: 1.6rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

.footer-column h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  padding-bottom: 6px;
  position: relative;
  color: var(--white);
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-blue);
  border-radius: 2px;
}

.footer-column p,
.footer-links a {
  font-size: 1.3rem;
  line-height: 1.6rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
  display: block;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--secondary-blue);
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  overflow: hidden;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--secondary-blue);
  transform: translateY(-3px);
}

.social-icons img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.copyright {
  text-align: center;
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
}

/* Elementos mobile ocultos por padrão */
.menu-toggle {
  display: none;
}

.mobile-logo {
  display: none;
  text-align: center;
  margin: -1rem 0;
}

.mobile-logo img {
  height: 5rem;
  width: auto;
}

/* Animações */
@keyframes sweep {
  0% { transform: translateX(-120%) translateY(-50%); }
  100% { transform: translateX(120%) translateY(-50%); }
}

@keyframes slideFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Media queries para responsividade */
@media (max-width: 1024px) {
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .servicos-section {
    margin-top: 30px;
  }
  
  .servicos-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .sobre-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .sobre-imagem { 
    order: 1; 
  }
  
  .sobre-texto { 
    order: 2; 
  }
  
  .mobile-logo {
    display: block;
  }
  
  .nav-bar .logo {
    display: none;
  }
  
  .nav-bar {
    width: 240px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -240px;
    background-color: var(--dark-blue);
    padding: 7rem 1rem 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
  }
  
  .nav-bar.active {
    left: 0;
  }
  
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 2rem;
  }
  
  .nav-links a,
  .menu-link {
    color: var(--white);
    font-size: 1.8rem;
    width: 100%;
    text-align: left;
    position: relative;
    padding: 0.6rem 0;
    cursor: pointer;
    transform: none !important;
    animation: none !important;
    display: block;
  }
  
  .menu-link .menu-text {
    display: block;
    width: 100%;
    text-align: left;
    color: rgb(114, 116, 117) !important;
  }
  
  .dropdown { 
    width: 100%; 
  }
  
  .dropdown .dropcontent {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-left: 0;
    margin-top: 0.5rem;
    background: none;
    box-shadow: none;
    border: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    position: static;
    transform: none;
    opacity: 1;
    min-width: auto;
    pointer-events: auto;
  }
  
  .dropdown.active .dropcontent {
    max-height: 500px;
  }
  
  .dropcontent a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    padding: 0.6rem 0 0.6rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: block;
    background: none;
    white-space: normal;
    word-wrap: break-word;
  }
  
  .dropcontent a:last-child {
    border-bottom: none;
  }
  
  .menu-link::before,
  .menu-link::after {
    display: none !important;
  }
  
  .menu-link:hover .menu-text,
  .menu-link:focus .menu-text {
    color: var(--secondary-blue);
    text-shadow: none;
  }
  
  .menu-toggle {
    display: block;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    top: 4vh;
    z-index: 10001;
  }
  
  .hamburger,
  .hamburger::before,
  .hamburger::after {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease;
  }
  
  .hamburger::before {
    content: '';
    position: absolute;
    top: -8px;
  }
  
  .hamburger::after {
    content: '';
    position: absolute;
    top: 8px;
  }
  
  .menu-toggle.active .hamburger {
    background-color: transparent;
  }
  
  .menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background-color: var(--white);
  }
  
  .menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    background-color: var(--white);
  }
  
  .reviews-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .reviews-left {
    position: relative;
    order: 2;
    padding: 0 1rem;
  }
  
  .reviews-right {
    order: 1;
  }
  
  .reviews-image-frame {
    width: 100%;
  }
  
  .reviews-image-frame img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    display: block;
  }
  
  .reviews-left .reviews-image-frame {
    aspect-ratio: 1;
    max-height: 300px;
    border-radius: 1rem;
  }
  
  .google-card-mobile {
    display: flex;
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(26, 42, 90, 0.85);
    color: var(--white);
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    gap: 0.8rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: auto;
    box-shadow: 0 6px 18px var(--shadow);
    z-index: 5;
  }
  
  .google-card-mobile .google-icon img {
    width: 28px;
    height: 28px;
  }
  
  .google-card-mobile .google-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
  }
  
  .google-card-mobile .count {
    font-size: 1.8rem;
    font-weight: 700;
  }
  
  .google-card-mobile .label {
    font-size: 1.2rem;
    opacity: 0.85;
  }
  
  .google-card-mobile .stars img {
    height: 18px;
    margin-top: 0.2rem;
  }
  
  .google-card {
    display: none;
  }
  
  .carousel-btn {
    z-index: 10;
  }
  
  .carousel-btn.prev {
    left: -15px;
    top: auto;
    bottom: 58%;
    transform: translateY(50%);
  }
  
  .carousel-btn.next {
    right: -10px;
    top: auto;
    bottom: 58%;
    transform: translateY(50%);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
  }
  
  .footer-column {
    align-items: left;
  }
  
  .social-icons {
    justify-content: left;
  }
  
  body, .hero {
    background-size: 100% auto;
    background-repeat: no-repeat;
  }
}