/* You can add global styles to this file, and also import other style files */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
  --primary-color: #0f2f38;
  --primary-light: #1f4b59;
  --primary-dark: #0a2229;
  --secondary-color: #7a8c99;
  --text-dark: #0f1a1e;
  --text-light: #4a545b;
  --white: #ffffff;
  --gray-light: #f4f6f8;
  --gray-medium: #e5eaed;
  --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
  --border-radius: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  color: var(--text-light);
  background-color: #f7f9fa;
  overflow-x: hidden;
}

/* Accessibility improvements */
a:focus,
button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Image loading animation */
#solucoes-image {
  animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Skip to content for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Font size utilities */
.fonte-12 { font-size: 12px !important; }
.fonte-14 { font-size: 14px !important; }
.fonte-16 { font-size: 16px !important; }
.fonte-18 { font-size: 18px !important; }
.fonte-20 { font-size: 20px !important; }
.fonte-24 { font-size: 24px !important; }

.font-size-14 { font-size: 14px !important; }
.mr-4 { margin-right: 1.5rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.m-0 { margin: 0 !important; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  padding: 0.9rem 0;
  transition: var(--transition);
  background-color: var(--white) !important;
}

.navbar-brand img {
  transition: var(--transition);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  margin: 0 0.5rem;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.btn-cta {
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  background: #eef1f3;
  padding-top: 110px;
  overflow: hidden;
  z-index: 1;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-height: 420px;
}

.hero-visual__image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  background: var(--gray-medium);
}

.hero-visual__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,47,56,0.75) 0%, rgba(15,47,56,0.25) 50%, rgba(15,47,56,0.05) 100%);
}

.hero-visual__badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--gray-medium);
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
}

.hero-visual__badge i {
  font-size: 1.6rem;
  color: var(--primary-color);
}

.hero-visual__badge strong {
  display: block;
  color: var(--text-dark);
}

.hero-visual__badge span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-title .text-primary {
  color: var(--primary-color);
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  max-width: 540px;
}

.hero-buttons .btn {
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}

.hero-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn {
  border-radius: 8px;
  font-weight: 600;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-meta .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: white;
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
  font-weight: 600;
}

.hero-meta .chip i {
  color: var(--primary-color);
}

.hero-stats {
  margin-top: 2.25rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-image {
  position: relative;
  height: 500px;
  animation: fadeInRight 0.8s ease-out;
}

.floating-card {
  position: absolute;
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  text-align: center;
  transition: var(--transition);
  animation: float 3s ease-in-out infinite;
}

.floating-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.floating-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.floating-card p {
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.card-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.card-2 {
  top: 50%;
  right: 10%;
  animation-delay: 1s;
}

.card-3 {
  bottom: 10%;
  left: 20%;
  animation-delay: 2s;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.hero-wave svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 4.5rem 0;
  position: relative;
  z-index: 3;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(20, 73, 77, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.badge-light {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-light);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.bg-light {
  background-color: var(--gray-light) !important;
}

.bg-primary {
  background: var(--primary-color) !important;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(20, 73, 77, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  font-size: 2rem;
  color: var(--primary-color);
}

.feature-card h4 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  margin: 0;
}

/* ============================================
   COMPANIES SECTION
   ============================================ */
.company-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--gray-medium);
  transition: var(--transition);
}

.company-card:hover {
  box-shadow: var(--shadow-heavy);
  transform: translateY(-5px);
}

.company-card.reverse .company-content {
  order: 1;
}

.company-card.reverse .company-image-wrapper {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Company Image Wrapper for actual images */
.company-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  background: var(--gray-light);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.company-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition);
  display: block;
  opacity: 0;
  animation: imageFadeIn 0.6s ease-in forwards;
}

@keyframes imageFadeIn {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.company-main-image.loaded {
  opacity: 1;
}

.company-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(20, 73, 77, 0.1) 0%, rgba(20, 73, 77, 0.3) 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
  pointer-events: none;
}

.company-image-wrapper:hover::before {
  opacity: 1;
}

.company-image-wrapper:hover .company-main-image {
  transform: scale(1.1);
}

/* Company Image (for icon-based sections) */
.company-image {
  height: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.company-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.company-icon {
  position: relative;
  z-index: 1;
}

.company-icon i {
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.9);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.company-content {
  padding: 2.5rem;
}

.company-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.company-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.company-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(20, 73, 77, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.company-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.company-description {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.company-areas h5,
.company-services h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.area-card {
  background: var(--gray-light);
  padding: 1.25rem;
  border-radius: var(--border-radius);
  height: 100%;
  transition: var(--transition);
}

.area-card:hover {
  background: white;
  box-shadow: var(--shadow-light);
  transform: translateY(-5px);
}

.area-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.area-card h6 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.area-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  padding: 0.65rem 0;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.services-list li i {
  color: var(--primary-color);
  margin-right: 0.75rem;
  font-size: 1.125rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--gray-light);
  border-radius: var(--border-radius);
  height: 100%;
  transition: var(--transition);
}

.feature-item:hover {
  background: white;
  box-shadow: var(--shadow-light);
  transform: translateY(-5px);
}

.feature-item i {
  font-size: 2rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.feature-item h6 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* ============================================
   WHY SECTION
   ============================================ */
.why-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  transform: scaleY(0);
  transition: var(--transition);
}

.why-card:hover::before {
  transform: scaleY(1);
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.why-number {
  font-size: 4rem;
  font-weight: 700;
  color: rgba(20, 73, 77, 0.1);
  line-height: 1;
  margin-bottom: 1rem;
}

.why-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.why-card p {
  color: var(--text-light);
  margin: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.section-contact {
  position: relative;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.contact-item {
  padding: 1.25rem;
}

.contact-item i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.contact-item h5 {
  color: white;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.contact-value {
  font-weight: 700;
  color: white;
  display: block;
  margin-bottom: 0.35rem;
}

.contact-hint {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.contact-form .form-control,
.contact-form .form-select {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: white;
  border-color: white;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
  outline: none;
}

.contact-form .btn-light {
  background: white;
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem 2.5rem;
  border-radius: 8px;
  transition: var(--transition);
}

.contact-form .btn-light:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: #1a1a1a !important;
}

.footer h5 {
  color: white;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: var(--shadow-medium);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.back-to-top.show {
  display: flex;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .company-title {
    font-size: 2rem;
  }

  .company-image {
    min-height: 300px;
  }

  .company-image-wrapper {
    min-height: 300px;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
  }

  .company-card.reverse .company-image-wrapper {
    border-radius: 0 0 var(--border-radius) var(--border-radius) !important;
  }

  .company-icon i {
    font-size: 5rem;
  }

  .company-logo {
    max-width: 150px;
  }

  .floating-card {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .hero-buttons .btn:last-child {
    margin-bottom: 0;
  }

  .company-content {
    padding: 2rem;
  }

  .contact-card {
    padding: 2rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 576px) {
  section {
    padding: 3rem 0;
  }

  .hero-section {
    padding-top: 80px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}
