/* ==========================================================================
  An An – Modern Asian Fusion Theme
  Palette inspired by logo: cream parchment, deep crimson, near-black ink, warm gold
   ========================================================================== */

/* ── Local fonts ───────────────────────────────────────────────── */
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2'),
       url('../fonts/cormorant-garamond-v21-latin-regular.ttf')  format('truetype');
}
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2'),
       url('../fonts/cormorant-garamond-v21-latin-600.ttf')  format('truetype');
}
@font-face {
  font-display: swap;
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/lato-v25-latin-regular.woff2') format('woff2'),
       url('../fonts/lato-v25-latin-regular.ttf')   format('truetype');
}
@font-face {
  font-display: swap;
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/lato-v25-latin-700.woff2') format('woff2'),
       url('../fonts/lato-v25-latin-700.ttf')   format('truetype');
}

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --crimson:       #ffffff;
  --crimson-dark:  #01375A;
  --crimson-light: #01375A;
  --gold:          #f4f4f4;
  --gold-light:    #f4f4f4;
  --ocean:         #E94B2B;
  --cream:         #F0E6D0;
  --parchment:     #FAF4E8;
  --ink:           #150E09;
  --text:          #F0E6D0;
  --text-muted:    rgba(240,230,208,.75);
  --border:        rgba(255,255,255,.06);
  --bg:            #070707;
  --white:         #FFFFFF;

  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-sans:     'Lato', 'Segoe UI', system-ui, sans-serif;

  --radius:        8px;
  --ease:          0.28s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-xs:     0 1px 3px rgba(139,26,26,.10);
  --shadow-sm:     0 3px 8px  rgba(139,26,26,.12);
  --shadow-md:     0 6px 20px rgba(139,26,26,.16);
  --shadow-lg:     0 12px 36px rgba(139,26,26,.22);

  --max-w:         1200px;
  --header-h:      72px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: var(--ocean); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--crimson-light); }
address { font-style: normal; }

.hero-container {
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.container {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ── Typography ─────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .4rem; }
.section-sub   { color: var(--text-muted); margin-bottom: 1.2rem; }
.section-divider {
  border: none;
  height: 2px;
  width: 56px;
  background: var(--crimson);
  margin-bottom: 2rem;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.4rem;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--crimson);
  color: var(--crimson-dark);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--crimson-dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,.75);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.06);
  color: var(--white);
}
.btn-large { padding: .85rem 2rem; font-size: 1rem; }
.ext-icon { font-size: .8em; opacity: .85; }

/* Button pairs */
.about-actions,
.location-actions,
.footer-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .75rem;
}

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  background: #070707;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139,26,26,.35);
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.logo-img { height: 48px; width: auto; }
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: .04em;
}

/* ── Nav ────────────────────────────────────────────────────────── */
#nav-menu {
  display: flex;
  list-style: none;
  gap: .25rem;
}

/* Top navigation for all viewports */
.main-nav {
  display: flex;
  align-items: center;
}

/* Mobile: show toggle and keep horizontal layout */
@media (max-width: 899px) {
  .main-nav { position: static; }
  #nav-menu { flex-direction: row; gap: .25rem; }
  .nav-toggle { display: flex; }
  .nav-close-item { display: none; }
  .site-header { display: block; }
}
#nav-menu li a {
  display: block;
  padding: .5rem .9rem;
  padding-bottom: calc(.5rem - 2px);
  color: rgba(240,230,208,.85);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .03em;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
#nav-menu li a:hover,
#nav-menu li a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

/* Close button – only shown inside the fullscreen mobile overlay */
.nav-close-item { display: none; }
.nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  background: transparent;
border: none;
}
.nav-close:hover { color: var(--gold); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #070707;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  text-align: center;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(160deg, rgba(21,14,9,.78) 0%, rgba(44, 16, 90, 0.532) 50%, rgba(21,14,9,.88) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(139,26,26,.22) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-block: 5rem;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--cream);
  line-height: 1.05;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 32px rgba(0,0,0,.5);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(240,230,208,.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ── Dishes ──────────────────────────────────────────────────────── */
.dishes { padding: 5rem 0; background: var(--parchment); }
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.dish-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--ease), transform var(--ease);
}
.dish-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.dish-icon { font-size: 2.5rem; margin-bottom: .8rem; }
.dish-card h3 {
  font-size: 1.05rem;
  color: var(--crimson);
  margin-bottom: .5rem;
}
.dish-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.55; }
.dish-card--cta { display: flex; align-items: center; justify-content: center; }

/* ── About ───────────────────────────────────────────────────────── */
.about { padding: 5rem 0; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: var(--shadow-lg);
}
.about-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.about-text .btn { margin-top: .5rem; }

