:root {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Rede Família */
  --color-rf-primary: #D62F3F;
  --color-rf-primary-dark: #B8202F;
  --color-rf-accent: #E83C4A;
  --color-rf-navy: #233462;
  --color-rf-warm: #F2727D;
  --color-rf-amber: #D97706;

  /* Green Farm */
  --color-gf-primary: #1B4D3E;
  --color-gf-primary-dark: #12372C;
  --color-gf-accent: #4CAF50;

  /* Neutros */
  --color-sand: #F7F5F0;
  --color-sand-card: #FFFFFF;
  --color-border: #EEEBE2;
  --color-border-hover: rgba(214, 47, 63, 0.35);
  --color-text-main: #1E293B;
  --color-text-muted: #64748B;
}

/* Base */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-sand);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* Header */
#header {
  box-shadow: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-inner {
  height: 5rem; /* ~80px */
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) {
  .header-inner {
    height: 5.5rem; /* ~88px */
  }
}

#header.is-scrolled {
  background-color: rgba(247, 245, 240, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(214, 47, 63, 0.1) !important;
  box-shadow: 0 4px 20px -2px rgba(30, 41, 59, 0.05) !important;
}

#header.is-scrolled .header-inner {
  height: 4.25rem !important; /* ~68px */
}

/* Logos Header */
.logo-rf-main {
  height: 34px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#header.is-scrolled .logo-rf-main {
  height: 30px;
}

@media (max-width: 640px) {
  .logo-rf-main {
    height: 26px;
    max-width: 135px;
  }
}

/* Links de navegação */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(30, 41, 59, 0.75);
  background-color: transparent !important;
  border-radius: 0 !important;
  letter-spacing: -0.01em;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background-color: var(--color-rf-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--color-rf-primary);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--color-rf-primary);
  font-weight: 700;
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* Menu mobile */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease-out,
              padding 0.3s ease;
}

#mobile-menu.open {
  max-height: 520px;
  opacity: 1;
}

#menu-toggle.open #hb1 {
  transform: translateY(6px) rotate(45deg);
}

#menu-toggle.open #hb2 {
  opacity: 0;
}

#menu-toggle.open #hb3 {
  transform: translateY(-6px) rotate(-45deg);
}

#hb1, #hb2, #hb3 {
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Cards */
.rf-card {
  background-color: var(--color-sand);
  border: 1px solid rgba(214, 47, 63, 0.12);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rf-card:hover {
  border-color: rgba(232, 60, 74, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -12px rgba(23, 35, 68, 0.12);
}

.rf-white-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rf-white-card:hover {
  border-color: rgba(232, 60, 74, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -12px rgba(23, 35, 68, 0.10);
}

/* Badges */
.rf-badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 60, 74, 0.12);
  border: 1px solid rgba(232, 60, 74, 0.3);
  color: #fed7aa;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gf-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(27, 77, 62, 0.08);
  border: 1px solid rgba(27, 77, 62, 0.18);
  color: var(--color-gf-primary);
  padding: 4px 12px;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Botões */
.btn-rf-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-rf-accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px -2px rgba(23, 35, 68, 0.18);
}

.btn-rf-primary:hover {
  background-color: var(--color-rf-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(23, 35, 68, 0.25);
}

.btn-rf-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ffffff;
  color: var(--color-rf-primary);
  border: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.btn-rf-secondary:hover {
  border-color: var(--color-rf-primary);
  background-color: #FDEEEF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -3px rgba(23, 35, 68, 0.08);
}

.btn-rf-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-rf-ghost:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

/* Faixa rolante */
@keyframes rf-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.rf-ticker-track {
  display: flex;
  width: max-content;
  animation: rf-ticker 32s linear infinite;
}

.rf-ticker-track:hover {
  animation-play-state: paused;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 26, 22, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#lightbox.open {
  display: flex;
  animation: lightboxZoomIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lightboxZoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 40px 100px -10px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-close:hover {
  opacity: 1;
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.2);
}

/* Galeria */
.gallery-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--color-border);
  position: relative;
  background-color: #000;
}

.gallery-card img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

/* Card flutuante */
@keyframes rfFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.rf-float {
  animation: rfFloat 4.5s ease-in-out infinite;
}

.rf-float-delayed {
  animation: rfFloat 5.5s ease-in-out infinite 1.5s;
}

/* Botões sólidos */
.btn-gf-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #4CAF50;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px -2px rgba(23, 35, 68, 0.2);
}

