@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, system-ui;
  background: #fff;
  color: #111;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(16px, 5vw, 60px);

  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
}

.nav-left a img {
  width: clamp(130px, 10vw, 180px);
}

.nav-left p {
  font-size: 18px;
  color: #0F172A;
}

.nav-left p:hover {
  text-decoration: underline;
  cursor: pointer;
}

.nav-center {
  display: flex;
}

.nav-center a {
  margin: 0 12px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
}

.nav-right {
  display: flex;
  gap: 10px;
}

/* MOBILE MENU */
.menu-toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

/* BUTTON */
.btn {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn.primary {
  background: #007B8F;
  color: white;
}

.btn.ghost {
  background: #eee;
}

.btn.gradient {
  background: #007B8F;
  color: white;
}

/* HERO */
.hero {
  padding: 220px clamp(16px, 5vw, 60px) 80px;
}

.hero-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-left h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
}

.hero-left p {
  margin: 20px 0;
  color: #666;
}

.hero-right img {
  width: 100%;
  max-width: 65vw;
  animation: float 5s ease-in-out infinite;
}

/* SECTIONS */
.section {
  max-width: 1200px;
  margin: auto;
  padding: 80px clamp(16px, 5vw, 60px);
  text-align: center;
}

.section h2 {
  font-size: clamp(28px, 3vw, 48px);
  margin-bottom: 20px;
}

.sub {
  color: #777;
  margin-bottom: 40px;
}

/* GRID */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cards img {
  width: 100%;
}

.cards .card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  overflow: hidden;
  /* background-color: red; */
}

.web-view {
  display: block;
}

.mobile-view {
  display: none;
}

.cards .stepper-card {
  height: 104px;
  width: 70px;
  border-radius: 0;
}

.solution-cards {
  width: 70%;
  margin: 45px auto 0 auto;
}

.cards .stepper-card-3 {
  height: 104px;
  width: 85px;
  border-radius: 0;
}

.cards .card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  cursor: pointer;}

.card h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* FLOW */
.flow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;

  /* background-color: red; */
}

/* .flow img {
  width:clamp(100px,12vw,180px);
} */

.flow span {
  font-size: 20px;
  opacity: 0.5;
}

/* HIGHLIGHT */
.highlight {
  max-width: 700px;
  margin: 50px auto 0;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 600;
}

/* Playbook */
.playbook {
  width: 30%;
  height: 300px;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;

  text-decoration: none;
  color: inherit;
}

.capp-title {
  font-family: 'Poppins', sans-serif;
}

.playbook>div>span {
  color: #999;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.playbook:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;

  cursor: pointer;
  background-color: #007B8F;
  color: #ffffff
}

.playbook:hover>div>span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
}

.playbook:hover > p {
  color: rgba(255,255,255,0.8);
}

/* .playbook> div > div > img {
  filter: invert(40%) sepia(0%) saturate(1762%) hue-rotate(153deg) brightness(103%) contrast(108%);
}

.playbook > div > img {
  filter: invert(40%) sepia(0%) saturate(1762%) hue-rotate(153deg) brightness(103%) contrast(108%);
}

.playbook:hover > div > div > img{
  filter: none;
}

.playbook:hover  > div > img {
  filter: none;
} */

/* CTA */
.cta {
  padding: 80px clamp(16px, 5vw, 60px);
  text-align: center;
  background: #007B8F;
  color: white;
}

.cta h2 {
  max-width: 600px;
  margin: 0 auto 20px;
  font-size: clamp(22px, 2.5vw, 36px);
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px clamp(16px, 5vw, 60px);
}

.footer p a {
    color: #aaa;
}

.footer p a:hover {
  color: #007B8F !important;
}

