/* ==========================================================================
   HIRECO — external stylesheet
   Palette: near-black background, orange as the only accent color.
   Font: Arial (system font, no external font request).
   Markup convention: no <div> or <span> — layout containers are
   <section>, <article>, <nav>, <figure>, <ul>/<li>, <form>, etc.
   ========================================================================== */

:root {
  --bg:            #0A0A0A;   /* page background — very black */
  --black:         #000000;   /* header / footer / hero / dark bands */
  --surface:       #161616;   /* cards, forms */
  --surface-2:     #1F1F1F;   /* hovered / secondary surfaces, image placeholders */
  --orange:        #F97316;   /* the one accent color */
  --orange-hover:  #EA580C;
  --white:         #FFFFFF;
  --heading:       #FFFFFF;
  --body:          #ADADAD;   /* muted light gray body text on black */
  --border:        #2A2A2A;
  --available:     #F97316;   /* status uses the same accent, not a new color */
  --unavailable:   #6B6B6B;

  --font: Arial, Helvetica, sans-serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,0.5), 0 10px 26px rgba(0,0,0,0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
fieldset { border: none; margin: 0; padding: 0; }
button { font-family: var(--font); cursor: pointer; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 14px;
}
h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 14px; }
.lede { font-size: 1.12rem; max-width: 50ch; }

/* Buttons / links styled as buttons ---------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-accent { background: var(--orange); color: var(--white); }
.btn-accent:hover { background: var(--orange-hover); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.btn-ghost { background: transparent; color: var(--orange); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--orange); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: underline;
}
.btn-link:hover { color: var(--orange-hover); }

/* Header --------------------------------------------------------------------*/
header {
  background: var(--black);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 60;
}
header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
}
header .logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
header .logo em {
  font-style: normal;
  color: var(--orange);
}
header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
header nav a {
  color: #C9C9C9;
  font-weight: 500;
  font-size: 0.94rem;
}
header nav a:hover,
header nav a[aria-current="page"] { color: var(--orange); }
header nav a.btn-accent { color: var(--white); padding: 10px 18px; font-size: 0.9rem; }
header nav a.btn-accent:hover { color: var(--white); }
header button.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
}
header button.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  header button.nav-toggle { display: block; }
  header nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 28px 26px;
    gap: 14px;
    display: none;
    border-top: 1px solid var(--border);
  }
  header nav.is-open { display: flex; }
  header nav a.btn-accent { width: 100%; justify-content: center; }
}

/* Page hero (interior pages) ------------------------------------------------*/
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 58px 0;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--body); }
.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

/* Home hero -------------------------------------------------------------------*/
.hero {
  background:
    linear-gradient(100deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.78) 38%, rgba(0,0,0,0.42) 68%, rgba(0,0,0,0.15) 100%),
    url('../images/hero.jpg') center 30% / cover no-repeat;
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}
.hero-copy { max-width: 600px; }
.hero article h1 { color: var(--white); }
.hero article p { color: #D8D8D8; }
.hero .btn-row { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .hero {
    padding: 90px 0;
    background:
      linear-gradient(180deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.88) 60%, rgba(0,0,0,0.95) 100%),
      url('../images/hero.jpg') center 25% / cover no-repeat;
  }
  .hero-copy { max-width: 100%; }
}

/* Section shells ----------------------------------------------------------------*/
main > section { padding: 76px 0; background: var(--bg); }
main > section.tight { padding: 52px 0; }
main > section.alt { background: var(--black); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
main > section.dark { background: var(--black); color: var(--body); }
main > section.dark h2 { color: var(--white); }
main > section.dark h3 { color: var(--white); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head .lede { margin: 0; }

/* Service / worker / card grids (built from <ul><li>) ----------------------------*/
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card-grid > li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0 24px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card-grid > li:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--orange); }

