/* ============================================
   RIGHT TRACK Systems Int. Brasil
   Arquivo de Estilos Principal
   ✏️ EDITAR: Cores da paleta → ajuste as variáveis CSS abaixo
============================================ */

:root {
  /* ✏️ EDITAR: Cores principais da paleta - tema claro */
  --color-primary: #ffffff;
  --color-secondary: #f5f5f5;
  --color-tertiary: #e8e8e8;
  --color-dark: #1a1a1a;
  --color-accent: #cc0000;
  --color-accent-hover: #e60000;
  --color-text: #1a1a1a;
  --color-text-light: #ffffff;
  --color-text-muted: rgba(26, 26, 26, 0.75);
  --color-text-subtle: rgba(26, 26, 26, 0.55);
  --color-overlay: rgba(0, 0, 0, 0.92);
  --color-overlay-dark: rgba(0, 0, 0, 0.90);
  
  /* ✏️ EDITAR: Fontes */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  
  /* Espaçamentos */
  --header-height: 68px;
  --section-gap: 60px;
  --element-gap: 40px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-primary);
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
}

/* ============================================
   HEADER - Layout Obrigatório
============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-dark);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.header__logo {
  height: 45px;
  flex-shrink: 0;
}

.header__logo img {
  height: 100%;
  width: auto;
}

/* Separador Vertical Decorativo - CAMADA 3 */
.header__separator {
  width: 1px;
  height: 60%;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 20px;
  flex-shrink: 0;
}

/* Área Central do Header */
.header__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
  overflow: hidden;
}

/* CAMADA 1 - Tagline Rotativa Animada - CENTRALIZADA E MAIOR */
.header__tagline {
  position: absolute;
  width: 100%;
  text-align: center;
}

.header__tagline span {
  display: none;
  font-weight: 400;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInOut 9s infinite;
  letter-spacing: 0.5px;
}

.header__tagline span:nth-child(1) {
  animation-delay: 0s;
}

.header__tagline span:nth-child(2) {
  animation-delay: 3s;
}

.header__tagline span:nth-child(3) {
  animation-delay: 6s;
}

.header__tagline span.active {
  display: block;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  10%, 90% { opacity: 1; }
}

/* CAMADA 2 - Links de Navegação Rápida - DESATIVADOS */
.header__nav {
  display: none !important;
}

/* Área Direita do Header */
.header__right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.header__contact-btn {
  display: none;
  padding: 10px 20px;
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.header__contact-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  color: #ffffff;
}

/* Menu Hamburguer */
.header__menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
}

.header__menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s ease;
}

.header__menu-toggle:hover span {
  background: var(--color-accent);
}

/* ============================================
   MENU LATERAL
============================================ */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  max-width: 100%;
  height: 100%;
  background: var(--color-dark);
  transition: right 0.3s ease;
  z-index: 1002;
  overflow-y: auto;
  padding: 20px 0;
}

.menu-panel.active {
  right: 0;
}

.menu-panel__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.menu-panel__close:hover {
  color: var(--color-accent);
}

.menu-panel__content {
  padding: 60px 30px 30px;
}

.menu-panel__item {
  display: block;
  padding: 12px 0;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.menu-panel__item:hover {
  color: var(--color-accent);
  padding-left: 10px;
}

.menu-panel__separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 15px 0;
}

.menu-panel__title {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 0 10px;
}

.menu-panel__subitem {
  display: block;
  padding: 10px 0 10px 15px;
  font-family: var(--font-secondary);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.menu-panel__subitem::before {
  content: '›';
  margin-right: 10px;
  color: var(--color-accent);
}

.menu-panel__subitem:hover {
  color: #ffffff;
  padding-left: 20px;
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ✏️ EDITAR: Imagem de fundo do hero → altere background-image abaixo */
.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/fundo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ✏️ EDITAR: Transparência do overlay → ajuste rgba() abaixo */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero__subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: 30px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero__btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.hero__btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 0, 0, 0.4);
  color: #ffffff;
}

/* ============================================
   MAIN CONTENT
============================================ */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-gap) 20px;
}

.section {
  margin-bottom: var(--section-gap);
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section__title {
  font-size: 2rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
  color: var(--color-dark);
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
}

.section__title--center {
  text-align: center;
}

.section__title--center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================
   PAGE CONTENT (Páginas de Aplicação)
============================================ */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--section-gap) 20px;
  background: var(--color-primary);
}

.page-content__title {
  font-size: 2.2rem;
  margin-bottom: var(--element-gap);
  color: var(--color-accent);
  position: relative;
  padding-bottom: 15px;
}

.page-content__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--color-accent);
}

