/* =========================================================
   Simply The Best Catering — stylesheet
   Palette: tomato red, saffron gold, charcoal on warm cream.
   ========================================================= */

:root {
  --red: #d1342f;
  --red-deep: #a8231f;
  --red-soft: #fdeceb;
  --gold: #f2b134;
  --gold-deep: #d9951a;
  --cream: #fff8f1;
  --cream-2: #fbefe3;
  --ink: #1f1412;
  --ink-2: #4a3a37;
  --muted: #7b6a66;
  --line: #efdcd1;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(60, 20, 10, .10);
  --shadow-lg: 0 25px 60px rgba(60, 20, 10, .18);
  --radius: 22px;
  --radius-sm: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
.container { width: min(1160px, 100% - 2rem); margin-inline: auto; }
@media (min-width: 720px) { .container { width: min(1160px, 100% - 4rem); } }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 999;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-bottom: .9rem;
}
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.accent { color: var(--gold); }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head .lead { margin-top: .5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  font-family: var(--sans);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(209, 52, 47, .35); }
.btn--primary:hover { background: var(--red-deep); color: #fff; box-shadow: 0 14px 30px rgba(209, 52, 47, .42); }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,.26); color: #fff; }
.btn--outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn--outline:hover { background: var(--red); color: #fff; }
.btn--sm { padding: .65rem 1.2rem; font-size: .92rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, color .35s;
  color: #fff;
}
.nav.is-solid {
  background: rgba(255, 248, 241, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(60, 20, 10, .08);
  color: var(--ink);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: inherit; }
.brand:hover { color: inherit; }
.brand__logo {
  height: 64px; width: auto; display: block;
  transition: filter .35s;
  /* Logo is black line art: show it white over the dark hero, as-is once the nav is solid. */
  filter: brightness(0) invert(1);
}
.nav.is-solid .brand__logo { filter: none; }
.brand--light .brand__logo { height: 96px; filter: brightness(0) invert(1); }
.nav__links { display: none; align-items: center; gap: 1.8rem; }
.nav__links a:not(.btn) { color: inherit; font-weight: 500; position: relative; padding: .3rem 0; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; border: 0; background: transparent; cursor: pointer; color: inherit;
}
.nav__toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 860px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
}
@media (max-width: 859px) {
  .nav.is-open { background: var(--cream); color: var(--ink); }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--cream); padding: 1rem 1.5rem 1.5rem; box-shadow: var(--shadow);
    border-top: 1px solid var(--line);
  }
  .nav__links.is-open a:not(.btn) { font-size: 1.2rem; padding: .6rem 0; width: 100%; }
  .nav__links.is-open .btn { margin-top: .6rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 960px); display: grid; place-items: center;
  overflow: hidden; color: #fff; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: -20% 0; z-index: -2;
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 70% at 20% 90%, rgba(209, 52, 47, .6), transparent 60%),
    linear-gradient(180deg, rgba(20, 8, 6, .7) 0%, rgba(20, 8, 6, .55) 45%, rgba(20, 8, 6, .85) 100%);
}
.hero__content { padding: calc(var(--nav-h) + 3rem) 0 6rem; max-width: 56rem; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { max-width: 12ch; margin-bottom: .6rem; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero .lead { color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--gold); animation: scrollhint 1.8s infinite;
}
@keyframes scrollhint { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(14px); opacity: 0 } 100% { opacity: 0 } }

/* ---------- Gallery / slider ---------- */
.gallery { padding: 5.5rem 0 4rem; background: var(--cream); }
.gallery .section-head { text-align: center; margin-inline: auto; }
.slider {
  position: relative; width: min(1100px, 100% - 1rem); margin: 0 auto;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9; background: var(--ink);
  touch-action: pan-y;
}
@media (max-width: 640px) { .slider { aspect-ratio: 4 / 3; } }
.slider__track { display: flex; height: 100%; transition: transform .6s var(--ease); will-change: transform; }
.slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; cursor: zoom-in; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1.5rem 1.2rem;
  background: linear-gradient(transparent, rgba(20, 8, 6, .7));
  color: #fff; font-weight: 500; font-size: .95rem;
}
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--ink); display: grid; place-items: center;
  box-shadow: var(--shadow); transition: background .2s, transform .2s;
}
.slider__btn svg { width: 22px; height: 22px; }
.slider__btn:hover { background: var(--gold); transform: translateY(-50%) scale(1.06); }
.slider__btn--prev { left: 1rem; }
.slider__btn--next { right: 1rem; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: .9rem; display: flex; justify-content: center; gap: .5rem; z-index: 2; }
.slider__dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.5); transition: width .3s var(--ease), background .3s;
}
.slider__dots button[aria-selected="true"] { background: var(--gold); width: 28px; border-radius: 6px; }
.gallery__hint { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1.2rem; }
.slider__empty { display: grid; place-items: center; height: 100%; color: #fff; padding: 2rem; text-align: center; }

/* ---------- About ---------- */
.about { padding: 5rem 0 6rem; background: var(--white); }
.about__grid { display: grid; gap: 3rem; align-items: start; margin-bottom: 4rem; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1.4fr 1fr; gap: 5rem; } }
.about__text h2 { max-width: 20ch; }
.about__text p { color: var(--ink-2); max-width: 60ch; }
.about__stats { display: grid; gap: 1rem; }
@media (min-width: 560px) and (max-width: 899px) { .about__stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .2rem;
  position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--red); }