/* ── Location ────────────────────────────────────────────────────── */
.location {
  padding: 0 0 5rem 0;
  background: linear-gradient(135deg, var(--ink) 0%, #2A1010 100%);
  color: var(--cream);
}
.location .section-title,
.location h4 { color: var(--cream); }
.location .section-divider { background: var(--gold); }
.location-grid {
  text-align: center;
  justify-content: center;
}
.location-grid .section-divider {
  text-align: center;
  justify-content: center;
  margin: 0 auto;
}
.location-grid .location-actions {
  justify-content: center;
}
.location-detail { margin-bottom: 1.6rem; }
.location-detail h4 {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .45rem;
}

/* Make all page sections, footer and slide layers use the same solid background */
body {
  background: var(--bg);
  color: var(--text);
}

section,
.dishes,
.about,
.location,
.hero,
.site-footer {
  background: transparent !important;
  color: var(--text) !important;
}

/* Ensure headings use light color on the dark background */
h1,h2,h3,h4,h5,h6 {
  color: var(--white);
}

/* Tweak muted text for readability */
.section-sub,
.about-text p,
.dish-card p,
.hero-sub {
  color: var(--text-muted) !important;
}

/* slideshow styles above — keep slides enabled */
.location-detail address,
.location-detail p { color: rgba(240,230,208,.8); line-height: 1.7; }
.location-detail a { color: var(--gold); }
.location-detail a:hover { color: var(--gold-light); }
.location-map iframe {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Full-width map section placed above the footer */
.full-map {
  width: 100%;
  background: transparent;
  padding: 0;
}
.full-map .map-embed {
  width: 100%;
  max-width: none;
  margin: 0;
}
.full-map iframe {
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
}

/* ── Opening hours (in footer + location) ───────────────────────── */
.opening-hours p {
  font-size: .9rem;
  line-height: 1.9;
  color: rgba(240,230,208,.8);
}
.site-footer .opening-hours p { color: rgba(240,230,208,.75); }

/* Closed indicator */
.oh-closed {
  color: #E94B2B;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(240,230,208,.75);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(201,162,39,.2);
}
.footer-logo { height: 60px; width: auto; border-radius: 100%; }
.footer-tagline { font-size: .88rem; color: rgba(240,230,208,.55); }
.footer-col h4 {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
  margin-top: 0;
}
.footer-col address,
.footer-col p { font-size: .88rem; color: rgba(240,230,208,.7); line-height: 1.75; }
.footer-col a { color: var(--gold); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  font-size: .8rem;
  color: rgba(240,230,208,.4);
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-nav { display: flex; gap: .75rem; align-items: center; }
.footer-nav a { color: rgba(240,230,208,.5); }
.footer-nav a:hover { color: var(--gold); }

/* ── Gallery page ───────────────────────────────────────────────── */
.gallery-hero {
  padding: 3.5rem 0 0;
  background: var(--parchment);
}
.gallery-section { padding: 2rem 0 5rem; background: var(--parchment); }
.gallery-grid {
  columns: 3 260px;
  column-gap: 12px;
}
.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}
.gallery-item:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.01);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--ease);
}
.gallery-item:hover img { transform: scale(1.03); }
@media (max-width: 600px) {
  .gallery-grid { columns: 2 140px; column-gap: 8px; }
  .gallery-item { margin-bottom: 8px; }
}

/* ── Lightbox ────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,6,4,.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox-figure {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}
#lb-img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0,0,0,.7);
  transition: opacity .3s ease;
  display: block;
}
.lightbox-spinner {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(240,230,208,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: lb-spin .7s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.4rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240,230,208,.12);
  border: 1px solid rgba(240,230,208,.25);
  border-radius: 50%;
  color: var(--cream);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--ease);
}
.lightbox-close:hover { background: rgba(240,230,208,.25); }
.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240,230,208,.10);
  border: 1px solid rgba(240,230,208,.20);
  border-radius: 50%;
  color: var(--cream);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--ease);
}
.lightbox-arrow:hover { background: rgba(201,162,39,.3); color: var(--gold); }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox-counter {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: .8rem;
  color: rgba(240,230,208,.55);
  letter-spacing: .08em;
  pointer-events: none;
}
@media (max-width: 600px) {
  .lightbox-arrow { width: 40px; height: 40px; font-size: 1.7rem; }
  .lightbox-prev  { left: .5rem; }
  .lightbox-next  { right: .5rem; }
}

/* ── Single / post pages ─────────────────────────────────────────── */
.post {
  max-width: 780px;
  margin: 4rem auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.post h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
.post-body { color: var(--text-muted); line-height: 1.8; }
.post-body h2,h3,h4 { color: var(--crimson); margin: 1.8rem 0 .6rem; }
.post-body p { margin-bottom: 1rem; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-image img { height: 260px; }
  .location-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  #nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    background: #070707;
    padding: 5rem 2rem 2rem;
    position: relative; /* needed so .nav-close can use absolute positioning */
  }
  .nav-close-item { display: block; position: static; }
  #nav-menu.open { display: flex; }
  #nav-menu li a {
    font-size: 1.2rem;
    padding: .9rem .5rem;
    border-bottom: 1px solid rgba(201,162,39,.18);
  }
  #nav-menu li a:hover,
  #nav-menu li a.active {
    border-bottom-color: rgba(201,162,39,.18);
  }
  .hero-content { padding-block: 3.5rem; }
  .dishes-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 440px) {
  .dishes-grid { grid-template-columns: 1fr; }
  .logo-text { display: none; }
}
