/* =========================================================
   MAISON LUCIEN — Hội An, Vietnam
   Design concept: "Lantern hour" — the moment at dusk when
   Hội An's old town lights its silk lanterns. Deep indigo
   night, warm lantern gold, jade lacquer green.
   ========================================================= */

:root {
  /* Colors */
  --ink:        #1B2533;   /* deep indigo night */
  --ink-2:      #131B27;   /* darker indigo for gradients */
  --cream:      #F7F1E3;   /* warm rice-paper cream */
  --paper:      #FCF8EF;   /* lighter card background */
  --charcoal:   #2B2420;   /* primary text on light */
  --charcoal-70:rgba(43,36,32,0.7);
  --lantern:    #E6A23C;   /* lantern gold */
  --lantern-2:  #F4C672;   /* pale lantern glow */
  --jade:       #4F7A6E;   /* lacquer green accent */
  --jade-dark:  #3A5C53;
  --rust:       #C1573D;   /* small accent, used sparingly */
  --line:       rgba(43,36,32,0.12);
  --line-dark:  rgba(247,241,227,0.14);

  /* Type */
  --font-display: 'Fraunces', 'Noto Serif', serif;
  --font-body:    'Work Sans', 'Noto Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', 'Noto Sans Mono', monospace;

  /* Layout */
  --max-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
img, picture, svg { display: block; max-width: 100%; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; }

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--lantern);
  outline-offset: 2px;
}

/* =========================================================
   UTILITIES
   ========================================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 1rem;
}
.section--dark .eyebrow,
.section--ink .eyebrow { color: var(--lantern-2); }

.eyebrow::before {
  content: "";
  display: block;
  width: 1.4em;
  height: 1px;
  background: currentColor;
}

.section {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}
.section--cream  { background: var(--cream); }
.section--paper  { background: var(--paper); }
.section--ink    { background: var(--ink); color: var(--cream); }
.section--jade   { background: var(--jade); color: var(--paper); }

.section--ink h2,
.section--jade h2 { color: var(--paper); }

.section-head {
  max-width: 46ch;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  margin-bottom: 0.6rem;
}
.section-head p {
  color: var(--charcoal-70);
  font-size: 1.05rem;
}
.section--ink .section-head p,
.section--jade .section-head p { color: rgba(247,241,227,0.78); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95em 1.7em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color .25s ease;
  cursor: pointer;
}
.btn--primary {
  background: var(--lantern);
  color: var(--ink-2);
}
.btn--primary:hover { background: var(--lantern-2); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  border-color: rgba(247,241,227,0.45);
  color: var(--cream);
}
.btn--ghost:hover { border-color: var(--lantern-2); color: var(--lantern-2); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn--outline:hover { border-color: var(--jade); color: var(--jade); transform: translateY(-2px); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27, 37, 51, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
  color: var(--cream);
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--cream);
  white-space: nowrap;
}
.nav__brand span { color: var(--lantern-2); }

.nav__links {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.7rem, 1.6vw, 1.8rem);
  font-size: clamp(0.78rem, 0.95vw, 0.92rem);
}
.nav__links a {
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
  position: relative;
  white-space: nowrap;
}
.nav__links a:hover { opacity: 1; color: var(--lantern-2); }

.nav__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  position: relative;
}
.lang-switch__btn {
  display: flex;
  align-items: center;
  gap: 0.4em;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5em 0.9em;
  border-radius: var(--radius);
}
.lang-switch__btn:hover { border-color: var(--lantern-2); color: var(--lantern-2); }
.lang-switch__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  min-width: 9rem;
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.lang-switch.is-open .lang-switch__menu { display: flex; }
.lang-switch__menu a {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5em 0.7em;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: 3px;
  color: var(--cream);
}
.lang-switch__menu a:hover { background: rgba(247,241,227,0.08); color: var(--lantern-2); }
.lang-switch__menu a[aria-current="true"] {
  color: var(--lantern-2);
  font-weight: 600;
}
.lang-switch__menu small {
  font-family: var(--font-mono);
  opacity: 0.55;
  font-size: 0.75rem;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 0.5em 0.7em;
}

/* =========================================================
   HERO — lantern string
   ========================================================= */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 65%, #233044 100%);
  color: var(--cream);
  overflow: hidden;
  padding-top: clamp(1.4rem, 3vw, 2rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero__lanterns {
  width: 100%;
  height: auto;
  max-height: clamp(70px, 14vw, 150px);
  display: block;
}

.hero__lantern {
  transform-origin: top center;
  animation: sway 7s ease-in-out infinite;
}
.hero__lantern:nth-child(2) { animation-delay: -1.1s; animation-duration: 8.2s; }
.hero__lantern:nth-child(3) { animation-delay: -3.4s; animation-duration: 6.4s; }
.hero__lantern:nth-child(4) { animation-delay: -2.2s; animation-duration: 7.6s; }
.hero__lantern:nth-child(5) { animation-delay: -4.6s; animation-duration: 6.9s; }
.hero__lantern:nth-child(6) { animation-delay: -0.6s; animation-duration: 8.8s; }
.hero__lantern:nth-child(7) { animation-delay: -5.1s; animation-duration: 7.1s; }

@keyframes sway {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg); }
}

