/* ==========================================================
   LA BOITE 89 — Site (video-hero build)
   Palette: Fresh + Modern
   ========================================================== */

:root {
  /* ---- Brand palette ---- */
  --charcoal:   #1A1A1A;
  --espresso:   #3B2D26;
  --copper:     #C47A56;
  --warm-gray:  #A89D94;
  --soft-ivory: #F7F5F2;

  /* Derived brand shades */
  --espresso-d: #2C211B;   /* darker espresso — deepest surfaces */
  --copper-d:   #A9633F;   /* darker copper — button/accent hover */
  --ivory-2:    #EFEAE3;   /* alternate section background */

  /* ---- Semantic aliases (old names kept so every rule below still resolves) ---- */
  --green-900: var(--espresso-d); /* darkest UI: dark sections, footer, headings */
  --green-700: var(--espresso);   /* primary dark buttons + accent text */
  --green-500: var(--copper);     /* decorative gradients */
  --green-100: #EAE3DA;           /* light neutral (image placeholders) */
  --cream:     var(--soft-ivory);
  --cream-2:   var(--ivory-2);
  --yellow:    var(--copper);     /* vibrant accent: CTA, highlights */
  --yellow-d:  var(--copper-d);
  --ink:       var(--charcoal);
  --ink-2:     #57514A;           /* warm secondary text */
  --line:      #E4DED5;           /* warm hairline */
  --white:     #FFFFFF;

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  --radius: 4px;
  --radius-lg: 12px;

  /* La Boite 89 — DM Sans for the entire site (corporate B2B feel) */
  --font-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: var(--font-sans);
  --font-serif:   var(--font-sans);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--green-900);
}

h1 { font-size: clamp(40px, 5.5vw, 68px); letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -0.025em; }
h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.015em; }
h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-700); }

p { color: var(--ink-2); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 16px;
  display: inline-block;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  transition: all .2s ease;
  white-space: nowrap;
}

.btn-primary { background: var(--green-700); color: var(--cream); }
.btn-primary:hover { background: var(--green-900); }

.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-d); }

.btn-ghost { background: transparent; color: var(--green-900); border: 1.5px solid var(--green-900); }
.btn-ghost:hover { background: var(--green-900); color: var(--cream); }

/* Light ghost button for use over dark video hero */
.btn-ghost-light { background: transparent; color: var(--cream); border: 1.5px solid rgba(250,246,238,0.7); }
.btn-ghost-light:hover { background: var(--cream); color: var(--green-900); border-color: var(--cream); }

.btn-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid var(--green-700);
  padding-bottom: 4px;
  transition: gap .2s ease;
}
.btn-link:hover { gap: 14px; }
.btn-link::after { content: '→'; transition: transform .2s; }

/* ==========================================================
   HEADER
   ========================================================== */

.utility-bar {
  background: var(--green-900);
  color: var(--cream);
  font-size: 13px;
  padding: 8px 0;
}
.utility-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
}
.utility-bar a { opacity: .85; }
.utility-bar a:hover { opacity: 1; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(250,246,238,0.3);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.06em;
}
.lang-toggle button.active { background: var(--yellow); color: var(--ink); }

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green-900);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: clamp(34px, 3.4vw, 48px);
  width: auto;
  display: block;
}
.logo-mark {
  width: 40px; height: 40px;
  background: var(--green-700);
  color: var(--cream);
  display: grid; place-items: center;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.primary-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.primary-nav a:hover { color: var(--green-700); }
.primary-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--yellow);
}

.header-cta { display: flex; gap: 12px; align-items: center; }

.menu-toggle { display: none; }

/* ==========================================================
   HERO — VIDEO BACKGROUND
   ========================================================== */

.hero-video {
  position: relative;
  min-height: clamp(560px, 88vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-900);
  color: var(--cream);
}

/* The video itself, covering the whole section */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Animated food-toned gradient shown until a real video is dropped in.
   Sits behind the <video>; once the video loads it covers this. */
