/* =========================================================
   KreizEvent — style.css
   Design tokens: kaki #615E3E (fond principal), beige #EAE6DF,
   corail #FF7F6A (accent CTA), vert océan #2F6F6D (accent secondaire),
   jaune moutarde #D4A017 (accent rare), terracotta #C96A4A (hover),
   encre #201D18 (fond foncé / texte fort).
   Typo : Londrina Solid (titres) + Work Sans (texte courant).
   ========================================================= */

:root {
  --kaki: #615E3E;
  --beige: #EAE6DF;
  --beige-mid: #AA9F8E;
  --corail: #FF7F6A;
  --ocean: #2F6F6D;
  --moutarde: #D4A017;
  --terracotta: #C96A4A;
  --encre: #201D18;
  --kaki-text: #3A3527;
  --beige-text-soft: #D8D4C2;

  --font-display: 'Londrina Solid', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;

  --max-width: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--beige);
  color: var(--encre);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--corail);
  text-decoration: none;
}
a:hover { color: var(--terracotta); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 64px;
}

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--kaki);
  border-bottom: 1px solid rgba(234, 230, 223, 0.16);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-bar {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 64px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  height: 92px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1) opacity(0.96) drop-shadow(0 0 0.5px rgba(234,230,223,0.6));
}
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--beige);
}
.brand-sub {
  font-size: 12px;
  color: #cfc9b4;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: #e3ddc9;
  font-weight: 500;
  font-size: 14.5px;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--beige); }
