/* ============================================
   HRF Engenharia - Estilos Principais
   ============================================ */

/* Variáveis de Cor */
:root {
  --hrf-gold: #D4AF37;
  --hrf-dark: #1F2933;
  --hrf-gray-light: #F5F5F5;
  --hrf-white: #FFFFFF;
}

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--hrf-dark);
  background-color: var(--hrf-white);
  line-height: 1.6;
  padding-top: 80px; /* Compensar header fixo */
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--hrf-dark);
  margin-bottom: 1rem;
}

h1 {
  font-weight: 700;
  font-size: 2.5rem;
}

h2 {
  font-weight: 600;
  font-size: 2rem;
}

h3 {
  font-weight: 600;
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Header */
.navbar {
  background-color: var(--hrf-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  z-index: 999;
}

.navbar-brand img {
  height: 50px;
  width: auto;
}

.navbar-nav .nav-link {
  color: var(--hrf-dark);
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--hrf-gold);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Botões */
.btn-primary {
  background-color: var(--hrf-gold);
  border: none;
  color: var(--hrf-white);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #B8941F;
  color: var(--hrf-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
  border: 2px solid var(--hrf-gold);
  color: var(--hrf-gold);
  background-color: transparent;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--hrf-gold);
  color: var(--hrf-white);
}

/* Hero Sections */
.hero-home,
.hero-servicos {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hrf-white);
  text-align: center;
  padding: 100px 20px;
}

.hero-home {
  background-image: url('../img/projetos/reformas-retrofit/grandes.jpg');
  min-height: 70vh;
}

.hero-servicos {
  background-image: url('../img/bg/hero-servicos.jpg');
}

.hero-home::before,
.hero-servicos::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.35)
  );
  z-index: 0;
}

.hero-home .container,
.hero-servicos .container {
  position: relative;
  z-index: 1;
}

.hero-home .hero-content {
  position: relative;
  z-index: 1;
}

.hero-home h1,
.hero-servicos h1 {
  color: var(--hrf-white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-home p,
.hero-servicos p {
  color: var(--hrf-white);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-home .hero-buttons .btn {
  text-shadow: none;
}

/* Hero Simples (Sobre, Contato) */
.hero-simple {
  background-color: var(--hrf-gray-light);
  padding: 80px 20px;
  text-align: center;
}

.hero-simple h1 {
  color: var(--hrf-dark);
  font-size: 2.5rem;
}

/* Cards de Serviços */
.service-card {
  background-color: var(--hrf-white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: var(--hrf-gold);
}

.service-card .icon {
  font-size: 3rem;
  color: var(--hrf-gold);
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--hrf-dark);
  margin-bottom: 1rem;
}

/* Seções */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--hrf-dark);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: #666;
  font-size: 1.1rem;
}

/* Projetos em Destaque */
#projetos-destaque {
  background-color: var(--hrf-gray-light);
}

/* Cards de Serviço na seção de Projetos */
.card-servico-projeto {
  transition: all 0.3s ease;
  border-radius: 0.75rem;
}

.card-servico-projeto:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.card-servico-projeto .icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(212, 175, 55, 0.12);
  transition: all 0.3s ease;
}

.card-servico-projeto:hover .icon-wrapper {
  background-color: rgba(212, 175, 55, 0.2);
  transform: scale(1.1);
}

.card-servico-projeto i {
  font-size: 1.6rem;
  color: var(--hrf-gold);
}

.card-servico-projeto .card-title {
  font-weight: 600;
  color: var(--hrf-dark);
  margin-bottom: 0.75rem;
}

.card-servico-projeto .card-text {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0;
}

/* Cards de Projetos (imagens) */
.card-projeto {
  overflow: hidden;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.card-projeto:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.card-projeto .img-projeto {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* Galeria Geral de Projetos (servicos.html) */
.projeto-destaque-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.12);
}

.projeto-destaque-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.projetos-thumbs {
  max-height: 180px;
  overflow-x: auto;
  overflow-y: hidden;
}

.thumb-item {
  border-radius: 0.75rem;
  overflow: hidden;
  flex: 0 0 auto;
  cursor: pointer;
  transition: all 0.25s ease;
}

.thumb-item:hover {
  transform: translateY(-2px);
}

.thumb-img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.thumb-item.active .thumb-img,
.thumb-item:hover .thumb-img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.thumb-item.active {
  box-shadow: 0 0 0 2px var(--hrf-gold);
}

@media (max-width: 576px) {
  .thumb-img {
    width: 90px;
    height: 60px;
  }
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Galerias de projetos */
.project-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.project-figure img {
  transition: transform 0.3s ease;
}

.project-figure:hover img {
  transform: scale(1.05);
}

/* Cards de projetos na home */
.card-img-top {
  object-fit: cover;
  width: 100%;
}

.project-card .project-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(31, 41, 51, 0.9);
  color: var(--hrf-white);
  padding: 10px;
  text-align: center;
  font-weight: 600;
}

