/* CSS Customizado LanSec - Substitui Tailwind por questões de segurança */

/* Reset CSS Completo */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reset de elementos HTML */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: inherit;
  font-size: inherit;
}

p,
blockquote,
dl,
dd,
ol,
ul,
figure {
  margin: 0;
}

ol,
ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: inherit;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

img,
video {
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove outline padrão e adiciona focus personalizado */
*:focus {
  outline: none;
}

/* Focus apenas para elementos interativos importantes */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lansec-red);
  outline-offset: 2px;
}

/* Estilos base para inputs e buttons */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #374151;
  background-color: #f9fafb;
  transition: all 0.15s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--lansec-red);
  box-shadow: 0 0 0 3px rgba(224, 29, 29, 0.1);
  background-color: white;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

/* Estilos base para botões */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Cores principais LanSec */
:root {
  --lansec-red: #e01d1d;
  --lansec-black: #111111;
}

/* Classes utilitárias básicas */
.hidden {
  display: none !important;
}
.block {
  display: block;
}
.flex {
  display: flex;
}
.inline-block {
  display: inline-block;
}
.grid {
  display: grid;
}

/* Reset específico para elementos que podem ter estilos padrão */
.border-0 {
  border: 0 !important;
}
.outline-0 {
  outline: 0 !important;
}
.shadow-none {
  box-shadow: none !important;
}
.bg-transparent {
  background-color: transparent !important;
}

/* Classes para normalizar espaçamentos */
.m-0 {
  margin: 0 !important;
}
.p-0 {
  padding: 0 !important;
}

/* Classes para remover estilos padrão de listas */
.list-none {
  list-style: none !important;
}
.decoration-none {
  text-decoration: none !important;
}

