/* ========================================================= */
/* 1. VARIÁVEIS DE ESTILO (PROPRIEDADES PERSONALIZADAS)     */
/* ========================================================= */

:root {
  /* Cores */
  --color-primary: #39B3AA;
  --color-secondary: #5BC0BE;
  --color-accent: #39B3AA;
  --color-text-dark: #2c3e50;
  --color-text-muted: #7f8c8d;
  --color-link: var(--color-primary);

  /* Fundos */
  --bg-section-light: #f5fcf8;
  --bg-section-white: #ffffff;
  --bg-section-gray: #f2f7f5;
  --bg-footer: #2c3e50;

  /* Tipografia */
  --font-family-base: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-size-base: 1rem;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --line-height-base: 1.6;

  /* Espaçamento e Layout */
  --container-max-width: 1200px;
  --section-padding-lg: 100px 0;
  --section-padding-md: 80px 0;
  --section-padding-sm: 60px 0;
  --gap-lg: 40px;
  --gap-md: 30px;
  --gap-sm: 20px;
  --header-height: 70px;
  
  /* Borda e Sombra */
  --border-radius: 12px;
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 25px rgba(57, 179, 170, 0.15);
}

/* ========================================================= */
/* 2. RESET E ESTILOS GERAIS                                */
/* ========================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-dark);
  background-color: var(--bg-section-gray);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: calc(100% - 40px);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.section {
  position: relative;
  overflow: hidden;
  padding: var(--section-padding-lg);
}

h1, h2, h3 {
  line-height: 1.2;
  color: var(--color-text-dark);
}
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.5rem; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Classes de Utilidade */
.text-center { text-align: center; }
.bg--light { background-color: var(--bg-section-gray); }
.muted { color: var(--color-text-muted); }
.small { font-size: 0.9rem; }
.lead { font-size: 1.15rem; }
.lead-sm { font-size: 1.05rem; }
.primary-color { color: var(--color-primary); }
.rounded-corners { border-radius: var(--border-radius); }
.mt-4 { margin-top: 1.5rem; }
.mobile-hidden { display: none; }

.kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.kicker--muted {
  display: inline-block;
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.section__header {
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--border-radius);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  font-size: var(--font-size-base);
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background-color: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary);
}
.btn--primary:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.btn--outline {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
}
.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.btn--cta {
  background: var(--color-accent);
  color: #fff;
  padding: 10px 18px;
  font-weight: var(--font-weight-bold);
  border: none;
}
.btn--cta:hover {
  background-color: #31948b;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Cartões */
.card {
  background: var(--bg-section-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

/* ========================================================= */
/* 3. ESTILOS DE COMPONENTES (BEM)                          */
/* ========================================================= */

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 100;
  box-shadow: var(--shadow-light);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  overflow: hidden;
}
.brand__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand__text {
  display: flex;
  flex-direction: column;
}
.brand__name {
  font-weight: var(--font-weight-bold);
  font-size: 1.2rem;
  color: var(--color-text-dark);
}
.brand__sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.nav__list {
  display: flex;
  gap: var(--gap-sm);
  list-style: none;
}
.nav__link {
  color: var(--color-text-dark);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.nav__link:hover {
  color: var(--color-primary);
  background: rgba(57, 179, 170, 0.08);
}
.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 24px;
  color: var(--color-text-dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%),
                    url('https://images.unsplash.com/photo-1600573472594-410cfb92e8d1?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 20px);
  padding-bottom: 50px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__inner {
  display: grid;
  grid-template-columns: 0.9fr 420px;
  gap: var(--gap-lg);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero__content {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.hero h1 {
  color: #fff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
.hero__actions {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}
.hero__stats-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  padding: var(--gap-sm);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  color: var(--color-text-dark);
  margin-left: auto;
}
.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.features li {
  padding: 12px 15px;
  border-radius: var(--border-radius);
  background: linear-gradient(180deg, #fff, #fefefe);
  border: 1px solid rgba(57, 179, 170, 0.06);
}
.features strong {
  color: var(--color-primary);
  font-size: 1.05rem;
}
.features span {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  display: block;
  margin-top: 5px;
}
.stats {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}
.stat {
  background: #fff;
  padding: 15px;
  border-radius: var(--border-radius);
  flex: 1;
  text-align: center;
  box-shadow: var(--shadow-light);
}
.stat__value {
  font-weight: var(--font-weight-extrabold);
  font-size: 1.8rem;
  color: var(--color-primary);
}
.stat__label {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* Serviços */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-md);
  align-items: flex-start;
}
.services__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gap-md);
  min-height: 250px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: var(--color-text-dark);
}
.check-list i {
  color: var(--color-primary);
  font-size: 1.2em;
}
.card__img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__img-wrap img {
  transform: scale(1.05);
}
.card__content {
  padding: var(--gap-sm);
}
.card__content h3 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card__content h3 i { font-size: 1.5rem; }
.card__content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Processo */
.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap-md);
  margin-top: 3rem;
}
.process__step {
  text-align: center;
}
.process__icon-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  border: 1px solid rgba(0,0,0,0.05);
}
.icon--lg { font-size: 3rem; }

/* Projetos */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-md);
  margin-top: 3rem;
}
.project {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.project:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.project img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project:hover img {
  transform: scale(1.05);
}
.project__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  color: white;
  padding: var(--gap-sm) var(--gap-sm);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.project:hover .project__info {
  transform: translateY(0);
}
.project__info h3 {
  color: white;
  margin: 0 0 5px 0;
  font-size: 1.3rem;
}
.project__info p {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  margin: 0;
}

/* Diferenciais */
.differentials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap-lg);
}
.differentials .card {
  text-align: center;
  padding: var(--gap-md);
}
.differentials .card h3 {
  margin-bottom: 0.75rem;
}
.differentials .card i {
  margin-bottom: 1rem;
}