.hero-video-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(115deg,
    #1A1A1A 0%,
    #2C211B 20%,
    #3B2D26 38%,
    #C47A56 60%,
    #A89D94 78%,
    #3B2D26 100%);
  background-size: 300% 300%;
  animation: heroFoodPan 22s ease-in-out infinite;
  filter: saturate(1.05);
}
.hero-video-fallback::after {
  /* soft moving highlight to suggest steam / warmth */
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(40% 50% at 30% 30%, rgba(196,122,86,0.4), transparent 60%),
              radial-gradient(45% 55% at 75% 70%, rgba(168,157,148,0.35), transparent 65%);
  animation: heroFoodGlow 16s ease-in-out infinite alternate;
}

@keyframes heroFoodPan {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes heroFoodGlow {
  0%   { transform: translate3d(0,0,0) scale(1); opacity: .9; }
  100% { transform: translate3d(0,-3%,0) scale(1.08); opacity: 1; }
}

/* Dark overlay so text stays legible over any footage */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(28,21,17,0.94) 0%, rgba(28,21,17,0.78) 50%, rgba(28,21,17,0.55) 100%),
    linear-gradient(180deg, rgba(26,26,26,0.4) 0%, rgba(26,26,26,0.7) 100%);
}

.hero-video-inner {
  position: relative;
  z-index: 3;
  padding-top: 80px;
  padding-bottom: 96px;
}
.hero-video-content { max-width: 660px; }

.hero-video h1 { color: var(--cream); margin: 16px 0 24px; }
.hero-video .eyebrow { color: var(--yellow); }
.hero-video .hero-lead {
  font-size: 19px;
  line-height: 1.55;
  margin-bottom: 36px;
  color: rgba(250,246,238,0.9);
  max-width: 560px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(250,246,238,0.6);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  padding-top: 8px;
}
.hero-scroll span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--cream);
  animation: heroScroll 1.8s ease-in-out infinite;
}
@keyframes heroScroll {
  0%   { opacity: 0; transform: translateY(-4px); }
  40%  { opacity: 1; }
  80%  { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; }
}

/* Respect reduced-motion: kill the animated placeholder + cues */
@media (prefers-reduced-motion: reduce) {
  .hero-video-fallback,
  .hero-video-fallback::after { animation: none; }
  .hero-scroll span { animation: none; opacity: 1; }
}

/* Quick stats below hero */
.hero-stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.hero-stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--green-900);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ==========================================================
   SECTIONS
   ========================================================== */

section { padding: 96px 0; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 18px; margin-top: 16px; }

/* Three pillars (what we believe) */
.pillars { background: var(--white); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pillar {
  padding: 40px 32px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  position: relative;
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 16px;
  opacity: .9;
}
.pillar h3 { margin-bottom: 12px; }
.pillar p { font-size: 15px; }

/* Services grid */
.services { background: var(--cream-2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  border: 1px solid var(--line);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(44,33,27,.12); }
.service-img {
  aspect-ratio: 4 / 3;
  background: var(--green-100);
  display: grid;
  place-items: center;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
}
.service-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(196,122,86,.18));
}
.service-body { padding: 28px; }
.service-body h3 { margin-bottom: 10px; font-size: 22px; }
.service-body p { font-size: 15px; margin-bottom: 20px; }

/* Audiences (who we serve) */
.audiences { background: var(--green-900); color: var(--cream); }
.audiences h2 { color: var(--cream); }
.audiences .eyebrow { color: var(--yellow); }
.audiences p { color: rgba(250,246,238,0.75); }
.audience-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(250,246,238,0.1);
  border: 1px solid rgba(250,246,238,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.audience-item {
  background: var(--green-900);
  padding: 36px 28px;
  transition: background .2s;
}
.audience-item:hover { background: var(--green-700); }
.audience-icon {
  width: 48px; height: 48px;
  background: var(--yellow);
  color: var(--green-900);
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 700;
}
.audience-item h3 { color: var(--cream); font-size: 20px; margin-bottom: 8px; }
.audience-item p { font-size: 14px; }

/* Story / About teaser */
.story { background: var(--cream); }
.story .container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.story-visual {
  aspect-ratio: 5 / 6;
  background: var(--green-100);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.story-visual .placeholder-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--cream);
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--green-900);
}
.story-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-500) 0%, var(--green-700) 100%);
  opacity: .25;
}
.story-content p { font-size: 17px; margin-bottom: 24px; }
.story-quote {
  border-left: 3px solid var(--yellow);
  padding-left: 20px;
  margin: 28px 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--green-900);
  line-height: 1.4;
}