/* -------- TABLET -------- */
@media (max-width: 900px) {

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-right img {
    max-width: 100vw;
  }

   .section h2 {
    font-size: clamp(24px, 4vw, 36px);
  }

  .solution-cards {
    width: 100%;
    margin: 45px auto 0 auto;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------- MOBILE -------- */
@media (max-width: 900px) {

  .menu-toggle {
    display: block;
  }

  .nav-center {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
  }

  .nav-center a {
    margin: 10px 0;
    font-size: 16px;
  }

  .nav-center.active {
    display: flex;
  }

  .nav-right {
    display: none;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .flow span {
    display: none;
  }

  .arrow-down {
    display: inline-block;
    rotate: 90deg;
  }

  .footer-sub {
    width: 100% !important;
  }

  .cards .card {
    text-align: center;
    width: 100% !important;
  }

  .web-view {
    display: none;
  }

  .mobile-view {
    display: block !important;
  }

  .cards .stepper-card,
  .cards .stepper-card-3 {
    margin: 0 auto;
    width: inherit !important;
  }
}

/* ACTIVE NAV LINK */
.nav-center a.active {
  color: #007B8F;
  font-weight: 600;
  position: relative;
}

/* underline animation (premium feel) */
.nav-center a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #007B8F;
}

/* mobile active state */
@media (max-width: 900px) {
  .nav-center a.active {
    background: rgba(31, 80, 173, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
  }
}

/* HAMBURGER BASE */
.menu-toggle {
  display: none;
  width: 28px;
  height: 22px;
  position: relative;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #111;
  left: 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* 3 lines */
.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 9px;
}

.menu-toggle span:nth-child(3) {
  bottom: 0;
}

/* ---------- ACTIVE STATE (CROSS) ---------- */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 10px;
}

/* SHOW ONLY ON MOBILE */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
}

/* ---------- BASE ANIMATION ---------- */
.animate {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.animate.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- STAGGER (for cards) ---------- */
.cards>* {
  opacity: 0;
  transform: translateY(40px);
}

.cards.show>* {
  animation: cardReveal 0.7s forwards;
}

.cards.show>*:nth-child(1) {
  animation-delay: 0.05s;
}

.cards.show>*:nth-child(2) {
  animation-delay: 0.1s;
}

.cards.show>*:nth-child(3) {
  animation-delay: 0.15s;
}

.cards.show>*:nth-child(4) {
  animation-delay: 0.2s;
}

.cards.show>*:nth-child(5) {
  animation-delay: 0.25s;
}

.cards.show>*:nth-child(6) {
  animation-delay: 0.3s;
}

.cards.show>*:nth-child(7) {
  animation-delay: 0.35s;
}

.cards.show>*:nth-child(8) {
  animation-delay: 0.4s;
}

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- HERO ENTRY ---------- */
.hero-left {
  animation: heroFade 1s ease forwards;
}

.hero-right {
  animation: heroFade 1.2s ease forwards;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- OVERLAY ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ---------- MOBILE MENU SLIDE ---------- */
@media (max-width: 900px) {

  .nav-center {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);

    flex-direction: column;
    align-items: center;
    gap: 16px;

    padding: 24px 0;

    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;

    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1000;
  }

  .nav-center.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-center a {
    font-size: 16px;
  }
}

/* ---------- BODY LOCK ---------- */
body.menu-open {
  overflow: hidden;
}

/* PLAYBOOK PAGE */

/* ---------- PLAYBOOK LAYOUT (FINAL FIX) ---------- */

.playbook-container {
  display: flex;
  max-width: 65vw;
  margin: 0 auto;

  height: calc(100vh - 80px); /* full viewport minus navbar */
  margin-top: 80px; /* offset for fixed navbar */

  overflow: hidden; /* 🔥 prevents full page scroll */
}

/* ---------- SIDEBAR (FIXED) ---------- */
.playbook-sidebar {
  width: 220px;
  flex-shrink: 0;

  position: fixed;
  top: 80px; /* below navbar */
  
  /* align with centered container */
  left: calc((100vw - 65vw) / 2);

  height: calc(100vh - 80px);
  overflow-y: auto;

  display: flex;
  flex-direction: column;
  gap: 12px;

  padding-top: 40px;
}

.playbook-sidebar a {
  text-decoration: none;
  color: #555;
  font-size: 14px;
  transition: 0.2s;
}

.playbook-sidebar a:hover {
  color: #007B8F;
  text-decoration: underline;
}

/* ---------- CONTENT (SCROLLABLE AREA) ---------- */
.playbook-content {
  margin-left: 240px; /* space for sidebar */

  width: 100%;
  height: 100%;

  overflow-y: scroll; /* 🔥 only this scrolls */
  padding: 40px 0 40px 20px;
}

.playbook-content > img {
  width: 100%;
  margin-bottom: 10px;
}

/* hides scrollbar */
.playbook-content::-webkit-scrollbar {
  display: none;
}

.playbook-content{
  -ms-overflow-style: none;
}

/* ---------- SECTION FIX (NO MORE HACK) ---------- */
.playbook-content section {
  margin-bottom: 60px;

  scroll-margin-top: 120px; /* fixes anchor scroll */
}

/* ---------- BLOCKS ---------- */
.pb-block {
  border-left: 3px solid #007B8F;
  padding-left: 16px;
  margin-bottom: 30px;
  line-height: 32px;
}

.pb-quote {
  border-left: 3px solid #007B8F;
  padding: 16px;
  margin-bottom: 30px;
  background: #f9f9f9;
  border-radius: 8px;
}

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {

  .playbook-container {
    flex-direction: column;
    max-width: 88vw;

    height: auto;
    overflow: visible;
  }

  .playbook-sidebar {
    display: none;
  }

  .playbook-header {
    display: block;
  }

  .playbook-content {
    margin-left: 0;
    height: auto;
    overflow: visible;
    padding: 20px 0;
  }

  .playbook-content > img {
    width: 100%;
    height: auto;
    margin: 0 auto 20px auto;
  }
}

/* .playbook-container {
  display:flex;
  max-width: 65vw;
  margin:0px auto;
  padding:0 20px;
  position: relative;
} */

/* .playbook-sidebar {
  display: block;
  width:11.5vw;
  position:sticky;
  position: -webkit-sticky;
  top:150px;
  z-index: 100;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding-top: 150px;
} */

.playbook-header {
  display: none;
}

/* .playbook-sidebar a {
  text-decoration:none;
  color:#555;
  font-size:14px;
} */

/* .playbook-sidebar a:hover {
  color:#007B8F;
  text-decoration: underline;
} */

/* .playbook-content {
  flex:1;
  padding-left:40px;
} */

/* .playbook-content section {
  margin-bottom:60px;
} */

/* .pb-block {
  border-left:3px solid #007B8F;
  padding-left:16px;
  margin-bottom:20px;
} */

/* .pb-quote {
  border-left:3px solid #007B8F;
  padding:16px;
  margin-bottom:20px;
  background:#f9f9f9;
  border-radius:8px;
} */

/* MOBILE */
@media (max-width:900px) {

  .playbook-container {
    flex-direction:column;
    max-width: 88vw;
    padding: 0;
    height: auto;
    overflow: visible;
  }

  .playbook-sidebar {
    display: none;
    /* width: 100%; */
    /* position: unset; */
    /* flex-direction:row; */
    /* overflow-x:auto; */
  }

  .playbook-header {
    display: block;
  }

  .playbook-content {
    padding-left:0;
    height: auto;
    overflow: visible;
    padding: 20px 0;
  }
}

/* activity cards */

.activity-card {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px 0;
  color: #222;
}

/* HEADER */
.activity-label {
  font-size: 12px;
  letter-spacing: 3px;
  color: #007B8F;
  font-weight: 600;
  margin-bottom: 20px;
}

.activity-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.activity-title h1 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
}

/* ICON (approximation of graphic) */
.icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

/* BODY */
.activity-body {
  margin-top: 20px;
}

/* ROW */
.row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: start;
  padding: 18px 0;
}

