/* ============================================================
   INFRATECH — Main Stylesheet
   ============================================================ */

/* Reset & Variables */
:root {
  --primary: #0f172a;       /* Azul escuro corporativo */
  --primary-accent: #2563eb;/* Azul destaque */
  --secondary: #f8fafc;     /* Fundo claro / seções alt */
  --text: #1e293b;          /* Cor de texto principal */
  --text-light: #64748b;    /* Texto secundário */
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background-color: var(--white);
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* Layout Container & Sections */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--secondary);
}

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

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-accent);
  margin-bottom: 0.5rem;
}

.section-tag.light {
  color: #60a5fa;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-light);
  font-size: 1.125rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  gap: 1.75rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.25rem;
  transition: var(--transition);
}

.lang-btn.is-active {
  color: var(--primary-accent);
  font-weight: 700;
}

.lang-sep {
  color: var(--border);
}

/* Hamburger Mobile */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: var(--transition);
}

@media (max-width: 991px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 180px;
  padding-bottom: 80px;
   background: linear-gradient(135deg, #0f172a 0%, #1e293b 20%);
  background-image: url('./assets/images/hero.jpg');
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin-bottom: 4rem;
}

.eyebrow {
  display: inline-block;
  background-color: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  padding: 0.35rem 0.875rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
}

.hero-text {
  font-size: 1.125rem;
  color: #eef1f4;
  margin-bottom: 2rem;
}

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

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  font-size: 2rem;
  font-family: 'Sora', sans-serif;
  color: var(--white);
}

.stat span {
  font-size: 0.875rem;
  color: #f6f8f9;
}

/* About Section */
.lead {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
}

.mvv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.mvv-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-accent);
  margin-bottom: 0.25rem;
}

.mvv-item p {
  font-size: 0.875rem;
  color: var(--text-light);
}

.about-media {
  position: relative;
}

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

.about-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: var(--primary-accent);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.about-badge strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.about-badge span {
  font-size: 0.85rem;
}

/* Services Section */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.card-icon {
  width: 50px;
  height: 50px;
  background-color: #eff6ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary-accent);
  stroke-width: 2;
  fill: none;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.link-more {
  color: var(--primary-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Why Choose Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.why-item {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
}

.why-num {
  font-size: 0.875rem;
  font-weight: 700;
  color: #60a5fa;
  display: block;
  margin-bottom: 0.5rem;
}

.why-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.why-item p {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: var(--transition);
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.project img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-body {
  padding: 1.5rem;
}

.project-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-accent);
  display: block;
  margin-bottom: 0.25rem;
}

.project-body h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.project-body p {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Clients Marquee */
.marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.logo-slot img {
  height: 40px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.logo-slot img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Contact & Form */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ci {
  font-size: 1.25rem;
}

.contact-form {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  text-align: center;
}

.form-note.success { color: #16a34a; }
.form-note.error { color: #dc2626; }

/* Footer */
.site-footer {
  background-color: var(--primary);
  color: var(--white);
  padding-top: 4rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo {
  height: 38px;
  margin-bottom: 1rem;
}

.site-footer p, .site-footer a {
  color: #94a3b8;
  font-size: 0.875rem;
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

/* Scroll To Top */
.to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background-color: var(--primary-accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 900;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------ */

/* WhatsApp Floating Button */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20bd5a;
}

/* Animation pulse */

.whatsapp-float::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37,211,102,0.4);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}