/* Shared layout for /vacancy/<street>/ pages.
   Phones (touch): Text / Call / Email buttons above the flyer.
   Laptops (mouse): flyer beside a short contact panel with one
   "I'm Interested" button; texting and calling buttons are hidden. */
:root { --green: #1e4d2b; --green-dark: #143620; --ink: #1b1b1b; --muted: #555; --bg: #f4f5f2; --gold: #e4cd8e; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--ink); }
.vac { max-width: 520px; margin: 0 auto; padding: 16px 16px 32px; display: flex; flex-direction: column; }
.contact { order: -1; }
.contact h1 { display: none; }
.where { display: none; }
.btn { display: block; width: 100%; text-align: center; text-decoration: none; font: inherit; font-weight: 700; border-radius: 14px; padding: 18px 16px; font-size: 1.25rem; cursor: pointer; border: 0; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(30,77,43,.3); }
.btn-primary:active, .btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: #fff; color: var(--green); border: 2px solid var(--green); font-size: 1.05rem; padding: 14px 16px; }
.actions { display: grid; gap: 12px; margin: 0 0 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note { text-align: center; color: var(--muted); font-size: .95rem; margin: 0 0 16px; }
.desktop-only { display: none; }
.flyer img { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
footer { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 20px; }
footer a, .contact a.plain { color: var(--green); font-weight: 600; }

@media (hover: hover) and (pointer: fine) {
  /* Laptops: the flyer fills the page; contact details float in a bar at the bottom */
  body { padding-bottom: 120px; background: #e9ece6; }
  .mobile-only { display: none !important; }
  .vac { max-width: 980px; padding: 24px 24px 0; }
  .flyer img { border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.18); }
  .flyer a { cursor: pointer; }
  .contact {
    position: fixed; z-index: 40; bottom: 18px; left: 50%; transform: translateX(-50%);
    width: min(980px, calc(100% - 48px));
    background: rgba(20, 54, 32, .97); color: #fff; border-radius: 18px;
    padding: 16px 22px; box-shadow: 0 10px 30px rgba(0,0,0,.3);
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 0;
    grid-template-areas: "title where btn" "lines lines btn";
  }
  .contact h1 { display: block; grid-area: title; margin: 0; font-size: 1.15rem; line-height: 1.3; color: #fff; }
  .where { display: block; grid-area: where; margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--gold); }
  .where::before { content: "\00a0·\00a0"; color: #fff; }
  .desktop-only { display: contents; }
  .desktop-only .btn { grid-area: btn; width: auto; margin-left: 24px; background: var(--gold); color: #143620; font-size: 1.1rem; padding: 14px 28px; border-radius: 999px; box-shadow: none; }
  .desktop-only .btn:hover { background: #d8bd73; }
  .contact .lines { grid-area: lines; margin: 4px 0 0; color: rgba(255,255,255,.9); font-size: 1rem; line-height: 1.5; }
  .contact .lines br { display: none; }
  .contact .lines a.plain { color: #fff; font-weight: 400; }
  .contact .lines a.plain:first-of-type::after { content: ""; }
  footer { margin-top: 18px; }
  footer p:first-child { display: none; }
}

/* Interest popup (Netlify Form) */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal.open { display: flex; }
.modal-card { background: #fff; border-radius: 18px; width: 100%; max-width: 440px; padding: 28px 24px 22px; position: relative; max-height: 100%; overflow: auto; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: #333; }
.modal h2 { margin: 0 0 6px; color: var(--green); font-size: 1.5rem; }
.modal .sub { margin: 0 0 18px; color: var(--muted); line-height: 1.5; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #444; margin-bottom: 6px; }
.field input { width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem; border: 1.5px solid #ccc; border-radius: 10px; }
.field input:focus { outline: none; border-color: var(--green); }
.hp { position: absolute; left: -9999px; }
.status { margin-top: 10px; font-size: .95rem; min-height: 1.2em; }
.status.err { color: #b3261e; }
.modal-foot { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 16px; line-height: 1.6; }
.modal-foot a { color: var(--green); font-weight: 700; }