.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.h-auto {
  height: auto;
}
.w-auto {
  width: auto;
}
.h-1 {
  height: 0.25rem;
}
.h-3 {
  height: 0.75rem;
}
.h-5 {
  height: 1.25rem;
}
.h-10 {
  height: 2.5rem;
}
.h-12 {
  height: 3rem;
}
.h-16 {
  height: 4rem;
}
.h-20 {
  height: 5rem;
}
.h-80 {
  height: 20rem;
}
.w-0\.5 {
  width: 0.125rem;
}
.w-3 {
  width: 0.75rem;
}
.w-12 {
  width: 3rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-5xl {
  max-width: 64rem;
}
.max-w-6xl {
  max-width: 72rem;
}
.max-w-7xl {
  max-width: 80rem;
}
.max-h-90vh {
  max-height: 90vh;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-white {
  color: white;
}
.text-black {
  color: black;
}
.text-gray-500 {
  color: #6b7280;
}
.text-gray-600 {
  color: #4b5563;
}
.text-gray-700 {
  color: #374151;
}
.text-gray-800 {
  color: #1f2937;
}
.text-red-500 {
  color: #ef4444;
}
.text-red-600 {
  color: #dc2626;
}
.text-red-700 {
  color: #b91c1c;
}
.text-green-700 {
  color: #15803d;
}
.bg-white {
  background-color: white;
}
.bg-black {
  background-color: black;
}
.bg-gray-50 {
  background-color: #f9fafb;
}
.bg-gray-100 {
  background-color: #f3f4f6;
}
.bg-gray-900 {
  background-color: #111827;
}
.bg-red-100 {
  background-color: #fee2e2;
}
.bg-red-600 {
  background-color: #dc2626;
}
.bg-green-100 {
  background-color: #dcfce7;
}
.border {
  border: 1px solid #d1d5db;
}
.border-t {
  border-top: 1px solid #d1d5db;
}
.border-b {
  border-bottom: 1px solid #d1d5db;
}
.border-2 {
  border: 2px solid;
}
.border-gray-100 {
  border-color: #f3f4f6;
}
.border-gray-200 {
  border-color: #e5e7eb;
}
.border-red-200 {
  border-color: #fecaca;
}
.border-red-500 {
  border-color: #ef4444;
}
.border-green-200 {
  border-color: #bbf7d0;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-3xl {
  border-radius: 1.5rem;
}
.rounded-full {
  border-radius: 9999px;
}
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Padding */
.p-2 {
  padding: 0.5rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.px-12 {
  padding-left: 3rem;
  padding-right: 3rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-4 {
  padding-top: 1rem;
}
.pt-20 {
  padding-top: 5rem;
}
.pb-4 {
  padding-bottom: 1rem;
}

/* Margins */
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-12 {
  margin-bottom: 3rem;
}
.mb-16 {
  margin-bottom: 4rem;
}
.mb-20 {
  margin-bottom: 5rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-4 {
  margin-right: 1rem;
}
.ml-1 {
  margin-left: 0.25rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mt-10 {
  margin-top: 2.5rem;
}

/* Spacing */
.space-y-4 > * + * {
  margin-top: 1rem;
}
.space-y-6 > * + * {
  margin-top: 1.5rem;
}
.space-x-3 > * + * {
  margin-left: 0.75rem;
}
.space-x-12 > * + * {
  margin-left: 3rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-16 {
  gap: 4rem;
}

/* Flexbox */
.items-center {
  align-items: center;
}
.items-stretch {
  align-items: stretch;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-start {
  justify-content: flex-start;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-col {
  flex-direction: column;
}
.flex-shrink-0 {
  flex-shrink: 0;
}

/* Grid */
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Positioning */
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.top-0 {
  top: 0;
}
.bottom-0 {
  bottom: 0;
}
.left-0 {
  left: 0;
}
.right-0 {
  right: 0;
}
.top-1\/2 {
  top: 50%;
}
.left-4 {
  left: 1rem;
}
.right-4 {
  right: 1rem;
}

/* Z-index */
.z-10 {
  z-index: 10;
}
.z-50 {
  z-index: 50;
}

/* Misc */
.cursor-pointer {
  cursor: pointer;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-y-auto {
  overflow-y: auto;
}
.resize-none {
  resize: none;
}
.object-cover {
  object-fit: cover;
}

/* Transforms */
.transform {
  transform: scale(1);
}
.-translate-y-1\/2 {
  transform: translateY(-50%);
}

/* Opacity */
.opacity-20 {
  opacity: 0.2;
}
.opacity-90 {
  opacity: 0.9;
}

/* Transitions */
.transition {
  transition: all 0.15s ease-in-out;
}
.transition-all {
  transition: all 0.15s ease-in-out;
}
.transition-opacity {
  transition: opacity 0.15s ease-in-out;
}
.transition-colors {
  transition: color 0.15s ease-in-out;
}
.transition-transform {
  transition: transform 0.15s ease-in-out;
}
.duration-300 {
  transition-duration: 300ms;
}
.duration-500 {
  transition-duration: 500ms;
}
.ease {
  transition-timing-function: ease;
}
.ease-in-out {
  transition-timing-function: ease-in-out;
}

/* Typography */
.font-sans {
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-md {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.text-5xl {
  font-size: 3rem;
  line-height: 1;
}
.leading-relaxed {
  line-height: 1.625;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.uppercase {
  text-transform: uppercase;
}
.italic {
  font-style: italic;
}
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus states */
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus\:ring-0:focus {
  box-shadow: 0 0 0 0px;
}

/* Hover states */
.hover\:opacity-70:hover {
  opacity: 0.7;
}
.hover\:opacity-90:hover {
  opacity: 0.9;
}
.hover\:opacity-95:hover {
  opacity: 0.95;
}
.hover\:scale-105:hover {
  transform: scale(1.05);
}
.hover\:bg-black:hover {
  background-color: black;
}
.hover\:text-white:hover {
  color: white;
}
.hover\:text-gray-200:hover {
  color: #e5e7eb;
}
.hover\:text-gray-300:hover {
  color: #d1d5db;
}
.hover\:text-gray-700:hover {
  color: #374151;
}
.hover\:text-red-700:hover {
  color: #b91c1c;
}
.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.hover\:transform:hover {
  transform: scale(1.05);
}
.hover\:-translate-y-0\.5:hover {
  transform: translateY(-0.125rem);
}

/* Order classes */
.order-1 {
  order: 1;
}
.order-2 {
  order: 2;
}

/* Disabled states */
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

/* Layout responsivo */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:p-8 {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .lg\:flex {
    display: flex !important;
  }
  .lg\:hidden {
    display: none !important;
  }
  .lg\:px-12 {
    padding-left: 3rem;
    padding-right: 3rem;
  }
  .lg\:px-14 {
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }
  .lg\:px-16 {
    padding-left: 4rem;
    padding-right: 4rem;
  }
  .lg\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }
  .lg\:order-1 {
    order: 1;
  }
  .lg\:order-2 {
    order: 2;
  }
}

@media (min-width: 1280px) {
  .xl\:px-16 {
    padding-left: 4rem;
    padding-right: 4rem;
  }
  .xl\:px-20 {
    padding-left: 5rem;
    padding-right: 5rem;
  }
  .xl\:px-24 {
    padding-left: 6rem;
    padding-right: 6rem;
  }
}

/* Font family já definida no reset acima */

/* Container customization */
.container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1536px) {
  .container {
    max-width: 1200px;
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* Smooth scroll já definido no reset acima */

/* Header/Navigation Styles */
.nav-link {
  position: relative;
  padding-bottom: 0.5rem;
}

.nav-link:hover {
  opacity: 0.7;
}

.nav-link-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 3px;
  background-color: var(--lansec-red);
  border-radius: 2px;
}

.nav-link:not(.nav-link-active):hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 3px;
  background-color: var(--lansec-red);
  opacity: 0.5;
  border-radius: 2px;
  transition: opacity 0.3s ease;
}

/* Mobile menu styles */
.nav-link-mobile {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  color: #111111;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-link-mobile:hover {
  opacity: 0.7;
  padding-left: 1rem;
  background-color: rgba(0, 0, 0, 0.02);
}

.nav-link-mobile:last-child {
  border-bottom: none;
}

/* Header shadow on scroll */
header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Logo typography */
.logo-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-subtext {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: -2px;
}

/* Navigation menu typography */
.nav-menu {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .nav-link {
    padding-bottom: 1rem;
  }
}

/* Mobile navigation active state */
.nav-link-mobile.nav-link-active {
  color: var(--lansec-red) !important;
  background-color: rgba(224, 29, 29, 0.05);
  border-radius: 4px;
}

/* Normalização específica para botões do menu mobile */
#mobile-menu-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  color: #111111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

#mobile-menu-btn:hover {
  opacity: 0.7;
}

/* Normalização para botões de modal */
.modal-close {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #374151;
}

/* Improved header fixed positioning */
header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

/* Logo hover effect */
.logo-container:hover {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* Navigation improvements */
.nav-link {
  transition: all 0.3s ease;
}

.nav-link-active {
  color: var(--lansec-black) !important;
}

/* Banner Section */
.banner-link {
  display: block;
  width: 100%;
  transition: all 0.3s ease;
}

.banner-link:hover {
  transform: scale(1.001);
}

.banner-link img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;
  object-fit: cover;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.banner-link:hover img {
  opacity: 0.95;
  filter: brightness(1.05);
}

/* Banner responsive adjustments */
@media (max-width: 768px) {
  .banner-link img {
    max-height: 60vh;
  }
}

@media (max-width: 480px) {
  .banner-link img {
    max-height: 50vh;
  }
}

/* About Section Styles */
.about-image-container {
  position: relative;
}

.about-image-frame {
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.about-image-frame:hover {
  transform: translate(1px, 1px);
}

/* About section responsive */
@media (max-width: 1024px) {
  .about-image-container {
    max-width: 500px;
    margin: 0 auto;
  }

  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 768px) {
  #about h2 {
    text-align: center;
    font-size: 2.5rem !important;
  }

  #about .space-y-6 p {
    text-align: center;
  }

  #about .mt-10 {
    text-align: center;
  }

  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* CTA Button styles */
.cta-button {
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(224, 29, 29, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 29, 29, 0.4);
}

/* Vertical Cards */
.vertical-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.vertical-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 72rem;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  margin: 1rem;
}

/* Service Detail Cards */
.service-detail-card {
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.service-detail-card:hover {
  border-color: #e01d1d;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(224, 29, 29, 0.1);
}

.service-detail-card h3 {
  font-size: 1.1rem;
  line-height: 1.3;
}

.service-detail-card img {
  transition: transform 0.3s ease;
}

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

/* Testimonials Styles */
.testimonials-container {
  overflow: hidden;
  position: relative;
}

.testimonial-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.testimonials-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

/* Botões de navegação do testimonial */
.testimonial-prev,
.testimonial-next {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 1rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: color 0.3s ease;
  z-index: 10;
}

.testimonial-prev {
  left: 1rem;
}

.testimonial-next {
  right: 1rem;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  color: #e5e7eb;
}

/* Services Grid Icons */
.services-grid img {
  transition: transform 0.3s ease;
}

.services-grid .bg-black:hover img {
  transform: scale(1.1);
}

/* Modal Animation */
.modal.show {
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Service Cards */
@media (max-width: 768px) {
  .service-detail-card {
    padding: 1.5rem;
  }

  .service-detail-card h3 {
    font-size: 1rem;
    line-height: 1.2;
  }

  .service-detail-card .flex {
    flex-direction: column;
    text-align: center;
  }

  .service-detail-card img {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Gradient background custom */
.gradient-bg {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%);
}

/* Custom button hover effects */
.btn-primary {
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid #2563eb;
  color: #2563eb;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #2563eb;
  color: white;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

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

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Form styles */
.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #2563eb;
  border-color: transparent;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Mobile menu transition */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

/* Success and error message styles */
.message-success {
  background-color: #dcfce7;
  border-left: 4px solid #16a34a;
  color: #15803d;
  padding: 1rem;
  border-radius: 0.25rem;
}

.message-error {
  background-color: #fee2e2;
  border-left: 4px solid #dc2626;
  color: #b91c1c;
  padding: 1rem;
  border-radius: 0.25rem;
}

.message-info {
  background-color: #dbeafe;
  border-left: 4px solid #3b82f6;
  color: #1d4ed8;
  padding: 1rem;
  border-radius: 0.25rem;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-blue-600 {
    background-color: #000;
  }

  .text-gray-600 {
    color: #000;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

/* Remove default focus outlines and replace with custom styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: none;
}

/* Custom focus styles only for form elements (accessibility) */
input:focus,
textarea:focus {
  outline: 2px solid var(--lansec-red);
  outline-offset: 2px;
}

/* Contact Section Styles */
#contact {
  background-attachment: fixed;
}

/* Estilos para as linhas do título de contato */
.contact-header-lines {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.75rem;
}

.contact-title {
  padding: 0 2rem;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}

.contact-line-left,
.contact-line-right {
  height: 0.25rem;
  background-color: white;
  flex: 1;
}

.contact-line-left {
  margin-right: 2rem;
}

.contact-line-right {
  margin-left: 2rem;
}

.contact-form-container {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Estilos específicos para o formulário de contato */
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #f3f4f6;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.3s ease;
}

#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form input[type="tel"]:focus,
#contact-form textarea:focus {
  background-color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  outline: none;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #6b7280;
}

#contact-form button[type="submit"] {
  background-color: var(--lansec-red);
  color: white;
  border: none;
  border-radius: 9999px;
  padding: 1rem 3rem;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(1);
}

#contact-form button[type="submit"]:hover {
  opacity: 0.9;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(224, 29, 29, 0.3);
}

#contact-form button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: scale(1);
}

/* Remove focus outline for navigation and clickable elements */
.nav-link:focus,
.nav-link-mobile:focus,
.banner-link:focus,
.logo-container:focus {
  outline: none;
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  left: 0;
  top: 0;
  background-color: #2563eb;
  color: white;
  padding: 0.5rem;
  transform: translateY(-100%);
  transition: transform 0.3s;
}

.skip-to-content:focus {
  transform: translateY(0);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  color: white;
  font-size: 28px;
}

/* Responsive adjustments for WhatsApp button */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-float i {
    font-size: 24px;
  }
}

/* WhatsApp button animation */
@keyframes whatsappPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.whatsapp-float {
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  animation: none;
}

/* Testimonial Cards Scrollbar Styling */
.testimonial-card-content {
  scrollbar-width: thin;
  scrollbar-color: #e01d1d #f3f4f6;
  padding-right: 16px; /* Espaçamento do texto para a scrollbar */
}

.testimonial-card-content::-webkit-scrollbar {
  width: 6px;
}

.testimonial-card-content::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}

.testimonial-card-content::-webkit-scrollbar-thumb {
  background: #e01d1d;
  border-radius: 3px;
  opacity: 0.7;
}

.testimonial-card-content::-webkit-scrollbar-thumb:hover {
  background: #c41a1a;
  opacity: 1;
}

/* Testimonials Container and Navigation */
.testimonials-container {
  position: relative;
  margin: 0 60px; /* Espaço lateral para as arrows ficarem fora */
}

.testimonials-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-prev,
.testimonial-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 10;
}

.testimonial-prev {
  left: -60px; /* Posiciona fora do container à esquerda */
}

.testimonial-next {
  right: -60px; /* Posiciona fora do container à direita */
}

.testimonial-prev:hover,
.testimonial-next:hover {
  color: #e01d1d;
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.1);
}

/* Testimonial Slide and Grid */
.testimonial-slide {
  width: 100%;
  flex-shrink: 0;
}

.testimonial-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 20rem; /* 320px */
}

.testimonial-content {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.testimonial-text {
  color: #374151;
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.75;
}

.testimonial-author {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  flex-shrink: 0;
}

.author-name {
  font-weight: bold;
  color: #1f2937;
}

.author-title {
  color: #6b7280;
}

/* Responsivo para dispositivos móveis */
@media (max-width: 768px) {
  .testimonials-container {
    margin: 0 40px; /* Menos margin em mobile */
  }

  .testimonial-prev {
    left: -40px;
  }

  .testimonial-next {
    right: -40px;
  }

  .testimonial-prev,
  .testimonial-next {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .testimonials-container {
    margin: 0 20px; /* Ainda menos margin em telas muito pequenas */
  }

  .testimonial-prev {
    left: -20px;
  }

  .testimonial-next {
    right: -20px;
  }

  .testimonial-prev,
  .testimonial-next {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

/* Partners Section */
.partners-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
  border-top: 1px solid #e5e7eb;
}

.partners-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #111111;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.partners-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 0;
}

/* Partners Grid - Layout estático */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 100%;
}

.partner-logo {
  max-height: 80px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.5s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  transform: scale(1.15);
}

/* Responsivo para partners */
@media (max-width: 1024px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .partners-title {
    font-size: 2rem;
  }

  .partners-subtitle {
    font-size: 1rem;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .partner-logo {
    max-height: 60px;
    max-width: 140px;
  }
}

@media (max-width: 600px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .partners-section {
    padding: 3rem 0;
  }

  .partners-title {
    font-size: 1.75rem;
  }

  .partners-grid {
    gap: 1.5rem;
  }

  .partner-logo {
    max-height: 50px;
    max-width: 120px;
  }
}
