/* ==========================================================================
   INFRACORP - Compact & Elegant Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --primary-blue: #004BB5;
  --primary-blue-dark: #003685;
  --primary-blue-light: #1A6CFF;
  --accent-blue: #0066FF;
  --text-dark: #0F172A;
  --text-muted: #475569;
  --text-light: #F8FAFC;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --card-shadow: 0 4px 20px rgba(0, 75, 181, 0.08);
  --hover-shadow: 0 10px 28px rgba(0, 75, 181, 0.18);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
}

/* Reset & Scale Down Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 14px; /* Scaled down base font size for compact layout */
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.55;
  overflow-x: hidden;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1140px; /* More compact container width */
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. TOP HEADER & BAR (COMPACT)
   ========================================================================== */
.top-header {
  background-color: var(--bg-white);
  padding: 10px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

.logo-brand {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 36px; /* Scaled down logo */
  width: auto;
}

.header-location {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid #E2E8F0;
}

.header-location .icon {
  width: 16px;
  height: 16px;
  color: var(--primary-blue);
}

.location-info {
  display: flex;
  flex-direction: column;
}

.location-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.location-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ==========================================================================
   2. MAIN NAVIGATION BAR (COMPACT)
   ========================================================================== */
.main-nav-bar {
  background-color: var(--primary-blue);
  box-shadow: 0 2px 10px rgba(0, 40, 120, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-fast);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px; /* Compact nav bar height */
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  padding: 4px 0;
  opacity: 0.9;
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--bg-white);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border: 1.5px solid #FFFFFF;
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  background: transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-contact:hover {
  background-color: #FFFFFF;
  color: var(--primary-blue);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   3. HERO SECTION (COMPACT)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 55vh; /* Reduced height */
  display: flex;
  align-items: center;
  background: linear-gradient(105deg, rgba(11, 25, 44, 0.88) 0%, rgba(0, 75, 181, 0.78) 50%, rgba(15, 23, 42, 0.55) 100%),
              url('../assets/images/hero_building.jpg') center/cover no-repeat;
  color: white;
  overflow: hidden;
}

.hero-content {
  max-width: 620px;
  padding: 40px 0;
  z-index: 2;
}

.hero-section .hero-title, .page-banner h1, .services-header-banner h1, .about-header-banner h1 {
  color: #FFFFFF !important;
  font-size: 2.3rem !important; /* Scaled down hero title */
  font-weight: 800;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-description {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 24px;
  font-weight: 300;
  max-width: 560px;
  border-left: 3px solid var(--accent-blue);
  padding-left: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px; /* Compact button padding */
  background: var(--accent-blue);
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.3);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: #0052CC;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 102, 255, 0.4);
}

/* ==========================================================================
   4. "O QUE NOS TORNA DIFERENTES" SECTION (COMPACT)
   ========================================================================== */
.diferenciais-section {
  background-color: var(--primary-blue);
  color: white;
  padding: 45px 0;
  position: relative;
  overflow: hidden;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.diferenciais-left h2 {
  color: white;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
}

.diferenciais-left p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.92;
}

.diferenciais-card {
  background: #FFFFFF;
  color: var(--text-dark);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.diferenciais-icon-box {
  width: 50px;
  height: 50px;
  background: #EFF6FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
}

.diferenciais-icon-box svg {
  width: 26px;
  height: 26px;
}

.diferenciais-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ==========================================================================
   5. SOBRE NÓS SECTION (COMPACT)
   ========================================================================== */
.about-section {
  padding: 55px 0;
  background-color: var(--bg-white);
}

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

.about-title {
  font-size: 1.9rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.about-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.valores-subtitle {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 20px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.valores-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.valores-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
}

.valores-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E0F2FE;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.about-image-card img {
  width: 100%;
  height: 330px; /* Reduced height */
  object-fit: cover;
  display: block;
}

.about-watermark {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   6. NOSSOS SERVIÇOS SECTION (COMPACT)
   ========================================================================== */
.services-section {
  padding: 55px 0;
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 45px;
  height: 3px;
  background: var(--accent-blue);
  margin: 8px auto 0;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 270px; /* Compact height for cards */
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.06);
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 25, 44, 0.15) 0%, rgba(0, 75, 181, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: white;
}

.service-card.solid-blue {
  background: var(--primary-blue);
}

.service-card.solid-blue .service-overlay {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}

.service-desc {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   7. CONTACTOS & FOOTER (COMPACT)
   ========================================================================== */
.contact-section {
  padding: 55px 0;
  background-color: var(--bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact-info h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.contact-icon {
  width: 36px;
  height: 36px;
  background: #EFF6FF;
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-details h5 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-details p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.contact-form-box {
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}

.form-group {
  margin-bottom: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  background: white;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

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

.site-footer {
  background: var(--text-dark);
  color: white;
  padding: 40px 0 20px;
  border-top: 3px solid var(--primary-blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand p {
  color: #94A3B8;
  margin-top: 12px;
  max-width: 320px;
  font-size: 0.88rem;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: white;
  padding-left: 3px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #334155;
  color: #64748B;
  font-size: 0.8rem;
}

/* ==========================================================================
   8. FLOATING ACTION BUTTON (COMPACT)
   ========================================================================== */
.floating-call-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background-color: #DC2626;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
  z-index: 999;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
  animation: pulse-red 2s infinite;
}

.floating-call-btn:hover {
  transform: scale(1.1);
  background-color: #B91C1C;
}

.floating-call-btn svg {
  width: 22px;
  height: 22px;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  .hero-section .hero-title, .page-banner h1 {
    font-size: 1.9rem !important;
  }
  
  .diferenciais-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-header-wrapper {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--primary-blue-dark);
    flex-direction: column;
    padding: 30px 20px;
    gap: 18px;
    transition: left 0.3s ease;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
