/* Pages other than the menu: home, services, contact, order tracking, footer and the pickup board.
   Uses the colour variables of site.css (light and dark). */

.page { max-width: 1120px; margin: 0 auto; padding: 0 16px 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.btn-main { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 0 22px; width: auto; }
.btn-soft {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px;
  border-radius: 16px; border: 2px solid var(--line); background: var(--paper); color: var(--heading); font-weight: 800;
}
.btn-soft:hover { border-color: var(--teal); }

/* Home: hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center; padding: 22px 0 8px; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hero h1 { font-family: var(--display); color: var(--heading); font-size: clamp(2.2rem, 9vw, 3.6rem); line-height: 1.15; margin: 4px 0 0; }
.hero-tagline { color: var(--teal-d); font-weight: 800; font-size: 1.15rem; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.hero-actions .btn-main { min-width: 150px; }
.hero-hours { color: var(--muted); margin: 6px 0 0; font-size: .95rem; }
.hero-hours a { color: var(--teal-d); font-weight: 700; }
.hero-logo { display: none; justify-content: center; }
.hero-logo img { max-height: 320px; width: auto; filter: drop-shadow(0 18px 30px rgba(65, 26, 14, .18)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 6px; }
.way {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
}
.way span { font-size: 1.6rem; line-height: 1.2; }
.way b { color: var(--heading); }
.way small { color: var(--muted); font-size: .76rem; line-height: 1.35; }

/* Sections */
.block { padding: 18px 0 6px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.block-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--display); color: var(--heading); font-size: 1.35rem; }
.block-head h2::before {
  content: ''; width: 18px; height: 18px; border-radius: 5px; flex: none;
  background: linear-gradient(135deg, var(--teal) 50%, var(--coffee-2) 50%);
}
.block-head a { color: var(--teal-d); font-weight: 800; white-space: nowrap; }

