/* Leo Catering — homepage styles.
   All colors/fonts come from CSS variables defined in the host page so the
   Tweaks panel updates everything live. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--leo-navy);
  color: var(--leo-cream);
  font-family: var(--leo-font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ────────────────────────────────────────────────────────────── */
/* NAV                                                          */
/* ────────────────────────────────────────────────────────────── */
.leo-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px 40px;
  background: rgba(14, 26, 62, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(244, 239, 226, 0.08);
}
.leo-nav-brand { display: flex; align-items: center; line-height: 0; }
.leo-nav-brand img { width: 48px; height: 48px; }
.leo-nav-links { display: flex; gap: 28px; }
.leo-nav-links a {
  text-decoration: none; color: var(--leo-cream);
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  opacity: .75; transition: opacity .15s;
}
.leo-nav-links a:hover { opacity: 1; }
.leo-nav-cta {
  text-decoration: none;
  padding: 10px 18px; border: 1.5px solid var(--leo-cream); border-radius: 999px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--leo-cream);
  transition: background .15s, color .15s;
}
.leo-nav-cta:hover { background: var(--leo-marigold); border-color: var(--leo-marigold); color: var(--leo-navy); }

/* ────────────────────────────────────────────────────────────── */
/* HERO                                                         */
/* ────────────────────────────────────────────────────────────── */
.leo-hero {
  position: relative; min-height: calc(100vh - 76px); min-height: calc(100svh - 76px);
  background: var(--leo-navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 100px 40px;
  overflow: hidden;
}
.leo-hero-halo {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: clamp(420px, 60vw, 820px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--leo-marigold) 18%, transparent) 0%, transparent 62%);
  pointer-events: none;
}
.leo-hero-tag {
  position: absolute; top: 92px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: color-mix(in oklab, var(--leo-cream) 55%, transparent);
}
.leo-hero-tag-left  { left: 40px; }
.leo-hero-tag-right { right: 40px; text-align: right; line-height: 1.5; }

.leo-hero-logo {
  width: clamp(260px, 36vw, 460px);
  margin: 0;
}
.leo-hero-logo > svg { width: 100%; height: auto; display: block; }
.leo-hero-headline {
  margin: 36px 0 0;
  font-family: var(--leo-font-display);
  font-style: italic; font-weight: 400;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--leo-cream);
  text-align: center;
  text-wrap: balance;
}
.leo-hero-cta {
  margin-top: 44px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.leo-hero-sub {
  font-family: var(--leo-font-accent);
  color: var(--leo-marigold);
  font-size: 22px;
  opacity: .9;
}

/* ────────────────────────────────────────────────────────────── */
/* SHARED SECTION CHROME                                        */
/* ────────────────────────────────────────────────────────────── */
.leo-section {
  padding: 120px 40px;
  position: relative;
}
.leo-section-head {
  max-width: 1200px;
  margin: 0 auto 64px;
  text-align: center;
}
.leo-eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: color-mix(in oklab, currentColor 50%, transparent);
  margin-bottom: 14px;
}
.leo-eyebrow-marigold { color: var(--leo-marigold); }
.leo-section-title {
  margin: 0;
  font-family: var(--leo-font-display);
  font-style: italic; font-weight: 400;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.leo-section-title-light { color: var(--leo-cream); }

/* Primary CTA button (used in hero + form) */
.leo-btn {
  display: inline-flex; align-items: center;
  text-decoration: none;
  border: none; cursor: pointer;
  font-family: var(--leo-font-body);
  font-weight: 600; font-size: 16px; letter-spacing: .01em;
  border-radius: 999px;
  padding: 18px 30px;
  transition: transform .15s, box-shadow .2s, filter .15s;
}
.leo-btn-primary {
  background: var(--leo-marigold); color: var(--leo-navy);
  box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--leo-marigold) 90%, transparent);
}
.leo-btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.leo-btn-primary:active { transform: translateY(0); }

/* ────────────────────────────────────────────────────────────── */
/* SERVICES                                                     */
/* ────────────────────────────────────────────────────────────── */
.leo-services { background: var(--leo-paper); color: var(--leo-navy); }
.leo-services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 48px;
}
.leo-service {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .25s;
}
.leo-service:hover { transform: translateY(-3px); }
.leo-service-photo {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: color-mix(in oklab, var(--leo-navy) 10%, var(--leo-paper));
  margin-bottom: 22px;
}
.leo-service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.leo-service:hover .leo-service-photo img { transform: scale(1.04); }
.leo-service-label {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: color-mix(in oklab, var(--leo-navy) 60%, transparent);
  margin-bottom: 10px;
}
.leo-service-headline {
  margin: 0 0 12px;
  font-family: var(--leo-font-display); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--leo-navy);
}
.leo-service-blurb {
  margin: 0 0 16px;
  font-size: 16px; line-height: 1.55;
  color: color-mix(in oklab, var(--leo-navy) 80%, transparent);
  max-width: 44ch;
}
.leo-service-link {
  font-size: 14px; letter-spacing: .04em;
  color: var(--leo-navy);
  border-bottom: 1.5px solid var(--leo-marigold);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color .15s, border-color .15s;
}
.leo-service:hover .leo-service-link { color: color-mix(in oklab, var(--leo-marigold) 70%, var(--leo-navy)); }

