:root {
  --primary-cqolor: #4caf50;
  --secondary-color: #ff9800;
  --dark-color: #121212;
  --font-color: #333;
  --background-color: #f5f5f5;
  --white:#ffffff;

  --color1-d: hsl(225, 100%, 17%);
  --color2-d: hsl(225, 100%, 25%);
  --color3-d: hsl(225, 100%, 35%);

  --color1-l: hsl(189, 100%, 90%);
  --color2-l: hsla(189, 100%, 50%, 0.897);
  --color3-l: hsl(189, 100%, 40%);
  --primary-color: hsl(189, 100%, 30%);
  --color5-l: hsl(189, 100%, 20%);
  /*space between elemenst*/
  --space: 12px;
  --space: 14px;
  --space: 18px;
  --space: 20px;
  --space: 28px;
  --space: 36px;
  --space: 48px;
  /*gaps*/
  --gap-1: 1rem;
  --gap-2: 2rem;
  --gap-3: 3rem;
  --gap-4: 4rem;
  --gap-5: 5rem;

  --border-radius: 12px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --font-title: DM Sans, sans-serif;
  --font-body: Lato, sans-serif;
}
/*imported fonts*/
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  /* box-sizing: border-box; */
  scroll-behavior: smooth;
  box-sizing: border-box;
  font-family: var(--font-body);
}
body {
  background-color: #f5f5f5;
  color: #fff;
  line-height: 1.6;
    overflow-x: hidden;
}
main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
/*============NavBar=====================*/
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  height: 80px;
  width: 100%;
  position: sticky;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
  padding: 0 2rem;
  backdrop-filter: blur(10px);
  z-index: 100;
}
.navbar .logo img {
  height: 40px;
}
.navbar-container {
  width: 100%;
  max-width: 1600px;
  display: flex;
  padding: 0 2rem;
  justify-content: space-between;
  align-items: center;
}
.navbar-container .navbar-menu {
  background: #f4f4f4c5;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  list-style: none;
}
.navbar-container .navbar-menu li a:not(.cta-link) {
  text-decoration: none;
  color: var(--font-color);
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: clamp(0.95rem, 1.2vw + 0.4rem, 1.125rem);
  letter-spacing: 0.2px;
}
.navbar-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--size-10);
}
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background: var(--font-color);
  transition: all 0.3s ease-in-out;
}
.cta-btn-img {
  display: flex;
  gap: 12px;
}
.cta-btn-img img {
  height: 26px;
}
.navbar-menu > li > .cta-link {
  text-decoration: none;
  color: var(--background-color);
  letter-spacing: 1px;
  font-weight: 700;
  letter-spacing: 1px;
  background-color: var(--primary-color);
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
}

.active-link::before {
  content: "";
  position: absolute;
  bottom: 25px;
  height: 3px;
  width: 50px;
  border-radius: 2px;
  background: var(--color2-l);
}
@media (max-width: 800px) {
  .navbar {
    backdrop-filter: none;
  }
  .navbar-container .navbar-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 0;
    right: 0;
    gap: 1.7rem !important;
    width: 250px;
    height: 100vh;
    padding: 5rem 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
  }
  .navbar-toggle {
    display: block;
    z-index: 101;
  }
  .navbar-container .navbar-menu.active {
    display: flex;
    /* & li a{
      color: var(--background-color);
    } */
  }
  .navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .navbar-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .navbar-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}
@media (width<480px) {
  .navbar-container {
    padding: 0 1rem;
  }
  .navbar .logo {
    font-size: 1.5rem;
  }
  .navbar-container .navbar-menu li a {
    font-size: 1rem;
  }
  .advantages-image {
    display: none;
  }
  main {
    padding: 0;
  }
}
.hero {
  border-radius: 12px;
  min-height: 90vh;
  margin: 1rem;
  padding: 1rem;
  display: flex;
  background-color: var(--dark-color);
  gap: 2rem;
}
.left-panel {
  flex: 1;
  border-radius: 12px;
  display: flex;
  max-width: 40rem;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  padding: 2rem;
}
.left-panel .hero-title {
  font-family: DM Sans, sans-serif display;
  font-size: clamp(2rem, 8vw, 2.5rem);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  text-align: start;
}
.left-panel h3 {
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 400;
  text-align: start;
}
.left-panel a {
  background-color: var(--primary-cqolor);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 40px;
  box-shadow: var(--box-shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.left-panel a:hover {
  background-color: var(--primary-cqolor);
  transform: translateY(-3px);
}

/* Minimal functional CSS only (no design) */
.right-panel {
  display: grid;
  position: relative;
  overflow: hidden;
  width: 450px;
  height: 500px;
}

.slider-track {
  display: flex;
  transition: transform 0.45s ease;
  height: 100%;
}

.slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

/* controls (small, unobtrusive) */
.controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

button.control {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(218, 218, 218, 0.836);
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 8px 10px;
  cursor: pointer;
  transition: all .3s cubic-bezier(0.075, 0.82, 0.165, 1);
}
button.control:hover{
  background: var(--white);
}
button.control > img{
  height: 22px;
}
.btn-primary {
  transition: transform 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.btn-ghost {
  border: 1px solid var(--background-color);
  transition: transform 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-3px);
}

#prevBtn {
  left: 8px;
}

#nextBtn {
  right: 8px;
}

/* dots */
#dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

#dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.6);
  padding: 0;
  cursor: pointer;
}

#dots button.active {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.2);
}

/* make sure the rest of your layout doesn't collapse */
.hero {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
  border-radius: 24px;
}