.hero__glow {
  animation: glow 4.5s ease-in-out infinite alternate;
}
@keyframes glow {
  from { opacity: 0.55; }
  to   { opacity: 0.95; }
}

.hero__content {
  max-width: 46rem;
  margin-top: clamp(0.6rem, 2vw, 1.2rem);
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin-bottom: 0.5rem;
}
.hero__title em {
  font-style: italic;
  color: var(--lantern-2);
}

.hero__tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: rgba(247,241,227,0.85);
  max-width: 38ch;
  margin-bottom: 1.3rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__meta {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: rgba(247,241,227,0.65);
}
.hero__meta strong {
  display: block;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.98rem;
  letter-spacing: normal;
  margin-bottom: 0.2rem;
}

/* =========================================================
   STORY
   ========================================================= */
.story__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.story__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.story__media picture { display: block; width: 100%; height: 100%; }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__media figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: linear-gradient(0deg, rgba(27,37,51,0.85), transparent);
}
.story__text p { margin-bottom: 1.1rem; color: var(--charcoal-70); }
.story__text p:first-of-type { font-size: 1.12rem; color: var(--charcoal); }
.story__signature {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--jade-dark);
}
.story__signature small {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-70);
  margin-top: 0.35rem;
}

/* =========================================================
   MENU
   ========================================================= */
.menu__intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.menu__groups {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 4.5rem);
}
.menu__group h3 {
  font-size: 1.05rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lantern-2);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 1.3rem;
}
.menu__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  margin-bottom: 1.35rem;
}
.menu__item-name {
  font-weight: 600;
  font-size: 1.02rem;
}
.menu__item-price {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--lantern-2);
  white-space: nowrap;
}
.menu__item-desc {
  grid-column: 1 / -1;
  font-size: 0.92rem;
  color: rgba(247,241,227,0.62);
  max-width: 38ch;
}
.menu__note {
  margin-top: 3rem;
  font-size: 0.88rem;
  color: rgba(247,241,227,0.6);
  border-top: 1px solid var(--line-dark);
  padding-top: 1.5rem;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 12vw;
  gap: 0.6rem;
}
.gallery__item { position: relative; height: 100%; overflow: hidden; border-radius: var(--radius); }
.gallery__item picture { display: block; width: 100%; height: 100%; }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery__item--a { grid-column: span 3; grid-row: span 2; }
.gallery__item--b { grid-column: span 3; grid-row: span 1; }
.gallery__item--c { grid-column: span 3; grid-row: span 1; }
.gallery__item--d { grid-column: span 2; grid-row: span 1; }
.gallery__item--e { grid-column: span 2; grid-row: span 1; }
.gallery__item--f { grid-column: span 2; grid-row: span 1; }

/* =========================================================
   HOURS / LOCATION
   ========================================================= */
