/* FONTS */

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* ROOT STYLES */
:root {
  --tbs-color-white: #ffffff;
  --tbs-color-dark-blue: #080f1b;
  --tbs-color-selection-blue: #182a47;
  --tbs-color-light-blue: #38b6ff;
  --tbs-color-hero-blue: #23a9ff;
  --tbs-color-about-title: #1545c4;
}

html {
  scroll-behavior: auto !important;
}

body{
  background-color: var(--tbs-color-dark-blue);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-width: 320px;
}

.mainContent {
  width: clamp(320px, 100%, 2820px);
  min-height: 100vh;
  margin: 3rem auto 0 auto;
  opacity: 0;
  animation: fadeIn 0.5s ease-in forwards;
}

.loading {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  display: block;
  color: var(--tbs-color-white);
}

.loading img {
  width: 190px;
  filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.8));
  animation: float 1.8s ease-in-out infinite;
}

.error {
  color: var(--tbs-color-white);
  position: absolute;
  top: 45%;
  left: 48%;
}

.overlay-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
  opacity: 0.8;
  animation: fadeInLocal 1.5s ease-in forwards;
}

.overlay-top img {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  transition: opacity 0.4s ease;
}

/* NAVBAR STYLES */
.fixedContainer {
  position: fixed;
  background: var(--tbs-color-dark-blue);
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 4;
}

.navbar {
  padding: 0.5rem 1rem;
}

.tbs-navbar-home-btn {
  display: none;
  width: 60px;
  height: 60px;
  margin-left: 4%;
  cursor: pointer;
}

.navbar .nav-link {
  font-family: 'Montserrat', sans-serif;
  color: var(--tbs-color-white) !important;
}

.navbar .nav-link:hover {
  font-family: 'Montserrat', sans-serif;
  color: var(--tbs-color-light-blue) !important;
  cursor: pointer;
}

.tbs-navbar-improved {
  background: transparent !important;
  min-height: clamp(60px, 12vh, 100px);
}

.tbs-navItemMenu-custom-margin {
  margin-right: clamp(1rem, 5vw, 5rem);
}

.dropdown-item {
  color: var(--tbs-color-white) !important;
  font-size: clamp(0.85rem, 2vw, 1rem);
}

.dropdown-item:hover {
  background-color: var(--tbs-color-selection-blue) !important; 
  color: var(--tbs-color-white) !important;
  cursor: pointer;
}

.tbs-dropdown-menu-no-style {
  background-color: var(--tbs-color-dark-blue) !important; 
  border: none !important;
  box-shadow: none !important;
}

.tbs-navbar-toggler-icon-white {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/></svg>");
}

/* CAROUSEL STYLES */
.tbs-carousel {
  align-items: center !important;
  justify-content: center !important;
}

.marginContainer {
  margin-top: clamp(60px, 10vh, 100px);
}

.tbs-carousel-control-white {
  width: clamp(40px, 7vw, 80px);
  height: clamp(40px, 7vw, 80px);
  border-radius: 50%;
  background-color: transparent;
  border: 3px solid var(--tbs-color-white);
  transition: all 0.3s ease;
  position: absolute;
  top: 85%;
  transform: translateY(-50%);
  z-index: 3;
}

.carousel-control-prev {
  left: 250px;
}

.carousel-control-next {
  right: 250px;
}

.tbs-carousel-control-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-50%) scale(1.05);
}