/* Faixa "Atuamos em todo o Brasil" */
.banner-brasil {
  background-color: var(--hrf-gold);
  color: var(--hrf-white);
  padding: 40px 20px;
  text-align: center;
  margin: 60px 0;
}

.banner-brasil h3 {
  color: var(--hrf-white);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.banner-brasil p {
  color: var(--hrf-white);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Chamada Final (CTA) */
.cta-section {
  background-color: var(--hrf-dark);
  color: var(--hrf-white);
  padding: 80px 20px;
  text-align: center;
}

.cta-section h2 {
  color: var(--hrf-white);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.cta-section .btn {
  margin: 0 10px;
}

/* Formulários */
.form-section {
  background-color: var(--hrf-gray-light);
  padding: 60px 20px;
}

.form-label {
  font-weight: 600;
  color: var(--hrf-dark);
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--hrf-gold);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
  outline: none;
}

.form-control::placeholder {
  color: #999;
}

/* Footer */
footer {
  background-color: var(--hrf-dark);
  color: var(--hrf-white);
  padding: 40px 20px;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

footer p {
  margin-bottom: 0;
  color: var(--hrf-white);
}

footer .footer-contact {
  text-align: right;
}

/* Botão WhatsApp Flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: var(--hrf-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #B8941F;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: var(--hrf-white);
}

/* Seção Sobre - Nova Estrutura */
.sobre-hero h1 {
  color: var(--hrf-gold);
  font-weight: 700;
}

.sobre-hero .lead {
  font-size: 1.1rem;
  color: #4b5563;
}

.sobre-highlight-box {
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), #ffffff);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.sobre-highlight-box h2 {
  color: var(--hrf-dark);
  font-weight: 600;
}

.sobre-highlight-box ul li {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 0.5rem;
}

.sobre-pilares h2,
.sobre-valores h2 {
  font-weight: 700;
  color: var(--hrf-dark);
}

.sobre-valores p {
  color: #4b5563;
}

.sobre-card-pilar {
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.sobre-card-pilar:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.sobre-card-pilar .card-body {
  padding: 1.75rem;
}

.sobre-card-pilar h3 {
  color: var(--hrf-gold);
  font-weight: 600;
}

/* Cards de Valores */
.valor-card {
  border-radius: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.valor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.valor-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(212, 175, 55, 0.12);
  color: var(--hrf-gold);
  font-size: 1.4rem;
}

.valor-card h3 {
  color: var(--hrf-dark);
  font-weight: 600;
}

.valor-card p {
  font-size: 0.95rem;
}

/* Responsividade para página Sobre */
@media (max-width: 991px) {
  .sobre-hero .row {
    flex-direction: column;
  }
  
  .sobre-hero .col-lg-7 {
    order: 1;
  }
  
  .sobre-hero .col-lg-5 {
    order: 2;
    margin-top: 2rem;
  }
  
  .sobre-card-pilar .card-body {
    padding: 1.5rem;
  }
  
  .lista-valores {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .sobre-hero {
    padding: 3rem 0 !important;
  }
  
  .sobre-pilares,
  .sobre-valores {
    padding: 3rem 0 !important;
  }
  
  .sobre-highlight-box {
    padding: 1.5rem !important;
  }
  
  .sobre-valores .row.g-4 > div {
    text-align: left;
  }
}

/* Seção Contato */
.contact-info {
  background-color: var(--hrf-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.contact-info h3 {
  color: var(--hrf-gold);
  margin-bottom: 1.5rem;
}

.contact-info .contact-item {
  margin-bottom: 2rem;
}

.contact-info .contact-item h4 {
  color: var(--hrf-dark);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-info .contact-item p {
  margin-bottom: 0.25rem;
}

.contact-info .contact-item a {
  color: var(--hrf-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info .contact-item a:hover {
  color: var(--hrf-gold);
  text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-home h1,
  .hero-servicos h1 {
    font-size: 2rem;
  }

  .hero-home p,
  .hero-servicos p {
    font-size: 1rem;
  }

  section {
    padding: 50px 0;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }

  footer .footer-contact {
    text-align: center;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .cta-section .btn {
    display: block;
    width: 100%;
    margin: 10px 0;
  }

  /* Galerias responsivas */
  #grid-projetos-destaque .col-12,
  #galeria-infraestrutura .col-12,
  #galeria-residencial .col-12,
  #galeria-reformas .col-12,
  #galeria-coberturas .col-12 {
    margin-bottom: 1.5rem;
  }

  .project-figure img {
    height: 200px;
  }
}

@media (max-width: 360px) {
  .hero-home h1,
  .hero-servicos h1 {
    font-size: 1.75rem;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }
}

