/* =========================================================
   QuestAsap – stylesheet
   Fonts: Space Grotesk (display) + Inter (body)
   ========================================================= */

:root {
  --ink:      #15161A;
  --muted:    #5B5C63;
  --paper:    #F6F6F4;
  --white:    #FFFFFF;
  --line:     #E8E8E3;
  --card:     #F2F2EF;
  --red:      #E5231B;
  --red-dark: #C01409;
  --dark:     #141417;

  --radius:   14px;
  --radius-lg:20px;
  --maxw:     1180px;

  --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body:    "Inter", "Segoe UI", Arial, sans-serif;
}

/* ---- reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---- header ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.logo__mark {
  display: block;
  width: 32px;
  height: 32px;
}

.logo__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.site-nav { display: flex; gap: 26px; }

.site-nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--muted);
  transition: color .15s ease;
}

.site-nav a:hover { color: var(--ink); }

.header-right { display: flex; align-items: center; gap: 22px; }

.btn--nav {
  background: var(--red);
  color: var(--white);
  padding: 9px 16px;
  font-size: 14px;
}
.btn--nav:hover { background: var(--red-dark); }
.btn--nav__short { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- hero ---- */
.hero { padding-block: 70px 60px; }

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.04;
  margin-bottom: 22px;
}

.hero__inner { text-align: left; }

.hero__lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px 0;
  text-align: left;
}

/* ---- request form card ---- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 18px 50px rgba(20, 20, 23, .07);
}

.form-card__head { margin-bottom: 20px; }

.form-card__head h2 {
  font-size: 25px;
  font-weight: 600;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(229, 35, 27, .5);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(229, 35, 27, .45); }
  70%  { box-shadow: 0 0 0 8px rgba(229, 35, 27, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 35, 27, 0); }
}

.request-form label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin: 15px 0 6px;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 20, 23, .08);
}

.request-form textarea { height: 116px; resize: vertical; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, transform .05s ease;
}

.btn--post {
  width: 100%;
  margin-top: 22px;
  padding: 16px;
  font-size: 17px;
  background: var(--red);
  color: var(--white);
}

.btn--post:hover { background: var(--red-dark); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  margin-top: 26px;
  padding: 14px 26px;
  font-size: 16px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .35);
}

.btn--ghost:hover { background: rgba(255, 255, 255, .08); }

/* ---- content blocks ---- */
.block { padding-block: 72px; background: var(--white); }
.block--alt { background: var(--paper); }

.block__title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  margin-bottom: 36px;
}

/* how it works */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.step p  { color: var(--muted); }

/* categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color .15s ease, transform .15s ease;
}

.cat:hover { border-color: #d8d8d2; transform: translateY(-2px); }
.cat h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.cat p  { color: var(--muted); }

/* pros band */
.pros {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding-block: 76px;
}

.pros__inner { max-width: 660px; }

