/* ==========================================================================
   StrategicShift Solutions — Stylesheet
   ========================================================================== */

:root {
  /* Brand colours (as specified) */
  --dark: #182028;
  --green: #a8e6b4;
  --light: #f8f9fb;
  --white: #ffffff;

  /* Derived surfaces */
  --dark-card: #212b33;
  --dark-card-hover: #26313a;

  /* Placeholder graphics */
  --grey-ph: #9ca3ac;
  --grey-ph-soft: #e7e9ec;
  --grey-ph-on-dark: #8b939d;

  /* Text */
  --text-on-dark: #f5f6f8;
  --text-on-dark-muted: rgba(245, 246, 248, 0.72);
  --text-on-dark-faint: rgba(245, 246, 248, 0.5);
  --text-on-light: #182028;
  --text-on-light-muted: rgba(24, 32, 40, 0.68);

  /* Borders */
  --border-on-dark: rgba(255, 255, 255, 0.09);
  --border-on-light: rgba(24, 32, 40, 0.1);

  /* Shape */
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  /* Shadow */
  --shadow-card: 0 24px 48px -28px rgba(24, 32, 40, 0.28);

  /* Layout */
  --container-width: 1180px;
  --container-pad: clamp(1.25rem, 5vw, 3rem);
  --header-height: 84px;

  /* Motion */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.28s;
  --dur: 0.4s;
  --dur-slow: 0.7s;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}
body,
h1,
h2,
h3,
h4,
p,
ul,
figure {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Keep simple hover/colour feedback (not disorienting), but drop
     the larger reveal movement and settle straight to its end state. */
  .js-reveal .reveal {
    transition: opacity 0.3s linear;
    transform: none;
  }
  .card:hover,
  .card:hover .icon-placeholder,
  .back-to-top.is-visible:hover {
    transform: none;
  }
}

body {
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--text-on-light);
  background: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.logo,
.footer-brand h3 {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  line-height: 1.15;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Reusable: section headings ---------- */
.section-heading {
  font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.35rem);
  color: var(--text-on-light);
  margin-bottom: 2.75rem;
}
.section-heading--light {
  color: var(--text-on-dark);
}

.section-footnote {
  margin-top: 2.75rem;
  text-align: center;
  font-size: 1.0625rem;
  color: var(--text-on-light-muted);
  max-width: 80%;
  margin-inline: auto;
}
.section-footnote--light {
  color: var(--text-on-dark-muted);
}

.highlight {
  color: var(--dark);
  background: linear-gradient(transparent 62%, var(--green) 62%);
  font-weight: 600;
}
.intro .highlight {
  color: var(--green);
  background: none;
  font-weight: 600;
}

.dot {
  color: var(--green);
  font-size: 0.6em;
  vertical-align: middle;
  margin-inline: 0.35em;
  display: inline-block;
}

/* ==========================================================================
   Placeholder graphics (flat grey stand-ins for icons & photography)
   ========================================================================== */

.icon-placeholder {
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  color: var(--grey-ph);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  transition:
    background-color var(--dur) var(--ease-soft),
    color var(--dur) var(--ease-soft),
    transform var(--dur) var(--ease-soft);
}
.icon-placeholder svg {
  width: 70%;
  height: 70%;
  max-width: 200px;
}

.icon-placeholder--dark {
  color: #aeb5be;
}

.icon-placeholder--sm {
  width: 86px;
  margin-bottom: 0;
  border-radius: var(--radius-sm);
  padding: 1rem 1rem;
}

.photo-placeholder {
  background: var(--grey-ph);
  color: #b3b8be;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo-placeholder svg {
  width: 15%;
  min-width: 40px;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    height 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(24, 32, 40, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  height: 72px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
  transition: color var(--dur) var(--ease-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}

.logo img {
  height: 36px;
  /* margin: 14px; */
}

.logo:hover {
  color: var(--green);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-on-dark);
  opacity: 0.88;
  position: relative;
  padding-bottom: 4px;
  transition:
    color var(--dur) var(--ease-soft),
    opacity var(--dur) var(--ease-soft);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width var(--dur) var(--ease-soft);
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green);
  opacity: 1;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  z-index: 110;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-on-dark);
  margin-inline: auto;
  transition:
    transform var(--dur) var(--ease-soft),
    opacity var(--dur) var(--ease-soft);
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-height);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url(assets/Hero-bg.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(24, 32, 40, 0.35) 0%,
    rgba(24, 32, 40, 0.55) 5%,
    rgba(24, 32, 40, 0.88) 25%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 3.5rem 4.5rem;
  max-width: 760px;
  margin: 0px auto 5rem 0px;
}
.hero-content h1 {
  font-size: clamp(2rem, 1.35rem + 3vw, 3.15rem);
  color: var(--text-on-dark);
  margin-bottom: 1.25rem;
}
.hero-content p {
  font-size: 1.05rem;
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   Intro — Innovate / Implement / Excel
   ========================================================================== */

.intro {
  background: var(--dark);
  color: var(--text-on-dark-muted);
  padding-block: clamp(3.5rem, 5vw, 5.5rem);
}
.intro-inner {
  max-width: 60%;
  text-align: center;
}
.intro-heading {
  color: var(--text-on-dark);
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2rem);
  margin-bottom: 2rem;
}
.intro-inner p {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}
.intro-inner p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Card grids (What we do / Our expertise / Why StrategicShift)
   ========================================================================== */

