/* GoCoreTalent — one bundled stylesheet (R-X61). Colours only via tokens.css (R-P03). */

/* Self-hosted variable font (weights 400-800 in one file, Latin subset, ~25KB) — no
   external font request, keeps the R-X61 1MB budget intact. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-variable.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--gct-font-family-base);
  font-size: var(--gct-font-size-base);
  color: var(--gct-color-text);
  background-color: var(--gct-color-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.01em;
}

/* Scroll-reveal (vanilla-JS IntersectionObserver toggles .is-visible, site.js). */
.gct-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--gct-transition-base), transform var(--gct-transition-base);
}

.gct-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .gct-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: var(--gct-space-3);
  background: var(--gct-color-primary-dark);
  color: var(--gct-color-text-on-primary);
  padding: var(--gct-space-2) var(--gct-space-3);
  border-radius: var(--gct-radius-sm);
  z-index: 1000;
}

.skip-link:focus {
  top: var(--gct-space-2);
}

.gct-tap-target {
  min-height: var(--gct-min-tap-target);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: var(--gct-space-3);
  padding-right: var(--gct-space-3);
}

/* Header */
.gct-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 20;
  transition: box-shadow var(--gct-transition-base), border-color var(--gct-transition-base);
}

.gct-header.is-scrolled {
  border-bottom-color: var(--gct-color-border);
  box-shadow: var(--gct-shadow-sm);
}

.gct-navbar-inner {
  padding-top: var(--gct-space-2);
  padding-bottom: var(--gct-space-2);
}

/* Logo — sized up per feedback that the original 32px mark read too small.
   Kept modest on mobile (a 96px-tall mark would crowd the compact mobile
   header and toggler) and scaled up from 768px, where there's room. */
.gct-brand img {
  display: block;
  height: 48px;
  width: auto;
}

@media (min-width: 768px) {
  .gct-navbar-inner {
    padding-top: var(--gct-space-3);
    padding-bottom: var(--gct-space-3);
  }

  .gct-brand img {
    height: 96px;
  }
}

.nav-link.gct-tap-target {
  color: var(--gct-color-text);
  font-weight: 600;
  position: relative;
}

.nav-link.gct-tap-target:hover {
  color: var(--gct-color-accent-dark);
}

.nav-link.gct-tap-target.active {
  color: var(--gct-color-primary);
}

.nav-link.gct-tap-target.active::after {
  content: "";
  position: absolute;
  left: var(--gct-space-3);
  right: var(--gct-space-3);
  bottom: 2px;
  height: 2px;
  border-radius: var(--gct-radius-pill);
  background: var(--gct-color-accent);
}

/* Buttons — bold weight + lift-on-hover everywhere (incl. Admin); the bigger uppercase
   marketing treatment (template-matched) is scoped to :not(.btn-sm) so Admin's compact
   utility buttons (Edit/Filter/Resolve...) keep their normal Bootstrap sizing. */
.gct-btn-accent,
.gct-btn-outline {
  position: relative;
  overflow: hidden;
  font-weight: 800;
  border-radius: var(--gct-radius-sm);
  transition: transform var(--gct-transition-base), color var(--gct-transition-fast),
    box-shadow var(--gct-transition-base);
}

.gct-btn-accent:not(.btn-sm),
.gct-btn-outline:not(.btn-sm) {
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.gct-btn-accent {
  background-color: var(--gct-color-accent);
  border-color: var(--gct-color-accent);
  color: var(--gct-color-text-on-accent);
}

.gct-btn-accent:hover,
.gct-btn-accent:focus {
  background-color: var(--gct-color-accent);
  border-color: var(--gct-color-accent);
  color: var(--gct-color-text-on-accent);
  transform: translateY(-4px);
  box-shadow: var(--gct-shadow-accent);
}

.gct-btn-outline {
  background-color: transparent;
  border: 2px solid var(--gct-color-primary);
  color: var(--gct-color-primary);
}

.gct-btn-outline:hover,
.gct-btn-outline:focus {
  background-color: var(--gct-color-primary-dark);
  border-color: var(--gct-color-primary-dark);
  color: var(--gct-color-text-on-primary);
  transform: translateY(-4px);
  box-shadow: var(--gct-shadow-glow);
}

/* Trailing arrow (e.g. hero/CTA buttons via _ArrowIcon.cshtml) — swoosh from -45deg to 0 on hover. */
.gct-btn-accent svg.gct-btn-arrow,
.gct-btn-outline svg.gct-btn-arrow {
  width: 16px;
  height: 16px;
  margin-left: var(--gct-space-1);
  transform: rotate(-45deg);
  transition: transform var(--gct-transition-fast);
}

.gct-btn-accent:hover svg.gct-btn-arrow,
.gct-btn-outline:hover svg.gct-btn-arrow {
  transform: rotate(0deg);
}

/* Leading icon (e.g. briefcase/person via _BriefcaseIcon.cshtml/_PersonIcon.cshtml) — no rotation. */
.gct-btn-accent svg:not(.gct-btn-arrow),
.gct-btn-outline svg:not(.gct-btn-arrow) {
  width: 16px;
  height: 16px;
  margin-right: var(--gct-space-1);
  vertical-align: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .gct-btn-accent:hover, .gct-btn-accent:focus,
  .gct-btn-outline:hover, .gct-btn-outline:focus {
    transform: none;
  }
}

/* Eyebrow — small brand-mark icon + all-caps label, used above every hero/section title. */
.gct-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--gct-space-2);
  color: var(--gct-color-accent-dark);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--gct-space-3);
}

