/* Modern layout for the About page. Reuses color/font variables from style.css. */

html {
  scroll-behavior: smooth;
}

body.modern-page {
  display: block;
  min-height: 100vh;
  padding: 0;
  background: var(--surface);
}

.modern-page * {
  box-sizing: border-box;
}

/* ---------- Top contact bar ---------- */

.topbar-contact {
  background: var(--leather);
  color: var(--paper);
  text-align: center;
  padding: 0.45rem 1rem;
  font-family: 'Sarabun', serif;
  font-size: 0.85rem;
}

.topbar-contact a {
  color: var(--paper);
  text-decoration: none;
}

.topbar-contact a:hover {
  text-decoration: underline;
}

/* ---------- Sticky nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(179, 89, 47, 0.2);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Kanit', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.nav-brand .brand-logo {
  width: 26px;
  height: 26px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-links a {
  font-family: 'Sarabun', serif;
  font-size: 1.05rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
  text-decoration: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}

.social-link:hover {
  color: var(--gold);
}

.btn-menu {
  font-family: 'Kanit', serif !important;
  background: var(--gold);
  color: var(--paper) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem !important;
  transition: background 0.2s, transform 0.2s;
}

.btn-menu:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 800px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.2rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid rgba(179, 89, 47, 0.2);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* ---------- Hero: typographic statement + floating photo collage ----------
   Deliberately not a full-bleed image carousel with dots/arrows — that's
   the generic slider template every restaurant site defaults to. */

.about-hero {
  padding: clamp(3rem, 7vw, 5rem) 1.5rem clamp(2.4rem, 5vw, 3.6rem);
  overflow: hidden;
}

.about-hero-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.8rem;
  align-items: center;
}

.about-hero-text h1 {
  font-family: 'Kanit', serif;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 1rem;
}

.about-hero-sub {
  font-family: 'Sarabun', serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 1.5rem;
}

.about-hero-collage {
  position: relative;
  height: clamp(280px, 38vw, 400px);
  margin: 0 auto;
  width: min(100%, 420px);
}

.collage-img {
  position: absolute;
  border-radius: 18px;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: 0 16px 34px rgba(60, 40, 20, 0.2);
}

.collage-img-1 {
  width: 64%;
  aspect-ratio: 4 / 3;
  top: 6%;
  left: 0;
  z-index: 2;
  animation: collageFloatA 6s ease-in-out infinite;
}

.collage-img-2 {
  width: 46%;
  aspect-ratio: 1 / 1;
  bottom: 2%;
  right: 0;
  z-index: 3;
  animation: collageFloatB 7s ease-in-out infinite 0.3s;
}

.collage-img-3 {
  width: 42%;
  aspect-ratio: 4 / 3;
  top: 0;
  right: 10%;
  z-index: 1;
  animation: collageFloatC 8s ease-in-out infinite 0.6s;
}

@keyframes collageFloatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes collageFloatB {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-10px); }
}

@keyframes collageFloatC {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-8px); }
}

.collage-badge {
  position: absolute;
  bottom: -8%;
  left: -6%;
  z-index: 4;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Kanit', serif;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transform: rotate(-8deg);
}

@media (min-width: 860px) {
  .about-hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .about-hero-collage {
    margin: 0;
    width: 100%;
  }
}

/* ---------- Story section ---------- */

.story-section {
  padding: clamp(2.2rem, 5vw, 3.5rem) 1.5rem 0;
}

.story-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.story-wrap h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 1.1rem;
}

.story-wrap p {
  font-family: 'Sarabun', serif;
  line-height: 1.75;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.btn-primary {
  display: inline-block;
  font-family: 'Kanit', serif;
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
  text-decoration: none;
}

.eyebrow {
  font-family: 'Kanit', serif;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.section-head {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-head h2 {
  font-family: 'Kanit', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
  margin: 0 0 0.2rem;
}

/* ---------- Signature dishes (horizontal scroll-snap, not a grid) ---------- */

.dishes-section {
  padding: clamp(2.4rem, 5vw, 3.5rem) 0 clamp(2.6rem, 5vw, 3.5rem);
}

.dishes-section > .btn-primary {
  display: block;
  width: fit-content;
  margin: 1.6rem auto 0;
}

.dish-scroller {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.6rem clamp(1.2rem, 6vw, calc((100vw - 1080px) / 2 + 1.5rem)) 0.6rem;
  scrollbar-width: thin;
}

.dish-card {
  scroll-snap-align: start;
  flex: 0 0 220px;
  display: block;
  background: var(--card);
  border: 1px solid rgba(179, 89, 47, 0.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(60, 40, 20, 0.07);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.25s ease;
}

.dish-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 32px rgba(60, 40, 20, 0.14);
  text-decoration: none;
}

.dish-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #e0973a, #a3341e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.dish-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-card-body {
  padding: 0.9rem 1.1rem 1.1rem;
}

.dish-card-body .eyebrow {
  font-size: 0.62rem;
  margin-bottom: 0.3rem;
}

.dish-card-body h3 {
  font-family: 'Kanit', serif;
  color: var(--ink);
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.dish-card-body .price {
  font-family: 'Kanit', serif;
  color: var(--gold);
  font-size: 0.95rem;
}

/* ---------- Visit band (full-width, not a rounded tile) ---------- */

.visit-band {
  background: var(--leather);
  color: #fff;
  padding: clamp(2.6rem, 6vw, 4rem) 1.5rem;
}

.visit-band-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.visit-band .eyebrow { color: var(--gold-light); }
.visit-band h2 { color: #fff; font-family: 'Kanit', serif; font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0 0 0.6rem; }
.visit-band p { color: rgba(247, 236, 216, 0.85); font-family: 'Sarabun', serif; line-height: 1.65; margin: 0 0 1rem; }
.visit-band .map-link { color: #fff; text-decoration: underline; }

.map-link {
  margin-top: 0.4rem;
  font-family: 'Kanit', serif;
  font-size: 0.95rem;
  color: var(--gold);
}

/* ---------- Gallery (masonry via CSS columns) ---------- */

.gallery-section {
  padding: clamp(2.4rem, 5vw, 3.5rem) 1.5rem clamp(3rem, 6vw, 5rem);
  background: var(--surface-alt);
}

.masonry-grid {
  max-width: 1080px;
  margin: 1.6rem auto 0;
  columns: 3 220px;
  column-gap: 1.2rem;
}

@media (max-width: 640px) {
  .masonry-grid {
    columns: 2 160px;
  }
}

.photo-tile {
  margin: 0 0 1.2rem;
  break-inside: avoid;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(60,40,20,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.photo-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(60,40,20,0.14);
}

.photo-tile-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  overflow: hidden;
}

.photo-tile-img-empty {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.35), transparent 55%),
    linear-gradient(135deg, #e0973a, #a3341e);
}

.photo-tile-img img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.photo-tile-img img:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.photo-tile figcaption {
  padding: 1rem 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.photo-tile figcaption strong {
  font-family: 'Kanit', serif;
  color: var(--ink);
}

.photo-tile figcaption span {
  font-family: 'Sarabun', serif;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 2.5rem clamp(1.2rem, 4vw, 3rem);
  background: var(--leather);
  color: var(--paper);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-brand .brand-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.site-footer strong {
  font-family: 'Kanit', serif;
  font-size: 1.1rem;
}

.site-footer p {
  margin: 0.2rem 0 0;
  font-family: 'Sarabun', serif;
  color: rgba(244, 236, 216, 0.75);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--gold-light);
  font-family: 'Kanit', serif;
}
