/* K-Uncle Korean Halal — Editorial Halal Premium
   Shared stylesheet for EN / TH / AR.
   Mobile-first. RTL overrides in css/rtl.css for Arabic. */

:root {
  /* palette */
  --cream:        #FAF6EE;
  --cream-2:      #F2EBDC;
  --paper:        #FFFFFF;
  --ink:          #1A1611;
  --ink-2:        #4A4138;
  --ink-mute:     #837868;
  --brand:        #8B1F1F;       /* burgundy red, echo logo */
  --brand-deep:   #6B1717;
  --gold:         #C9A961;
  --gold-deep:    #A4853E;
  --halal-green:  #1E5128;
  --halal-bg:     #E7EEDD;
  --hair:         #E8DFCB;       /* divider */
  --shadow-sm:    0 1px 2px rgba(26,22,17,.06), 0 2px 4px rgba(26,22,17,.04);
  --shadow-md:    0 4px 12px rgba(26,22,17,.08), 0 8px 24px rgba(26,22,17,.06);
  --shadow-lg:    0 12px 32px rgba(26,22,17,.10), 0 24px 64px rgba(26,22,17,.08);

  /* typography */
  --serif:        "DM Serif Display", "Cormorant Garamond", Georgia, "Noto Serif", serif;
  --sans:         "Inter", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --th:           "Noto Sans Thai", "IBM Plex Sans Thai", "Sarabun", var(--sans);
  --ar:           "Noto Naskh Arabic", "Amiri", "Scheherazade New", var(--sans);

  /* layout */
  --w-content:    1200px;
  --w-text:       720px;
  --pad-x:        clamp(16px, 4vw, 32px);
  --pad-section:  clamp(60px, 9vw, 120px);
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="th"] body { font-family: var(--th); }
html[lang="ar"] body { font-family: var(--ar); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
button { font: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--ink);
}
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3, html[lang="th"] h4 {
  font-family: var(--th); font-weight: 600;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
  font-family: var(--ar); font-weight: 700;
}
h1 { font-size: clamp(36px, 6.5vw, 76px); line-height: 1.05; }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: clamp(22px, 2.5vw, 30px); }
h4 { font-size: 20px; }
p  { color: var(--ink-2); }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand);
}
.lead { font-size: 19px; line-height: 1.7; color: var(--ink-2); max-width: var(--w-text); }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--w-content); margin: 0 auto; padding: 0 var(--pad-x); }
.section   { padding: var(--pad-section) 0; }
.section--paper { background: var(--paper); }
.section--ink   { background: var(--ink); color: var(--cream); }
.section--ink p { color: rgba(250,246,238,.72); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--cream); }
.rule { height: 1px; background: var(--hair); width: 60px; margin: 28px 0; }
.section--ink .rule { background: rgba(250,246,238,.22); }

/* ---------- Halal trust bar (top of page) ---------- */
.halal-bar {
  background: var(--halal-bg);
  color: var(--halal-green);
  font-size: 13px;
  text-align: center;
  padding: 10px var(--pad-x);
  letter-spacing: 0.04em;
  border-bottom: 1px solid #d8e3c5;
}
.halal-bar strong { font-weight: 700; }
.halal-bar .ar { font-family: var(--ar); font-size: 16px; margin: 0 6px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--hair);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 22px; color: var(--ink);
}
.brand img { width: 40px; height: 40px; border-radius: 50%; background: var(--cream-2); }
.brand .brand-name { font-weight: 400; }
.brand .brand-sub  { font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); display: block; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--brand); }
.lang-switch { display: flex; gap: 12px; font-size: 13px; color: var(--ink-mute); }
.lang-switch a { padding: 4px 8px; border: 1px solid transparent; border-radius: 4px; }
.lang-switch a.active { color: var(--ink); border-color: var(--hair); }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--ink); }
@media (max-width: 880px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .lang-switch { gap: 4px; font-size: 12px; }
  .lang-switch a { padding: 3px 6px; }
  .site-header.open .nav { display: flex; flex-basis: 100%; flex-wrap: wrap; gap: 18px; padding-top: 16px; border-top: 1px solid var(--hair); margin-top: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 var(--pad-section);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 .accent { color: var(--brand); font-style: italic; }
.hero .lead { margin-top: 28px; }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; top: 24px; left: 24px;
  background: var(--paper); padding: 10px 14px; border-radius: 50px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  color: var(--halal-green); display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-md);
}
.hero-badge .ar { font-family: var(--ar); font-size: 18px; color: var(--halal-green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; border-radius: 100px;
  transition: all .18s ease;
}
.btn--primary { background: var(--brand); color: var(--cream); }
.btn--primary:hover { background: var(--brand-deep); color: var(--cream); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--ghost-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--ghost-light:hover { background: var(--cream); color: var(--ink); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-deep); color: var(--paper); }

/* ---------- Section: trust strip ---------- */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--paper); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.trust-strip > div {
  padding: 36px 24px; border-right: 1px solid var(--hair); text-align: center;
}
.trust-strip > div:last-child { border-right: 0; }
.trust-strip .num { font-family: var(--serif); font-size: 42px; color: var(--brand); line-height: 1; }
.trust-strip .lbl { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-top: 10px; }
@media (max-width: 720px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip > div:nth-child(2) { border-right: 0; }
  .trust-strip > div:nth-child(1), .trust-strip > div:nth-child(2) { border-bottom: 1px solid var(--hair); }
}