.what-we-do,
.approach,
.contact {
  background: var(--light);
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.expertise,
.why {
  background: var(--dark);
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}
.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--dur) var(--ease-soft),
    box-shadow var(--dur) var(--ease-soft),
    background-color var(--dur) var(--ease-soft);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -30px rgba(24, 32, 40, 0.35);
}
.card:hover .icon-placeholder {
  transform: translateY(-2px) scale(1.05);
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-on-light);
}

.card--dark {
  background: var(--dark-card);
  border: 1px solid var(--border-on-dark);
  box-shadow: none;
}
.card--dark:hover {
  background: var(--dark-card-hover);
}
.card--dark h3 {
  color: var(--text-on-dark);
}

.card--why p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   Our approach — scroll-driven vertical timeline
   ========================================================================== */

.timeline {
  --node: 72px;
  position: relative;
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2.75rem;
}

/* Grey dashed track + green fill overlay; both positioned by JS so they
   always line up exactly with the node centres. */
.timeline__track,
.timeline__fill {
  position: absolute;
  width: 2px;
  pointer-events: none;
}
.timeline__track {
  background: repeating-linear-gradient(
    to bottom,
    var(--border-on-light) 0 6px,
    transparent 6px 12px
  );
  opacity: 0.9;
}
.timeline__fill {
  height: 0; /* grows as the page scrolls */
  background: var(--green);
  border-radius: 2px;
  transition: height 0.15s linear;
}

.timeline__step {
  position: static; /* keeps nodes measured cleanly against .timeline */
  display: grid;
  grid-template-columns: var(--node) 1fr;
  gap: 2rem;
  align-items: start;
}

.timeline__node {
  position: relative;
  z-index: 1;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  background: var(--light);
  border: 2px solid var(--grey-ph);
  display: grid;
  place-items: center;
  transition:
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}
.timeline__node.is-active {
  border-color: var(--green);
}

/* Flat grey placeholder for the step icon */
.timeline__icon {
  width: 40%;
  height: 40%;
  border-radius: 7px;
  color: var(--grey-ph);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline__icon svg {
  width: 100%;
  height: 100%;
}

.timeline__body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--text-on-light);
}
.timeline__body p {
  font-size: 0.98rem;
  color: var(--text-on-light-muted);
  max-width: 420px;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .timeline__node {
    transition: none;
  }
  .timeline__fill {
    transition: none;
  }
}

/* ==========================================================================
   Contact / CTA
   ========================================================================== */

.contact-lead {
  margin-top: -1.75rem;
  margin-bottom: 2.75rem;
  color: var(--text-on-light-muted);
  font-size: 1.05rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-media {
  border-radius: var(--radius-lg);
  min-height: 420px;
  background-image: url(assets/contact.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.contact-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--border-on-light);
}
.contact-list li {
  border-bottom: 1px solid var(--border-on-light);
}
.contact-list a,
.contact-static {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1.35rem;
  font-size: 1.02rem;
  font-weight: 500;
  transition:
    color var(--dur) var(--ease-soft),
    padding-left var(--dur) var(--ease-soft);
}
.contact-list a:hover {
  color: var(--dark);
  padding-left: 0.4rem;
}
.contact-list a:hover .icon-placeholder--sm {
  color: var(--dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--dark);
  padding-top: clamp(3rem, 5vw, 4.5rem);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2.75rem;
}
.footer-brand h3 {
  font-size: 1.4rem;
  color: var(--text-on-dark);
  /* margin-bottom: 0.6rem; */
}
.footer-brand p {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
}

.footer-connect {
  text-align: right;
}
.footer-connect h4 {
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  color: var(--text-on-dark);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}
.footer-links a {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  transition: color var(--dur) var(--ease-soft);
}
.footer-links a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid var(--border-on-dark);
  padding-block: 1.5rem;
  text-align: center;
}
.footer-bottom p {
  color: var(--text-on-dark-faint);
  font-size: 0.85rem;
}

/* ==========================================================================
   Back to top
   ========================================================================== */

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(24, 32, 40, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity var(--dur) var(--ease-soft),
    transform var(--dur) var(--ease-soft),
    visibility var(--dur) var(--ease-soft),
    background-color var(--dur) var(--ease-soft);
  z-index: 90;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top.is-visible:hover {
  background: var(--dark-card-hover);
  transform: translateY(-4px);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

/* Visible by default: only animate once JS confirms it can reveal-on-scroll,
   so content is never lost if JavaScript fails or is unavailable. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur-slow) var(--ease-soft),
    transform var(--dur-slow) var(--ease-soft);
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 1025px) {
  .expertise .card-grid--4 > .card:nth-child(5) {
    grid-column: 2 / 3;
  }
  .expertise .card-grid--4 > .card:nth-child(6) {
    grid-column: 3 / 4;
  }
}

@media (max-width: 1024px) {
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-media {
    order: 2;
  }
  .contact-list {
    order: 1;
  }
}

@media (max-width: 860px) {
  .card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-connect {
    text-align: left;
  }
  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 72px;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(24, 32, 40, 0.97);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity var(--dur) var(--ease-soft),
      transform var(--dur) var(--ease-soft),
      visibility var(--dur) var(--ease-soft);
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 0.9rem 0;
  }
  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 560px;
  }

  .card-grid--4,
  .card-grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .timeline {
    --node: 56px;
    gap: 2rem;
  }
  .timeline__step {
    gap: 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
  }
  .footer-connect {
    text-align: left;
  }
  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .card-grid--4,
  .card-grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding-block: 2.5rem 3rem;
  }
  .contact-list a,
  .contact-static {
    gap: 1rem;
    font-size: 0.95rem;
  }
}
