/*
 * The customer-facing site: homepage, sign-in, sign-up, profile (body class "site", on layouts/public.html).
 * Identity: the café's full logo (cup, name, slogan), Poppins for text, Satisfy (script) for headings, espresso
 * and the logo's orange. Navigation and buttons are "liquid glass": a translucent, blurred surface with a light
 * rim that is brighter on the top-left and bottom-right edges, a thin top highlight and a soft shadow.
 * The homepage adds home.css on top.
 */

/* ---- Fonts (self-hosted, Latin subset; licence in static/fonts/README.md) ---- */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-300-latin.42d3308e3aca.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400-latin.43751174b6b8.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600-latin.b550bca8934b.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700-latin.0bd523f60499.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Satisfy"; src: url("../fonts/satisfy-400-latin.00522abb0a4e.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---- Site tokens (the logo's colours) ---- */
body.site {
  --site-espresso: var(--mc-ink-900);          /* #2b211b header, hero, specials, footer */
  --site-espresso-2: #352922;                  /* a step lighter, for depth on dark bands */
  --site-cream: #fff6e8;                       /* the original site's cream */
  --site-cream-soft: rgb(255 246 232 / 0.78);  /* secondary text on espresso (10:1) */
  --site-orange: #e0703f;                      /* logo orange, lifted for dark backgrounds (5.6:1 on espresso) */
  --site-orange-ink: var(--mc-terracotta-600); /* orange text on light paper (5.2:1) */
  --site-coral: #ef4565;                       /* logo coral: decoration only */
  --site-handle: #7aa8c9;                      /* logo navy, lifted to read on espresso: decoration only */
  --site-ring: rgb(255 246 232 / 0.32);        /* the saucer line on espresso */
  --site-paper: #fffaf3;                       /* the menu sheet */
  --site-line: #e9dccb;

  /* Liquid glass */
  --glass-blur: blur(20px) saturate(180%);
  --glass-rim: linear-gradient(135deg, rgb(255 255 255 / 0.6), rgb(255 255 255 / 0.08) 32%, rgb(255 255 255 / 0) 60%, rgb(255 255 255 / 0.32));
  --glass-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 12px 32px -12px rgb(0 0 0 / 0.55);

  --font-body: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-body);
  --font-script: "Satisfy", "Brush Script MT", cursive;
  --bs-body-font-family: var(--font-body);
  font-family: var(--font-body);
  background: var(--site-cream);
  color: var(--color-text);
}
body.site .btn:not(.qty-stepper__btn) { border-radius: var(--radius-pill); font-weight: 600; }
body.site .btn-lg { padding: 0.75rem 1.7rem; font-size: 1.05rem; }
body.site .pub-main { flex: 1 0 auto; }

/* Page titles in the script face, as on the homepage */
body.site .auth-card__head h1, body.site .page-header__title { font-family: var(--font-script); font-weight: 400; font-size: clamp(2.2rem, 5vw, 2.8rem); line-height: 1.15; letter-spacing: 0; }
body.site .panel__title { font-family: var(--font-body); font-weight: 600; }
body.site .auth-card { border-color: var(--site-line); box-shadow: 0 18px 40px rgb(43 33 27 / 0.1); }
body.site .auth-card__foot { background: var(--site-paper); }
body.site .auth-logo { width: auto; height: 3.75rem; }

/* ===== The glass rim: one technique for every glass surface ===== */
.glass-btn, .glass-icon, body.site .pub-header__inner {
  position: relative; isolation: isolate;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.glass-btn::before, .glass-icon::before, body.site .pub-header__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; padding: 1px; border-radius: inherit; pointer-events: none;
  background: var(--glass-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ===== Header: a floating glass bar with the full logo ===== */
body.site .pub-header { background: transparent; border: 0; padding: 0.75rem clamp(0.75rem, 3vw, 1.5rem) 0; pointer-events: none; }
body.site .pub-header__inner {
  pointer-events: auto; max-width: 76rem; min-height: 4rem; padding: 0.4rem 0.5rem 0.4rem 1.1rem; border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgb(52 40 33 / 0.72), rgb(30 23 18 / 0.66));
  box-shadow: var(--glass-shadow);
}
.site-brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; flex: none; border-radius: var(--radius-md); }
.site-brand__logo { display: block; width: auto; height: 44px; }
.site-brand:focus-visible { outline: 3px solid var(--color-focus-on-dark); outline-offset: 4px; }
@media (max-width: 575.98px) { .site-brand__logo { height: 38px; } body.site .pub-header__inner { padding-left: 0.85rem; } }
body.site .pub-nav { gap: 0.15rem; }
body.site .pub-nav__link {
  min-height: 2.6rem; padding: 0 1rem; border-radius: var(--radius-pill);
  font-weight: 400; font-size: 0.95rem; color: var(--pub-header-ink, var(--site-cream)); text-decoration: none;
  transition: background-color var(--motion-base) var(--ease-out), color var(--motion-base);
}
body.site .pub-nav__link:hover { background: rgb(255 255 255 / 0.1); color: #fff; text-decoration: none; }
body.site .pub-nav__link[aria-current="true"] { background: rgb(255 255 255 / 0.14); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18); }
body.site .pub-nav__link:focus-visible, body.site .pub-header .btn:focus-visible { outline: 3px solid var(--color-focus-on-dark); outline-offset: 2px; box-shadow: none; }
body.site .pub-header .dropdown .btn-ghost { color: var(--pub-header-ink, var(--site-cream)); border-radius: 50%; width: 2.75rem; padding: 0; }
body.site .pub-header .dropdown .btn-ghost:hover { background: rgb(255 255 255 / 0.1); }
body.site .pub-chip { background: rgb(255 255 255 / 0.12); color: var(--site-cream); }
.site-order-btn { margin-left: var(--space-2); white-space: nowrap; }
/* On phones the table is already named in the hero and in the order window; the chip would push Order now off the bar. */
@media (max-width: 575.98px) { body.site .pub-chip { display: none; } }

