/* ============================================================
   ANU FOODS — self-contained styles (no external font/CDN calls)
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../assets/fonts/work-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../assets/fonts/work-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../assets/fonts/work-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Baloo Tammudu 2";
  src: url("../assets/fonts/baloo-tammudu-2-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF;
}
@font-face {
  font-family: "Baloo Tammudu 2";
  src: url("../assets/fonts/baloo-tammudu-2-telugu-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Baloo Tammudu 2";
  src: url("../assets/fonts/baloo-tammudu-2-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF;
}
@font-face {
  font-family: "Baloo Tammudu 2";
  src: url("../assets/fonts/baloo-tammudu-2-telugu-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans Telugu";
  src: url("../assets/fonts/noto-sans-telugu-telugu-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans Telugu";
  src: url("../assets/fonts/noto-sans-telugu-telugu-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* --- palette: terracotta courtyard, banana-leaf green, turmeric --- */
  --clay: #b5502d;
  --clay-dark: #8a3a1e;
  --clay-tint: #f0ddc8;
  --leaf: #3f5d34;
  --leaf-dark: #2c4224;
  --leaf-tint: #dfe8d3;
  --turmeric: #d9a441;
  --paper: #fffdf8;
  --cream: #f6efe2;
  --ink: #2b2420;
  --ink-soft: #5a5044;
  --line: #e3d5bd;

  --radius: 6px;
  --shadow: 0 1px 0 rgba(43,36,32,.06);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --font-te-display: "Baloo Tammudu 2", "Noto Sans Telugu", sans-serif;
  --font-te-body: "Noto Sans Telugu", "Baloo Tammudu 2", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.lang-te { font-family: var(--font-te-body); }
body.lang-te h1, body.lang-te h2, body.lang-te h3, body.lang-te .display {
  font-family: var(--font-te-display);
}
body.lang-en [data-te], body.lang-te [data-en] { display: none; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0 0 .4em; color: var(--clay-dark); }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; color: var(--leaf-dark); }
p { max-width: 62ch; color: var(--ink-soft); }
.eyebrow-free {} /* intentionally no tracked-out eyebrow labels per brief */

/* ---------- kolam divider ---------- */
.kolam-rule { width: 100%; height: 26px; display: block; margin: 0 auto; }
.kolam-rule svg { width: 100%; height: 100%; display: block; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,253,248,.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 46px; width: 46px; border-radius: 50%; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--clay-dark); }
body.lang-te .brand-name { font-family: var(--font-te-display); }
.brand-tag { font-size: .75rem; color: var(--leaf-dark); display: block; margin-top: -2px; }

nav.main-nav { display: flex; align-items: center; gap: 22px; }
nav.main-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); border-bottom: 2px solid transparent; padding-bottom: 2px; }
nav.main-nav a:hover, nav.main-nav a:focus-visible { border-color: var(--turmeric); }

.lang-toggle { display: flex; border: 1.5px solid var(--clay); border-radius: 999px; overflow: hidden; }
.lang-toggle button { border: none; background: transparent; padding: 6px 14px; font-size: .82rem; font-weight: 600; color: var(--clay-dark); }
.lang-toggle button.active { background: var(--clay); color: var(--paper); }

.btn-chat-nav {
  background: var(--leaf); color: var(--paper); border: none; border-radius: 999px;
  padding: 9px 18px; font-weight: 600; font-size: .88rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}