/* image placeholder — every service card reserves this space for a real photo */
.card-grid > li > img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.card-grid > li > p,
.card-grid > li > a { margin-left: 22px; margin-right: 22px; }
.card-grid > li > p:first-of-type { font-weight: 700; color: var(--heading); font-size: 1.05rem; margin-top: 0; margin-bottom: 8px; }
.card-grid > li > p:last-of-type { font-size: 0.92rem; margin-bottom: 18px; color: var(--body); }
.card-grid > li > a { display: inline-block; font-weight: 700; color: var(--orange); font-size: 0.9rem; }
.card-grid > li > a:hover { color: var(--orange-hover); }

/* service category blocks -----------------------------------------------------*/
.service-category { margin-bottom: 56px; }
.service-category:last-child { margin-bottom: 0; }
.service-category > h2 { border-left: 4px solid var(--orange); padding-left: 14px; margin-bottom: 22px; }

/* Steps ("how it works") ---------------------------------------------------------*/
.step-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-row > li { border-top: 3px solid var(--orange); padding-top: 16px; }
.step-row > li > p.step-num {
  font-weight: 800;
  color: var(--orange);
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.step-row > li > h3 { margin-bottom: 6px; }
@media (max-width: 900px) { .step-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .step-row { grid-template-columns: 1fr; } }

/* Value grid (why hireco / about us) -----------------------------------------------*/
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-grid > li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.value-grid > li > h3 { color: var(--orange); }
@media (max-width: 900px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .value-grid { grid-template-columns: 1fr; } }

/* Find-a-worker: filter form -------------------------------------------------------*/
form.filter-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 44px;
}
form.filter-form .field { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 900px) { form.filter-form { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { form.filter-form { grid-template-columns: 1fr; } }

.field label { font-weight: 700; font-size: 0.85rem; color: var(--heading); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.94rem;
  background: var(--surface-2);
  color: var(--heading);
}
.field input::placeholder, .field textarea::placeholder { color: #7A7A7A; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
fieldset.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 6px 0 4px; }
fieldset.checkbox-group label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.9rem; color: var(--body); }

form.stacked-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 620px;
}

/* Worker cards ----------------------------------------------------------------------*/
ul.worker-list > li {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
ul.worker-list > li:hover { box-shadow: var(--shadow); border-color: var(--orange); }
ul.worker-list > li > img { width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; }
ul.worker-list .worker-info { flex: 1; }
ul.worker-list .worker-info h3 { margin-bottom: 3px; }
ul.worker-list .worker-info p { margin: 0 0 4px; font-size: 0.88rem; }
p.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.85rem; }
p.status.available { color: var(--available); }
p.status.unavailable { color: var(--unavailable); }
p.status::before { content: "●"; font-size: 0.7rem; }
ul.worker-list .worker-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

/* Worker profile ----------------------------------------------------------------------*/
.profile-header {
  display: flex;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.profile-header img { width: 110px; height: 110px; border-radius: 50%; }
.profile-header .btn-row { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.profile-meta { display: flex; gap: 20px; flex-wrap: wrap; margin: 10px 0 0; }
.profile-meta p { margin: 0; font-size: 0.92rem; }
.skill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-list > li {
  background: var(--surface-2);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* CTA band — no orange fill here; dark band with orange used only for the accent -----*/
.cta-band { background: var(--black); padding: 52px 0; border-top: 1px solid var(--border); }
.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin: 0; }
.cta-band p { color: var(--body); margin: 0; }
.cta-band .btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Confirmation note ------------------------------------------------------------------*/
p.form-note {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.9rem;
}
p.form-note.is-visible { display: block; }

/* Login -----------------------------------------------------------------------------*/
main.auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 74px - 300px);
  padding: 70px 20px;
  background: var(--bg);
}
main.auth > section { width: 100%; max-width: 420px; }
main.auth h1 { font-size: 1.8rem; text-align: center; }
main.auth > section > p.lede { text-align: center; margin: 0 auto 26px; }
p.auth-foot { text-align: center; margin-top: 18px; font-size: 0.9rem; color: var(--body); }
p.auth-foot a { color: var(--orange); font-weight: 700; }