.info__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 4.5rem);
}
.info__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.info__table tr { border-bottom: 1px solid rgba(247,241,227,0.18); }
.info__table td {
  padding: 0.7rem 0;
  font-size: 0.98rem;
}
.info__table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  color: var(--paper);
}
.info__table tr.is-closed td:last-child {
  color: rgba(252,248,239,0.5);
}
.info__block + .info__block { margin-top: 2.5rem; }
.info__block h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: var(--paper);
  opacity: 0.85;
}
.info__block address,
.info__block p { font-style: normal; }
.info__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(252,248,239,0.18);
  aspect-ratio: 4 / 3;
}
.info__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.2) contrast(1.05); }

/* =========================================================
   CONTACT / RESERVE
   ========================================================= */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
}
.form-row { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-70);
}
.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  padding: 0.75em 0.9em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--charcoal);
}
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact__details h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade-dark);
  margin-bottom: 0.6rem;
}
.contact__details > div { margin-bottom: 2rem; }
.contact__details a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact__details a:hover { border-color: var(--jade); color: var(--jade-dark); }
.contact__note {
  margin-top: 2rem;
  padding: 1.1rem 1.2rem;
  background: var(--cream);
  border: 1px dashed var(--jade);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--charcoal-70);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink-2);
  color: rgba(247,241,227,0.75);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  font-size: 0.92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.footer__col h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lantern-2);
  margin-bottom: 0.9rem;
}
.footer__col ul li { margin-bottom: 0.55rem; }
.footer__col a { text-decoration: none; opacity: 0.85; }
.footer__col a:hover { opacity: 1; color: var(--lantern-2); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  opacity: 0.6;
}
.footer__langs { display: flex; gap: 1rem; }
.footer__langs a[aria-current="true"] { color: var(--lantern-2); opacity: 1; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 920px) {
  .story__grid,
  .info__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .story__media { order: -1; aspect-ratio: 16/10; }
  .menu__groups { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid .footer__col:first-child { grid-column: 1 / -1; }
  .gallery__grid { grid-auto-rows: 22vw; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .hero__meta { gap: 1.5rem; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 38vw; }
  .gallery__item--a, .gallery__item--b, .gallery__item--c,
  .gallery__item--d, .gallery__item--e, .gallery__item--f {
    grid-column: span 1; grid-row: span 1;
  }
  .gallery__item--a { grid-column: span 2; grid-row: span 2; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid .footer__col:first-child { grid-column: auto; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .form-row--split { grid-template-columns: 1fr; }
}

/* Body open state (mobile nav) */
body.nav-open .nav__links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--ink-2);
  padding: 1rem var(--gutter) 1.5rem;
  border-bottom: 1px solid var(--line-dark);
}

/* =========================================================
   CAROUSEL
   ========================================================= */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2);
}
.carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carousel__slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.carousel__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(27,37,51,0.7);
  border: 1px solid rgba(247,241,227,0.3);
  color: var(--cream);
  font-size: 1.3rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  transition: background 0.2s;
  z-index: 5;
}
.carousel__btn:hover { background: rgba(27,37,51,0.92); }
.carousel__btn--prev { left: 1rem; }
.carousel__btn--next { right: 1rem; }
.carousel__dots {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 5;
}
.carousel__dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: rgba(247,241,227,0.45);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.carousel__dot.is-active {
  background: var(--lantern-2);
  transform: scale(1.3);
}
@media (max-width: 560px) {
  .carousel__btn { padding: 0.45rem 0.7rem; font-size: 1rem; }
}

/* ── Price-free menu layout (prices removed, items centered) ── */
.menu__item {
  grid-template-columns: 1fr;
}
.menu__item-name {
  font-size: 1.04rem;
  font-weight: 600;
}
.menu__item-desc {
  color: rgba(247,241,227,0.65);
  font-size: 0.92rem;
  max-width: 52ch;
}

/* ── Chef portrait: always center on face ── */
.chef-hero__photo img,
.cv-sidebar__portrait img,
.cv-chapter__photo img {
  object-position: center 12%;
}
figure.story__media img[src*="chef"] {
  object-position: center 10%;
}

/* ── WhatsApp floating button ── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.1rem 0.7rem 0.9rem;
  border-radius: 99px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.5);
}
.wa-float svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: currentColor;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .wa-float span { display: none; }
  .wa-float { padding: 0.9rem; }
}
