/* =============================================
   KJ Advice ApS – Stylesheet
   ============================================= */

:root {
  --brand-dark: #14181F;
  --brand-light: #F5F2EC;
  --text-primary: #14181F;
  --text-secondary: #6B6E73;
  --text-tertiary: #9B9CA0;
  --border: rgba(20, 24, 31, 0.1);
  --border-mid: rgba(20, 24, 31, 0.2);
  --bg: #ffffff;
  --bg-secondary: #F9F8F6;
  --radius-md: 8px;
  --radius-lg: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #F5F2EC;
    --text-secondary: #9B9CA0;
    --text-tertiary: #6B6E73;
    --border: rgba(245,242,236,0.1);
    --border-mid: rgba(245,242,236,0.2);
    --bg: #0F1218;
    --bg-secondary: #1A1D23;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
}

/* ═══════════════════════════════
   LANDING PAGE
═══════════════════════════════ */
.landing {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s ease;
}
.landing.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.landing-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.6);
}
.landing-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,24,31,0.3) 0%, rgba(20,24,31,0.55) 100%);
}
.landing-content {
  position: relative;
  text-align: center;
  color: #F5F2EC;
  z-index: 2;
}
.landing-logo {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.landing-tagline {
  font-size: clamp(11px, 2vw, 14px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2.5rem;
}
.landing-enter {
  display: inline-block;
  padding: 0.7rem 2.5rem;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 0.5px solid rgba(245,242,236,0.6);
  border-radius: var(--radius-md);
  background: transparent;
  color: #F5F2EC;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.landing-enter:hover {
  background: rgba(245,242,236,0.1);
  border-color: #F5F2EC;
}
.landing-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(245,242,236,0.5);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 2;
}

/* Fallback: no video → dark gradient background */
.landing-video-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #14181F 0%, #2a2f38 50%, #14181F 100%);
}

/* Flash fix: hide site before JS runs when landing is active */
html.landing-active .site { visibility: hidden; }
/* Site is always visible — landing overlay sits on top of it */
.site { opacity: 1; }

/* ═══════════════════════════════
   NAVIGATION
═══════════════════════════════ */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.logo-kj { font-size: 20px; font-weight: 500; letter-spacing: 0.06em; color: var(--text-primary); }
.logo-advice { font-size: 9px; letter-spacing: 0.2em; color: var(--text-tertiary); margin-top: 4px; text-transform: uppercase; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text-primary); }

/* ═══════════════════════════════
   HERO (homepage)
═══════════════════════════════ */
.hero {
  width: 100%;
  padding: 6rem 2.5rem 5rem;
  background: var(--bg-secondary);
  border-bottom: 0.5px solid var(--border);
}
.hero-inner { max-width: 720px; }
.hero-eyebrow { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 1.25rem; }
.hero-title { font-size: clamp(28px, 5vw, 42px); font-weight: 500; line-height: 1.18; margin-bottom: 1.5rem; }
.hero-desc { font-size: 17px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 2.25rem; max-width: 600px; }
.hero-cta {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 13px;
  font-weight: 500;
  background: var(--brand-dark);
  color: var(--brand-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: opacity 0.2s;
}
.hero-cta:hover { opacity: 0.82; }
@media (prefers-color-scheme: dark) {
  .hero-cta { background: var(--brand-light); color: var(--brand-dark); }
}

/* ═══════════════════════════════
   PAGE HERO (inner pages)
═══════════════════════════════ */
.page-hero {
  width: 100%;
  padding: 4.5rem 2.5rem 3.5rem;
  background: var(--bg-secondary);
  border-bottom: 0.5px solid var(--border);
}
.page-hero-inner { max-width: 720px; }
.breadcrumb { font-size: 13px; color: var(--text-tertiary); text-decoration: none; display: inline-block; margin-bottom: 1.25rem; transition: color 0.2s; }
.breadcrumb:hover { color: var(--text-primary); }
.page-hero-title { font-size: clamp(24px, 4vw, 36px); font-weight: 500; line-height: 1.2; }

/* ═══════════════════════════════
   SHARED LAYOUT
═══════════════════════════════ */
.divider { border: none; border-top: 0.5px solid var(--border); margin: 0 2.5rem; }
.section { padding: 4rem 2.5rem; }
.section-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 2rem; }

/* ═══════════════════════════════
   SERVICES GRID (homepage)
═══════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 2rem;
  transition: background 0.2s;
}
.service-card--link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.service-card--link:hover { background: var(--bg-secondary); }
.service-icon { color: var(--text-tertiary); margin-bottom: 1rem; }
.service-title { font-size: 15px; font-weight: 500; margin-bottom: 0.5rem; }
.service-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; flex: 1; }
.service-more { font-size: 12px; color: var(--text-tertiary); margin-top: 1.25rem; transition: color 0.2s; }
.service-card--link:hover .service-more { color: var(--text-primary); }

/* ═══════════════════════════════
   ABOUT TEASER (homepage)
═══════════════════════════════ */
.about-teaser-inner { max-width: 620px; }
.about-teaser-title { font-size: clamp(20px, 3vw, 26px); font-weight: 500; line-height: 1.3; margin-bottom: 1rem; }
.about-teaser-text { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }
.about-teaser-link { font-size: 13px; color: var(--text-secondary); text-decoration: none; border-bottom: 0.5px solid var(--border-mid); padding-bottom: 1px; transition: color 0.2s; }
.about-teaser-link:hover { color: var(--text-primary); }

