/* ==========================================================================
   Fractional Hiring Partner - styles.css
   ========================================================================== */

:root {
  /* Brand colors */
  --color-navy: #14283D;
  --color-navy-visible: #1B3F73;
  --color-steel: #54758B;
  --color-seaglass: #A9C9C3;
  --color-sand: #E8DDCA;
  --color-white: #FFFFFF;
  --color-text: #17212B;
  --color-bg-soft: #F7F5F1;
  --color-border: #D8DEE2;

  /* Type */
  --font-base: 'Inter', Arial, sans-serif;
  --fs-body: 1.0625rem; /* 17px desktop */
  --fs-body-mobile: 1rem; /* 16px mobile */
  --fs-eyebrow: 0.8125rem;
  --fs-h1: clamp(2rem, 4.5vw, 3.25rem);
  --fs-h2: clamp(1.6rem, 3.2vw, 2.375rem);
  --fs-h3: 1.15rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  /* Shape */
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-subtle: 0 1px 3px rgba(20, 40, 61, 0.08);
  --max-width: 1160px;

  --mobile-cta-height: 72px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: var(--fs-body-mobile);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  padding-bottom: calc(var(--mobile-cta-height) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body { font-size: var(--fs-body); padding-bottom: 0; }
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-base);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 0.5rem; }

p { margin: 0 0 var(--space-sm); max-width: 65ch; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--color-steel); }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ---- Focus styles ---- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-steel);
  outline-offset: 2px;
}

/* ---- Layout helpers ---- */
.section {
  padding: var(--space-xl) var(--space-sm);
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-alt { background: var(--color-bg-soft); }
.section-dark {
  background: var(--color-navy);
  color: var(--color-white);
}
.section-dark p { color: rgba(255, 255, 255, 0.88); }
.section-dark h1, .section-dark h2 { color: var(--color-white); }

.section-tan {
  background: var(--color-white);
  color: var(--color-navy-visible);
}
.section-tan p { color: var(--color-navy-visible); }
.section-tan h1, .section-tan h2 { color: var(--color-navy-visible); }
.section-tan .eyebrow-light { color: var(--color-steel); }

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-steel);
  margin: 0 0 0.75rem;
}
.eyebrow-light { color: var(--color-seaglass); }

.section-intro {
  font-size: 1.05em;
  max-width: 62ch;
}

#faq > .section-inner > .eyebrow,
#faq > .section-inner > h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  line-height: 1.2;
}
.btn-primary {
  background: var(--color-seaglass);
  color: var(--color-navy);
  border-color: var(--color-seaglass);
}
.btn-primary:hover { background: var(--color-steel); border-color: var(--color-steel); color: var(--color-white); }

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-seaglass);
}
.btn-secondary:hover { background: var(--color-seaglass); color: var(--color-navy); }

.section-dark .btn-secondary {
  color: var(--color-white);
  border-color: var(--color-seaglass);
}
.section-dark .btn-secondary:hover {
  background: var(--color-seaglass);
  color: var(--color-navy);
}

.btn-block { width: 100%; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin: var(--space-md) 0 var(--space-sm);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: var(--space-xl);
  text-align: center;
}
.hero .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}
@media (max-width: 540px) {
  .logo-row { flex-direction: column; gap: var(--space-sm); }
}
.logo-img {
  height: 68px;
  width: auto;
  display: block;
  background: var(--color-white);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
}
.hero h1 { margin-bottom: var(--space-sm); }
.hero-heading-compact { font-size: calc(var(--fs-h1) * 0.6); }

.intro-section { padding-bottom: 0; }
#submit-position { padding-top: 0; }

/* ==========================================================================
   ScoreApp assessment embed
   ========================================================================== */
.scoreapp-embed-wrap {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  max-width: 900px;
  width: 100%;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  margin-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question { margin: 0; }
.faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-navy);
  padding: 1.25rem 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
}
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--color-navy);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after {
  width: 2px;
  height: 14px;
  transition: transform 0.15s ease;
}
.faq-trigger[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-answer {
  padding: 0 0.25rem 1.25rem;
}
.faq-answer p {
  margin: 0;
  max-width: 68ch;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-lg) var(--space-sm);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
.footer-title { font-weight: 700; margin-bottom: 0.25rem; }
.footer-tagline { color: rgba(255,255,255,0.75); margin: 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.footer-links a {
  color: var(--color-seaglass);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.footer-links a:hover { text-decoration: underline; }
.footer-copyright {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin: 0;
}

/* ==========================================================================
   Mobile sticky CTA
   ========================================================================== */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 8px rgba(20, 40, 61, 0.08);
}
@media (min-width: 768px) {
  .mobile-sticky-cta { display: none; }
}

/* ==========================================================================
   Job review page (job-review.html), additive only, does not alter
   any rule used by index.html.
   ========================================================================== */
.section-centered .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-centered h2,
.section-centered > .section-inner > .reassurance,
.section-centered > .section-inner > .reviewer-line {
  text-align: center;
}

/* ---- Video ---- */
.video-card {
  background: var(--color-seaglass);
  border-radius: var(--radius);
  padding: 0.6rem;
  max-width: 600px;
  width: 100%;
  margin: 0 auto var(--space-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.video-wrap {
  width: 100%;
}
.review-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  background: #0B1826;
  object-fit: cover;
}

/* ---- Form embed ---- */
.form-embed-wrap {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin: 0 auto 0;
  max-width: 720px;
  width: 100%;
  min-height: 120px;
  box-shadow: var(--shadow-subtle);
}
.reassurance {
  font-size: 0.9em;
  color: var(--color-navy-visible);
  margin-top: var(--space-sm);
}
.section-dark .reassurance { color: var(--color-seaglass); }
.reviewer-line {
  margin-top: var(--space-md);
  font-weight: 600;
  color: var(--color-navy-visible);
}