/* Favourites: a swipeable rail of photo cards */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-card {
  display: flex; flex-direction: column; scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.rail-card .card-price { padding-inline-end: 12px; }

.about-card {
  border-radius: var(--radius); padding: 30px 22px 22px; color: #f6ece5; position: relative; overflow: hidden; background: var(--coffee);
}
/* The Sadu weave as a strip along the top, so it never sits behind the text. */
.about-card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 12px;
  background:
    linear-gradient(135deg, var(--teal) 25%, transparent 25%) -6px 0 / 12px 12px,
    linear-gradient(225deg, var(--teal) 25%, transparent 25%) -6px 0 / 12px 12px,
    #2a0802;
}
.about-card h2 { font-family: var(--display); margin: 0 0 6px; color: #fff; }
.about-card p { margin: 0; font-size: 1.05rem; line-height: 1.8; }

/* Services */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.service-card {
  display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.service-card h3 { margin: 0 0 4px; font-size: 1.08rem; color: var(--heading); }
.service-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.service-icon { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 16px; background: var(--teal-l); color: var(--teal-d); }
.service-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-image { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; flex: none; }

.page-intro { padding: 22px 0 4px; }
.page-intro h1 { font-family: var(--display); color: var(--heading); font-size: 1.9rem; margin: 0; line-height: 1.2; }
.page-intro p { color: var(--teal-d); font-weight: 700; margin: 2px 0 0; }

.cta-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--teal); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--teal) 35%, transparent);
}
.cta-card > span:first-child { font-size: 1.8rem; }
.cta-card b { display: block; font-size: 1.08rem; }
.cta-card small { opacity: .9; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel h2 { font-family: var(--display); color: var(--heading); margin: 0 0 10px; font-size: 1.25rem; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.social a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--sand); }
.social a:hover { outline: 2px solid var(--teal); }
.social b { display: block; line-height: 1.3; }
.social small { color: var(--muted); }
/* Footer (owner, 2026-11-13): only each channel's mark, side by side in one row. */
.social-icons { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.social-icons a { padding: 0; background: transparent; }
.social-icons a:hover { outline: none; }
.social-icons .ico { width: 40px; height: 40px; transition: transform .12s; }
.social-icons a:hover .ico { transform: translateY(-2px); }
.social-icons a:active .ico { transform: scale(.92); }
/* Night (owner, 2026-11-14): a faint light ring around each mark so the dark tiles – TikTok's black
   square on the brown footer – read instead of melting into it. Same treatment as the contact sheet. */
:root[data-theme="dark"] .social-icons .ico { box-shadow: 0 0 0 1px rgba(244, 236, 230, .25); }
/* The home page's footer is the brand's dark brown in the day theme too, so the ring applies there always. */
.brand-home .social-icons .ico { box-shadow: 0 0 0 1px rgba(246, 236, 229, .25); }
/* Dark mode: the page (#170d09), the card and its rows were three near-identical browns – step them up so each layer reads.
   The TikTok tile is near-black, so it gets a light rim. */
:root[data-theme="dark"] .panel { background: #2a1911; border-color: #4a2f20; }
:root[data-theme="dark"] .panel .social a { background: #3b2418; border: 1px solid #573826; }
:root[data-theme="dark"] .panel .social .ico { box-shadow: 0 0 0 1px rgba(244, 236, 230, .18); }
.ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; color: #fff; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico.wa { background: #25d366; }
.ico.ig { background: linear-gradient(45deg, #f9a825, #e91e63 55%, #7b1fa2); }
.ico.tt { background: #111; }
.ico.sc { background: #fffc00; }
.ico.sc svg { stroke: #111; fill: #fff; }
.ico.map { background: var(--teal); }
.hours { list-style: none; margin: 8px 0 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours.big li { font-size: 1.05rem; font-weight: 700; }

/* Footer (above the tab bar on phones; hidden on the menu, which has its own cart there) */
.foot { background: var(--paper); border-top: 1px solid var(--line); margin-top: 24px; }
.foot-inner { max-width: 1120px; margin: 0 auto; padding: 22px 16px 8px; display: grid; gap: 18px; }
.foot h3 { margin: 0 0 6px; font-size: 1rem; color: var(--heading); }
.foot-note { text-align: center; color: var(--muted); font-size: .82rem; margin: 0; padding: 10px 16px 16px; }
.menu-page .foot { display: none; }

/* Order tracking */
.track { max-width: 620px; }
.track-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; margin: 22px 0 14px; padding: 22px;
  border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.track-label { color: var(--muted); font-weight: 700; }
.track-number { font-family: var(--display); color: var(--heading); font-size: clamp(3.4rem, 16vw, 5rem); line-height: 1.1; }
.track-who { color: var(--teal-d); font-weight: 700; }
/* Night (owner, 2026-11-15): the number and progress boxes kept the page's paper, a step darker
   than the receipt panel — bring them up to the panel's stepped surface (#2a1911/#4a2f20) so all
   the boxes on the page read alike. The ready/cancelled states keep their own colours. */
:root[data-theme="dark"] .track-card { background: #2a1911; border-color: #4a2f20; }
:root[data-theme="dark"] .progress:not(.is-ready):not(.cancelled) { background: #2a1911; border-color: #4a2f20; }
.steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.steps li {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; font-weight: 700;
  background: var(--paper); border: 1px solid var(--line); color: var(--muted);
}
.steps li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--teal); border-color: var(--teal); }
.steps li.current { border-color: var(--teal); background: var(--teal-l); color: var(--teal-d); }
.steps li.current::before { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 5px color-mix(in srgb, var(--teal) 30%, transparent); }
.steps.cancelled li.current { border-color: var(--danger); color: var(--danger); background: transparent; }
.steps li.flash { animation: flash 1.2s ease 3; }
@keyframes flash { 50% { background: var(--teal); color: #fff; } }
.lines li.plain { grid-template-columns: 1fr auto; }
.track .panel .sum { margin-top: 8px; }

/* Pickup board (a TV in the shop): full screen, no site chrome */
body.board-page { padding: 0; background: var(--coffee); color: #fff; }
.board-page .top, .board-page .weave, .board-page .foot, .board-page .tabbar { display: none !important; }
.board { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.board-col { padding: 32px; }
.board-col h2 { font-size: 2.6rem; margin: 0 0 24px; }
.board-col.ready { background: var(--teal); }
.board-list { display: flex; flex-wrap: wrap; gap: 16px; }
.board-ticket { min-width: 180px; padding: 16px 20px; border-radius: 18px; background: rgba(255, 255, 255, .12); text-align: center; }
.board-col.ready .board-ticket { background: #fff; color: var(--coffee); }
.board-ticket strong { display: block; font-family: var(--display); font-size: 3.4rem; line-height: 1.1; }
.board-ticket span { font-size: 1.3rem; font-weight: 700; }
.board-logo { position: fixed; bottom: 20px; inset-inline-start: 24px; height: 90px; }

@media (min-width: 640px) {
  .page { padding-inline: 24px; }
  .rail { grid-auto-columns: 30%; }
  .service-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .ways { gap: 12px; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1.2fr .8fr; padding: 40px 0 10px; }
  .hero-logo { display: flex; }
  .rail { grid-auto-columns: calc(25% - 9px); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-inner { grid-template-columns: 1fr 1fr 1fr; padding-inline: 24px; }
}

.contact-page .foot { display: none; }
.home-page .hero-text .open-pill { display: none; }

/* /links – the Instagram-bio page: the big logo, one order button, the accounts and the website as rows. */
.links-page {
  --lk-bg: var(--cream); --lk-glow: rgba(45, 179, 159, .16); --lk-row: #fff; --lk-row-line: var(--line);
  --lk-text: var(--ink); --lk-sub: var(--muted); --lk-band: var(--sand);
  min-height: 100vh; padding-bottom: 0;
  background: radial-gradient(120% 60% at 50% 0, var(--lk-glow), transparent 70%) no-repeat, var(--lk-bg);
}
.links { position: relative; max-width: 460px; margin: 0 auto; padding: 28px 16px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; color: var(--lk-text); }
.links-lang { position: absolute; top: 14px; inset-inline-end: 16px; font-weight: 800; color: var(--teal-d); padding: 6px 10px; }
.links-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.links-logo { height: 190px; width: auto; filter: drop-shadow(0 12px 20px rgba(65, 26, 14, .18)); }
.links-head p { margin: 0; color: var(--lk-sub); font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.links-head .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.links-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; border-radius: 18px;
  background: var(--teal); color: #fff; font-weight: 900; font-size: 1.15rem; box-shadow: 0 10px 22px rgba(45, 179, 159, .32);
}
.links-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.links-btn:active { transform: scale(.98); }
.links-list { display: flex; flex-direction: column; gap: 8px; }
.links-list .social a { background: var(--lk-row); border: 1px solid var(--lk-row-line); padding: 11px 12px; color: var(--lk-text); }
.links-list .social small { color: var(--lk-sub); }
.links-list .social a:hover { outline: 2px solid var(--teal); outline-offset: -1px; }
.ico.web { background: var(--coffee-2); }
.links-hours { list-style: none; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--lk-band); border: 1px solid var(--lk-row-line); font-size: .9rem; }
.links-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.links-hours li span:first-child { font-weight: 800; }
.links-hours li span:last-child { color: var(--lk-sub); }
/* By night the page wears the home banner's sand band (owner, 2026-11-11): its gradient and the day logo. */
:root[data-theme="dark"] .links-page {
  --lk-row: rgba(255, 255, 255, .55); --lk-row-line: rgba(65, 26, 14, .14); --lk-band: rgba(255, 255, 255, .4);
  --lk-text: #1d1512; --lk-sub: #6b5446;
  color-scheme: light;
  background: radial-gradient(120% 90% at 50% 0%, #f2e7d8 0, #e7d6c0 65%, #dcc6ab 100%) fixed;
}
:root[data-theme="dark"] .links-page .logo-light { display: block !important; }
:root[data-theme="dark"] .links-page .logo-dark { display: none !important; }
:root[data-theme="dark"] .links-page .links-lang { color: #1b7d6f; }
:root[data-theme="dark"] .links-page .open-pill { background: rgba(255, 255, 255, .5); color: #6b5446; }
:root[data-theme="dark"] .links-page .open-pill.is-open { background: #e2f4f1; color: #1b7d6f; }

/* Dots under a home rail that holds more cards than fit (2026-11-12). */
.rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.rail-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width .25s, background .25s; }
.rail-dots button.on { width: 20px; background: var(--teal); }

/* «تواصل معنا» sheet from the chat button in the top bar (2026-11-12). */
.contact-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; max-height: 85vh; }
.contact-head { display: flex; align-items: center; gap: 10px; }
.contact-head h2 { flex: 1; margin: 0; font-family: var(--display); color: var(--heading); font-size: 1.4rem; }
.contact-head .x { display: inline-grid; place-items: center; flex: none; }
.contact-hours { list-style: none; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--sand); font-size: .9rem; }
.contact-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.contact-hours li span:first-child { font-weight: 800; }
/* Night (owner, 2026-11-13: the day sheet looked much better): the same layout as by day – a lifted sheet
   with soft, borderless rows a step lighter than it, instead of muddy rows with heavy borders on a sheet that
   melted into the page. */
:root[data-theme="dark"] dialog.contact-sheet { background: #2a1a12; box-shadow: 0 -1px 0 #4a3123; }
:root[data-theme="dark"] .contact-sheet::backdrop { background: rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .contact-sheet .social a,
:root[data-theme="dark"] .contact-hours { background: #3a271c; border: 0; }
:root[data-theme="dark"] .contact-sheet .social small { color: #c9b8ac; }
:root[data-theme="dark"] .contact-sheet .x { background: #3a271c; color: var(--ink); }
:root[data-theme="dark"] .contact-sheet .open-pill { background: #3a271c; color: #d6c6bb; }
:root[data-theme="dark"] .contact-sheet .open-pill.is-open { background: var(--teal-l); color: var(--teal-d); }
:root[data-theme="dark"] .contact-sheet .ico.tt { box-shadow: 0 0 0 1px rgba(244, 236, 230, .25); }
@media (min-width: 1024px) { dialog.contact-sheet { max-width: 440px; } }

/* Order tracking (2026-11-12): one line for where the order is, over a bar of three steps. */
.progress { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px 16px; margin: 0 0 14px; text-align: center; }
.progress h2 { margin: 0 0 16px; font-family: var(--display); color: var(--heading); font-size: 1.35rem; line-height: 1.35; }
.pbar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.pbar li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .85rem; font-weight: 800; color: var(--muted); }
/* The line joining each step to the one before it. */
.pbar li + li::before { content: ''; position: absolute; top: 8px; inset-inline-end: 50%; width: 100%; height: 4px; border-radius: 4px; background: var(--line); }
.pbar li.done + li::before, .pbar li.done + li.current::before { background: var(--teal); }
.pbar .dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 3px solid var(--line); box-sizing: border-box; }
.pbar li.done .dot { background: var(--teal); border-color: var(--teal); }
.pbar li.done { color: var(--ink); }
.pbar li.current .dot { border-color: var(--teal); box-shadow: 0 0 0 5px color-mix(in srgb, var(--teal) 25%, transparent); animation: pulse 1.6s ease-in-out infinite; }
.pbar li.current { color: var(--teal-d); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--teal) 10%, transparent); } }
.progress.is-ready { border-color: var(--teal); background: var(--teal-l); }
.progress.is-ready h2 { color: var(--teal-d); }
.progress.is-ready .pbar li.current .dot { background: var(--teal); }
.progress.ended .pbar { display: none; }
.progress.ended h2 { margin: 0; }
.progress.cancelled { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--paper)); }
.progress.cancelled h2 { color: var(--danger); }
.progress.flash { animation: flash 1.2s ease 3; }
:root[data-theme="dark"] .progress.is-ready { background: #12302b; }
:root[data-theme="dark"] .pbar li.current { color: #5fd6c4; }
@media (prefers-reduced-motion: reduce) { .pbar li.current .dot { animation: none; } }
