:root {
  --color-primary: #6e198c; /* Roxo */
  --color-primary-hover: #58156f;
  --color-secondary: #f5d33d; /* Amarelo */
  --color-background: #ffffff;
  --color-background-light: #f9f9f9;
  --color-text: #333333;
  --color-text-light: #ffffff;
  --color-border: #dddddd;
  --color-shadow: rgba(0, 0, 0, 0.1);
  --color-shadow-strong: rgba(0, 0, 0, 0.2);

  --font-family-base: 'Arial', sans-serif;
  --font-size-base: 16px;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-family-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  font-size: var(--font-size-base);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Acessibilidade: foco visível ===== */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
  outline-style: dashed;
}

/* ===== Fade-in ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
  box-shadow: 0 2px 5px var(--color-shadow);
  z-index: 999;
  transition: all var(--transition-speed) ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  transition: padding var(--transition-speed);
}

header.shrink .header-content {
  padding: 8px 0;
}

header .logo {
  height: 100px;
  transition: height var(--transition-speed);
}

header.shrink .logo {
  height: 85px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li:first-child {
  margin-left: 0;
}

nav ul li a {
  color: var(--color-secondary);
  font-weight: bold;
  text-decoration: none;
  transition: color var(--transition-speed);
}

nav ul li a:hover,
nav ul li a:focus {
  color: var(--color-text-light);
}

/* ===== Menu hambúrguer ===== */
.menu-icon {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--color-secondary);
  background: none;
  border: none;
}

/* ===== Hero Banner ===== */
.hero {
  padding-top: 80px;
}

.banner-img {
  width: 100%;
  display: block;
  height: auto;
}

/* ===== Sobre ===== */
.sobre {
  padding: 80px 20px;
  background-color: var(--color-background);
  text-align: center;
}

.sobre h2 {
  color: var(--color-primary);
  margin-bottom: 20px;
  font-size: 2.25rem;
}

.sobre p {
  max-width: 700px;
  margin: 0 auto 20px;
  color: var(--color-text);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Botão */
.sobre .btn-whatsapp {
  display: inline-block;
  margin-top: 10px;
  padding: 14px 35px;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 8px var(--color-shadow);
  transition: background-color 0.3s, transform 0.2s;
  font-size: 1.125rem;
}

.sobre .btn-whatsapp:hover,
.sobre .btn-whatsapp:focus {
  background-color: var(--color-primary-hover);
  transform: scale(1.05);
  outline: none;
}

/* ===== Clientes ===== */
.clientes {
  padding-bottom: 0;
  margin-bottom: 0;
  text-align: center;
}

/* ===== Carrossel Slide ===== */
.carousel-instagram {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-primary);
}

.carousel-track {
  display: flex;
  transition: transform 1s ease;
  will-change: transform;
}

.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

/* Áreas clicáveis */
.carousel-side {
  position: absolute;
  top: 0;
  width: 40%;
  height: 100%;
  cursor: pointer;
  z-index: 5;
  background: transparent;
}

.carousel-side.left {
  left: 0;
}

.carousel-side.right {
  right: 0;
}

/* Animações para slides */
@keyframes slideRightEnter {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideLeftEnter {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-right-enter {
  animation: slideRightEnter 0.6s forwards;
}

.slide-left-enter {
  animation: slideLeftEnter 0.6s forwards;
}

/* Setas visuais (não clicáveis) */
.carousel-arrow.prev,
.carousel-arrow.next {
  pointer-events: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(109, 25, 140, 0.3);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease, opacity 0.8s ease;
  padding: 0;
  opacity: 0;
  pointer-events: auto; /* para ser clicável */
}

.carousel-arrow:hover,
.carousel-arrow:focus {
  background-color: rgba(88, 21, 111, 0.9);
  outline: none;
}

.carousel-instagram:hover .carousel-arrow,
.carousel-arrow:focus {
  opacity: 1;
}

.carousel-arrow.prev {
  left: 10px;
}

.carousel-arrow.next {
  right: 10px;
}

/* Dots do carrossel */
.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.carousel-dots .dot {
  height: 14px;
  width: 14px;
  background-color: var(--color-background);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
}

.carousel-dots .dot.active,
.carousel-dots .dot:focus {
  background-color: var(--color-primary);
  outline: none;
}

/* ===== Animações para slide com direção ===== */
@keyframes slideLeftIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRightIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-left-enter {
  animation: slideLeftIn 0.6s forwards;
}

.slide-right-enter {
  animation: slideRightIn 0.6s forwards;
}

/* ===== Contato ===== */
.contato {
  padding-top: 40px;
  margin-top: 0;
  background-color: var(--color-primary);
  text-align: center;
  color: var(--color-secondary);
}

.contato h2 {
  margin-bottom: 10px;
  font-size: 2rem;
  color: var(--color-secondary);
}

.contato p {
  color: var(--color-text);
  margin-bottom: 8px;
}

.info-contato {
  margin: 20px auto;
  max-width: 500px;
  text-align: center;
  line-height: 1.8;
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--color-shadow);
  color: var(--color-text);
}

.info-contato p {
  margin: 5px 0;
}

.contato .btn-whatsapp {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 35px;
  background-color: var(--color-secondary);
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 8px var(--color-shadow);
  transition: background-color 0.3s, transform 0.2s;
  font-size: 1.125rem;
}

.contato .btn-whatsapp:hover,
.contato .btn-whatsapp:focus {
  background-color: #e4c231;
  transform: scale(1.05);
  outline: none;
}

/* ===== Footer ===== */
footer {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  padding: 20px 0;
  text-align: center;
}

/* ===== Responsivo ===== */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 70px;
    right: -100%;
    background-color: var(--color-primary);
    width: 200px;
    box-shadow: 0 2px 5px var(--color-shadow-strong);
    border-radius: 8px;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  nav.active {
    right: 10px;
  }

  nav ul {
    flex-direction: column;
    padding: 10px;
  }

  nav ul li {
    margin: 10px 0;
  }

  .menu-icon {
    display: block;
  }
}

@media (max-width: 480px) {
  header .logo {
    height: 45px;
  }

  .sobre p,
  .contato p {
    font-size: 0.875rem;
  }

  .carousel-arrow {
    width: 30px;
    height: 30px;
    font-size: 14px;
    line-height: 30px;
  }
}
