/* ─── Pak Döner · "Turno de noche" ─────────────────────────────────────────
   Dark, bold, late-night fast-casual. Logo black + Pak red, döner amber for
   prices, bone for text. One family (Archivo): extra-condensed for display,
   normal width for reading. Loaded after the template CSS and overrides it. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 100%;
  font-display: swap;
  src: url('fonts/archivo-var-latin.woff2') format('woff2');
}

:root {
  --night: #000000;      /* logo black */
  --grill: #1C1917;      /* raised surfaces */
  --grill-2: #292522;
  --line: rgba(246, 239, 228, 0.14);
  --bone: #F6EFE4;       /* text on dark, light section bg */
  --smoke: #A39C94;      /* secondary text on dark (7.7:1 on black) */
  --red: #D7261E;        /* logo red: big type + button fills */
  --red-hi: #FF5A4E;     /* red for small text on dark (6:1) */
  --red-ink: #B81D16;    /* red for small text on bone (5.5:1) */
  --amber: #E8A33D;      /* prices, highlights (9.7:1 on black) */
  --ok: #4ADE80;

  --f: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 16px;
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* template tokens: ordering panel and modals keep their light "ticket" look */
  --cream: #F6EFE4;
  --ink: #1A1715;
  --ink-soft: #5C554F;
  --brand: #D7261E;
  --brand-deep: #B81D16;
  --brand-pale: #FBE3E1;
  --brand-accent: #D7261E;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 56px; } }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  visibility: visible !important;
  background: var(--night);
  color: var(--bone);
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.grain { display: none; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--amber); color: #000; font-weight: 700;
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Display type ─────────────────────────────────────────────────────── */
.display {
  font-family: var(--f);
  font-stretch: 62%; font-variation-settings: 'wdth' 62;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.005em;
  margin: 0;
}
.h2 {
  font-family: var(--f);
  font-stretch: 62%; font-variation-settings: 'wdth' 62;
  font-weight: 850;
  text-transform: uppercase;
  font-size: clamp(56px, 15vw, 132px);
  line-height: 0.88;
  margin: 0;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.pk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font: 700 17px/1 var(--f); letter-spacing: 0.01em;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.pk-btn:active { transform: scale(.97); }
.pk-btn--red { background: var(--red); color: #fff; }
.pk-btn--red:hover { background: #B81D16; }
.pk-btn--ghost { background: rgba(0,0,0,.35); color: var(--bone); border-color: rgba(246,239,228,.55); }
.pk-btn--ghost:hover { background: var(--bone); color: #000; border-color: var(--bone); }
.pk-btn--ink { background: #000; color: var(--bone); }
.pk-btn--ink:hover { background: var(--red); }
.pk-btn svg { width: 20px; height: 20px; flex: none; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.pk-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(0,0,0,.72), rgba(0,0,0,0));
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.pk-nav.is-solid { background: rgba(0,0,0,.92); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(8px)) { .pk-nav.is-solid { background: rgba(0,0,0,.78); backdrop-filter: blur(10px); } }
.pk-nav-logo { display: block; flex: none; line-height: 0; }
.pk-nav-logo img { width: 176px; height: 22px; object-fit: contain; object-position: left center; }
.pk-nav-links { display: flex; align-items: center; gap: 4px; }
.pk-nav-links a.pk-link {
  display: none; padding: 12px 14px; font-weight: 600; font-size: 16px;
  color: var(--bone); text-decoration: none; border-radius: 8px;
  transition: color .2s var(--ease);
}
.pk-nav-links a.pk-link:hover { color: var(--amber); }
.pk-nav .pk-btn { min-height: 44px; padding: 0 18px; font-size: 16px; }
@media (min-width: 720px) {
  .pk-nav { height: 76px; }
  .pk-nav-logo img { width: 224px; height: 28px; }
  .pk-nav-links a.pk-link { display: inline-block; }
  .pk-nav-links { gap: 8px; }
}

/* shop banner (after a shop is picked) sits under the nav */
.location-banner {
  position: fixed !important; top: 64px; left: 0; right: 0; z-index: 899;
  background: var(--amber) !important; color: #000 !important;
  font: 600 15px/1.3 var(--f) !important; padding: 8px var(--gutter) !important;
  justify-content: center;
}
.location-banner strong { font-weight: 800; }
.location-banner-change {
  font: 700 14px/1 var(--f) !important; color: #000 !important;
  background: rgba(0,0,0,.08) !important; border: 1.5px solid rgba(0,0,0,.6) !important;
  border-radius: 999px !important; padding: 8px 12px !important; min-height: 36px;
}
@media (min-width: 720px) { .location-banner { top: 76px; } }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.pk-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  background: #120f0d url('hero-poster.jpg') 68% center / cover no-repeat;
}
.pk-hero video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 68% center;
}
.pk-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 38%, rgba(0,0,0,.12) 70%);
}
.pk-hero-inner { width: 100%; padding: 120px var(--gutter) 40px; max-width: var(--max); margin: 0 auto; }
.pk-hero h1 { font-size: clamp(100px, 33vw, 300px); line-height: .9; }
.pk-hero h1 .l2 { margin-top: .02em; }
.pk-hero h1 .l { display: block; }
.pk-hero h1 .l2 { color: var(--red); }
.pk-hero-sub {
  margin: 18px 0 0; max-width: 30ch;
  font-size: clamp(19px, 4.6vw, 24px); line-height: 1.35; font-weight: 500; color: var(--bone);
}
.pk-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pk-hero-actions .pk-btn { flex: 1 1 auto; }
.pk-status {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px; font-size: 16px; font-weight: 600; color: var(--bone);
}
.pk-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--smoke); flex: none; }
.pk-dot.is-open { background: var(--ok); box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
.pk-dot.is-soon { background: var(--amber); box-shadow: 0 0 0 4px rgba(232,163,61,.18); }
@media (min-width: 720px) {
  .pk-hero-inner { padding-bottom: 64px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
  .pk-hero-actions .pk-btn { flex: 0 0 auto; }
  .pk-hero-side { padding-bottom: 14px; max-width: 440px; }
  .pk-hero-actions { flex-wrap: nowrap; }
  .pk-hero-sub { margin-top: 0; }
}

/* the one hero moment: the wordmark is "sliced" up into view like the spit */
@media (prefers-reduced-motion: no-preference) {
  .pk-hero h1 .l { animation: pk-slice .9s var(--ease) both; }
  .pk-hero h1 .l2 { animation-delay: .14s; }
  .pk-hero-side, .pk-hero .pk-status { animation: pk-fade .7s var(--ease) .5s both; }
  @keyframes pk-slice {
    from { clip-path: inset(45% 0 0 0); transform: translateY(10%); }
    to   { clip-path: inset(-10% 0 -10% 0); transform: none; }
  }
  @keyframes pk-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ── Section scaffolding ─────────────────────────────────────────────── */
.pk-sec { padding: 88px 0; }
@media (min-width: 900px) { .pk-sec { padding: 128px 0; } }
.pk-lede { color: var(--smoke); font-size: 18px; max-width: 46ch; margin: 18px 0 0; }

/* reveal on scroll (only once JS is running; content is visible otherwise) */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .rv.in { opacity: 1; transform: none; }
}

/* ── Carta ───────────────────────────────────────────────────────────── */
.pk-carta { background: var(--night); }
.pk-carta-head { display: flex; flex-direction: column; gap: 4px; }
.pk-tabs {
  display: flex; gap: 8px; margin: 32px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 12px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.pk-tabs::-webkit-scrollbar { display: none; }
.pk-tab {
  flex: none; scroll-snap-align: start;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font: 600 16px/1 var(--f); color: var(--bone);
  background: var(--grill); border: 1.5px solid var(--line); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pk-tab:hover { border-color: var(--bone); }
.pk-tab[aria-selected="true"] { background: var(--bone); color: #000; border-color: var(--bone); }
.pk-grid {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px;
}
.pk-dish { display: flex; flex-direction: column; min-width: 0; }
.pk-dish-img {
  position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--grill);
}
.pk-dish-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pk-dish:hover .pk-dish-img img { transform: scale(1.04); }
.pk-rank {
  position: absolute; left: 10px; top: 10px;
  min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px;
  display: grid; place-items: center;
  background: #000; color: var(--amber); font: 800 16px/1 var(--f);
}
.pk-dish h3 { margin: 12px 0 0; font: 700 17px/1.25 var(--f); color: var(--bone); }
.pk-dish p {
  margin: 4px 0 0; font-size: 15px; line-height: 1.4; color: var(--smoke);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pk-price {
  margin-top: 8px; font: 850 26px/1 var(--f); font-stretch: 75%; font-variation-settings: 'wdth' 75;
  color: var(--amber); font-variant-numeric: tabular-nums;
}
.pk-carta-foot {
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
}
.pk-carta-foot p { margin: 0; color: var(--smoke); font-size: 16px; max-width: 52ch; }
.pk-empty { color: var(--smoke); margin-top: 24px; }
@media (min-width: 720px) {
  .pk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
  .pk-carta-foot { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1100px) {
  .pk-carta-layout { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
  .pk-carta-side { position: sticky; top: 112px; }
  .pk-tabs { flex-direction: column; overflow: visible; margin: 36px 0 0; padding: 0; gap: 2px; }
  .pk-tab {
    background: transparent; border: 0; border-radius: 0; text-align: left; padding: 0;
    min-height: 0; font: 850 40px/1.05 var(--f); font-stretch: 62%; font-variation-settings: 'wdth' 62; text-transform: uppercase; color: #6E6761;
  }
  .pk-tab:hover { color: var(--bone); }
  .pk-tab[aria-selected="true"] { background: transparent; color: var(--bone); }
  .pk-tab[aria-selected="true"]::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 12px; border-radius: 50%; background: var(--red); vertical-align: middle; }
  .pk-grid { margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Locales (light section) ─────────────────────────────────────────── */
.pk-locales { background: var(--bone); color: #000; }
.pk-locales .h2 { color: #000; }
.pk-locales .pk-lede { color: #4A443F; }
.pk-hours {
  margin-top: 28px; display: inline-grid; grid-template-columns: auto auto; gap: 4px 20px;
  font-size: 16px; font-variant-numeric: tabular-nums;
}
.pk-hours dt { font-weight: 700; }
.pk-hours dd { margin: 0; }
.pk-shops { list-style: none; margin: 40px 0 0; padding: 0; border-top: 2px solid #000; }
.pk-shop {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  padding: 24px 0; border-bottom: 1px solid rgba(0,0,0,.18);
}
.pk-shop-name {
  margin: 0; display: flex; align-items: center; gap: 12px;
  font: 850 clamp(44px, 12vw, 76px)/.9 var(--f); font-stretch: 62%; font-variation-settings: 'wdth' 62; text-transform: uppercase;
}
.pk-shop-name .pk-dot { width: 12px; height: 12px; }
.pk-shop-name .pk-dot.is-open { box-shadow: 0 0 0 4px rgba(22,163,74,.2); background: #16A34A; }
.pk-shop-name .pk-dot.is-soon { background: #B45309; }
.pk-shop-addr { margin: 0; font-size: 17px; }
.pk-shop-state { margin: 0; font-size: 15px; font-weight: 600; color: #4A443F; }
.pk-shop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pk-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid #000; background: transparent; color: #000;
  font: 600 16px/1 var(--f); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.pk-chip:hover { background: #000; color: var(--bone); }
.pk-chip--fill { background: var(--red-ink); border-color: var(--red-ink); color: #fff; }
.pk-chip--fill:hover { background: #000; border-color: #000; }
.pk-chip svg { width: 18px; height: 18px; }
@media (min-width: 900px) {
  .pk-locales-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
  .pk-locales-intro { position: sticky; top: 112px; }
  .pk-shops { margin-top: 0; }
  .pk-shop { grid-template-columns: 1fr auto; align-items: end; column-gap: 24px; padding: 28px 0; }
  .pk-shop-name { grid-column: 1 / -1; }
  .pk-shop-actions { justify-content: flex-end; }
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.pk-foot { background: var(--night); padding: 72px 0 40px; }
.pk-foot-big { font-size: clamp(84px, 26vw, 260px); line-height: .96; color: var(--grill-2); user-select: none; }
.pk-foot-big::before { content: attr(data-t); }
.pk-foot-grid { display: grid; gap: 32px; margin-top: 40px; }
.pk-foot h2 { margin: 0 0 10px; font: 700 15px/1.2 var(--f); color: var(--smoke); }
.pk-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pk-foot a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--bone); text-decoration: none; font-size: 16px; }
.pk-foot a:hover { color: var(--amber); }
.pk-foot a svg { width: 20px; height: 20px; }
.pk-foot-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--smoke); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }
.pk-foot-legal p { margin: 0; }
.pk-foot-legal a { min-height: 0; font-size: 14px; color: var(--smoke); text-decoration: underline; text-underline-offset: 3px; }
.pk-foot-legal a:hover { color: var(--bone); }
@media (min-width: 720px) { .pk-foot-grid { grid-template-columns: repeat(3, auto); justify-content: space-between; } }

/* ── Ordering section (Zorrilla in-site takeaway): a light "ticket" on black */
#pedir.pedir-section { background: var(--bone) !important; color: var(--ink); padding: 96px var(--gutter) !important; }
#pedir .pedir-head h2, #pedir .checkout-title { font-family: var(--f) !important; font-stretch: 62%; font-variation-settings: 'wdth' 62; font-weight: 850 !important; text-transform: uppercase; font-size: clamp(44px, 11vw, 80px) !important; line-height: .92 !important; letter-spacing: 0 !important; }
#pedir .checkout-title { font-size: 40px !important; }
#pedir .eyebrow { font-family: var(--f) !important; color: var(--red-ink) !important; letter-spacing: 0 !important; text-transform: none !important; font-size: 16px !important; font-weight: 700 !important; }
#pedir, #pedir input, #pedir textarea, #pedir select, #pedir button { font-family: var(--f) !important; }
#pedir .menu-category-title, #pedir .menu-category-banner-overlay .cat-name { font-family: var(--f) !important; font-stretch: 62%; font-variation-settings: 'wdth' 62; text-transform: uppercase; font-weight: 850 !important; }
.feat-order h3 { font-family: var(--f) !important; font-stretch: 62%; font-variation-settings: 'wdth' 62; text-transform: uppercase; font-weight: 850 !important; font-size: 32px !important; }

/* modals: brand fonts */
.location-modal, .hours-modal, .pickup-frame-bar { font-family: var(--f) !important; }
.location-modal-title, .hours-modal-title { font-family: var(--f) !important; font-stretch: 62%; font-variation-settings: 'wdth' 62; text-transform: uppercase; font-weight: 850 !important; font-size: 34px !important; line-height: 1 !important; }
.location-card-name { font-family: var(--f) !important; font-weight: 800 !important; }

/* old template blocks this design replaces */
#js-strip, #carta-old, .footer-photo-section, footer.footer { display: none !important; }
#pedir .menu-category-title { font-size: 30px !important; letter-spacing: 0 !important; color: var(--ink) !important; padding: 14px 0 !important; min-height: 48px; }
#pedir .menu-cat-chevron { color: var(--red-ink) !important; }
#pedir .menu-cat-chips button, #pedir .menu-cat-chips .chip { text-transform: capitalize; }

/* ── Legal pages ─────────────────────────────────────────────────────── */
.pk-legal { background: var(--bone); color: #000; padding: 120px 0 88px; }
.pk-legal .wrap { max-width: 760px; }
.pk-legal h1 { font: 850 clamp(52px, 14vw, 96px)/.9 var(--f); font-stretch: 62%; font-variation-settings: 'wdth' 62; text-transform: uppercase; margin: 0 0 12px; }
.pk-legal .upd { color: #4A443F; margin: 0 0 40px; font-size: 15px; }
.pk-legal h2 { font: 800 22px/1.25 var(--f); margin: 40px 0 10px; }
.pk-legal p, .pk-legal li { font-size: 17px; line-height: 1.65; max-width: 68ch; }
.pk-legal ul { padding-left: 20px; }
.pk-legal a { color: var(--red-ink); text-underline-offset: 3px; }
.pk-legal dl { display: grid; grid-template-columns: 1fr; gap: 2px 20px; margin: 0; }
.pk-legal dt { font-weight: 700; margin-top: 10px; }
.pk-legal dd { margin: 0; }
.pk-legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.pk-legal th, .pk-legal td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid rgba(0,0,0,.18); }
.pk-legal .tbl { overflow-x: auto; }
@media (min-width: 720px) { .pk-legal dl { grid-template-columns: 200px 1fr; } .pk-legal dt { margin-top: 0; } }
.pk-nav-logo { padding: 11px 0; }
@media (max-width: 719px) {
  .pk-legal table, .pk-legal tbody, .pk-legal tr, .pk-legal td { display: block; width: 100%; }
  .pk-legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pk-legal tr { padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.18); }
  .pk-legal td { border: 0; padding: 3px 0; }
  .pk-legal td::before { content: attr(data-label); display: block; font-weight: 700; font-size: 13px; color: #4A443F; }
}
.pk-rate { margin: 6px 0 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; font-size: 16px; }
.pk-rate a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #000; text-decoration: none; }
.pk-rate a:first-child:hover b { text-decoration: underline; }
.pk-star { color: #B45309; font-size: 18px; }
.pk-rate-n { color: #4A443F; }
.pk-rate-cta { font-weight: 700; color: var(--red-ink) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.pk-rate-cta:hover { color: #000 !important; }
.pk-rate a { white-space: nowrap; }
@media (min-width: 900px) {
  .pk-shop { grid-template-columns: 1fr; }
  .pk-shop-actions { justify-content: flex-start; }
}
