/* ===========================================================
   MELI catering site
   Light editorial palette
   Background: warm off-white #FAF7F1
   Text: near-black ink #1C1C1C
   Cards and alternating sections: deeper cream #F1ECE2
   Accent (sparing): deep plum #5C2E46
   Fonts: Playfair Display (headlines), Inter (body)
   Mobile-first.
   =========================================================== */

:root {
  --ink: #1C1C1C;
  --ink-soft: #353535;
  --bg: #FAF7F1;
  --surface: #F1ECE2;
  --plum: #5C2E46;
  --plum-dark: #4a2438;
  --white: #ffffff;
  --muted: rgba(28, 28, 28, 0.78);
  --line: rgba(28, 28, 28, 0.12);
  --whatsapp: #25D366;
  --whatsapp-dark: #1ebe5d;
  --shadow: 0 18px 44px rgba(28, 28, 28, 0.07);
  --shadow-sm: 0 8px 20px rgba(28, 28, 28, 0.05);
  --radius: 24px;
  --radius-sm: 16px;
  --maxw: 1160px;
  --pad: 20px;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.14;
  font-weight: 700;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2rem, 7vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* Layout helpers. Section padding is generous for an airy editorial rhythm. */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: clamp(72px, 13vw, 144px); }
.section--sand { background: var(--surface); }
.section__head { max-width: 620px; margin-bottom: clamp(36px, 6vw, 64px); }
.section__head p:not(.eyebrow) { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 2.5vw, 1.25rem); color: var(--muted); }
.note { color: var(--muted); font-size: 0.95rem; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--plum);
  margin: 0 0 0.7rem;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--ink-soft); border-color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

/* Mobile nav (default) */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0.5rem var(--pad) 1rem;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.site-nav a.is-active { color: var(--ink); font-weight: 600; }
.site-nav a.site-nav__wa {
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 999px;
  text-align: center;
  margin-top: 0.85rem;
  padding: 0.8rem;
  border-bottom: 0;
}
.site-nav a.site-nav__wa:hover { background: var(--whatsapp-dark); color: var(--white); }

@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.6rem;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .site-nav a {
    position: relative;
    border-bottom: 0;
    padding: 0.25rem 0;
    font-size: 1rem;
  }
  .site-nav a:not(.site-nav__wa)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }
  .site-nav a:not(.site-nav__wa):hover::after,
  .site-nav a.is-active::after { transform: scaleX(1); }
  .site-nav a.site-nav__wa { margin-top: 0; padding: 0.5rem 1.05rem; }
}

/* Hero. Full-width photo with white text over a subtle dark gradient.
   The warm tint is only a placeholder shown until hero.jpg is added. */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 80vh;
  overflow: hidden;
  background: linear-gradient(135deg, #e7e0d4, #efe8dc);
  color: var(--white);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__img.is-broken { display: none; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.30) 38%, rgba(0, 0, 0, 0) 70%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(56px, 12vw, 120px);
  max-width: 760px;
}
.hero h1 { color: var(--white); }
.hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  max-width: 560px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero .btn { background: var(--ink); color: var(--white); border-color: var(--ink); }
.hero .btn:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.hero .btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.hero .btn--ghost:hover { background: var(--white); color: var(--ink); }

/* Media wrapper with warm tint fallback before photos load */
.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e7e0d4, #f1ece2);
  aspect-ratio: 4 / 3;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media img.is-broken { opacity: 0; }

/* Feature cards (home) */
.feature-grid { display: grid; gap: 28px; }
.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 28px;
  flex: 1;
}
.feature-card__body h3 { font-size: 1.5rem; }
.feature-card__body .btn { margin-top: auto; align-self: flex-start; }

