/*
 custom.css
 Aqui ficam todos os estilos customizados e específicos do projeto SteelMind.
*/

html,
body {
   overflow-x: hidden;
   overflow-y: auto;
}

body {
   font-family: system-ui, Arial, sans-serif;
   line-height: 1.6;
   color: #333;
   background: #f8f9fa;
   min-height: 100vh;
}

.contact {
   background: url('fundocontato.jpg') center center / cover no-repeat fixed;
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
#backToTop {
   position: fixed;
   right: 2.1rem;
   bottom: 2.1rem;
   z-index: 5000;
   width: 48px;
   height: 48px;
   background: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
   color: #fff;
   border: none;
   border-radius: 50%;
   box-shadow: 0 4px 24px rgba(0, 123, 255, 0.13);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 2rem;
   cursor: pointer;
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.28s, transform 0.28s;
   outline: none;
}

#backToTop.show {
   opacity: 1;
   pointer-events: all;
   transform: translateY(0);
}

#backToTop:active {
   transform: scale(0.93);
}

@media (max-width: 768px) {
   #backToTop {
      right: 1.1rem;
      bottom: 1.1rem;
      width: 40px;
      height: 40px;
      font-size: 1.5rem;
   }
}

.header-custom,
.header-custom .navbar {
   background: transparent;
   box-shadow: none;
   border: none;
}

.header-custom .navbar {
   backdrop-filter: blur(10px);
   padding: 0.4rem 0;
   min-height: 48px;
}

.logo {
   height: 40px;
   width: auto;
}

/* (todas as regras responsivas desktop foram movidas para responsive.css) */

.nav-group-left {
   gap: 1.9rem;
   margin-left: 4.5rem;
}

.nav-group-right {
   gap: 1.9rem;
   margin-right: 9.5rem;
}

.dropdown-steelmind .dropdown-item i {
   margin-right: 0.7em;
   color: #007bff;
   min-width: 1.2em;
   text-align: center;
   transition: color 0.18s;
}

.dropdown-steelmind .dropdown-item:hover i {
   color: #0056b3;
}