.gct-eyebrow svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Hero */
.gct-hero {
  background: var(--gct-gradient-hero);
  padding-block: var(--gct-space-7) var(--gct-space-5);
  position: relative;
  overflow: hidden;
}

.gct-hero-inner {
  position: relative;
  z-index: 1;
}

.gct-hero-copy {
  max-width: 640px;
}

.gct-hero-headline {
  font-size: clamp(2.25rem, 4.5vw + 1rem, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--gct-color-primary);
  margin-bottom: var(--gct-space-3);
}

.gct-hero-sub {
  font-size: 1.15rem;
  color: var(--gct-color-text-muted);
  margin-bottom: var(--gct-space-4);
  max-width: 56ch;
}

.gct-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gct-space-3);
}

/* Hero visual panel — abstract brand graphic, not stock photography. */
.gct-hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  margin-inline: auto;
  border-radius: var(--gct-radius-lg);
  background: var(--gct-gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--gct-shadow-lg);
}

.gct-hero-visual::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--gct-color-accent) 55%, transparent), transparent 60%);
}

.gct-hero-visual img {
  position: relative;
  width: 42%;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}

.gct-hero-visual-card {
  position: absolute;
  bottom: var(--gct-space-4);
  left: var(--gct-space-4);
  right: var(--gct-space-4);
  background: var(--gct-color-surface);
  border-radius: var(--gct-radius-md);
  padding: var(--gct-space-3);
  box-shadow: var(--gct-shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--gct-space-2);
}

.gct-hero-visual-card-text {
  color: var(--gct-color-text-muted);
  font-size: 0.85rem;
}

.gct-hero-visual-card-text strong {
  display: block;
  color: var(--gct-color-primary);
  font-size: 1.4rem;
  line-height: 1.1;
}

/* Stats/highlight strip — honest, non-fabricated highlights (D-062), template's counter-row pattern. */
.gct-stats-strip {
  background: var(--gct-color-surface);
  border: 1px solid var(--gct-color-border);
  border-radius: var(--gct-radius-lg);
  box-shadow: var(--gct-shadow-md);
  padding: var(--gct-space-4);
  margin-top: var(--gct-space-5);
  position: relative;
  z-index: 1;
}

.gct-stat {
  text-align: center;
  padding-block: var(--gct-space-2);
}

.gct-stat-value {
  display: block;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
  font-weight: 800;
  color: var(--gct-color-primary);
  line-height: 1;
  margin-bottom: var(--gct-space-1);
}

.gct-stat-label {
  color: var(--gct-color-text-muted);
  font-size: 0.9rem;
}

/* Alternating image/text section (template's "about" pattern) */
.gct-alt-visual {
  position: relative;
  border-radius: var(--gct-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gct-color-bg-muted);
}

.gct-alt-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.gct-section {
  padding-block: var(--gct-space-6);
}

.gct-section-muted {
  background-color: var(--gct-color-bg-muted);
}

.gct-section-title {
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.25rem);
  font-weight: 800;
  color: var(--gct-color-primary);
  margin-bottom: var(--gct-space-4);
  line-height: 1.15;
}

.gct-section-title-row {
  max-width: 640px;
}

.gct-tagline {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gct-color-primary);
  margin-bottom: var(--gct-space-3);
}

/* Cards */
.gct-card {
  background: var(--gct-color-surface);
  border: 1px solid var(--gct-color-border);
  border-radius: var(--gct-radius-md);
  padding: var(--gct-space-4);
  box-shadow: var(--gct-shadow-sm);
  transition: transform var(--gct-transition-base), box-shadow var(--gct-transition-base),
    border-color var(--gct-transition-base);
}

a.gct-card:hover,
a.gct-card:focus-within,
.gct-card--interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--gct-shadow-lg);
  border-color: color-mix(in srgb, var(--gct-color-accent) 40%, var(--gct-color-border));
}

@media (prefers-reduced-motion: reduce) {
  a.gct-card:hover, a.gct-card:focus-within, .gct-card--interactive:hover {
    transform: none;
  }
}

.gct-card-title {
  font-weight: 700;
  color: var(--gct-color-primary);
  margin-bottom: var(--gct-space-2);
  font-size: 1.1rem;
}

.gct-card-title a {
  color: inherit;
  text-decoration: none;
}

.gct-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.gct-card-body {
  color: var(--gct-color-text-muted);
  margin-bottom: 0;
}

/* Icon chip — circular accent-tinted badge for feature/service cards */
.gct-icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--gct-radius-md);
  background: var(--gct-color-accent-light);
  color: var(--gct-color-accent-dark);
  margin-bottom: var(--gct-space-3);
}