.page-content__text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--element-gap);
  color: var(--color-text-muted);
}

.page-content__image {
  width: 100%;
  margin-bottom: var(--element-gap);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.page-content__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.page-content__image:hover img {
  transform: scale(1.02);
}

/* ============================================
   VIDEO THUMBNAIL
============================================ */
.video-thumbnail {
  position: relative;
  width: 100%;
  margin-bottom: var(--element-gap);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.video-thumbnail:hover img {
  transform: scale(1.02);
  filter: brightness(0.8);
}

.video-thumbnail__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.video-thumbnail__play::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent var(--color-primary);
  margin-left: 5px;
}

.video-thumbnail:hover .video-thumbnail__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--color-accent-hover);
}

/* ============================================
   VIDEO MODAL
============================================ */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.video-modal.active {
  display: flex;
}

.video-modal__container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16/9;
}

.video-modal__iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.video-modal__close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 45px;
  height: 45px;
  background: var(--color-accent);
  border: none;
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-modal__close:hover {
  background: var(--color-accent-hover);
  transform: scale(1.1);
}

/* ============================================
   APLICAÇÕES CARDS
============================================ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.app-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid var(--color-tertiary);
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  border-color: var(--color-accent);
}

.app-card__icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.app-card:hover .app-card__icon {
  transform: scale(1.1);
}

.app-card__title {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.app-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-subtle);
}

/* ============================================
   PRODUCT SECTION
============================================ */
.product-section {
  padding: 40px 0;
}

.product-section__content {
  display: flex;
  flex-direction: column;
  gap: var(--element-gap);
}

.product-section__text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.product-section__image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-section__image img {
  width: 100%;
  height: auto;
}

/* ============================================
   INSTITUCIONAL
============================================ */
.inst-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.inst-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s ease;
  border-left: 4px solid var(--color-accent);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.inst-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.inst-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.inst-card__title {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-accent);
}

.inst-card__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ============================================
   FORMULÁRIO DE CONTATO
============================================ */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid var(--color-tertiary);
}

.contact-form__group {
  margin-bottom: 25px;
}

.contact-form__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-dark);
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 15px;
  background: var(--color-secondary);
  border: 2px solid var(--color-tertiary);
  border-radius: 8px;
  color: var(--color-text);
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #ffffff;
}

.contact-form__textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form__submit {
  width: 100%;
  padding: 16px;
  background: var(--color-accent);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form__submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  color: #ffffff;
}

/* ============================================
   PÁGINA OBRIGADO
============================================ */
.thank-you {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: var(--color-primary);
}

.thank-you__icon {
  width: 100px;
  height: 100px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  font-size: 50px;
  color: #ffffff;
}

.thank-you__title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.thank-you__text {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 30px;
  max-width: 500px;
}

.thank-you__btn {
  display: inline-block;
  padding: 14px 35px;
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-primary);
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.thank-you__btn:hover {
  background: var(--color-accent-hover);
  color: #ffffff;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--color-dark);
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   WHATSAPP FLUTUANTE
============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

/* ============================================
   RESPONSIVIDADE
============================================ */

/* Tablet e Desktop (≥ 600px) */
@media (min-width: 600px) {
  .header__contact-btn {
    display: block;
  }
  
  .hero__title {
    font-size: 3rem;
  }
  
  .hero__subtitle {
    font-size: 1.4rem;
  }
}

/* Desktop (≥ 900px) */
@media (min-width: 900px) {
  .header__center {
    flex-direction: column;
    gap: 4px;
  }
  
  .header__tagline {
    position: relative;
  }
  
  .header__tagline span {
    font-size: 18px;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .hero__title {
    font-size: 3.5rem;
  }
  
  .page-content__title {
    font-size: 2.8rem;
  }
  
  .section__title {
    font-size: 2.5rem;
  }
}

/* Desktop Grande (≥ 1200px) */
@media (min-width: 1200px) {
  .header {
    padding: 0 40px;
  }
  
  .header__separator {
    margin: 0 30px;
  }
  
  .hero__title {
    font-size: 4rem;
  }
  
  .main {
    padding: var(--section-gap) 40px;
  }
}

/* Mobile Small (< 400px) */
@media (max-width: 400px) {
  .header {
    padding: 0 10px;
  }
  
  .header__logo {
    height: 38px;
  }
  
  .header__separator {
    display: none;
  }
  
  .hero__title {
    font-size: 1.8rem;
  }
  
  .hero__btn {
    padding: 14px 30px;
    font-size: 16px;
  }
  
  .page-content__title {
    font-size: 1.6rem;
  }
  
  .apps-grid {
    grid-template-columns: 1fr;
  }
}
