/* Le Mans Kitchen — design system
   Light cream canvas, PMS 286 blue, soft orange. Dark theme: blue-grey.
   WCAG AA targets documented in DESIGN.md */

:root {
  --cream: #f6efe6;
  --cream-2: #efe4d6;
  --paper: #fffaf4;
  --ink: #1a1a1a;
  --ink-75: #404040;
  --muted: #5c564e;
  --line: rgba(26, 26, 26, 0.12);
  --blue: #0033a0;
  --blue-deep: #00236f;
  --blue-soft: #3d6fd1;
  --blue-wash: #e4ebf8;
  --orange: #c56a2d;
  --orange-bright: #e08a4a;
  --peach: #f3d2b3;
  --peach-wash: #f8e6d4;
  --focus: #0033a0;
  --kicker: #5b8def;
  --shadow: 0 18px 40px rgba(26, 26, 26, 0.08);
  --radius: 18px;
  --header-h: 84px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html.dark {
  --cream: #121820;
  --cream-2: #1a2330;
  --paper: #1e2836;
  --ink: #f3ebe0;
  --ink-75: #d7cfc4;
  --muted: #b7aea2;
  --line: rgba(243, 235, 224, 0.12);
  --blue: #7ba3f0;
  --blue-deep: #c5d6f8;
  --blue-soft: #9bb8f2;
  --blue-wash: #1c2a44;
  --orange: #e8a36a;
  --orange-bright: #f0b27d;
  --peach: #3a2c22;
  --peach-wash: #2a241c;
  --focus: #9bb8f2;
  --kicker: #9bb8f2;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Gill Sans", "Trebuchet MS", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
a:hover { color: var(--orange); }
a:not(.btn):not(.logo):not(.skip):hover {
  background-color: var(--peach-wash);
}
.nav a:hover,
.menu-nav a:hover,
.insta-grid a:hover,
.header-actions a:hover {
  background-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { top: 1rem; }

.kicker {
  font-family: Michroma, "Arial Narrow", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--kicker);
  margin: 0 0 0.75rem;
}

h1, h2, h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.25rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.logo img { height: 44px; width: auto; }
html.dark .logo-light { display: none; }
html:not(.dark) .logo-on-dark { display: none; }
.footer-logo { width: 168px; height: auto; margin-bottom: 0.85rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.35rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a[aria-current="page"],
.nav a:hover { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 0.55rem; }

.icon-btn,
.menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.icon-btn:hover,
.menu-toggle:hover { border-color: var(--blue); color: var(--blue); }
.menu-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
html.dark .btn-primary { color: #10141a; background: var(--blue); }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #a45622; color: #fff; }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fffaf4;
}
.hero-slides,
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  overflow: hidden;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  animation: kenburns-a 18s ease-in-out infinite alternate;
}
.hero-slide:nth-child(even) img {
  animation-name: kenburns-b;
}
.hero-slide:nth-child(3) img {
  animation-name: kenburns-a;
  animation-delay: -6s;
}
.hero-slide:nth-child(4) img {
  animation-name: kenburns-b;
  animation-delay: -9s;
}
@keyframes kenburns-a {
  from { transform: scale(1.06) translate(0, 0); }
  to { transform: scale(1.16) translate(-2.2%, -1.4%); }
}
@keyframes kenburns-b {
  from { transform: scale(1.14) translate(-1.6%, 1%); }
  to { transform: scale(1.05) translate(1.4%, -0.6%); }
}
.hero-controls {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
}
.hero-dots { display: flex; gap: 0.45rem; }
.hero-dots button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.hero-dots button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.5);
  transform: translate(-50%, -50%);
}
.hero-dots button[aria-selected="true"]::after {
  width: 22px;
  background: #fffaf4;
}
.hero-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 250, 244, 0.28);
  background: rgba(16, 22, 32, 0.28);
  color: #fffaf4;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 16, 28, 0.15) 0%, rgba(10, 16, 28, 0.72) 100%);
}
.hero > .wrap { position: relative; z-index: 3; }
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 5rem 0 3.5rem;
  max-width: 42rem;
}
.hero-glass {
  padding: 1.6rem 1.7rem 1.7rem;
  margin: 4rem 0 3.2rem;
  max-width: 42rem;
  border-radius: 22px;
  background: transparent;
  border: 1px solid rgba(255, 250, 244, 0.28);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.hero .kicker { color: var(--kicker); }
.hero p.hero-aside {
  color: var(--kicker);
  font-weight: 400;
  font-size: 1.02rem;
  margin: 0.7rem 0 1.05rem;
  text-shadow: none;
}
.hero h1 { color: #fffaf4; }
.hero p { color: #fffaf4; font-size: 1.12rem; text-shadow: 0 1px 12px rgba(8, 12, 20, 0.35); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.4rem 0 1.6rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,250,244,0.12);
  border: 1px solid rgba(255,250,244,0.22);
  color: #fffaf4;
  font-size: 0.88rem;
  font-weight: 600;
}
.chip-solid {
  background: var(--blue-wash);
  border-color: transparent;
  color: var(--blue-deep);
}
html.dark .chip-solid { color: var(--ink); }

.notice {
  background: var(--blue);
  color: #fff;
  padding: 0.7rem 0;
  font-weight: 600;
  font-size: 0.95rem;
}
html.dark .notice { color: #10141a; }
.notice .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Sections */
section { padding: 4.5rem 0; }
.section-head { max-width: 38rem; margin-bottom: 2rem; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.split.rev { grid-template-columns: 0.95fr 1.05fr; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.person-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.person-card img { width: 100%; height: 420px; object-fit: cover; object-position: top; }
.person-card .pad { padding: 1.3rem 1.4rem 1.6rem; }
.person-card h3 { margin-bottom: 0.2rem; }
.role { color: var(--orange); font-weight: 650; font-size: 0.92rem; margin-bottom: 0.6rem; }

/* Visit mosaic */
.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 0.7rem;
}
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.mosaic img:first-child { grid-row: 1 / span 2; }

.icon-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.15rem;
}
.icon-cta img {
  width: min(220px, 70%);
  height: auto;
}
html.dark .icon-cta img {
  filter: brightness(1.25) contrast(1.05);
}

.hero.contact-page { align-items: center; }
.contact-panel {
  max-width: 54rem;
  width: 100%;
  margin: 4.2rem 0 4.8rem;
}
.hero-glass.contact-panel { max-width: 54rem; }
.contact-lead {
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.015em;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1.4rem;
}
.contact-card {
  background: transparent;
  border: 1px solid rgba(255, 250, 244, 0.22);
  border-radius: 16px;
  padding: 1.05rem 1.15rem 1.15rem;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.contact-card p { margin: 0 0 0.3rem; color: #fffaf4; }
.contact-card a { color: #fffaf4; }

/* Instagram + social CTA */
.insta-block { background: var(--cream-2); }
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.55rem;
}
.insta-grid a {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1;
}
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.insta-grid a:hover img { transform: scale(1.06); }

.social-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Footer */
.site-footer {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  padding: 3.2rem 0 1.6rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h2 { font-size: 1.15rem; letter-spacing: -0.02em; }
.site-footer p, .site-footer li { color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.35rem 0; }
.legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Menu page */
.menu-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
}
.menu-nav .wrap { display: flex; gap: 0.5rem; overflow-x: auto; }
.menu-nav a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.menu-nav a:hover,
.menu-nav a.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
html.dark .menu-nav a.is-active { color: #10141a; }

.menu-section { padding-top: 3rem; }
.menu-list { display: grid; gap: 0; }
.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.menu-item h3 { font-size: 1.15rem; margin: 0 0 0.25rem; }
.menu-item p { margin: 0; color: var(--muted); }
.price { font-weight: 700; color: var(--kicker); }
.menu-note {
  max-width: 42rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.tag {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}
.icon-feature {
  margin: 1.4rem 0 0;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid rgba(255, 250, 244, 0.28);
  border-radius: 16px;
  background: transparent;
}
.icon-feature .kicker { margin-bottom: 0.45rem; }
.icon-feature h3 { margin-top: 0.35rem; }

/* Story */
.story-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 62vh;
}
.story-hero img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.story-hero .copy { display: grid; align-content: center; padding: 3rem 8%; background: var(--cream-2); }
.prose { max-width: 42rem; }
.prose p { margin: 0 0 1.1rem; color: var(--ink-75); }
.heritage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.heritage figure { margin: 0; }
.heritage img { width: 100%; height: 360px; object-fit: cover; border-radius: 14px; }
.heritage figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

/* Team */
.bio {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
  padding: 4rem 0;
}
.bio img.portrait {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 720px;
}
.bio-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.bio-gallery img { height: 180px; width: 100%; object-fit: cover; border-radius: 12px; }
.bio.alt { grid-template-columns: 1.15fr 0.85fr; }
.bio.alt .media { order: 2; }

/* Gallery */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1.6rem;
}
.filter-bar button {
  min-height: 44px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
}
.filter-bar button[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
html.dark .filter-bar button[aria-pressed="true"] { color: #10141a; }

.gallery-mosaic {
  columns: 3;
  column-gap: 0.7rem;
}
.gallery-mosaic figure {
  margin: 0 0 0.7rem;
  break-inside: avoid;
  position: relative;
}
.gallery-mosaic img {
  width: 100%;
  border-radius: 12px;
  cursor: zoom-in;
}
.gallery-mosaic figcaption {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  background: rgba(18, 24, 32, 0.72);
  color: #fffaf4;
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, 0.88);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 1.2rem;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 88vh; border-radius: 10px; }
.lightbox button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: #fffaf4;
  color: #121820;
  font-size: 1.4rem;
}

/* Video placeholder */
.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a2330;
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.2rem 1.3rem;
    align-items: flex-start;
  }
  .menu-toggle { display: grid; }
  .split, .split.rev, .story-hero, .bio, .bio.alt, .foot-grid, .card-grid, .heritage, .contact-grid {
    grid-template-columns: 1fr;
  }
  .bio.alt .media { order: 0; }
  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: 160px;
  }
  .mosaic img { min-width: 0; min-height: 0; }
  .mosaic img:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    height: 200px;
  }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-mosaic { columns: 2; }
  .person-card img { height: 320px; }
}

@media (max-width: 560px) {
  .gallery-mosaic { columns: 1; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
  .header-cta { display: none; }
  .mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }
  .mosaic img:first-child {
    grid-column: auto;
    height: 180px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-media video { display: none; }
  .hero-media {
    background: url("../assets/img/hero/hero-poster.jpg") center/cover no-repeat;
  }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
