@font-face {
  font-family: 'Erstoria';
  src: url('./fonts/Erstoria.woff2') format('woff2'),
       url('./fonts/Erstoria.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neuething Sans';
  src: url('./fonts/Neuething Sans/Web/WOFF2/NeuethingSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neuething Sans';
  src: url('./fonts/Neuething Sans/Web/WOFF2/NeuethingSans-Meduim.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neuething Sans';
  src: url('./fonts/Neuething Sans/Web/WOFF2/NeuethingSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   CONFIGURAÇÕES GLOBAIS (VARIAVEIS)
   ========================================================================== */
:root {
  --color-primary: #1D3258;
  --color-secondary: #86A6D7;
  --color-accent: #DE6D54;
  --color-natural: #4C5528;
  --color-beige: #EDE2D9;
  --color-white: #FFFFFF;
  --color-bg: #FFFFFF;
  
  --font-heading: 'Erstoria', serif;
  --font-body: 'Neuething Sans', sans-serif;
  
  --container-width: 1200px;
  --header-height: 90px;
  
  /* Espaçamentos Responsivos */
  --section-padding: clamp(4rem, 10vw, 10rem);
  --container-gutter: clamp(1.5rem, 5vw, 2.5rem);
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 20px 60px rgba(29, 50, 88, 0.08);
  --shadow-accent: 0 15px 30px rgba(222, 109, 84, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: clip;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-primary);
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.title-lg {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  line-height: 1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

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

/* ==========================================================================
   UTILITÁRIOS DE LAYOUT
   ========================================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
}

.section-padding {
  padding: var(--section-padding) 0;
}

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

/* ==========================================================================
   BOTÕES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 1.1rem 2.4rem;
  border-radius: 100px;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 10px 30px rgba(29, 50, 88, 0.1);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(29, 50, 88, 0.2);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 10px 25px rgba(222, 109, 84, 0.15);
}

.btn-accent:hover {
  background-color: #c55d46;
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.btn-full {
  width: 100%;
  border-radius: 20px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   HEADER (NAVEGAÇÃO)
   ========================================================================== */
header {
  height: var(--header-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -2px;
}

nav {
  display: flex;
  align-items: center;
}

/* Menu Mobile (Burger) */
.burger-btn {
  display: none;
  border: none;
  background: transparent;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 4px;
  transition: var(--transition-smooth);
  transform-origin: center;
}

.burger-btn.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

nav ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav ul li a {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(29, 50, 88, 0.6);
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition-smooth);
}

nav ul li a:hover {
  color: var(--color-primary);
}

nav ul li a:hover::after {
  width: 100%;
}

#btn-pedir {
  padding: 0.9rem 1.8rem;
  margin-left: 1rem;
}

/* ==========================================================================
   HERO SECTION (BANNER PRINCIPAL)
   ========================================================================== */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.hero-content {
  flex: 1.2;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  margin-bottom: 1.5rem;
  line-height: 0.95;
  color: var(--color-primary);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--color-primary);
  opacity: 0.85;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-btns {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-image {
  flex: 0.8;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: clamp(30px, 5vw, 50px);
  box-shadow: var(--shadow-medium);
  transition: var(--transition-smooth);
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
    padding-top: 4rem;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-image {
    order: -1;
  }
  
  .hero-image img {
    max-width: 400px;
  }
}

/* ==========================================================================
   SEÇÕES ALTERNADAS (TEXTO E IMAGEM)
   ========================================================================== */
.alt-section {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 8vw, 6rem);
  margin-bottom: clamp(5rem, 10vw, 10rem);
}

.alt-section.reverse {
  flex-direction: row-reverse;
}

.alt-image {
  flex: 1;
  border-radius: clamp(20px, 4vw, 40px);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-smooth);
}

.alt-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.alt-text {
  flex: 1;
}

.alt-text p {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(29, 50, 88, 0.85);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .alt-section {
    flex-direction: column !important;
    text-align: center;
    gap: 2rem;
  }
}

/* ==========================================================================
   INSTAGRAM FEED
   ========================================================================== */
.insta-section {
  background-color: var(--color-beige);
}

.insta-placeholder {
  background-color: white;
  padding: 5rem 2rem;
  border-radius: 40px;
  margin-top: 4rem;
  box-shadow: var(--shadow-soft);
  border: none;
}

/* ==========================================================================
   PROVAS SOCIAIS / FEEDBACKS
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: 5rem;
}

.review-card {
  background: white;
  padding: clamp(2rem, 5vw, 3.5rem) 2.5rem;
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.review-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-medium);
}

.review-stars {
  color: #FFB800;
  margin: 0.5rem 0 1rem;
  letter-spacing: 2px;
}

.review-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  overflow: hidden;
  border: 4px solid var(--color-white);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   FORMULÁRIO DE FRANQUIA
   ========================================================================== */
#form-contato {
  background: var(--color-white) !important;
  border-radius: 40px !important;
  box-shadow: var(--shadow-medium);
  padding: clamp(2rem, 6vw, 5rem) !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

#franq-form input, 
#franq-form select {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border-radius: 15px;
  border: 2px solid #f0f0f0;
  background-color: #f9f9f9;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  transition: var(--transition-smooth);
  outline: none;
}

#franq-form input:focus, 
#franq-form select:focus {
  border-color: var(--color-secondary);
  background-color: white;
  box-shadow: 0 0 0 5px rgba(134, 166, 215, 0.1);
}

#franq-form button {
  margin-top: 3rem;
  padding: 1.4rem;
  font-size: 1rem;
}

/* ==========================================================================
   FOOTER (RODAPÉ)
   ========================================================================== */
footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 10rem 0 4rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
  gap: 3rem;
  margin-bottom: 6rem;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-secondary);
  margin-bottom: 2.5rem;
}

