/* Sunny Street Cafe — landing, bright daytime light theme */
* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* author display rules must never resurrect hidden elements */
html, body { margin: 0; padding: 0; overflow-x: clip; }
.fact, .card, .strip, .pair > label { min-width: 0; }
@font-face {
  font-family: 'Inter';
  src: url('/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
body, button, input, select, textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body {
  min-height: 100vh; background: #fdf9f0; color: #26221a;
  line-height: 1.5;
}

/* ---- hero ---- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(38,30,14,.62) 0%, rgba(38,30,14,.38) 55%, rgba(38,30,14,.66) 100%);
}
.hero-inner { position: relative; text-align: center; padding: 48px 20px; max-width: 560px; }
.hero-logo { width: 230px; max-width: 72vw; display: block; margin: 0 auto; filter: drop-shadow(0 6px 20px rgba(0,0,0,.45)); }
.hero h1.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;
}
.proof { color: #ffe9c2; font-weight: 700; font-size: 14px; margin: 10px 0 0; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero .tagline { color: #ffe9c2; font-size: 17px; margin: 8px 0 0; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero .actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.hero .btn { padding: 15px 18px; font-size: 17px; }
.hero .btn.primary { box-shadow: 0 6px 22px rgba(245,166,35,.45); }
.hero .btn.ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.65); color: #fff; backdrop-filter: blur(4px); }
.hero .wait-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero .waitline { color: #ffe9c2; font-weight: 600; font-size: 13.5px; margin: 6px 0 0; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero .wait-wrap.note-over .waitline {
  position: absolute; top: 50%; left: 50%; margin: 0; z-index: 2; pointer-events: none;
  transform: translate(-50%, -50%) rotate(-1.8deg);
  white-space: nowrap;
  color: #7a5c33; font-weight: 800; font-size: 15px; letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.nowait-chip {
  align-self: center; display: inline-flex; align-items: center; gap: 7px;
  margin: 0; padding: 2px 4px;
  color: #ffe9c2; font-weight: 600; font-size: 13.5px;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.nowait-chip::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #5fbf7a;
  animation: dotpulse 2s ease-out infinite;
}
@keyframes dotpulse {
  0%   { box-shadow: 0 0 6px rgba(95,191,122,.8), 0 0 0 0 rgba(95,191,122,.55); }
  70%  { box-shadow: 0 0 6px rgba(95,191,122,.8), 0 0 0 9px rgba(95,191,122,0); }
  100% { box-shadow: 0 0 6px rgba(95,191,122,.8), 0 0 0 0 rgba(95,191,122,0); }
}
@media (prefers-reduced-motion: reduce) {
  .nowait-chip::before { animation: none; box-shadow: 0 0 6px rgba(95,191,122,.8); }
}
.btn { position: relative; }
.btn.inactive {
  color: #c7c0b1; background: #f2ede2; border-color: #e7e0d0;
  box-shadow: none; cursor: default;
}
.btn.inactive .btn-label { opacity: .35; }
.btn.inactive .btn-label { position: relative; }
.btn.inactive .btn-label::after {
  content: ''; position: absolute; left: -2%; right: -2%; top: 50%;
  height: 2px; background: #a89e8a; transform: rotate(-2.5deg); border-radius: 1px;
}

/* ---- specials board ---- */
.specials { background: #fdf9f0; padding: 34px 18px 10px; }
.sp-head { text-align: center; margin-bottom: 18px; }
.sp-head h2 { margin: 0; font-size: 24px; color: #b3540a; }
.sp-head p { margin: 4px 0 0; color: #8a8374; font-size: 14px; }
.sp-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%;
  overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
  padding: 4px 4px 14px; -webkit-overflow-scrolling: touch;
}
.sp-item {
  margin: 0; background: #fff; border: 1px solid #f0e6d2; border-radius: 16px;
  scroll-snap-align: center; overflow: hidden;
  box-shadow: 0 4px 14px rgba(150,110,40,.08);
}
.sp-item img { width: 100%; aspect-ratio: 1/1; object-fit: contain; padding: 10px; background: #fffbf2; }
.sp-item figcaption { padding: 0 14px 14px; text-align: center; }
.sp-item strong { display: block; font-size: 15px; color: #26221a; }
.sp-item span { display: block; font-size: 13px; color: #8a8374; margin-top: 3px; }
.menu-tile { margin: 0; width: 100%; }
.menu-tile a { display: block; }
.menu-tile img {
  display: block; width: 100%; margin: 0 auto;
  border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.28);
}
@media (min-width: 700px) {
  .sp-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
}

/* ---- facts strip ---- */
.strip {
  max-width: 980px; margin: -34px auto 0; padding: 0 16px; position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px;
}
.fact {
  background: #fff; border: 1px solid #e9e1cd; border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 10px 26px rgba(96,78,40,.14); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 2px;
}
.fact .k { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .8px; color: #b07200; }
.fact .v { font-size: 15px; font-weight: 600; color: #26221a; }
.fact:hover { border-color: #f5a623; }

/* ---- cards ---- */
main { padding: 10px 16px 30px; }
.card {
  width: 100%; max-width: 560px; margin: 22px auto 0; background: #ffffff; border: 1px solid #e9e1cd;
  border-radius: 18px; padding: 26px 22px; box-shadow: 0 8px 24px rgba(96,78,40,.12);
}
.logo { width: 96px; display: block; margin: 0 auto 10px; }
h1 { font-size: 24px; text-align: center; margin: 0 0 4px; }
h2 { font-size: 19px; margin: 0 0 8px; }
.tagline { text-align: center; color: #6e6858; margin: 0 0 20px; font-size: 15px; }

.actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.btn {
  display: block; width: 100%; padding: 14px 16px; border-radius: 12px;
  text-align: center; text-decoration: none; font-weight: 750; font-size: 17px;
  border: 1.5px solid #d9cfb6; color: #26221a; background: #fffdf7;
}
.btn.primary { background: #f5a623; border-color: #f5a623; color: #1a1205; }
.btn:active { transform: translateY(1px); }

.info { border-top: 1px solid #e9e1cd; padding-top: 14px; font-size: 15px; }
.row { display: flex; gap: 12px; margin: 6px 0; }
.row .k { flex: 0 0 76px; color: #6e6858; font-weight: 650; }
.row a { color: #26221a; text-decoration: underline; text-underline-offset: 2px; }
.waitline { margin: 10px 0 0; font-weight: 700; color: #b07200; font-size: 14.5px; }

.catering { max-width: 640px; }
.catering .btn { margin: 2px 0 16px; }
.blurb.ask { margin: 0 0 16px; font-size: 14px; }
.blurb { color: #4a4436; font-size: 14.5px; margin: 0 0 16px; }
form label { display: block; font-size: 14px; font-weight: 650; color: #6e6858; margin-bottom: 12px; }
.opt { font-weight: 400; color: #a49d8b; }
/* ---- controls: styled feel, native behavior ---- */
input:not([type=checkbox]):not([type=radio]), select, textarea {
  appearance: none; -webkit-appearance: none; -moz-appearance: textfield;
  width: 100%; margin-top: 5px; padding: 12px; font-size: 16px; color: #26221a;
  background: #fffdf7; border: 1px solid #d9cfb6; border-radius: 10px;
}
select::-ms-expand { display: none; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
input:focus, select:focus, textarea:focus { outline: 2px solid #f5a623; border-color: #f5a623; }
.pair { display: flex; gap: 12px; }
.pair label { flex: 1; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.err { color: #b3341f; font-weight: 650; font-size: 14px; }
button {
  width: 100%; padding: 15px; margin-top: 6px; font-size: 17px; font-weight: 800;
  background: #f5a623; color: #1a1205; border: 0; border-radius: 12px; cursor: pointer;
}
button:disabled { opacity: .55; }
.done h2 { color: #1a6b3c; }

footer { max-width: 460px; width: 100%; margin-top: 22px; text-align: center; color: #6e6858; font-size: 13.5px; }
footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; }
footer a { color: #6e6858; }

/* ---- find us ---- */
.findus { max-width: 640px; }
.mapwrap {
  border: 1px solid #e9e1cd; border-radius: 14px; overflow: hidden; margin-top: 6px;
}
.mapwrap iframe { display: block; width: 100%; height: 300px; border: 0; }
.mapline { text-align: center; color: #6e6858; font-size: 13.5px; margin: 12px 0 0; }

/* ---- footer ---- */
footer { max-width: 640px; width: 100%; margin: 26px auto 0; padding: 0 16px; text-align: center; color: #6e6858; font-size: 13.5px; }
footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; }
footer a { color: #6e6858; }

@media (max-width: 480px) {
  .strip { margin-top: -26px; grid-template-columns: 1fr; }
  .fact .v { overflow-wrap: anywhere; }
  .hero { min-height: 86vh; }
  .mapwrap iframe { height: 240px; }
}

/* ---- sticky mobile action bar ---- */
.dockbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255, 253, 247, .92); backdrop-filter: blur(8px);
  border-top: 1px solid #e9e1cd; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
}
.dock {
  flex: 1; text-align: center; padding: 12px 0; border-radius: 12px;
  font-weight: 800; font-size: 15px; text-decoration: none; color: #26221a;
  border: 1px solid #d9cfb6; background: #fff;
  -webkit-tap-highlight-color: transparent;
}
.dock.primary { background: #f5a623; border-color: #f5a623; color: #1a1205; box-shadow: 0 4px 14px rgba(245,166,35,.4); }
.dock:active { transform: translateY(1px); }
.dockbar.has-wait .dock#dock-wait,
.dockbar.has-wait #dock-wait { background: #1a6b3c; border-color: #1a6b3c; color: #fff; }
.dockbar.no-wait #dock-wait { display: none; }  /* no wait -> no waitlist button in the dock */
footer { padding-bottom: 74px; }  /* keep footer links clear of the dock */

/* ---- catering page ---- */
body.cat-page { background: #fdf9f0; }
.cat-hero { text-align: center; padding: 34px 20px 8px; position: relative; }
.cat-hero .back {
  position: absolute; top: 18px; left: 16px; text-decoration: none; color: #6e6858;
  font-weight: 700; font-size: 14px; background: #fff; border: 1px solid #e9e1cd;
  padding: 8px 12px; border-radius: 999px; box-shadow: 0 2px 10px rgba(96,78,40,.08);
}
.cat-logo { width: 210px; max-width: 60vw; }
.cat-hero h1 { margin: 2px 0 6px; font-size: 26px; }
.cat-sub { color: #6e6858; font-size: 15px; margin: 0 auto; max-width: 420px; }
.cat-order .btn { margin: 2px 0 14px; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px;
}
.g-item { margin: 0; }
.g-item img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px;
  border: 1px solid #e9e1cd; display: block;
}
.g-item figcaption { font-size: 13px; color: #6e6858; margin-top: 4px; text-align: center; }
.cat-form { padding-bottom: 26px; }
.cat-page footer { padding-bottom: 20px; }

/* ---- jobs page ---- */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.job h3 { margin: 0 0 4px; font-size: 16px; }
.job .blurb { margin: 0; }
.jobs-note { font-style: italic; color: #8a6d3b; margin: 10px 0 0; }
input[type=file] { padding: 9px 12px; background: #fffdf7; color: #6e6858; font-size: 14px; }
input[type=file]::file-selector-button {
  font-family: inherit; font-weight: 700; font-size: 14px; border: 1px solid #d9cfb6;
  background: #fff; color: #26221a; border-radius: 8px; padding: 7px 12px; margin-right: 10px; cursor: pointer;
}

/* ---- join modal ---- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(38,30,14,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: #fff; border-radius: 18px; padding: 22px 20px; width: 100%; max-width: 420px;
  max-height: 90vh; overflow-y: auto; position: relative;
  box-shadow: 0 18px 50px rgba(38,30,14,.35);
}
.modal-x {
  position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: #f3ecdc; color: #6e6858; font-size: 20px; line-height: 1; cursor: pointer;
  padding: 0; margin: 0; flex: 0 0 auto;   /* kill the global button padding/width bleed */
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.modal-x:active { transform: scale(.94); }
.joinsub { color: #b07200; font-weight: 700; font-size: 14px; margin: -2px 0 14px; }
label.optin {
  display: flex; gap: 9px; align-items: flex-start; font-weight: 400; font-size: 13px;
  color: #4a4436; line-height: 1.45;
}
label.optin input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }

/* ---- mobile form fixes ---- */
@media (max-width: 480px) {
  .dockbar { display: flex; }
  .pair { display: block; }
  .pair label + label { margin-top: 0; }
  .card { padding: 22px 16px; }
  input, select, textarea { font-size: 16px; }  /* 16px stops iOS zoom-on-focus */
}
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e6858' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
