/* ---------------------------------------------
   APA™ Impact & Contact — design tokens
   Enqueued by page-impact-contact.php
   --------------------------------------------- */
:root {
  --apa-green: #1c5c3f;
  --apa-green-mid: #2a7350;
  --apa-gold: #c9a227;
  --apa-navy: #1c3a54;
  --apa-grey: #5b6b74;
  --apa-ink: #2b2f31;
  --apa-line: #d9dcdb;
  --apa-card-bg: #eef2f0;
  --apa-row-alt: #f5f6f5;
}

.ic-page * {
  box-sizing: border-box;
}

.ic-page {
  color: var(--apa-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
    margin:0 auto;
}

.ic-wrap {
  max-width: 76rem; /* ~1120px */
  margin: 0 auto;
  padding: 3rem 1rem;
}

/* ---------- Page header ---------- */
.ic-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--apa-green);
}

@media (min-width: 640px) {
  .ic-header {
    font-size: 1.875rem;
  }
}

.ic-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 0.375rem;
  background: var(--apa-gold);
  color: var(--apa-ink);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}

.ic-divider {
  margin-top: 0.75rem;
  height: 3px;
  width: 100%;
  background: var(--apa-gold);
}

.ic-divider--sub {
  margin-top: 0.5rem;
  height: 2px;
  width: 100%;
  background: var(--apa-gold);
}

/* ---------- Section headings ---------- */
.ic-section {
  margin-top: 3rem;
}

.ic-section:first-of-type {
  margin-top: 2.5rem;
}

.ic-h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--apa-green);
}

.ic-h3 {
  margin: 2rem 0 1rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--apa-green);
}

/* ---------- Vision cards ---------- */
.ic-cards {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .ic-cards {
    grid-template-columns: 1fr;
  }
}

.ic-card {
  background: var(--apa-card-bg);
  border-left: 4px solid var(--apa-green);
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #d9e2df;
  border-right: 1px solid #d9e2df;
  border-bottom: 1px solid #d9e2df;
  border-radius: 4px;
}

.ic-card--gold {
  border-left-color: var(--apa-gold);
}

.ic-card--navy {
  border-left-color: var(--apa-navy);
}

.ic-card-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--apa-green);
}

.ic-card-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--apa-ink);
}

/* ---------- Indicators line ---------- */
.ic-indicators {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--apa-ink);
}

.ic-indicators strong {
  font-weight: 700;
}

/* ---------- Two-column layout: Contact / Deck ---------- */
.ic-columns {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .ic-columns {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ---------- Contact table ---------- */
.ic-table-scroll {
  margin-top: 1.5rem;
  width: 100%;
  overflow-x: auto;
}

.ic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.ic-table thead th {
  background: var(--apa-green);
  color: #ffffff;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
}

.ic-table tbody th,
.ic-table tbody td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--apa-line);
  vertical-align: top;
  font-weight: 400;
}

.ic-table tbody th {
  font-weight: 700;
  color: var(--apa-ink);
  white-space: nowrap;
  width: 1%;
}

.ic-table tbody tr:nth-child(even) {
  background: var(--apa-row-alt);
}

.ic-table a {
  color: var(--apa-green);
  text-decoration: underline;
}

.ic-table a:hover {
  color: var(--apa-green-mid);
}

/* ---------- Offices ---------- */
.ic-offices {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .ic-offices {
    grid-template-columns: 1fr;
  }
}

.ic-office {
  border: 1px solid var(--apa-line);
  background: #ffffff;
  padding: 1rem 1.125rem;
  font-size: 0.875rem;
  border-radius: 4px;
}

.ic-office-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--apa-ink);
}

.ic-office-code {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--apa-grey);
  text-transform: uppercase;
}

.ic-hq-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.4rem;
  border-radius: 0.25rem;
  background: var(--apa-green);
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ic-office-address {
  margin: 0;
  color: var(--apa-grey);
  line-height: 1.55;
}

/* ---------- Form placeholder areas (WPForms renders the actual fields) ---------- */
.ic-form-slot {
  margin-top: 1rem;
}

.ic-deck-intro {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--apa-grey);
}

.ic-deck-box {
  margin-top: 1.5rem;
  border-left: 4px solid var(--apa-gold);
  background: var(--apa-card-bg);
  padding: 1.5rem;
  border-top: 1px solid #d9e2df;
  border-right: 1px solid #d9e2df;
  border-bottom: 1px solid #d9e2df;
  border-radius: 4px;
}

.ic-deck-box .ic-form-slot {
  margin-top: 0;
}

/* Fallback styling in case WPForms markup inherits generic input/button
   tags before its own theme CSS loads — keeps the placeholder tidy. */
.ic-form-slot input[type="text"],
.ic-form-slot input[type="email"],
.ic-form-slot textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--apa-line);
  border-radius: 0.25rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--apa-ink);
}

.ic-form-slot button,
.ic-form-slot input[type="submit"] {
  background: var(--apa-green);
  color: #ffffff;
  border: none;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  cursor: pointer;
  text-transform: capitalize;
  letter-spacing: 1px;
}

.ic-form-slot button:hover,
.ic-form-slot input[type="submit"]:hover {
  background: var(--apa-green-mid);
}

/* Visual placeholder shown only if no WPForms shortcode output is present yet,
   so the layout doesn't look broken during setup. */
.ic-form-placeholder {
  border: 1px dashed var(--apa-line);
  border-radius: 0.25rem;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--apa-grey);
  background: #ffffff;
}
