/* ============================================
   HumanVantage AI — Wix-Matched Design System
   Fonts: Cormorant Garamond (headings) + Sora (body)
   ============================================ */

/* --- Self-hosted Fonts (works on file:// and deployed) --- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/cormorant-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/cormorant-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/sora.woff2') format('woff2');
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Sora', 'Helvetica Neue', Arial, sans-serif;
  --text-dark: #333333;
  --text-body: #777777;
  --text-light: #ffffff;
  --bg-page: #ffffff;
  --bg-section: #f9f9f9;
  --bg-dark: #333333;
  --border: #e0e0e0;
  --container: 1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-body);
  background: var(--bg-page);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.1;
}

h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.05em;
}

h3 {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 600;
  font-style: italic;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-body);
  margin-bottom: 20px;
}

/* --- Header / Nav --- */
.site-header {
  background: var(--bg-section);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-wrapper {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  height: 70px;
  gap: 32px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.logo span {
  font-weight: 400;
}

.nav-cta-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.025em;
  color: var(--text-light);
  background: var(--text-dark);
  padding: 12px 24px;
  border-radius: 8px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.nav-cta-btn:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

.nav-links li a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-dark);
  transition: opacity 0.2s;
}
.nav-links li a:hover { opacity: 0.6; }
.nav-links li a.active { font-weight: 400; }

.nav-links li a.nav-cta {
  font-weight: 400;
}

/* Mobile nav */
#nav-check { display: none; }
.nav-toggle { display: none; }
.nav-overlay { display: none; }

/* --- Hero (Homepage) --- */
.hero {
  padding: 80px 0 100px;
  background: var(--bg-page);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text .hero-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-body);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--text-dark);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-text h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--text-body);
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-body);
  margin-top: 32px;
  padding-left: 20px;
  border-left: 3px solid var(--border);
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding-left: 20px;
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  padding: 16px 32px;
  border-radius: 8px;
  transition: opacity 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { opacity: 0.85; }

.btn-dark {
  background: var(--text-dark);
  color: var(--text-light);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  font-weight: 300;
}
.btn-outline:hover { opacity: 0.6; }

.btn-white {
  background: var(--bg-page);
  color: var(--text-dark);
  font-size: 18px;
  padding: 20px 40px;
}

.btn-arrow::after {
  content: ' \2192';
  margin-left: 8px;
}

/* --- Quote Section --- */
.quote-section {
  padding: 100px 0;
  text-align: center;
  background: var(--bg-page);
}

.quote-section .quote-text {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto 40px;
}

.quote-section .quote-body {
  font-size: 20px;
  font-weight: 300;
  line-height: 2;
  color: var(--text-body);
  max-width: 800px;
  margin: 0 auto;
}
.quote-section .quote-body strong {
  font-weight: 500;
  color: var(--text-dark);
}

/* --- Methodology Section --- */
.methodology-section {
  padding: 80px 0;
  background: var(--bg-page);
}

.methodology-grid {
  display: grid;
  grid-template-columns: 35% 65%;
}

.methodology-left {
  position: sticky;
  top: 100px;
  align-self: start;
  padding-right: 60px;
}

.methodology-left h2 {
  margin-top: 16px;
  margin-bottom: 24px;
}

.methodology-left p {
  font-size: 18px;
  line-height: 1.75;
}

.methodology-right {
  border-left: 1px solid var(--border);
}

.methodology-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  padding: 60px 0 60px 60px;
  border-top: 1px solid var(--border);
}
.methodology-card:first-child {
  border-top: none;
}

.methodology-card-content .card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--text-body);
}
.methodology-card-content .card-icon svg {
  width: 48px;
  height: 48px;
}

.methodology-card-content h3 {
  margin-bottom: 20px;
  color: var(--text-dark);
}

.methodology-card-content p {
  font-size: 18px;
  line-height: 1.625;
  margin-bottom: 24px;
}

.methodology-card-content ul {
  list-style: disc;
  padding-left: 20px;
}
.methodology-card-content ul li {
  font-size: 16px;
  line-height: 2.2;
  color: var(--text-body);
}

.methodology-number {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.methodology-number.dark {
  background: var(--text-dark);
}
.methodology-number.gray {
  background: #999999;
}
.methodology-number span {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-light);
}

