/**
 * Main Styles - Bolos di Sofi
 * Estilos específicos da página
 */

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: var(--space-md) 0;
  background: rgba(20, 10, 5, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              backdrop-filter var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(91, 58, 41, 0.1);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
}

.navbar-logo {
  display: block;
  transition: transform var(--duration-normal) var(--ease-out);
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.navbar-logo img {
  height: 40px;
  width: auto;
}

.navbar-menu {
  display: none;
  list-style: none;
  gap: var(--space-lg);
}

.navbar-menu a {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color var(--duration-fast);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.navbar-menu a:hover {
  color: var(--color-gold-soft);
}

.navbar.scrolled .navbar-menu a {
  color: var(--color-chocolate);
  text-shadow: none;
}

.navbar.scrolled .navbar-menu a:hover {
  color: var(--color-gold);
}

@media (min-width: 768px) {
  .navbar-menu {
    display: flex;
  }
}

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

.hero-image-container {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 10, 5, 0.50) 0%,
    rgba(20, 10, 5, 0.58) 40%,
    rgba(20, 10, 5, 0.74) 70%,
    rgba(20, 10, 5, 0.82) 100%
  );
  z-index: -1;
}

.hero-content {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  color: var(--color-white);
  max-width: 600px;
  margin-top: var(--space-2xl);
}

.hero-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-lg);
  background: var(--color-white);
  border-radius: 50%;
  padding: var(--space-sm);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 4px 24px rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
}

.hero-subheadline {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }
}

/* ============================================
   STATUS BAR (Horário de Funcionamento)
   ============================================ */
.status-bar {
  position: absolute;
  top: calc(var(--space-xl) + 80px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--space-sm) var(--space-md);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  z-index: 10;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9CA3AF;
  transition: background var(--duration-normal);
}

.status-dot.open {
  background: var(--color-whatsapp);
  animation: pulse 2s infinite;
}

.status-dot.closed {
  background: var(--color-warning);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-text {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-chocolate);
}

.hours-text {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-chocolate-light);
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-whatsapp);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--duration-normal) var(--ease-spring);
  text-decoration: none;
  font-weight: var(--weight-semibold);
}

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

.whatsapp-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.whatsapp-label {
  display: none;
}

@media (min-width: 768px) {
  .whatsapp-label {
    display: inline;
    font-size: var(--text-small);
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-chocolate);
  color: var(--color-cream);
  padding: var(--space-2xl) 0 var(--space-xl);
}

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

.footer-logo {
  height: 60px;
  width: auto;
  margin: 0 auto var(--space-md);
}

.footer-slogan {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  margin-bottom: var(--space-lg);
  line-height: var(--leading-relaxed);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--color-cream);
  transition: all var(--duration-normal);
}

.footer-social a:hover {
  background: var(--color-gold);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 22px;
  height: 22px;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: rgba(255, 248, 241, 0.7);
}

/* ============================================
   INSTAGRAM EMBED
   ============================================ */
.instagram-section {
  background: var(--color-cream);
  padding: var(--space-2xl) 0;
}

.instagram-wrapper {
  max-width: 500px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
}

.instagram-embed {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: var(--radius-md);
}

/* ============================================
   ANIMAÇÕES DE ENTRADA
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s var(--ease-out) forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.4s var(--ease-out) forwards;
}

/* Delay classes */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* Scroll reveal (para uso com Intersection Observer) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ESTADOS DE FOCO E INTERAÇÃO
   ============================================ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Botão ativo */
.btn:active {
  transform: scale(0.98);
}

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-cream-dark) 25%,
    var(--color-cream) 50%,
    var(--color-cream-dark) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   UTILITÁRIOS ESPECÍFICOS
   ============================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-chocolate);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  z-index: 1001;
  border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   SEÇÃO PROVA SOCIAL
   ============================================ */
.social-proof {
  background: var(--color-cream);
  padding: var(--space-3xl) 0;
}

