/* ==========================================================================
   AMAZON GLASS — ESTILOS DA PÁGINA HOME
   ========================================================================== */

/* 1. HERO HOME */
.home-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 60px;
  background: var(--color-navy-dark);
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.65;
}

.hero-bg-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 19, 42, 0.95) 0%,
    rgba(3, 28, 61, 0.88) 45%,
    rgba(3, 28, 61, 0.45) 80%,
    rgba(2, 19, 42, 0.65) 100%
  );
}

.home-hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 760px;
}

.hero-content .section-tag {
  color: var(--color-blue-light);
}

.hero-content .section-tag::after {
  background-color: var(--color-blue-light);
}

.hero-title {
  color: var(--color-white);
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-title span {
  display: block;
}

.hero-desc {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* 2. SERVIÇOS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 118, 197, 0.4);
  box-shadow: var(--shadow-card-hover);
}

.service-card-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--color-blue-subtle);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon-box {
  background: var(--color-blue);
  color: var(--color-white);
  transform: scale(1.05);
}

.service-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.25;
}

.service-card-desc {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}

.service-card-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

/* 3. PROJETOS EM DESTAQUE */
.projects-home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  background-color: var(--color-navy);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.project-card-media {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card-media img {
  transform: scale(1.06);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 28, 61, 0.05) 0%,
    rgba(3, 28, 61, 0.4) 50%,
    rgba(2, 19, 42, 0.92) 100%
  );
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background var(--transition-fast);
}

.project-card:hover .project-card-overlay {
  background: linear-gradient(
    180deg,
    rgba(3, 28, 61, 0.1) 0%,
    rgba(3, 28, 61, 0.5) 45%,
    rgba(2, 19, 42, 0.96) 100%
  );
}

.project-card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  margin-bottom: 6px;
}

.project-card-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.25;
}

.project-card-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.project-card:hover .project-card-btn {
  background: var(--color-red);
  transform: translateX(2px);
}

/* 4. SEÇÃO SOBRE NA HOME */
.about-home-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.about-home-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-home-media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(3, 28, 61, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(2, 19, 42, 0.4);
}

.badge-number {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-white);
  letter-spacing: -0.04em;
}

.badge-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-blue-light);
  margin-top: 4px;
}

.about-home-info .section-title {
  margin-bottom: 20px;
}

.about-home-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.about-home-text p {
  color: var(--color-text-body);
  font-size: 1.025rem;
}

.about-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--color-blue-subtle);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.2;
}

.about-feature-sub {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

/* 5. DEPOIMENTOS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(22, 118, 197, 0.3);
}

.testimonial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stars-row {
  display: flex;
  gap: 3px;
  color: #f59e0b;
}

.google-icon-badge {
  width: 24px;
  height: 24px;
}

.testimonial-quote {
  font-size: var(--text-body-sm);
  color: var(--color-text-body);
  line-height: 1.6;
  font-style: normal;
}

.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--color-border-light);
  padding-top: 16px;
}

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

.author-info-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.2;
}

.author-info-city {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-btn:hover {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

/* 6. BLOG */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(22, 118, 197, 0.35);
}

.blog-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-date {
  font-size: var(--text-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-blue);
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.35;
  margin-bottom: 16px;
  flex: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-body-sm);
  font-weight: 700;
  color: var(--color-blue);
  transition: gap var(--transition-fast);
}

.blog-card:hover .blog-card-link {
  color: var(--color-red);
  gap: 10px;
}

/* 7. RESPONSIVIDADE HOME */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-home-grid {
    grid-template-columns: 1fr;
  }
  .about-home-media img {
    height: 380px;
  }
}

@media (max-width: 768px) {
  .home-hero {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 50px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .projects-home-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .about-features-list {
    grid-template-columns: 1fr;
  }
}
