/* ============================================================
   TUDO VAREJO — Modern CSS Override
   Loaded AFTER tudovarejo.css to override Webflow defaults
   ============================================================ */

/* ----------------------------------------------------------
   1. DESIGN TOKENS (CSS Custom Properties)
   ---------------------------------------------------------- */
:root {
  /* Primary palette */
  --tv-red: #e11d48;
  --tv-red-dark: #be123c;
  --tv-red-glow: rgba(225, 29, 72, 0.45);
  --tv-green: #5ec045;
  --tv-green-dark: #4aa835;
  --tv-green-glow: rgba(94, 192, 69, 0.45);

  /* Gradients */
  --tv-gradient-red: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  --tv-gradient-hero: linear-gradient(135deg, rgba(10, 15, 30, 0.85) 0%, rgba(180, 15, 40, 0.65) 100%);
  --tv-gradient-dark: linear-gradient(180deg, #1a1d23 0%, #2a2d35 100%);
  --tv-gradient-card: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);

  /* Neutrals */
  --tv-bg-light: #f8fafc;
  --tv-bg-section: #f1f5f9;
  --tv-text-primary: #0f172a;
  --tv-text-secondary: #475569;
  --tv-border: rgba(0, 0, 0, 0.06);

  /* Glass */
  --tv-glass-bg: rgba(255, 255, 255, 0.7);
  --tv-glass-border: rgba(255, 255, 255, 0.25);
  --tv-glass-dark-bg: rgba(0, 0, 0, 0.25);

  /* Spacing */
  --tv-section-py: 100px;
  --tv-radius: 16px;
  --tv-radius-sm: 10px;
  --tv-radius-lg: 24px;

  /* Shadows */
  --tv-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --tv-shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --tv-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --tv-shadow-glow-red: 0 0 30px var(--tv-red-glow);
  --tv-shadow-glow-green: 0 0 30px var(--tv-green-glow);

  /* Transitions */
  --tv-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --tv-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --tv-duration: 0.35s;
}

/* ----------------------------------------------------------
   2. GLOBAL RESETS & BASE
   ---------------------------------------------------------- */
html {
}

body {
  font-family: 'Inter', 'Montserrat', sans-serif;
  color: var(--tv-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--tv-red);
  color: #fff;
}

/* ----------------------------------------------------------
   3. PRELOADER
   ---------------------------------------------------------- */
.modern-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  transition: opacity 0.6s var(--tv-ease), visibility 0.6s;
}

.modern-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--tv-red);
  border-radius: 50%;
  animation: preloaderSpin 0.8s linear infinite;
}

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

/* ----------------------------------------------------------
   4. NAVBAR — Glassmorphism
   ---------------------------------------------------------- */
.navbar.w-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 16px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--tv-duration) var(--tv-ease),
              padding var(--tv-duration) var(--tv-ease),
              border-color var(--tv-duration) var(--tv-ease),
              backdrop-filter var(--tv-duration) var(--tv-ease);
}

.navbar.w-nav.scrolled {
  padding: 8px 0;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar .logo {
  transition: transform var(--tv-duration) var(--tv-ease);
}

.navbar.scrolled .logo {
  transform: scale(0.9);
}

.nav-link.light.w-nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--tv-duration) var(--tv-ease);
  position: relative;
}

.nav-link.light.w-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--tv-gradient-red);
  border-radius: 2px;
  transition: width var(--tv-duration) var(--tv-ease), left var(--tv-duration) var(--tv-ease);
}

.nav-link.light.w-nav-link:hover {
  color: #fff;
}

.nav-link.light.w-nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* ----------------------------------------------------------
   5. HERO SECTION
   ---------------------------------------------------------- */
.hero-background-video {
  position: relative;
}

.hero-block-overlay.business {
  padding-top: 220px;
  padding-bottom: 180px;
  background: var(--tv-gradient-hero);
}

.large-hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: -1px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.large-hero-title-bold {
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 2.5vw, 22px);
  line-height: 1.6;
  font-weight: 300;
  opacity: 0.75;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero CTA Button with glow */
