/*
 * GCS Solutions — © 2026 Himanshu Dadhich. All rights reserved.
 * Developed by Himanshu Dadhich. Proprietary & confidential — unauthorized
 * copying, distribution, or use of this file, in whole or in part, is prohibited.
 *
 * pages.css — layouts used by the inner pages: page hero, prose blocks,
 * alternating split sections, comparison table, accordion, job board,
 * article grid, contact cards and forms. Loaded after style.css.
 */

/* ==========================================================================
   1. PAGE HERO
   ========================================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 2rem + 3.4vw, 4.5rem);
  background: var(--navy-900);
  color: var(--on-navy-body);
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -45%;
  right: -12%;
  width: 55%;
  height: 170%;
  background: radial-gradient(circle, rgba(61, 116, 255, 0.22), transparent 64%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 {
  max-width: 22ch;
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem);
  color: var(--white);
}
.page-hero p {
  max-width: 46ch;
  font-size: 1.0625rem;
  color: var(--on-navy-body);
}
.page-hero .eyebrow { color: var(--blue-500); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  color: var(--on-navy-muted);
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, 0.3); }
.breadcrumb a { color: var(--on-navy-muted); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--white); }

/* ==========================================================================
   2. PROSE
   ========================================================================== */

.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; font-family: var(--font-body); font-weight: 600; font-size: 1.125rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.55rem; }
.prose li::marker { color: var(--blue-600); }

/* Bulleted lists with a check glyph, used inside split sections. */
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li {
  position: relative;
  margin-bottom: 0.7rem;
  padding-left: 1.75rem;
  font-size: var(--fs-sm);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 15px;
  height: 15px;
  background: var(--blue-050);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px var(--blue-100);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 0.62em;
  width: 6px;
  height: 3px;
  border-left: 1.8px solid var(--blue-600);
  border-bottom: 1.8px solid var(--blue-600);
  transform: rotate(-45deg);
}

/* ==========================================================================
   3. SPLIT SECTIONS (alternating text / panel)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1.75rem, 1rem + 3.4vw, 3.5rem);
}
.split + .split { margin-top: clamp(3rem, 2.2rem + 3vw, 4.75rem); }
.split--flip > *:first-child { order: 2; }

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-panel);
}

.split__panel {
  padding: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  background: var(--surface);
  border-radius: var(--radius-panel);
}
.split__panel h4 { margin-bottom: 1rem; }

.split__index {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue-600);
}

/* Anchored sections need clearance under the sticky header. */
.split[id], section[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* ==========================================================================
   4. GENERIC CARD GRIDS
   ========================================================================== */

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }

.mini-stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  background: var(--surface);
  border-radius: var(--radius-panel);
  text-align: center;
}
.mini-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--navy-900);
}
.mini-stat__label { display: block; margin-top: 0.45rem; font-size: var(--fs-sm); }

/* ==========================================================================
   5. COMPARISON TABLE
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.compare-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.compare-table th,
.compare-table td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th {
  background: var(--surface);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink-900);
  white-space: nowrap;
}
.compare-table tbody th {
  font-weight: 600;
  color: var(--ink-900);
  white-space: nowrap;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }

/* Two-column key/value tables sit inside a panel that already has a border,
   and they carry no wide header row — so they fit the column instead of
   scrolling. The multi-column comparison table keeps the 40rem floor. */
.table-wrap--flush { border: 0; }
.compare-table--fit { min-width: 0; }

/* ==========================================================================
   6. ACCORDION
   ========================================================================== */

.accordion { border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.accordion__item + .accordion__item { border-top: 1px solid var(--line); }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.05rem 1.25rem;
  background: var(--white);
  border: 0;
  text-align: left;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-900);
  transition: background-color var(--dur) var(--ease);
}
.accordion__trigger:hover { background: var(--surface-2); }
.accordion__trigger svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--blue-600);
  transition: transform var(--dur) var(--ease);
}
.accordion__trigger[aria-expanded="true"] svg { transform: rotate(45deg); }

.accordion__panel {
  padding: 0 1.25rem 1.25rem;
  font-size: var(--fs-sm);
}

/* ==========================================================================
   7. JOB BOARD
   ========================================================================== */

.job-filters {
  padding: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  background: var(--surface);
  border-radius: var(--radius-panel);
  margin-bottom: 2rem;
}
.job-filters__row + .job-filters__row { margin-top: 1.15rem; }
.job-filters__label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.42rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-700);
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--navy-900); color: var(--navy-900); }
.chip[aria-pressed="true"] {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.search-field { position: relative; }
.search-field svg {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: var(--ink-400);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}
.search-field input:focus { border-color: var(--blue-600); }

.job-count { margin-bottom: 1.25rem; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-900); }

.job-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }

.job-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.job-card:hover { border-color: var(--blue-100); box-shadow: var(--shadow-card); }
.job-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-bottom: 0.65rem;
}
.job-card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.job-card__tag {
  flex: none;
  padding: 0.22rem 0.6rem;
  background: var(--blue-050);
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--blue-600);
  white-space: nowrap;
}
.job-card__summary { font-size: var(--fs-sm); margin-bottom: 1rem; }
.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  color: var(--ink-400);
}
.job-card__meta li { margin: 0; display: flex; align-items: center; gap: 0.4rem; }
.job-card__meta li + li::before { content: "•"; color: var(--line-strong); }
.job-card .btn { margin-top: auto; }

