/*
Theme Name: GTP Marketplace
Theme URI: https://globaltalentplus.co.ke/gtp-portal/
Author: Global Talent Plus
Description: Responsive theme for the standalone Global Talent Plus job marketplace.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: gtp-marketplace
*/

:root {
  --gtp-ink: #172323;
  --gtp-green: #103c37;
  --gtp-accent: #17745f;
  --gtp-mint: #e8f4ee;
  --gtp-line: #e1e9e5;
  --gtp-muted: #64746f;
  --gtp-page-width: 1240px;
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gtp-ink);
  background: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--gtp-accent);
}

button,
input,
select,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #e8ab57;
  outline-offset: 3px;
}

.gtp-header {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 max(1.25rem, calc((100vw - var(--gtp-page-width)) / 2));
  background: #fff;
  border-bottom: 1px solid #edf1ef;
}

.gtp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gtp-ink);
  text-decoration: none;
}

.gtp-brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--gtp-green);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.gtp-brand__text {
  display: grid;
  line-height: 1.1;
}

.gtp-brand__text strong {
  color: #173c34;
  font-size: 0.97rem;
  letter-spacing: -0.025em;
}

.gtp-brand__text small {
  margin-top: 0.25rem;
  color: #73817c;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gtp-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.8rem);
}

.gtp-nav a {
  color: #3d504a;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.gtp-nav a:hover {
  color: var(--gtp-accent);
}

.gtp-nav .gtp-nav__cta {
  padding: 0.65rem 0.95rem;
  color: #fff;
  background: var(--gtp-accent);
  border-radius: 7px;
}

.gtp-nav-mobile {
  display: none;
}

.gtp-main {
  width: min(var(--gtp-page-width), calc(100% - 2.5rem));
  min-height: 60vh;
  margin: 0 auto;
}

.home .gtp-main {
  width: min(1440px, 100%);
}

.gtp-page-heading {
  margin: 2.5rem 0 1rem;
}

.gtp-page-heading h1 {
  margin: 0;
  color: var(--gtp-green);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.gtp-content {
  padding: 1rem 0 3rem;
}

.gtp-content > :first-child {
  margin-top: 0;
}

.gtp-footer {
  margin-top: 3rem;
  color: #d7e4df;
  background: #0e302c;
}

.gtp-footer__inner {
  display: grid;
  width: min(var(--gtp-page-width), calc(100% - 2.5rem));
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.gtp-footer h2,
.gtp-footer h3 {
  margin: 0 0 0.8rem;
  color: #fff;
}

.gtp-footer p {
  max-width: 420px;
  margin: 0;
  color: #b7cbc4;
  font-size: 0.9rem;
}

.gtp-footer__links {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.gtp-footer a {
  color: #cce4d8;
  font-size: 0.9rem;
  text-decoration: none;
}

.gtp-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.gtp-footer__bottom {
  width: min(var(--gtp-page-width), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1rem 0;
  color: #9db5ac;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.82rem;
}

.gtp-404 {
  padding: 4rem 1rem;
  text-align: center;
}

.gtp-404 h1 {
  color: var(--gtp-green);
  font-size: 3rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}

@media (max-width: 780px) {
  .gtp-header {
    min-height: 68px;
    padding: 0 1rem;
  }

  .gtp-nav-desktop {
    display: none;
  }

  .gtp-nav-mobile {
    position: relative;
    display: block;
  }

  .gtp-nav-mobile summary {
    padding: 0.55rem 0.75rem;
    color: #174a3e;
    border: 1px solid #d7e3dd;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 750;
    list-style: none;
  }

  .gtp-nav-mobile summary::-webkit-details-marker {
    display: none;
  }

  .gtp-nav-mobile__links {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    display: grid;
    min-width: 220px;
    gap: 0.15rem;
    padding: 0.55rem;
    background: #fff;
    border: 1px solid #dce7e1;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(19, 51, 42, 0.15);
  }

  .gtp-nav-mobile__links a {
    padding: 0.65rem 0.75rem;
    color: #244139;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
  }

  .gtp-nav-mobile__links a:hover {
    background: #eef6f1;
  }

  .gtp-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .gtp-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .gtp-main,
  .gtp-footer__inner,
  .gtp-footer__bottom {
    width: calc(100% - 1.5rem);
  }

  .gtp-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2rem;
  }

  .gtp-footer__brand {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