.footer-col ul li {
  margin-bottom: 1.2rem;
}

.footer-col ul li a {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
  color: var(--color-white);
  padding-left: 5px;
}

.footer-social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.footer-social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-white);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social-links a:hover {
  background: var(--color-secondary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-footer-review {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(222, 109, 84, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(222, 109, 84, 0.3);
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.btn-footer-review:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-5px);
  box-shadow: var(--shadow-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   OVERLAY DE PEDIDOS (MODAL DE COMPRA)
   ========================================================================== */
.order-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(29, 50, 88, 0.98);
  display: none; /* Controlled by JS */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}

.order-modal {
  max-width: 500px;
  width: 100%;
  padding: 4rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 40px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  color: white;
}

.order-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.order-btn {
  padding: 1.5rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: white;
  color: var(--color-primary);
  font-weight: 700;
  transition: var(--transition-smooth);
}

.order-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background: var(--color-secondary);
  color: white;
}

/* Estado ativo das animações (Reveal) */
.active[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   AJUSTES GLOBAIS MOBILE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 4rem; }
  .alt-section { gap: 3rem; }
}

/* ==========================================================================
   TICKER (BANNER INFINITO)
   ========================================================================== */
.ticker-wrap {
  width: 100%;
  height: 40px;
  background-color: var(--color-accent);
  color: #fff;
  position: relative;
  z-index: 900;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-wrap.absolute-top {
  position: absolute;
  top: var(--header-height);
  left: 0;
  z-index: 990;
  box-shadow: 0 4px 10px rgba(222, 109, 84, 0.2);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: tickerLoop 30s linear infinite;
  gap: 3rem;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  align-items: center;
}

.ticker-dot {
  font-family: var(--font-body);
  font-size: 0.8rem;
  opacity: 0.8;
}

@keyframes tickerLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  html, body { 
    overflow-x: clip; 
    width: 100%; 
    max-width: 100%; 
  }
  
  [class*="elfsight-app"] {
    max-width: 100vw !important;
    overflow: hidden !important;
  }
  
  .container { padding: 0 2rem; }
  
  .ticker-wrap:not(.absolute-top) {
    margin-bottom: 3rem;
  }
  
  .section-padding { padding: 4rem 0; }
  .hero {
    flex-direction: column;
    text-align: center;
    padding-bottom: 5rem;
  }
  .hero-content { padding-right: 0; }
  .hero-image { width: 100%; height: auto; min-height: 40vh; margin-top: 3rem; border-radius: 30px; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .hero-btns { justify-content: center; width: 100%; flex-wrap: wrap; }
  .btn { width: 100%; text-align: center; justify-content: center; }
  
  .burger-btn { display: flex; }
  
  nav ul {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
  }
  
  nav ul.active { left: 0; }
  
  nav ul li { margin-left: 0; }
  
  #btn-pedir { margin-left: 0; margin-top: 1rem; width: 100%; text-align: center; }
  .alt-section, .alt-section.reverse {
    flex-direction: column !important;
    gap: 3rem;
  }
  
  .reviews-grid { grid-template-columns: 1fr; }
  #form-contato { padding: 2.5rem !important; }
  #franq-form .grid-2 { grid-template-columns: 1fr !important; }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }

  .footer-logo {
    display: flex !important;
    justify-content: center;
    margin-bottom: 2rem;
  }

  .footer-social-links {
    justify-content: center;
  }
  
  .footer-col ul.contact-info li {
    justify-content: center;
    flex-direction: column;
    align-items: center !important;
    text-align: center;
  }
  
  .vid-container {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 9/16 !important;
    flex: none !important;
  }
}

/* ==========================================================================
   TABELAS NUTRICIONAIS
   ========================================================================== */
.nutrition-tables-container {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.table-wrapper {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Scrollbar customizada para tabelas */
.table-responsive::-webkit-scrollbar {
  height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: var(--color-natural);
  border-radius: 10px;
}

.nutri-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  color: var(--color-primary);
  min-width: 850px; /* Force scroll on small screens */
}

.nutri-table thead th {
  background-color: var(--color-natural);
  color: white;
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 1.2rem 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nutri-table thead th:last-child {
  border-right: none;
}

.nutri-table thead th.header-main {
  text-align: center;
  font-size: 1.5rem;
  padding: 1.5rem;
  letter-spacing: 0.1em;
}

.nutri-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: var(--transition-smooth);
}

.nutri-table tbody tr:last-child {
  border-bottom: none;
}

.nutri-table tbody tr:hover {
  background-color: rgba(134, 166, 215, 0.05);
}

.nutri-table td {
  padding: 1.2rem 1.5rem;
  vertical-align: middle;
}

.nutri-table td.item-name {
  font-weight: 700;
  color: var(--color-primary);
  width: 250px;
}

.nutri-table td.item-name span:not(.badge-nutri) {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(29, 50, 88, 0.6);
  margin-top: 4px;
}

.nutri-table td.value {
  font-weight: 700;
  text-align: center;
}

/* Estilo base das badges nutricionais */
.badge-nutri {
  font-family: 'Neuething Sans', sans-serif !important;
  font-size: 0.65rem;
  font-weight: 900;
  width: 24px;
  height: 24px;
  border-radius: 8px; /* Cantos arredondados conforme solicitado */
  text-transform: uppercase;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.badge-p { background: rgba(211, 47, 47, 0.12); color: #D32F2F; border: 2px solid #D32F2F; } /* Proteico */
.badge-vg { background: rgba(46, 125, 50, 0.12); color: #2E7D32; border: 2px solid #2E7D32; } /* Vegano */
.badge-k { background: rgba(27, 94, 32, 0.12); color: #1B5E20; border: 2px solid #1B5E20; } /* Keto */
.badge-lc { background: rgba(33, 33, 33, 0.12); color: #212121; border: 2px solid #212121; } /* Low Carb */
.badge-c { background: rgba(2, 119, 189, 0.12); color: #0277BD; border: 2px solid #0277BD; } /* Colágeno */

.nutri-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1rem;
  background: rgba(134, 166, 215, 0.05);
  border-radius: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
}

/* ==========================================================================
   MODAL DE INFORMAÇÕES NUTRICIONAIS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(29, 50, 88, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 400px;
  border-radius: 30px;
  padding: 3rem 2rem 2.5rem;
  position: relative;
  box-shadow: var(--shadow-medium);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  text-align: center;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-x {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition-smooth);
  line-height: 1;
}

.modal-close-x:hover {
  opacity: 1;
  transform: scale(1.1);
}

.modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

#modal-badge-icon {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  border-radius: 10px;
}

#modal-nutri-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary);
  margin: 0;
}

#modal-nutri-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(29, 50, 88, 0.8);
  margin: 0;
}

.modal-close-btn {
  display: none; /* Hide on desktop */
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .modal-close-x {
    display: none; /* Hide X on mobile */
  }
  
  .modal-close-btn {
    display: flex; /* Show button on mobile */
  }
  
  .modal-content {
    padding: 3rem 1.5rem 2rem;
  }
}


/* ==========================================================================
   GLOW LINE (DETALHES DE PRODUTO)
   ========================================================================== */
.glow-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.glow-card {
  background: #fff;
  padding: 2rem;
  border: 1px solid rgba(134, 166, 215, 0.2);
  border-radius: 20px;
}

.glow-card h3 {
  font-family: 'Erstoria', serif;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.glow-card .glow-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.glow-card .glow-comp h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.glow-card .glow-comp ul {
  list-style: none;
  padding: 0;
}

.glow-card .glow-comp ul li {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.glow-card .glow-comp ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-natural);
}

@media (max-width: 768px) {
  .glow-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nutri-table {
    font-size: 0.85rem;
    min-width: 700px; /* Reduzi um pouco para caber melhor mantendo dados legíveis */
  }

  /* Mantém a primeira coluna (Item) fixa no mobile conforme solicitado */
  .nutri-table td:first-child,
  .nutri-table thead tr:nth-child(2) th:first-child {
    position: sticky;
    left: 0;
    z-index: 10;
    background-color: #FFFFFF !important; /* Fundo sólido para não ver o texto atrás */
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  }

  /* Garante que o header principal (ex: Bases Quentes) não se comporte estranho */
  .nutri-table thead tr:first-child th {
    position: sticky;
    left: 0;
    z-index: 5;
  }

  .nutri-table thead tr:nth-child(2) th:first-child {
    background-color: var(--color-natural) !important;
    color: white;
    z-index: 11;
  }

  .nutri-table tr:hover td:first-child {
    background-color: #f8f9fa; /* Mantém o hover visual na coluna fixa */
  }

  .nutri-table td, .nutri-table th {
    padding: 0.8rem;
  }
  .nutri-table td.item-name {
    width: 140px; /* Ajustado para mobile */
    min-width: 140px;
  }
}

/* ==========================================================================
   SEÇÃO DE FRANQUEADO (VÍDEO)
   ========================================================================== */
.vid-container {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.vid-container:hover {
  transform: scale(1.02);
}

.vid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 5;
  color: white;
  pointer-events: none;
}

.vid-overlay i {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.vid-overlay span {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  background: rgba(29, 50, 88, 0.8);
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
}

.vid-container.unmuted .vid-overlay {
  opacity: 0;
}

/* ==========================================================================
   CONTROLES CUSTOMIZADOS DO VÍDEO
   ========================================================================== */
.video-custom-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Tudo na base do vídeo */
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 40%);
  color: white;
  pointer-events: none;
}

.vid-container.unmuted:hover .video-custom-controls {
  opacity: 1;
  pointer-events: auto;
}

/* Barra inferior de controles */
.video-controls-bottom {
  padding: 1.2rem 1.5rem;
  width: 100%;
  pointer-events: auto;
}

.video-progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  margin-bottom: 1.5rem;
  cursor: pointer;
  position: relative;
  transition: height 0.2s ease;
}

.video-progress-container:hover {
  height: 8px;
}

.video-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  border-radius: 5px;
  position: relative;
}

/* Bolinha branca que aparece no hover */
.video-progress-bar::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}

.vid-container:hover .video-progress-bar::after {
  transform: translateY(-50%) scale(1);
}

.icon-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vid-num {
  position: absolute;
  font-size: 0.55rem;
  font-weight: 900;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  pointer-events: none;
}

.video-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-controls-left, .video-controls-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.vid-btn-small {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.vid-btn-small:hover {
  color: var(--color-accent);
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vid-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  outline: none;
}

.vid-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

/* Ajustes Mobile */
@media (max-width: 768px) {
  .video-custom-controls {
    opacity: 1; /* Visível por padrão no mobile após o primeiro toque */
    pointer-events: auto;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 40%);
  }

  .vid-btn-main {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }
}


#section-franqueado .alt-section {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  gap: clamp(2rem, 10vw, 8rem);
}

@media (max-width: 992px) {
  #section-franqueado .alt-section {
    flex-direction: column;
    text-align: center;
  }
  
  #section-franqueado .vid-container {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Ajustes de layout para mobile e tablet */
.text-center { text-align: center; }

.footer-logo {
  display: block;
  margin-bottom: 2rem;
}

.footer-logo img {
  max-height: 50px;
  width: auto;
  display: block;
}

.footer-desc {
  max-width: 350px;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.85;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sobre-summary {
  max-width: 800px;
  margin: var(--section-padding) auto;
  text-align: center;
}

.table-scroll-hint {
  display: none;
  font-size: 0.75rem;
  color: var(--color-natural);
  text-align: right;
  margin-bottom: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* Correções globais de espaçamento e alinhamento */
.page-section > section:first-child {
  padding-top: calc(var(--header-height) + 40px + 4rem) !important;
}

@media (max-width: 768px) {
  .page-section > section:first-child {
    padding-top: calc(var(--header-height) + 40px + 2rem) !important;
  }
}

.title-lg, 
.page-section h1.text-center {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.insta-section h2.title-lg {
  margin-bottom: 4rem;
}

/* Scroll button adjustment */
#btn-scroll-form-wrapper {
  margin: 2rem 0 6rem !important;
}