/* ---------- Two-column editorial section ---------- */
.editorial {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center;
}
.editorial--reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .editorial { grid-template-columns: 1fr; }
  .editorial--reverse > :first-child { order: 0; }
}
.editorial img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.editorial-text h2 { margin-bottom: 28px; }
.editorial-text p { margin-bottom: 18px; }

/* ---------- Signature dishes ---------- */
.dishes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px;
}
@media (max-width: 880px) { .dishes { grid-template-columns: 1fr; } }
.dish {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease;
}
.dish:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dish-img { aspect-ratio: 4 / 3; overflow: hidden; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; }
.dish-body { padding: 24px 24px 28px; }
.dish-cat  { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand); }
.dish-name { font-family: var(--serif); font-size: 24px; margin: 8px 0 6px; }
.dish-th   { font-family: var(--th); color: var(--ink-mute); font-size: 14px; margin-bottom: 10px; }
.dish-price{ font-weight: 700; color: var(--ink); font-size: 16px; }
.dish-tag  { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #FCE5E5; color: var(--brand); margin-left: 6px; font-weight: 600; }

/* ---------- Branches grid ---------- */
.branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 880px) { .branches { grid-template-columns: 1fr; } }
.branch-card {
  background: var(--paper); padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--hair); transition: border-color .18s ease;
}
.branch-card:hover { border-color: var(--brand); }
.branch-card h3 { font-size: 24px; margin-bottom: 12px; }
.branch-card .addr { font-size: 14px; color: var(--ink-mute); margin-bottom: 16px; }
.branch-card .meta { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); padding-top: 16px; border-top: 1px solid var(--hair); }
.branch-card .meta b { color: var(--ink); font-weight: 600; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--ink); color: var(--cream);
  padding: clamp(60px, 8vw, 100px) 0; text-align: center;
}
.cta-strip h2 { color: var(--cream); max-width: 720px; margin: 0 auto; }
.cta-strip p  { color: rgba(250,246,238,.7); margin: 18px auto 32px; max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(250,246,238,.7);
  padding: 72px 0 32px; font-size: 14px;
}
.site-footer a { color: rgba(250,246,238,.85); }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--cream); font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(250,246,238,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; }

/* ---------- Menu page ---------- */
.menu-section { margin-top: 80px; }
.menu-section:first-of-type { margin-top: 40px; }
.menu-section h2 { display: flex; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.menu-section h2 .th { font-family: var(--th); font-size: 0.55em; color: var(--ink-mute); font-weight: 400; }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 64px; }
@media (max-width: 720px) { .menu-grid { grid-template-columns: 1fr; gap: 8px; } }
.menu-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
  padding: 16px 0; border-bottom: 1px dashed var(--hair); align-items: baseline;
}
.menu-row .nm { font-family: var(--serif); font-size: 19px; }
.menu-row .th-name { font-family: var(--th); font-size: 13px; color: var(--ink-mute); margin-top: 2px; }
.menu-row .pr { font-weight: 700; color: var(--brand); white-space: nowrap; font-size: 17px; }
.menu-row .desc { font-size: 14px; color: var(--ink-mute); margin-top: 4px; grid-column: 1 / -1; }
.spicy-dot { color: var(--brand); margin-left: 6px; font-size: 13px; }

