/* ============================================================
   LUMIÈRE — Atelier de Estética
   Boutique editorial: ivory, espresso, dusty rose
   ============================================================ */

:root {
  --ivory: #f6f1e9;
  --ivory-soft: #efe7db;
  --ink: #2b2420;
  --ink-soft: #6d625a;
  --rose: #b0766a;
  --rose-deep: #96604f;
  --line: rgba(43, 36, 32, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

img { display: block; width: 100%; height: 100%; object-fit: cover; }

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

::selection { background: var(--rose); color: var(--ivory); }

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

/* ---------- Shared ---------- */

.label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 1.25rem;
}
.label--light { color: #d9b3a6; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid var(--ink);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: var(--rose-deep); border-color: var(--rose-deep); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }

.btn--light { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--light:hover { background: var(--rose); border-color: var(--rose); color: var(--ivory); }

.btn--ghost.btn--light { background: transparent; color: var(--ivory); }
.btn--ghost.btn--light:hover { background: var(--ivory); color: var(--ink); }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(246, 241, 233, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__brand { display: flex; flex-direction: column; line-height: 1.1; }
.nav__brand-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav__brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 0.3rem 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--rose-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 0.65rem 1.4rem;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--ivory); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 26px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 100svh;
  padding: clamp(6.5rem, 12vh, 9rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vh, 4rem);
}

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 1.75rem;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 7.5vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--rose-deep);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span {
  display: block;
  transform: translateY(110%);
  animation: line-up 1.1s var(--ease) forwards;
}
.hero__title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.24s; }

@keyframes line-up { to { transform: translateY(0); } }

.hero__copy {
  max-width: 34ch;
  color: var(--ink-soft);
  margin: 1.75rem 0 2.5rem;
  opacity: 0;
  animation: fade-up 1s var(--ease) 0.5s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fade-up 1s var(--ease) 0.65s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.hero__media { position: relative; }

.hero__frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  clip-path: inset(100% 0 0 0);
  animation: frame-reveal 1.4s var(--ease) 0.25s forwards;
}
@keyframes frame-reveal { to { clip-path: inset(0 0 0 0); } }

.hero__img {
  transform: scale(1.12);
  animation: img-settle 1.8s var(--ease) 0.25s forwards;
}
@keyframes img-settle { to { transform: scale(1); } }

.hero__badge {
  position: absolute;
  left: -1.25rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 0.9rem 1.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: fade-up 1s var(--ease) 1s forwards;
}
.hero__badge span:first-child { color: var(--rose-deep); }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  background: var(--ivory-soft);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee__track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--ink-soft);
}
.marquee__track i { color: var(--rose); font-style: normal; font-size: 0.7rem; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */

.services {
  position: relative;
  padding: clamp(4.5rem, 10vh, 7.5rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}

.services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}
.services__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
}
.services__title em { font-style: italic; font-weight: 400; color: var(--rose-deep); }

.services__list { list-style: none; }

.service__row {
  display: grid;
  grid-template-columns: 3.2rem 1.1fr 1.4fr auto 2.5rem;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0.5rem;
  border-top: 1px solid var(--line);
  transition: background 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.service:last-child .service__row { border-bottom: 1px solid var(--line); }

.service__row:hover { background: rgba(176, 118, 106, 0.06); padding-left: 1.25rem; }

.service__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--rose-deep);
}
.service__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.1;
}
.service__desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 40ch;
}
.service__price {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-deep);
  white-space: nowrap;
}
.service__arrow {
  font-size: 1.3rem;
  color: var(--ink-soft);
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}
.service__row:hover .service__arrow { transform: translateX(6px); color: var(--rose-deep); }

/* floating image preview */
.services__preview {
  position: absolute;
  top: 0; left: 0;
  width: 240px;
  height: 300px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9) rotate(-2deg);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  z-index: 5;
  border: 5px solid var(--ivory);
  box-shadow: 0 24px 60px rgba(43, 36, 32, 0.22);
}
.services__preview.is-active { opacity: 1; transform: scale(1) rotate(-2deg); }
.services__preview img { transition: opacity 0.25s ease; }