/* ===== Liquid glass buttons ===== */
.btn.glass-btn {
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
  --bs-btn-bg: transparent; --bs-btn-hover-bg: transparent; --bs-btn-active-bg: transparent;
  --bs-btn-border-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--touch-target); padding-inline: 1.35rem;
  background-image: linear-gradient(180deg, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.07));
  box-shadow: var(--glass-shadow);
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
  transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-base), filter var(--motion-base);
}
.btn.glass-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn.glass-btn:active { transform: translateY(0) scale(0.98); }
/* Tinted glass: the logo's orange, for the main action */
.btn.glass-btn--warm { background-image: linear-gradient(180deg, rgb(226 116 66 / 0.95), rgb(185 60 26 / 0.92)); }
.btn.glass-btn:focus-visible { outline: 3px solid var(--color-focus-on-dark); outline-offset: 3px; }
.btn.glass-btn .pub-cart__count { background: rgb(255 255 255 / 0.92); color: var(--mc-terracotta-700); text-shadow: none; }

/* Round glass icon links (social) */
.glass-icon {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.04));
  box-shadow: var(--glass-shadow); color: var(--site-cream); font-size: 1.1rem; text-decoration: none;
  transition: filter var(--motion-base), transform var(--motion-fast) var(--ease-out);
}
.glass-icon:hover { filter: brightness(1.2); color: #fff; transform: translateY(-1px); }
.glass-icon:focus-visible { outline: 3px solid var(--color-focus-on-dark); outline-offset: 3px; }

/* ===== Footer: the logo, contact details, hours, social links (and the map on the homepage) ===== */
.site-footer { position: relative; background: var(--site-espresso); color: var(--site-cream-soft); padding-block: clamp(3.5rem, 7vw, 5rem) var(--space-5); }
.site-footer::before {  /* the logo's orange, coral and navy as a thin rule along the top */
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--site-orange) 0 62%, var(--site-coral) 62% 78%, var(--site-handle) 78%);
}
.site-footer__inner { max-width: 76rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.site-footer__grid { display: grid; gap: clamp(2rem, 5vw, 3rem); }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1100px) { .site-footer__grid--map { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr) minmax(0, 1.25fr); } }
.site-footer p { margin: 0; }
.site-footer__logo { display: block; width: auto; height: 70px; margin-bottom: var(--space-4); }
.site-footer p.site-footer__line { font-family: var(--font-script); font-size: 1.9rem; line-height: 1.2; color: var(--site-orange); margin-bottom: var(--space-3); }
.site-footer__intro { max-width: 38ch; line-height: 1.65; }
.site-footer__social { list-style: none; display: flex; gap: var(--space-3); margin: var(--space-5) 0 0; padding: 0; }
.site-footer__title { margin: 0 0 var(--space-4); font-family: var(--font-script); font-weight: 400; font-size: 2rem; color: #fff; }
.site-footer__item { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid rgb(255 246 232 / 0.1); line-height: 1.6; }
.site-footer__title + .site-footer__item { border-top: 0; padding-top: 0; }
.site-footer__item > .bi { color: var(--site-orange); font-size: 1.15rem; line-height: 1.5; }
.site-footer__label { font-weight: 600; color: var(--site-cream); }
.site-footer a { color: var(--site-cream); text-decoration: underline; text-decoration-color: rgb(255 246 232 / 0.35); text-underline-offset: 0.2em; }
.site-footer a:hover { color: #fff; text-decoration-color: var(--site-orange); }
.site-footer a:focus-visible { outline: 3px solid var(--color-focus-on-dark); outline-offset: 2px; border-radius: 2px; }
.site-footer a.glass-icon { text-decoration: none; }
.site-footer__map { border-radius: var(--radius-lg); overflow: hidden; min-height: 18rem; background: var(--site-espresso-2); box-shadow: 0 0 0 1px rgb(255 246 232 / 0.12); }
.site-footer__map iframe { display: block; width: 100%; height: 100%; min-height: 18rem; border: 0; }
@media (min-width: 768px) and (max-width: 1099.98px) { .site-footer__map { grid-column: 1 / -1; } }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-5); margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: var(--space-4); border-top: 1px solid rgb(255 246 232 / 0.1); font-size: var(--text-sm); }

@media (prefers-reduced-motion: reduce) {
  .btn.glass-btn, .glass-icon, body.site .pub-nav__link { transition: none; }
  .btn.glass-btn:hover, .glass-icon:hover { transform: none; }
}
