/* ============================================
   PASTABILITIES FOOD SERVICE PAGES
   Place in: pasta-theme/css/food-service.css
   ============================================ */

/* Hide product category carousel on food service pages */
.page-template-food-service-template #nav-wrap,
.single-fs_category #nav-wrap {
  display: none !important;
}

/* Override theme's entry-content padding */
.page-template-food-service-template .entry-content,
.single-fs_category .entry-content {
  padding-top: 0 !important;
}
/* Kill empty p tags WordPress auto-inserts */
.entry-content > p:first-child:not(.fs-intro),
.entry-content > p:first-child + p:not(.fs-intro):not([class]) {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* --- Food Service Navigation Tabs --- */
.fs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 30px 0;
  padding: 0;
  list-style: none;
  border-bottom: 3px solid #002f65;
}
.fs-nav a {
  display: block;
  padding: 12px 24px;
  background: #e8edf3;
  color: #002f65;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #ccc;
  border-bottom: none;
  margin-right: 2px;
  transition: all 0.2s ease;
}
.fs-nav a:hover,
.fs-nav a.active {
  background: #002f65;
  color: #fff;
  border-color: #002f65;
}

/* --- Compact Header Bar (replaces hero) --- */
.fs-header-bar {
  background: #002f65;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 30px 0;
  margin-bottom: 30px;
  border-top: 1px solid #ffffff96;
}
.fs-header-bar h1 {
  color: #fff;
  font-size: 32px;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.fs-header-bar p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  margin: 0;
}

/* --- Page Headings --- */
.fs-page-title {
  color: #002f65;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 10px 0;
  padding-bottom: 15px;
  border-bottom: 3px solid #002f65;
}
.fs-section-title {
  color: #002f65;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 30px 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}
.fs-subsection-title {
  color: #333;
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 10px 0;
}
.fs-intro {
  font-size: 16px;
  color: #5c6c87;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* --- Category Cards (Homepage) --- */
.fs-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
  justify-content: center;
}
.fs-categories .fs-card {
  flex: 0 1 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
}
.fs-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  background: #fff;
  padding: 0;
}
.fs-card:hover {
  box-shadow: 0 6px 20px rgba(0,47,101,0.15);
  transform: translateY(-3px);
}
.fs-card img {
  width: 100% !important;
  min-width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
.fs-card-body {
  padding: 18px;
}
.fs-card-body h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #002f65;
  text-transform: uppercase;
}
.fs-card-body p {
  margin: 0;
  color: #5c6c87;
  font-size: 14px;
  line-height: 1.5;
}
.fs-card a,
.fs-card a:hover,
.fs-card a:focus,
.fs-card a:visited {
  text-decoration: none !important;
  color: inherit;
  display: block;
  padding: 0;
  margin: 0;
}
.fs-card a br {
  display: none !important;
}

/* --- Product Tables --- */
.fs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0 25px 0;
  font-size: 14px;
}
.fs-table th {
  background: #002f65;
  color: #fff;
  padding: 10px 15px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.fs-table td {
  padding: 10px 15px;
  border-bottom: 1px solid #e8e8e8;
  color: #333;
}
.fs-table tr:nth-child(even) {
  background: #f8f9fb;
}
.fs-table tr:hover {
  background: #eef2f7;
}

/* --- Product List --- */
.fs-product-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px 0;
  columns: 2;
  column-gap: 30px;
}
.fs-product-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  break-inside: avoid;
}
.fs-product-list li::before {
  content: "\2022";
  color: #002f65;
  font-weight: bold;
  position: absolute;
  left: 0;
}
.fs-product-list.single-col {
  columns: 1;
}

/* --- Tags / Badges --- */
.fs-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 6px;
}
.fs-badge-vegan { background: #e8f5e9; color: #2e7d32; }
.fs-badge-gf { background: #fff3e0; color: #e65100; }
.fs-badge-new { background: #e3f2fd; color: #1565c0; }

/* --- Size/Pack Callout --- */
.fs-size-callout {
  display: inline-block;
  background: #002f65;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  margin: 10px 0 15px 0;
  letter-spacing: 0.5px;
}
.fs-size-callout span {
  font-weight: 400;
  opacity: 0.85;
  margin-left: 8px;
}

/* --- Contact CTA --- */
.fs-contact {
  background: #002f65;
  color: #fff;
  padding: 30px;
  border-radius: 6px;
  margin: 30px 0;
  text-align: center;
}
.fs-contact h3 {
  color: #fff;
  margin: 0 0 10px 0;
  font-size: 20px;
  text-transform: uppercase;
}
.fs-contact p {
  margin: 5px 0;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
}
.fs-contact a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s ease;
}
.fs-contact a:hover {
  color: #fff;
  border-bottom-color: #fff;
  text-decoration: none;
}

/* --- Image + Text Layout --- */
.fs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  margin: 25px 0;
}
.fs-two-col img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* --- Side-by-side Image Pair (within full-width context) --- */
.fs-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.fs-image-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* --- Stacked Images with height cap (within two-col) --- */
.fs-image-stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.fs-image-stack img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 6px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .fs-categories .fs-card {
    flex: 0 1 100%;
    max-width: 100%;
  }
  .fs-two-col {
    grid-template-columns: 1fr;
  }
  .fs-product-list {
    columns: 1;
  }
  .fs-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .fs-nav a {
    padding: 10px 14px;
    font-size: 12px;
    white-space: nowrap;
  }
  .fs-hero-overlay {
    padding-left: 20px;
  }
  .fs-hero-overlay h1 {
    font-size: 24px;
  }
}