/* =========================================================
   Golden Spoon Restaurant — Mobile-first (360px first)
   Fonts: Poppins (EN), Noto Sans Myanmar (MM)
   Colors: Warm Friendly Local Trust
   ========================================================= */

/* ---------- CSS Variables (Design Tokens) ---------- */
:root{
  --c-primary: #C21F2C;
  --c-secondary: #D4A017;
  --c-bg: #FFF7ED;
  --c-surface: #FFFFFF;
  --c-text: #1F2937;
  --c-muted: #6B7280;
  --c-accent: #16A34A;
  --c-border: #E5E7EB;

  --radius: 16px;
  --shadow: 0 10px 24px rgba(17,24,39,0.10);

  /* 8pt spacing scale */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-64: 64px;

  --maxw: 1120px;

  /* Typography */
  --ff-en: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --ff-mm: "Noto Sans Myanmar", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --fs-body: 16px;
  --lh-en: 1.55;
  --lh-mm: 1.80;

  /* Sticky CTA height */
  --sticky-h: 72px;
}

/* ---------- Base ---------- */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--ff-en);
  font-size: var(--fs-body);
  line-height: var(--lh-en);
  color: var(--c-text);
  background: var(--c-bg);
}

/* Ensure content isn't hidden behind sticky CTA (mobile) */
.site-main{
  padding-bottom: calc(var(--sticky-h) + 24px);
}

img, video{
  max-width: 100%;
  height: auto;
  display: block;
}

a{
  color: inherit;
  text-decoration: none;
}
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 3px solid rgba(210,160,23,0.55);
  outline-offset: 2px;
  border-radius: 10px;
}

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-16);
}

/* ---------- Bilingual blocks ---------- */
.bilingual .en, .en{ font-family: var(--ff-en); }
.bilingual .mm, .mm{
  font-family: var(--ff-mm);
  line-height: var(--lh-mm);
}

/* Keep EN above MM */
.bilingual{
  display: block;
}
.bilingual .en{
  display:block;
  font-weight: 600;
}
.bilingual .mm{
  display:block;
  margin-top: var(--sp-4);
  font-weight: 500;
}

/* ---------- Typography scale ---------- */
h1, h2, h3{ margin: 0 0 var(--sp-12) 0; }
h1{ font-size: 30px; line-height: 1.2; }
h2{ font-size: 22px; line-height: 1.25; }
h3{ font-size: 18px; line-height: 1.3; }

p{ margin: 0 0 var(--sp-12) 0; }
.note{
  margin-top: var(--sp-12);
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Sections ---------- */
.section{
  padding: 28px 0;
}
.section-title{
  margin-bottom: var(--sp-16);
}

/* ---------- Cards / Surfaces ---------- */
.card, .qa-card, .table, .accordion-item, .panel, .form-card{
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card{
  overflow: hidden;
}
.card__body{
  padding: var(--sp-16);
}

/* ---------- Buttons (thumb-friendly) ---------- */
.btn{
  min-height: 56px; /* >= 48px */
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--sp-4);
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
}
.btn .en{ font-weight: 700; }
.btn .mm{ font-weight: 600; }

.btn-primary{
  background: var(--c-primary);
  color: #fff;
}
.btn-primary:hover{ filter: brightness(0.98); }

.btn-secondary{
  background: rgba(212,160,23,0.12);
  border-color: rgba(212,160,23,0.35);
  color: var(--c-text);
}
.btn-secondary:hover{ background: rgba(212,160,23,0.16); }

.btn-ghost{
  background: transparent;
  border-color: var(--c-border);
}

/* ---------- Header / Nav (Injected) ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,247,237,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(229,231,235,0.9);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: var(--sp-12);
  padding: 10px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: var(--sp-12);
  min-width: 0;
}
.brand img{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(229,231,235,0.8);
}
.brand__text{
  display:flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__text .en{
  font-size: 14px;
  font-weight: 700;
}
.brand__text .mm{
  font-size: 13px;
  font-weight: 600;
  color: var(--c-muted);
}

.nav-toggle{
  min-height: 48px;
  min-width: 48px;
  border-radius: 14px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  cursor: pointer;
  font-size: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.site-nav{
  display:none;
}

/* Mobile menu open state */
body.nav-open .site-nav{
  display:block;
  position: absolute;
  left: 0;
  right: 0;
  top: 64px;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-16);
}

.nav-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display:flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.nav-list a{
  display:flex;
  flex-direction: column;
  justify-content:center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
}
.nav-list a .en{ font-size: 14px; font-weight: 700; }
.nav-list a .mm{ font-size: 13px; color: var(--c-muted); }

.nav-list a[aria-current="page"]{
  border-color: rgba(194,31,44,0.45);
  box-shadow: 0 0 0 3px rgba(194,31,44,0.10);
}

.nav-cta{
  margin-top: var(--sp-12);
}
.btn--nav{
  width: 100%;
}

/* Desktop nav */
@media (min-width: 900px){
  .nav-toggle{ display:none; }
  .site-nav{
    display:flex !important;
    align-items:center;
    gap: var(--sp-16);
    position: static;
    background: transparent;
    border: none;
    padding: 0;
  }
  .nav-list{
    flex-direction: row;
    gap: var(--sp-8);
  }
  .nav-list a{
    background: transparent;
    border: 1px solid transparent;
    padding: 8px 10px;
    min-height: 44px;
  }
  .nav-list a:hover{
    background: rgba(212,160,23,0.10);
    border-color: rgba(212,160,23,0.25);
  }
  .btn--nav{
    width: auto;
    min-height: 48px;
  }
}