/* --- Who It's For Section --- */
.who-section {
  padding: 0;
  background: var(--bg-page);
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.who-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 40px;
}

.who-text h2 {
  margin-top: 16px;
  margin-bottom: 32px;
}

.who-text p {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.who-text hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-top: 32px;
  width: 60%;
}

.who-image {
  overflow: hidden;
}
.who-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--bg-dark);
  padding: 120px 40px;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.cta-banner p {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-white {
  font-size: 16px;
  padding: 18px 36px;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-page);
  padding: 80px 0 0;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 340px;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}
.footer-links li a {
  font-size: 15px;
  color: var(--text-body);
  transition: color 0.2s;
}
.footer-links li a:hover { color: var(--text-dark); }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--text-body);
}

/* --- Inner Pages: Hero Banner --- */
.hero-page {
  padding: 80px 0 60px;
  background: var(--bg-section);
}
.hero-page h1 {
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 16px;
}
.hero-page .subtitle {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.75;
  max-width: 700px;
}

/* --- Article Pages --- */
.article-header {
  max-width: 720px;
}
.article-header .back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 24px;
  transition: color 0.2s;
}
.article-header .back-link:hover { color: var(--text-dark); }

.article-header .article-meta {
  font-size: 14px;
  color: var(--text-body);
  margin-top: 16px;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 0;
}
.article-body p {
  font-size: 18px;
  line-height: 1.85;
  margin-bottom: 24px;
}

/* --- Insights Grid --- */
.section {
  padding: 80px 0;
}
.section-warm {
  background: var(--bg-section);
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.insight-card {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-page);
  transition: box-shadow 0.2s;
}
.insight-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.insight-card h3 {
  font-size: 22px;
  font-style: normal;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}
.insight-card h3 a { color: var(--text-dark); }
.insight-card h3 a:hover { opacity: 0.7; }
.insight-card p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.insight-card .read-more {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
}
.insight-card .read-more:hover { opacity: 0.6; }

/* --- Solution Page --- */
.solution-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: start;
  padding: 20px 0;
}
.solution-block.reversed {
  direction: ltr;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--text-dark);
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.solution-text h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-style: normal;
  margin-bottom: 20px;
}

.solution-text p {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.solution-visual {
  display: flex;
  align-items: flex-start;
  padding-top: 20px;
}
.visual-icon {
  opacity: 0.3;
}

.section-heading {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}
.section-heading h2 {
  font-style: normal;
  margin-bottom: 16px;
}
.section-heading p {
  font-size: 18px;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feature-card {
  padding: 40px;
  background: var(--bg-page);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.feature-card .icon {
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 22px;
  font-style: normal;
  font-weight: 600;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 15px;
  line-height: 1.7;
}

/* --- Book a Demo / Form --- */
.form-wrapper {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-page);
  color: var(--text-dark);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-dark);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  font-size: 16px;
  padding: 16px;
  cursor: pointer;
}

.form-note {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
}
.form-note a {
  color: var(--text-dark);
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .methodology-grid {
    grid-template-columns: 1fr;
  }
  .methodology-left {
    position: static;
    padding-right: 0;
    margin-bottom: 40px;
  }
  .methodology-right {
    border-left: none;
  }
  .methodology-card {
    padding-left: 0;
  }
  .methodology-number {
    width: 120px;
    height: 120px;
  }
  .methodology-number span {
    font-size: 48px;
  }
  .who-grid {
    grid-template-columns: 1fr;
  }
  .who-image {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav-wrapper { padding: 0 24px; }

  .nav-cta-btn { display: none; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: auto;
    padding: 8px;
    z-index: 200;
  }
  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: 0.3s;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 90;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--bg-page);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 24px;
    z-index: 150;
    transition: right 0.3s;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  }

  #nav-check:checked ~ .nav-links { right: 0; }
  #nav-check:checked ~ .nav-overlay { display: block; }
  #nav-check:checked ~ .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  #nav-check:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  #nav-check:checked ~ .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero { padding: 60px 0 80px; }

  .insights-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }

  .methodology-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .methodology-number {
    width: 100px;
    height: 100px;
  }
  .methodology-number span { font-size: 40px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .solution-block {
    grid-template-columns: 1fr;
  }
  .solution-visual { display: none; }

  .cta-banner { padding: 80px 24px; }
}

@media (max-width: 480px) {
  h1 { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
}