/* Estatísticas */
.stats-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  justify-content: center;
  margin-bottom: var(--space-2xl);
}

@media (min-width: 640px) {
  .stats-row {
    flex-direction: row;
    gap: var(--space-2xl);
  }
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: var(--weight-bold);
  color: var(--color-chocolate);
  line-height: 1;
}

.stat-stars {
  display: block;
  font-size: 1rem;
  margin: var(--space-xs) 0;
}

.stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-chocolate-light);
}

/* Depoimentos Grid */
.testimonials-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card de Depoimento */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  border: var(--border-gold);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-rose-soft);
  color: var(--color-chocolate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-semibold);
  font-size: var(--text-small);
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  color: var(--color-chocolate);
  font-size: var(--text-body);
}

.testimonial-stars {
  font-size: 0.75rem;
}

.testimonial-text {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-chocolate-light);
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-sm) 0;
  font-style: italic;
}

.testimonial-text::before {
  content: '"';
  color: var(--color-gold);
  font-size: 1.5rem;
  line-height: 0;
  margin-right: 4px;
}

.testimonial-product {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-gold);
  background: rgba(200, 164, 107, 0.1);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 20px;
}

/* ============================================
   SEÇÃO GALERIA
   ============================================ */
.gallery {
  background: var(--color-white);
  padding: var(--space-3xl) 0;
}

.gallery-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Item da Galeria */
.gallery-item {
  margin: 0;
  opacity: 1;
  transform: scale(1);
  transition: all var(--duration-normal) var(--ease-out);
}

.gallery-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  position: absolute;
}

.gallery-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-cream);
}

.gallery-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.gallery-item:hover .gallery-image-wrapper img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(91, 58, 41, 0.9) 0%,
    rgba(91, 58, 41, 0.3) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-category {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.gallery-cta {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-whatsapp);
  color: var(--color-white);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.gallery-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.gallery-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.gallery-name {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  color: var(--color-chocolate);
}

.gallery-price {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-gold);
  font-weight: var(--weight-medium);
}

/* ============================================
   SEÇÃO COMO FUNCIONA
   ============================================ */
.how-it-works {
  background: var(--color-cream-dark);
  padding: var(--space-3xl) 0;
}

.steps-container {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--color-gold);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-small);
  box-shadow: var(--shadow-sm);
}

.step-icon {
  font-size: 2.5rem;
  margin: var(--space-sm) 0 var(--space-md);
}

.step-title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  color: var(--color-chocolate);
  margin-bottom: var(--space-sm);
}

.step-description {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-chocolate-light);
  line-height: var(--leading-relaxed);
}

/* ============================================
   SEÇÃO DIFERENCIAIS
   ============================================ */
.differentials {
  background: var(--color-cream);
  padding: var(--space-3xl) 0;
}

.differentials-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .differentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .differentials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.differential-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: var(--border-gold);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.differential-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.differential-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.differential-title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  color: var(--color-chocolate);
  margin-bottom: var(--space-xs);
}

.differential-description {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-chocolate-light);
  line-height: var(--leading-relaxed);
}

/* ============================================
   BOOTSTRAP ICONS - ESTILOS GLOBAIS
   ============================================ */

/* Ícones nos cards de passos */
.step-icon i {
  font-size: 2.25rem;
  color: var(--color-gold);
  display: block;
}

/* Ícones nos cards de diferenciais */
.differential-icon i {
  font-size: 1.875rem;
  color: var(--color-gold);
  display: block;
}

/* Ícones nos botões */
.btn i {
  font-size: 1rem;
  line-height: 1;
  vertical-align: middle;
}

/* Ícone WhatsApp flutuante */
.whatsapp-float .bi-whatsapp {
  font-size: 1.625rem;
  line-height: 1;
}

/* Ícones no footer */
.footer-social i {
  font-size: 1.25rem;
  line-height: 1;
}
