/* Moments Paris — direction artistique
   Change the brand colours and fonts here. */
:root {
  --bg: #efe8dc;          /* crème */
  --bg-soft: #f3f2ec;     /* blanc cassé */
  --ink: #000000;         /* noir */
  --green: #2e5a31;       /* sapin clair */
  --muted: #5d5a54;
  --line: #000000;
  --accent: #2e5a31;
  --ph-a: #e2dace;
  --ph-b: #d3cabb;
  --display: "Instrument Serif", Georgia, serif;
  --text: "Instrument Serif", Georgia, serif;
  --signature: "Cormorant Garamond", Garamond, Georgia, serif;
  --label: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, h3 { font-weight: 400; margin: 0; color: var(--green); }
h1 em, h2 em, h3 em { font-style: italic; }
p { margin: 0 0 1em; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 26px var(--gutter);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav-right { justify-content: flex-end; }
.nav a, .lang a, .menu-toggle, .menu-close, .link-btn {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.nav a { position: relative; padding: 4px 0; white-space: nowrap; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.logo { display: block; line-height: 0; }
/* multiply drops the logo's white background onto the cream page */
.logo img { width: clamp(360px, 36vw, 580px); height: auto; mix-blend-mode: multiply; }
@media (max-width: 1100px) { .logo img { width: min(72vw, 420px); } }
.lang { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.lang a { color: var(--muted); letter-spacing: .14em; }
.lang a[aria-current="true"] { color: var(--ink); }
.lang .sep { color: var(--muted); font-size: 12px; }
.menu-toggle, .lang-mobile, .menu-close {
  display: none; background: none; border: 0; padding: 8px 0; cursor: pointer;
}

.mobile-nav {
  position: fixed; inset: 0; z-index: 50;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav nav { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mobile-nav nav a { font-family: var(--display); font-size: 34px; color: var(--green); text-decoration: none; }
.mobile-nav .menu-close { display: block; position: absolute; top: 28px; right: var(--gutter); }

@media (max-width: 1100px) {
  .site-header { padding: 16px var(--gutter); gap: 12px; }
  .nav { display: none; }
  .menu-toggle { display: block; justify-self: start; }
  .lang-mobile { display: inline-flex; justify-self: end; margin: 0; }
}
/* phones: burger icon, language switch moves into the menu, so the logo gets the room */
@media (max-width: 600px) {
  .menu-toggle { width: 26px; height: 18px; padding: 0; font-size: 0; position: relative; }
  .menu-toggle::before, .menu-toggle::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--ink);
  }
  .menu-toggle::before { top: 4px; }
  .menu-toggle::after { bottom: 4px; }
  .lang-mobile { display: none; }
  .site-header { grid-template-columns: 26px 1fr 26px; }
  .logo { justify-self: center; }
}

/* Placeholders (shown until real photos are added) ---------------------- */
.ph {
  width: 100%;
  background: linear-gradient(160deg, var(--ph-a), var(--ph-b));
  display: flex; align-items: center; justify-content: center;
}
.ph span {
  font-family: var(--label);
  font-size: 12px; letter-spacing: .4em; text-transform: uppercase;
  color: rgba(46, 90, 49, .4);
}
.ph-wrap { overflow: hidden; position: relative; }
.ph-wrap img { width: 100%; transition: transform 1.2s ease; }

/* Type ------------------------------------------------------------------ */
.display {
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -.005em;
  color: var(--green);
}
.display-sm { font-family: var(--display); font-size: clamp(32px, 3.8vw, 52px); line-height: 1.1; color: var(--green); }
.eyebrow, .section-title {
  font-family: var(--label);
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--green);
}
/* "— Photo & Film —" style signature line */
.signature {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-family: var(--signature); font-style: italic; font-size: 20px; letter-spacing: .06em;
  color: var(--green); margin: 0;
}
.signature::before, .signature::after { content: ""; width: 48px; height: 1px; background: currentColor; }
.lead { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.55; }

.btn {
  display: inline-block;
  font-family: var(--label);
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--green);
  padding: 18px 38px;
  cursor: pointer;
  transition: background .35s ease, color .35s ease;
}
.btn:hover { background: var(--green); color: var(--bg-soft); }
.link-btn { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 2px 0; cursor: pointer; }

/* Home ------------------------------------------------------------------ */
/* Full-screen hero, running under the header */
.page-home .site-header {
  position: fixed; left: 0; right: 0;
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background .4s ease, padding .4s ease;
}
.page-home .site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; }
.hero::before {
  /* soft light veil at the top keeps the logo and menu readable on the photo */
  content: ""; position: absolute; inset: 0 0 auto; height: 200px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(243, 242, 236, .55), rgba(243, 242, 236, 0));
}
.hero-img, .hero-img .ph, .hero-img img { width: 100%; height: 100%; }
.hero-img img, .hero-img .ph { aspect-ratio: auto !important; object-fit: cover; object-position: center 45%; }
.intro {
  max-width: 860px; margin: 0 auto;
  padding: clamp(72px, 10vw, 150px) var(--gutter);
  text-align: center;
}
.intro .display { margin: 22px 0 34px; }
.intro .lead { max-width: 640px; margin: 0 auto; color: var(--muted); }

.work { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 140px); }
.work .section-title { text-align: center; margin-bottom: 48px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 40px); align-items: start; margin-bottom: 64px; }
.trio .ph-wrap img, .trio .ph { aspect-ratio: 2/3 !important; object-fit: cover; height: auto; }
.trio-1 { margin-top: clamp(40px, 8vw, 120px); }
.trio .ph-wrap:hover img { transform: scale(1.03); }

