/* ============================================================
   Bo Ejlerskov – Personal Brand Website
   Corporate Light Theme · Strong Navy & Amber Accents
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --navy:        #0f2744;
  --navy-mid:    #1a3a5c;
  --navy-light:  #2a5298;
  --amber:       #f0a500;
  --amber-dark:  #c88400;
  --amber-pale:  #fff4d6;
  --white:       #ffffff;
  --off-white:   #f7f9fc;
  --gray-100:    #eef2f7;
  --gray-200:    #dde4ee;
  --gray-400:    #8898aa;
  --gray-600:    #4a5568;
  --gray-800:    #1a202c;
  --success:     #2e7d32;
  --error:       #c62828;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --shadow-sm:  0 1px 4px rgba(15,39,68,.08);
  --shadow-md:  0 4px 16px rgba(15,39,68,.12);
  --shadow-lg:  0 8px 32px rgba(15,39,68,.16);
  --shadow-xl:  0 16px 56px rgba(15,39,68,.20);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Utility Classes ──────────────────────────────────────── */
.container {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 64px);
}

.section { padding-block: clamp(64px, 8vw, 120px); }
.section--alt { background: var(--off-white); }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber-dark);
  background: var(--amber-pale);
  border: 1px solid rgba(240,165,0,.3);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--amber);
  color: var(--navy);
}
.btn--primary:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.nav.scrolled { box-shadow: var(--shadow-md); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.5px;
}

.nav__logo span { color: var(--amber); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav__link:hover { color: var(--navy); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__lang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
}

.lang-btn {
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--gray-400);
  font-weight: 500;
  transition: all var(--transition);
}

.lang-btn.active {
  background: var(--navy);
  color: var(--white);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  background: var(--navy);
  display: grid;
  align-items: start;
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}

/* Geometric background pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 75% 50%, rgba(42,82,152,.4) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(240,165,0,.08) 0%, transparent 50%);
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.6) 40%, rgba(0,0,0,.6) 70%, transparent);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero__title em {
  font-style: normal;
  color: var(--amber);
}

.hero__subtitle {
  font-size: clamp(16px, 1.8vw, 18px);
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hero__stat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.hero__stat-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(240,165,0,.4);
  transform: translateY(-4px);
}

.hero__stat-card:first-child {
  grid-column: 1 / -1;
  background: rgba(240,165,0,.1);
  border-color: rgba(240,165,0,.3);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  line-height: 1.4;
}

/* ── Roles Ticker ─────────────────────────────────────────── */
.roles-ticker {
  background: var(--amber);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}

.roles-ticker__track {
  display: flex;
  gap: 0;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
}

.roles-ticker__item {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .5px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.roles-ticker__item::after {
  content: '◆';
  font-size: 8px;
  opacity: .5;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── About / Foundation ───────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about__text p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__text p:last-of-type { margin-bottom: 0; }

.about__highlights {
  display: grid;
  gap: 16px;
}

.highlight-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.highlight-card:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.highlight-card__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.highlight-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.highlight-card__text {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ── Competencies Grid ────────────────────────────────────── */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.comp-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.comp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.comp-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}

.comp-card:hover::before { transform: scaleX(1); }

.comp-card__icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.comp-card__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.comp-card__text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 16px;
}

.comp-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 100px;
  letter-spacing: .3px;
}

/* ── Timeline ─────────────────────────────────────────────── */
.timeline {
  position: relative;
  margin-top: 56px;
  padding-bottom: 24px;
}

