/* ==========================================================================
   Help The Poor Initiative — Contact page
   Page-specific only. Tokens, header, footer, page banner, form controls,
   accordion and the CTA band all come from css/style.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Quick contact cards — lifted to overlap the banner
   -------------------------------------------------------------------------- */
.quick {
  position: relative;
  z-index: 3;
  margin-top: -46px;
  padding-bottom: 8px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.quick-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}

.quick-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent, var(--green)) 38%, var(--line));
  box-shadow: var(--shadow-md);
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent, var(--green)) 12%, #fff);
  color: var(--accent, var(--green));
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}

.quick-card:hover .quick-icon { transform: scale(1.09) rotate(-6deg); }

.quick-card h2 {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.quick-value {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

/* A long address will not fit one line in a quarter-width card. Size it down
   and let it break only where the markup allows (<wbr> after the @), so it
   never splits mid-word. */
.quick-value--email {
  font-size: .9375rem;
  overflow-wrap: break-word;
}

.quick-value a { color: inherit; }
.quick-value a:hover { color: var(--accent, var(--green)); }

.quick-note {
  margin-top: 7px;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   2. Form + sidebar
   -------------------------------------------------------------------------- */
.reach { padding: 68px 0 84px; }

.reach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 1fr;
  gap: 44px;
  align-items: start;
}

.form-card {
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-intro { margin-bottom: 26px; }

.form-intro h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--ink);
}

.form-intro p {
  margin-top: 10px;
  line-height: 1.72;
  color: var(--muted);
}

.textarea {
  min-height: 156px;
  resize: vertical;
  line-height: 1.65;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-required {
  font-size: .8125rem;
  color: var(--muted);
}

.form-status {
  min-height: 22px;
  margin-top: 14px;
  font-size: .9375rem;
  font-weight: 500;
}

.form-status.is-ok    { color: var(--green); }
.form-status.is-error { color: var(--red); }

/* --------------------------------------------------------------------------
   3. Sidebar
   -------------------------------------------------------------------------- */
.side { display: grid; gap: 20px; }

.side-card {
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.side-card h3 {
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

/* "What happens next" steps */
.next-steps { display: grid; gap: 16px; }

.next-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.next-step b {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 800;
}

.next-step p {
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--muted);
}

.next-step strong { color: var(--ink); font-weight: 700; }

/* Urgent card */
.side-card--urgent {
  background: linear-gradient(155deg, var(--green) 0%, var(--green-deep) 90%);
  border-color: transparent;
  color: rgba(255, 255, 255, .82);
}

.side-card--urgent h3 { color: var(--orange-warm); }

.side-card--urgent p { line-height: 1.72; }

.urgent-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .10);
}

.urgent-line svg { flex: none; color: var(--orange-warm); }

.urgent-line a {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  color: #fff;
}

.urgent-line a:hover { color: var(--orange-warm); }

/* Social row in the sidebar */
.side-socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.side-socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  transition: background-color var(--speed) var(--ease),
              color var(--speed) var(--ease),
              transform .45s cubic-bezier(.34, 1.56, .64, 1);
}

.side-socials a:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   4. Offices
   -------------------------------------------------------------------------- */
.offices {
  padding: 78px 0;
  background: var(--surface-alt);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.office {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}

.office:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.office-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--font-display);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.office--hq .office-tag { background: var(--orange); color: #fff; }

.office h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink);
}

.office-lines {
  margin-top: 14px;
  display: grid;
  gap: 11px;
  flex: 1;
}

.office-lines li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.office-lines svg { flex: none; margin-top: 3px; color: var(--green); }
.office-lines a { color: var(--muted); }
.office-lines a:hover { color: var(--green); }

.office .link-more { margin-top: 20px; align-self: flex-start; }

/* --------------------------------------------------------------------------
   5. FAQ
   -------------------------------------------------------------------------- */
.contact-faq { padding: 84px 0; }

.contact-faq-wrap { max-width: 800px; margin-inline: auto; }

.contact-faq-head { text-align: center; margin-bottom: 34px; }

/* --------------------------------------------------------------------------
   6. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .reach-grid { grid-template-columns: 1fr; gap: 30px; }
  .office-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .quick { margin-top: -30px; }
  .reach { padding: 52px 0 64px; }
  .offices, .contact-faq { padding: 58px 0; }
  .office-grid { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; }
}

@media (max-width: 560px) {
  .quick-grid { grid-template-columns: 1fr; }
}