.hero-block-overlay .button.green.w-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 35px;
  padding: 16px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.2px;
  border-radius: var(--tv-radius-sm);
  background: var(--tv-green);
  color: #fff;
  border: none;
  box-shadow: var(--tv-shadow-glow-green);
  transition: transform var(--tv-duration) var(--tv-ease-bounce),
              box-shadow var(--tv-duration) var(--tv-ease),
              background-color var(--tv-duration) var(--tv-ease);
  animation: heroBtnPulse 2s infinite;
}

.hero-block-overlay .button.green.w-button:hover {
  transform: translateY(-3px) scale(1.03);
  background-color: var(--tv-green-dark);
  box-shadow: 0 0 50px var(--tv-green-glow), 0 12px 40px rgba(0,0,0,0.2);
  animation: none;
}

@keyframes heroBtnPulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 192, 69, 0.7), var(--tv-shadow-glow-green); }
  70% { box-shadow: 0 0 0 15px rgba(94, 192, 69, 0), var(--tv-shadow-glow-green); }
  100% { box-shadow: 0 0 0 0 rgba(94, 192, 69, 0), var(--tv-shadow-glow-green); }
}

/* ----------------------------------------------------------
   6. SECTIONS — General Override
   ---------------------------------------------------------- */
.section {
  padding-top: var(--tv-section-py);
  padding-bottom: var(--tv-section-py);
  background-color: #fff;
}

.section.tint {
  background-color: var(--tv-bg-section);
}

.section.top-line {
  border-top: none;
  background-color: #fff;
}

.section-title-wrapper {
  margin-bottom: 70px;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--tv-text-primary);
  line-height: 1.2;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  margin-top: 18px;
  background: var(--tv-gradient-red);
  border-radius: 4px;
}

.section-title-wrapper:not(.full):not(.small-title) .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.section-description {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--tv-text-secondary);
  margin-top: 20px;
}

.section-description.in-column {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--tv-text-secondary);
}

/* ----------------------------------------------------------
   7. BUTTONS — Modern
   ---------------------------------------------------------- */
.button {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: var(--tv-radius-sm);
  padding: 14px 30px;
  transition: all var(--tv-duration) var(--tv-ease);
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--tv-duration) var(--tv-ease);
}

.button:hover::before {
  opacity: 1;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--tv-shadow-lg);
}

.button.w-button {
  border-radius: var(--tv-radius-sm);
}

.button.green {
  background: var(--tv-green);
}

.button.green:hover {
  background: var(--tv-green-dark);
  box-shadow: var(--tv-shadow-glow-green);
}

.button.pricing-button.w-button {
  border-radius: var(--tv-radius-sm);
  font-family: 'Inter', sans-serif;
  padding: 12px 24px;
  font-size: 12px;
  transition: all var(--tv-duration) var(--tv-ease);
  margin-top: 8px;
}

.button.pricing-button.w-button:hover {
  transform: translateY(-2px);
}

/* ----------------------------------------------------------
   8. ABOUT SECTION
   ---------------------------------------------------------- */
#about .section-title {
  font-size: clamp(26px, 3.5vw, 38px);
}

#about .video-column-right {
  position: relative;
}

.overall-video-lightbox {
  border-radius: var(--tv-radius);
  overflow: hidden;
  box-shadow: var(--tv-shadow-lg);
  transition: transform var(--tv-duration) var(--tv-ease),
              box-shadow var(--tv-duration) var(--tv-ease);
}

.overall-video-lightbox:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.video-lightbox-button {
  border-radius: 50%;
  background-color: var(--tv-green);
  transition: transform var(--tv-duration) var(--tv-ease-bounce),
              box-shadow var(--tv-duration) var(--tv-ease);
  box-shadow: 0 0 30px rgba(94, 192, 69, 0.4);
  animation: heroBtnPulse 2s infinite;
}

.video-lightbox-button:hover {
  box-shadow: 0 0 50px rgba(94, 192, 69, 0.6);
}

