/* Paratha & Karak — styles. Warm, artisanal café aesthetics. */
:root {
  --cream: #fbf3e6;
  --cream-2: #f4e6cf;
  --cream-3: #faebd2;
  --ink: #2e1c10;
  --muted: #6b5545;
  --chai: #5a3219;
  --chai-dark: #3f2210;
  --saffron: #d9831a;
  --saffron-dark: #a85f08;
  --chili: #b3331f;
  --chili-dark: #8e2311;
  --green: #2f5d46;
  --green-dark: #224634;
  --card: #fffaf1;
  --line: #e6d3b6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(60, 30, 10, .12);
  --shadow-sm: 0 3px 10px rgba(60, 30, 10, .08);
  --max: 1140px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--chili); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; margin: 0 0 .5em; color: var(--chai); }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section.alt { background: var(--cream-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; font-weight: 700; color: var(--saffron-dark); margin-bottom: 8px; }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 65ch; line-height: 1.65; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--chai); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header & Navigation */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 243, 230, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--chai); font-family: var(--serif); font-weight: 700; font-size: 1.22rem; }
.brand img { width: 42px; height: 42px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .96rem; transition: background .15s, color .15s; }
.nav a:hover { background: var(--cream-2); color: var(--chai); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--chili); background: var(--cream-2); font-weight: 700; }
.nav a.btn-primary { color: #fff; margin-left: 8px; }
.nav a.btn-primary:hover { background: var(--chili-dark); }
.menu-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 700; color: var(--chai); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: 999px; padding: 12px 24px; font: inherit; font-weight: 700; text-decoration: none !important; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--chili); color: #fff; box-shadow: 0 4px 14px rgba(179, 51, 31, .25); }
.btn-primary:hover { background: var(--chili-dark); }
.btn-call { background: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(47, 93, 70, .25); }
.btn-call:hover { background: var(--green-dark); color: #fff; }
.btn-wa { background: #1e8e4e; color: #fff; }
.btn-wa:hover { background: #17753f; }
.btn-ghost { background: transparent; color: var(--chai); border-color: var(--chai); }
.btn-ghost:hover { background: var(--chai); color: #fff; }
.btn-light { background: #fff; color: var(--chai); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.btn-light:hover { background: var(--cream-2); }
.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Media styling with authentic fallback background */
.media { position: relative; overflow: hidden; background-color: #dfba82;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M26 46h40v14a18 18 0 0 1-18 18h-4a18 18 0 0 1-18-18z' fill='%23fff7e8' stroke='%235a3219' stroke-width='3'/%3E%3Cpath d='M66 50h6a8 8 0 0 1 0 16h-8' fill='none' stroke='%235a3219' stroke-width='3'/%3E%3Cpath d='M34 36c-4-5 4-8 0-13M46 36c-4-5 4-8 0-13M58 36c-4-5 4-8 0-13' stroke='%23a85f08' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M22 86h52' stroke='%235a3219' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #eec78d, #d9831a);
  background-repeat: no-repeat, no-repeat; background-position: center, center; background-size: 80px, cover; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .media img { transform: scale(1.04); }
.media img.img-failed { display: none; }

/* Hero */
.hero { position: relative; min-height: min(80vh, 660px); display: flex; align-items: flex-end; color: #fff; }
.hero .media { position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35, 18, 6, .35) 0%, rgba(35, 18, 6, .85) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 100px 20px 56px; width: 100%; }
.hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.hero p { max-width: 56ch; font-size: 1.15rem; color: #fdf5e6; text-shadow: 0 1px 8px rgba(0,0,0,.35); line-height: 1.6; }
.hero .tag { display: inline-block; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.45); padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; margin-bottom: 16px; letter-spacing: .03em; }

/* Page Header */
.page-head { background: var(--chai); color: #fff; padding: 50px 0 42px; border-bottom: 3px solid var(--saffron); }
.page-head h1 { color: #fff; margin: 0 0 8px; font-size: clamp(2rem, 5vw, 2.9rem); }
.page-head p { margin: 0; color: #f4dec3; font-size: 1.12rem; max-width: 64ch; }

/* Grids and Cards */
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .media { aspect-ratio: 4 / 3; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.3rem; color: var(--chai); }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.badge { display: inline-block; align-self: flex-start; font-size: .76rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.cat-badge { background: #fde8cb; color: var(--saffron-dark); border: 1px solid #ecc996; }
.price-notice { font-size: .88rem; font-weight: 700; color: var(--chai); background: #fdf3e2; border: 1px solid #eed6b6; padding: 5px 12px; border-radius: 8px; display: inline-block; }
.card-actions { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Menu Page */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 22px; }
.search { flex: 1 1 260px; }
.search input { width: 100%; padding: 13px 18px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; background: #fff; box-shadow: inset 0 2px 4px rgba(0,0,0,.03); }
.search input:focus { border-color: var(--saffron); outline: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--chai); padding: 9px 18px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--saffron); }
.chip[aria-pressed="true"] { background: var(--chai); color: #fff; border-color: var(--chai); }
.notice { background: #fff6e3; border: 1.5px solid #f0cd89; border-radius: 12px; padding: 16px 20px; color: #694103; font-size: .98rem; margin-bottom: 24px; line-height: 1.55; }
.notice strong { color: var(--chai); }
.menu-grid { grid-template-columns: repeat(3, 1fr); }
.menu-card .media { aspect-ratio: 16 / 10; }
.menu-meta { margin: 8px 0 4px; }

/* Sticky Selection Tray */
.tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--chai-dark); color: #fff; padding: 14px 20px; display: none; box-shadow: 0 -4px 18px rgba(0,0,0,.25); border-top: 2px solid var(--saffron); }
.tray.show { display: block; }
.tray-in { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.tray-in span { font-weight: 600; font-size: 1.05rem; }
body.has-tray { padding-bottom: 90px; }

/* Visit / Location / Contact */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: start; }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--cream-2); box-shadow: var(--shadow); }
.map-box iframe { width: 100%; height: 350px; border: 0; display: block; }
.map-fallback { padding: 14px 18px; font-size: .92rem; color: var(--muted); background: var(--card); border-top: 1px solid var(--line); }
.info-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.info-list li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.info-list strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green); margin-bottom: 4px; }
.hours-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 28px; }
.hours-box h3 { margin-bottom: 10px; }
.hours-note { background: #fdf3df; border-left: 4px solid var(--saffron); padding: 12px 16px; border-radius: 6px; font-size: .94rem; color: #5d3b07; line-height: 1.5; }

form.enquiry { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; box-shadow: var(--shadow-sm); }
form.enquiry label { font-weight: 700; font-size: .95rem; display: grid; gap: 6px; color: var(--chai); }
form.enquiry input, form.enquiry select, form.enquiry textarea { font: inherit; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus { border-color: var(--saffron); outline: none; }
form.enquiry textarea { min-height: 120px; resize: vertical; }
.form-status { min-height: 1.4em; font-weight: 600; color: var(--green); margin: 0; font-size: .95rem; line-height: 1.5; }
.form-status.error { color: var(--chili); }
.fine { font-size: .88rem; color: var(--muted); line-height: 1.5; }

/* Call to Action Band */
.cta-band { background: linear-gradient(135deg, var(--chai), #3f2210); color: #fff; padding: 56px 0; text-align: center; border-top: 3px solid var(--saffron); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { color: #f4dec3; margin-left: auto; margin-right: auto; max-width: 58ch; font-size: 1.12rem; }
.cta-band .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: #221308; color: #e9d7bd; padding: 44px 0 32px; border-top: 1px solid #4a2c16; }
.site-footer a { color: #ffd49a; }
.site-footer a:hover { color: #fff; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h3 { color: #fff; font-size: 1.1rem; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-note { border-top: 1px solid #422915; margin-top: 28px; padding-top: 20px; font-size: .85rem; color: #baa380; line-height: 1.55; }

/* Responsive adjustments */
@media (max-width: 960px) {
  .grid.cols-3, .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .foot { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--cream); border-bottom: 2px solid var(--line); padding: 14px 20px 20px; box-shadow: 0 8px 20px rgba(0,0,0,.1); }
  .nav.open { display: flex; }
  .nav a.btn-primary { margin: 8px 0 0; }
  .hero { min-height: 72vh; }
  .foot { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .grid.cols-3, .grid.cols-4, .menu-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .btn-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .media img { transition: none; }
}
