/* ==========================================================================
   COMPONENTS
   Reusable UI patterns: navigation, hero, buttons, cards etc.
   Add new components to this file as the site grows.
   ========================================================================== */

/* --- Site header / navigation ------------------------------------------ */

.site-header {
  border-bottom: var(--border-thin);
}

.site-nav {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: var(--space-6) var(--page-gutter);

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.site-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--colour-ink);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--colour-ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--colour-accent-strong);
}

.nav-links a[aria-current="page"] {
  color: var(--colour-ink);
  border-bottom: 2px solid var(--colour-accent);
  padding-bottom: 2px;
}

.contact-link {
  color: var(--colour-accent) !important;
  font-weight: 700;
}

/* --- Hero (homepage) ----------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-content {
  max-width: var(--width-text);
}

.hero-kicker {
  color: var(--colour-accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-size: var(--font-size-h1);
  font-weight: 900;
  margin: 0 0 var(--space-6) 0;
}

.hero-intro {
  max-width: 42rem;
  font-size: var(--font-size-lead);
  font-weight: 400;
  color: var(--colour-ink-soft);
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border: 3px solid var(--colour-maroon-600);
  border-radius: var(--radius-medium);
  object-fit: cover;
}

/* Stack the hero on narrower screens rather than compressing two columns */
@media (max-width: 52rem) {

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 20rem;
  }

}

/* --- Page header (used on interior pages: About, Experience, etc.) ------ */

.page-header {
  max-width: var(--width-text);
  margin-bottom: var(--space-16);
}

.page-kicker {
  color: var(--colour-accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.page-header h1 {
  font-size: var(--font-size-h2);
  font-weight: 900;
  margin: 0 0 var(--space-6) 0;
}

.page-lead {
  font-size: var(--font-size-lead);
  font-weight: 400;
  color: var(--colour-ink-soft);
  max-width: 42rem;
}

/* --- Section heading (reusable across interior page sections) ---------- */

.section-heading {
  max-width: var(--width-text);
  margin-bottom: var(--space-8);
}

.section-heading .eyebrow {
  color: var(--colour-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.section-heading h2 {
  font-size: var(--font-size-h3);
  font-weight: 800;
  margin: 0;
}

/* --- Content section spacing --------------------------------------------- */

.content-section {
  padding-top: var(--space-24);
  border-top: var(--border-thin);
}

.content-section:first-child {
  padding-top: 0;
  border-top: none;
}

.prose {
  max-width: var(--width-text);
  font-size: var(--font-size-lead);
  color: var(--colour-ink-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* --- Pull statement (large standalone statement mid-page) --------------- */

.pull-statement {
  max-width: var(--width-text);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--font-size-h3);
  color: var(--colour-ink);
  line-height: 1.25;
}

.pull-statement span {
  color: var(--colour-accent);
}

/* --- Principles grid (About page: Principles / Ways of Working) -------- */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8) var(--space-12);
}

@media (max-width: 52rem) {
  .principles-grid {
    grid-template-columns: 1fr;
  }
}

.principle {
  border-top: var(--border-thin);
  padding-top: var(--space-6);
}

.principle .principle-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--colour-accent);
  margin-bottom: var(--space-3);
  letter-spacing: 0.05em;
}

.principle h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 var(--space-2) 0;
}

.principle p {
  color: var(--colour-ink-soft);
  font-size: 0.98rem;
  margin: 0;
}
/* --- Facets grid (About page: Outside of Work) --------------------------
   Deliberately lighter-weight styling than .principles-grid: smaller
   heading, no numbered index. This signals "personal facet" rather than
   "core leadership principle" without needing icons or imagery. */

.facets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 60rem) {
  .facets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 36rem) {
  .facets-grid {
    grid-template-columns: 1fr;
  }
}

.facet {
  border-top: var(--border-thin);
  padding-top: var(--space-4);
}

.facet h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 var(--space-2) 0;
}

.facet p {
  color: var(--colour-ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

.facet a {
  color: var(--colour-accent);
  font-weight: 600;
  text-decoration: underline;
}

/* ==========================================================================
   EXPERIENCE PAGE COMPONENTS
   Append these to css/components.css
   ========================================================================== */

/* --- Timeline (arrow-navigated career carousel) --------------------------
   Layout: arrow | content | arrow, using CSS grid so the arrows stay
   vertically centred against the panel regardless of panel height. */

.timeline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-8);
}

.timeline-body {
  min-width: 0; /* allows content to shrink properly inside the grid track */
}

.timeline-arrow {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 2px solid var(--colour-maroon-600);
  background: var(--colour-surface);
  color: var(--colour-accent);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--duration-standard) var(--ease-standard),
              color var(--duration-standard) var(--ease-standard),
              border-color var(--duration-standard) var(--ease-standard),
              transform var(--duration-standard) var(--ease-standard);
}

.timeline-arrow:hover:not(:disabled) {
  background: var(--colour-accent-solid);
  border-color: var(--colour-accent-solid);
  color: var(--colour-ink);
  transform: scale(1.05);
}