/* ---------- Atelier ---------- */

.atelier {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(4rem, 9vh, 7rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}

.atelier__media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.atelier__media img {
  transition: transform 1.2s var(--ease);
}
.atelier__media:hover img { transform: scale(1.05); }

.atelier__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.atelier__title em { font-style: italic; font-weight: 400; color: var(--rose-deep); }

.atelier__copy {
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2.25rem;
}

.atelier__notes { list-style: none; }
.atelier__notes li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.atelier__notes li span {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-deep);
  padding-top: 0.2rem;
}

/* ---------- Gallery ---------- */

.gallery {
  padding: clamp(4rem, 9vh, 7rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}

.gallery__head { margin-bottom: 2.5rem; }
.gallery__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}
.gallery__title em { font-style: italic; font-weight: 400; color: var(--rose-deep); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1.25rem;
}
.gallery__item {
  position: relative;
  overflow: hidden;
}
.gallery__item img {
  transition: transform 1.2s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: var(--ivory);
  padding: 0.4rem 0.9rem;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* ---------- Quote ---------- */

.quote {
  background: var(--ivory-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(4rem, 9vh, 6.5rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}
.quote__text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.3;
  max-width: 26ch;
  margin: 0 auto 1.5rem;
}
.quote__author {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Visit / CTA ---------- */

.visit {
  background: var(--ink);
  color: var(--ivory);
  padding: clamp(5rem, 11vh, 8rem) clamp(1.25rem, 4vw, 3rem);
}
.visit__inner { max-width: 1200px; margin: 0 auto; }

.visit__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.visit__title em { font-style: italic; font-weight: 400; color: #d9b3a6; }

.visit__copy {
  color: rgba(246, 241, 233, 0.65);
  max-width: 44ch;
  margin-bottom: 2.5rem;
}

.visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.visit__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(246, 241, 233, 0.18);
  padding-top: 2.5rem;
}
.visit__info dt {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #d9b3a6;
  margin-bottom: 0.6rem;
}
.visit__info dd {
  font-size: 0.92rem;
  color: rgba(246, 241, 233, 0.8);
}

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

.footer {
  background: var(--ink);
  color: var(--ivory);
  border-top: 1px solid rgba(246, 241, 233, 0.14);
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.footer__brand { display: flex; flex-direction: column; line-height: 1.1; }
.footer__name { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.footer__tag {
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(246, 241, 233, 0.5);
}
.footer__links { display: flex; gap: 1.75rem; }
.footer__links a {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 241, 233, 0.6);
  transition: color 0.3s ease;
}
.footer__links a:hover { color: var(--ivory); }
.footer__legal {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(246, 241, 233, 0.4);
}

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

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .nav.is-open .nav__links {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 40;
  }
  .nav.is-open .nav__links a { font-size: 1.1rem; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 7rem;
  }
  .hero__media { order: -1; }
  .hero__frame { aspect-ratio: 4 / 3; }
  .hero__badge { left: 1rem; bottom: 1rem; }

  .services__head { flex-direction: column; align-items: flex-start; }

  .service__row {
    grid-template-columns: 2.4rem 1fr auto;
    grid-template-areas:
      "num name price"
      "num desc desc";
    row-gap: 0.4rem;
  }
  .service__num { grid-area: num; }
  .service__name { grid-area: name; }
  .service__desc { grid-area: desc; }
  .service__price { grid-area: price; }
  .service__arrow { display: none; }
  .services__preview { display: none; }

  .atelier { grid-template-columns: 1fr; }
  .atelier__media { aspect-ratio: 4 / 3; }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 190px;
  }
  .gallery__item--wide { grid-column: span 2; }

  .visit__info { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 520px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }
  .gallery__item--tall { grid-row: span 1; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .hero__title .line > span { transform: none; }
  .hero__frame { clip-path: none; }
  .hero__img { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