/* Sobre */
.about__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
}
.about__text-content {
  padding-right: var(--gap-lg);
}
.about__text-content h2 { text-align: left; }
.about__text-content p { text-align: left; }
.about__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.about__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.about__list i {
  color: var(--color-primary);
  font-size: 1.2em;
}

/* Depoimentos */
.testimonials__carousel {
  display: flex;
  gap: var(--gap-sm);
  padding: 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 15px;
}
.testimonials__carousel::-webkit-scrollbar { height: 8px; }
.testimonials__carousel::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
}
.testimonials__carousel::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}
.testimonial {
  flex-shrink: 0;
  width: 300px;
  scroll-snap-align: center;
  padding: var(--gap-md);
  border-radius: var(--border-radius);
  background: var(--bg-section-white);
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}
.testimonial__photo-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
  border: 3px solid var(--color-primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.testimonial__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial p {
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 15px;
}
.testimonial cite {
  display: block;
  font-size: 0.9rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin-top: auto;
}

/* FAQ */
.faq__list {
  max-width: 800px;
  margin: 3rem auto 0;
}
.faq__item {
  background-color: var(--bg-section-white);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
}
.faq__question {
  width: 100%;
  display: block;
  background-color: #f8fcfb;
  color: var(--color-text-dark);
  font-size: 1.1rem;
  font-weight: var(--font-weight-semibold);
  text-align: left;
  padding: 20px 25px;
  border: none;
  cursor: pointer;
  position: relative;
}
.faq__question:hover { background-color: #f0f8f5; }
.faq__question::after {
  content: '\2b';
  font-size: 1.5rem;
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  transition: transform 0.2s ease;
}
.faq__question.active::after {
  content: '\2212';
  transform: translateY(-50%) rotate(180deg);
}
.faq__answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.faq__answer p {
  margin: 15px 0;
  color: var(--color-text-muted);
}
.faq__answer.open {
  max-height: 200px;
  padding: 15px 25px;
}

/* Contato */
.contact__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--gap-lg);
  align-items: flex-start;
}
.contact__form h2 { text-align: left; }
.contact__form p { text-align: left; }
.contact__info {
  padding: var(--gap-md);
}
.contact__info h3 { margin-bottom: 1.2rem; color: var(--color-primary); }
.contact__info p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: var(--font-size-base);
}
.contact__info i { color: var(--color-primary); font-size: 1.2em; }
.contact__info a {
  color: var(--color-text-dark);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color 0.2s ease;
}
.contact__info a:hover { color: var(--color-primary); }
address {
  font-style: normal;
  line-height: 1.5;
  margin-top: 2rem;
  font-size: 0.9rem;
}
address strong {
  color: var(--color-primary);
  font-size: var(--font-size-base);
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: var(--gap-sm);
}
.form__grid input, .form__grid textarea {
  padding: 14px 18px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  color: var(--color-text-dark);
  background-color: #fcfcfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form__grid input:focus, .form__grid textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(57, 179, 170, 0.2);
}
.form__grid textarea {
  grid-column: 1 / -1;
  min-height: 140px;
  resize: vertical;
}

