:root {
  --primary: #e62e2e;
  --primary-light: #fff0f0;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #ffffff;
  --bg-gray: #faf8f8;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  --gradient: linear-gradient(45deg, #fff2f2 0%, #ffffff 40%);
  /* Red-to-white gradient */
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  margin: 0;
}

.text-primary {
  color: var(--primary) !important;
}

/* Navbar */
.navbar {
  background-color: var(--bg-light);
  padding: 10px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text-dark) !important;
}

.navbar-brand span {
  color: var(--primary);
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

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

.navbar-nav .btn {
  line-height: 1.5;
  padding: 0.375rem 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar-nav .nav-item .btn {
  margin-top: 0;
}

.navbar .nav-item.dropdown {
  position: relative;
}

.navbar .nav-item.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

.navbar .dropdown-menu {
  margin-top: 0;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 0;
}

.navbar .dropdown-item {
  padding: 8px 20px;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.navbar .dropdown-toggle::after {
  margin-left: 5px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.navbar .dropdown-toggle:focus {
  outline: none;
  box-shadow: none;
}

.navbar .dropdown-toggle.show::after {
  transform: rotate(180deg);
}

.spazio-logo {
  height: 40px;
}

.btn-danger {
  background-color: var(--primary);
  color: white !important;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.9rem;
}

.btn-danger:hover {
  background-color: #e62e2e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 77, 77, 0.2);
}

/* Hero Section */

.hero-section {
  padding: 60px 0;
  background: var(--gradient);
  position: relative;
  display: flex;
  align-items: center;
  min-height: 80vh;
}

.hero-second-section {
  padding: 40px 0;
  background: var(--gradient);
  position: relative;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  justify-content: space-between;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--secondary);
}

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

.hero-content p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 25px;
}

.hero-image-wrapper {
  width: 100%;
  padding: 0;
}

.hero-image {
  width: 100%;
  height: 90vh;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-preview {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 10px;
  width: 350px;
  height: 250px;
  background-color: white;
  border: 1px solid #eaeaea;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 10;
}

.product-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-card .btn-danger {
  padding: 10px;
}

.form-card {
  background-color: white;
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 3;
}

.form-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.form-control,
.form-select {
  border: 1px solid #eaeaea;
  padding: 12px 18px;
  background-color: #fafafa;
  margin-bottom: 15px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.1);
  background-color: white;
}

.custom-select-wrapper {
  position: relative;
}

.custom-select {
  position: relative;
  background-color: #fafafa;
  border: 1px solid #eaeaea;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 0.9rem;
}

.custom-select .selected-option {
  display: block;
  color: #333;
}

.custom-select .options-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #eaeaea;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
}

.custom-select .options-list li {
  padding: 10px 18px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}

.custom-select .options-list li:hover {
  background-color: var(--primary-light);
}

.custom-select .options-list li.disabled {
  color: #999;
  cursor: not-allowed;
}

/* View more */

.solutions-hero-section {
  position: relative;
  z-index: 1;
}

.solutions-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.solutions-hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
}

.solutions-hero-section p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.btn-outline-light {
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background-color: #dc3545;
  /* Matches red background */
  color: white;
  /* Keeps text white on hover */
  border-color: #dc3545;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-gray {
  padding: 80px 0;
  background-color: var(--bg-gray);
}

.section-process p {
  color: var(--bg-gray) !important;
}

.section-process {
  color: var(--bg-light);
  background-color: var(--text-dark)
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
  text-align: center;
}

.section-subtitle {
  color: var(--text-light);
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
  font-size: 0.7rem;
}

/* Clients Section */
.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background-color: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

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

