/* ==========================================================================
   Nourish & Co. Family Kitchen - Modern Design System & CSS Stylesheet
   ========================================================================== */

:root {
  /* Color Tokens */
  --primary: #0F382C;
  --primary-light: #1A5443;
  --accent: #10B981;
  --accent-hover: #059669;
  --terracotta: #E07A5F;
  --amber: #F4A261;
  --sand: #F8F9FA;
  --sand-dark: #E9ECEF;
  --surface: #FFFFFF;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  
  /* Glassmorphism & Elevation */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 16px rgba(15, 56, 44, 0.08);
  --shadow-lg: 0 16px 32px rgba(15, 56, 44, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--sand);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
}

p, li, span, strong, label, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: anywhere;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.25s ease;
}

/* Container Utility */
.container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Guided Demo Mode Banner */
.demo-banner {
  background: #0F172A;
  color: #F8FAFC;
  padding: 0.6rem 0;
  border-bottom: 2px solid var(--accent);
  font-size: 0.85rem;
}

.demo-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.demo-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.demo-btn {
  background: #1E293B;
  color: #F8FAFC;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  border: 1px solid #334155;
  font-weight: 600;
  transition: all 0.2s ease;
}

.demo-btn:hover {
  background: #334155;
  border-color: var(--accent);
}

.demo-btn-verify {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}

.demo-btn-verify:hover {
  background: var(--accent-hover);
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  box-shadow: 0 4px 20px rgba(15, 56, 44, 0.05);
}

.nav-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFF7ED;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.brand-logo:hover .brand-logo-badge {
  transform: scale(1.06) rotate(-3deg);
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0;
}

.brand-sub-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2px;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.badge-family {
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent-hover);
  font-size: 0.62rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  white-space: nowrap;
  transition: color 0.25s ease;
  padding: 0.5rem 0;
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--accent-hover);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-nav-action {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--primary);
  background: var(--surface);
  flex-shrink: 0;
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 0;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.btn-primary {
  background: var(--accent);
  color: var(--surface);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  background: var(--primary);
  color: var(--surface);
}

.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--surface);
}