.pros h2 { font-size: clamp(30px, 4vw, 38px); font-weight: 600; margin-bottom: 14px; }
.pros p  { color: #c5c5cb; font-size: 18px; }

/* footer */
.site-footer {
  background: #0E0E10;
  color: #9a9aa1;
  text-align: center;
  padding-block: 28px;
  font-size: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-brand__mark { display: block; width: 24px; height: 24px; }
.footer-brand__word { display: block; height: 26px; width: auto; }

.logo-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-link__mark { display: block; width: 28px; height: 28px; }

.footer-logo-lockup { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.footer-logo-lockup__mark { display: block; width: 24px; height: 24px; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-block: 48px 44px; }
  .steps, .cat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .header-right { gap: 10px; }
  .site-header__inner { padding-block: 12px; }

  .logo__mark { width: 28px; height: 28px; }
  .logo__word { font-size: 20px; }

  .btn--nav { padding: 9px 14px; font-size: 14px; }
  .btn--nav__full { display: none; }
  .btn--nav__short { display: inline; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 24px; font-size: 16px; }
  .site-nav a:hover { background: var(--paper); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .live__dot { animation: none; }
}

/* ---- request form extras ---- */
.label-note { font-weight: 400; color: var(--muted); font-size: 12px; }
.request-form .label-note { display: block; margin-top: 5px; }

.field-error { display: block; color: var(--red); font-size: 12px; margin-top: 5px; }

.form-alert {
  background: #FCEBEA; border: 1px solid #F3B9B5; color: var(--red-dark);
  padding: 11px 13px; border-radius: var(--radius); font-size: 14px; margin-bottom: 14px;
}
.form-notice {
  background: #EAF6EE; border: 1px solid #BFE3CC; color: #1E6B3A;
  padding: 11px 13px; border-radius: var(--radius); font-size: 14px; margin-bottom: 14px;
}

.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; margin: 12px 0 0 !important; }
.check input { width: auto !important; margin-top: 2px; }

/* photo preview */
.photo-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.photo-preview:empty { margin-top: 0; }
.thumb { position: relative; width: 72px; height: 72px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.thumb__x {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px;
  border: none; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 15px; line-height: 22px; cursor: pointer; padding: 0;
}

/* ---- narrow pages (verify / request) ---- */
.narrow { padding-block: 56px; background: var(--paper); min-height: 60vh; }
.panel {
  max-width: 540px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--line); border-radius: 16px; padding: 34px;
}
.panel h1 { font-size: 26px; margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.status-row { display: flex; align-items: center; gap: 14px; margin: 18px 0 22px; flex-wrap: wrap; }
.status-pill {
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.status-pill--waiting { background: #FFF3E6; color: #9A5A12; }

.req-detail { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; margin: 0 0 20px; }
.req-detail dt { font-weight: 600; font-size: 13px; color: var(--muted); }
.req-detail dd { margin: 0; }

.req-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.req-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* ---- verify ---- */
.code-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.code-input {
  width: 100%; font-family: var(--font-display); font-size: 30px; letter-spacing: 12px;
  text-align: center; padding: 16px 10px; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink);
}
.code-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,20,23,.08); }

.verify-actions { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.linkbtn { background: none; border: none; color: var(--red); font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; }
.linkbtn:hover { text-decoration: underline; }
.edit-email summary { font-size: 14px; color: var(--muted); cursor: pointer; }
.edit-email__form { display: flex; gap: 8px; margin-top: 10px; }
.edit-email__form input { flex: 1; font-family: var(--font-body); font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---- landing hero (left CTA) ---- */
.btn--cta {
  justify-self: start;
  margin-top: 8px;
  padding: 16px 34px;
  font-size: 17px;
  background: var(--red);
  color: var(--white);
}
.btn--cta:hover { background: var(--red-dark); }

/* ---- dedicated request form page ---- */
.form-page { padding-block: 56px; background: var(--paper); }
.form-page__head { max-width: 560px; margin: 0 auto 22px; text-align: center; }
.form-page__head h1 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 10px; }
.form-page__head .live { margin-top: 14px; }
.form-card--page { max-width: 560px; margin: 0 auto; }

/* ---- member registration: services multi-select ---- */
.service-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.service-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.service-group legend { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.service-list { display: flex; flex-direction: column; gap: 8px; }
.service-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; margin: 0; cursor: pointer; }
.service-check input { width: auto; margin: 0; }
.form-foot { margin-top: 16px; text-align: center; }
.form-foot a { color: var(--red); }

/* ---- extra status pills ---- */
.status-pill--ok  { background: #EAF6EE; color: #1E6B3A; }
.status-pill--off { background: #F3E9E8; color: #9A3328; }

/* ---- admin ---- */
.admin { padding-block: 48px; background: var(--paper); min-height: 70vh; }
.admin__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.admin__head h1 { font-size: 28px; }

.member-cards { display: grid; gap: 16px; }
.member-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.member-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.member-card__top h3 { font-size: 18px; }
.member-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.inline-form { margin: 0; }

.btn-sm {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); cursor: pointer;
}
.btn-sm--ok  { background: #1E6B3A; border-color: #1E6B3A; color: #fff; }
.btn-sm--off { background: var(--white); border-color: #D8B5B0; color: #9A3328; }

@media (max-width: 620px) {
  .service-groups { grid-template-columns: 1fr; }
}

/* ---- public board ---- */
.board { padding-block: 48px; background: var(--paper); min-height: 70vh; }
.board__head { margin-bottom: 20px; }
.board__head h1 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 8px; }
.board__head a { color: var(--red); }

.board-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.board-filters select {
  font-family: var(--font-body); font-size: 15px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink);
  min-width: 180px;
}

.board-count { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.board-empty { padding: 30px 0; }

.board-results.is-loading { opacity: .5; transition: opacity .1s ease; }

.board-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.board-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; display: flex; flex-direction: column;
}
.board-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.board-cat { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.board-timing {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--paper); color: var(--muted); white-space: nowrap;
}
.board-timing--asap { background: #FCEBEA; color: var(--red-dark); }
.board-timing--today { background: #FFF3E6; color: #9A5A12; }

.board-card__text { font-size: 15px; line-height: 1.5; margin-bottom: 14px; flex: 1; }
.board-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.board-area { font-weight: 600; color: var(--ink); }
.board-card__cta { align-self: flex-start; text-decoration: none; }

@media (max-width: 680px) {
  .board-list { grid-template-columns: 1fr; }
  .board-filters select { min-width: 0; flex: 1; }
}