@media (min-width: 860px) {
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* Founder */
.founder { display: grid; gap: 32px; align-items: center; }
.founder__media { aspect-ratio: 1 / 1; border-radius: var(--radius); }
.founder__text { max-width: 540px; }
@media (min-width: 860px) {
  .founder { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* Founding offer banner. The only place the plum accent fills an area. */
.banner { background: var(--plum); }
.banner p {
  margin: 0;
  padding-block: 0.85rem;
  color: var(--bg);
  text-align: center;
  font-weight: 600;
  font-size: 0.98rem;
}

/* Page intro */
.page-intro {
  padding-block: clamp(60px, 12vw, 120px);
  border-bottom: 1px solid var(--line);
}
.page-intro .lead { margin-top: 0.4rem; max-width: 46ch; }

/* List with ink dots */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.list li { position: relative; padding-left: 1.4rem; }
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

/* Prices */
.price {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.5rem;
  white-space: nowrap;
  margin: 0;
}

/* Packages */
.packages { display: grid; gap: 28px; }
.package {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.package .media { aspect-ratio: 3 / 2; }
.package__body { display: flex; flex-direction: column; gap: 0.55rem; padding: 26px; flex: 1; }
.package__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.package__name { margin: 0; font-size: 1.3rem; }
.package__meta {
  margin: 0;
  color: var(--plum);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.package .list { margin-top: 0.3rem; }
.package .btn { margin-top: auto; }
.packages-note { margin-top: clamp(28px, 5vw, 40px); }

@media (min-width: 760px) {
  .packages { grid-template-columns: repeat(3, 1fr); }
}

/* Add-ons */
.addons { display: grid; gap: 22px; }
.addon {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.addon__top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.addon h3 { margin: 0; font-size: 1.1rem; }
.addon .price { font-size: 1.2rem; }
.addon p { margin: 0; color: var(--muted); font-size: 0.95rem; }

@media (min-width: 760px) {
  .addons { grid-template-columns: repeat(3, 1fr); }
}

/* Split (lunch club platters) */
.split { display: grid; gap: 32px; align-items: center; }
.split__media { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.65rem 1.05rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
}
.price-tag span { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: rgba(255, 255, 255, 0.8); }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* Benefits */
.benefits { display: grid; gap: 16px; }
.benefit { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; }
.benefit svg { flex: none; width: 22px; height: 22px; color: var(--ink); margin-top: 2px; }
@media (min-width: 760px) {
  .benefits { grid-template-columns: repeat(3, 1fr); }
}

/* Gallery row */
.gallery { display: grid; gap: 18px; }
.gallery .media { border-radius: var(--radius); aspect-ratio: 4 / 3; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.step__num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.step h3 { margin: 0.45rem 0 0.3rem; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 34px; }
}

/* Forms */
.form {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 44px);
  max-width: 640px;
  margin-inline: auto;
}
.form__grid { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231C1C1C' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 12px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.15);
}
.field--full { grid-column: 1 / -1; }
.form .btn { margin-top: 6px; }
.form__note { margin: 14px 0 0; color: var(--muted); font-size: 0.92rem; }
.form__status { margin: 12px 0 0; color: var(--ink); font-weight: 600; min-height: 1.2em; }

@media (min-width: 560px) {
  .form__grid--2 { grid-template-columns: 1fr 1fr; }
}

/* Small print */
.small-print { color: var(--muted); font-size: 0.9rem; max-width: 70ch; }
.small-print p { margin: 0.35rem 0; }

/* Footer */
.site-footer { background: var(--surface); color: var(--muted); }
.site-footer .container { padding-block: clamp(60px, 10vw, 108px); }
.footer-grid { display: grid; gap: 32px; }
.site-footer h3 { color: var(--ink); font-size: 1.05rem; }
.site-footer .brand { color: var(--ink); font-size: 1.5rem; display: inline-block; margin-bottom: 0.5rem; }
.site-footer p { color: var(--ink); }
.site-footer .note { color: var(--muted); }
.site-footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(28, 28, 28, 0.3); }
.site-footer a:hover { border-bottom-color: var(--ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; }
}

/* Floating WhatsApp button stays green */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24); }
.wa-float svg { width: 22px; height: 22px; }
@media (max-width: 380px) {
  .wa-float__label { display: none; }
  .wa-float { padding: 0.8rem; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===========================================================
   Motion: hover lifts, scroll reveal, hero zoom
   Reveal uses the individual `translate` property so it never
   fights the `transform` used for hover lifts.
   =========================================================== */

/* Centre the booking and enquiry form sections */
#request .section__head,
#signup .section__head { margin-inline: auto; text-align: center; }

/* Hover: cards and standalone images lift with a soft shadow */
.feature-card, .package, .addon,
.gallery .media, .founder__media, .split__media {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover, .package:hover, .addon:hover,
.gallery .media:hover, .founder__media:hover, .split__media:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(28, 28, 28, 0.13);
}

@media (prefers-reduced-motion: no-preference) {
  .js-anim .hero__content,
  .js-anim .page-intro .eyebrow,
  .js-anim .page-intro h1,
  .js-anim .page-intro .lead,
  .js-anim .section__head,
  .js-anim .feature-card,
  .js-anim .package,
  .js-anim .addon,
  .js-anim .step,
  .js-anim .benefit,
  .js-anim .gallery .media,
  .js-anim .founder__media,
  .js-anim .founder__text,
  .js-anim .split__media,
  .js-anim .split__text,
  .js-anim .form,
  .js-anim .price-tag,
  .js-anim .packages-note,
  .js-anim .small-print {
    opacity: 0;
    translate: 0 24px;
    transition: opacity 0.7s ease-out, translate 0.7s ease-out, transform 0.25s ease, box-shadow 0.25s ease;
  }
  .js-anim .is-visible {
    opacity: 1 !important;
    translate: 0 0 !important;
  }
  .hero__img {
    transform-origin: 50% 50%;
    animation: heroZoom 12s ease-out both;
  }
  @keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
  }
}
