/* =============================================================================
 * Chaa Churma — styles
 * Palette: warm cream & pale yellow, dark brown type, terracotta highlights.
 * ========================================================================== */

:root {
  --cream: #fdf6e3;
  --cream-2: #f7eccb;
  --pale-yellow: #faf0c8;
  --card: #fffdf6;
  --brown: #4a2c18;
  --brown-2: #6b4226;
  --brown-soft: #8a6a4f;
  --terracotta: #c75b32;
  --terracotta-dark: #a8431f;
  --accent: #e08a3c;
  --line: #e7d6b0;
  --shadow: 0 6px 20px rgba(74, 44, 24, 0.10);
  --shadow-lg: 0 14px 40px rgba(74, 44, 24, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--brown); margin: 0 0 .4em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }

.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; }
.section-sub { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; color: var(--brown-soft); }
.eyebrow {
  display: block; text-align: center; letter-spacing: .18em; text-transform: uppercase;
  font-size: .78rem; font-weight: 600; color: var(--terracotta); margin-bottom: .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 6px 16px rgba(199,91,50,.35); }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--brown); border-color: var(--brown-2); }
.btn-secondary:hover { background: var(--brown-2); color: #fff; }
.btn-ghost { background: var(--card); color: var(--brown); border-color: var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 246, 227, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 70px;
}
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); }
.brand img { width: 40px; height: 40px; }
.brand .brand-name { font-size: 1.3rem; font-weight: 700; color: var(--brown); }
.brand .brand-name span { color: var(--terracotta); }

.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--brown); font-weight: 500; font-size: .95rem;
  padding: .5rem .8rem; border-radius: 8px; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--cream-2); color: var(--terracotta-dark); text-decoration: none; }
.nav-links .nav-cta { background: var(--terracotta); color: #fff; }
.nav-links .nav-cta:hover { background: var(--terracotta-dark); color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--brown); border-radius: 2px; transition: .25s; }
.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); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% 10%, rgba(224,138,60,.18), transparent 55%),
    linear-gradient(160deg, var(--pale-yellow), var(--cream) 70%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center;
  padding: 72px 0 84px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: .4rem; background: var(--card);
  border: 1px solid var(--line); color: var(--brown-2); font-size: .85rem; font-weight: 500;
  padding: .4rem .9rem; border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.hero h1 .hl { color: var(--terracotta); }
.hero p.lead { font-size: 1.1rem; color: var(--brown-2); max-width: 560px; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow-lg); }

/* ---------- Menu ---------- */
.menu-toolbar {
  display: flex; flex-direction: column; gap: 1rem; align-items: center; margin-bottom: 1.6rem;
}
.search-box { position: relative; width: 100%; max-width: 440px; }
.search-box input {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--brown);
  padding: .85rem 1rem .85rem 2.8rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow);
}
.search-box input:focus { outline: 3px solid rgba(199,91,50,.3); outline-offset: 1px; border-color: var(--terracotta); }
.search-box .search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--brown-soft); }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.chip {
  font-family: var(--font); font-size: .86rem; font-weight: 500; color: var(--brown-2);
  padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }
.chip.active { background: var(--brown-2); color: #fff; border-color: var(--brown-2); }

.menu-category { margin-top: 2.6rem; }
.cat-head h3 {
  font-size: 1.5rem; display: flex; align-items: center; gap: .6rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--line); margin-bottom: 1.3rem;
}
.cat-icon { font-size: 1.4rem; }

/* Photo banner header for a category */
.cat-head.has-banner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  margin-bottom: 1.4rem; box-shadow: var(--shadow); min-height: 120px;
  display: flex; align-items: flex-end; border: 1px solid var(--line);
}
.cat-head.has-banner .cat-banner {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.cat-head.has-banner::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(42,24,12,.15) 0%, rgba(42,24,12,.78) 100%);
}
.cat-head.has-banner h3 {
  position: relative; z-index: 2; color: #fff; border-bottom: 0;
  margin: 0; padding: 1rem 1.2rem; font-size: 1.6rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.cat-head.has-banner h3 .cat-icon { filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }

.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem;
}
.menu-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.menu-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.menu-item.has-media { grid-column: span 1; }
.item-media { aspect-ratio: 16/10; overflow: hidden; background: var(--cream-2); }
.item-media img { width: 100%; height: 100%; object-fit: cover; }
.item-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.item-name { font-family: var(--font); font-size: 1.05rem; font-weight: 600; margin: 0; }
.item-desc { font-size: .88rem; color: var(--brown-soft); margin: 0; }
.badge-pop {
  flex: none; font-size: .68rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  background: rgba(224,138,60,.16); color: var(--terracotta-dark);
  padding: .2rem .5rem; border-radius: 999px;
}

