/* reset and base styles */
:root {
  --primary-blue: #0B1F3A; /* Dark blue */
  --secondary-gray: #4A5568;
  --light-gray: #F7FAFC;
  --white: #FFFFFF;
  --accent-gold: #C5A059; /* Copper/Gold for premium feel */
  --accent-orange: #E65100; /* Matching the contact button from screenshot */
  --text-dark: #2D3748;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
}

body {
  background-color: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-blue);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-orange);
  margin: 15px auto 0;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  background-color: var(--primary-blue);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  padding: 10px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--primary-blue);
}

header.scrolled .logo {
  color: var(--primary-blue);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: var(--white);
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--accent-gold);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

/* Hero Section (Início) */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(11, 31, 58, 0.8), rgba(11, 31, 58, 0.8)), url('../LOGOS/baixo-angulo-de-scafolding-na-construcao_1252-1176.avif') center/cover;
  color: var(--white);
  text-align: center;
  padding-top: 80px; /* offset for header */
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInDown 1s ease;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 40px;
  color: rgba(255,255,255,0.9);
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeInUp 1s ease 0.6s both;
}

.btn {
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--white);
}

.btn-primary:hover {
  background-color: transparent;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

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

/* Quem Somos */
.quem-somos {
  background-color: var(--light-gray);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  color: var(--secondary-gray);
}

.about-text ul {
  margin-top: 20px;
}

.about-text ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-blue);
  font-weight: 500;
}

.about-text ul li i {
  color: var(--accent-gold);
}

.about-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-img img {
  width: 100%;
  display: block;
  transform: scale(1.15) translateX(5%);
}

/* Serviços */
.servicos {
  background-color: var(--primary-blue);
  color: var(--white);
}

.servicos .section-title {
  color: var(--white);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.servico-card {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(197, 160, 89, 0.3); /* discrete gold/copper border */
  border-radius: 8px;
  padding: 30px 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.servico-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  border-color: var(--accent-gold);
  background-color: rgba(255,255,255,0.1);
}

.servico-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.servico-card h4 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 15px;
}

.servico-card p {
  color: #CBD5E0;
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-link {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  margin-top: auto;
}

.btn-link:hover {
  gap: 10px;
  color: #fff;
}

/* Carrossel dentro do card */
.carousel-container {
  position: relative;
  width: 100%;
  height: 150px;
  margin-bottom: 15px;
  border-radius: 4px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  object-fit: cover;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 5px;
  z-index: 10;
}

.carousel-controls button {
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-controls button:hover {
  background: var(--accent-gold);
}

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

.projetos-carousel {
  height: auto;
  min-height: 900px;
}

@media (max-width: 1024px) {
  .projetos-carousel {
    min-height: 750px;
  }
}

@media (max-width: 768px) {
  .projetos-carousel {
    min-height: 650px;
  }
}

@media (max-width: 480px) {
  .projetos-carousel {
    min-height: 550px;
  }
}

.projeto-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.projeto-card img {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  object-fit: cover;
}

.projeto-info {
  padding: 30px;
}

.projeto-info h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.projeto-cidade {
  color: var(--secondary-gray);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.projeto-cidade i {
  color: var(--accent-orange);
}

.projeto-servico {
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 15px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Contato */
.contato {
  background-color: var(--white);
}

.contato-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contato-info, .contato-form-area {
  display: flex;
  flex-direction: column;
}

.contato-block {
  margin-bottom: 30px;
}

.contato-block h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-align: center;
  color: var(--primary-blue);
}

.contato-details p {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--secondary-gray);
}

.contato-details p i {
  color: var(--primary-blue);
  margin-top: 5px;
}

.contato-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.contato-social a {
  width: 40px;
  height: 40px;
  background-color: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.contato-social a:hover {
  background-color: var(--accent-orange);
}

.mapa iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
}

.contato-form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.contato-form input,
.contato-form textarea {
  padding: 12px 15px;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.contato-form input:focus,
.contato-form textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.contato-form textarea {
  height: 120px;
  resize: vertical;
}

.btn-submit {
  grid-column: 1 / -1;
  background-color: var(--accent-orange);
  color: var(--white);
  border: none;
  padding: 15px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background-color: #d84c00;
}

.contato-subtitle {
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-gray);
  font-size: 0.9rem;
}

/* Footer */
footer {
  background-color: var(--primary-blue);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: -150px;
  left: 0;
  width: 100%;
  background-color: #1a1a1a;
  color: var(--white);
  padding: 15px 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 20px;
}

.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #ddd;
}

.cookie-banner .btn {
  padding: 8px 20px;
  white-space: nowrap;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Responsive */
@media (max-width: 1024px) {
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-blue);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 10px rgba(0,0,0,0.5);
  }

  .nav-links.active {
    display: flex;
  }

  header {
    background-color: var(--primary-blue);
    padding: 15px 0;
  }

  .nav-links a {
    color: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .mobile-menu-btn {
    display: block;
  }

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

  .about-content, .contato-wrapper {
    grid-template-columns: 1fr;
  }

  .contato-form form {
    grid-template-columns: 1fr;
  }
  
  .form-group {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .servicos-grid {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
  }
}