/* LEFT LABEL */
.label {
  font-size: 12px;
  letter-spacing: 2px;
  color: #8a8a8a;
  font-weight: 600;
}

/* RIGHT CONTENT */
.content {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
}

/* DIVIDER */
.divider {
  height: 1px;
  background: #e5e5e5;
  margin-left: 220px;
}

/* quote card */

.story-card {
  max-width: 900px;
  margin: 40px auto;
  color: #222;
}

/* TITLE */
.story-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* SUBTITLE */
.story-sub {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: #777;
  margin-bottom: 25px;
}

/* ROW */
.quote-row {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

/* LEFT BAR */
.quote-bar {
  width: 3px;
  background: #222;
  height: 100%;
  margin-top: 6px;
}

/* CONTENT */
.quote-content {
  flex: 1;
}

/* QUOTE */
.quote-text {
  font-size: 20px;
  font-style: italic;
  color: #444;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* AUTHOR */
.author {
  font-size: 14px;
  color: #666;
}

/* VIEW MORE */
.view-more {
  background: none;
  border: none;
  color: #007B8F;
  font-size: 14px;
  cursor: pointer;
  margin-left: auto;
  padding-top: 6px;
}

/* EXPANDABLE */
.extra-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;

  padding: 20px 0;
}

.story-card.expanded .extra-content {
  max-height: 200px;
  opacity: 1;
  margin-top: 12px;
}


/* ---------- TABLET (<= 900px) ---------- */
@media (max-width: 900px) {

  .activity-card {
    padding: 30px 0;
  }

  .activity-title h1 {
    font-size: 28px;
  }

  .row {
    grid-template-columns: 160px 1fr;
  }

  .divider {
    margin-left: 160px;
  }

}


/* ---------- MOBILE (<= 600px) ---------- */
@media (max-width: 900px) {

  .activity-card {
    padding: 20px 0;
  }

  /* HEADER */
  .activity-title {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .activity-title h1 {
    font-size: 22px;
  }

  .activity-label {
    font-size: 11px;
    letter-spacing: 2px;
  }

  /* STACK ROW */
  .row {
    display: block;
    padding: 16px 0;
  }

  .row .label,
  .row .content {
    text-align: left;
  }

  .label {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .content {
    font-size: 16px;
    line-height: 1.5;
  }

  /* FULL WIDTH DIVIDER */
  .divider {
    margin-left: 0;
  }

}

.interactive-flow-section {
    width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 40px 20px;
}

/* TOP GRAPHIC */
.top-graphic-wrapper {
    width: 100%;
    margin: 0 auto;
}

.top-graphic {
    width: 80%;
    margin: 0 auto;
    display: block;
}

.desktop-graphic {
    display: block;
}

/* CARDS */
.interactive-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 24px;
}

.interactive-card {
    background: #fff;
    border: 1px solid #E9E9E9;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.interactive-card:hover {
    transform: translateY(-2px);
}

.interactive-card.active {
    border: 1.5px solid #FF2B2B;
    box-shadow: 0 10px 30px rgba(255, 43, 43, 0.08);
}

.card-icon {
    /* width: 36px; */
    margin-top: 3px;
}

.interactive-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.interactive-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

/* FLOW CHARTS */
.flow-chart-container {
    width: 100%;
    margin: 50px auto 0 auto;
    position: relative;
}

.flow-chart {
    display: none;
    animation: fadeSwitch 0.35s ease;
}

.flow-chart.active {
    display: block;
}

.flow-chart img {
    width: 100%;
    border-radius: 26px;
    display: block;
}

/* ANIMATION */
@keyframes fadeSwitch {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE */
@media (max-width: 900px) {

  .desktop-graphic {
    display: none !important;
    }

    .mobile-graphic {
        display: block !important;
        width: 100%;
    }

    .interactive-flow-section {
        padding: 0px !important;
        width: 100%;
        /* background-color: red; */
    }

    /* KEEP SIDE-BY-SIDE */
    .interactive-cards {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .interactive-card {
        padding: 14px 12px;
        flex-direction: column;
        gap: 10px;
        min-height: 180px;
    }

    .card-icon {
        margin-top: 0;
    }

    .interactive-card h3 {
        font-size: 16px;
        line-height: 1.2;
        margin-bottom: 6px;
    }

    .interactive-card p {
        font-size: 12px;
        line-height: 1.45;
    }

    .flow-chart-container {
        margin-top: 32px;
        width: 100%;
    }

}