.single-price { font-weight: 700; font-size: 1.15rem; color: var(--terracotta-dark); margin-top: auto; }
.size-prices { display: flex; gap: .5rem; margin-top: auto; }
.sp {
  flex: 1; text-align: center; background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .4rem .3rem;
}
.sp-size { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .05em; color: var(--brown-soft); text-transform: uppercase; }
.sp-price { display: block; font-size: 1rem; font-weight: 700; color: var(--terracotta-dark); }

.menu-addons {
  margin-top: 2rem; text-align: center; font-size: .92rem; color: var(--brown-2);
  background: var(--cream-2); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 1rem;
}
.menu-addons .addon-label { font-weight: 700; }
.menu-addons .addon { display: inline-block; margin: 0 .5rem; }

.menu-empty { text-align: center; color: var(--brown-soft); padding: 2rem; }

/* ---------- Popular picks ---------- */
.popular-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem;
}
.pop-card {
  display: flex; align-items: center; gap: .9rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1.1rem; box-shadow: var(--shadow); transition: transform .15s;
}
.pop-card:hover { transform: translateY(-3px); }
.pop-icon { font-size: 1.8rem; }
.pop-info { display: flex; flex-direction: column; flex: 1; }
.pop-info strong { font-size: 1rem; }
.pop-cat { font-size: .78rem; color: var(--brown-soft); }
.pop-price { font-weight: 700; color: var(--terracotta-dark); white-space: nowrap; }

/* ---------- Churma / Home Style specials ---------- */
.specials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.special-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.special-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.special-card .special-media { aspect-ratio: 4/3; overflow: hidden; background: var(--cream-2); }
.special-card .special-media img { width: 100%; height: 100%; object-fit: cover; }
.special-card .special-body { padding: 1.2rem 1.3rem 1.4rem; }
.special-card h3 { font-size: 1.35rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.special-card .special-price { font-family: var(--font); color: var(--terracotta-dark); font-weight: 700; font-size: 1.1rem; }
.special-card p { color: var(--brown-soft); margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.about-text p { color: var(--brown-2); margin-bottom: 1rem; }
.about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem; box-shadow: var(--shadow);
}
.feature .f-icon { font-size: 1.6rem; }
.feature strong { display: block; margin-top: .3rem; }
.feature span { font-size: .85rem; color: var(--brown-soft); }
.about-art img { border-radius: 24px; box-shadow: var(--shadow-lg); width: 100%; }

/* ---------- Location & contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; box-shadow: var(--shadow);
}
.contact-card h3 { font-size: 1.3rem; }
.contact-row { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1.1rem; }
.contact-row .c-icon { font-size: 1.3rem; flex: none; }
.contact-row .c-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brown-soft); font-weight: 600; }
.contact-row address { font-style: normal; color: var(--brown-2); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.muted { color: var(--brown-soft); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 320px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: #f3e6cf; padding: 56px 0 28px; }
.site-footer a { color: #f3d9b8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.footer-brand img { width: 38px; height: 38px; }
.footer-brand .brand-name { font-family: var(--font-display); font-size: 1.25rem; color: #fff; }
.footer-brand .brand-name span { color: var(--accent); }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-desc { color: #d8c3a4; font-size: .92rem; max-width: 320px; }
.footer-social { display: flex; gap: .7rem; margin-top: 1rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.footer-social a:hover { background: var(--terracotta); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12);
  text-align: center; font-size: .85rem; color: #cdb792;
}

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--terracotta); color: #fff; font-size: 1.3rem; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--terracotta-dark); }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brown); color: #fff;
  padding: .7rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0 56px; }
  .hero-art { order: -1; max-width: 460px; margin: 0 auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-art { order: -1; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .8rem 20px 1.2rem; box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform .28s ease; visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { padding: .8rem .6rem; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero-cta .btn { width: 100%; }
  .menu-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
