/* Estilos Globais - Castellum Serviços de Engenharia */

/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto:wght@300;400;500&display=swap');

/* Variáveis CSS */
:root {
  --primary: #04395b;
  --secondary: #4B4E57;
  --light: #F5F7FA;
  --accent: #e8d086;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(31, 42, 68, 0.1);
  --border-radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--accent);
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

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

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--primary);
  color: var(--light);
}

.section-dark h2, 
.section-dark h3 {
  color: var(--light);
}

.section-dark h2::after {
  background-color: var(--accent);
}

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

.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Botões */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: #B58A2C;
  color: var(--light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background-color: rgba(200, 155, 60, 0.1);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  padding: 0 15px;
  flex: 1;
}

.col-6 {
  width: 50%;
  padding: 0 15px;
}

.col-4 {
  width: 33.33%;
  padding: 0 15px;
}

.col-3 {
  width: 25%;
  padding: 0 15px;
}

/* Navegação */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(31, 42, 68, 0.95);
  backdrop-filter: blur(5px);
  transition: var(--transition);
  padding: 1rem 0;
}

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

.navbar-logo {
  height: 50px;
}

.navbar-logo img {
  height: 100%;
}

.navbar-menu {
  display: flex;
  list-style: none;
}

.navbar-menu li {
  margin-left: 2rem;
}

.navbar-menu a {
  color: var(--light);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.navbar-menu a:hover {
  color: var(--accent);
}

.navbar-menu a:hover::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(120deg, rgba(31, 42, 68, 0.9), rgba(31, 42, 68, 0.7));
  z-index: 1;
}

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

.hero h1 {
  color: var(--light);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.section-bg {
  background-image: url('../images/Background-white.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
}

/* Sobre Section */
.about-content {
  background-image: url('../images/Background-white.png');
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: var(--primary);
}

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

.service-card {
  background-color: var(--light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  color: var(--secondary);
  border: none;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(31, 42, 68, 0.15);
}

.service-icon {
  background-color: var(--primary);
  color: var(--accent);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

/* Importância Section */
.importance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.importance-item {
  background-color: rgba(31, 42, 68, 0.05);
  padding: 2rem;
  border-radius: 8px;
  transition: var(--transition);
}

.importance-item:hover {
  background-color: var(--primary);
  color: var(--light);
  transform: translateY(-5px);
}

.importance-item:hover h3 {
  color: var(--light);
}

.importance-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.importance-item i {
  color: var(--accent);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

/* Certificações Section */
.certifications-content {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.certifications-text {
  flex: 1;
}

.certifications-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.certification-list {
  margin-top: 2rem;
}

.certification-item {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  position: relative;
}

.certification-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Promessa Section */
.promise {
  background-color: var(--primary);
  color: var(--light);
  text-align: center;
  padding: 5rem 0;
}

.promise h2 {
  color: var(--light);
}

.promise-content {
  max-width: 800px;
  margin: 0 auto;
}

.promise-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

/* Contato Section */
.contact {
  background: linear-gradient(135deg, var(--primary), #2a3a5c);
  color: var(--light);
  padding: 5rem 0;
}

.contact h2 {
  color: var(--light);
}

.contact h3 {
  color: var(--accent);
}

.contact-container {
  display: flex;
  gap: 3rem;
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 2;
}

.contact-info-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
}

.contact-info-item i {
  color: var(--accent);
  font-size: 1.5rem;
  margin-right: 1rem;
  min-width: 24px;
}

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

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: var(--border-radius);
  background-color: rgba(245, 247, 250, 0.1);
  color: var(--light);
  font-family: 'Roboto', sans-serif;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.form-control:focus {
  outline: none;
  background-color: rgba(245, 247, 250, 0.15);
  border-bottom: 2px solid var(--accent);
}

.form-control::placeholder {
  color: rgba(245, 247, 250, 0.6);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  background-color: #1a2338;
  color: var(--light);
  padding: 4rem 0 2rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 1.5rem;
}

.footer-links {
  flex: 1;
  min-width: 200px;
}

.footer-links h3 {
  color: var(--light);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(245, 247, 250, 0.7);
  transition: var(--transition);
}

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

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 247, 250, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(245, 247, 250, 0.5);
}

/* WhatsApp Flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Animações */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1199px) {
  html {
    font-size: 15px;
  }
  
  h1 {
    font-size: 2.75rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  .container {
    padding: 0 8%;
  }
  
  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 991px) {
  .about-content,
  .certifications-content,
  .contact-container {
    flex-direction: column;
  }
  
  .about-image,
  .certifications-image {
    margin-top: 2rem;
    order: -1;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .container {
    padding: 0 5%;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .navbar-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }
  
  .navbar-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .navbar-menu li {
    margin: 1rem 0;
  }
  
  .navbar-toggle {
    display: block;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }
  
  .col-6,
  .col-4,
  .col-3 {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 500px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}