.btn-steelmind {
   background: linear-gradient(90deg, #007bff 0%, #00c6ff 100%);
   color: #fff;
   border: none;
   border-radius: 30px;
   padding: 0.7em 2.2em;
   font-weight: 600;
   font-family: 'Michroma', Arial, sans-serif;
   letter-spacing: 1px;
   box-shadow: 0 2px 16px rgba(0, 123, 255, 0.10);
   transition: background 0.3s, box-shadow 0.3s, transform 0.18s;
   position: relative;
   overflow: hidden;
}

.btn-steelmind:hover,
.btn-steelmind:focus {
   background: linear-gradient(90deg, #00c6ff 0%, #007bff 100%);
   color: #fff;
   box-shadow: 0 4px 24px rgba(0, 198, 255, 0.18);
   transform: translateY(-2px) scale(1.04);
   text-decoration: none;
}

.hero h3 {
   background: linear-gradient(90deg, #007bff 0%, #00c6ff 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
   text-fill-color: transparent;
   font-weight: 700;
   letter-spacing: 2px;
   margin-bottom: 1.2rem;
}

.hero h1 {
   animation: fadeDown 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeDown {
   0% {
      opacity: 0;
      transform: translateY(-32px);
   }

   100% {
      opacity: 1;
      transform: translateY(0);
   }
}

.typewriter {
   display: inline-block;
   white-space: nowrap;
   overflow: hidden;
   letter-spacing: 1px;
   animation: typing 3.2s steps(40, end), blink-caret 0.9s step-end infinite;
}

@keyframes typing {
   from {
      width: 0
   }

   to {
      width: 100%
   }
}

@keyframes blink-caret {

   from,
   to {
      border-color: transparent
   }

   50% {
      border-color: #007bff;
   }
}

.typewriter-sub {
   text-align: center;
   margin: 0 auto 1.1rem auto;
   font-size: 1.02rem;
   line-height: 1.35;
   color: #444;
}

/* ===== MENU MOBILE OFF-CANVAS ===== */
.mobile-menu {
   position: fixed;
   top: 0;
   left: 0;
   width: 82vw;
   max-width: 340px;
   height: 100vh;
   background: rgba(255, 255, 255, 0.82);
   backdrop-filter: blur(12px);
   box-shadow: 2px 0 24px rgba(0, 0, 0, 0.13);
   z-index: 2001;
   transform: translateX(-100%);
   transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
   display: flex;
   flex-direction: column;
   padding: 2.2rem 1.2rem 1.2rem 1.2rem;
   padding-bottom: 3.5rem;
}

.mobile-menu.open {
   transform: translateX(0);
}

.mobile-menu-close {
   background: none;
   border: none;
   font-size: 2.2rem;
   color: #007bff;
   position: absolute;
   top: 1.1rem;
   right: 1.1rem;
   cursor: pointer;
   z-index: 10;
   transition: color 0.2s;
}

.mobile-menu-list {
   list-style: none;
   padding: 0;
   margin: 0;
   display: flex;
   flex-direction: column;
   gap: 0.7rem;
   margin-top: 1.2rem;
   font-size: 1.05rem;
}

.mobile-menu-list li:not(:last-child) {
   border-bottom: 1px solid #e5e5e5;
}

.mobile-menu-list a {
   color: #222;
   font-size: 1.18rem;
   font-weight: 500;
   text-decoration: none;
   padding: 0.7rem 0.2rem;
   border-radius: 8px;
   transition: background 0.18s, color 0.18s;
}

.mobile-menu-list a:hover {
   background: #e6f0ff;
   color: #007bff;
   text-decoration: underline;
}

.mobile-dropdown .arrow {
   font-size: 1rem;
   margin-left: 0.4em;
   display: inline-block;
   transition: transform 0.3s;
}

.mobile-dropdown.open .arrow {
   transform: rotate(180deg);
}

.mobile-dropdown-menu {
   display: flex;
   flex-direction: column;
   gap: 0.7rem;
   margin-top: 0.5rem;
   margin-left: 1.2rem;
   max-height: 0;
   opacity: 0;
   overflow: hidden;
   transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s;
}

.mobile-dropdown.open .mobile-dropdown-menu {
   max-height: 500px;
   opacity: 1;
}

.mobile-menu-backdrop {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   background: rgba(0, 0, 0, 0.25);
   z-index: 2000;
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.32s;
}

.mobile-menu-backdrop.open {
   opacity: 1;
   pointer-events: all;
   background: rgba(0, 0, 0, 0.32);
}

.mobile-menu-footer {
   position: absolute;
   bottom: 1.2rem;
   left: 0;
   width: 100%;
   text-align: center;
   font-size: 0.95rem;
   color: #888;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 0.2rem;
   line-height: 1.3;
   margin-top: 1.5rem;
}

.mobile-menu-footer strong {
   color: #007bff;
   font-weight: 600;
   letter-spacing: 0.5px;
}

.hamburger-btn {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   width: 44px;
   height: 44px;
   background: none;
   border: none;
   cursor: pointer;
   z-index: 2100;
   position: absolute;
   top: 12px;
   right: 12px;
   padding: 0;
   gap: 5px;
}

.hamburger-btn span {
   display: block;
   width: 28px;
   height: 3px;
   background: #222;
   border-radius: 2px;
   transition: all 0.3s;
}

@media (min-width: 992px) {

   .mobile-menu,
   .mobile-menu-backdrop {
      display: none !important;
   }

   .hamburger-btn {
      display: none !important;
   }
}

/* ===== SEÇÃO SOBRE ===== */
.about {
   position: relative;
   padding: 6rem 0;
   background: #f8f9fa;
   overflow: hidden;
}

.about-parallax-bg {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 120%;
   background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 198, 255, 0.03) 100%);
   background-attachment: fixed;
   background-size: cover;
   background-position: center;
   z-index: 0;
}

.about .container {
   position: relative;
   z-index: 1;
}

.about-subtitle {
   font-size: 1.3rem;
   color: #666;
   font-weight: 400;
   margin-bottom: 3rem;
   font-family: 'Michroma', Arial, sans-serif;
   letter-spacing: 0.5px;
}

.about-content {
   padding-right: 2rem;
}

.about-text {
   font-size: 1.1rem;
   line-height: 1.8;
   color: #555;
   margin-bottom: 1.5rem;
   text-align: justify;
}

.about-text strong {
   color: #007bff;
   font-weight: 600;
}

.about-image-container {
   display: flex;
   justify-content: center;
   align-items: center;
   height: 100%;
   min-height: 300px;
}

.about-image-placeholder {
   width: 280px;
   height: 280px;
   background: transparent;
   border-radius: 50%;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   color: white;
   box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   overflow: hidden;
   position: relative;
}

.about-image-placeholder:hover {
   transform: scale(1.05);
   box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.about-image-placeholder i {
   font-size: 4rem;
   margin-bottom: 1rem;
   opacity: 0.9;
}

.about-image-placeholder p {
   font-size: 1.2rem;
   font-weight: 600;
   margin: 0;
   font-family: 'Michroma', Arial, sans-serif;
   letter-spacing: 1px;
}

.about-image {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center;
   border-radius: 50%;
   transition: transform 0.3s ease;
}

.about-image-placeholder:hover .about-image {
   transform: scale(1.05);
}

/* Cards de Diferenciais */
.about-cards {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 2rem;
   margin-top: 3rem;
}

.about-card {
   background: white;
   padding: 2rem 1.5rem;
   border-radius: 16px;
   text-align: center;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   border: 1px solid rgba(0, 123, 255, 0.1);
}

.about-card:hover {
   transform: translateY(-8px);
   box-shadow: 0 8px 30px rgba(0, 123, 255, 0.15);
}

.card-icon {
   width: 80px;
   height: 80px;
   background: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto 1.5rem;
   transition: transform 0.3s ease;
}

.about-card:hover .card-icon {
   transform: scale(1.1);
}

.card-icon i {
   font-size: 2rem;
   color: white;
}

.about-card h5 {
   font-size: 1.3rem;
   font-weight: 600;
   color: #333;
   margin-bottom: 1rem;
   font-family: 'Michroma', Arial, sans-serif;
   letter-spacing: 0.5px;
}

.about-card p {
   color: #666;
   line-height: 1.6;
   margin: 0;
   font-size: 0.95rem;
}

/* Call to Action na seção Sobre */
.about .btn-steelmind {
   font-size: 1.1rem;
   padding: 0.8em 2.5em;
   margin-top: 1rem;
}

.about .btn-steelmind i {
   margin-left: 0.5rem;
   transition: transform 0.3s ease;
}

.about .btn-steelmind:hover i {
   transform: translateX(4px);
}

/* ===== SEÇÃO SERVIÇOS ===== */
.services {
   position: relative;
   padding: 6rem 0 4rem 0;
   background: #f4f8fb;
   overflow: hidden;
   z-index: 1;
}

.services-title {
   font-family: 'Michroma', Arial, sans-serif;
   font-size: 2.2rem;
   color: #007bff;
   text-align: center;
   margin-bottom: 3rem;
   letter-spacing: 1px;
}

.services-cards {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
   gap: 2.2rem;
   justify-content: center;
}

.service-card {
   background: rgba(255, 255, 255, 0.95);
   border-radius: 18px;
   box-shadow: 0 4px 32px rgba(0, 123, 255, 0.10), 0 1.5px 8px rgba(0, 0, 0, 0.04);
   padding: 2.2rem 1.5rem 2.5rem 1.5rem;
   text-align: center;
   position: relative;
   transition: transform 0.25s, box-shadow 0.25s;
   border: 1.5px solid rgba(0, 123, 255, 0.08);
   overflow: hidden;
}

.service-card:hover {
   transform: translateY(-8px) scale(1.03);
   box-shadow: 0 8px 40px rgba(0, 198, 255, 0.18);
   border-color: #00c6ff33;
}

.service-icon {
   width: 70px;
   height: 70px;
   background: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto 1.2rem auto;
   box-shadow: 0 2px 12px rgba(0, 123, 255, 0.13);
   font-size: 2.2rem;
   color: #fff;
   transition: background 0.3s, transform 0.3s;
}

.service-card:hover .service-icon {
   background: linear-gradient(135deg, #00c6ff 0%, #007bff 100%);
   transform: scale(1.08) rotate(-6deg);
}

.service-card h5 {
   font-family: 'Michroma', Arial, sans-serif;
   font-size: 1.18rem;
   color: #222;
   margin-bottom: 0.7rem;
   letter-spacing: 0.5px;
}

.service-card p {
   color: #555;
   font-size: 1.01rem;
   margin-bottom: 1.5rem;
   min-height: 48px;
}

.service-btn {
   background: linear-gradient(90deg, #007bff 0%, #00c6ff 100%);
   color: #fff;
   border: none;
   border-radius: 30px;
   padding: 0.6em 2em;
   font-weight: 600;
   font-family: 'Michroma', Arial, sans-serif;
   letter-spacing: 1px;
   box-shadow: 0 2px 16px rgba(0, 123, 255, 0.10);
   transition: background 0.3s, box-shadow 0.3s, transform 0.18s;
   position: relative;
   overflow: hidden;
   font-size: 1.01rem;
}

.service-btn:hover,
.service-btn:focus {
   background: linear-gradient(90deg, #00c6ff 0%, #007bff 100%);
   color: #fff;
   box-shadow: 0 4px 24px rgba(0, 198, 255, 0.18);
   transform: translateY(-2px) scale(1.04);
   text-decoration: none;
}

/* ===== MODAL DE SERVIÇOS ===== */
.service-modal-backdrop {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   width: 100vw;
   height: 100vh;
   background: rgba(0, 0, 0, 0.38);
   z-index: 3000;
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.28s;
}

.service-modal-backdrop.open {
   opacity: 1;
   pointer-events: all;
}

.service-modal {
   position: fixed;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%) scale(0.98);
   min-width: 320px;
   max-width: 98vw;
   width: 420px;
   background: rgba(255, 255, 255, 0.98);
   border-radius: 18px;
   box-shadow: 0 8px 48px rgba(0, 123, 255, 0.18);
   z-index: 3100;
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.28s, transform 0.28s;
   padding: 2.5rem 2rem 2rem 2rem;
   display: flex;
   flex-direction: column;
   align-items: center;
}

.service-modal.open {
   opacity: 1;
   pointer-events: all;
   transform: translate(-50%, -50%) scale(1);
}

.service-modal-close {
   position: absolute;
   top: 1.1rem;
   right: 1.3rem;
   background: none;
   border: none;
   font-size: 2.1rem;
   color: #007bff;
   cursor: pointer;
   z-index: 10;
   transition: color 0.2s;
   line-height: 1;
}

.service-modal-close:hover {
   color: #00c6ff;
}

.service-modal-content {
   width: 100%;
   text-align: center;
   margin-top: 0.5rem;
}

.service-modal-icon {
   width: 70px;
   height: 70px;
   background: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto 1.2rem auto;
   box-shadow: 0 2px 12px rgba(0, 123, 255, 0.13);
   font-size: 2.2rem;
   color: #fff;
}

.service-modal-title {
   font-family: 'Michroma', Arial, sans-serif;
   font-size: 1.35rem;
   color: #222;
   margin-bottom: 1.1rem;
   letter-spacing: 0.5px;
}

.service-modal-text {
   color: #555;
   font-size: 1.08rem;
   line-height: 1.7;
   margin-bottom: 0.5rem;
   text-align: justify;
}

@media (max-width: 768px) {
   .services {
      padding: 3.5rem 0 2rem 0;
   }

   .services-title {
      font-size: 1.3rem;
      margin-bottom: 2rem;
   }

   .services-cards {
      gap: 1.2rem;
   }

   .service-card {
      padding: 1.3rem 0.7rem 1.7rem 0.7rem;
   }

   .service-modal {
      width: 98vw;
      min-width: unset;
      padding: 1.5rem 0.7rem 1.2rem 0.7rem;
   }

   .service-modal-title {
      font-size: 1.1rem;
   }

   .service-modal-text {
      font-size: 0.97rem;
   }
}

@media (max-width: 480px) {
   .service-modal {
      width: 99vw;
      padding: 1.1rem 0.2rem 0.7rem 0.2rem;
   }

   .service-modal-title {
      font-size: 1rem;
   }

   .service-modal-text {
      font-size: 0.92rem;
   }
}

/* ===== FAIXA PARALLAX COM VÍDEO ===== */
.parallax-band-video {
   width: 100%;
   height: 180px;
   position: relative;
   overflow: hidden;
   z-index: 2;
   display: flex;
   align-items: center;
   justify-content: center;
   background: linear-gradient(90deg, #007bff11 0%, #00c6ff11 100%);
}

.parallax-band-video-bg {
   position: absolute;
   top: 50%;
   left: 50%;
   min-width: 100%;
   min-height: 100%;
   width: auto;
   height: auto;
   transform: translate(-50%, -50%);
   object-fit: cover;
   z-index: 1;
   opacity: 0.82;
   pointer-events: none;
}

@media (max-width: 768px) {
   .parallax-band-video {
      height: 90px;
   }
}

/* ===== CONTATO MODERNO ===== */
.contact-infos {
   gap: 1.2rem;
   margin-top: 2.2rem;
}

.contact-info {
   margin-bottom: 1.1rem;
   font-size: 1.08rem;
   display: flex;
   align-items: center;
}

.contact-link {
   display: flex;
   align-items: center;
   gap: 0.7em;
   color: #007bff;
   font-weight: 500;
   font-size: 1.08rem;
   text-decoration: none;
   transition: color 0.2s;
   word-break: break-all;
}

.contact-link:hover {
   color: #00c6ff;
   text-decoration: underline;
}

.contact-info i {
   font-size: 1.5em;
   margin-right: 0.5em;
   min-width: 1.5em;
   text-align: center;
   opacity: 0.92;
}

.contact-info span {
   color: #222;
   font-weight: 400;
   margin-left: 0.2em;
}

.contact-custom-icon {
   width: 1.7em;
   height: 1.7em;
   min-width: 28px;
   min-height: 28px;
   max-width: 36px;
   max-height: 36px;
   margin-right: 0.5em;
   display: inline-block;
   vertical-align: middle;
   object-fit: contain;
   border-radius: 8px;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
   background: none;
   transition: transform 0.18s;
}

.contact-link:hover .contact-custom-icon {
   transform: scale(1.12) rotate(-6deg);
}

@media (max-width: 768px) {
   .contact-custom-icon {
      width: 1.3em;
      height: 1.3em;
      min-width: 22px;
      min-height: 22px;
      max-width: 28px;
      max-height: 28px;
      margin-right: 0.4em;
   }
}

@media (max-width: 991px) {
   .contact-infos {
      margin-top: 2.5rem;
      gap: 1.1rem;
   }
}

@media (max-width: 768px) {
   .contact-infos {
      margin-top: 2.2rem;
      gap: 0.7rem;
      align-items: center !important;
   }

   .contact-info {
      font-size: 1rem;
      justify-content: center;
      width: 100%;
   }

   .contact-link {
      font-size: 1rem;
      justify-content: center;
      width: 100%;
   }

   .contact-infos h4 {
      text-align: center;
      width: 100%;
      margin-bottom: 1.2rem;
   }
}

.contact-info .fa-whatsapp {
   color: #25d366 !important;
}

.contact-info .fa-paper-plane {
   color: #007bff !important;
}

.contact-info .fa-location-dot {
   color: #e74c3c !important;
}

/* ===== CARROSSEL DE LOGOS ===== */
.brand-carousel-section {
   width: 100%;
   background: #fff;
   padding: 0.7rem 0 0.7rem 0;
   border-bottom: 1px solid #f0f0f0;
   border-top: 1px solid #f0f0f0;
   margin-bottom: 0;
   z-index: 10;
}

.brand-carousel-wrapper {
   overflow: hidden;
   width: 100%;
   position: relative;
   height: 70px;
   display: flex;
   align-items: center;
   justify-content: center;
}

.brand-carousel-track {
   display: flex;
   align-items: center;
   gap: 4.5rem;
   animation: brand-carousel-scroll 28s linear infinite;
   will-change: transform;
}

.brand-carousel-item {
   flex: 0 0 auto;
   display: flex;
   align-items: center;
   justify-content: center;
   height: 60px;
   min-width: 120px;
   padding: 0 0.7rem;
   opacity: 0.92;
   transition: transform 0.2s, opacity 0.2s;
}

.brand-carousel-item img {
   max-height: 48px;
   max-width: 110px;
   width: auto;
   height: auto;
   filter: grayscale(0.1) brightness(0.98) contrast(1.05);
   transition: filter 0.2s, transform 0.2s;
   object-fit: contain;
}

.brand-carousel-item:hover img {
   filter: grayscale(0) brightness(1.05) contrast(1.1) drop-shadow(0 2px 8px #007bff22);
   transform: scale(1.08);
}

@keyframes brand-carousel-scroll {
   0% {
      transform: translateX(0);
   }

   100% {
      transform: translateX(-50%);
   }
}

@media (max-width: 991px) {
   .brand-carousel-wrapper {
      height: 54px;
   }

   .brand-carousel-item {
      height: 40px;
      min-width: 80px;
      padding: 0 0.4rem;
   }

   .brand-carousel-item img {
      max-height: 32px;
      max-width: 70px;
      object-fit: contain;
   }

   .brand-carousel-track {
      gap: 2.2rem;
   }
}

@media (max-width: 576px) {
   .brand-carousel-wrapper {
      height: 48px;
   }

   .brand-carousel-item {
      height: 36px;
      min-width: 68px;
      padding: 0 0.3rem;
   }

   .brand-carousel-item img {
      max-height: 24px;
      max-width: 48px;
      object-fit: contain;
   }

   .brand-carousel-track {
      gap: 1.3rem;
   }
}