.btn-gf-primary:hover {
  background-color: #388E3C;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(23, 35, 68, 0.28);
}

.btn-hh-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #06B6D4;
  color: #0F172A;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px -2px rgba(23, 35, 68, 0.25);
}

.btn-hh-primary:hover {
  background-color: #0891B2;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(23, 35, 68, 0.35);
}

/* Carrossel */
.coverflow-wrapper {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  perspective: 1200px;
  -webkit-perspective: 1200px;
  overflow: hidden;
  padding: 1rem 0 2rem;
}

.coverflow-stage {
  position: relative;
  width: 100%;
  height: 380px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .coverflow-stage {
    height: 440px;
  }
}

@media (min-width: 1024px) {
  .coverflow-stage {
    height: 490px;
  }
}

.coverflow-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(670px, 78vw);
  height: 100%;
  border-radius: 28px;
  -webkit-border-radius: 28px;
  overflow: hidden;
  border: none;
  background-color: #0F172A;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.45), 0 12px 28px -8px rgba(0, 0, 0, 0.35);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  isolation: isolate;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  cursor: pointer;
  transform-origin: center center;
}

.coverflow-slide.is-active {
  box-shadow: 0 35px 85px -15px rgba(0, 0, 0, 0.6), 0 18px 36px -10px rgba(0, 0, 0, 0.4);
}

.coverflow-slide:not(.is-active) {
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.55), 0 8px 18px -6px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
  .coverflow-slide {
    width: 82vw;
    border-radius: 22px;
    -webkit-border-radius: 22px;
  }
}

.coverflow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border-radius: 28px;
  -webkit-border-radius: 28px;
  transition: transform 0.6s ease;
}

@media (max-width: 640px) {
  .coverflow-slide img {
    border-radius: 22px;
    -webkit-border-radius: 22px;
  }
}

.coverflow-slide.is-active:hover img {
  transform: scale(1.04);
}

/* Sombra do carrossel */
.coverflow-stage::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 10%;
  right: 10%;
  height: 45px;
  background: radial-gradient(ellipse at center, rgba(23, 35, 68, 0.32) 0%, rgba(23, 35, 68, 0.08) 50%, transparent 75%);
  pointer-events: none;
  z-index: 1;
  filter: blur(4px);
}

/* Setas do carrossel */
.coverflow-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  color: #ffffff;
  background: rgba(23, 35, 68, 0.78);
  border: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.coverflow-nav-btn:hover {
  background: #D62F3F;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.45);
}

.coverflow-nav-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.coverflow-prev-btn {
  left: 12px;
}

@media (min-width: 768px) {
  .coverflow-prev-btn {
    left: 24px;
  }
}

@media (min-width: 1024px) {
  .coverflow-prev-btn {
    left: 48px;
  }
}

.coverflow-next-btn {
  right: 12px;
}

@media (min-width: 768px) {
  .coverflow-next-btn {
    right: 24px;
  }
}

@media (min-width: 1024px) {
  .coverflow-next-btn {
    right: 48px;
  }
}

@media (max-width: 640px) {
  .coverflow-nav-btn {
    width: 40px;
    height: 40px;
  }
}

/* Ícone de zoom */
.slide-zoom-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(23, 35, 68, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  cursor: pointer;
}

.coverflow-slide.is-active:hover .slide-zoom-badge {
  background: #D62F3F;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Indicadores do carrossel */
.coverflow-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5rem;
}

.coverflow-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background-color: rgba(214, 47, 63, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.coverflow-dot.active {
  width: 32px;
  background-color: #D62F3F;
}

.coverflow-dot:not(.active):hover {
  background-color: rgba(214, 47, 63, 0.55);
}



/* Imagem em destaque (#publico) */
.spotlight-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 48px -12px rgba(30, 41, 59, 0.18);
  border: 1px solid rgba(214, 47, 63, 0.18);
  background-color: #1a1a1a;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-card:hover {
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.25);
  border-color: rgba(214, 47, 63, 0.35);
}

.spotlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.spotlight-card:hover img {
  transform: scale(1.04);
}


/* Cupom dos produtos: borda inferior serrilhada */
.rf-cupom {
  --dente: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--dente) * 2) var(--dente) repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--dente) + 1px) no-repeat;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--dente) * 2) var(--dente) repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--dente) + 1px) no-repeat;
}
