/* ============================================================
   Cannes & Co. — Landing
   Modern minimal · wine accent on warm cream
   ============================================================ */

:root {
  --wine:        #5A1F22;   /* brand — matches official logo */
  --wine-deep:   #431619;
  --wine-soft:   #efe2e1;
  --cream:       #F8F4EC;   /* page bg — matches logo badge cream */
  --cream-2:     #F1EADF;   /* panels */
  --ink:         #1C1A1B;   /* text */
  --ink-soft:    #5A5350;   /* muted text */
  --line:        #E8E1D7;   /* hairlines */
  --white:       #ffffff;

  --font-display: 'Playfair Display', 'Noto Serif Thai', Georgia, serif;
  --font-thai-serif: 'Noto Serif Thai', 'Playfair Display', serif;
  --font-body: 'Noto Sans Thai', system-ui, -apple-system, sans-serif;

  --maxw: 1140px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 14px;
  --shadow: 0 18px 50px -22px rgba(28, 26, 27, .35);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- shared bits ---------- */
.eyebrow {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--wine);
  font-weight: 600;
  margin-bottom: 1rem;
}
.eyebrow--light { color: rgba(255,255,255,.85); }

.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section__title {
  font-family: var(--font-thai-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.18;
  letter-spacing: -.01em;
}
.section__head { max-width: 640px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section__sub { color: var(--ink-soft); margin-top: .9rem; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--wine); --fg: #fff; --bd: var(--wine);
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 500;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd); border-radius: 999px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--wine-deep); border-color: var(--wine-deep); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(155,27,48,.6); }
.btn--sm { padding: .6rem 1.15rem; font-size: .88rem; }
.btn--ghost { --bg: transparent; --fg: var(--wine); --bd: var(--line); }
.btn--ghost:hover { --bg: var(--wine); --fg: #fff; --bd: var(--wine); }
.btn--light { --bg: #fff; --fg: var(--wine); --bd: #fff; }
.btn--light:hover { --bg: var(--cream-2); --fg: var(--wine-deep); border-color: var(--cream-2); box-shadow: 0 12px 30px -14px rgba(0,0,0,.5); }
.btn--ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.55); }
.btn--ghost-light:hover { --bg: rgba(255,255,255,.12); --fg: #fff; border-color: #fff; box-shadow: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.is-open {
  background: rgba(251, 248, 244, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.nav__brand { display: flex; align-items: center; gap: .65rem; margin-right: auto; }
.nav__logo { border-radius: 50%; }
.nav__name {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600; letter-spacing: .01em;
  color: #fff;
  transition: color .3s ease;
}
.nav.is-scrolled .nav__name,
.nav.is-open .nav__name { color: var(--ink); }

.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  font-size: .94rem; color: rgba(255,255,255,.9);
  position: relative; padding: .25rem 0;
  transition: color .25s ease;
}
.nav.is-scrolled .nav__links a { color: var(--ink-soft); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--wine); transition: width .25s ease;
}
.nav__links a:hover { color: var(--wine); }
.nav__links a:hover::after { width: 100%; }

