/* Global site styles for ARC Medical Staffing nonprofit website */
:root{
  --brand-primary:#0b5f7a;   /* Deep teal */
  --brand-accent:#2a9d8f;    /* Sea green */
  --brand-ink:#0f172a;       /* Slate-900 */
  --brand-muted:#475569;     /* Slate-600 */
  --bg:#f8fafc;               /* Slate-50-ish */
  --card:#ffffff;
  --border:rgba(2, 6, 23, 0.10);
  --shadow:0 8px 24px rgba(2, 6, 23, 0.08);
  --radius:16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);
  color:var(--brand-ink);
  line-height:1.5;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  max-width:1120px;
  margin:0 auto;
  padding:0 20px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background:rgba(248,250,252,0.8);
  border-bottom:1px solid var(--border);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand img{
  width:56px;
  height:auto;
  display:block;
}

.brand .title{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.brand .title strong{
  font-size:14px;
  letter-spacing:0.2px;
}
.brand .title span{
  font-size:12px;
  color:var(--brand-muted);
}

.menu{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.menu a{
  font-size:14px;
  color:var(--brand-muted);
  padding:8px 10px;
  border-radius:12px;
}

.menu a.active,
.menu a:hover{
  color:var(--brand-ink);
  background:rgba(42,157,143,0.12);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 16px;
  border-radius:14px;
  border:1px solid rgba(2,6,23,0.08);
  background:var(--card);
  box-shadow:0 1px 0 rgba(2,6,23,0.04);
  font-weight:600;
  cursor:pointer;
}
.btn.primary{
  background:linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color:white;
  border:0;
}
.btn.ghost{
  background:transparent;
}
.btn.small{
  padding:8px 12px;
  border-radius:12px;
  font-size:13px;
  font-weight:600;
}

.hero{
  padding:42px 0 24px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap:24px;
  align-items:start;
}

.hero-media{
  margin-top:18px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  overflow:hidden;
  background:linear-gradient(135deg, rgba(11,95,122,0.08), rgba(42,157,143,0.08));
  box-shadow:var(--shadow);
}
.hero-media img{
  width:100%;
  height:320px;
  display:block;
  object-fit:cover;
}

.media-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
.media{
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#fff;
}
.media img{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
}
.media .cap{
  padding:10px 12px;
  font-size:13px;
  color:var(--brand-muted);
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border:1px solid rgba(2,6,23,0.08);
  border-radius:999px;
  background:rgba(42,157,143,0.10);
  color:var(--brand-primary);
  font-weight:700;
  font-size:13px;
}

.hero h1{
  margin:14px 0 12px;
  font-size:40px;
  line-height:1.15;
  letter-spacing:-0.5px;
}
.hero p{
  margin:0 0 18px;
  color:var(--brand-muted);
  font-size:16px;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.side-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,0.78);
  box-shadow:var(--shadow);
  padding:16px;
}
.side-card h3{
  margin:0 0 10px;
  font-size:16px;
}
.side-card ul{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.side-card li{
  display:flex;
  gap:10px;
  color:var(--brand-muted);
  font-size:14px;
}
.pill{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--brand-accent);
  margin-top:5px;
  flex:0 0 auto;
}

.section{
  padding:24px 0;
}
.section h2{
  margin:0 0 10px;
  font-size:24px;
}
.section .sub{
  margin:0 0 18px;
  color:var(--brand-muted);
  font-size:15px;
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:0 1px 0 rgba(2,6,23,0.03);
}
.card h3{
  margin:10px 0 8px;
  font-size:16px;
}
.card p{
  margin:0;
  color:var(--brand-muted);
  font-size:14px;
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
}

.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.field{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin:10px 0;
}
.field label{
  font-size:13px;
  color:var(--brand-muted);
  font-weight:700;
}
.field input, .field textarea, .field select{
  border:1px solid rgba(2,6,23,0.14);
  border-radius:12px;
  padding:10px 12px;
  background:white;
  outline:none;
  font-size:14px;
}
.field textarea{
  min-height:120px;
  resize:vertical;
}

/* Site footer */
.site-footer{
  margin-top:32px;
  background:linear-gradient(180deg, rgba(11,95,122,0.06) 0%, rgba(42,157,143,0.08) 100%);
  border-top:1px solid var(--border);
  color:var(--brand-muted);
  font-size:14px;
}
.site-footer .footer-inner{
  display:grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.1fr;
  gap:28px;
  padding:36px 0 28px;
}
.site-footer .footer-brand{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.site-footer .footer-brand img{
  width:64px;
  height:auto;
  flex:0 0 auto;
}
.site-footer .footer-brand strong{
  display:block;
  color:var(--brand-ink);
  font-size:16px;
  margin-bottom:8px;
}
.site-footer .footer-brand p{
  margin:0;
  line-height:1.55;
  max-width:280px;
}
.site-footer h4{
  margin:0 0 12px;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:0.06em;
  color:var(--brand-primary);
}
.site-footer ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.site-footer a{
  color:var(--brand-muted);
  text-decoration:none;
}
.site-footer a:hover{
  color:var(--brand-ink);
  text-decoration:underline;
}
.site-footer .footer-meta{
  line-height:1.6;
}
.site-footer .footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding:18px 0 28px;
  border-top:1px solid var(--border);
  font-size:13px;
}
.site-footer .footer-bottom .legal{
  color:var(--brand-muted);
}

.scroll-top{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:200;
  width:48px;
  height:48px;
  border-radius:50%;
  border:0;
  cursor:pointer;
  font-size:20px;
  font-weight:800;
  color:#fff;
  background:linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  box-shadow:0 10px 28px rgba(11,95,122,0.35);
  opacity:0;
  visibility:hidden;
  transform:translateY(12px);
  transition:opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.scroll-top.is-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.scroll-top:hover{
  filter:brightness(1.05);
}
.scroll-top:focus-visible{
  outline:3px solid rgba(42,157,143,0.45);
  outline-offset:2px;
}

@media (max-width: 940px){
  .site-footer .footer-inner{
    grid-template-columns:1fr 1fr;
  }
}
@media (max-width: 640px){
  .site-footer .footer-inner{
    grid-template-columns:1fr;
  }
  .site-footer .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
  }
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid rgba(2,6,23,0.08);
  border-radius:999px;
  background:rgba(11,95,122,0.06);
  font-weight:700;
  color:var(--brand-primary);
  font-size:13px;
}

.list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.item-row{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.date-badge{
  min-width:106px;
  text-align:center;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(2,6,23,0.10);
  background:rgba(42,157,143,0.10);
  font-weight:800;
  color:var(--brand-primary);
}
.item-row h3{
  margin:0 0 4px;
  font-size:16px;
}
.item-row p{
  margin:0;
  color:var(--brand-muted);
  font-size:14px;
}

.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,0.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:1000;
}
.modal-overlay.show{
  display:flex;
}
.modal{
  width:min(860px, 100%);
  max-height:80vh;
  overflow:auto;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.22);
  background:white;
  box-shadow:0 20px 70px rgba(2,6,23,0.35);
}
.modal header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:16px 16px 0;
}
.modal header h2{
  margin:0;
  font-size:18px;
}
.modal .content{
  padding:8px 16px 16px;
  color:var(--brand-muted);
  font-size:14px;
}
.modal-close{
  border:1px solid rgba(2,6,23,0.10);
  background:white;
  border-radius:12px;
  padding:8px 12px;
  cursor:pointer;
  font-weight:800;
}

.map-frame{
  width:100%;
  min-height:330px;
  border:1px solid rgba(2,6,23,0.12);
  border-radius:var(--radius);
  background:#fff;
  display:block;
}
#orgMap.map-frame{
  padding:0;
  overflow:hidden;
}
.map-caption{
  margin-top:10px;
  font-size:13px;
  color:var(--brand-muted);
}
.map-caption a{
  color:var(--brand-primary);
  font-weight:600;
}
.leaflet-control-attribution{
  font-size:11px !important;
  background:rgba(255,255,255,0.92) !important;
}

@media (max-width: 940px){
  .hero-grid{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr; }
  .split{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .hero h1{ font-size:32px; }
  .hero-media img{ height:240px; }
  .media-grid{ grid-template-columns:1fr; }
  .media img{ height:220px; }
}