/* Dashboard ----------------------------------------------------------------------------*/
main.dashboard { display: flex; align-items: flex-start; min-height: calc(100vh - 74px); background: var(--bg); }
nav.dashboard-nav {
  width: 240px;
  flex-shrink: 0;
  background: var(--black);
  min-height: calc(100vh - 74px);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}
nav.dashboard-nav p.nav-label {
  color: #6B6B6B;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0 26px;
  margin: 0 0 10px;
}
nav.dashboard-nav button {
  background: none;
  border: none;
  color: #C9C9C9;
  text-align: left;
  padding: 12px 26px;
  font-size: 0.94rem;
  font-weight: 500;
  border-left: 3px solid transparent;
}
nav.dashboard-nav button:hover { background: var(--surface); color: var(--white); }
nav.dashboard-nav button[aria-current="true"] {
  background: var(--surface);
  color: var(--white);
  border-left-color: var(--orange);
  font-weight: 700;
}
section.dashboard-content { flex: 1; padding: 40px; }
section.dashboard-content > article { display: none; }
section.dashboard-content > article[aria-current="true"] { display: block; }

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.dash-summary {
  display: flex;
  gap: 20px;
  align-items: center;
}
.dash-summary img { width: 76px; height: 76px; border-radius: 50%; }
.availability-toggle { display: flex; align-items: center; gap: 14px; }
.availability-toggle button {
  background: var(--border);
  border: none;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  position: relative;
}
.availability-toggle button::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  transition: left 0.15s ease;
}
.availability-toggle button[aria-pressed="true"] { background: var(--orange); }
.availability-toggle button[aria-pressed="true"]::after { left: 27px; }

ul.request-list > li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
ul.request-list > li:last-child { border-bottom: none; }
ul.request-list p { margin: 0; color: var(--heading); }
ul.request-list .request-meta { font-size: 0.85rem; color: var(--body); }

@media (max-width: 800px) {
  main.dashboard { flex-direction: column; }
  nav.dashboard-nav { width: 100%; min-height: auto; flex-direction: row; overflow-x: auto; padding: 12px; border-right: none; border-bottom: 1px solid var(--border); }
  nav.dashboard-nav p.nav-label { display: none; }
  nav.dashboard-nav button { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  nav.dashboard-nav button[aria-current="true"] { border-left-color: transparent; border-bottom-color: var(--orange); }
  section.dashboard-content { padding: 24px; }
}

/* Footer -----------------------------------------------------------------------------*/
footer { background: var(--black); color: var(--body); padding-top: 52px; border-top: 1px solid var(--border); }
footer .footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
footer .logo { color: var(--white); }
footer article.footer-brand p { color: var(--body); max-width: 30ch; margin-top: 12px; }
footer nav h3, footer section h3 { color: var(--white); font-size: 0.88rem; margin-bottom: 16px; }
footer nav a { display: block; margin-bottom: 10px; font-size: 0.92rem; color: var(--body); }
footer nav a:hover { color: var(--orange); }
footer section a { display: block; margin-bottom: 10px; font-size: 0.92rem; color: var(--body); }
footer section a:hover { color: var(--orange); }
footer section p { margin: 0 0 10px; font-size: 0.92rem; }
p.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px 0;
  font-size: 0.82rem;
  color: var(--unavailable);
  margin: 0;
}
@media (max-width: 700px) { footer .footer-grid { grid-template-columns: 1fr; gap: 26px; } }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
@media (max-width: 900px) {
  .card-grid,
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .card-grid,
  .card-grid.cols-2 { grid-template-columns: 1fr; }
}
.profile-header { flex-direction: column; text-align: center; gap: 14px; }
.profile-header .btn-row,
.profile-meta { justify-content: center; }
.profile-body,
.profile-request { max-width: 720px; margin: 40px auto 0; text-align: center; }
.profile-body .skill-list { justify-content: center; }
.profile-body .dash-card { margin-top: 28px; text-align: center; }
.profile-request .lede { margin-left: auto; margin-right: auto; }
.profile-request form.stacked-form { margin-left: auto; margin-right: auto; text-align: left; }