:root {
  --bg: #ffffff;
  --text: #162240;
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --accent: #7b96d3;
  --muted: #6c7c98;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

.nav {
  background: transparent;
  padding: 1rem 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10;
}

.nav .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-link {
  display: inline-block;
  color: #9ca3af;
  padding: 0.25rem 0.5rem;
  border-radius: 0;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 1);
}

.container {
  width: min(1120px, 95vw);
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-image {
  flex: 1;
  min-height: 56vh;
  background: url('imagens/logoibcfundo.png') center/cover no-repeat;
}

.hero-text {
  background: #ffffff;
  padding: 4rem 0;
  text-align: center;
}

.hero-text:empty {
  display: none;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
}

.hero p {
  margin: 0.8rem 0 1.6rem;
  font-size: 1.2rem;
}

.btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.75);
  color: #6b7280;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(209, 213, 219, 0.8);
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.btn:hover,
.btn:focus {
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.9);
}

.send-btn {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #f3f4f6;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  font-weight: 700;
  cursor: pointer;
}

.send-btn:hover,
.send-btn:focus {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  transform: translateY(-1px);
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.section {
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

h1, h2, h3 {
  color: #1e3a8a;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
}

.card h3 {
  margin-top: 0;
}

.projects-list {
  list-style: disc;
  padding-left: 1.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.social-link img {
  width: 30px;
  height: 30px;
}

.social-link:hover,
.social-link:focus {
  color: var(--primary-light);
}

.contact-form {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
}

.contact-form label {
  display: block;
  margin-top: 0.9rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.3rem;
  border: 1px solid #c6d1db;
  border-radius: 8px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.footer {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #ffffff;
  text-align: center;
  padding: 1rem 0;
}

@media (max-width: 800px) {
  .nav {
    padding: 0.8rem 0;
  }

  .nav .container {
    gap: 0.55rem 0.9rem;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 0.25rem 0.35rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    min-height: 42vh;
    background-position: center;
  }

  .hero-text {
    padding: 2.4rem 1rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .hero p {
    font-size: 1rem;
    margin: 0.6rem 0 1.2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .container {
    width: min(1120px, 94vw);
    padding: 1.5rem 0.9rem;
  }

  .section {
    margin-top: 1.25rem;
    padding: 1.15rem 0;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .card {
    padding: 0.9rem;
  }

  .contact-form {
    padding: 0.9rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-float img {
    width: 27px;
    height: 27px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 94vw;
    padding: 1.1rem 0.75rem;
  }

  .hero-image {
    min-height: 35vh;
  }

  .hero-text {
    padding: 2rem 0.75rem;
  }

  .nav .container {
    justify-content: center;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .send-btn {
    width: 100%;
    text-align: center;
  }
}

