/* SV Home Foods. The doorstep: red-oxide threshold, rice-flour muggu, turmeric edge.
   Written for phones first; wider screens get more room, not a different site. */
:root {
  --jaaju: #8A3420;      /* red oxide on the threshold */
  --jaaju-deep: #6E2716;
  --rice: #FBF6EA;       /* rice flour */
  --pasupu: #E8A317;     /* turmeric */
  --ink: #2A1810;        /* tamarind-dark text */
  --ink-soft: #6B5446;
  --leaf: #1D6B3A;       /* the send-on-WhatsApp action */
  --line: #E4D8C2;
  --font: 'Anek Telugu', 'Noto Sans Telugu', system-ui, sans-serif;
  --gut: 16px;
  --chain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cg fill='none' stroke='%23FBF6EA' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M0 14C7 3.5 21 3.5 28 14M0 14C7 24.5 21 24.5 28 14'/%3E%3C/g%3E%3Ccircle cx='14' cy='14' r='2.5' fill='%23FBF6EA'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .93 0 0 0 0 .82 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--rice); color: var(--ink); font: 400 17px/1.5 var(--font); padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
img, svg { display: block; }
a { color: inherit; }
h1, h2, p, ul, ol, figure, blockquote { margin: 0; }
.te { font-weight: 400; }
:focus-visible { outline: 3px solid var(--pasupu); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--rice); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- the threshold ---------- */
.door { position: relative; overflow: hidden; background: var(--grain), var(--jaaju); color: var(--rice); padding-bottom: 36px; }
.door::after { /* muggu chain and turmeric edge where the step meets the floor */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 36px;
  background: var(--chain) repeat-x 0 0 / 28px 28px, linear-gradient(transparent 28px, var(--pasupu) 28px);
}
.door-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px var(--gut); max-width: 1180px; margin: 0 auto; }
.brand { font-weight: 700; font-stretch: 87%; font-size: 19px; letter-spacing: .01em; text-decoration: none; margin-right: auto; }
.door-nav { display: none; }
.door-call { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--rice); color: var(--jaaju); font-weight: 600; text-decoration: none; }
.door-call svg { width: 17px; height: 17px; fill: currentColor; }

