/*
Theme Name: Kitchen
Author: Two Runs
Description: One-page theme for Kitchen, a homemade office lunch delivery service in Lahore. Upload, activate, done.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kitchen
*/

/* WordPress base */
html, body { margin: 0; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
body.admin-bar .site-header { top: 32px; }
body.admin-bar::before { display: none; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.generic { padding-block: 64px; }
.generic h1 { margin-bottom: 20px; }
.generic .entry { max-width: 70ch; }

/* Layout concept: left-aligned editorial hero with a desk delivery slip as the signature object, then alternating cream and sage bands for the story, menu, price and sample offer. */
:root {
  --terracotta: #C84B31;
  --terracotta-deep: #A93B24;
  --sage: #4E6C50;
  --sage-tint: #E4EBE1;
  --cream: #F9F6F0;
  --cream-deep: #F0EADD;
  --paper: #FFFDF8;
  --ink: #2C3539;
  --ink-soft: #566166;
  --line: #E0D8C8;
  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--cream);
  z-index: 30;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(56px, 8vw, 104px); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  font-weight: 500;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 58ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #fff; }
.btn-sm { padding: 10px 18px; font-size: 0.93rem; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 42px; width: auto; max-width: 100%; }
.nav { display: flex; align-items: center; gap: 26px; }
.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; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; background: transparent; border: 1.5px solid var(--ink); border-radius: 12px; cursor: pointer; color: var(--ink); }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.menu-toggle .bars { position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
.wa-float { display: none; position: fixed; z-index: 25; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); align-items: center; gap: 8px; min-height: 48px; padding: 12px 18px; border-radius: 999px; background: var(--terracotta); color: #fff; font: 600 0.95rem/1 var(--font-body); text-decoration: none; box-shadow: 0 8px 22px rgba(44, 53, 57, 0.28); }
.wa-float:hover { background: var(--terracotta-deep); }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:not(.btn):hover { color: var(--terracotta-deep); }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-copy h1 em { font-style: normal; color: var(--terracotta); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 6px 0 0; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.95rem; }
.ic { width: 20px; height: 20px; flex: none; stroke: var(--sage); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-art { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tin-panel { background: var(--sage-tint); border-radius: 22px; padding: clamp(18px, 3vw, 30px); display: flex; justify-content: center; }
.tin-panel img { display: block; width: auto; height: auto; max-width: 100%; max-height: 340px; object-fit: contain; }

/* Delivery slip */
.slip { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 0; box-shadow: 0 10px 28px rgba(44, 53, 57, 0.08); }
.slip-head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.slip-times { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.slip-times small { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.slip-times strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.slip-times .arrive strong { color: var(--terracotta); }
.slip-track { margin: 14px 0 18px; height: 8px; border-radius: 999px; background: var(--cream-deep); position: relative; overflow: hidden; }
.slip-track span { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, var(--sage), var(--terracotta)); border-radius: 999px; }
.slip-tear { border-top: 2px dashed var(--line); margin: 0 -22px; position: relative; }
.slip-tear::before, .slip-tear::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); }
.slip-tear::before { left: -11px; clip-path: inset(0 0 0 50%); }
.slip-tear::after { right: -11px; clip-path: inset(0 50% 0 0); }
.slip-rows { display: grid; gap: 10px; padding: 16px 0 20px; }
.slip-row { display: flex; justify-content: space-between; gap: 16px; font-size: 0.95rem; }
.slip-row span:first-child { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.slip-row span:last-child { text-align: right; font-weight: 600; }

/* Trust strip */
.strip { background: var(--cream-deep); border-block: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 28px; }
.strip-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.strip-item b { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.strip-item span { color: var(--ink-soft); font-size: 0.93rem; }

/* Section heads */
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.step { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.85rem; color: var(--terracotta-deep); font-weight: 500; }
.step p { color: var(--ink-soft); }

/* Menu */
.menu-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.menu-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tag { background: var(--sage-tint); color: var(--sage); font-weight: 600; font-size: 0.85rem; padding: 6px 14px; border-radius: 999px; }
.week { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.week-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--ink); color: var(--cream); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.week ul { margin: 0; padding: 0; list-style: none; }
.week li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: baseline; padding: 14px 20px; border-top: 1px solid var(--line); }
.week li:first-child { border-top: 0; }
.week .day { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.week .dish { font-weight: 600; min-width: 0; }
.week .salad { font-size: 0.82rem; color: var(--sage); font-weight: 600; white-space: nowrap; }
.week-note { padding: 12px 20px 16px; font-size: 0.85rem; color: var(--ink-soft); border-top: 1px solid var(--line); background: var(--cream-deep); }

/* Hygiene band */
.band-sage { background: var(--sage); color: var(--cream); }
.band-sage .eyebrow { color: #D9E6D5; }
.band-sage .lead { color: #E7EFE3; }
.hygiene-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.hygiene-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0; margin: 0; list-style: none; }
.hygiene-list li { background: rgba(249, 246, 240, 0.1); border: 1px solid rgba(249, 246, 240, 0.28); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hygiene-list .ic { stroke: var(--cream); }
.hygiene-list b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.hygiene-list span { font-size: 0.92rem; color: #E7EFE3; }
.hygiene-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.price-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pay-list li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 0.88rem; }
.policy { border-left: 3px solid var(--terracotta); padding: 4px 0 4px 16px; color: var(--ink-soft); font-size: 0.95rem; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 14px 34px rgba(44, 53, 57, 0.08); min-width: 0; }
.price-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); font-weight: 500; }
.price-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price-amount b { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 8vw, 4.2rem); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-amount span { color: var(--ink-soft); }
.price-incl { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.price-incl li { display: flex; gap: 10px; align-items: flex-start; }
.price-incl .ic { margin-top: 2px; }
.calc { border-top: 1px dashed var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.calc-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.calc label { font-weight: 600; }
.calc input { width: 96px; padding: 10px 12px; font: 600 1rem var(--font-body); color: var(--ink); background: var(--cream); border: 1.5px solid var(--ink); border-radius: 10px; font-variant-numeric: tabular-nums; }
.calc-total { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc small { color: var(--ink-soft); }

/* Sample offer */
.band-deep { background: var(--cream-deep); border-block: 1px solid var(--line); }
.sample-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.sample-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.badge { align-self: flex-start; background: var(--terracotta); color: #fff; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; border-radius: 8px; font-weight: 500; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 32px); display: grid; gap: 16px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; font: 500 1rem var(--font-body); color: var(--ink); background: var(--cream); border: 1.5px solid #C9C0AE; border-radius: 10px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--terracotta); outline: none; box-shadow: 0 0 0 3px rgba(200, 75, 49, 0.2); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.link-btn { align-self: flex-start; background: none; border: 0; padding: 8px 0; color: var(--terracotta-deep); font: 600 0.88rem var(--font-body); cursor: pointer; text-decoration: underline; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }

/* Coverage */
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.areas-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-weight: 600; font-size: 0.92rem; }
.chips li.cantt { background: var(--sage); border-color: var(--sage); color: #fff; }
.chips li.gul { border-color: var(--terracotta); color: var(--terracotta-deep); }
.places { display: grid; gap: 14px; min-width: 0; }
.place { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.place .eyebrow { color: var(--sage); }
.place address { font-style: normal; font-weight: 500; overflow-wrap: anywhere; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-list { display: grid; gap: 0; min-width: 0; }
.faq-list details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--terracotta); flex: none; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { margin-top: 10px; color: var(--ink-soft); max-width: 62ch; }

/* Final CTA */
.band-terra { background: var(--terracotta); color: #fff; }
.final { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.final h2 { color: #fff; }
.final p { color: #FBE9E3; margin-top: 14px; max-width: 52ch; }
.final-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.final-phone { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 500; letter-spacing: 0.02em; }

/* Footer */
.site-footer { background: var(--ink); color: #D6DCDE; font-size: 0.92rem; }
.site-footer .wrap { padding-block: 40px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.site-footer h3 { font-size: 1.4rem; color: var(--cream); margin-bottom: 8px; }
.logo-tile { display: inline-block; background: var(--cream); border-radius: 14px; padding: 14px 20px; margin-bottom: 14px; }
.logo-tile img { display: block; width: min(240px, 100%); height: auto; }
.site-footer h4 { margin: 0 0 8px; font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9FB0A0; }
.site-footer p, .site-footer address { font-style: normal; overflow-wrap: anywhere; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(214, 220, 222, 0.2); padding-top: 18px; font-size: 0.82rem; color: #9AA5A9; }

/* ---------- Responsive ---------- */
@media (min-width: 1600px) {
  .wrap { max-width: 1280px; }
}
@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .hero-grid { gap: 36px; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 6px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px));
    max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto;
    box-shadow: 0 18px 30px rgba(44, 53, 57, 0.12);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; width: 100%; padding-block: 15px; }
  .hero-grid, .menu-grid, .hygiene-grid, .price-grid, .sample-grid, .areas-grid, .faq-grid, .final { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; padding-bottom: 96px; }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
  .wa-float { display: inline-flex; }
  body.menu-open .wa-float { display: none; }
}
@media (min-width: 601px) and (max-width: 960px) {
  .hero-art { flex-direction: row; align-items: stretch; }
  .hero-art > * { flex: 1 1 0; min-width: 0; }
  .tin-panel { align-items: center; }
  .tin-panel img { max-height: 300px; }
}
@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; }
  .strip .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer .wrap > div:first-child { grid-column: auto; }
}
@media (max-width: 520px) {
  .band { padding-block: 48px; }
  .hero { padding-top: 28px; }
  .brand-logo { height: 36px; }
  .hygiene-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .week li { grid-template-columns: 44px 1fr; }
  .week .salad { grid-column: 2; }
  .cta-row .btn, .form-actions .btn, .final-actions .btn { width: 100%; }
  .final-actions { width: 100%; }
}
@media (max-width: 380px) {
  .slip { padding: 18px 16px 0; }
  .slip-tear { margin: 0 -16px; }
  .slip-times strong { font-size: 1.5rem; }
  .strip-item b { font-size: 1.6rem; }
  .btn { padding: 13px 18px; }
  .wa-float { padding: 12px 16px; font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