.timeline-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.timeline-position {
  margin: 0 0 var(--space-6) 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--colour-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Stack arrows above/below content on narrow screens rather than
   squeezing a three-column layout into a small viewport. */
@media (max-width: 42rem) {

  .timeline {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .timeline-body {
    order: 2;
    width: 100%;
  }

  .timeline-arrow-prev {
    order: 1;
  }

  .timeline-arrow-next {
    order: 3;
  }

}

.timeline-panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

/* --- Organisation links (Experience page) --------------------------------
   Replaces the old .timeline-logo image treatment. Each role's organisation
   name now links out to the company's website, styled consistently with
   the site's other accent links. */

.timeline-org a,
.other-role-org a {
  color: var(--colour-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--colour-maroon-600);
  transition: color var(--duration-standard) var(--ease-standard),
              border-color var(--duration-standard) var(--ease-standard);
}

.timeline-org a:hover,
.other-role-org a:hover {
  color: var(--colour-accent-strong);
  border-color: var(--colour-accent-strong);
}


.timeline-panel h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 var(--space-1) 0;
}

.timeline-org {
  color: var(--colour-ink-soft);
  font-weight: 600;
  margin: 0;
}

.timeline-dates {
  color: var(--colour-ink-soft);
  font-size: 0.85rem;
  margin: var(--space-1) 0 0 0;
}

.timeline-subheading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--colour-accent);
  margin: var(--space-8) 0 var(--space-4) 0;
}

.timeline-list {
  max-width: var(--width-text);
  padding-left: 1.1rem;
  color: var(--colour-ink-soft);
}

.timeline-list li {
  margin-bottom: var(--space-3);
  padding-left: var(--space-2);
}

/* When JavaScript is unavailable, .no-js on <html> (set only by removing
   this class via JS on load) keeps every panel visible and stacked, and
   hides the now-non-functional arrow controls, so no content is lost. */
.no-js .timeline-panel[hidden] {
  display: block !important;
}

.no-js .timeline-controls {
  display: none;
}

.no-js .timeline-panel {
  padding-bottom: var(--space-16);
  margin-bottom: var(--space-16);
  border-bottom: var(--border-thin);
}

/* --- Other notable roles (static list) ----------------------------------- */

.other-roles {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.other-role {
  border-top: var(--border-thin);
  padding-top: var(--space-6);
  max-width: var(--width-text);
}

.other-role-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.other-role-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.other-role-org {
  color: var(--colour-accent);
  font-weight: 600;
  margin: 0;
  font-size: 0.9rem;
}

.other-role-dates {
  color: var(--colour-ink-soft);
  font-size: 0.85rem;
  margin: var(--space-1) 0 var(--space-3) 0;
}

.other-role p:not(.other-role-dates) {
  color: var(--colour-ink-soft);
  margin: 0;
}
/* --- Credentials grid (Education & Development page) --------------------
   Denser than .principles-grid: three columns on desktop, no numbered
   index, used for qualifications, awards and certifications where the
   name of the credential itself is the primary information. */

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 60rem) {
  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 36rem) {
  .credentials-grid {
    grid-template-columns: 1fr;
  }
}

.credential {
  border-top: var(--border-thin);
  padding-top: var(--space-4);
}

.credential h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 var(--space-2) 0;
  line-height: 1.3;
}

.credential p {
  color: var(--colour-ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

.credential a {
  color: var(--colour-accent);
  font-weight: 600;
}
/* --- Thinking card grid (Thinking & Speaking page) -----------------------
   Used across Blogs & Whitepapers, Videos, and Other sections.
   Real, published items use the solid maroon-accented style. Items still
   awaiting content use .thinking-card-placeholder for a visibly different
   dashed treatment, so it's obvious at a glance what needs filling in. */

.thinking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 60rem) {
  .thinking-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 36rem) {
  .thinking-grid {
    grid-template-columns: 1fr;
  }
}

.thinking-card {
  border-top: 2px solid var(--colour-maroon-600);
  padding-top: var(--space-4);
}

.thinking-card-topic {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--colour-accent);
  margin: 0 0 var(--space-2) 0;
}

.thinking-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 var(--space-2) 0;
  line-height: 1.3;
}

.thinking-card h3 a {
  color: var(--colour-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--colour-maroon-600);
}

.thinking-card h3 a:hover {
  color: var(--colour-accent);
}

.thinking-card-summary {
  color: var(--colour-ink-soft);
  font-size: 0.92rem;
  margin: 0 0 var(--space-3) 0;
}

.thinking-card-status {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--colour-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* Placeholder variant: dashed border, reduced opacity, signals "not yet
   real content" clearly to both you and any future site visitor testing. */
.thinking-card-placeholder {
  border-top-style: dashed;
  border-top-color: var(--colour-line);
  opacity: 0.7;
}

.thinking-card-placeholder .thinking-card-topic {
  color: var(--colour-ink-soft);
}

/* --- Upcoming talk highlight (time-sensitive, sits above the grids) ----- */

.upcoming-card {
  border: 2px solid var(--colour-maroon-600);
  border-radius: var(--radius-medium);
  padding: var(--space-8);
  background: var(--colour-surface);
  max-width: var(--width-content);
}

.upcoming-label {
  color: var(--colour-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-4) 0;
}

.upcoming-card h2 {
  font-size: var(--font-size-h3);
  margin: 0 0 var(--space-3) 0;
}

.upcoming-meta {
  color: var(--colour-ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 var(--space-4) 0;
}

.upcoming-summary {
  color: var(--colour-ink-soft);
  max-width: var(--width-text);
  margin: 0 0 var(--space-6) 0;
}

.upcoming-link a {
  color: var(--colour-accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--colour-maroon-600);
}

.upcoming-link a:hover {
  color: var(--colour-accent-strong);
}

/* --- Inline links within thinking-card summaries -------------------------
   Used where a card references a secondary source inline (e.g. the video
   interview card which also credits the original interview page). */

.thinking-card-summary a {
  color: var(--colour-accent);
  font-weight: 600;
}

.thinking-card-summary a:hover {
  color: var(--colour-accent-strong);
}