.job-empty {
  grid-column: 1 / -1;
  padding: 2.5rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-card);
  text-align: center;
  font-size: var(--fs-sm);
}

/* ==========================================================================
   8. FORMS
   ========================================================================== */

.form-card {
  padding: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
}

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }

.field label {
  margin-bottom: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-900);
}
.field label .req { color: var(--blue-600); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--ink-900);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field select { appearance: none; background-image: none; cursor: pointer; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(22, 82, 240, 0.12);
}
.field [aria-invalid="true"] { border-color: #c62b3e; }

.field__error {
  min-height: 1.1rem;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: #c62b3e;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.form-note { margin-top: 0.9rem; font-size: var(--fs-xs); color: var(--ink-400); }
.form-status {
  margin-top: 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--blue-600);
}

/* ==========================================================================
   9. CONTACT CARDS
   ========================================================================== */

/* Cards drop out of this grid when their contact detail is unset, so it has to
   look deliberate at one, two, three or four items rather than assuming three. */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 20rem));
  justify-content: center;
  gap: 1.25rem;
}

.contact-card { align-items: flex-start; text-align: left; }
.contact-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.contact-card p { margin-bottom: 0.75rem; }
.contact-card a { font-size: var(--fs-sm); font-weight: 600; word-break: break-word; }

/* ==========================================================================
   10. ARTICLE GRID (Insights)
   ========================================================================== */

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }

.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.article-card:hover { border-color: var(--blue-100); box-shadow: var(--shadow-float); transform: translateY(-4px); }
.article-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem; }
.article-card__tag {
  align-self: flex-start;
  margin-bottom: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: var(--blue-050);
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--blue-600);
}
.article-card h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.article-card p { flex: 1; font-size: var(--fs-sm); margin-bottom: 1rem; }
.article-card__meta { font-size: var(--fs-xs); color: var(--ink-400); }

/* ==========================================================================
   11. VERTICAL TIMELINE (process recap, about story)
   ========================================================================== */

.timeline { position: relative; margin: 0; padding: 0 0 0 2.25rem; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  border-left: 2px dashed var(--line-strong);
}
.timeline li { position: relative; margin-bottom: 1.75rem; }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -2.25rem;
  top: 0.35em;
  width: 12px;
  height: 12px;
  margin-left: 6px;
  background: var(--white);
  border: 2px solid var(--blue-600);
  border-radius: var(--radius-pill);
}
.timeline h4 { margin-bottom: 0.3rem; }
.timeline p { font-size: var(--fs-sm); margin: 0; }

/* ==========================================================================
   12. NOTICE BOX
   ========================================================================== */

.notice {
  display: flex;
  gap: 0.85rem;
  padding: 1.15rem 1.35rem;
  background: var(--blue-050);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-card);
  font-size: var(--fs-sm);
}
.notice svg { flex: none; width: 19px; height: 19px; margin-top: 2px; color: var(--blue-600); }

/* ==========================================================================
   13. 404
   ========================================================================== */

.error-page { text-align: center; padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.error-page__code {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 3rem + 8vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--blue-050);
}
.error-page h1 { margin-top: -0.35em; }
.error-page p { max-width: 34rem; margin-inline: auto; margin-bottom: 2rem; }
.error-page .btn-row { justify-content: center; }

/* ==========================================================================
   14. UTILITIES

   A deliberately tiny set — one class per spacing/alignment tweak that would
   otherwise be an inline style attribute. The Content-Security-Policy in
   .htaccess sets style-src 'self' with no 'unsafe-inline', so a style="..."
   attribute is dropped by the browser and the layout silently loses it.
   ========================================================================== */

.u-center { text-align: center; }
.u-narrow { max-width: 52rem; margin-inline: auto; }
.u-mt { margin-top: 1.15rem; }
.u-mb-sm { margin-bottom: 1.5rem; }
.u-mb { margin-bottom: 2rem; }
.u-mb-lg { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }

/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* minmax(0, ...) is load-bearing: a bare 1fr track has an auto minimum, so
     a wide child (a table) stretches the column past the viewport instead of
     scrolling inside its own wrapper. */
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--flip > *:first-child { order: 0; }
  .mini-stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .mini-stat-band { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { width: 100%; }

  /* Key/value tables stop being tables on a phone — a 1.15rem label column
     next to a full sentence leaves the sentence about six characters wide.
     Each row becomes a stacked label-over-value block instead. */
  .compare-table--fit,
  .compare-table--fit tbody,
  .compare-table--fit tr,
  .compare-table--fit th,
  .compare-table--fit td { display: block; }
  .compare-table--fit tr { padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
  .compare-table--fit tr:last-child { padding-bottom: 0; border-bottom: 0; }
  .compare-table--fit tr:first-child { padding-top: 0; }
  .compare-table--fit th,
  .compare-table--fit td { padding: 0; border-bottom: 0; }
  .compare-table--fit tbody th { margin-bottom: 0.2rem; white-space: normal; }
}