/* ────────────────────────────────────────────────────────────── */
/* ABOUT                                                        */
/* ────────────────────────────────────────────────────────────── */
.leo-about {
  background: var(--leo-navy);
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.leo-about-portrait { position: relative; }
/* Real portrait photo (replaced the placeholder div). */
.leo-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  background: color-mix(in oklab, var(--leo-navy) 8%, var(--leo-paper));
}

.leo-about-caption {
  position: absolute;
  right: -20px; top: 30px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--leo-font-accent);
  font-size: 24px;
  color: var(--leo-marigold);
  transform: rotate(-4deg);
}

.leo-about-copy { color: var(--leo-cream); }
.leo-about-p {
  margin: 0 0 18px;
  font-size: 18px; line-height: 1.6;
  color: color-mix(in oklab, var(--leo-cream) 88%, transparent);
  max-width: 50ch;
  text-wrap: pretty;
}
.leo-about-signoff {
  margin: 24px 0 0;
  font-family: var(--leo-font-accent);
  font-size: 32px;
  color: var(--leo-marigold);
}
.leo-section-title-light em { font-style: italic; }

/* ────────────────────────────────────────────────────────────── */
/* EVENTS                                                       */
/* ────────────────────────────────────────────────────────────── */
.leo-events { background: var(--leo-paper); color: var(--leo-navy); }
.leo-events-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}
.leo-event { margin: 0; }
.leo-event-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: color-mix(in oklab, var(--leo-navy) 8%, var(--leo-paper));
}
.leo-event-photo img,
.leo-event-photo > div { width: 100%; height: 100%; object-fit: cover; }
.leo-event-caption {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px;
  font-size: 14px;
}
.leo-event-label { font-family: var(--leo-font-display); font-style: italic; font-size: 20px; color: var(--leo-navy); }
.leo-event-when  { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in oklab, var(--leo-navy) 55%, transparent); }

/* ────────────────────────────────────────────────────────────── */
/* TESTIMONIAL                                                  */
/* ────────────────────────────────────────────────────────────── */
.leo-testimonial {
  background: var(--leo-marigold); color: var(--leo-navy);
  padding: 140px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.leo-quote {
  margin: 0 auto;
  max-width: 22ch;
  font-family: var(--leo-font-display); font-style: italic; font-weight: 400;
  font-size: clamp(36px, 5.6vw, 76px);
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
  position: relative;
}
.leo-quote-mark {
  position: absolute;
  left: -.4em; top: -.2em;
  font-size: 1.4em;
  opacity: .35;
}
.leo-quote-attrib { margin-top: 44px; }
.leo-quote-name {
  font-family: var(--leo-font-accent);
  font-size: 28px;
  color: var(--leo-navy);
}
.leo-quote-event {
  margin-top: 4px;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: color-mix(in oklab, var(--leo-navy) 65%, transparent);
}

/* ────────────────────────────────────────────────────────────── */
/* SOURCING                                                     */
/* ────────────────────────────────────────────────────────────── */
.leo-sourcing { background: var(--leo-paper); color: var(--leo-navy); }
.leo-values {
  max-width: 900px; margin: 0 auto;
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}
.leo-value {
  display: flex; gap: 18px;
}
.leo-value-t {
  font-family: var(--leo-font-display); font-style: italic;
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.leo-value-d {
  font-size: 15px; line-height: 1.6;
  color: color-mix(in oklab, var(--leo-navy) 75%, transparent);
}

/* ────────────────────────────────────────────────────────────── */
/* ENQUIRE                                                      */
/* ────────────────────────────────────────────────────────────── */
.leo-enquire {
  background: var(--leo-navy); color: var(--leo-cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.leo-enquire-copy { padding-top: 8px; }
.leo-enquire-title {
  margin: 8px 0 22px;
  font-family: var(--leo-font-display); font-style: italic; font-weight: 400;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.0;
  letter-spacing: -.015em;
  color: var(--leo-cream);
}
.leo-enquire-p {
  max-width: 38ch;
  font-size: 18px; line-height: 1.55;
  color: color-mix(in oklab, var(--leo-cream) 85%, transparent);
  margin: 0 0 36px;
}
.leo-enquire-meta {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 15px;
  color: color-mix(in oklab, var(--leo-cream) 88%, transparent);
}
.leo-enquire-meta-label {
  display: inline-block;
  width: 60px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: color-mix(in oklab, var(--leo-cream) 55%, transparent);
  margin-right: 10px;
}

.leo-form {
  background: color-mix(in oklab, var(--leo-cream) 6%, var(--leo-navy));
  border: 1px solid color-mix(in oklab, var(--leo-cream) 12%, transparent);
  padding: 36px;
  display: flex; flex-direction: column; gap: 18px;
}
.leo-form-row { display: flex; flex-direction: column; gap: 18px; }
.leo-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.leo-form label {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in oklab, var(--leo-cream) 70%, transparent);
}
.leo-form input,
.leo-form textarea,
.leo-form select {
  font-family: var(--leo-font-body);
  font-size: 16px;
  letter-spacing: 0; text-transform: none;
  color: var(--leo-cream);
  background: transparent;
  border: none; border-bottom: 1.5px solid color-mix(in oklab, var(--leo-cream) 22%, transparent);
  padding: 8px 0;
  outline: none;
  transition: border-color .15s;
  width: 100%;
  resize: vertical;
}
.leo-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--leo-marigold) 50%), linear-gradient(135deg, var(--leo-marigold) 50%, transparent 50%); background-position: calc(100% - 14px) 16px, calc(100% - 8px) 16px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 30px; }
.leo-form select option { background: var(--leo-navy); color: var(--leo-cream); }
.leo-form input::placeholder,
.leo-form textarea::placeholder { color: color-mix(in oklab, var(--leo-cream) 35%, transparent); }
.leo-form input:focus,
.leo-form textarea:focus,
.leo-form select:focus { border-bottom-color: var(--leo-marigold); }
.leo-form-submit { align-self: flex-start; margin-top: 12px; }
.leo-form-success {
  padding: 30px 0;
  text-align: center;
  font-family: var(--leo-font-body);
  color: var(--leo-cream);
}

