/* ============================================================================
   NFC Review/Menu card — static styles. DO NOT edit per client.
   All client-specific values (name, links, colors, logo) come from the
   CONFIG block in index.html and are applied by app.js.
   ============================================================================ */

:root {
  --bg: #FFFFFF;
  --fg: #111111;
  --muted: #8A8A8A;
  --border: #EEEDED;

  /* Set at runtime by app.js from CONFIG. Fallbacks kept in sync with index.html. */
  --primary: #C9002F;
  --accent: #111111;
  --primary-text: #FFFFFF;   /* auto-picked (black/white) for contrast by app.js */
  --accent-text: #FFFFFF;    /* auto-picked (black/white) for contrast by app.js */

  --radius: 16px;
  --touch: 48px;             /* minimum touch target (buttons are larger) */
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  /* System font stack — no web fonts, no network requests for type. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
               Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  display: flex;
  flex-direction: column;
  /* dvh keeps everything inside the phone viewport (accounts for browser chrome),
     so both buttons stay visible without scrolling. */
  min-height: 100vh;
  min-height: 100dvh;
}

/* Card holds the whole page, centered and vertically distributed. */
.card {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 40px;
}

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  object-fit: contain;
}

.business-name {
  margin: 0;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

/* ---- Action buttons (the two equal tap targets) --------------------------- */
.actions {
  width: 100%;
  display: grid;
  gap: 16px;
}

.btn {
  display: block;
  width: 100%;

  min-height: 72px;            /* well above the 48px minimum */
  padding: 20px 24px;
  border-radius: var(--radius);

  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;

  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.btn-review { background: var(--primary); color: var(--primary-text); }
.btn-menu   { background: var(--accent);  color: var(--accent-text); }

/* Social buttons — fixed brand colors, always white label/icon. */
.btn-facebook { background: #1877F2; color: #FFFFFF; }
.btn-instagram {
  background: #C9002F; /* fallback for very old browsers */
  background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%,
                              #CC2366 75%, #BC1888 100%);
  color: #FFFFFF;
}

.btn-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  vertical-align: middle;
}

.btn-label {
  vertical-align: middle;
}

/* Hover: subtle lift + brightness shift (skill: bold hover, 200ms). */
@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
  }
}

.btn:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

/* Visible keyboard focus. */
.btn:focus-visible {
  outline: 3px solid var(--fg);
  outline-offset: 3px;
}

/* ---- Footer --------------------------------------------------------------- */
.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer p { margin: 0; }

/* ---- Larger screens: keep the mobile card look, just a touch more air ------ */
@media (min-width: 768px) {
  .card { gap: 48px; }
  .btn { min-height: 80px; font-size: 1.25rem; }
}

/* ---- Respect reduced-motion ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .btn:hover, .btn:active { transform: none; }
}