.carousel-control-prev-icon {
  background-image: url("../img/carousel/controls/tbs-carousel-prev.png") !important;
  background-size: clamp(20px, 4vw, 40px) clamp(20px, 4vw, 40px) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.carousel-control-next-icon {
  background-image: url("../img/carousel/controls/tbs-carousel-next.png") !important;
  background-size: clamp(20px, 4vw, 40px) clamp(20px, 4vw, 40px) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.carousel-inner img {
  height: clamp(300px, 90vh, 90vh);
  max-height: 1500px;
  width: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.tbs-carousel-content {
  position: absolute;
  height: auto;
  overflow: hidden;
  width: 100%;
  top: 0;
  display: flex;
  padding: 10%;
  z-index: 2;
}

.tbs-carousel-logo {
  height: 100%;
  min-width: 450px;
}

.tbs-carousel-logo-img {
  width: 160px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  margin-bottom: 4rem;
  margin-left: 15px;
}

.tbs-carousel-logo-img:hover {
  opacity: 1;
}

.tbs-carousel-subtitle {
  font-family: 'OpenSans', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: 400;
  text-align: left;
  white-space: pre-line;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
  margin-top: 1rem;
  padding: 0 1rem;
}

.tbs-carousel-div-btn {
  position: relative;
  width: 100%;
}

.tbs-card-carousel-btn {
  position: absolute;
  right: 15px !important;
  bottom: 15px !important;
}

/* ALERT STYLES */
#tbs-alert-container {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  display: flex;
  justify-content: center;
  width: 100%;
  pointer-events: none;
}

.tbs-alert-toast {
  background: #0066ff;
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  min-width: 280px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  pointer-events: all;
  opacity: 0;
  transform: translateY(20px);
  transition: all .25s ease;
}

.tbs-alert-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.tbs-alert-success {
  background: #0066ff;
}

.tbs-alert-error {
  background: #d10000;
}

.tbs-alert-gif {
  width: 40px;
  height: 40px;
  object-fit: cover;
  object-position: top;
}

.tbs-alert-text {
  flex: 1;
  text-align: center;
}

/* FOOTER STYLES */

footer {
  position: absolute;
  width: 100vw;
  margin-top: 8rem;
  background-color: transparent;
  color: #fff;
}

.tbs-footer-inner {
  padding-left: 12vw !important;
}

.tbs-footer-container {
  position: absolute;
  margin-top: auto;
}

.tbs-wave {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.tbs-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.tbs-wave .shape-fill {
  fill: #1a1a2e;
}

.tbs-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.tbs-footer-section {
  width: 100%;
}

.tbs-footer-section h3 {
  color: #667eea;
  margin-bottom: 20px;
  font-size: 1.2em;
}

.tbs-footer-logo {
  margin-top: 1.8rem;
  width: 150px;
  height: 50px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.5em;
  color: white;
}

.tbs-footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tbs-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b8b8d1;
  transition: color 0.3s;
}

.tbs-footer-contact-item:hover {
  color: #667eea;
}

.tbs-footer-contact-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.tbs-footer-links-section a {
  display: block;
  color: #b8b8d1;
  text-decoration: none;
  margin-bottom: 10px;
  transition: all 0.3s;
  padding-left: 0;
}

.tbs-footer-links-section a:hover {
  color: #667eea;
  padding-left: 5px;
}

.tbs-footer-bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #2d2d44;
  color: #b8b8d1;
  font-size: 0.9em;
}

/* MEDIA STYLES */
@media (max-width: 1280px) {
  .tbs-card {
    padding: 3rem 4rem;
  }

  .navbar .nav-link {
    font-size: 15px !important;
  }

  .navbar .nav-link:hover {
    font-size: 15px !important;
  }
}

@media (max-width: 1200px) {
  .overlay-top {
    display: none !important;
  }

  .tbs-card {
    padding: 3rem 4rem;
  }
}

@media (max-width: 991px) {
  .modal {
    margin-top: 25vh !important;
  }

  .tbs-navItemMenu-custom-margin {
    margin: 1rem 0;
  }

  .tbs-navbar-home-btn {
    display: block !important;
  }

  .tbs-card {
    flex-direction: column;
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .tbs-card-content {
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .tbs-card-img-left,
  .tbs-card-img-right {
    display: none !important;
  }

  .about-hero-content {
    flex-direction: column;
    text-align: center;
  }

  .tbs-footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .tbs-wave svg {
    height: 60px;
  }
}

@media (max-width: 768px) {
  .carousel-inner img {
    height: clamp(350px, 40vh, 400px);
  }

  .tbs-carousel-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
  }

  .section {
    min-height: auto;
    padding: 2rem 0;
  }

  .about-content {
    flex-direction: column;
  }

  .tbs-carousel-control-white {
    display: none !important;
  }

  .imagem-concerta-octa {
    bottom: 100px  !important;
    right: 310px !important;
  }
}

@media (max-width: 600px) {
  .tbs-card {
    padding: 1.5rem 1rem;
    min-height: auto;
  }

  .tbs-card-title {
    font-size: 1.5rem;
  }

  .tbs-card-subtitle {
    font-size: 1.1rem;
  }

  .tbs-card-text {
    font-size: 0.95rem;
  }

  .tbs-card-btn {
    min-width: 100%;
    max-width: 280px;
  }

  .structure-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .carousel-inner img {
    height: 500px;
  }

  .tbs-carousel-content {
    display: block;
    height: 450px;
    margin-top: 8%;
  }

  .tbs-carousel-logo {
    height: 80% !important;
  }

  .tbs-card-carousel-btn {
    top: 0% !important;
    left: 0 !important;
    max-width: 150px !important;
  }
}

/* ANIMAÇÕES */
@keyframes float {
  0% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-12px);
  }
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
}

@keyframes fadeInLocal {
  from {
    opacity: 0;
    transform: none;
  }
  to {
    opacity: 1;
    transform: none;
  }
}