/* ────────────────────────────────────────────────────────────── */
/* FOOTER                                                       */
/* ────────────────────────────────────────────────────────────── */
.leo-footer {
  background: var(--leo-ink); color: var(--leo-cream);
  padding: 80px 40px 32px;
}
.leo-footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid color-mix(in oklab, var(--leo-cream) 12%, transparent);
}
.leo-footer-grid > div { display: flex; flex-direction: column; gap: 10px; }
.leo-footer-grid > div > * { margin: 0; }
.leo-footer-logo { width: 56px; height: 56px; margin-bottom: 8px; }
.leo-footer-tag { font-size: 14px; line-height: 1.5; color: color-mix(in oklab, var(--leo-cream) 65%, transparent); max-width: 22ch; }
.leo-footer-h {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: color-mix(in oklab, var(--leo-cream) 55%, transparent);
  margin-bottom: 6px;
}
.leo-footer a, .leo-footer p {
  font-size: 15px;
  color: color-mix(in oklab, var(--leo-cream) 90%, transparent);
  text-decoration: none;
  line-height: 1.5;
}
.leo-footer a:hover { color: var(--leo-marigold); }
.leo-footer-bottom {
  max-width: 1200px; margin: 28px auto 0;
  display: flex; justify-content: space-between;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in oklab, var(--leo-cream) 45%, transparent);
}

/* ────────────────────────────────────────────────────────────── */
/* RESPONSIVE                                                   */
/* ────────────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .leo-nav { padding: 12px 20px; gap: 12px; }
  .leo-nav-links { display: none; }
  .leo-nav-brand img { width: 40px; height: 40px; }
  .leo-nav-cta { padding: 8px 14px; font-size: 11px; }

  .leo-hero { padding: 80px 24px; min-height: calc(100svh - 64px); }
  .leo-hero-tag { display: none; }
  .leo-hero-logo { width: 78vw; max-width: 380px; }
  .leo-hero-headline { font-size: 28px; margin-top: 24px; }
  .leo-hero-cta { margin-top: 36px; }

  .leo-section { padding: 80px 24px; }
  .leo-section-head { margin-bottom: 44px; }
  .leo-section-title { font-size: 36px; }

  .leo-services-grid { grid-template-columns: 1fr; gap: 56px; }

  .leo-about {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 80px 24px;
  }
  .leo-about-portrait { max-width: 320px; margin: 0 auto; }

  .leo-events-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }

  .leo-testimonial { padding: 90px 24px; }
  .leo-quote { font-size: 34px; }
  .leo-quote-mark { display: none; }

  .leo-values { grid-template-columns: 1fr; gap: 30px; }

  .leo-enquire {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 24px;
  }
  .leo-form { padding: 24px; }
  .leo-form-row-2 { grid-template-columns: 1fr; }
  .leo-enquire-title { font-size: 44px; }

  .leo-footer { padding: 56px 24px 24px; }
  .leo-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding-bottom: 36px;
  }
  .leo-footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
  .leo-events-grid { grid-template-columns: 1fr; }
  .leo-footer-grid { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────────────────────── */
/* PRODUCTION POLISH                                            */
/* ────────────────────────────────────────────────────────────── */

/* Smooth anchor jumps, with offset so the sticky nav doesn't cover headings. */
html { scroll-behavior: smooth; }
:where(#top, #services, #about, #events, #enquire) { scroll-margin-top: 90px; }

/* Respect reduced motion across the whole site
   (drawn-logo.jsx already handles its own draw-on animation). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
