/* ==========================================================================
   Phuel × Fujitsu Leadership Development Proposal
   Shared stylesheet — Fujitsu brand palette & typography
   ========================================================================== */

:root {
  /* Fujitsu brand palette */
  --fjt-red: #e60012;
  --fjt-red-dark: #b3000e;
  --fjt-red-light: #ff3344;
  --fjt-black: #1a1a1a;
  --fjt-charcoal: #2b2b2b;
  --fjt-grey-dark: #4a4a4a;
  --fjt-grey: #767676;
  --fjt-grey-light: #d6d6d6;
  --fjt-grey-bg: #f5f5f5;
  --fjt-off-white: #fafafa;
  --fjt-white: #ffffff;

  /* Type scale */
  --font-display: "Helvetica Neue", "Arial Black", Arial, sans-serif;
  --font-body: "Helvetica Neue", Arial, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 72px;
  --shadow-soft: 0 4px 24px rgba(0,0,0,.08);
  --shadow-hard: 0 8px 32px rgba(0,0,0,.16);

  /* Easing */
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fjt-charcoal);
  background: var(--fjt-white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--fjt-red); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--fjt-red-dark); }

/* ----- Typography ----- */
h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--fjt-black);
  line-height: 1.1;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fjt-red);
  margin-bottom: 1rem;
}

.lead { font-size: 1.2rem; color: var(--fjt-grey-dark); max-width: 60ch; }

/* ----- Layout primitives ----- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

section { padding: clamp(3rem, 7vw, 6rem) 0; }

.bg-grey { background: var(--fjt-grey-bg); }
.bg-dark { background: var(--fjt-black); color: var(--fjt-grey-light); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--fjt-white); }
.bg-dark .lead { color: rgba(255,255,255,.78); }
.bg-red { background: var(--fjt-red); color: var(--fjt-white); }
.bg-red h1, .bg-red h2, .bg-red h3 { color: var(--fjt-white); }
.bg-red .eyebrow { color: rgba(255,255,255,.85); }

/* ----- Header / Nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--fjt-grey-light);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--fjt-black);
  font-size: 1rem;
  letter-spacing: -.01em;
}
.brand-lockup .x {
  color: var(--fjt-red);
  font-weight: 800;
  font-size: 1.1rem;
}
.brand-lockup .logo-phuel,
.brand-lockup .logo-fujitsu {
  height: 22px;
  width: auto;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--fjt-black);
}
.site-nav ul {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--fjt-charcoal);
  font-size: .94rem;
  font-weight: 600;
  padding: .4rem 0;
  position: relative;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--fjt-red);
}
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--fjt-red);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--fjt-white);
    border-bottom: 1px solid var(--fjt-grey-light);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: .5rem 1.5rem 1.5rem;
  }
  .site-nav a {
    display: block;
    padding: .9rem 0;
    border-bottom: 1px solid var(--fjt-grey-light);
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
  background: linear-gradient(180deg, #fff 0%, var(--fjt-grey-bg) 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%; top: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(230,0,18,.08), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 .accent {
  display: block;
  color: var(--fjt-red);
}
/* Hero title sits full-width above the split */
.hero-head { margin-bottom: 2.5rem; }
.hero-head h1 { max-width: 22ch; }

/* Two-column hero body (text + image), top-aligned so the image
   sits in line with the lead paragraph and doesn't push the title */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}
.hero-copy { min-width: 0; }
.hero-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.hero-figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  background: var(--fjt-white);
}
.hero-figure figcaption {
  font-size: .85rem;
  color: var(--fjt-grey-dark);
  font-style: italic;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-figure { order: 2; }
}