.quote-band { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wide-img img, .wide-img .ph { width: 100%; aspect-ratio: 21/9 !important; object-fit: cover; }
.quote-band blockquote {
  margin: 0; padding: clamp(48px, 7vw, 96px) var(--gutter) 0;
  text-align: center;
  font-family: var(--display); font-style: italic;
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.2;
  color: var(--green);
}

.cta { text-align: center; padding: clamp(80px, 11vw, 160px) var(--gutter); }
.cta .display-sm { margin-bottom: 14px; }
.cta p { color: var(--muted); margin-bottom: 38px; }

/* Page head ------------------------------------------------------------- */
.page-head {
  text-align: center;
  padding: clamp(48px, 7vw, 100px) var(--gutter) clamp(40px, 5vw, 72px);
  max-width: 820px; margin: 0 auto;
}
.page-head .lead { color: var(--muted); margin-top: 20px; }

/* Portfolio ------------------------------------------------------------- */
.masonry {
  column-count: 3;
  column-gap: clamp(12px, 1.8vw, 28px);
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) clamp(80px, 10vw, 140px);
}
.masonry-item { break-inside: avoid; margin-bottom: clamp(12px, 1.8vw, 28px); cursor: zoom-in; }
.masonry-item:hover img { transform: scale(1.02); }
@media (max-width: 960px) { .masonry { column-count: 2; } }
@media (max-width: 520px) { .masonry { column-count: 1; } }

/* About ----------------------------------------------------------------- */
.about-split {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 120px);
  align-items: center;
  max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter);
}
.about-text .lead { font-family: var(--display); font-style: italic; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; margin-bottom: 32px; color: var(--green); }
.about-text p:not(.lead) { color: var(--muted); }
.values {
  list-style: none; margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--gutter);
  max-width: 1240px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
  text-align: center;
}
.values h3 { font-family: var(--display); font-size: 30px; margin-bottom: 12px; }
.values p { color: var(--muted); }
.about-wide { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 860px) {
  .about-split, .values { grid-template-columns: 1fr; }
}

/* Contact --------------------------------------------------------------- */
.contact {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 8vw, 140px);
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(80px, 10vw, 140px);
}
.contact-side .display { text-align: center; margin-bottom: clamp(32px, 4vw, 60px); }
.contact-img .ph, .contact-img img { aspect-ratio: 3/4; object-fit: cover; }
.contact-intro {
  font-size: clamp(20px, 1.7vw, 25px); line-height: 1.45;
  text-align: center; margin-bottom: clamp(48px, 7vw, 110px);
}

.form { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 40px); row-gap: 34px; }
.form-narrow { grid-template-columns: 1fr; max-width: 460px; margin: 40px auto 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: 17px; }
.field input, .field textarea {
  font: inherit; font-size: 22px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: 8px 0 10px; outline: none;
  transition: border-color .3s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field-full { grid-column: 1 / -1; }
.form-actions { padding-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; border: 1px solid var(--line); margin-bottom: 32px; text-align: center; }
.notice-err { border-color: #9b4a3c; color: #7d3a2f; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .contact-side { max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Client access --------------------------------------------------------- */
.client-login { max-width: 620px; margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 140px); text-align: center; }
.client-login .lead { color: var(--muted); }
.client-login .form { text-align: left; }
.client-gallery { padding-bottom: 40px; }
.client-bar {
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto 36px; padding: 0 var(--gutter);
}
.client-bar p { margin: 6px 0 0; }
.dl {
  position: absolute; right: 12px; bottom: 12px;
  font-family: var(--label); font-size: 11px; color: var(--green); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  background: var(--bg); padding: 8px 12px;
  opacity: 0; transition: opacity .3s ease;
}
.masonry-item:hover .dl, .dl:focus { opacity: 1; }
@media (hover: none) { .dl { opacity: 1; } }

/* Lightbox -------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(239, 232, 220, .97);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 88vw; max-height: 86vh; width: auto; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; cursor: pointer;
  font-family: var(--label); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
  padding: 16px;
}
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Footer ---------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--green);
  margin: 0 var(--gutter);
  padding: 64px 0 40px;
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.logo-small img { width: clamp(280px, 28vw, 400px); }
.footer-tagline { margin: 4px 0 6px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.footer-nav a { font-family: var(--label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.footer-legal { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* Reveal on scroll ------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ph-wrap img { transition: none; }
}
