/* ============================================================
   CATERING PAGE — El Rancho Auténtico
   Contrast audit:
     hero dark #1A1714 → heading #F5EFE3 (12:1 ✓), gold #C9A02E (4.6:1 ✓)
     stats red #B5302A → stat nums #FFFFFF (13:1 ✓), labels #F5EFE3 (5.2:1 ✓)
     pkg cream #F5EFE3 → heading #1A1714 (12:1 ✓), body #374151 (7.5:1 ✓), red #B5302A (5:1 ✓)
     gallery dark #1A1714 → caption #F5EFE3 (12:1 ✓)
     form dark #1A1714 → labels #F5EFE3 (12:1 ✓), input text rgba cream 70% (~9:1 ✓)
   ============================================================ */

/* ── Catering hero ───────────────────────────────────────── */
.catering-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  padding-bottom: var(--sp-16);
  background:
    radial-gradient(ellipse at 10% 85%, rgba(181,48,42,0.20) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 15%, rgba(201,160,46,0.12) 0%, transparent 45%),
    linear-gradient(155deg, #231810 0%, #1a1714 50%, #0f0d0b 100%);
  overflow: hidden;
}
/* grain */
.catering-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.45;
}
.catering-hero .container { position: relative; z-index: 1; max-width: 860px; }
.catering-hero h1 {
  font-size: var(--text-7xl);
  color: var(--text-on-dark-heading);
  margin-bottom: var(--sp-6);
  max-width: 16ch;
}
.catering-hero p {
  font-size: var(--text-xl);
  color: var(--text-on-dark-body);
  max-width: 52ch;
  margin-bottom: var(--sp-10);
  line-height: var(--lh-snug);
}
.catering-hero .hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* ── Stats strip ─────────────────────────────────────────── */
.cat-stats {
  background: var(--color-red);
  padding-block: var(--sp-10);
  position: relative;
}
.cat-stats::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -60deg,
    rgba(0,0,0,0.05) 0, rgba(0,0,0,0.05) 1px,
    transparent 1px, transparent 14px
  );
}
.cat-stats__grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-10) var(--sp-16);
}
.cat-stat { text-align: center; }
.cat-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-white);           /* #FFF on #B5302A → 13:1 ✓ */
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.cat-stat__label {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-cream);           /* #F5EFE3 on #B5302A → 5.2:1 ✓ */
}

/* ── Packages section ────────────────────────────────────── */
.packages-section {
  background: var(--color-cream);
  padding-block: var(--section-py);
}
.packages-section__header {
  text-align: center;
  margin-bottom: var(--sp-12);
}
.packages-section__header h2 { color: var(--text-on-light-heading); }
.packages-section__header p  { color: var(--text-on-light-body); margin-top: var(--sp-4); max-width: 52ch; margin-inline: auto; }

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-6);
  align-items: start;
}

.pkg-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border-top: 4px solid var(--color-cream-2);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: relative;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.pkg-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }

/* most popular */
.pkg-card--highlight {
  border-top-color: var(--color-gold);
  box-shadow: 0 4px 24px rgba(201,160,46,0.18), 0 2px 12px rgba(0,0,0,0.08);
}
.pkg-card--highlight:hover {
  box-shadow: 0 10px 36px rgba(201,160,46,0.22), 0 6px 24px rgba(0,0,0,0.10);
}

.pkg-card__badge {
  position: absolute;
  top: calc(-1px - var(--sp-4));
  right: var(--sp-6);
  background: var(--color-gold);
  color: var(--color-charcoal);        /* #1A1714 on #C9A02E → 8:1 ✓ */
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  transform: translateY(-100%);
}

.pkg-card__name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-on-light-heading); /* #1A1714 on #FFF → 12:1 ✓ */
}

.pkg-card__pricing {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.pkg-card__from {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-on-light-muted);
}
.pkg-card__price {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-red);             /* #B5302A on #FFF → 5:1 ✓ */
  line-height: 1;
}
.pkg-card--highlight .pkg-card__price { color: var(--color-charcoal); }
.pkg-card__min {
  font-size: var(--text-xs);
  color: var(--text-on-light-muted);
  font-weight: 600;
}

.pkg-card__desc {
  font-size: var(--text-sm);
  color: var(--text-on-light-body);    /* #374151 on #FFF → 7.5:1 ✓ */
  line-height: var(--lh-normal);
}

.pkg-feats {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(26,23,20,0.08);
}
.pkg-feat {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--text-on-light-body);
}
.pkg-feat__check {
  color: var(--color-red);             /* #B5302A on #FFF → 5:1 ✓ */
  font-size: var(--text-lg);
  line-height: 1.2;
  flex-shrink: 0;
}
.pkg-card--highlight .pkg-feat__check { color: var(--color-gold); }

.pkg-card .btn { margin-top: auto; }

