/* Cafe Shahbaz: mobile-first, no framework */
:root {
  --ink: #1d1a16;
  --muted: #6b6259;
  --paper: #f8f4ec;
  --card: #ffffff;
  --brand: #1d5e4f;      /* deep green of the signage letters */
  --brand-dark: #123f35;
  --teal: #1f6f8b;       /* CS fork logo */
  --accent: #b8862b;     /* brass: decorative lines only */
  --accent-text: #8a6418; /* darker brass for text, 4.9:1 on paper */
  --radius: 12px;
  --max: 1100px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --script: "Dancing Script", "Brush Script MT", cursive;
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.15rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent-text); font-weight: 700; margin: 0 0 .4em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46em; }
.urdu { font-family: var(--urdu); direction: rtl; line-height: 2.1; }


/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250, 246, 239, .95); backdrop-filter: blur(6px); border-bottom: 1px solid #e8dfd0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand small { font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: .75rem; margin-inline-start: 6px; }
.nav { display: none; gap: 18px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .92rem; }
.nav a:hover { color: var(--brand); }

/* Hero */
.hero { position: relative; color: #fff; padding: 0; min-height: 78vh; display: flex; align-items: flex-end; background: #111; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,16,.55) 0%, rgba(10,20,16,.7) 45%, rgba(10,20,16,.9) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(2.1rem, 6.5vw, 4rem); margin-bottom: .25em; }
.hero .tagline { font-size: clamp(1rem, 2.6vw, 1.3rem); opacity: .95; max-width: 36em; margin: 0 0 .6em; }
.hero .urdu { font-size: 1.15rem; margin: 0 0 1.2em; opacity: .9; }
.since { display: inline-block; white-space: nowrap; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 4px 12px; font-size: clamp(.62rem, 2.6vw, .8rem); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: .95rem; border: 2px solid transparent; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-wa { background: #11823f; color: #fff; } /* 4.9:1 with white */
.btn-wa:hover { background: #0d6b33; }
.btn-ghost { border-color: currentColor; color: inherit; }

/* Story */
.story-grid { display: grid; gap: 32px; }
.timeline { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.timeline li { background: var(--card); border-radius: var(--radius); padding: 16px 18px; border-inline-start: 4px solid var(--accent); }
.timeline b { font-family: var(--serif); font-size: 1.15rem; display: block; }
.story-photo { border-radius: var(--radius); overflow: hidden; }
@media (min-width: 820px) { .story-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.fact { background: var(--card); border-radius: var(--radius); padding: 16px; text-align: center; }
.fact b { display: block; font: 700 1.9rem/1.1 var(--serif); color: var(--brand); }
.fact span { font-size: .85rem; color: var(--muted); }
@media (min-width: 820px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Menu */
.menu { background: var(--card); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.gallery figure { margin: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { font-size: .82rem; padding: 8px 10px; color: var(--muted); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Reviews */
.reviews { background: var(--brand); color: #fff; }
.reviews .lead, .reviews .eyebrow { color: #f1e3c6; }
.review-grid { display: grid; gap: 16px; margin-top: 24px; }
.review-grid blockquote { margin: 0; background: rgba(255,255,255,.08); border-radius: var(--radius); padding: 20px; }
.review-grid p { margin: 0 0 10px; }
.review-grid cite { font-style: normal; font-size: .85rem; opacity: .8; }
.press { margin-top: 28px; background: rgba(0,0,0,.18); border-radius: var(--radius); padding: 20px; }

/* Visit */
.visit-grid { display: grid; gap: 24px; }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); background: #ddd; }
.info dl { margin: 0; display: grid; gap: 14px; }
.info dt { font-weight: 700; }
.info dd { margin: 0; }
@media (min-width: 820px) { .visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* FAQ */
.faq details { background: var(--card); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: .6em 0 0; }

footer { background: var(--ink); color: #cfc6b8; padding: 36px 0; font-size: .88rem; }
footer a { color: #fff; }

/* Script wordmark, echoing the cursive signboard */
.brand { font-family: var(--script); font-size: 1.6rem; color: var(--brand); }
.wordmark { font-family: var(--script); font-weight: 700; font-size: clamp(2.6rem, 9vw, 4.4rem); line-height: 1; margin: 0 0 12px; color: #fff; }

/* At a glance */
.glance { padding: 36px 0; background: var(--card); border-bottom: 1px solid #e8dfd0; }
.glance dl { display: grid; gap: 10px 28px; margin: 12px 0 0; }
.glance dl div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dotted #e0d6c4; }
.glance dt { font-weight: 700; color: var(--brand); }
.glance dd { margin: 0; }
@media (min-width: 820px) { .glance dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.glance h2.eyebrow { font-family: var(--sans); font-size: .78rem; }

/* Our people */
.people { background: var(--card); }

/* Order: calm, small */
.order { padding: 40px 0; border-top: 1px solid #e8dfd0; }
.order h2 { font-size: 1.4rem; }
.order p { max-width: 42em; }
.small-note { color: var(--muted); font-size: .92rem; margin-top: 16px; }
address { font-style: normal; }
.menu-note { margin-top: 18px; color: var(--muted); }

/* ---------- Phone-first pass (26.11): tap targets, header, grids, all widths ---------- */
html, body { overflow-x: clip; }
/* Header on phones: brand + big Call / WhatsApp; nav wraps into a second row of chips */
.site-header .wrap { flex-wrap: wrap; height: auto; min-height: 56px; padding-top: 6px; padding-bottom: 6px; row-gap: 4px; }
.header-actions { display: flex; gap: 8px; }
.btn { min-height: 48px; justify-content: center; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: .9rem; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; width: 100%; margin: 0 -8px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: .9rem; }
@media (max-width: 959px) { .site-header { position: static; } }
@media (max-width: 359px) { .brand small { display: none; } .btn-sm { padding: 8px 11px; } }
@media (min-width: 960px) {
  .site-header .wrap { flex-wrap: nowrap; height: auto; min-height: 60px; }
  .nav { width: auto; order: 2; margin: 0 0 0 auto; gap: 0; }
  .header-actions { order: 3; }
}
/* Buttons in Visit / Order: full-width and big on phones */
@media (max-width: 639px) {
  #visit .btns .btn, .order .btns .btn { flex: 1 1 100%; font-size: 1.05rem; }
  .hero .btns .btn { flex: 1 1 140px; }
}
/* Inline phone / WhatsApp links: comfortable tap height */
.glance dd a, .info dd a { display: inline-flex; align-items: center; min-height: 44px; } /* numbers on their own lines */
footer p { line-height: 2; }
.faq summary { min-height: 44px; display: flex; align-items: center; }
.glance dl div { grid-template-columns: 110px minmax(0, 1fr); }
/* Dish grid: 2 columns on phones, more on wider screens */
.dishes figure { background: var(--paper); }
.dishes figcaption { font: 700 .95rem/1.3 var(--serif); color: var(--ink); padding: 10px 12px 12px; }
@media (min-width: 1200px) { .dishes { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* Large screens: a bit more room */
@media (min-width: 1400px) { :root { --max: 1240px; } }
.map { height: clamp(260px, 60vw, 420px); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 479px) { .brand small { display: none; } .brand { font-size: 1.45rem; } }

/* ---------- Review round 1 (26.11) ---------- */
.nav a { min-width: 44px; justify-content: center; }
@media (min-width: 960px) { .nav { flex-wrap: nowrap; } .nav a { padding: 0 7px; font-size: .88rem; white-space: nowrap; } }
/* Anchors land below the sticky header (sticky only from 960px) */
[id] { scroll-margin-top: 12px; }
@media (min-width: 960px) { [id] { scroll-margin-top: 76px; } }
/* Skip link, focus */
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .reviews :focus-visible, footer :focus-visible { outline-color: #f1e3c6; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* Hero h1 carries the wordmark */
.hero h1 .wordmark, .hero h1 .h1-line { display: block; }
.hero h1 .since { display: table; font-family: var(--sans); font-weight: 400; line-height: 1.6; }
/* Story photo: never taller than the screen */
.story-photo { margin: 0; }
.story-photo img { width: 100%; max-height: min(70vh, 640px); object-fit: cover; object-position: center 55%; }
@media (min-width: 820px) { .story-photo img { max-height: 720px; } }
/* Press quote */
.press blockquote { margin: 0 0 8px; }
.press h3.eyebrow { font-family: var(--sans); color: #f1e3c6; }
/* Reviews: phone-friendly cards with stars (26.11) */
.review-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review { display: flex; flex-direction: column; }
.review p { font-size: 1.02rem; }
.review cite { margin-top: auto; }
.review .stars { margin: 0 0 6px; color: #f3c24f; letter-spacing: .12em; font-size: 1.05rem; line-height: 1; }

/* iPhone fix (26.11): Safari sized the auto 1-column story grid to the 800 px
   photo's intrinsic width, so text ran past the screen edge (and the
   overflow-x: clip backup cut it off). Every grid track may shrink; items too. */
@media (max-width: 819px) { .story-grid, .visit-grid, .glance dl { grid-template-columns: minmax(0, 1fr); } }
.story-grid > *, .visit-grid > *, .review-grid > *, .facts > *, .gallery > *, .glance dl > * { min-width: 0; }
p, dd, li, blockquote, figcaption, h1, h2, h3 { overflow-wrap: break-word; }
.map { display: block; max-width: 100%; }
/* Storefront photo in Visit */
.storefront { margin: 20px 0 0; }
.storefront img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.storefront figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
/* iOS Safari safety (26.11): iOS can size an iframe to its content and inflate text,
   which widens the whole page. Pin the map to its container and keep text at 100%. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.map { width: 1px; min-width: 100%; }
.hero h1 .since { max-width: 100%; }
@media (max-width: 380px) { .hero h1 .since { white-space: normal; } }
.storefront img { object-position: center 25%; }
/* Language switch (26.11) */
.nav a.lang { font-family: var(--urdu); font-size: 1rem; line-height: 1; border: 1px solid #d9cfbf; border-radius: 999px; padding: 0 12px; }
/* Urdu page (/ur/): Nastaliq, right to left. Never letter-space Urdu (it breaks the joins). */
html[lang="ur"] body { font-family: var(--urdu); font-size: 17px; line-height: 2.2; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3, html[lang="ur"] .fact b { font-family: var(--urdu); line-height: 1.9; font-weight: 700; }
html[lang="ur"] h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
html[lang="ur"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
html[lang="ur"] .glance h2.eyebrow { font-family: var(--urdu); font-size: .9rem; }
html[lang="ur"] .hero h1 { font-size: clamp(1.6rem, 5.4vw, 3rem); }
html[lang="ur"] .hero h1 .ur-name { display: block; font-size: 1.35em; line-height: 1.6; }
html[lang="ur"] .hero h1 .h1-line { display: block; }
html[lang="ur"] .faq summary { line-height: 1.9; }
html[lang="ur"] [lang="en"] { font-family: var(--sans); line-height: 1.6; }
html[lang="ur"] .brand[lang="en"], html[lang="ur"] .wordmark[lang="en"] { font-family: var(--script); }
html[lang="ur"] .fact b[dir="ltr"] { font-family: var(--serif); }
.nav a.lang-en { font-family: var(--sans); font-size: .9rem; }
html[lang="ur"] .dishes figcaption { font: 700 1rem/1.9 var(--urdu); }
a[href^="tel:"], a[href^="https://wa.me"] { white-space: nowrap; }
/* Review round 2 (26.11) */
/* Reviews: figure > stars + blockquote + figcaption */
.review-grid figure.review { margin: 0; background: rgba(255,255,255,.08); border-radius: var(--radius); padding: 20px; }
.review-grid figure.review blockquote { margin: 0; }
.review-grid figure.review figcaption { font-size: .85rem; opacity: .85; margin-top: auto; }
/* iPhone clipping: the hero is a flex container, so its .wrap must be allowed to shrink,
   and the "since 1972" pill must be able to wrap at any width (larger iOS text sizes). */
.hero .wrap { width: 100%; min-width: 0; }
.hero h1 .since, .since { display: inline-block; white-space: normal; max-width: 100%; }
.site-header .wrap > * { min-width: 0; }
/* FAQ: visible open/close marker */
.faq summary { list-style: none; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 700 1.4rem/1 var(--sans); color: var(--brand); }
.faq details[open] summary::after { content: "\2212"; }
/* Header: keep brand + Call + WhatsApp on one row down to 320px; symmetric nav bleed */
.nav { margin: 0; margin-inline: -8px; width: calc(100% + 16px); }
@media (max-width: 359px) { .brand { font-size: 1.25rem; } .header-actions { gap: 6px; } .btn-sm { padding: 8px 10px; font-size: .85rem; } }
@media (min-width: 960px) { .nav { width: auto; margin: 0 0 0 auto; margin-inline: auto 0; } }
/* Buttons may wrap their label; only inline phone links stay on one line */
a[href^="tel:"].btn, a[href^="https://wa.me"].btn { white-space: normal; }
.btn { max-width: 100%; text-align: center; }

.as-of { font-size: .8em; opacity: .8; }