.client-logo {
  height: 40px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.client-card:hover .client-logo {
  opacity: 1;
}

/* Portfolio Section */
.portfolio-card {
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
  position: relative;
}

.portfolio-img {
  width: 100%;
  height: 240px;
  background-color: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #999;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.portfolio-img::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.02);
}

.tall-card .portfolio-img {
  height: 540px;
}

.tall-card .portfolio-img img {
  height: 100%;
  object-fit: cover;
}

/* FAQ Section */
.faq-card {
  background-color: white;
  padding: 5px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  background-color: white;
  font-weight: 600;
  padding: 15px 20px;
  color: var(--text-dark);
}

.accordion-button:not(.collapsed) {
  color: var(--primary);
  background-color: white;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(255, 77, 77, 0.1);
}

.accordion-button::after {
  background-size: 15px;
  transition: all 0.3s ease;
}

.accordion-body {
  padding: 15px 20px;
  color: var(--text-light);
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  padding: 80px 0 40px;
  color: var(--bg-light);
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.footer-logo span {
  color: var(--text-dark);
}

.footer-text {
  color: var(--bg-light);
  font-size: 0.95rem;
  margin: 20px 0;
}

.social-icon {
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
}

.footer-links h5 {
  color: var(--bg-light);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 25px;
}

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

.footer-links li {
  margin: 0;
  padding: 0;
  margin-bottom: 12px;
  font-size: 0.95rem;
  list-style: none;
}

.footer-links a {
  color: var(--bg-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.copyright {
  color: var(--bg-light);
  font-size: 0.9rem;
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}


.position-badge {
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 20px;
}

a.btn,
a.btn-outline-dark {
  text-decoration: none;
}

/* Oportunities Page */

#opportunitiesMap {
  height: 500px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.opportunity-card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.opportunity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.position-badge {
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 20px;
}

.custom-marker-popup .btn {
  margin-top: 10px;
  width: 100%;
}

.leaflet-control-attribution {
  display: none !important;
}

/* Work with us page */
.custom-select-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.custom-select {
  position: relative;
  cursor: pointer;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.2rem 0.75rem;
  background-color: white;
  min-height: 38px;
  display: flex;
  align-items: center;
}

.selected-option {
  padding: 6px 0;
  display: block;
  width: 100%;
}

.options-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 0.25rem;
  padding-left: 0;
  list-style: none;
  display: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.options-list li {
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 1px solid #f8f9fa;
}

.options-list li:last-child {
  border-bottom: none;
}

.options-list li:hover {
  background-color: #f8f9fa;
}

.options-list li.disabled {
  color: #6c757d;
  cursor: not-allowed;
  background-color: transparent;
}

.custom-select.active .options-list {
  display: block;
}

.is-invalid {
  border-color: #dc3545 !important;
}

.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 0.875em;
}

/* Resonsive */
@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding: 40px 0;
  }

  .hero-content {
    text-align: center;
    margin-bottom: 30px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    margin: 0 auto 20px;
  }

  .hero-image-wrapper {
    width: 100%;
    padding: 0;
  }

  .hero-image {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    width: 100% !important;
    height: 50vh !important;
    max-height: 300px;
  }

  .hero-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  .solutions-hero-section {
    min-height: auto !important;
    height: auto !important;
    padding: 60px 0 !important;
    background-position: center !important;
  }

  .solutions-hero-section .row {
    flex-direction: column-reverse;
    /* Imagem acima do texto em mobile */
  }

  .solutions-hero-section h1 {
    font-size: 2rem !important;
    margin-bottom: 15px !important;
  }

  .solutions-hero-section p {
    font-size: 1rem !important;
    margin-bottom: 25px !important;
  }

  .solutions-hero-section img {
    height: auto !important;
    width: 100% !important;
    max-height: 300px !important;
    margin-bottom: 30px !important;
  }

  .solutions-hero-section .btn-outline-light {
    width: 100%;
    padding: 10px !important;
    font-size: 0.9rem !important;
  }
}

@media (max-width: 991.98px) {
  .navbar .dropdown-menu {
    position: static !important;
    transform: none !important;
    will-change: unset !important;
    margin-top: 0 !important;
    float: none !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 20px !important;
    background-color: transparent !important;
  }

  .dropdown-item {
    padding: 8px 25px !important;
    color: #333 !important;
  }

  .dropdown-toggle::after {
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
    float: none !important;
  }

  .dropdown-menu {
    transition: none !important;
    display: none !important;
    border: none !important;
    box-shadow: none !important;
  }

  .dropdown-menu.show {
    display: block !important;
  }

  .nav-item.dropdown .nav-link.dropdown-toggle {
    padding-right: 0 !important;
    display: inline-flex;
    align-items: center;
  }
}


@media (max-width: 767px) {
  .hero-section::before {
    width: 300px;
    height: 300px;
    right: -150px;
    top: -50px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .tall-card .portfolio-img {
    height: 300px;
  }

  .solutions-hero-section h1 {
    font-size: 2.2rem;
  }

  .solutions-hero-section p {
    font-size: 1rem;
  }

  .solutions-hero-section .btn {
    font-size: 0.8rem;
    padding: 6px 16;
  }

  .custom-select {
    padding: 0.4rem 0.75rem;
  }

  .options-list li {
    padding: 12px 15px;
  }

  .card-body {
    padding: 1.5rem !important;
  }
}