/* Central line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--amber) 0%, var(--navy-light) 50%, var(--amber) 100%);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 0;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item__content {
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}

.timeline-item__content:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--amber);
}

.timeline-item--left .timeline-item__content {
  grid-column: 1;
  margin-right: 24px;
  text-align: right;
}

.timeline-item--right .timeline-item__content {
  grid-column: 3;
  margin-left: 24px;
}

.timeline-item--left .timeline-item__content::after {
  content: '';
  position: absolute;
  right: -9px;
  top: 24px;
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 9px solid var(--white);
  filter: drop-shadow(1px 0 0 var(--gray-200));
}

.timeline-item--right .timeline-item__content::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 24px;
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 9px solid var(--white);
  filter: drop-shadow(-1px 0 0 var(--gray-200));
}

.timeline-item__dot {
  grid-column: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 24px;
  position: relative;
  z-index: 1;
}

.dot-inner {
  width: 20px;
  height: 20px;
  background: var(--amber);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--amber);
  flex-shrink: 0;
  transition: all var(--transition);
}

.timeline-item:hover .dot-inner {
  background: var(--navy);
  box-shadow: 0 0 0 3px var(--navy);
  transform: scale(1.3);
}

.timeline__period {
  font-size: 12px;
  font-weight: 700;
  color: var(--amber-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.timeline__role {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.timeline__org {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.timeline__desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ── Why Me Section ───────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.why-card {
  padding: 28px 24px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 80px; height: 80px;
  background: rgba(240,165,0,.08);
  border-radius: 50%;
  transition: all var(--transition);
}

.why-card:hover {
  background: var(--navy-mid);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.why-card:hover::after {
  transform: scale(2.5);
  background: rgba(240,165,0,.12);
}

.why-card__num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
  opacity: .85;
}

.why-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.why-card__text {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

/* ── Contact Form ─────────────────────────────────────────── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--amber-pale);
  border: 1px solid rgba(240,165,0,.3);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.contact-info__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-400);
  display: block;
  margin-bottom: 2px;
}

.contact-info__value {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}

/* Form */
.form { display: grid; gap: 16px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form__group { display: flex; flex-direction: column; gap: 6px; }

.form__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .3px;
}

.form__input,
.form__textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
  width: 100%;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(42,82,152,.12);
}

.form__textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form__input.error,
.form__textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(198,40,40,.1);
}

.form__submit {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 16px;
}

.form__status {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: none;
}

.form__status.success {
  display: block;
  background: #e8f5e9;
  color: var(--success);
  border: 1px solid #c8e6c9;
}

.form__status.error {
  display: block;
  background: #ffebee;
  color: var(--error);
  border: 1px solid #ffcdd2;
}

/* Honeypot */
.form__honey { display: none !important; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 40px 0;
  text-align: center;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.footer__name span { color: var(--amber); }

.footer__tagline {
  font-size: 13px;
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 13px;
  transition: color var(--transition);
}
.footer__link:hover { color: var(--amber); }

.footer__copy {
  font-size: 12px;
  opacity: .5;
}

/* ── Scroll animations ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* stagger siblings */
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }
.reveal:nth-child(5) { transition-delay: .4s; }
.reveal:nth-child(6) { transition-delay: .5s; }

/* ── Mobile menu ──────────────────────────────────────────── */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 20px 0;
}

.mobile-menu.open { display: flex; }

.mobile-menu .nav__link {
  padding: 12px 24px;
  font-size: 16px;
}

.mobile-menu .nav__lang {
  padding: 12px 24px;
  border-top: 1px solid var(--gray-200);
  margin-top: 8px;
  justify-content: flex-start;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; gap: 48px; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero__content { grid-template-columns: 1fr; gap: 48px; }
  .hero__stats { display: none; }

  /* Mobile timeline = stacked vertical */
  .timeline::before { left: 20px; }

  .timeline-item {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto;
    margin-bottom: 32px;
  }

  .timeline-item__dot {
    grid-column: 1;
    grid-row: 1;
    padding-top: 20px;
  }

  .timeline-item--left .timeline-item__content,
  .timeline-item--right .timeline-item__content {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    text-align: left;
  }

  .timeline-item--left .timeline-item__content::after,
  .timeline-item--right .timeline-item__content::before {
    display: none;
  }

  .why-grid { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; }
  .why-grid { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr; }
}

/* ── Print ────────────────────────────────────────────────── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .hero__content { grid-template-columns: 1fr; }
  .hero__content > div:last-child { order: -1; } /* photo above text on mobile */
}

@media print {
  .nav, .roles-ticker, .hero__stats, footer { display: none; }
  .hero { min-height: auto; background: white; color: black; padding-top: 0; }
  .hero__title, .section-title { color: black; }
}
