/**
 * AidaFood home page sections — full-width break-out from container
 * Matches Starbelly theme styling
 */

/* In-page anchor from optional deep links */
#aidafood-about {
  scroll-margin-top: 120px;
}

/* Scroll target for “View menu & order” when shop = homepage */
#aidafood-shop-products.aidafood-shop-products-anchor {
  scroll-margin-top: 120px;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Break out of .container to span full viewport */
.aidafood-hero,
.aidafood-features,
.aidafood-dishes,
.aidafood-featured-products,
.aidafood-about-teaser,
.aidafood-chefs,
.aidafood-pickup-intro,
.aidafood-weekly-pickup,
.aidafood-bulk-order,
.aidafood-cta {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  box-sizing: border-box;
}

#aidafood-bulk-order {
  scroll-margin-top: 120px;
}

/*
 * Starbelly sets tight negative letter-spacing on global h1–h3 (display headings).
 * AidaFood sections use those tags for readable titles — Dutch compounds need normal tracking.
 */
.aidafood-hero h1.aidafood-hero-title,
h2.aidafood-section-title,
.aidafood-pickup-intro-card h3,
.aidafood-features-item h3,
.aidafood-chef-card h3,
.aidafood-about-page-content h2,
.aidafood-about-page-content h3,
h3.aidafood-dish-name {
  letter-spacing: normal;
  word-spacing: normal;
}

/* Hero — full height with background image */
.aidafood-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
}

.aidafood-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
}

.aidafood-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
}

.aidafood-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px;
  max-width: 700px;
  margin: 0 auto;
  color: #ffffff;
}

.aidafood-hero-greeting {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F5C332;
  margin-bottom: 16px;
}

.aidafood-hero .aidafood-hero-title,
.aidafood-hero h1.aidafood-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9), 0 4px 20px rgba(0,0,0,0.7);
  margin: 0 0 20px;
}

.aidafood-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95) !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  line-height: 1.6;
  margin-bottom: 32px;
}

.aidafood-hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.aidafood-btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s ease;
}

.aidafood-btn-primary {
  background: #F5C332;
  color: #1a1a1a;
}

.aidafood-btn-primary:hover {
  background: #e6b82c;
}

.aidafood-btn-secondary {
  border: 2px solid #fff;
  color: #fff;
}

.aidafood-btn-secondary:hover {
  background: #fff;
  color: #1a1a1a;
}

.aidafood-btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* Features — numbered blocks, Starbelly-style */
/* Pickup intro — from original AidaFood theme “Order for Pickup” block */
.aidafood-pickup-intro {
  background: #fff;
  padding: 60px 24px 40px;
}

.aidafood-pickup-intro-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 32px;
  background: linear-gradient(145deg, #fffef8 0%, #f9fafc 100%);
  border: 1px solid rgba(245, 195, 50, 0.35);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.aidafood-pickup-intro-card h3 {
  font-size: 1.35rem;
  margin: 0 0 12px;
  color: #1a1a1a;
}

.aidafood-pickup-intro-card p {
  margin: 0 0 24px;
  color: #555;
  line-height: 1.6;
}

.aidafood-pickup-intro-extra {
  margin: -8px 0 24px !important;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.55;
}

.aidafood-pickup-intro-extra a {
  color: #2d4a3e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aidafood-pickup-intro-extra a:hover {
  color: #1e4238;
}

/* Bulk / party inquiry */
.aidafood-bulk-order {
  background: #f8f7f4;
  padding: 56px 24px 64px;
  border-top: 1px solid rgba(30, 66, 56, 0.08);
}

.aidafood-bulk-order-lead {
  text-align: center;
  color: #555;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.6;
  font-size: 1.05rem;
}

.aidafood-bulk-order-notice {
  max-width: 560px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  border-radius: 10px;
  text-align: center;
  line-height: 1.5;
}

.aidafood-bulk-order-notice--success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}

.aidafood-bulk-order-notice--error {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #b71c1c;
}

.aidafood-bulk-order-form {
  max-width: 640px;
  margin: 0 auto;
}

.aidafood-bulk-order-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.aidafood-bulk-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

@media (max-width: 600px) {
  .aidafood-bulk-order-grid {
    grid-template-columns: 1fr;
  }
}

.aidafood-bulk-field {
  margin: 0;
}

.aidafood-bulk-field--full {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.aidafood-bulk-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: #333;
}

.aidafood-bulk-field .required {
  color: #c62828;
  font-weight: 700;
}

.aidafood-bulk-field input[type="text"],
.aidafood-bulk-field input[type="email"],
.aidafood-bulk-field input[type="tel"],
.aidafood-bulk-field input[type="number"],
.aidafood-bulk-field select,
.aidafood-bulk-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  border: 2px solid #1e4238;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
}

.aidafood-bulk-field textarea {
  resize: vertical;
  min-height: 120px;
}

.aidafood-bulk-field input:focus,
.aidafood-bulk-field select:focus,
.aidafood-bulk-field textarea:focus {
  outline: none;
  border-color: #f5c332;
  box-shadow: 0 0 0 2px rgba(245, 195, 50, 0.35);
}

.aidafood-bulk-order-submit {
  margin: 20px 0 0;
  text-align: center;
}

/* Featured products — between pickup CTA and main catalog */
.aidafood-featured-products {
  background: #F9FAFC;
  padding: 56px 24px 64px;
}

.aidafood-featured-products .aidafood-section-subtitle {
  margin-bottom: 40px;
}

.aidafood-featured-products-cta {
  text-align: center;
  margin-top: 8px;
}

/* About teaser — links to full About Us page */
.aidafood-about-teaser {
  background: #fff;
  padding: 56px 24px 48px;
}