.nav-toggle { display: none; background: none; border: none; padding: 6px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s;
}
.nav-toggle span::before { position: absolute; top: -7px; width: 22px; height: 2px; background: var(--ink); }
.nav-toggle span::after { position: absolute; top: 7px; width: 22px; height: 2px; background: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  overflow: hidden;
  padding: 56px 0 0;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-copy p.lede { font-size: 1.08rem; margin-top: 10px; }
.hero-cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius); font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1.5px solid transparent;
}
.btn-primary { background: var(--clay); color: var(--paper); }
.btn-primary:hover { background: var(--clay-dark); }
.btn-outline { border-color: var(--leaf); color: var(--leaf-dark); background: transparent; }
.btn-outline:hover { background: var(--leaf-tint); }
.hero-meta { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta div { font-size: .85rem; color: var(--ink-soft); border-left: 2px solid var(--turmeric); padding-left: 10px; }
.hero-meta strong { display: block; color: var(--ink); font-size: .95rem; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

/* ---------- today's special ---------- */
.special-strip {
  background: var(--leaf); color: var(--paper);
  padding: 16px 0;
}
.special-strip .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.special-strip .tag { background: var(--turmeric); color: var(--ink); font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: 999px; flex-shrink: 0; }
.special-strip strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
body.lang-te .special-strip strong { font-family: var(--font-te-display); }

/* ---------- section shell ---------- */
section { padding: 68px 0; }
section.alt { background: var(--cream); }
.section-head { max-width: 640px; margin-bottom: 34px; }

/* ---------- story ---------- */
.story .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.story-art svg { width: 100%; height: auto; }

/* ---------- menu tabs ---------- */
.menu-tabs { display: flex; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.menu-tab {
  background: var(--paper); border: 1.5px solid var(--clay); color: var(--clay-dark);
  padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem;
}
.menu-tab.active { background: var(--clay); color: var(--paper); }
.menu-panel { display: none; }
.menu-panel.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 10px; }
.menu-block { border-top: 3px solid var(--turmeric); padding-top: 14px; }
.menu-block ul { list-style: none; margin: 0; padding: 0; }
.menu-block li {
  display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line);
  font-size: .98rem;
}
.menu-block li::before { content: "\2022"; color: var(--clay); font-size: 1.1em; }
.veg-dot, .nonveg-dot {
  display: inline-block; width: 11px; height: 11px; border: 1.5px solid; flex-shrink: 0;
}
.veg-dot { border-color: var(--leaf); }
.veg-dot::after { content: ""; display: block; width: 5px; height: 5px; background: var(--leaf); margin: 2px auto; border-radius: 50%; }
.nonveg-dot { border-color: var(--clay); }
.nonveg-dot::after { content: ""; display: block; width: 5px; height: 5px; background: var(--clay); margin: 2px auto; border-radius: 50%; }

.note-card {
  margin-top: 24px; background: var(--leaf-tint); border-left: 3px solid var(--leaf);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .92rem; color: var(--leaf-dark);
}

.combo-list { display: grid; gap: 12px; margin-top: 10px; }
.combo-row {
  display: flex; align-items: center; gap: 14px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px;
}
.combo-num { font-family: var(--font-display); font-weight: 700; color: var(--turmeric); font-size: 1.3rem; width: 28px; flex-shrink: 0; }

/* ---------- snacks & pickles ---------- */
.pickle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 24px; }
.pickle-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pickle-card h3 { margin-bottom: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: .87rem; }

/* ---------- order / catering ---------- */
.order-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.order-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.order-card h3 { margin-bottom: 4px; }
.order-card .hint { font-size: .85rem; color: var(--ink-soft); margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: .95rem; background: var(--paper); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--turmeric); outline-offset: 1px; border-color: var(--turmeric); }
.delivery-note { margin-top: 18px; font-size: .88rem; background: var(--clay-tint); padding: 12px 14px; border-radius: var(--radius); color: var(--clay-dark); }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: stretch; }
.gallery-grid img, .gallery-grid .story-art { border-radius: 10px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-cows { background: var(--leaf-tint); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.gallery-cows svg { width: 100%; height: auto; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: var(--cream); padding: 52px 0 28px; }
footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 34px; }
footer h3 { color: var(--turmeric); font-size: 1rem; }
footer p, footer a { color: #d9d0c2; font-size: .92rem; }
footer a { text-decoration: none; }
.footer-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.footer-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius);
  border: 1px solid #55483a; font-size: .9rem; font-weight: 600; color: var(--paper);
}
.footer-btn:hover { border-color: var(--turmeric); }
.footer-bottom { border-top: 1px solid #423a30; margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: #a99c88; }
.footer-bottom a { color: #a99c88; }

@media (max-width: 880px) {
  .hero .wrap, .story .wrap, .order-wrap, .gallery-grid { grid-template-columns: 1fr; }
  .story .wrap { direction: ltr; }
  .story-art { order: -1; }
  footer .wrap { grid-template-columns: 1fr; }
  nav.main-nav { position: fixed; inset: 62px 0 auto 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 18px 24px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .25s ease; }
  nav.main-nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
}

/* ---------- highlights (home) ---------- */
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 22px; }
.highlight-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.highlight-card .num { font-family: var(--font-display); font-size: 1.6rem; color: var(--turmeric); }
.highlight-card h3 { margin-top: 6px; }
.highlight-card p { font-size: .92rem; margin: 0; }

/* ---------- cta banner ---------- */
.cta-banner { background: var(--clay); color: var(--paper); text-align: center; }
.cta-banner h2 { color: var(--paper); }
body.lang-te .cta-banner h2 { font-family: var(--font-te-display); }
.cta-banner p { color: #fbe9de; margin: 0 auto 22px; }
.cta-banner .hero-cta { justify-content: center; }
.cta-banner .btn-outline { border-color: var(--paper); color: var(--paper); }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,.12); }
.cta-banner .btn-primary { background: var(--paper); color: var(--clay-dark); }
.cta-banner .btn-primary:hover { background: var(--cream); }

