/**
 * Backyard Butchers - Main Theme Styles
 * Author: Team Tenbit Solution
 * Website: tenbitsol.com
 */

:root {
  --brand-red: #c91818;
  --brand-red-hover: #a81212;
  --brand-red-light: #ffeded;
  --brand-gold: #e5a93c;
  --brand-dark: #0f1013;
  --brand-dark-card: #181a20;
  --brand-black: #08090a;
  --section-cream: #f8f6f0;
  --section-cream-dark: #eee8dc;
  --card-bg: #ffffff;
  --border-color: #e2ddd4;
  --border-dark: #272a33;
  --text-main: #1d1e20;
  --text-muted: #67696e;
  --text-light: #9a9da6;
  --text-white: #ffffff;

  --font-heading: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-accent: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(201, 24, 24, 0.35);
  --shadow-glow-gold: 0 0 20px rgba(229, 169, 60, 0.3);

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1360px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

body.bb-dark-mode {
  background-color: var(--brand-black);
  color: var(--text-white);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

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

ul, ol {
  list-style: none;
}

/* Container Utility */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

/* Section Headings */
.section-header-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-red-light);
  color: var(--brand-red);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.heading-xl {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  color: inherit;
  letter-spacing: -0.01em;
}

.heading-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.6;
}

.text-white {
  color: #ffffff !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--brand-red);
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--brand-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 24, 24, 0.35);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.btn-block {
  width: 100%;
}

/* Modals & Overlays */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.video-modal-backdrop.active {
  display: flex;
}

.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
}

.video-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* Search Modal Dialog */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 99999;
  padding: 5rem 1.5rem;
  backdrop-filter: blur(6px);
}

.search-modal-backdrop.active {
  display: flex;
}

.search-modal-dialog {
  background: #181a20;
  border: 1px solid #272a33;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.search-modal-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-red);
}

.search-modal-close {
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

.search-modal-form {
  display: flex;
  gap: 0.75rem;
}

.search-modal-input {
  flex-grow: 1;
  background: #0f1013;
  border: 1px solid #374151;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.search-modal-input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(201, 24, 24, 0.3);
}

.search-modal-submit {
  background: var(--brand-red);
  color: #ffffff;
  padding: 0 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
}

.search-quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.search-quick-tags a {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  color: #ffffff;
  transition: var(--transition);
}

.search-quick-tags a:hover {
  background: var(--brand-red);
}

/* Toast Notifications */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #111827;
  color: #ffffff;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand-red);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
  z-index: 999999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Cold-Chain Protocol Section */
.cold-chain-section {
  background: #ffffff;
  padding: 6.5rem 0;
  color: var(--text-main);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cold-chain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

@media (max-width: 900px) {
  .cold-chain-grid {
    grid-template-columns: 1fr;
  }
}

.cold-chain-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: var(--transition);
  position: relative;
}

.cold-chain-card:hover {
  background: #ffffff;
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.cold-chain-step-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-red);
  line-height: 1;
}

.cold-chain-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #111827;
  line-height: 1.25;
}

.cold-chain-card p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}