/* Rodapé */
.footer {
  background-color: var(--bg-footer);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--section-padding-md) 0;
  font-size: 0.95rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand--footer .brand__name { color: #fff; }
.footer__links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.2s ease;
}
.footer__links a:hover { color: #fff; }
.copyright {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.6);
}

/* === EFEITOS DE FUNDO E ANIMAÇÕES === */
.shape, .dot {
  position: absolute;
  opacity: 0.1;
  z-index: 0;
  animation: pulse 4s infinite ease-in-out alternate;
}
.shape { border-radius: 50%; }
.shape--1 {
  top: -100px; left: -150px; width: 400px; height: 400px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  opacity: 0.2;
}
.shape--2 {
  bottom: -100px; right: -100px; width: 300px; height: 300px;
  transform: rotate(-30deg);
  background-color: var(--color-secondary);
}
.shape--3 {
  top: 10%; left: -80px; width: 200px; height: 200px;
  opacity: 0.15;
  background-color: var(--color-primary);
}
.shape--4 {
  bottom: -120px; right: -120px; width: 250px; height: 250px;
  background-color: var(--color-secondary);
  opacity: 0.15;
}
.shape--5 {
  top: -150px; right: -100px; width: 300px; height: 300px;
  opacity: 0.1;
  transform: rotate(20deg);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}
.shape--6 {
  bottom: -100px; left: -80px; width: 200px; height: 200px;
  opacity: 0.15;
  background-color: var(--color-primary);
}
.dot {
  background: var(--color-primary);
  border-radius: 50%;
  animation: float 5s infinite ease-in-out alternate;
}
.dot--1 { width: 15px; height: 15px; top: 50%; left: 30%; opacity: 0.3; }
.dot--2 { width: 20px; height: 20px; top: 25%; right: 15%; opacity: 0.2; }
.dot--3 { width: 12px; height: 12px; bottom: 10%; left: 20%; opacity: 0.4; }
.dot--4 { width: 18px; height: 18px; top: 70%; right: 25%; opacity: 0.35; }
.section-divider {
  position: relative;
  height: 100px;
  background-color: var(--bg-section-gray);
  z-index: 1;
}
.wave--left::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 200px;
  background-color: var(--bg-section-white);
  border-radius: 0 0 100% 0 / 0 0 100% 0;
  transform: scaleY(0.5);
}
.wave--right::before {
  content: '';
  position: absolute;
  top: -100px;
  right: 0;
  width: 100%;
  height: 200px;
  background-color: var(--bg-section-white);
  border-radius: 0 0 0 100% / 0 0 0 100%;
  transform: scaleY(0.5);
}
@keyframes pulse {
  from { transform: scale(1) rotate(0deg); opacity: 0.1; }
  to { transform: scale(1.1) rotate(5deg); opacity: 0.2; }
}
@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* ========================================================= */
/* 4. MEDIA QUERIES (RESPONSIVIDADE)                        */
/* ========================================================= */

@media (max-width: 980px) {
  .section { padding: var(--section-padding-md); }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__content { max-width: 100%; }
  .hero__actions { justify-content: center; }
  .hero__stats-card { order: 2; margin-left: 0; }
  
  .services__grid,
  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
  }
  .services__intro,
  .about__text-content {
    text-align: center;
    padding-right: 0;
  }
  .services__intro h2,
  .about__text-content h2,
  .contact__form h2 {
    text-align: center;
  }
  .about__list {
    justify-content: center;
    max-width: 400px;
    margin: 1.5rem auto;
  }
}

@media (max-width: 768px) {
  .section { padding: var(--section-padding-sm); }
  .nav__list,
  .btn--cta {
    display: none;
  }
  .nav__toggle {
    display: block;
  }
  .nav__list.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-light);
    padding: var(--gap-sm);
    z-index: 99;
  }
  .nav__list.is-open li {
    width: 100%;
    text-align: center;
  }
  .header__inner { padding: 0 20px; }
  .brand__name { font-size: 1.1rem; }
  .brand__sub { font-size: 0.75rem; }
  .brand__logo { width: 38px; height: 38px; }

  .footer { padding: var(--gap-lg) 0; }
  .footer__inner {
    flex-direction: column;
    gap: 20px;
  }
  .brand--footer {
    justify-content: center;
    text-align: center;
  }
  .footer__links {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    gap: 10px;
  }
  .btn { width: 100%; }
  .form__grid { grid-template-columns: 1fr; }
  .testimonial {
    width: calc(100% - 40px);
    margin-right: 20px;
  }
}