/* ---------- contact page ---------- */
.contact-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; margin: 30px 0; }
.contact-action { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 20px; text-decoration: none; }
.contact-action:hover { border-color: var(--clay); }
.contact-action .icon { font-size: 1.6rem; }
.contact-action strong { color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; }
body.lang-te .contact-action strong { font-family: var(--font-te-display); }
.contact-action span.sub { font-size: .85rem; color: var(--ink-soft); }
.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 40px; }
.contact-details h3 { margin-top: 18px; }
.contact-details h3:first-child { margin-top: 0; }
.landmark-note { background: var(--cream); border-radius: var(--radius); padding: 14px 18px; font-size: .9rem; margin-top: 10px; }

/* ---------- page hero (menu / catering / contact) ---------- */
.page-hero { padding: 48px 0 10px; background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%); }
.page-hero .wrap { max-width: 760px; }
.legend { display: flex; gap: 18px; margin-top: 14px; font-size: .88rem; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- admin ---------- */
.admin-shell { min-height: 100vh; background: var(--cream); }
.admin-header { background: var(--ink); color: var(--paper); padding: 16px 0; }
.admin-header .wrap { display: flex; justify-content: space-between; align-items: center; }
.admin-header .brand-name { color: var(--paper); }
.admin-logout { background: transparent; border: 1px solid #55483a; color: var(--paper); border-radius: var(--radius); padding: 8px 16px; font-size: .88rem; font-weight: 600; }
.admin-logout:hover { border-color: var(--turmeric); }

.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--cream); padding: 24px; }
.login-card { background: var(--paper); border-radius: 12px; padding: 40px; max-width: 380px; width: 100%; box-shadow: 0 10px 40px rgba(43,36,32,.1); text-align: center; }
.login-card img { height: 56px; width: 56px; border-radius: 50%; margin: 0 auto 12px; }
.login-card h1 { font-size: 1.4rem; margin-bottom: 24px; }
.login-card .field { text-align: left; }
.login-card button { width: 100%; margin-top: 8px; }
.login-error { color: var(--clay-dark); font-size: .88rem; margin-top: 12px; min-height: 1.2em; }

.admin-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 28px; margin-bottom: 24px; }
.admin-panel h2 { font-size: 1.2rem; }
.admin-panel .hint { font-size: .85rem; color: var(--ink-soft); margin-bottom: 18px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-status { font-size: .88rem; min-height: 1.3em; margin-top: 10px; }
.admin-status-ok { color: var(--leaf-dark); }
.admin-status-error { color: var(--clay-dark); }
#advancedJson { width: 100%; min-height: 320px; font-family: "SFMono-Regular", Consolas, monospace; font-size: .82rem; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.updated-note { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }
details.advanced-toggle summary { cursor: pointer; font-weight: 600; color: var(--clay-dark); margin-bottom: 16px; }

@media (max-width: 700px) {
  .admin-grid, .contact-details { grid-template-columns: 1fr; }
}
