@import url('/static/css/global.css');

html {
  scroll-padding-top: 50px;
  scroll-behavior: smooth;
}

section {
  padding: 100px 20px;
  position: relative;
}

.gray-text {
  color: var(--secondary-gray);
  line-height: 1.7;
}

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

/* SECTION - HERO */

.hero {
  background: linear-gradient(135deg, hsla(210, 53%, 20%, 0.95), hsl(210 52% 15% / .95)), url('/static/src/images/obra.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
}

.max-w {
  max-width: 680px;
}

.btn-hero {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
  background-color: white;
  color: var(--primary-blue);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* SECTION - COMO FUNCIONA */

#como-funciona {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  padding-top: 120px;
}

.step {
  text-align: center;
  padding: 2rem 1rem;
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-8px);
}

.step-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--primary-blue), var(--darker-blue));
  color: white;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(25, 50, 80, 0.25);
  transition: all 0.3s ease;
}

.step:hover .step-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(25, 50, 80, 0.35);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-family: var(--font-title);
}

.step-text {
  color: var(--secondary-gray);
  font-size: 0.95rem;
  line-height: 1.75;
  text-align: center;
}

/* SECTION - BENEFÍCIOS */

#beneficios {
  background: white;
  position: relative;
}

#beneficios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e6e9, transparent);
}

.card {
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  border: 1px solid #e8ecef;
  border-radius: 16px;
  background: white;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--darker-blue));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(25, 50, 80, 0.15);
  border-color: var(--primary-blue);
}

.card-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 4.5rem;
  height: 4.5rem;
  font-size: 2rem;
  color: var(--primary-blue);
  background: linear-gradient(135deg, #e0ebf5, #d0e3f5);
  transition: all .3s ease;
}

.card:hover .card-circle {
  background: linear-gradient(135deg, var(--primary-blue), var(--darker-blue));
  color: #ffffff;
  transform: rotate(360deg);
}

/* SECTION - SERVIÇOS */

#servicos {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
}

#servicos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e6e9, transparent);
}

.service-icon {
  color: var(--primary-blue);
  font-size: 3rem;
  padding: 5px;
  text-align: center;
  transition: all 0.3s ease;
}

#servicos .card {
  border-radius: 12px;
  transition: all .25s ease;
  border: 1px solid #e8ecef;
}

#servicos .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(25, 50, 80, 0.12);
  border-color: var(--primary-blue);
}

#servicos .card:hover .service-icon {
  transform: scale(1.15);
  color: var(--darker-blue);
}

.service-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  gap: 20px;
  background: linear-gradient(135deg, #e0ebf5, #f0f5fa);
  border: 1px solid #d0e0f0;
  border-radius: 12px;
  transition: all 0.3s ease;
  padding: 20px;
}

.service-card:hover {
  background: linear-gradient(135deg, var(--primary-blue), var(--darker-blue));
  transform: translateX(8px);
  box-shadow: 0 8px 20px rgba(25, 50, 80, 0.2);
}

.service-card:hover .service-icon,
.service-card:hover h5 {
  color: white;
}

.service-card h5 {
  text-align: left;
  margin: 0;
  transition: color 0.3s ease;
}

/* SECTION - DEPOIMENTOS */

#depoimentos {
  background: white;
  position: relative;
}

#depoimentos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e6e9, transparent);
}

#depoimentos .card {
  border-radius: 16px;
  border: 1px solid #e8ecef;
  position: relative;
  overflow: visible;
}

#depoimentos .card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 80px;
  color: rgba(25, 50, 80, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

#depoimentos .card:hover {
  border-color: var(--primary-blue);
}

.photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 3px solid white;
  outline: 2px solid var(--primary-blue);
}

.comment {
  color: #808080e0;
  font-style: italic;
  line-height: 1.8;
  font-size: 1rem;
}

/* TÍTULOS DE SEÇÃO */

section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--darker-blue));
  border-radius: 2px;
}

/* ANIMAÇÕES */

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

.step,
.card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }

/* MEDIA QUERY */

@media (max-width: 768px) {
  html {
    scroll-padding-top: 30px;
  }

  section {
    padding: 60px 15px;
  }

  .hero {
    background-attachment: scroll;
    min-height: 100svh;
  }

  .hero h1 {
    font-size: 2.5rem !important;
  }

  .button-group {
    flex-direction: column;
  }

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

  .text-alignment {
    text-align: left;
  }

  section h2::after {
    left: 0;
    transform: none;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem !important;
  }
}