/*
 * Estilos principais para o site da SL Construções LTDA.
 * Utiliza uma paleta de cores inspirada no logotipo e fontes modernas.
 * Contém ajustes responsivos e animações suaves para uma navegação agradável.
 */

/* Variáveis de cores */
:root {
  --primary: #e25a00;       /* laranja do logotipo */
  --secondary: #0a3d62;     /* azul escuro para contraste */
  --light: #f7f7f7;         /* fundo claro */
  --dark: #333333;          /* texto principal */
  --accent: #ffc107;        /* destaque amarelo */
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header e navegação */
header {
  width: 100%;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.logo {
  height: 60px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  text-decoration: none;
  font-weight: 500;
  color: var(--dark);
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--primary);
}

/* Menu hamburguer */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--dark);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 70%;
    height: calc(100vh - 70px);
    background: #fff;
    transition: right 0.3s ease;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  }
  nav.active {
    right: 0;
  }
  nav ul {
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
  padding: 0 2rem;
  background-image: url('images/pedreiros.jpeg');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn-cta {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-cta:hover {
  /* escurece ligeiramente o botão ao passar o mouse */
  filter: brightness(0.9);
}

/* Sections genéricos */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--secondary);
}

/* Sobre */
.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-text {
  flex: 1 1 50%;
}

.about-text h2 {
  margin-bottom: 1rem;
  color: var(--secondary);
}

.about-image {
  flex: 1 1 50%;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .about-grid {
    flex-direction: column;
  }
}

/* Serviços */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #fff;
  font-size: 1.5rem;
}

/* Aumenta os emojis dentro do círculo para ficarem visíveis */
.icon-circle .emoji {
  font-size: 2rem;
  color: #fff;
}

/* Ajusta emojis usados para ícones e textos */
.emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Galeria */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Contato */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.contact-details {
  flex: 1 1 40%;
  font-size: 1rem;
}

.contact-info {
  list-style: none;
  margin-top: 1rem;
  line-height: 2;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  flex: 1 1 55%;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

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

.btn-submit {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: #c14600;
}

@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
  }
  .contact-details,
  .contact-form {
    flex: 1 1 100%;
  }
}

/* Footer */
.footer {
  background: var(--secondary);
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

/* Floating Contact Button */
.floating-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--primary);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.floating-button:hover {
  transform: scale(1.05);
}

.floating-button .floating-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.floating-button.open .floating-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-button .floating-menu li a {
  background: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.floating-button .floating-menu li a:hover {
  transform: translateY(-4px);
}

/* Responsive adjustments for small screens */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .btn-cta {
    padding: 0.6rem 1.2rem;
  }
}