.nav-links a.current { color: var(--beige); border-bottom: 2px solid var(--corail); padding-bottom: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-corail { background: var(--corail); border-color: var(--corail); color: var(--encre); }
.btn-corail:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.btn-ocean { background: var(--ocean); border-color: var(--ocean); color: var(--beige); }
.btn-ocean:hover { background: #255755; border-color: #255755; }
.btn-moutarde { background: var(--moutarde); border-color: var(--moutarde); color: var(--encre); }
.btn-moutarde:hover { background: #b88812; border-color: #b88812; }
.btn-outline-light { background: transparent; border-color: rgba(234,230,223,0.4); color: var(--beige); }
.btn-outline-light:hover { border-color: var(--beige); }
.btn-outline-dark { background: transparent; border-color: var(--beige-mid); color: var(--kaki); }
.btn-outline-dark:hover { border-color: var(--kaki); }
.btn-small { padding: 10px 20px; font-size: 14px; }

.nav-cta { padding: 12px 24px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--beige);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Sections ---------- */

.section { width: 100%; box-sizing: border-box; padding: 96px 64px; }
.section-tight { padding: 56px 64px; }
.bg-beige { background: var(--beige); }
.bg-kaki { background: var(--kaki); }
.bg-ocean { background: var(--ocean); }
.bg-ink { background: var(--encre); }

.eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.eyebrow-light { color: var(--moutarde); }

.hero {
  background: var(--kaki);
  padding: 120px 64px 80px;
  display: flex;
  gap: 56px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.hero-text { flex: 1; min-width: 320px; max-width: 640px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 60px; line-height: 1.02; color: var(--beige); }
.hero p { font-size: 17px; line-height: 1.65; color: var(--beige-text-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.hero-ctas .btn { width: 420px; max-width: 100%; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.tile {
  text-decoration: none;
  padding: 0 28px;
  border-right: 1px solid var(--beige-mid);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tile:first-child { padding-left: 0; }
.tile:last-child { border-right: none; }
.tile-label { font-size: 13px; color: var(--terracotta); font-weight: 600; }
.tile-title { font-size: 20px; font-weight: 600; color: var(--encre); }
.tile-desc { font-size: 14px; color: var(--kaki); line-height: 1.5; }

.step-row {
  position: relative;
  display: flex;
  align-items: flex-start;
}
.step-line {
  position: absolute;
  top: 26px;
  left: 8.5%;
  right: 8.5%;
  height: 2px;
  background: var(--beige-mid);
  z-index: 0;
}
.step {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 0 24px;
}
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-family: var(--font-display);
}
.step-title { font-size: 16px; font-weight: 600; color: var(--encre); }
.step-desc { font-size: 15px; line-height: 1.6; color: var(--kaki); margin: 0; }

.info-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.info-block { border-top: 1px solid var(--beige-mid); padding-top: 22px; }
.info-block h3 { font-size: 15px; font-weight: 600; color: var(--ocean); font-family: var(--font-body); margin-bottom: 10px; }
.info-block p { font-size: 15px; line-height: 1.65; color: var(--kaki-text); }

.card-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.card-grid-3 > div { padding: 0 32px; border-right: 1px solid var(--beige-mid); display: flex; flex-direction: column; gap: 14px; }
.card-grid-3 > div:first-child { padding-left: 0; }
.card-grid-3 > div:last-child { border-right: none; padding-right: 0; }
.card-num { font-family: var(--font-display); font-size: 44px; color: var(--corail); }

.event-card {
  background: #fff;
  border: 1px solid var(--beige-mid);
  border-radius: 2px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.event-card h3 { font-size: 24px; color: var(--kaki); }
.event-card p { font-size: 15px; line-height: 1.6; color: var(--kaki-text); }
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.partner-card {
  background: #fff;
  border: 1px solid var(--beige-mid);
  border-radius: 2px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.partner-card .partner-name { font-size: 17px; font-weight: 600; color: var(--kaki); }
.partner-card .partner-role { font-size: 14px; color: var(--kaki-text); }

.placeholder-note {
  font-size: 13.5px;
  color: var(--terracotta);
  background: rgba(255, 127, 106, 0.1);
  border: 1px dashed var(--corail);
  padding: 14px 18px;
  border-radius: 2px;
  display: inline-block;
}

/* ---------- Form ---------- */

.form-card {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border: 1px solid var(--beige-mid);
  border-radius: 2px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--encre); }
.form-field input, .form-field select {
  padding: 12px 14px;
  border: 1px solid var(--beige-mid);
  border-radius: 2px;
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--beige);
  color: var(--encre);
}
.form-field input:focus, .form-field select:focus {
  outline: 2px solid var(--ocean);
  outline-offset: 1px;
}
.form-result { display: none; flex-direction: column; gap: 10px; padding-top: 8px; border-top: 1px solid var(--beige-mid); }
.form-result.visible { display: flex; }
#kr-result p { font-size: 14px; line-height: 1.6; color: var(--kaki-text); }

/* ---------- Photos & credits ---------- */

.photo-figure { display: flex; flex-direction: column; gap: 8px; }
.photo-figure img { width: 100%; height: auto; object-fit: contain; display: block; }
.photo-credit {
  font-size: 11px;
  color: var(--beige-mid);
  letter-spacing: 0.02em;
}
.photo-credit-dark { color: #8f897a; }

.hero-photo { flex: 0 0 580px; }
.hero-photo img { width: 100%; height: auto; object-fit: contain; display: block; }

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.photo-gallery .photo-figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  height: auto;
}

.video-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,29,24,0) 0%, rgba(32,29,24,0) 55%, rgba(32,29,24,0.82) 100%);
  z-index: 0;
}
.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(234,230,223,0.18);
  z-index: 1;
  pointer-events: none;
}
.video-frame .play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--corail);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(32,29,24,0.35);
  transition: transform 0.18s ease, background 0.18s ease;
}
.video-frame:hover .play-badge { transform: translate(-50%, -50%) scale(1.08); background: var(--terracotta); }
.video-frame .video-text {
  position: absolute;
  left: 32px;
  bottom: 24px;
  z-index: 1;
}
.video-frame .video-text-title { font-size: 19px; font-weight: 600; color: var(--beige); }
.video-frame .video-text-sub { font-size: 13.5px; color: #cfc9b4; margin-top: 4px; }

.video-frame.video-frame-headline {
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-frame.video-frame-headline::before {
  background: rgba(32,29,24,0.42);
}
.video-frame-headline .video-headline-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.video-frame-headline .video-headline {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--corail);
  line-height: 0.95;
}
.video-frame-headline .video-subline {
  font-size: 14px;
  color: var(--beige);
  letter-spacing: 0.02em;
}
.video-frame-headline .play-badge {
  position: static;
  transform: none;
  width: 56px;
  height: 56px;
}
.video-frame-headline:hover .play-badge { transform: scale(1.08); }

/* ---------- Partners ---------- */

.partner-card-v2 {
  background: #FFFFFF;
  border: 1px solid var(--beige-mid);
  border-radius: 2px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.partner-card-v2 .partner-logo-wrap {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-card-v2 img { max-width: 100%; max-height: 120px; object-fit: contain; }
.partner-card-v2 .partner-name { font-size: 16px; font-weight: 600; color: var(--kaki); }
.partner-card-v2 .partner-role { font-size: 13.5px; color: var(--kaki-text); }

/* ---------- Hero, centered variant (Kreizou) ---------- */

.hero-centered {
  background: var(--kaki);
  padding: 120px 64px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
}
.hero-centered .hero-text { align-items: center; max-width: 700px; }
.hero-centered .hero-text p { text-align: left; }

.next-run-card {
  width: 100%;
  max-width: 420px;
  background: var(--corail);
  border-radius: 2px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  margin: 0 auto;
}

/* ---------- Centered page intro (Backyard ticket header) ---------- */

.backyard-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.backyard-intro .ticket-meta { display: flex; flex-direction: column; gap: 4px; align-items: center; }

/* ---------- Footer ---------- */

.site-footer {
  width: 100%;
  box-sizing: border-box;
  background: var(--encre);
  padding: 56px 64px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 36px; width: 36px; object-fit: contain; filter: brightness(0) invert(1) opacity(0.85); }
.footer-brand-name { font-family: var(--font-display); font-size: 19px; color: var(--beige); }
.footer-brand-sub { font-size: 13px; color: #8f897a; margin-top: 4px; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-label { font-size: 13px; font-weight: 500; color: #8f897a; }
.footer-col a { font-size: 14.5px; color: var(--beige); display: flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--corail); }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero h1 { font-size: 46px; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .tile { border-right: none; padding-left: 0 !important; }
  .step-row { flex-direction: column; gap: 32px; }
  .step-line { display: none; }
  .step { padding: 0 !important; }
  .info-grid-2 { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: 1fr; row-gap: 32px; }
  .card-grid-3 > div { border-right: none; padding: 0 !important; }
  .event-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-photo { flex: 0 0 360px; }
}

@media (max-width: 768px) {
  .container, .section, .nav-bar, .hero, .site-footer { padding-left: 24px; padding-right: 24px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-top: 96px; padding-bottom: 56px; }
  .hero h1 { font-size: 36px; }
  .hero-ctas .btn { min-width: 0; width: 100%; }
  .backyard-intro-row { padding-right: 0 !important; }
  .backyard-title { font-size: 34px !important; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--kaki);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 24px;
    border-bottom: 1px solid rgba(234,230,223,0.16);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(234,230,223,0.08); }
  .nav-links .nav-cta { margin-top: 12px; width: 100%; }
  .brand img { height: 64px; width: auto; }
  .brand-name { font-size: 20px; }

  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px; }
  .partner-grid { grid-template-columns: 1fr; }
  .photo-gallery { grid-template-columns: 1fr; }
  .hero-photo { flex: 0 0 auto; width: 100%; }
  .video-frame { aspect-ratio: 4 / 3; }
  .video-frame .play-badge { width: 60px; height: 60px; }
  .video-frame .video-text { left: 20px; bottom: 18px; right: 20px; }
  .video-frame .video-text-title { font-size: 16px; }
  .video-frame-headline .video-headline { font-size: 34px; }
  .hero-centered { padding-top: 100px; }
  .next-run-card { max-width: 100%; }
}