/* ═══════════════════════════════
   CONTACT BAND
═══════════════════════════════ */
.contact-band {
  background: var(--brand-dark);
  color: var(--brand-light);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
@media (prefers-color-scheme: dark) {
  .contact-band { background: var(--bg-secondary); border: 0.5px solid var(--border); }
  .contact-band h2 { color: var(--text-primary); }
  .contact-band p { color: var(--text-secondary); }
  .contact-details a { color: var(--text-primary); }
}
.contact-band h2 { font-size: 20px; font-weight: 500; margin-bottom: 0.4rem; color: var(--brand-light); }
.contact-band p { font-size: 14px; opacity: 0.6; }
.contact-details { display: flex; flex-direction: column; gap: 0.5rem; text-align: right; flex-shrink: 0; }
.contact-details a { font-size: 13px; color: var(--brand-light); text-decoration: none; opacity: 0.75; transition: opacity 0.2s; }
.contact-details a:hover { opacity: 1; }

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
.footer {
  padding: 1.5rem 2.5rem;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left { font-size: 11px; color: var(--text-tertiary); line-height: 1.8; }
.footer-right { font-size: 11px; color: var(--text-tertiary); }

/* ═══════════════════════════════
   INNER PAGE CONTENT
═══════════════════════════════ */
.content-section { max-width: 760px; display: flex; flex-direction: column; gap: 3rem; }
.content-block { display: flex; flex-direction: column; gap: 1rem; }
.content-heading { font-size: 18px; font-weight: 500; margin-bottom: 0.25rem; }
.content-block p { font-size: 15px; color: var(--text-secondary); line-height: 1.85; }

/* Process timeline – Executive Search */
.process-timeline { display: flex; flex-direction: column; gap: 0; margin-top: 1.5rem; border: 0.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.process-step { display: flex; gap: 1.25rem; padding: 1.5rem; background: var(--bg); border-bottom: 0.5px solid var(--border); }
.process-step:last-child { border-bottom: none; }
.process-step:hover { background: var(--bg-secondary); }
.process-number { width: 32px; height: 32px; border-radius: 50%; border: 0.5px solid var(--border-mid); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: var(--text-secondary); flex-shrink: 0; }
.process-body { flex: 1; }
.process-phase { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.process-week { font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.04em; margin-bottom: 0.6rem; }
.process-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.process-list li { font-size: 13px; color: var(--text-secondary); padding-left: 0.75rem; border-left: 1.5px solid var(--border-mid); line-height: 1.5; }
.process-note { font-size: 12px; color: var(--text-tertiary); margin-top: 0.75rem; font-style: italic; }

/* Assessment use cases */
.use-cases { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 0.75rem; }
.use-case { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border: 0.5px solid var(--border); border-radius: var(--radius-md); background: var(--bg); }
.use-case:hover { background: var(--bg-secondary); }
.use-case-icon { color: var(--text-tertiary); flex-shrink: 0; margin-top: 2px; }
.use-case-title { font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.use-case-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }

/* Career coaching steps */
.coaching-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 0.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-top: 1.25rem; }
.coaching-step { background: var(--bg); padding: 1.5rem; display: flex; gap: 1rem; }
.coaching-step:hover { background: var(--bg-secondary); }
.coaching-step-num { font-size: 24px; font-weight: 300; color: var(--text-tertiary); line-height: 1; flex-shrink: 0; min-width: 32px; }
.coaching-step-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.coaching-step-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ═══════════════════════════════
   ABOUT PAGE
═══════════════════════════════ */
.about-page { }
.about-page-grid { display: grid; grid-template-columns: 280px 1fr; gap: 4rem; align-items: start; }
.about-photo-col { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 6rem; }
.about-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  filter: grayscale(100%) contrast(1.05);
  border: 0.5px solid var(--border);
}
.about-contact-block { display: flex; flex-direction: column; gap: 0.5rem; }
.about-contact-block a { font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.about-contact-block a:hover { color: var(--text-primary); }
.about-text-col { display: flex; flex-direction: column; gap: 3rem; }
.about-bio { display: flex; flex-direction: column; gap: 1rem; }
.about-bio p { font-size: 15px; color: var(--text-secondary); line-height: 1.85; }
.about-career-timeline, .about-edu { }
.career { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1rem; }
.career-item { display: flex; gap: 1.25rem; align-items: baseline; }
.career-year { font-size: 11px; color: var(--text-tertiary); min-width: 90px; flex-shrink: 0; padding-top: 2px; }
.career-role { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.career-role strong { font-weight: 500; color: var(--text-primary); display: block; font-size: 13px; }
.career-note { font-size: 12px; color: var(--text-tertiary); }

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-page-grid { grid-template-columns: 1fr; }
  .about-photo-col { position: static; flex-direction: row; align-items: flex-start; }
  .about-photo { width: 160px; flex-shrink: 0; }
  .coaching-steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 0.5px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero, .page-hero { padding: 3rem 1.5rem 2.5rem; }
  .divider { margin: 0 1.5rem; }
  .section { padding: 3rem 1.5rem; }

  .contact-band { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .contact-details { text-align: left; }
  .footer { flex-direction: column; gap: 0.75rem; align-items: flex-start; }

  .about-photo-col { flex-direction: column; }
  .about-photo { width: 100%; max-width: 240px; }
}

/* ═══════════════════════════════
   CONTACT FORM
═══════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-heading {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.contact-subtext {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-direct a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-direct a:hover { color: var(--text-primary); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-tertiary); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--brand-dark); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { appearance: none; cursor: pointer; }

.form-submit {
  align-self: flex-start;
  padding: 0.75rem 1.75rem;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  background: var(--brand-dark);
  color: var(--brand-light);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity 0.2s;
}
.form-submit:hover { opacity: 0.82; }
@media (prefers-color-scheme: dark) {
  .form-submit { background: var(--brand-light); color: var(--brand-dark); }
}
.form-note {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: -0.25rem;
}
.form-success {
  display: none;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 1rem;
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
}
.form-success.visible { display: block; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}