.stat strong { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--red); }
.stat span { color: var(--muted); font-size: .92rem; }
.cards { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-2); font-size: .97rem; margin: 0; }

/* ---------- Charity ---------- */
.charity { padding: 6rem 0; background: var(--red); color: #fff; position: relative; overflow: hidden; }
.charity::before {
  content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  right: -20vw; top: -30vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 177, 52, .35), transparent 65%);
}
.charity__grid { display: grid; gap: 2.5rem; align-items: center; position: relative; }
@media (min-width: 860px) { .charity__grid { grid-template-columns: 240px 1fr; gap: 4rem; } }
.charity__badge { width: 180px; margin-inline: auto; color: var(--gold); }
@media (min-width: 860px) { .charity__badge { width: 240px; } }
.charity .eyebrow { color: var(--gold); }
.charity h2 { color: #fff; }
.charity p { color: rgba(255,255,255,.9); max-width: 62ch; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .8rem; max-width: 62ch; }
.checklist li { position: relative; padding-left: 2rem; color: rgba(255,255,255,.92); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='black'/%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='black'/%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.charity .btn--outline { color: #fff; border-color: rgba(255,255,255,.7); }
.charity .btn--outline:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- Contact ---------- */
.contact { padding: 6rem 0; background: var(--cream-2); }
.contact__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; } }
.contact__people { display: grid; gap: 1.2rem; align-content: start; }
.person {
  display: flex; gap: 1.2rem; background: var(--white); border-radius: var(--radius);
  padding: 1.5rem; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.person__avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
}
.person__avatar svg { width: 26px; height: 26px; }
.person__note { color: var(--ink-2); font-size: .95rem; margin: 0; }
.person h3 { margin-bottom: .1rem; }
.person__role { color: var(--muted); font-size: .9rem; margin-bottom: .7rem; }
.person a { display: block; font-weight: 500; color: var(--ink); padding: .15rem 0; }
.person a:hover { color: var(--red); }
.person a span { color: var(--muted); font-weight: 400; font-size: .9rem; }
.socials { display: flex; gap: .8rem; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink); transition: background .2s, color .2s, transform .2s;
}
.socials a:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }

.form {
  background: var(--white); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line);
  box-shadow: var(--shadow); display: grid; gap: 1rem;
}
.form__row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.form input, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%;
  padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(209, 52, 47, .14); background: #fff; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--red); }
.form textarea { resize: vertical; min-height: 120px; }
.form .btn { justify-self: start; margin-top: .4rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { margin: 0; font-size: .92rem; color: var(--muted); min-height: 1.4em; }
.form__status.is-ok { color: #1f7a3a; }
.form__status.is-err { color: var(--red-deep); }

/* ---------- Footer ---------- */
.footer { background: #1a0d0c; color: rgba(255,255,255,.75); padding: 3rem 0 2.5rem; }
.footer__inner { display: grid; gap: 1.5rem; justify-items: center; text-align: center; }
@media (min-width: 860px) { .footer__inner { grid-template-columns: 1fr auto 1fr; justify-items: start; text-align: left; align-items: center; } .footer__copy { justify-self: end; } }
.brand--light { color: #fff; }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: rgba(255,255,255,.75); font-weight: 500; }
.footer__links a:hover { color: var(--gold); }
.footer__copy { margin: 0; font-size: .88rem; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(20, 8, 6, .92); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; max-width: min(92vw, 1300px); max-height: 90vh; display: grid; gap: .8rem; justify-items: center; }
.lightbox__figure img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__figure figcaption { color: rgba(255,255,255,.85); font-size: .95rem; }
.lightbox__close, .lightbox__nav {
  position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); }
.lightbox__close svg, .lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
@media (max-width: 640px) { .lightbox__nav { top: auto; bottom: 1.2rem; transform: none; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Motion & a11y ---------- */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__bg { transform: none !important; }
}
