/* ═══════════════════════════════════════════════════════════
   PETIT LOCALES — Design System / Shared Styles
   css/main.css — imported by every page
   ═══════════════════════════════════════════════════════════ */

/* ─── Custom properties ────────────────────────────────── */
:root {
  --paper:        #F0E9DA;
  --paper-2:      #E8DFCB;
  --paper-rule:   rgba(14, 26, 46, .14);
  --paper-rule-2: rgba(14, 26, 46, .07);
  --bone:         #FAF6EC;
  --linen:        #E5DCC6;
  --ink:          #0E1A2E;
  --ink-soft:     #1B2A45;
  --ink-muted:    #4A5468;
  --ink-faint:    #6E7689;
  --clay:         #B25A36;
  --clay-soft:    #C97A57;
  --rule:         1px solid var(--paper-rule);
  --rule-soft:    1px solid var(--paper-rule-2);
  --serif:        "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:         "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono:         "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter:       clamp(20px, 4vw, 56px);
  --shell:        1380px;
  --ease:         cubic-bezier(.2, .7, .2, 1);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
p { margin: 0 0 1.2em; }
h1,h2,h3,h4,h5,h6 { margin: 0; }

/* ─── Paper grain overlay ───────────────────────────────── */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.10  0 0 0 0 0.18  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ─── Layout shell ──────────────────────────────────────── */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; scroll-margin-top: 90px; }

/* ─── Type system ───────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.eyebrow .num { color: var(--clay); margin-right: .5em; }

.display {
  font-family: var(--serif);
  font-weight: 360;
  font-style: normal;
  letter-spacing: -0.025em;
  line-height: 0.98;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  color: var(--ink);
}
.display em { font-style: italic; font-weight: 320; font-variation-settings: "opsz" 144, "SOFT" 80; color: var(--ink-soft); }

.section-title {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  color: var(--ink);
  margin: 0;
}
.section-title em { font-style: italic; font-weight: 340; color: var(--ink-soft); }

.deck {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 56ch;
  font-weight: 400;
}

/* ─── Header ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(240, 233, 218, .88);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  border-bottom-color: var(--paper-rule);
  padding: 12px 0;
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name .top {
  font-family: var(--serif);
  font-weight: 420;
  font-size: 19px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60;
  color: var(--ink);
}
.brand-name .bot {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

.nav { display: flex; justify-content: center; gap: 28px; }
.nav a {
  font-size: 13.5px;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  position: relative;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--clay);
  transition: width .35s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  font-size: 13px;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.header-cta:hover { background: var(--ink); color: var(--paper); }
.header-cta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--clay); }
.menu-btn { display: none; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { width: 18px; height: 12px; position: relative; transition: transform .25s var(--ease); }
.btn .arrow::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(-50%) rotate(45deg); transform-origin: 60% 40%; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--clay); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-wa { background: transparent; color: var(--ink); border: 1px solid var(--paper-rule); }
.btn-wa svg { width: 16px; height: 16px; }
.btn-wa:hover { border-color: var(--ink); }
.btn-sm { padding: 11px 20px; font-size: 13px; gap: 10px; }

/* ─── Marquee ───────────────────────────────────────────── */
.marquee {
  border-top: var(--rule);
  border-bottom: var(--rule);
  padding: 22px 0;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper-2);
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: scroll 50s linear infinite;
  width: max-content;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; color: var(--clay); font-size: 11px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ─── Section layout ────────────────────────────────────── */
.section-pad { padding: clamp(80px, 11vw, 160px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: end;
  border-bottom: var(--rule);
  padding-bottom: 56px;
  margin-bottom: 80px;
}
.section-head .lead { display: flex; flex-direction: column; gap: 24px; }

/* ─── Page hero (secondary pages) ──────────────────────── */
.page-hero {
  padding: 140px 0 80px;
  border-bottom: var(--rule);
  background: var(--paper);
}
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 48px;
}
.page-hero .breadcrumb a { color: var(--ink-faint); transition: color .2s; }
.page-hero .breadcrumb a:hover { color: var(--clay); }
.page-hero .breadcrumb .sep { color: var(--clay); }
.page-hero .breadcrumb .current { color: var(--ink-soft); }
.page-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: end;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(44px, 6.8vw, 100px);
  line-height: 0.97;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 25;
  color: var(--ink);
  margin: 0 0 32px;
}
.page-hero h1 em { font-style: italic; font-weight: 300; color: var(--ink-soft); font-variation-settings: "opsz" 144, "SOFT" 100; }
.page-hero .hero-deck { font-size: 18px; }
.page-hero .hero-meta-strip {
  border-top: var(--rule);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.page-hero .meta-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.page-hero .meta-row b { color: var(--ink); font-weight: 500; }

/* ─── Inline CTA band ───────────────────────────────────── */
.cta-band {
  background: var(--ink);
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(240,233,218,.06) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}
.cta-band-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.024em;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  color: var(--paper);
  margin: 0 0 12px;
}
.cta-band h2 em { font-style: italic; font-weight: 300; color: rgba(240,233,218,.75); }
.cta-band p { font-size: 16px; color: rgba(240,233,218,.7); margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.cta-band .btn-primary { background: var(--paper); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--clay); color: var(--paper); }
.cta-band .btn-ghost { color: var(--paper); border-color: rgba(240,233,218,.4); }
.cta-band .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* ─── Footer ────────────────────────────────────────────── */
.foot {
  background: var(--paper);
  border-top: var(--rule);
  padding: 56px 0 32px;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: var(--rule);
}
.foot-brand { display: flex; flex-direction: column; gap: 16px; max-width: 32ch; }
.foot-brand p { font-size: 14px; color: var(--ink-muted); margin: 0; line-height: 1.55; }
.foot-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 18px;
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14.5px; color: var(--ink); letter-spacing: -0.005em; transition: color .2s; }
.foot-col a:hover { color: var(--clay); }
.foot-bot {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.foot-bot b { color: var(--ink-soft); font-weight: 500; }

/* ─── FAB ───────────────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 30;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(14,26,46,.18);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.fab:hover { background: var(--clay); transform: scale(1.06); }
.fab svg { width: 24px; height: 24px; }

/* ─── Reveal animations ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: .47s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: .54s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1080px) {
  .section-head { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; margin-bottom: 56px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--paper-rule); border-radius: 50%; }
  .header-cta { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .cta-band-inner { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .foot-top { grid-template-columns: 1fr; }
}

/* ─── Mobile menu overlay ───────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(240, 233, 218, .97);
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(28px, 6vw, 42px);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 80;
  color: var(--ink);
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--clay); }
.mobile-nav .close-btn {
  position: absolute;
  top: 22px; right: 20px;
  width: 40px; height: 40px;
  border: 1px solid var(--paper-rule);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ─── Utility classes ───────────────────────────────────── */
.text-clay { color: var(--clay); }
.text-muted { color: var(--ink-muted); }
.font-mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