.nav.is-scrolled .nav__cta { /* keep wine button always */ }
.nav:not(.is-scrolled) .nav__cta { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }
.nav:not(.is-scrolled) .nav__cta:hover { background: #fff; color: var(--wine); border-color: #fff; }

/* mobile toggle */
.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav__toggle span {
  width: 24px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.nav.is-scrolled .nav__toggle span,
.nav.is-open .nav__toggle span { background: var(--ink); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  display: flex; flex-direction: column; gap: .25rem;
  padding: .75rem var(--pad) 1.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a { padding: .85rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu__cta { margin-top: 1rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  margin-top: -72px; padding-top: 72px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(255,255,255,.08), transparent 55%),
    radial-gradient(90% 80% at 10% 110%, rgba(0,0,0,.35), transparent 60%),
    linear-gradient(155deg, var(--wine) 0%, var(--wine-deep) 58%, #2c0e10 100%);
}
.hero__bg::after { /* subtle grain/texture using dots */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mix-blend-mode: overlay; opacity: .5;
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; padding-block: 4rem; }
.hero__title { margin: .5rem 0 1.6rem; line-height: 0; }
.hero__logo {
  width: min(360px, 70vw); height: auto;
  filter: drop-shadow(0 14px 40px rgba(0,0,0,.28));
}
.hero__lead {
  font-size: clamp(1.05rem, 2.3vw, 1.3rem);
  color: rgba(255,255,255,.9); max-width: 34ch; font-weight: 300;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
.hero__meta {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  margin-top: 2.4rem; font-size: .92rem; color: rgba(255,255,255,.8);
}
.hero__meta a { border-bottom: 1px solid rgba(255,255,255,.4); }
.hero__meta .dot { opacity: .5; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  z-index: 1; color: rgba(255,255,255,.8); font-size: 1.4rem;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about p + p { margin-top: 1.1rem; color: var(--ink-soft); }
.about__text > p:first-of-type { color: var(--ink-soft); }
.stats { display: flex; gap: clamp(1.5rem, 5vw, 3rem); margin-top: 2.5rem; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-display); font-size: 2.2rem; color: var(--wine); line-height: 1; }
.stat__label { font-size: .85rem; color: var(--ink-soft); margin-top: .4rem; }

.about__image { position: relative; }
.about__photo {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* placeholder boxes (swap for real photos) */
.ph {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(135deg, var(--cream-2), #ece4d8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
}
.ph::before {
  content: attr(data-ph);
  position: absolute; bottom: 12px; left: 12px;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); background: rgba(255,255,255,.6);
  padding: .25rem .55rem; border-radius: 6px;
}
.ph--tall { aspect-ratio: 4/5; min-height: 380px; }

/* ============================================================
   MENU
   ============================================================ */
.menu { background: var(--cream-2); }
.menu__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
}
.menu__cat {
  font-family: var(--font-thai-serif);
  font-weight: 600; font-size: 1.25rem; color: var(--wine);
  padding-bottom: .85rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--wine);
}
.menu__item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .8rem 0; border-bottom: 1px dashed var(--line);
}
.menu__name { display: flex; flex-direction: column; font-weight: 500; }
.menu__name small { font-weight: 400; font-size: .82rem; color: var(--ink-soft); margin-top: .15rem; }
.menu__price {
  font-family: var(--font-display); font-size: 1.1rem; color: var(--ink);
  flex-shrink: 0;
}
.menu__price::before { content: "฿"; font-size: .8em; color: var(--ink-soft); margin-right: 1px; }
.menu__cta { text-align: center; margin-top: clamp(2.5rem, 6vw, 4rem); }

/* ============================================================
   BRANDS
   ============================================================ */
.brands__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.brand-card {
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.brand-card__tag {
  display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--wine); background: var(--wine-soft);
  padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.brand-card h3 { font-family: var(--font-thai-serif); font-weight: 600; font-size: 1.45rem; margin-bottom: .6rem; }
.brand-card p { color: var(--ink-soft); font-size: .96rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 1rem;
}
.gallery__item {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--cream-2);
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--a { grid-column: span 2; grid-row: span 2; }
.gallery__item--b { grid-column: span 2; grid-row: span 1; }
.gallery__item--c { grid-column: span 1; }
.gallery__item--d { grid-column: span 1; }
.gallery__cta { text-align: center; margin-top: clamp(2rem, 5vw, 3rem); }

/* ============================================================
   VISIT
   ============================================================ */
.visit { background: var(--cream-2); }
.visit__inner { align-items: stretch; }
.info-block { margin-top: 1.8rem; }
.info-block h4 {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--wine); margin-bottom: .5rem; font-weight: 600;
}
.info-block a:not(.btn) { border-bottom: 1px solid var(--wine); color: var(--wine); }
.hours { border-collapse: collapse; width: 100%; max-width: 340px; }
.hours td { padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.hours td:last-child { text-align: right; color: var(--ink-soft); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.visit__map {
  position: relative;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  min-height: 420px;
}
.visit__map-fallback {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, var(--cream-2), #ece4d8);
  color: var(--ink-soft); font-size: .95rem; line-height: 1.5;
}
.visit__map-fallback small { color: var(--wine); }
.visit__map iframe { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: clamp(3rem,7vw,4.5rem) 0 2rem; }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__brand { display: flex; align-items: center; gap: .85rem; }
.footer__brand img { border-radius: 50%; }
.footer__name { font-family: var(--font-display); font-size: 1.3rem; color: #fff; }
.footer__tag { font-size: .82rem; letter-spacing: .05em; }
.footer__links, .footer__social { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__links a, .footer__social a { font-size: .92rem; transition: color .2s ease; }
.footer__links a:hover, .footer__social a:hover { color: #fff; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between;
  margin-top: 1.5rem; font-size: .82rem; color: rgba(255,255,255,.5);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .menu__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .brands__grid { grid-template-columns: 1fr; }
  .about__image { order: -1; }
  .ph--tall { aspect-ratio: 16/10; min-height: 260px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 175px; }
  .gallery__item--a { grid-column: span 2; grid-row: span 2; }
  .gallery__item--b { grid-column: span 2; }
}

@media (max-width: 520px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .stats { flex-wrap: wrap; gap: 1.5rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
}