.left-panel {
  flex: 1;
  min-width: 240px;
}
@media (max-width: 900px) {
  .right-panel {
    display: none;
  }
  .hero {
    margin: 0;
  }
}

.services {
  color: var(--font-color);
  flex-direction: column;
  margin: 2rem 1rem;
}
.services h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: 1px;
}

.services-group {
  display: grid;
  grid-auto-columns: 280px;
  grid-template-rows: 280px;
  grid-template-areas:
    "service-1 service-2 service-3"
    "service-4 service-5 service-5";
  justify-content: center;
  gap: 1.5rem;
}
@media (width<900px) {
  .services-group {
    display: grid;

    grid-template-areas:
      "service-1 service-2 "
      "service-3 service-4 "
      " service-5 service-5 ";
    justify-content: center;
    gap: 1.5rem;
  }
}
@media (width<650px) {
  main{
    padding: 0;
  } 
  .hero{
    background-image: url(assets/img/slider-image-4.webp);
    background-repeat: no-repeat;
    background-size: cover ;
    background-position: center;
    
  }
   .overlay{
    border-image: fill 1 linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    
  } 
  .services-group {
    display: grid;
    grid-template-areas:
      "service-1  "
      "service-2  "
      " service-3 "
      "service-4 "
      "service-5 ";

    justify-content: center;
    gap: 1.5rem;
  }
}

.services-group > .service-card ~ .service-card-web {
  background-color: var(--primary-color);
  color: var(--background-color);
}
.services-group > .service-card ~ .service-card-web .card-icon {
  background-color: var(--background-color);
  color: var(--background-color);
}
.service-card:not(:last-child) {
  border: #303030 2px solid;
  color: var(--dark-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card .service-card-especial-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.service-card .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 1rem;
  background-color: var(--primary-color);
  padding: 0.5rem;
}

.service-card h2 {
  font-family: var(--font-title);
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  line-height: 1;
}
.service-card p {
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 1px;
}
.service-card {
  text-decoration: none;
  cursor: pointer;
}

/* ===== CTA SECTION (flex - responsiva) ===== */
.cta-section {
  background: var(--color1-d);
  margin: 2.5rem 1rem;
  border-radius: var(--border-radius);
  padding: 2.25rem 0;
  box-shadow: var(--box-shadow);
  color: var(--font-color);
}

.cta-section .cta-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  padding: 2rem;
  margin: 0 auto;
  box-sizing: border-box;
}

/* conteúdo textual fica flex:1 para crescer */
.cta-section .cta-content {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* visual fica fixo, mas encolhe quando necessário */
.cta-section .cta-visual {
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-section .cta-visual img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--border-radius);
  display: block;
  object-fit: cover;
}

/* tipografia e botões */
.cta-section h2 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem 0;
  color: #fff;
  line-height: 1;
  letter-spacing: 1px;
}

.cta-section p {
  font-weight: 300;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  color: #fff;
  max-width: 60ch;
}

/* botões em linha que quebram no mobile */
.cta-section .cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cta-section .cta-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  letter-spacing: 1px;
  border-radius: 40px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--box-shadow);
}

/* primário / secundário */
.cta-section .cta-buttons a:first-child {
  background-color: var(--primary-cqolor);
  color: #fff;
  border: none;
}

.cta-section .cta-buttons a:last-child {
  background: transparent;
  color: #fff;
  border: 2px solid var(--primary-cqolor);
}

/* stats compactos */
.cta-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.cta-stats li {
  list-style: none;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

/* ===== Responsividade (flex-first) ===== */
@media (max-width: 1000px) {
  .cta-section .cta-inner {
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .cta-section .cta-visual {
    flex: 0 0 320px;
  }
  .cta-section .cta-visual img {
    max-width: 320px;
    height: auto;
  }
}

@media (max-width: 720px) {
  .cta-section .cta-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1rem;
  }

  .cta-section .cta-content {
    align-items: center;
  }

  .cta-section h2 {
    font-size: clamp(1.3rem, 5vw, 1.9rem);
  }

  .cta-section p {
    margin: 0 auto 1rem;
    max-width: 46ch;
  }

  .cta-section .cta-visual {
    width: 100%;
    flex: 0 0 auto;
    margin-top: 0.75rem;
  }

  .cta-section .cta-buttons {
    justify-content: center;
  }

  .cta-section .cta-buttons a:last-child {
    margin-left: 0;
  }

  .cta-stats {
    justify-content: center;
    gap: 1rem;
  }
}

/* ====== FOOTER ====== */
.footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h2,
.footer h3 {
  font-family: var(--font-title);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.footer p,
.footer ul,
.footer a {
  font-weight: 300;
  line-height: 1.7;
  color: #ddd;
}

.footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color);
}

/* Marca e descrição */
.footer-brand p {
  max-width: 25rem;
}

/* Links rápidos */
.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

/* Contato */
.footer-contact ul {
  list-style: none;
}

.footer-contact li {
  margin-bottom: 0.5rem;
}

/* Redes sociais */
.footer-social .social-icons {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  background-color: #222;
  color: #fff;
  padding: 0.5rem 0.5rem;
  border-radius: 50%;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-social a img {
  height: 24px;
}

.footer-social a:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}

/* Linha inferior */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: #aaa;
}

/* Responsividade */
@media (max-width: 768px) {
  .footer {
    padding: 3rem 1.5rem;
  }
  .footer h2,
  .footer h3 {
    text-align: start;
  }
  .footer-brand p {
    text-align: start;
    margin: 0 auto;
  }
  .footer-social {
    text-align: center;
  }
  .footer-social .social-icons {
    justify-content: center;
  }
}