.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  color: var(--fjt-grey-dark);
  font-size: .92rem;
}
.hero-meta strong {
  display: block;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fjt-grey);
  font-weight: 700;
  margin-bottom: .25rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.6rem;
  border-radius: 4px;
  background: var(--fjt-red);
  color: var(--fjt-white) !important;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: all .2s var(--ease);
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--fjt-red-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--fjt-black) !important;
  border: 1.5px solid var(--fjt-black);
}
.btn-ghost:hover { background: var(--fjt-black); color: var(--fjt-white) !important; }
.btn-arrow::after { content: "→"; font-size: 1.1rem; transition: transform .2s var(--ease); }
.btn-arrow:hover::after { transform: translateX(3px); }

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ----- Cards / grids ----- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-3.cols-2-md { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-3.cols-2-md { grid-template-columns: 1fr; }
}

.card {
  background: var(--fjt-white);
  border: 1px solid var(--fjt-grey-light);
  border-radius: 8px;
  padding: 2rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
/* Add a clear breathing line between body text and a sub-heading
   inside a card (e.g. "Key outcomes" h4 after the description paragraph) */
.card p + h4 { margin-top: 1.5rem; }

.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--fjt-red);
  color: var(--fjt-white);
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 1.2rem;
}
.card h3 { margin-bottom: .6rem; }
.card p { margin: 0; color: var(--fjt-grey-dark); }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.feature-row.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .feature-row,
  .feature-row.reverse { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row.reverse > :first-child { order: 0; }
}

/* ----- Stats / metrics ----- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stats .stat {
  padding: 2rem 0;
  border-top: 3px solid var(--fjt-red);
}
.stats .stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  color: var(--fjt-black);
  background: none;
  width: auto; height: auto;
  margin: 0 0 .4rem;
  display: block;
}
.stats .stat .label { color: var(--fjt-grey-dark); font-size: .95rem; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .stats { grid-template-columns: 1fr; } }

/* ----- Quote ----- */
.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  font-weight: 700;
  color: var(--fjt-black);
  max-width: 60ch;
  margin: 0 auto;
  padding-left: 1.5rem;
  border-left: 4px solid var(--fjt-red);
}
.bg-dark .pullquote, .bg-red .pullquote { color: var(--fjt-white); border-left-color: var(--fjt-white); }
.pullquote cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: .95rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--fjt-grey-dark);
  letter-spacing: .02em;
}
.bg-dark .pullquote cite, .bg-red .pullquote cite { color: rgba(255,255,255,.8); }

/* ----- Programme journey ----- */
.journey {
  position: relative;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.journey-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.8rem;
  background: var(--fjt-white);
  border: 1px solid var(--fjt-grey-light);
  border-left: 4px solid var(--fjt-red);
  border-radius: 4px;
  align-items: start;
  counter-increment: step;
  transition: transform .2s var(--ease);
}
.journey-step:hover { transform: translateX(6px); }
.journey-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--fjt-red);
  line-height: 1;
}
.journey-step h3 { margin-bottom: .3rem; }
.journey-step .meta {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fjt-grey);
  margin-bottom: .6rem;
}
.journey-step p { margin: 0; color: var(--fjt-grey-dark); }
@media (max-width: 600px) {
  .journey-step { grid-template-columns: 1fr; }
  .journey-step::before { font-size: 1.6rem; }
}

/* ----- Team cards ----- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;          /* cards size to their own content */
}
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .team-grid { grid-template-columns: 1fr; } }

/* ----- Expand / collapse "Find out more" on team cards ----- */
.team-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.2rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--fjt-red);
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
}
.team-card__toggle::after {
  content: "↓";
  display: inline-block;
  transition: transform .25s var(--ease);
}
.team-card.is-open .team-card__toggle::after { transform: rotate(180deg); }
.team-card__toggle:hover { color: var(--fjt-red-dark); }

.team-card__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.team-card__more > .inner {
  min-height: 0;
  overflow: hidden;
}
.team-card.is-open .team-card__more {
  grid-template-rows: 1fr;
}
.team-card__more > .inner > *:first-child { margin-top: 1.2rem; }

