/* ============================================================
   MENDOZA'S CATERING — shared styles for every page
   Warm cream base, charcoal header/hero, chile red accent,
   marigold for small decorative details only (never text on cream).
   ============================================================ */

:root {
  --cream: #F6EFE4;
  --card: #FFFBF5;
  --charcoal: #1C1714;
  --text: #241C17;
  --muted: #5E5048;          /* 6.8:1 on cream */
  --on-dark: #F6EFE4;
  --on-dark-muted: #C9B9A6;  /* 9.3:1 on charcoal */
  --red: #B5381F;            /* 5.2:1 on cream, white text on it 5.9:1 */
  --red-dark: #9A2F1A;
  --marigold: #E0A526;       /* decoration on cream; OK as text on charcoal */
  --line: #E4D8C6;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(36, 28, 23, 0.14);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Poppins', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--text); font-family: var(--sans); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 700; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); margin-top: 12px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.kicker::before { content: ''; width: 22px; height: 2px; background: var(--marigold); }
.dark .kicker { color: var(--marigold); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 999px; font: 600 1rem var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--text); color: var(--cream); }
.dark .btn-outline { border-color: rgba(246, 239, 228, 0.5); color: var(--on-dark); }
.dark .btn-outline:hover { background: var(--on-dark); color: var(--charcoal); border-color: var(--on-dark); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ── Header ── */
.site-header { background: var(--charcoal); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(224, 165, 38, 0.18); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo img { height: 58px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--marigold); }
.site-nav .btn { padding: 10px 20px; border-bottom: 0; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--on-dark); transition: transform 0.25s ease, opacity 0.25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Dark band (hero / feature) ── */
.dark { background: var(--charcoal); color: var(--on-dark); }
.dark p { color: var(--on-dark-muted); }

/* ── Home hero ── */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); color: var(--on-dark); }
.hero h1 em { font-style: italic; color: var(--marigold); }
.hero .lede { font-size: 1.12rem; margin-top: 20px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; padding: 0; list-style: none; font-size: 0.9rem; color: var(--on-dark-muted); }
.hero-tags li { display: flex; align-items: center; gap: 8px; }
.hero-tags li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--marigold); }

/* Hero photos: pasta spans both rows on the left, tacos and steak stacked on the right */
.hero-photos { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 500px; width: 100%; }
.hero-photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 16px; border: 1px solid rgba(224, 165, 38, 0.28); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.hero-photos .hp-main { grid-row: 1 / 3; }

/* ── Page hero (inner pages) ── */
.page-hero { padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--on-dark); }
.page-hero p { max-width: 640px; margin-top: 14px; font-size: 1.05rem; }

/* ── Call strip ── */
.call-strip { background: var(--red); color: #fff; }
.call-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 0; }
.call-strip p { font-family: var(--serif); font-size: 1.35rem; }
.call-strip a { color: #fff; font-weight: 600; font-size: 1.15rem; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, 0.6); }
.call-strip a:hover { border-bottom-color: #fff; }

/* ── Event cards ── */
.event-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.event-card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.event-card div { padding: 20px 20px 24px; }
.event-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.event-card p { font-size: 0.92rem; color: var(--muted); }

/* ── Menu packages ── */
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.package { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.package img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.package-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.package-body h3 { font-size: 1.35rem; }
.package-body .sub { color: var(--muted); font-size: 0.92rem; margin: 6px 0 16px; }
.package-body .sample { font-size: 0.92rem; flex: 1; }
.package-body .sample strong { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.package-body .btn { margin-top: 20px; align-self: flex-start; padding: 10px 22px; font-size: 0.92rem; }
.section-cta { text-align: center; margin-top: 40px; }

/* ── Menu page lists ── */
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.menu-cols h4 { font: 600 0.75rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.menu-cols ul { list-style: none; font-size: 0.93rem; }
.menu-cols li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.menu-cols li:last-child { border-bottom: 0; }
.how-it-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; margin-top: 56px; }
.how-it-works li { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; font-size: 0.95rem; }
.how-it-works li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 600; margin-bottom: 12px; }
.how-it-works strong { display: block; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 4px; }

/* ── Meet the chef ── */
.chef .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.chef-photo { position: relative; z-index: 0; }
.chef-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius); }
.chef-photo::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--marigold); border-radius: var(--radius); z-index: -1; }
.chef h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.chef p + p { margin-top: 14px; }
.chef blockquote { margin-top: 26px; padding-left: 20px; border-left: 3px solid var(--red); font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.chef cite { display: block; margin-top: 8px; font: 500 0.85rem var(--sans); color: var(--muted); font-style: normal; }

/* ── Photo grid (home teaser + gallery) ── */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photo-grid figure { border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.4s ease; }
.photo-grid figure:hover img { transform: scale(1.04); }
.photo-grid figcaption { padding: 10px 14px; font-size: 0.88rem; font-weight: 500; position: relative; background: var(--card); }

/* ── Instagram embeds ── */
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ig-grid .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }
.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

/* ── Booking form ── */
.booking .container { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin-top: 28px; display: grid; gap: 18px; }
.contact-list span { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--text); font-weight: 600; text-decoration: none; font-size: 1.05rem; word-break: break-word; }
.contact-list a:hover { color: var(--red); }
.service-area { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.service-area strong { color: var(--text); }
.booking-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; box-shadow: var(--shadow); }
.booking-form h2 { grid-column: 1 / -1; font-size: 1.6rem; }
.booking-form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem var(--sans); color: var(--text); background: #fff; border: 1.5px solid #CDBFAE; border-radius: 10px; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(181, 56, 31, 0.18); }
.booking-form .btn { grid-column: 1 / -1; justify-self: start; }
.form-status { grid-column: 1 / -1; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.ok { color: #2F6B2F; }
.form-status.err { color: var(--red-dark); }
.form-note { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); }

/* ── Footer ── */
.site-footer { background: var(--charcoal); color: var(--on-dark-muted); padding: 56px 0 28px; font-size: 0.92rem; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h2 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--marigold); margin-bottom: 12px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer .brand img { height: 64px; width: auto; margin-bottom: 12px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(246, 239, 228, 0.12); padding-top: 20px; font-size: 0.82rem; }

/* ── Scroll reveal (only when JS runs, and not for reduced motion) ── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .event-card:hover { transform: none; }
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .event-grid, .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .package-grid, .ig-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .chef .container, .booking .container { grid-template-columns: 1fr; gap: 44px; }
  .chef-photo { max-width: 460px; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--charcoal); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; border-bottom: 1px solid rgba(224, 165, 38, 0.18); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid rgba(246, 239, 228, 0.08); }
  .site-nav .btn { margin-top: 14px; padding: 14px; }
  .hero { padding: 36px 0 64px; }
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-photos { order: -1; height: 340px; gap: 12px; }
  .how-it-works { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero-actions .btn { width: 100%; }
  .event-grid { grid-template-columns: 1fr; }
  .menu-cols { grid-template-columns: 1fr; }
  .booking-form { grid-template-columns: 1fr; padding: 22px; }
  .call-strip .container { flex-direction: column; align-items: flex-start; }
}