/* CTA banner */
.cta-banner {
  background: var(--yellow);
  padding: 72px 0;
}
.cta-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--green-900); max-width: 600px; }
.cta-banner p { color: var(--green-900); margin-top: 12px; opacity: .8; }

/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
  background: var(--green-900);
  color: var(--cream);
  padding: 80px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(250,246,238,0.15);
}
.footer-brand .logo { color: var(--cream); margin-bottom: 20px; }
.footer-brand .logo img { height: clamp(38px, 4.2vw, 54px); filter: brightness(0) invert(1); }
.footer-brand .logo-mark { background: var(--yellow); color: var(--green-900); }
.footer-brand p { color: rgba(250,246,238,0.7); font-size: 15px; max-width: 360px; margin-bottom: 24px; }

.footer-col h4 { color: var(--yellow); font-size: 12px; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(250,246,238,0.8); font-size: 15px; }
.footer-col a:hover { color: var(--yellow); }

.footer-contact-item { margin-bottom: 16px; font-size: 15px; color: rgba(250,246,238,0.85); }
.footer-contact-item strong { display: block; color: var(--cream); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(250,246,238,0.6);
}
.footer-bottom-links { display: flex; gap: 24px; }

/* ==========================================================
   PAGE-SPECIFIC (inner pages)
   ========================================================== */

/* Inner page hero */
.page-hero {
  background: var(--green-900);
  color: var(--cream);
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--cream); max-width: 800px; }
.page-hero .eyebrow { color: var(--yellow); }
.page-hero p { color: rgba(247,245,242,0.8); font-size: 19px; margin-top: 20px; max-width: 640px; }
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: var(--green-700);
  border-radius: 50%;
  opacity: .5;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: rgba(247,245,242,0.7);
  margin-bottom: 24px;
  position: relative;
}
.breadcrumb a { color: rgba(247,245,242,0.7); }
.breadcrumb a:hover { color: var(--yellow); }

/* Detailed service block */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail-visual {
  aspect-ratio: 4 / 3;
  background: var(--green-100);
  border-radius: var(--radius-lg);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.service-detail-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--copper), var(--espresso));
  opacity: .18;
}
.service-detail-visual .placeholder-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--cream);
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--green-900);
}
.service-detail-content ul {
  list-style: none;
  margin: 24px 0;
}
.service-detail-content li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 15px;
  color: var(--ink-2);
}
.service-detail-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-700);
  font-weight: 700;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.contact-info-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--line);
}
.contact-info-card h3 { margin-bottom: 24px; }
.contact-method {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-method:last-child { border-bottom: none; }
.contact-method-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-700);
  margin-bottom: 6px;
}
.contact-method-value {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.contact-method-meta { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--line);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  background: var(--cream);
  color: var(--ink);
  transition: border .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-700);
}
.form-field textarea { min-height: 140px; resize: vertical; }

/* Lang content swap */
[data-lang]:not(.active) { display: none; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 960px) {
  .pillars-grid, .services-grid, .audience-list { grid-template-columns: 1fr 1fr; }
  .story .container, .contact-grid { grid-template-columns: 1fr; }
  .service-detail, .service-detail.reverse { grid-template-columns: 1fr; direction: ltr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-stats .container { grid-template-columns: 1fr 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .hero-video-overlay {
    background:
      linear-gradient(180deg, rgba(28,21,17,0.72) 0%, rgba(28,21,17,0.9) 100%);
  }
}

@media (max-width: 640px) {
  .header-cta { display: none; }
  .menu-toggle { display: block; font-size: 26px; color: var(--espresso); line-height: 1; }

  /* Mobile dropdown nav — toggled by .menu-toggle adding .open */
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 4px var(--gutter) 12px;
    box-shadow: 0 16px 28px rgba(44,33,27,.12);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .primary-nav a:last-child { border-bottom: none; }
  .primary-nav a[aria-current="page"]::after { display: none; }
  .primary-nav a[aria-current="page"] { color: var(--copper); font-weight: 600; }

  section { padding: 64px 0; }
  .pillars-grid, .services-grid, .audience-list { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner .container { flex-direction: column; align-items: flex-start; }
  .utility-bar .container { justify-content: center; gap: 16px; }
  .hero-scroll { display: none; }
}