.team-card {
  background: var(--fjt-white);
  border: 1px solid var(--fjt-grey-light);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.team-card .photo {
  aspect-ratio: 4 / 3;
  background: var(--fjt-grey-bg) center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.team-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.team-card .photo .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--fjt-grey-light);
}
.team-card .body { padding: 2rem; }
.team-card h3 { margin-bottom: .15rem; }
.team-card .role {
  color: var(--fjt-red);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.team-card .tagline {
  font-style: italic;
  color: var(--fjt-grey-dark);
  margin-bottom: 1rem;
}
.team-card .contact {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--fjt-grey-light);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .9rem;
}

/* ----- Tables ----- */
table.investment {
  width: 100%;
  border-collapse: collapse;
  background: var(--fjt-white);
  border: 1px solid var(--fjt-grey-light);
  border-radius: 8px;
  overflow: hidden;
}
table.investment th,
table.investment td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--fjt-grey-light);
}
table.investment thead th {
  background: var(--fjt-black);
  color: var(--fjt-white);
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
table.investment tbody tr:last-child td { border-bottom: 0; }
table.investment tfoot td {
  background: var(--fjt-grey-bg);
  font-weight: 800;
  font-family: var(--font-display);
}

/* ----- Footer ----- */
.site-footer {
  background: var(--fjt-black);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
  font-size: .92rem;
}
.site-footer h4 {
  color: var(--fjt-white);
  margin-bottom: 1rem;
  font-size: .82rem;
  letter-spacing: .12em;
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--fjt-red-light); }
.site-footer .container > .grid { gap: 2rem 3rem; }
.site-footer .bar {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}

/* ----- Inline client-logo mark (e.g. above an eyebrow on a case study) ----- */
.client-mark {
  display: block;                /* force eyebrow to sit beneath the logo */
  margin: 0 0 1rem;
  max-height: 40px;
  width: auto;
}
.card .client-mark {
  max-height: 30px;
  margin-bottom: .8rem;
}
/* Larger variant for taller / squarer logos so they read at a comparable visual weight */
.card .client-mark--lg { max-height: 80px; }

/* ----- Simulation card banner image (top of card, flush to edges) ----- */
.sim-image {
  margin: -2rem -2rem 1.4rem;          /* negative margin pulls image to card edges */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background: var(--fjt-grey-bg);
}
.sim-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----- Participant photo grid (moments from the room) ----- */
.participant-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0 auto 2rem;
}
.participant-grid .photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.participant-grid .photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform .5s var(--ease);
}
.participant-grid .photo:hover img {
  transform: scale(1.04);
}
@media (max-width: 800px) { .participant-grid { grid-template-columns: repeat(2, 1fr); } }

/* When pairs of testimonial cards sit between photo rows, tighten the gap */
.testimonial-pair {
  margin: 0 auto 2rem;
}

/* ----- Logo marquee (clients we've worked with — auto-scrolling band) ----- */
.logo-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Fade edges so logos appear to enter and exit naturally */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  margin-top: 2rem;
}
.logo-marquee + .logo-marquee { margin-top: 1.25rem; }

.logo-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  align-items: center;
  animation: marquee-scroll 80s linear infinite;
  will-change: transform;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }

/* Reverse direction for a second row to add visual rhythm */
.logo-marquee.reverse .logo-track {
  animation-direction: reverse;
  animation-duration: 70s;
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.logo-tile {
  flex: 0 0 auto;
  width: 170px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1rem;
  background: var(--fjt-white);
  border-radius: 8px;
}
.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Full colour — no greyscale */
}

/* On dark sections, keep the white tile so logos pop */
.bg-dark .logo-tile {
  background: var(--fjt-white);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

@media (max-width: 700px) {
  .logo-tile { width: 130px; height: 70px; padding: .6rem .8rem; }
  .logo-track { gap: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }
}

/* ----- Accent strip ----- */
.accent-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--fjt-red) 0%, var(--fjt-red) 30%, var(--fjt-black) 30%, var(--fjt-black) 100%);
}

/* ----- Reveal on scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Utilities ----- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 2rem; }