.gct-icon-chip svg {
  width: 24px;
  height: 24px;
}

/* Badges/pills — status tags on job & blog cards */
.gct-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--gct-space-1);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem var(--gct-space-2);
  border-radius: var(--gct-radius-pill);
  background: var(--gct-color-bg-muted);
  color: var(--gct-color-text-muted);
}

.gct-badge-accent {
  background: var(--gct-color-accent-light);
  color: var(--gct-color-accent-dark);
}

.gct-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gct-space-2);
  margin-bottom: var(--gct-space-2);
}

/* Audience panels (Contact page) — clear visual split between the two forms. */
.gct-audience-panel {
  background: var(--gct-color-surface);
  border: 1px solid var(--gct-color-border);
  border-top: 4px solid transparent;
  border-radius: var(--gct-radius-md);
  padding: var(--gct-space-4);
  transition: transform var(--gct-transition-base), box-shadow var(--gct-transition-base),
    border-color var(--gct-transition-base);
}

.gct-audience-panel-company {
  border-top-color: var(--gct-color-primary);
}

.gct-audience-panel-candidate {
  border-top-color: var(--gct-color-accent);
}

/* Testimonials */
.gct-testimonial-quote-mark {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gct-color-accent);
  font-family: Georgia, "Times New Roman", serif;
  display: block;
  margin-bottom: var(--gct-space-1);
}

/* Prose (privacy page) */
.gct-prose {
  max-width: 760px;
}

.gct-prose h2 {
  margin-top: var(--gct-space-4);
}

/* Footer */
.gct-footer {
  background: var(--gct-gradient-dark);
  color: var(--gct-color-text-on-primary-muted);
  padding-block: var(--gct-space-6) var(--gct-space-4);
}

.gct-footer a {
  color: var(--gct-color-text-on-primary);
  text-decoration: none;
}

.gct-footer a:hover {
  color: var(--gct-color-accent);
  text-decoration: underline;
}

.gct-footer-brand img {
  height: 30px;
  width: auto;
  margin-bottom: var(--gct-space-3);
}

.gct-footer-tagline {
  max-width: 32ch;
  margin-bottom: 0;
}

.gct-footer-heading {
  color: var(--gct-color-text-on-primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--gct-space-3);
}

.gct-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--gct-space-2);
}

.gct-footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
  margin-block: var(--gct-space-5) var(--gct-space-3);
}

.gct-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--gct-space-2);
  font-size: 0.9rem;
}

/* Forms (shared by candidate/company forms, R-P10/R-P20) */
.gct-form .form-label {
  font-weight: 600;
  color: var(--gct-color-text);
}

.gct-form .form-control,
.gct-form .form-select {
  border-color: var(--gct-color-border);
  border-radius: var(--gct-radius-sm);
  transition: border-color var(--gct-transition-fast), box-shadow var(--gct-transition-fast);
}

.gct-form .form-control:focus,
.gct-form .form-select:focus {
  border-color: var(--gct-color-accent);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--gct-color-accent) 25%, transparent);
}

.gct-form .invalid-feedback {
  color: var(--gct-color-danger);
}

.gct-form .form-control.is-invalid,
.gct-form .form-check-input.is-invalid {
  border-color: var(--gct-color-danger);
}

.gct-honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gct-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gct-space-1);
  min-width: var(--gct-min-tap-target);
  min-height: var(--gct-min-tap-target);
}

.gct-footer-links .gct-social-link {
  justify-content: flex-start;
  min-width: 0;
  padding: 0;
}

.gct-alert-success {
  background-color: color-mix(in srgb, var(--gct-color-success) 15%, var(--gct-color-surface));
  border: 1px solid var(--gct-color-success);
  color: var(--gct-color-text);
  border-radius: var(--gct-radius-sm);
  padding: var(--gct-space-3);
}

/* ── Light "icy blue" theme (D-072) — effects that can't be a single custom
   property value (background-image layering). Colour values themselves come
   entirely from the .gct-dark-theme token overrides in tokens.css (see that
   file for why the class name is a historical misnomer); this block is
   effects only. Superseded D-070/D-071's dark-theme effects (glass blur,
   gradient-clip-text headings, dark-mode form-control overrides) — none of
   those apply on a light background, so they're removed rather than kept
   as dead weight. ── */

body.gct-dark-theme {
  background-image:
    radial-gradient(1200px 480px at 85% -10%, color-mix(in srgb, var(--gct-color-accent) 10%, transparent), transparent),
    linear-gradient(160deg, #EFFAFC 0%, #DFFBFC 45%, #98C0D9 100%);
  background-attachment: fixed;
}

/* Bootstrap's own .text-muted/<hr> carry hardcoded light-grey defaults, not
   this app's tokens — pin them to the theme's own muted colour explicitly. */
.gct-dark-theme .text-muted {
  color: var(--gct-color-text-muted) !important;
}

.gct-dark-theme hr {
  border-color: var(--gct-color-border);
  opacity: 1;
}