.aidafood-about-teaser-text {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
  color: #555;
  line-height: 1.65;
  font-size: 1.05rem;
}

.aidafood-about-teaser-cta {
  text-align: center;
  margin: 0;
}

/* Full About Us page (shortcode body) */
.aidafood-about-page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 15px 40px;
}

.aidafood-about-page-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 16px;
}

.aidafood-about-page-content h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
}

.aidafood-about-page-content p {
  color: #555;
  line-height: 1.65;
  margin: 0 0 14px;
}

.aidafood-about-page-content ul {
  margin: 0;
  padding-left: 1.25em;
  color: #555;
  line-height: 1.6;
}

.aidafood-about-page-content li {
  margin-bottom: 8px;
}

.aidafood-features {
  background: #F9FAFC;
  padding: 90px 24px;
}

.aidafood-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.aidafood-features-kicker {
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 50px;
}

.aidafood-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px 36px;
}

.aidafood-features-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.aidafood-features-num {
  font-family: 'Monoton', cursive, monospace;
  font-size: 42px;
  line-height: 1;
  color: #F5C332;
  flex-shrink: 0;
}

.aidafood-features-item h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.aidafood-features-item p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

.aidafood-features-stat {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.aidafood-features-stat-num {
  font-family: 'Monoton', cursive, monospace;
  font-size: 48px;
  color: #F5C332;
  display: block;
}

.aidafood-features-stat-label {
  font-size: 0.9rem;
  color: #666;
}

/* Chefs — portrait cards */
.aidafood-chefs {
  padding: 90px 24px;
}

.aidafood-section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 12px;
}

.aidafood-section-subtitle {
  text-align: center;
  color: #666;
  max-width: 560px;
  margin: 0 auto 50px;
  line-height: 1.5;
}

.aidafood-chefs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

/* One chef: auto-fit + 1fr stretches the card full width — keep a modest column and centre it */
.aidafood-chefs-grid--single {
  grid-template-columns: min(100%, 320px);
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 360px;
}

.aidafood-chef-card {
  text-align: center;
}

/* Circular portrait — face-forward crop, brand gold + deep green (matches CTAs / pickup UI) */
.aidafood-chef-photo {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 1.35rem;
  border-radius: 50%;
  background: linear-gradient(160deg, #2d4a3e 0%, #1a2e28 45%, #152420 100%);
  border: 3px solid #f5c332;
  box-shadow:
    0 12px 32px rgba(30, 66, 56, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.06) inset;
}

.aidafood-chef-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  z-index: 1;
}

.aidafood-chef-photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.42);
  transform-origin: 50% 24%;
  transition: transform 0.4s ease;
  z-index: 0;
}

.aidafood-chef-card:hover .aidafood-chef-photo img {
  transform: scale(1.5);
  transform-origin: 50% 24%;
}

.aidafood-chef-card h3 {
  font-size: 1.2rem;
  margin: 0 0 4px;
}

.aidafood-chef-card p {
  color: #666;
  margin: 0;
  font-size: 0.95rem;
}

.aidafood-chefs-cta {
  text-align: center;
  margin-top: 50px;
}

/* Our dishes — product grid */
.aidafood-dishes {
  background: #fff;
  padding: 90px 24px;
}

.aidafood-dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px 24px;
  margin-bottom: 40px;
}

.aidafood-dish-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
}

.aidafood-dish-card:hover {
  transform: translateY(-4px);
}

.aidafood-dish-photo {
  overflow: hidden;
  background: #F2F3F5;
  border-radius: 8px;
  aspect-ratio: 1;
  margin-bottom: 16px;
}

.aidafood-dish-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.aidafood-dish-card:hover .aidafood-dish-photo img {
  transform: scale(1.05);
}

.aidafood-dish-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.aidafood-dish-price {
  font-size: 0.95rem;
  color: #F5C332;
  font-weight: 600;
  margin: 0;
}

.aidafood-dishes-cta {
  text-align: center;
}

/* CTA section */
.aidafood-cta {
  background: #F9FAFC;
  padding: 90px 24px;
}

.aidafood-cta .aidafood-section-title {
  margin-bottom: 12px;
}

.aidafood-cta .aidafood-section-subtitle {
  margin-bottom: 32px;
}

.aidafood-cta .aidafood-btn {
  display: inline-block;
}

/* Weekly pickup (home + shop) — same width as list, centred in the breakout section */
.aidafood-weekly-pickup {
  background: #fff;
  padding: 72px 24px 56px;
}

.aidafood-weekly-pickup .aidafood-container {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Weekly pickup: compact weekday rows + dish list (replaces wide matrix) */
.aidafood-screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.aidafood-weekly-by-day {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 8px 16px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.aidafood-weekly-day-block {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7rem) 1fr;
  gap: 10px 16px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  margin: 0;
}

.aidafood-weekly-day-block:last-child {
  border-bottom: 0;
}

.aidafood-weekly-day-label {
  padding-top: 2px;
}

.aidafood-weekly-day-name {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.aidafood-weekly-day-dishes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.aidafood-weekly-day-dishes li {
  margin: 0;
}

.aidafood-weekly-day-dish {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  max-width: 100%;
}

.aidafood-weekly-day-dish:hover {
  color: #F5C332;
}

.aidafood-weekly-day-dish-name {
  line-height: 1.25;
}

.aidafood-weekly-day-none {
  color: rgba(0, 0, 0, 0.35);
  font-size: 0.95rem;
  list-style: none;
}

@media (max-width: 520px) {
  .aidafood-weekly-day-block {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .aidafood-weekly-day-label {
    padding-top: 0;
  }
}

.aidafood-weekly-pickup-thumb {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  display: block;
}

.aidafood-weekly-pickup-thumb--placeholder {
  background: #f0f0f0;
}