/* ----------------------------------------------------------
   9. SEGMENTS SECTION — 3D Card Hover
   ---------------------------------------------------------- */
.features-row {
  display: flex;
  flex-wrap: wrap;
}

.feature-column {
  display: flex;
  flex-direction: column;
}

.feature-block.wide {
  width: 100%;
  height: 100%;
  padding: 40px 30px;
  border-radius: var(--tv-radius);
  background: #fff;
  border: 1px solid var(--tv-border);
  box-shadow: var(--tv-shadow-sm);
  transition: transform var(--tv-duration) var(--tv-ease),
              box-shadow var(--tv-duration) var(--tv-ease),
              border-color var(--tv-duration) var(--tv-ease);
  position: relative;
  overflow: hidden;
}

.feature-block.wide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tv-gradient-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tv-duration) var(--tv-ease);
}

.feature-block.wide:hover {
  transform: translateY(-8px);
  box-shadow: var(--tv-shadow-lg);
  border-color: transparent;
}

.feature-block.wide:hover::before {
  transform: scaleX(1);
}

.feature-icon.overall {
  width: 56px;
  height: 56px;
  padding: 10px;
  border-radius: var(--tv-radius-sm);
  background: var(--tv-bg-section);
  object-fit: contain;
  transition: transform var(--tv-duration) var(--tv-ease-bounce),
              background var(--tv-duration) var(--tv-ease);
}

.feature-block.wide:hover .feature-icon.overall {
  transform: scale(1.1) rotate(-3deg);
  background: rgba(31, 111, 255, 0.08);
}

.feature-title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--tv-text-primary);
  margin-bottom: 12px;
  text-align: center;
  white-space: nowrap;
}

.feature-block.wide p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--tv-text-secondary);
  margin-bottom: 0;
}

.feature-column.w-col.w-col-4 {
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 24px;
}

/* ----------------------------------------------------------
   10. SOLUTIONS (PRICING) SECTION — Glass Cards
   ---------------------------------------------------------- */
.pricing-block {
  border-radius: var(--tv-radius);
  padding: 50px 35px;
  overflow: hidden;
  transition: transform var(--tv-duration) var(--tv-ease),
              box-shadow var(--tv-duration) var(--tv-ease);
  position: relative;
}

.pricing-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tv-gradient-card);
  border-radius: inherit;
  pointer-events: none;
}

.pricing-block:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.pricing-block.erp,
.pricing-block.delivery,
.pricing-block.crm,
.pricing-block.contabilidade,
.pricing-block.host,
.pricing-block.sustentabilidade {
  border-radius: var(--tv-radius);
}

.pricing-block-tag {
  border-bottom-left-radius: var(--tv-radius-sm);
  border-bottom-right-radius: var(--tv-radius-sm);
  background: var(--tv-gradient-red);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 7px 14px;
  animation: tagPulse 2.5s ease-in-out infinite;
}

@keyframes tagPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.pricing-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.pricing-paragraph {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.9;
}

.pricing-column.w-col.w-col-4 {
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 24px;
}

/* ----------------------------------------------------------
   11. PARTNERS SECTION — Grayscale + Marquee
   ---------------------------------------------------------- */
#partner {
  overflow: hidden;
}

.small-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tv-text-secondary);
}

.client-logo {
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter var(--tv-duration) var(--tv-ease),
              opacity var(--tv-duration) var(--tv-ease),
              transform var(--tv-duration) var(--tv-ease);
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

/* ----------------------------------------------------------
   12. FOOTER — Modern
   ---------------------------------------------------------- */
.simple-bottom-footer {
  background: var(--tv-gradient-dark);
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-footer-paragraph {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.bottom-footer-paragraph strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.bottom-footer-link {
  color: #f3c532 !important;
  transition: color var(--tv-duration) var(--tv-ease);
}

.bottom-footer-link:hover {
  color: #ffffff !important;
}

/* ----------------------------------------------------------
   13. INDICATION MODAL — Glass
   ---------------------------------------------------------- */
#indication .map-contact-form {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: var(--tv-radius-lg);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#indication .dark-field.w-input {
  border-radius: var(--tv-radius-sm);
  border: 1px solid #e2e8f0;
  background: var(--tv-bg-light);
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: border-color var(--tv-duration) var(--tv-ease),
              box-shadow var(--tv-duration) var(--tv-ease);
}

#indication .dark-field.w-input:focus {
  border-color: var(--tv-red);
  box-shadow: 0 0 0 3px var(--tv-red-glow);
}

#indication .dark-field.area.w-input {
  border-radius: var(--tv-radius-sm);
  min-height: 100px;
}