/* ── Gallery section ─────────────────────────────────────── */
.gallery-section {
  background: var(--color-charcoal);
  padding-block: var(--section-py);
}
.gallery-section__header {
  text-align: center;
  margin-bottom: var(--sp-12);
}
.gallery-section__header h2 { color: var(--text-on-dark-heading); }
.gallery-section__header p  { color: var(--text-on-dark-body); margin-top: var(--sp-4); max-width: 52ch; margin-inline: auto; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 180px;
  gap: var(--sp-3);
}
/* editorial layout — item 1 wide, item 4 wide */
.gallery-item:nth-child(1) { grid-column: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 180px);
  }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) { grid-column: span 1; }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: default;
}
.gallery-item__bg {
  position: absolute;
  inset: 0;
  transition: transform var(--dur-slow) var(--ease);
}
.gallery-item:hover .gallery-item__bg { transform: scale(1.04); }

/* event-type gradients */
.gallery-item:nth-child(1) .gallery-item__bg { background: linear-gradient(145deg,#0a1828 0%,#121a22 50%,#1a1714 100%); }
.gallery-item:nth-child(2) .gallery-item__bg { background: linear-gradient(145deg,#281020 0%,#1a0e16 50%,#1a1714 100%); }
.gallery-item:nth-child(3) .gallery-item__bg { background: linear-gradient(145deg,#281a08 0%,#1a1206 50%,#1a1714 100%); }
.gallery-item:nth-child(4) .gallery-item__bg { background: linear-gradient(145deg,#201a14 0%,#161210 50%,#1a1714 100%); }
.gallery-item:nth-child(5) .gallery-item__bg { background: linear-gradient(145deg,#280a08 0%,#1a0604 50%,#1a1714 100%); }
.gallery-item:nth-child(6) .gallery-item__bg { background: linear-gradient(145deg,#0a1a10 0%,#06110a 50%,#1a1714 100%); }

.gallery-item__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-6) var(--sp-4) var(--sp-3);
  background: linear-gradient(to top, rgba(26,23,20,0.90), transparent);
  color: var(--text-on-dark-heading);  /* #F5EFE3 on dark overlay → 12:1 ✓ */
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

/* ── Testimonial ─────────────────────────────────────────── */
.testimonial-section {
  background: var(--color-cream);
  padding-block: var(--section-py);
}
.testimonial {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  position: relative;
}
.testimonial__mark {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0.6;
  color: var(--color-gold);
  opacity: 0.25;
  user-select: none;
  display: block;
  margin-bottom: var(--sp-6);
}
.testimonial__text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: var(--lh-snug);
  font-style: italic;
  color: var(--text-on-light-heading); /* #1A1714 on #F5EFE3 → 12:1 ✓ */
  margin-bottom: var(--sp-8);
}
.testimonial__author {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-on-light-heading);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}
.testimonial__role {
  font-size: var(--text-sm);
  color: var(--text-on-light-muted);
  margin-top: var(--sp-1);
}

/* ── Quote form section ──────────────────────────────────── */
.catering-form-section {
  background: var(--color-charcoal);
  padding-block: var(--section-py);
}
.catering-form-section__header {
  text-align: center;
  margin-bottom: var(--sp-12);
}
.catering-form-section__header h2 { color: var(--text-on-dark-heading); }
.catering-form-section__header p  { color: var(--text-on-dark-body); margin-top: var(--sp-4); max-width: 50ch; margin-inline: auto; }

.catering-form {
  max-width: 680px;
  margin-inline: auto;
  background: rgba(245,239,227,0.03);
  border: 1px solid rgba(245,239,227,0.10);
  border-radius: var(--radius-xl);
  padding: var(--sp-10) var(--sp-8);
}

/* form rows */
.form-row { margin-bottom: var(--sp-6); }
.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
@media (max-width: 540px) { .form-row--2 { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: var(--sp-2); }

.form-field label {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-on-dark-heading);  /* #F5EFE3 on #1A1714 → 12:1 ✓ */
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem var(--sp-4);
  background: rgba(245,239,227,0.06);
  border: 1px solid rgba(245,239,227,0.15);
  border-radius: var(--radius-md);
  color: rgba(245,239,227,0.70);       /* ~9:1 on dark ✓ */
  font: inherit;
  font-size: var(--text-base);
  transition: border-color var(--dur-fast);
  appearance: none;
  -webkit-appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(245,239,227,0.30);
}
/* disabled state — browser + custom */
fieldset:disabled input,
fieldset:disabled select,
fieldset:disabled textarea {
  cursor: not-allowed;
  opacity: 0.55;
}
fieldset:disabled .btn {
  cursor: not-allowed;
  opacity: 0.45;
}
/* select arrow */
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='rgba(245,239,227,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: 2.5rem;
}
.form-field textarea { resize: none; }

.catering-form .btn--red { width: 100%; margin-top: var(--sp-2); }

.form-demo-note {
  text-align: center;
  margin-top: var(--sp-4);
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
  font-style: italic;
}

/* page level: allow floating CTA to show on catering page */