.btn-admin-toggle {
  background: var(--sand-dark);
  color: var(--primary);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-admin-toggle:hover {
  background: #CBD5E1;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 5rem;
  position: relative;
  background: linear-gradient(180deg, #F0FDF4 0%, var(--sand) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.2rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0;
}

.hero-title span {
  color: var(--accent);
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 46rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.stat-item h4 {
  font-size: 1.75rem;
  color: var(--primary);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--surface);
}

.hero-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.hero-floating-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  width: min(calc(100% - 3rem), 420px);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-floating-card i {
  font-size: 2rem;
  color: var(--accent);
}

/* Family Story Banner */
.family-story-section {
  padding: 4rem 0;
  background: var(--surface);
  border-y: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.family-card {
  background: var(--sand);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.family-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.family-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

.family-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.family-role {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.family-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Section Common Spacing */
.app-section {
  padding: 5rem 0;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
}

.meal-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: all 0.3s ease;
}

.meal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.meal-img-wrapper {
  position: relative;
  height: 220px;
  background: var(--sand-dark);
  overflow: hidden;
}

.meal-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meal-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: var(--primary);
  color: var(--surface);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.meal-price-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 2;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}


.meal-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.meal-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.tag {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.meal-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.meal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.macro-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.macro-item h5 {
  font-size: 0.95rem;
  color: var(--primary);
}

.macro-item span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.meal-actions {
  display: flex;
  gap: 0.75rem;
}

.meal-actions button {
  flex: 1;
}

/* Custom Builder Container */
.builder-section {
  background: var(--surface);
  border-y: 1px solid var(--border);
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 2.5rem;
  align-items: start;
}

.builder-steps-wrapper {
  background: var(--sand);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
}

.builder-step {
  margin-bottom: 2rem;
}

.builder-step:last-child {
  margin-bottom: 0;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.ingredient-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
}

.opt-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.opt-card:hover {
  border-color: var(--accent);
}

.opt-card.selected {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.05);
}

.opt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.opt-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  min-width: 0;
}

.opt-price {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
  white-space: nowrap;
}

.opt-macros {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Builder Live Summary Box */
.builder-live-summary {
  background: var(--primary);
  color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: sticky;
  top: 140px;
  box-shadow: var(--shadow-lg);
}

.summary-header {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.summary-header h3 {
  color: var(--surface);
  font-size: 1.5rem;
}

.macro-ring-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.macro-ring h4 {
  color: var(--accent);
  font-size: 1.1rem;
}

.macro-ring label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.selected-recipe-list {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.selected-recipe-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255,255,255,0.05);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

.selected-recipe-list li span:first-child {
  min-width: 0;
}

.selected-recipe-list li span:last-child {
  flex-shrink: 0;
}

.custom-notes-input {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  resize: vertical;
}

.custom-notes-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.summary-price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

/* Consultation & Booking Section */
.consultation-section {
  background: linear-gradient(135deg, var(--primary) 0%, #08241C 100%);
  color: var(--surface);
  padding: 5rem 0;
}

.consultation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.consultation-info h2 {
  color: var(--surface);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.consultation-info p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.consultation-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.consultation-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}

.consultation-features i {
  color: var(--accent);
  font-size: 1.25rem;
}

.consultation-form-card {
  background: var(--surface);
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.consultation-form-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

/* Delivery Hub Section */
.delivery-section {
  background: var(--sand);
}

.delivery-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.delivery-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.delivery-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.delivery-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.delivery-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Cart Slide-over / Modal & Receipt Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 56, 44, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: min(100%, 650px);
  max-width: 650px;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--primary);
}

.cart-line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-line-copy {
  min-width: 0;
}

.cart-line-copy strong {
  display: block;
  font-size: 0.95rem;
}

.cart-line-copy span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cart-qty-controls span {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 1rem;
}

.receipt-items-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.3rem;
}

.receipt-row span:first-child {
  min-width: 0;
}

.receipt-row span:last-child {
  flex-shrink: 0;
}

.receipt-order-id {
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.receipt-total {
  font-size: 1.1rem;
  font-weight: 800;
  border-top: 1px dashed var(--border);
  padding-top: 0.75rem;
}

/* Admin Dashboard Drawer / View */
.admin-view-panel {
  display: none;
  background: #0F172A;
  color: #F8FAFC;
  padding: 3rem 0;
  border-bottom: 4px solid var(--accent);
}

.admin-view-panel.active {
  display: block;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #334155;
  padding-bottom: 1rem;
}

.admin-header h2 {
  color: #F8FAFC;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.prep-sheet-box {
  background: #1E293B;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #334155;
}

.prep-sheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

#adminMenuEditorGrid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
}

.admin-menu-card {
  background: #0F172A;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #334155;
  font-size: 0.85rem;
  min-width: 0;
}

.admin-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.admin-price-input {
  max-width: 100%;
}

.prep-item-card {
  background: #0F172A;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
}

.prep-item-card h5 {
  color: var(--accent);
  font-size: 1.1rem;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.kanban-col {
  background: #1E293B;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid #334155;
  min-width: 0;
}

.kanban-col h4 {
  color: #94A3B8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
}

.kanban-card {
  background: #0F172A;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #334155;
  min-width: 0;
}

.kanban-card h5 {
  color: #F8FAFC;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.kanban-card p {
  color: #94A3B8;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--surface);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer-col h4 {
  color: var(--surface);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: var(--surface);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Floating Cart Badge */
.cart-floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: var(--surface);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.cart-floating-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-grid, .builder-layout, .consultation-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.4rem;
    line-height: 1.18;
  }

  .family-grid, .delivery-cards-grid, .kanban-board {
    grid-template-columns: 1fr;
  }

  .builder-live-summary {
    position: relative;
    top: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .admin-actions .btn {
    flex: 1 1 220px;
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 0.65rem 0;
  }

  .nav-container {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .brand-logo {
    order: 1;
  }

  .nav-actions {
    order: 2;
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .nav-container nav {
    order: 4;
    width: 100%;
  }

  .nav-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 1.25rem !important;
    width: 100% !important;
    padding: 0.5rem 0 0.25rem !important;
    border-top: 1px solid var(--border);
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    display: inline-block;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
    font-size: 0.88rem;
  }

  .nav-links a::after {
    display: none;
  }
}

/* Tablet 2-Column Breakpoints */
@media (min-width: 640px) and (max-width: 991px) {
  .family-grid, .delivery-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .hero-section {
    padding: 2.5rem 0 3rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-badge {
    align-items: flex-start;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: none;
  }

  .hero-cta-group {
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-image-wrapper img {
    height: 300px;
  }

  .hero-floating-card {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    padding: 0.85rem;
  }

  .family-story-section,
  .app-section,
  .consultation-section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2,
  .consultation-info h2 {
    font-size: 1.8rem;
  }

  .filter-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex: 0 0 auto;
  }

  .builder-steps-wrapper,
  .builder-live-summary,
  .consultation-form-card,
  .delivery-card,
  .family-card,
  .prep-sheet-box {
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  .builder-layout {
    gap: 1.5rem;
  }

  .step-header {
    align-items: flex-start;
  }

  .step-header h3,
  .summary-header h3,
  .consultation-form-card h3 {
    font-size: 1.2rem;
  }

  .macro-ring-grid,
  .macro-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .meal-content {
    padding: 1rem;
  }

  .consultation-features li {
    align-items: flex-start;
  }

  .modal-overlay {
    align-items: flex-start;
    padding: 0.75rem;
  }

  .modal-container {
    border-radius: var(--radius-md);
    max-height: calc(100dvh - 1.5rem);
    padding: 1.25rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
  }

  .cart-line-item {
    align-items: flex-start;
  }

  .cart-floating-btn {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: calc(100% - 2rem);
    justify-content: center;
  }

  .toast-notification {
    left: 1rem;
    right: 1rem;
    bottom: 5rem;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    gap: 0.6rem;
  }

  .brand-logo-badge {
    width: 40px;
    height: 40px;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-sub {
    font-size: 0.58rem;
  }

  .badge-family {
    display: none;
  }

  .btn-nav-action {
    width: 44px;
    padding: 0.55rem;
    gap: 0.15rem;
    font-size: 0;
  }

  .btn-nav-action i {
    font-size: 1rem;
  }

  #cartCountNav {
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .cart-line-item,
  .cart-subtotal-row,
  .receipt-row,
  .summary-price-total,
  .admin-price-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .cart-qty-controls {
    align-self: flex-start;
  }

  .receipt-row span:last-child {
    align-self: flex-start;
  }

  .admin-actions .btn {
    flex-basis: 100%;
  }
}

/* WCAG AA Accessibility & Contrast Enhancements */
.tag {
  background: rgba(16, 185, 129, 0.12);
  color: #065F46; /* Dark emerald for WCAG AA 4.5:1 contrast */
  font-weight: 700;
}

.opt-price {
  color: #047857; /* Darker emerald contrast */
  font-weight: 700;
}

/* Keyboard Focus Indicators */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .opt-card:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 3px !important;
}

/* Accessible Interactive Card Keyboard State */
.opt-card {
  cursor: pointer;
}

.opt-card:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}
