/* pemaHire — professional finish. Loaded last; layout and polish only, no behaviour. */

/* ------------------------------------------------------------ foundations */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: #cdeee0; color: var(--green-deep); }
:focus-visible { outline: 3px solid rgba(11, 107, 82, .35); outline-offset: 2px; }
.button, .scope-option, .nav-toggle { -webkit-tap-highlight-color: transparent; }
.button { transition: background .15s ease, box-shadow .15s ease, transform .15s ease; }
.button:active { transform: translateY(1px); }

/* ----------------------------------------------------------------- header */
.nav-toggle { display: none; }

/* ------------------------------------------------------------ listing cards */
.item-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-card-footer strong { letter-spacing: -.01em; }
.item-card .badge.item-type { box-shadow: 0 4px 12px rgba(18, 48, 38, .12); }

/* ------------------------------------------------------------ home trust band */
.trust-band { margin: 72px 0 24px; padding: clamp(28px, 5vw, 48px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, #fff, #f7fbf9); }
.trust-band-head { max-width: 640px; }
.trust-band-head h2 { margin: 6px 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.trust-band-head p { margin: 0; color: var(--muted); }
.trust-band-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.trust-band-grid > div { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.trust-band-grid span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mint); color: var(--green); font-weight: 900; }
.trust-band-grid h3 { margin: 14px 0 6px; font-size: 1.02rem; }
.trust-band-grid p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.trust-band-link { display: inline-block; margin-top: 22px; font-weight: 800; }

/* ------------------------------------------------------------ listing detail */
.mobile-apply { display: none; }
.hire-price span { white-space: nowrap; }

/* ---------------------------------------------------------- vendor dashboard */
.dashboard-grid { align-items: start; }

/* ----------------------------------------------------------- staff dashboard */
.dash-section-title { margin: 26px 0 12px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.page-heading + .dash-section-title { margin-top: 4px; }
.attention-tile { transition: border-color .15s ease, box-shadow .15s ease; }
a.attention-tile:hover { border-color: #b9dccb; box-shadow: var(--shadow-sm); }

/* ----------------------------------------------------------------- footer */
.site-footer { padding: 0; background: #0c2a22; color: #b9cfc6; border-top: 0; }
.footer-trust { border-bottom: 1px solid rgba(255, 255, 255, .08); background: #0a241d; }
.footer-trust-inner { width: min(1180px, calc(100% - 40px)); margin: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 18px 0; }
.footer-trust span { display: flex; align-items: center; gap: 10px; color: #dcebe4; font-size: .86rem; font-weight: 650; }
.footer-trust b { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .08); color: #8fe0be; font-size: .85rem; }
.site-footer .footer-inner { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); align-items: start; gap: 40px; padding: 48px 0 36px; }
.footer-about p { max-width: 380px; margin: 14px 0 0; color: #9db8ad; font-size: .9rem; line-height: 1.6; }
.site-footer .footer-brand, .site-footer .footer-brand:hover { color: #fff; }
.site-footer .brand-mark { box-shadow: none; }
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col h2 { margin: 4px 0 6px; color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { color: #b9cfc6; font-size: .92rem; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { width: min(1180px, calc(100% - 40px)); margin: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0 26px; border-top: 1px solid rgba(255, 255, 255, .08); color: #85a397; font-size: .8rem; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .trust-band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .footer-trust-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }

  /* Sticky "check dates" bar once the booking card drops below the content. */
  .mobile-apply { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .96); box-shadow: 0 -10px 30px rgba(18, 48, 38, .08); backdrop-filter: blur(14px); }
  .mobile-apply strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
  .mobile-apply span { margin-left: 4px; color: var(--muted); font-size: .85rem; }
  .mobile-apply .button { min-width: 150px; }
  .container:has(.mobile-apply) { padding-bottom: 72px; }
  body:has(.mobile-apply) .live-toasts { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

@media (max-width: 760px) {
  /* Header: brand + bell + menu button on one row; links in a drop-down sheet. */
  .site-header { position: sticky; }
  .header-inner { flex-direction: row; align-items: center; min-height: 64px; padding: 0; gap: 12px; }
  .nav-toggle { position: relative; display: grid; align-content: center; justify-items: center; gap: 4px; width: 42px; height: 42px; margin-left: auto; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .live { position: relative; top: auto; right: auto; order: 0; margin-left: auto; }
  .live + .nav-toggle, .live ~ .nav-toggle { margin-left: 0; }
  .site-header nav#primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; width: 100%; padding: 10px 14px 16px; overflow: visible; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 18px 40px rgba(18, 48, 38, .12); }
  .nav-open .site-header nav#primary-nav { display: flex; animation: nav-drop .16s ease-out; }
  .site-header nav#primary-nav > a, .site-header nav#primary-nav .link-button { min-height: 46px; padding: 12px 14px; font-size: 1rem; text-align: left; }
  .site-header nav#primary-nav form.inline { display: block; }
  .site-header nav#primary-nav .link-button { width: 100%; }
  .site-header nav#primary-nav .nav-cta { margin: 8px 0 0; justify-content: center; text-align: center; }
  .live-panel { top: 64px; }

  /* Cards: photos edge to edge like desktop. */
  .item-card { padding: 0; }
  .item-media { height: auto; }

  .trust-band { margin-top: 48px; border-radius: 22px; }
  .trust-band-grid { grid-template-columns: 1fr; }

  /* Staff: swipeable section menu and compact two-up tiles. */
  .staff-nav { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 10px; scrollbar-width: none; }
  .staff-nav::-webkit-scrollbar { display: none; }
  .staff-nav .eyebrow { display: none; }
  .staff-nav a { flex: none; white-space: nowrap; border: 1px solid var(--line); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi strong { font-size: 1.12rem; }
  .attention-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .attention-tile strong { font-size: 1.3rem; }
  .attention-tile span { font-size: .8rem; }

  .footer-trust-inner { grid-template-columns: 1fr; gap: 12px; width: min(100% - 28px, 1180px); }
  .site-footer .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; width: min(100% - 28px, 1180px); padding: 36px 0 28px; }
  .footer-links, .footer-col { flex-direction: column; }
  .footer-bottom { width: min(100% - 28px, 1180px); flex-direction: column; }
}

@media (max-width: 420px) {
  .attention-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@keyframes nav-drop { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .nav-open .site-header nav#primary-nav { animation: none; } }
