/* BuySystem / iTicket Design Overrides - Refined UX/UI */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --bs-primary: #0543be;
  --bs-primary-dark: #032d82;
  --bs-secondary: #005e9b;
  --bs-accent: #eaaa28;
  --bs-dark: #05091d;
  --bs-light: #f5f8fc;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Prevent horizontal overflow on all viewports */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

body {
  font-family: var(--font-body);
  color: var(--bs-dark);
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6, .sec-title, .title, .btn-title, .theme-btn {
  font-family: var(--font-heading);
}

/* Custom Primary Color Application */
.text-theme {
  color: var(--bs-accent) !important;
}

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

.bg-primary-custom {
  background-color: var(--bs-primary) !important;
}

.bg-theme {
  background-color: var(--bs-primary) !important;
}

/* User Request Overrides */
.tv-hero-section.style-2 .hero-area .hero-left-content {
  position: relative;
  margin: 100px 0 !important;
}

.hero-left-content h1.hero-banner-title {
  font-size: clamp(2.5rem, 4.5vw, 4.2rem) !important;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 25px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
}

.hero-badge-item i {
  color: var(--bs-accent);
  font-size: 1.5rem;
}

.hero-badge-item small {
  font-size: 0.85rem;
}

/* Contact Links Font Size */
.tv-contact-section.style-2 .tv-contact-inner .contact-us .contact-left .content a,
.tv-contact-section.style-2 .tv-contact-inner .contact-us .contact-right .content a {
  font-size: 16px !important;
  line-height: 1;
  color: var(--white-color);
  font-weight: 600;
  font-family: var(--title-font);
}

/* Hero CTA Button - Premium Style */
.hero-cta-btn {
  background: linear-gradient(135deg, #ff9800 0%, #ff6d00 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 6px 25px rgba(255, 152, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hero-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.hero-cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 35px rgba(255, 152, 0, 0.55);
  color: #ffffff;
  text-decoration: none;
}

.hero-cta-btn:hover::before {
  left: 100%;
}

.hero-cta-btn i {
  transition: transform 0.3s ease;
}

.hero-cta-btn:hover i {
  transform: translateX(5px);
}

/* Fix title line breaks & prevent mid-word splitting across all headings */
h1, h2, h3, h4, h5, h6, .sec-title, .title, .btn-title, .sub-title-2 {
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  word-wrap: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

.tv-contact-section .title-wrap .sec-title {
  font-size: clamp(1.4rem, 2.3vw, 2.0rem) !important;
  line-height: 1.25 !important;
}

/* Footer Brand Logo & Alignments */
.footer-section .brand-info .logo img {
  max-height: 65px !important;
  width: auto;
}

.footer-contact-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 25px;
}

.footer-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.footer-contact-card .icon-box {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.footer-contact-card .info-text h6 {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.footer-contact-card .info-text a,
.footer-contact-card .info-text p {
  color: #a0aec0;
  font-size: 0.95rem;
  margin: 0;
}

/* Responsive Polish */
@media (max-width: 991px) {
  .header-top {
    display: none;
  }
  
  .tv-hero-section.style-2 .hero-area .hero-left-content {
    margin: 40px 0 !important;
  }

  .portfolio-inner, .tv-contact-inner, .tv-testimonial-inner {
    margin-left: 15px !important;
    margin-right: 15px !important;
    border-radius: 20px !important;
  }

  .footer-section {
    margin-left: 15px !important;
    margin-right: 15px !important;
    margin-bottom: 15px !important;
    border-radius: 20px !important;
  }
}

/* Feature Icons - Larger size (imagem3) */
.tv-choose-section.style-2 .tv-choose-right-box .feature-grid .feature-item .icon {
  width: 90px !important;
  height: 90px !important;
  border-radius: 50% !important;
  font-size: 2rem !important;
}

.tv-choose-section.style-2 .tv-choose-right-box .feature-grid .feature-item .icon i {
  font-size: 2rem;
}

/* Sticky Header Mobile Menu Button */
.sticky-header .mobile-nav-toggler {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sticky-header .mobile-nav-toggler .icon-bar {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--bs-primary, #0543be);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Footer Instagram - No circle, just icon + text */
.footer-section .social-links .social-icon {
  background: none !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}

/* Sticky Header Mobile Polish */
.sticky-header {
  padding: 6px 0 !important;
}

.sticky-header .menu-area {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.sticky-header .logo img {
  max-height: 40px !important;
  margin-left: 5px;
}

/* Ensure hero button has no left margin offset */
.tv-hero-section.style-2 .hero-area .hero-left-content a {
  margin-left: 0 !important;
}

/* Tablet & Mobile Contact Cards Stacking (In Lines) */
@media (max-width: 1199px) {
  .tv-contact-section.style-2 .tv-contact-inner .contact-us {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
    position: relative !important;
    bottom: 0 !important;
    margin-top: 30px !important;
  }

  .tv-contact-section.style-2 .tv-contact-inner .contact-us .contact-left,
  .tv-contact-section.style-2 .tv-contact-inner .contact-us .contact-right {
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden;
  }

  /* Contact cards: word-break safety on mobile */
  .contact-us .content a {
    word-break: break-all;
  }

  /* Scroll-to-top button: larger touch target */
  .scroll-to-target {
    min-width: 48px !important;
    min-height: 48px !important;
    z-index: 9999 !important;
  }

  /* Hero CTA button: strictly left aligned */
  .hero-cta-btn {
    width: auto !important;
    align-self: flex-start !important;
    text-align: left !important;
    justify-content: flex-start !important;
    padding: 14px 30px;
    font-size: 0.85rem;
  }

  /* Section titles: smaller on mobile */
  .sec-title {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }

  /* Serviços cards: reduce padding */
  .service-grid-card {
    padding: 25px 18px;
  }

  /* Ecossistema: full-width cards with padding */
  .portfolio-inner {
    padding-left: 10px;
    padding-right: 10px;
  }

  .tv-portfolio-box .box-content {
    padding: 15px;
  }

  /* About/Quem Somos: image scales properly */
  .tv-about-section.style-2 .about-left .left-img {
    max-width: 300px;
    margin: 0 auto;
  }

  /* Versatilidade: stack image below text */
  .achivement-image-wrapper {
    text-align: center !important;
    margin-top: 30px;
  }

  /* Footer: proper spacing */
  .footer-brand {
    text-align: center;
  }

  .footer-contact-grid {
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }

  /* Contact section title: prevent word break */
  .tv-contact-section .title-wrap .sec-title {
    font-size: 1.3rem !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
  }

  /* Segment mini cards: smaller text */
  .segment-mini-card {
    padding: 12px 15px;
  }

  .segment-mini-card span {
    font-size: 0.85rem;
  }

  /* Hero badges: stack on very small screens */
  .hero-badge-item {
    font-size: 0.9rem;
  }
}

/* Header Top Bar */
.header-top {
  background-color: #05091d;
  padding: 10px 0;
  font-size: 0.85rem;
  color: #a0aec0;
}

.header-top .inner-container {
  padding-left: 15px;
  padding-right: 15px;
  max-width: 100%;
}

.header-top a {
  color: #cbd5e1;
  transition: color 0.3s ease;
}

.header-top a:hover {
  color: var(--bs-accent);
}

/* Header Fixes */
.tv-header.header-style1 {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-logo-img {
  max-height: 45px;
  width: auto;
  display: block !important;
}

/* Hero Title Responsiveness Fix */
.hero-left-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem) !important;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  word-wrap: break-word;
}

/* Service Glassmorphism Card for Grid */
.service-grid-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 35px 25px;
  transition: all 0.4s ease;
  height: 100%;
}

.service-grid-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-8px);
  border-color: rgba(234, 170, 40, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.service-grid-card .icon {
  width: 60px;
  height: 60px;
  background: rgba(234, 170, 40, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--bs-accent);
  margin-bottom: 20px;
}

.service-grid-card h4 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-grid-card p {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* Segment Mini Cards */
.segment-mini-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

.segment-mini-card:hover {
  border-color: var(--bs-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(5, 67, 190, 0.08);
}

.segment-mini-card i {
  font-size: 1.5rem;
  color: var(--bs-primary);
}

.segment-mini-card span {
  font-weight: 700;
  color: var(--bs-dark);
  font-size: 0.95rem;
}

/* Original Template Footer Styles */
.footer-section-original {
  background-color: #05091d;
  color: #ffffff;
  position: relative;
  padding-top: 80px;
}

.newsletter-box-original {
  background: linear-gradient(90deg, #0543be 0%, #0a66fb 100%);
  border-radius: 20px;
  padding: 30px 40px;
  position: relative;
  margin-bottom: -60px;
  z-index: 10;
}

.newsletter-box-original .newsletter-input {
  background: #ffffff;
  border-radius: 50px;
  padding: 6px 10px 6px 25px;
  display: flex;
  align-items: center;
  max-width: 450px;
}

.newsletter-box-original .newsletter-input input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.95rem;
}

.newsletter-box-original .newsletter-input button {
  background: var(--bs-primary);
  color: #ffffff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.footer-top-original {
  padding-top: 100px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-widget-title {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 25px;
}

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

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list li a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.footer-links-list li a:hover {
  color: #ffffff;
}

.blog-thumb-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.blog-thumb-item img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.blog-thumb-item h6 {
  font-size: 0.9rem;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 5px;
}

.blog-thumb-item span {
  font-size: 0.78rem;
  color: var(--bs-accent);
}