.door-in { position: relative; max-width: 1180px; margin: 0 auto; padding: 4px var(--gut) 26px; }
.door-copy { position: relative; z-index: 1; }
.sign { font-weight: 800; font-stretch: 75%; font-size: clamp(70px, 20vw, 150px); line-height: 1.02; margin: 0 0 14px -2px; }
.door h1 { font-weight: 500; font-size: 21px; line-height: 1.32; max-width: 22ch; text-wrap: pretty; }
.door-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 15px; }
.door-meta a { text-underline-offset: 3px; }
.open { display: inline-flex; align-items: center; gap: 7px; }
.open::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pasupu); }
.open.is-open::before { background: #7BD88F; box-shadow: 0 0 0 3px rgb(123 216 143 / .25); }

/* the muggu: bleeds off the right edge on a phone, like a drawing that runs past the doorframe */
.door-muggu { position: absolute; right: -118px; top: -44px; width: 290px; height: 290px; z-index: 0; }
.mg-dots circle { fill: var(--rice); opacity: .62; }
.mg-line { fill: none; stroke: var(--rice); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .mg-dots circle { opacity: 0; animation: dot .35s ease-out var(--d) forwards; }
  .mg-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.8s cubic-bezier(.55, .1, .35, 1) .55s forwards; }
}
@keyframes dot { from { opacity: 0; } to { opacity: .62; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.door-small .sign { font-size: clamp(64px, 17vw, 132px); }
.door-small .door-muggu { width: 240px; height: 240px; right: -90px; top: -20px; }

/* ---------- section chips: stick to the top while the menu scrolls ---------- */
.chips { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px var(--gut); background: rgb(251 246 234 / .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.chips a.on { background: var(--ink); color: var(--rice); }

/* ---------- the menu ---------- */
.menu { max-width: 1180px; margin: 0 auto; padding: 20px var(--gut) 8px; }
.menu-intro { color: var(--ink-soft); font-size: 15px; line-height: 1.5; max-width: 60ch; }
.cat { scroll-margin-top: 62px; padding-top: 28px; }
.cat h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; font-weight: 800; font-stretch: 75%; font-size: 40px; line-height: 1.1; padding-bottom: 8px; border-bottom: 3px solid var(--ink); }
.cat h2 .te { font-weight: 500; font-stretch: 100%; font-size: 21px; color: var(--jaaju); }
.items { list-style: none; padding: 0; }
.it { scroll-margin-top: 70px; padding: 12px 0 14px; background: radial-gradient(circle, var(--ink-soft) 1.1px, transparent 1.6px) repeat-x 0 100% / 9px 4px; }
.it-name { display: flex; flex-direction: column; margin-bottom: 8px; }
.it-name strong { font-weight: 600; font-size: 18.5px; line-height: 1.25; }
.it-name .te { color: var(--ink-soft); font-size: 15.5px; line-height: 1.45; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opts[data-n="1"] { grid-template-columns: minmax(0, 1fr) 2fr; }
.opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 50px; padding: 6px 11px; border: 1.5px solid #CDBDA3; border-radius: 12px; background: #FFFCF4; color: var(--ink); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background .15s, border-color .15s, transform .1s; }
.opt:active { transform: scale(.96); }
.opt-size { font-size: 13.5px; color: var(--ink-soft); line-height: 1.2; }
.opt-price { font-weight: 700; font-size: 18px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.opt.added { background: var(--pasupu); border-color: var(--pasupu); }
.opt.added .opt-size { color: var(--ink); }
.opt-n { position: absolute; top: -9px; right: -7px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--jaaju); color: var(--rice); font-size: 13px; font-weight: 700; line-height: 25px; text-align: center; display: none; }
.opt.added .opt-n { display: block; }
.menu-foot { margin-top: 22px; color: var(--ink-soft); font-size: 15px; }

/* ---------- abroad band ---------- */
.abroad { position: relative; margin-top: 44px; background: var(--grain), var(--jaaju); color: var(--rice); padding: 44px var(--gut) 40px; }
.abroad::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 28px; background: var(--chain) repeat-x 0 0 / 28px 28px; transform: translateY(-14px); }
.abroad-in { max-width: 1180px; margin: 0 auto; }
.abroad h2 { font-weight: 800; font-stretch: 75%; font-size: 36px; line-height: 1.08; max-width: 16ch; }
.abroad p { margin-top: 10px; max-width: 46ch; }
.abroad-links, .visit-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* buttons */
.btn-rice, .btn-line-rice, .btn-ink, .btn-line { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.btn-rice { background: var(--rice); color: var(--jaaju); }
.btn-line-rice { border: 1.5px solid var(--rice); }
.btn-ink { background: var(--ink); color: var(--rice); }
.btn-line { border: 1.5px solid var(--ink); }

/* ---------- visit and reviews ---------- */
.visit { max-width: 1180px; margin: 0 auto; padding: 40px var(--gut) 8px; display: grid; gap: 36px; }
.visit h2, .faq h2, .page h2 { font-weight: 800; font-stretch: 75%; font-size: 34px; line-height: 1.1; margin-bottom: 10px; }
.visit address { font-style: normal; font-size: 18px; margin-bottom: 4px; }
.said figure { padding: 12px 0 12px 16px; border-left: 3px solid var(--pasupu); margin-bottom: 10px; }
.said blockquote { font-size: 18px; line-height: 1.4; }
.said figcaption { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
.said a { text-underline-offset: 3px; }

.faq { max-width: 1180px; margin: 0 auto; padding: 40px var(--gut) 48px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 15px 34px 15px 0; font-weight: 600; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 26px; font-weight: 400; color: var(--jaaju); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 16px; color: var(--ink-soft); max-width: 66ch; }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--grain), var(--jaaju-deep); color: var(--rice); padding: 46px var(--gut) 28px; font-size: 15px; }
.foot::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 28px; background: var(--chain) repeat-x 0 0 / 28px 28px; transform: translateY(-14px); }
.foot-in { max-width: 1180px; margin: 0 auto; }
.foot-sign { font-weight: 800; font-stretch: 75%; font-size: 44px; line-height: 1.1; margin-bottom: 18px; }
.foot-cols { display: grid; gap: 16px; }
.foot address { font-style: normal; }
.foot a { text-underline-offset: 3px; }
.foot-small { margin-top: 24px; opacity: .75; font-size: 13.5px; }

/* ---------- other pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 32px var(--gut) 48px; }
.page h2 { margin-top: 30px; }
.page p { margin-top: 10px; }
.lead { font-size: 19px; line-height: 1.5; }
.steps { list-style: none; padding: 0; margin: 22px 0 6px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 46px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; font-weight: 800; font-stretch: 75%; font-size: 40px; line-height: 1; color: var(--jaaju); }
.steps strong { font-size: 18px; }
.steps span { color: var(--ink-soft); }
.two { display: grid; gap: 0 32px; }

/* ---------- order bar (thumb zone) ---------- */
.order-bar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--rice); box-shadow: 0 -6px 24px rgb(42 24 16 / .18); }
.ob-sum { flex: 1; min-width: 0; min-height: 48px; display: flex; align-items: center; background: none; border: 0; color: inherit; font: inherit; text-align: left; padding: 0; cursor: pointer; }
.ob-empty { font-size: 15px; opacity: .8; }
.ob-full strong { font-size: 22px; margin-left: 4px; font-variant-numeric: tabular-nums; display: inline-block; }
.ob-btn { flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; font: 600 16px var(--font); text-decoration: none; cursor: pointer; }
.ob-wa { background: var(--leaf); color: #fff; }
.ob-go { background: var(--pasupu); color: var(--ink); }
.order-bar[data-empty="true"] .ob-full, .order-bar[data-empty="true"] .ob-go { display: none; }
.order-bar[data-empty="false"] .ob-empty, .order-bar[data-empty="false"] .ob-wa { display: none; }
.order-bar.bump .ob-full strong { animation: bump .3s ease; }
@keyframes bump { 40% { transform: scale(1.15); } }

/* ---------- order sheet: a bottom sheet on phones ---------- */
.order-sheet { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; padding: 0; border: 0; border-radius: 22px 22px 0 0; background: var(--rice); color: var(--ink); }
.order-sheet::backdrop { background: rgb(42 24 16 / .5); }
.order-sheet[open] { animation: up .28s cubic-bezier(.2, .8, .3, 1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.order-sheet form { padding: 18px var(--gut) calc(20px + env(safe-area-inset-bottom)); }
.os-head { display: flex; align-items: center; justify-content: space-between; }
.os-head h2 { font-weight: 800; font-stretch: 75%; font-size: 32px; }
.os-x { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: none; font-size: 18px; color: var(--ink); cursor: pointer; }
.order-lines { list-style: none; padding: 0; margin: 8px 0 0; }
.order-lines li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ol-name { font-weight: 600; line-height: 1.25; }
.ol-name small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 14px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; color: var(--ink); cursor: pointer; }
.qty span { min-width: 20px; text-align: center; font-weight: 700; }
.order-lines strong { min-width: 62px; text-align: right; font-variant-numeric: tabular-nums; }
.order-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 6px; font-size: 17px; }
.order-sum strong { font-size: 28px; }
.field { display: block; margin-top: 14px; font-weight: 600; }
.field small, .how-get small { font-weight: 400; color: var(--ink-soft); font-size: 14px; }
.field input, .field textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid #CDBDA3; border-radius: 12px; background: #FFFCF4; font: 400 16px var(--font); color: var(--ink); }
.how-get { border: 0; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.how-get legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.how-get label { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 8px 14px; border: 1.5px solid #CDBDA3; border-radius: 12px; background: #FFFCF4; cursor: pointer; }
.how-get label:has(input:checked) { border-color: var(--ink); background: #FBE7B4; }
.how-get input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; flex: none; }
.how-get span { display: flex; flex-direction: column; line-height: 1.3; }
.send-wa { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 54px; margin-top: 20px; border: 0; border-radius: 999px; background: var(--leaf); color: #fff; font: 600 18px var(--font); text-decoration: none; cursor: pointer; }
.send-wa.inline { display: inline-flex; width: auto; padding: 0 24px; }
.os-hint { margin-top: 10px; color: var(--ink-soft); font-size: 14px; text-align: center; }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  :root { --gut: 28px; }
  .door-muggu { right: -40px; width: 340px; height: 340px; top: -10px; }
  .opts { max-width: 420px; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
  .two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .door-nav { display: flex; gap: 26px; margin-right: 18px; }
  .door-nav a { text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
  .door-nav a:hover, .door-nav a[aria-current] { border-color: var(--pasupu); }
  .door-in { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center; padding-top: 8px; padding-bottom: 36px; }
  .door-muggu { position: static; width: 380px; height: 380px; }
  .sign { font-size: 132px; }
  .sign br { display: none; }
  .order-bar[data-empty="true"] { display: none; }
  .door h1 { font-size: 26px; }
  .door-small .door-in { grid-template-columns: 1fr 300px; }
  .door-small .door-muggu { width: 300px; height: 300px; }
  .chips { justify-content: center; }
  .items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .it { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
  .it-name { margin: 0; }
  .opts { width: 300px; }
  .cat h2 { font-size: 48px; }
  .visit { grid-template-columns: 1fr 1fr; gap: 56px; }
  .abroad h2 { font-size: 46px; }
  .order-bar { left: 50%; right: auto; bottom: 18px; width: 520px; transform: translateX(-50%); border-radius: 999px; padding: 8px 8px 8px 24px; }
  .order-sheet { margin: auto; max-width: 520px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .order-sheet[open], .order-bar.bump .ob-full strong { animation: none; } .opt { transition: none; } }
@media (max-width: 959px) { .door-small h1 { max-width: 15ch; } .door-small .door-muggu { right: -120px; } }

/* ---------- our story ---------- */
.story { max-width: 1180px; margin: 0 auto; padding: 48px var(--gut) 8px; display: grid; gap: 24px; scroll-margin-top: 20px; }
.story-art svg { width: 100%; max-width: 440px; height: auto; border-radius: 6px; }
.story h2 { font-weight: 800; font-stretch: 75%; font-size: 44px; line-height: 1.05; }
.story-te { color: var(--jaaju); font-size: 20px; margin: 2px 0 14px; }
.story-text p:not(.story-te) { margin-top: 12px; max-width: 58ch; }
.story-quote { font-weight: 600; font-size: 19px; line-height: 1.4; padding-left: 16px; border-left: 3px solid var(--pasupu); }
@media (prefers-reduced-motion: no-preference) {
  .story-art .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .story-art.go .draw { animation: draw 2.6s cubic-bezier(.5, .1, .35, 1) forwards; }
  .story-art .live-seeds { opacity: 0; }
  .story-art.go .live-seeds { animation: seeds .5s ease 2.4s forwards; }
}
@keyframes seeds { to { opacity: 1; } }
@media (min-width: 960px) { .story { grid-template-columns: 440px 1fr; gap: 56px; align-items: center; padding-top: 64px; } .story h2 { font-size: 56px; } }
.sign-say { font-size: 15px; opacity: .85; margin: -6px 0 14px; max-width: 200px; }
@media (min-width: 960px) { .sign-say { max-width: none; } }

/* ---------- "New here? Start here" ---------- */
.start { margin-top: 18px; padding: 16px; border-radius: 14px; background: #FBE7B4; border: 1.5px solid var(--pasupu); }
.start-h { font-weight: 700; font-size: 18px; }
.start-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.start-picks a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--rice); font-weight: 600; text-decoration: none; }
.start-note { font-size: 15px; color: var(--ink-soft); }
.start-note a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.it:target { animation: found 2.4s ease; }
@keyframes found { 0%, 40% { background-color: #FBE7B4; } }
@media (min-width: 960px) { .start { max-width: 640px; } }

/* ---------- menu photos ---------- */
.it.has-img { display: grid; grid-template-columns: 78px 1fr; column-gap: 12px; align-items: start; }
.it.has-img .it-img { grid-row: span 2; }
.it.has-img .opts { grid-column: 2; }
.it-img { width: 78px; height: 78px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--line); cursor: zoom-in; }
.it-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-view { padding: 0; border: 0; border-radius: 18px; background: var(--rice); width: min(92vw, 440px); }
.photo-view::backdrop { background: rgb(42 24 16 / .6); }
.photo-view form { position: relative; padding: 0 0 12px; }
.photo-view img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.photo-view p { padding: 10px 16px 0; font-weight: 600; font-size: 18px; }
.photo-view .os-x { position: absolute; top: 10px; right: 10px; background: rgb(251 246 234 / .9); }
@media (min-width: 960px) {
  .it.has-img { grid-template-columns: 64px 1fr auto; column-gap: 14px; align-items: center; }
  .it.has-img .it-img { grid-row: auto; width: 64px; height: 64px; }
  .it.has-img .opts { grid-column: auto; }
}
/* start-here picks as photo cards */
.start-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.start-picks a { flex-direction: column; align-items: stretch; min-height: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--ink); }
.start-picks img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.start-picks span { padding: 8px 10px; font-size: 15px; line-height: 1.2; }
@media (min-width: 960px) { .start { max-width: 560px; } }
