/* ============================================
   Libra Food — Custom Styles (overrides Neve)
   ============================================ */

:root {
  --red: #C41E25; --red-dark: #A8191F; --red-light: #F2D5D7;
  --black: #1A1A1A; --dark: #2C2C2C; --gray: #6B7280; --gray-light: #9CA3AF;
  --border: #E5E7EB; --bg: #F9FAFB; --surface: #FFF;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --radius: 8px;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--bg);
  line-height: 1.6;
}

/* Override Neve header */
.navbar, .header--row {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar a, .header--row a {
  color: var(--gray) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
.navbar a:hover, .header--row a:hover {
  color: var(--black) !important;
}

/* Hide Neve default elements we don't need */
.page-header, .nv-page-title {
  display: none !important;
}

/* Override Neve content width */
.container, .nv-page-content {
  max-width: var(--max-w) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--black); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(0,0,0,.02); border-color: #ccc; }

/* Hero Section (homepage) */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 32px 60px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: var(--red-light);
  border: 1px solid rgba(196,30,37,.15);
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero h1 {
  font-size: clamp(32px,5vw,56px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -1.8px;
  color: var(--black);
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 strong { font-weight: 600; }
.hero p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Stats Bar */
.stats {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px 60px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.stat-item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: var(--black);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num .accent { color: var(--red); }
.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* Generic Section */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 32px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--red);
}
.section-title {
  font-size: clamp(26px,3.5vw,38px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--black);
  margin-bottom: 14px;
}
.section-title strong { font-weight: 600; }
.section-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray);
  max-width: 560px;
  margin-bottom: 40px;
}

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: #d1d5db;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,var(--red),#e8454c);
  opacity: 0;
  transition: opacity .25s;
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
}
.card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.2px; color: var(--black); margin-bottom: 8px; }
.card p { font-size: 14px; line-height: 1.6; color: var(--gray); }

/* Image Cards */
.image-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.image-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.image-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #eee;
}
.image-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,transparent 40%,rgba(0,0,0,.4));
}
.image-card-body { padding: 24px; flex-grow: 1; }
.image-card-body h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.image-card-body p { font-size: 14px; line-height: 1.6; color: var(--gray); margin-bottom: 16px; }

/* Brand Grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.brand-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all .25s;
  cursor: pointer;
}
.brand-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--red);
}
.brand-card-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.brand-card-logo img { max-height: 60px; max-width: 100%; object-fit: contain; }
.brand-card h4 { font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.brand-card p { font-size: 12px; color: var(--gray-light); }

/* Product Table */
.prod-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.prod-table th { background: var(--red); color: #fff; padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 600; }
.prod-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.prod-table tr:hover { background: #f8f8f8; }

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar select, .filter-bar input {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  background: var(--surface);
}

/* Responsive */
@media(max-width:768px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2,1fr); }
  .hero { padding: 60px 20px 40px; }
  .section { padding: 40px 20px; }
}
