/* Home page (tried at /home/new, adopted 2026-11-09), owner feedback: "the identity doesn't stand out".
   Brand guide (docs/brand/brand-guide.pdf): teal #2DB39F, brown #764633, dark brown #411A0E; logo font Amin (colours and font live in site.css).
   The page opens with the big logo and the slogan as plain text under it (owner, 2026-11-14:
   the signpost and the hours are gone, and so are the weave lines along the band's edges).
   Since 2026-11-15 the hero takes the site's own background so the transparent logo reads as
   part of the page, with the night logo and a soft glow after dark.
   The footer is a dark-brown band with the Sadu weave on its edge. Scoped to body.brand-home. */

body.brand-home {
  --coffee-deep: #2b0f07;
  --teal-glow: #6fe3d0;
  --cream-fixed: #fbf7f2;
  --weave-strip:
    linear-gradient(135deg, var(--teal) 25%, transparent 25%) -6px 0 / 12px 12px,
    linear-gradient(225deg, var(--teal) 25%, transparent 25%) -6px 0 / 12px 12px,
    var(--coffee-deep);
}

/* No weave line under the header on the home page (owner, 2026-11-14). */
.brand-home .weave { display: none; }
.brand-home .top-brand img { height: 52px; }

/* ---------- the brand band: the big logo with the slogan under it (owner, 2026-11-14) ---------- */
.brand-hero {
  position: relative; overflow: hidden; color: var(--ink); background: var(--cream);
}
/* Full merge (owner, 2026-11-15): the band takes the site's own background. At night the logo's
   coffee-brown half sinks into the roasted background, so a soft spotlight behind the hero and a
   faint cream glow around the night logo lift it — no shadow in day, the page colour untouched. */
:root[data-theme="dark"] .brand-hero {
  background:
    radial-gradient(75% 95% at 50% 42%, rgba(244, 236, 230, .08) 0, rgba(244, 236, 230, .03) 45%, transparent 72%),
    var(--cream);
}
.brand-hero-inner {
  --H: clamp(190px, 52vw, 500px);
  position: relative; max-width: 1120px; margin: 0 auto;
  padding: clamp(20px, 5vw, 40px) 16px clamp(22px, 5vw, 40px);
  display: grid; justify-items: center; text-align: center; gap: clamp(8px, 2vw, 14px);
}
.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; }
/* The logo grows fluidly with the screen: small phones up to a 500px cap on desktops (no breakpoint jump). */
.brand-duo { position: relative; }
.brand-logo { display: block; height: var(--H); width: auto; }
.brand-hero .logo-night { display: none; }
:root[data-theme="dark"] .brand-hero .logo-day { display: none; }
:root[data-theme="dark"] .brand-hero .logo-night { display: block; filter: drop-shadow(0 0 28px rgba(244, 236, 230, .22)); }
/* The slogan as plain text under the logo, the same width as the logo and a big display
   size like the «كافيه» word in the logo itself (owner, 2026-11-14). It scales with the
   logo on every screen, and wraps instead of overflowing on the narrowest ones. */
.brand-slogan {
  margin: 0; width: min(calc(var(--H) * .65), calc(100vw - 32px));
  color: var(--muted); font-family: var(--display); font-weight: 700;
  font-size: clamp(1.05rem, calc(var(--H) * .098), 3.1rem); line-height: 1.35; overflow-wrap: break-word;
}
/* ---------- sections ---------- */
.brand-home .block:first-child { padding-top: 26px; }
/* Section titles carry the split bean from the logo. */
.brand-home .block-head h2 { font-weight: 700; font-size: 1.5rem; }
.brand-home .block-head h2::before {
  width: 14px; height: 20px; border-radius: 50%; rotate: -20deg;
  background: linear-gradient(90deg, var(--teal) 0 44%, transparent 44% 56%, var(--coffee-2) 56%);
}
:root[data-theme="dark"] .brand-home .block-head h2::before {
  background: linear-gradient(90deg, var(--teal) 0 44%, transparent 44% 56%, #a8674a 56%);
}
.brand-home .rail-card { border-bottom: 4px solid var(--teal); }
.brand-home .about-card { background: var(--coffee); }
.brand-home .about-card::before { background: var(--weave-strip); }

/* ---------- footer: the same brown band, weave on top; the logo moved out with the banner redesign ---------- */
.brand-home .foot { position: relative; background: var(--coffee-deep); border-top: 0; color: #f6ece5; padding-top: 12px; }
.brand-home .foot::before { content: ''; position: absolute; inset: 0 0 auto; height: 12px; background: var(--weave-strip); }
.brand-home .foot h3 { color: var(--teal-glow); }
.brand-home .foot .hours li { border-bottom-color: rgba(246, 236, 229, .15); }
.brand-home .foot .social a { background: rgba(255, 255, 255, .07); }
.brand-home .foot .social small { color: rgba(246, 236, 229, .65); }
.brand-home .foot-note { color: rgba(246, 236, 229, .6); }


/* The footer edge uses the menu's category line, full colour (owner picked option 2, 2026-11-11;
   public/mockups/home-lines.html). The day line stays as-is at night (owner, 2026-11-15). */
.brand-home .foot::before {
  height: 8px;
  background:
    linear-gradient(135deg, var(--teal) 25%, transparent 25%) -4px 0 / 8px 8px,
    linear-gradient(225deg, var(--teal) 25%, transparent 25%) -4px 0 / 8px 8px,
    var(--coffee-2);
}

/* ---------- offers (2026-11-11): the same rail cards as the favourites, with the time left on the photo ---------- */
.rail-card .card-photo { position: relative; }
.offer-ends-tag {
  position: absolute; bottom: 8px; inset-inline-start: 8px; max-width: calc(100% - 16px);
  font-size: .72rem; font-weight: 800; line-height: 1.3; padding: 2px 8px; border-radius: 999px;
  color: #9a3412; background: rgba(255, 237, 213, .95);
}
:root[data-theme="dark"] .offer-ends-tag { color: #fed7aa; background: rgba(60, 30, 10, .85); }
.rail-card .card-price s { color: var(--muted); font-weight: 600; font-size: .85em; margin-inline-start: 4px; }
/* The offer size as a badge, like the menu's size circles (site.css .card-sizes .size b). */
.rail-card .card-price .size { display: inline-flex; margin-inline-end: 4px; }
.rail-card .card-price .size b {
  display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px;
  background: var(--teal); color: #fff; font-size: .75rem;
}