/* ---------- Hero ---------- */
.hero__wrap{
  display:flex;
  flex-direction: column;
  gap: var(--sp-16);
}
.hero__media img{
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow);
  max-height: 240px; /* keep hero short on mobile */
  object-fit: cover;
  width: 100%;
}
.hero__actions{
  display:grid;
  gap: var(--sp-12);
  margin-top: var(--sp-12);
}
@media (min-width: 900px){
  .hero__wrap{
    flex-direction: row;
    align-items:center;
    justify-content: space-between;
  }
  .hero__content{ flex: 1; }
  .hero__media{ flex: 1; }
  .hero__media img{ max-height: 380px; }
  .hero__actions{ grid-template-columns: 1fr 1fr; }
}

/* ---------- Quick Actions ---------- */
.quick-actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
}
.qa-card{
  display:flex;
  flex-direction: column;
  justify-content:center;
  align-items:center;
  min-height: 72px;
  padding: var(--sp-12);
  text-align:center;
}
.qa-label.en{ font-weight: 800; }
.qa-label.mm{ margin-top: 4px; color: var(--c-muted); }

/* ---------- Grids / Cards ---------- */
.cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
}
@media (min-width: 900px){
  .cards{ grid-template-columns: repeat(3, 1fr); }
}

.section-actions{
  margin-top: var(--sp-16);
  display:flex;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

/* ---------- Mini grid (reviews/gallery previews) ---------- */
.mini-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}
.mini-grid img{
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
}

/* ---------- Menu list ---------- */
.menu-list{
  margin: 0;
  padding-left: 18px;
}
.menu-list li{
  margin: 8px 0;
}

/* ---------- Table ---------- */
.table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}
.table th, .table td{
  padding: 12px;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  font-size: 15px;
}
.table th{
  background: rgba(212,160,23,0.12);
  font-weight: 800;
}

/* ---------- Accordion ---------- */
.accordion{
  display:flex;
  flex-direction: column;
  gap: var(--sp-12);
}
.accordion-item{
  padding: 0;
  overflow: hidden;
}
.accordion-title{
  cursor: pointer;
  list-style: none;
  padding: 14px 14px;
  min-height: 56px;
  display:flex;
  flex-direction: column;
  justify-content:center;
}
.accordion-title .mm{ color: var(--c-muted); font-weight: 600; }
.accordion-content{
  padding: 0 14px 14px 14px;
  border-top: 1px solid var(--c-border);
}
details[open] .accordion-title{
  background: rgba(194,31,44,0.06);
}

/* ---------- Gallery ---------- */
.gallery-grid{
  display:grid;
  grid-template-columns: 1fr 1fr; /* 2 cols mobile */
  gap: var(--sp-12);
}
@media (min-width: 900px){
  .gallery-grid{
    grid-template-columns: repeat(4, 1fr);
  }
}
.gallery-item{
  display:block;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
}
.gallery-item img{
  width: 100%;
  height: 160px;
  object-fit: cover;
}
@media (min-width: 900px){
  .gallery-item img{ height: 190px; }
}

/* ---------- Lightbox overlay ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 1000;
  padding: 18px;
}
.lightbox.is-open{ display:flex; }
.lightbox__inner{
  max-width: 980px;
  width: 100%;
  background: #111;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}
.lightbox__bar{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 10px 12px;
  background: rgba(0,0,0,0.65);
}
.lightbox__btn{
  min-height: 44px;
  min-width: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}
.lightbox__img{
  width: 100%;
  height: auto;
  display:block;
}

/* ---------- Forms ---------- */
.form-card{
  padding: var(--sp-16);
}
.form-grid{
  display:grid;
  gap: var(--sp-12);
}
.label{
  display:flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.label .en{ font-weight: 800; }
.label .mm{ color: var(--c-muted); }

input, textarea, select{
  width: 100%;
  min-height: 48px; /* >= 48px */
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--c-border);
  background: #fff;
  font: inherit;
}
textarea{
  min-height: 110px;
  resize: vertical;
}

/* ---------- Footer (Injected) ---------- */
.site-footer{
  padding: var(--sp-32) 0 calc(var(--sp-32) + var(--sticky-h));
  border-top: 1px solid rgba(229,231,235,0.9);
  background: rgba(255,255,255,0.75);
}
.footer-grid{
  display:grid;
  gap: var(--sp-16);
}
.footer-links{
  display:flex;
  flex-wrap: wrap;
  gap: var(--sp-12);
}
.footer-links a{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  display:flex;
  flex-direction: column;
  min-height: 48px;
  justify-content:center;
}
.footer-links a .mm{ color: var(--c-muted); }
.footer-meta{
  color: var(--c-muted);
  font-size: 14px;
  margin-top: var(--sp-12);
}

/* ---------- Sticky CTA bar (mobile required) ---------- */
.sticky-cta{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--sticky-h);
  background: rgba(255,255,255,0.92);
  border-top: 1px solid rgba(229,231,235,0.9);
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  z-index: 60;
}

.sticky-cta__btn{
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  min-height: var(--sticky-h);
  padding: 8px 6px;
  border-right: 1px solid rgba(229,231,235,0.9);
}
.sticky-cta__btn:last-child{ border-right: none; }

.sticky-cta__btn .en{
  font-size: 12px;
  font-weight: 800;
}
.sticky-cta__btn .mm{
  font-size: 12px;
  color: var(--c-muted);
}

/* Hide sticky CTA on desktop (optional) */
@media (min-width: 900px){
  .sticky-cta{ display:none; }
  .site-main{ padding-bottom: 0; }
  .site-footer{ padding-bottom: var(--sp-48); }
}

/* ---------- Light reveal animation (optional, very light) ---------- */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
/* About: hygiene icon + permit image */
.about-icon {
  width: 48px;
  height: 48px;
  display: block;
}

.permit-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(31,41,55,.12);
  background: #fff;
  padding: 8px;
}