/* ---------- Branch detail page ---------- */
.branch-hero { padding: 60px 0; }
.branch-hero .meta-line { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--ink-mute); margin-top: 16px; }
.branch-hero .meta-line b { color: var(--ink); font-weight: 600; }
.branch-map { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--hair); }
.branch-map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: var(--w-text); margin: 48px auto 0; }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--hair); }
.faq-q { font-family: var(--serif); font-size: 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: "+"; font-size: 28px; color: var(--brand); transition: transform .2s ease; }
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { margin-top: 14px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px;
}
@media (max-width: 880px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card-img { aspect-ratio: 16/10; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand); }
.blog-card-title { font-family: var(--serif); font-size: 22px; line-height: 1.25; margin: 10px 0 12px; }
.blog-card-excerpt { color: var(--ink-mute); font-size: 15px; flex: 1; }
.blog-card-meta { font-size: 12px; color: var(--ink-mute); margin-top: 14px; letter-spacing: 0.04em; text-transform: uppercase; }

.post-hero { padding: 60px 0 36px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-mute); margin-top: 18px; letter-spacing: 0.04em; }
.post-meta b { color: var(--ink); font-weight: 600; }
.post-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); margin-top: 32px; box-shadow: var(--shadow-md); }

.post-content { max-width: var(--w-text); margin: 0 auto; padding: 24px 0 64px; }
.post-content > * + * { margin-top: 22px; }
.post-content h2 { font-size: 28px; margin-top: 56px; }
.post-content h3 { font-size: 22px; margin-top: 40px; }
.post-content p, .post-content li { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.post-content ul, .post-content ol { padding-inline-start: 24px; }
.post-content ul li, .post-content ol li { margin-top: 8px; }
.post-content a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-content strong { color: var(--ink); }
.post-content blockquote {
  border-inline-start: 3px solid var(--brand); padding: 6px 0 6px 20px;
  font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--ink);
}
html[dir="rtl"] .post-content blockquote { padding: 6px 20px 6px 0; }
.post-content .fact-box {
  background: var(--cream-2); border-radius: var(--radius); padding: 24px;
  margin: 32px 0; font-size: 16px;
}
.post-content .fact-box strong { display: block; font-family: var(--serif); font-size: 18px; margin-bottom: 8px; }

@media (max-width: 720px) {
  .post-content h2 { font-size: 24px; margin-top: 40px; }
  .post-content h3 { font-size: 20px; margin-top: 32px; }
  .post-content p, .post-content li { font-size: 16px; }
  .post-content blockquote { font-size: 19px; }
  .blog-card-title { font-size: 19px; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.mt-4 { margin-top: 64px; }
.muted { color: var(--ink-mute); }

/* ---------- Mobile refinements ---------- */
@media (max-width: 720px) {
  :root { --pad-section: 56px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  .lead { font-size: 16px; line-height: 1.6; }
  .halal-bar { font-size: 11px; padding: 8px 12px; letter-spacing: 0.02em; }
  .halal-bar .ar { font-size: 14px; margin: 0 4px; }
  .site-header .container { padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .brand img { width: 34px; height: 34px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand .brand-sub { font-size: 9px; letter-spacing: 0.14em; }
  .nav-toggle { font-size: 22px; }
  .hero { padding-top: 32px; }
  .hero-grid { gap: 28px; }
  .hero-cta { width: 100%; gap: 10px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; min-width: 0; }
  .hero-badge { top: 12px; left: 12px; padding: 6px 10px; font-size: 10px; letter-spacing: 0.1em; }
  .hero-badge .ar { font-size: 14px; }
  .trust-strip .num { font-size: 30px; }
  .trust-strip > div { padding: 24px 16px; }
  .branch-hero .meta-line { gap: 8px 16px; font-size: 13px; }
  .branch-hero .meta-line > span { flex-basis: 100%; }
  .branch-card { padding: 24px; }
  .branch-card h3 { font-size: 20px; }
  .branch-card .meta { flex-direction: column; gap: 6px; }
  .dish-body { padding: 20px; }
  .dish-name { font-size: 21px; }
  .menu-section { margin-top: 56px; }
  .menu-section h2 { flex-wrap: wrap; gap: 8px; }
  .menu-row { gap: 8px; padding: 14px 0; }
  .menu-row .nm { font-size: 16px; }
  .menu-row .pr { font-size: 16px; }
  .footer-grid { gap: 28px; margin-bottom: 36px; }
  .footer-bottom { font-size: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .btn { padding: 12px 22px; font-size: 14px; }
}

@media (max-width: 380px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .lead { font-size: 15px; }
  .trust-strip > div { padding: 20px 8px; }
  .trust-strip .num { font-size: 26px; }
  .trust-strip .lbl { font-size: 10px; letter-spacing: 0.1em; }
  .brand .brand-sub { display: none; }
}
