/*
Theme Name: Menu Jaime
Theme URI: https://menu.jaime.com.br/
Author: Jaime Administração
Description: Menu de acesso aos sistemas - Design moderno e funcional
Version: 3.1 - Optimized Edition
*/

/*--------------------------------------------------------------
/** 1. VARIABLES
--------------------------------------------------------------*/
:root {
  /* Cores principais */
  --primary-color: #2c5f7f;
  --primary-dark: #1e4159;
  --accent-color: #D4A574;
  --accent-hover: #c49464;
  
  /* Cores neutras */
  --gray-800: #2d2d2d;
  --gray-700: #4a5568;
  --gray-600: #666666;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  
  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Transições */
  --transition: all 0.25s ease;

  /* Superfícies / vidro */
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.25);
  --overlay-top: rgba(30, 65, 89, 0.72);
  --overlay-bottom: rgba(20, 45, 62, 0.86);
}

/*--------------------------------------------------------------
/** 2. BASE
--------------------------------------------------------------*/
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  background:
    linear-gradient(160deg, var(--overlay-top) 0%, var(--overlay-bottom) 100%),
    url('images/fundo_menu.jpg') center center / cover no-repeat fixed !important;
  min-height: 100vh;
  color: var(--gray-800);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/*--------------------------------------------------------------
/** 3. PRELOADER
--------------------------------------------------------------*/
.preloader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.preloader {
  width: 50px;
  height: 50px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
/** 4. HEADER
--------------------------------------------------------------*/
header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(20, 45, 62, 0.18);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--accent-color);
}

header .text-center a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  transition: var(--transition);
}

header .text-center a:hover {
  opacity: 0.85;
}

header img {
  height: 50px;
}

header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  letter-spacing: -0.02em;
}

header hr {
  display: none;
}

/*--------------------------------------------------------------
/** 5. SECTION
--------------------------------------------------------------*/
#foodies {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0px 0px;
}

.section-header {
  margin-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.section-header h5 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  padding-left: 16px;
  border-left: 4px solid var(--accent-color);
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  max-width: 560px;
}

/*--------------------------------------------------------------
/** 5.1 HERO
--------------------------------------------------------------*/
.hero-block {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-color);
  padding: 6px 16px;
  border: 1px solid rgba(212, 165, 116, 0.5);
  border-radius: 30px;
  margin-bottom: 20px;
  background: rgba(212, 165, 116, 0.08);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/*--------------------------------------------------------------
/** 5.2 TOOLBAR + BUSCA
--------------------------------------------------------------*/
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
  padding: 18px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(20, 45, 62, 0.25);
}

.search-wrap {
  position: relative;
  flex: 1 1 280px;
  min-width: 240px;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 0.95rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-800);
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-input::placeholder {
  color: var(--gray-600);
}

.search-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.25);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.no-results {
  display: none;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin: 60px 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.no-results.show {
  display: block;
}

/*--------------------------------------------------------------
/** 6. FILTER BUTTONS
--------------------------------------------------------------*/
button.filter-button {
  background: white !important;
  border: none !important;
  border-radius: 24px !important;
  padding: 10px 28px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--gray-600) !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  box-shadow: var(--shadow-sm) !important;
  outline: none !important;
}

/* Hover em TODOS os botões */
button.filter-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-md) !important;
  background: var(--primary-color) !important;
  color: white !important;
}

/* TODOS os botões quando ATIVOS ficam na cor da marca */
button.filter-button.active {
  background: var(--primary-color) !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(44, 95, 127, 0.4) !important;
}

/* Hover nos botões ATIVOS mantém a cor da marca */
button.filter-button.active:hover {
  background: var(--primary-dark) !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 14px rgba(30, 65, 89, 0.45) !important;
}
/*--------------------------------------------------------------
/** 7. CARDS GRID
--------------------------------------------------------------*/
.isotope-container.row {
  margin-top: 40px;
  display: flex !important;
  flex-wrap: wrap !important;
}

.isotope-container .item {
  display: block !important;
  margin-bottom: 32px;
  transition: opacity 0.3s ease;
}

.isotope-container .item.hidden {
  display: none !important;
}

/* Cards */
.item .card {
  background: white !important;
  border-radius: 16px !important;
  padding: 40px 24px !important;
  text-align: center !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  overflow: hidden !important;
  transition: var(--transition) !important;
  box-shadow: 0 6px 20px rgba(20, 45, 62, 0.18) !important;
}

/* Barra colorida no topo */
.item .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

/* Hover nos cards */
.item .card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 16px 32px rgba(20, 45, 62, 0.32) !important;
  border-color: var(--accent-color) !important;
}

.item .card:hover::before {
  transform: scaleX(1);
}

/* Links */
.card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* Ícones - PADRÃO ÚNICO */
.card i {
  color: var(--primary-color) !important;
  font-size: 3rem !important;
  width: 80px;
  height: 80px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf1f5 0%, #f6f9fb 100%);
  border-radius: 50%;
  transition: var(--transition);
}

/* Hover ÚNICO para todos os ícones - Cor da marca */
.card:hover i {
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  transform: scale(1.1);
}

/* Títulos */
.card-body {
  padding: 0 !important;
  width: 100%;
}

.card-title {
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  color: var(--gray-800) !important;
  margin: 0 !important;
  padding-top: 8px !important;
  transition: var(--transition) !important;
}

.card:hover .card-title {
  color: var(--primary-color) !important;
}

/*--------------------------------------------------------------
/** 8. FOOTER
--------------------------------------------------------------*/
#footer-bottom {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 3px solid var(--accent-color);
  margin-top: 80px;
  padding: 12px 0;
  box-shadow: 0 -2px 16px rgba(20, 45, 62, 0.18);
}

#footer-bottom .copyright p,
#footer-bottom .text-md-end p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}

#footer-bottom a {
  color: var(--gray-600);
  transition: var(--transition);
}

#footer-bottom a:hover {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
/** 9. RESPONSIVE
--------------------------------------------------------------*/
@media (max-width: 767px) {
  header .text-center a {
    flex-direction: column;
    gap: 12px;
  }
  
  header img {
    height: 40px;
  }
  
  header h2 {
    font-size: 1.25rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap {
    flex: 1 1 auto;
  }

  .filters {
    justify-content: center;
  }

  button.filter-button {
    flex: 1 1 auto !important;
    padding: 10px 18px !important;
    margin: 0 !important;
  }

  .card {
    padding: 32px 20px !important;
  }
  
  .card i {
    font-size: 2.5rem !important;
    width: 70px !important;
    height: 70px !important;
  }
  
  #footer-bottom .text-md-end {
    text-align: center !important;
    margin-top: 12px;
  }
}

@media (max-width: 480px) {
  .card i {
    font-size: 2.25rem !important;
    width: 60px !important;
    height: 60px !important;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

button.filter-button:focus-visible,
.card:focus-within {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}