.section-contact-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.section-contact-subtitle {
  font-family: 'Inter', sans-serif;
}

/* ----------------------------------------------------------
   14. SCROLL ANIMATIONS
   ---------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--tv-ease),
              transform 0.7s var(--tv-ease);
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-up"] {
  transform: translateY(40px);
}

[data-animate="fade-left"] {
  transform: translateX(-40px);
}

[data-animate="fade-left"].animated {
  transform: translateX(0);
}

[data-animate="fade-right"] {
  transform: translateX(40px);
}

[data-animate="fade-right"].animated {
  transform: translateX(0);
}

[data-animate="scale-in"] {
  transform: scale(0.9);
}

[data-animate="scale-in"].animated {
  transform: scale(1);
}

/* Stagger delays for cards */
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }
[data-animate-delay="6"] { transition-delay: 0.6s; }

/* ----------------------------------------------------------
   15. SCROLLBAR
   ---------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: var(--tv-red);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--tv-red-dark);
}

/* ----------------------------------------------------------
   16. ALERTS — Modern
   ---------------------------------------------------------- */
.alert.alert-success {
  border-radius: var(--tv-radius-sm);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  box-shadow: var(--tv-shadow-md);
  font-family: 'Inter', sans-serif;
}

.alert.alert-danger {
  border-radius: var(--tv-radius-sm);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  box-shadow: var(--tv-shadow-md);
  font-family: 'Inter', sans-serif;
}

/* ----------------------------------------------------------
   17. RESPONSIVE — Tablet
   ---------------------------------------------------------- */
@media screen and (max-width: 991px) {
  :root {
    --tv-section-py: 80px;
  }

  .hero-block-overlay.business {
    padding-top: 180px;
    padding-bottom: 140px;
  }

  .large-hero-title {
    font-size: 36px;
  }

  .hero-description-title {
    width: 80%;
    font-size: 18px;
  }

  .feature-column.w-col.w-col-4 {
    width: 50%;
  }

  .pricing-column.w-col.w-col-4 {
    width: 50%;
  }
}

/* ----------------------------------------------------------
   18. RESPONSIVE — Mobile
   ---------------------------------------------------------- */
@media screen and (max-width: 767px) {
  :root {
    --tv-section-py: 60px;
    --tv-radius: 12px;
  }

  .hero-block-overlay.business {
    padding-top: 160px;
    padding-bottom: 100px;
  }

  .large-hero-title {
    font-size: 28px;
    line-height: 1.2;
  }

  .hero-description-title {
    width: 90%;
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .feature-column.w-col.w-col-4 {
    width: 100%;
  }

  .pricing-column.w-col.w-col-4 {
    width: 100%;
  }

  .pricing-block:hover {
    transform: translateY(-5px);
  }

  .section-title-wrapper {
    width: 90%;
    margin-bottom: 50px;
  }

  /* Navbar mobile menu */
  .w-nav-overlay {
    background: rgba(15, 23, 42, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
}

@media screen and (max-width: 479px) {
  .hero-block-overlay.business {
    padding-top: 140px;
    padding-bottom: 80px;
  }

  .large-hero-title {
    font-size: 24px;
  }

  .hero-block-overlay .button.green.w-button {
    padding: 14px 28px;
    font-size: 12px;
  }

  .section-title-wrapper {
    width: 95%;
  }
  
  #indication .map-contact-form {
    padding: 24px;
    border-radius: var(--tv-radius);
  }
}
