/* ============================================================
   MAIN STYLESHEET â€” Component & Page Styles
   Based ONLY on user-provided design images.
   ============================================================ */

/* ---------- Navbar / Header ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  transition: all var(--transition-base);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  font-family: var(--font-menu);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  text-transform: uppercase;
  text-decoration: none;
}

.navbar__logo span:first-child {
  color: #8cc63f;
  /* JD Green */
}

.navbar__logo span:last-child {
  color: #333333;
  /* JD Dark Grey */
}

.navbar__links {
  display: flex;
  gap: 40px;
}

.navbar__links a {
  font-family: var(--menu-font);
  font-size: var(--menu-size);
  font-weight: var(--menu-weight);
  line-height: var(--menu-lh);
  letter-spacing: var(--menu-ls);
  color: #999999;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: #333333;
}

/* ---------- Hamburger Button ---------- */
.navbar__hamburger {
  display: none;
  /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
  transition: all var(--transition-base);
}

.navbar__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: #333333;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.77, 0.2, 0.05, 1),
    opacity 0.25s ease,
    width 0.3s ease;
  transform-origin: center;
}

/* Animate into X when open */
.navbar__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger--open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.navbar__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: 80px;
  background-color: #222222;
  position: relative;
  overflow: hidden;
}

/* The green side bar as seen in design */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
  background-color: #8cc63f;
  z-index: 1;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 600px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero__subtitle {
  font-family: var(--font-base);
  font-size: 20px;
  color: #cccccc;
  margin-bottom: 50px;
  font-weight: 400;
}

.hero__cta {
  display: flex;
  gap: 24px;
}

/* Buttons */
.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.btn--hero-primary {
  background: linear-gradient(to right, #8cc63f, #c4d62e);
  color: #333333;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
}

.btn--hero-outline {
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
}

/* Hero Visuals */
.hero__visuals {
  position: relative;
  width: 600px;
  height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__portrait {
  width: 100%;
  height: 100%;
  display: block;
  vertical-align: bottom;
  object-fit: contain;
  object-position: bottom center;
  z-index: 3;
  position: relative;
}

.hero__bg-img {
  position: absolute;
  top: 0;
  right: -50px;
  height: 100%;
  width: auto;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

/* ---------- 2nd Section (About & Highlights) ---------- */
.section--about {
  padding: 100px 0;
  background-color: #ffffff;
}

.about__text {
  max-width: 900px;
  margin-bottom: 80px;
}

.about__text p {
  font-family: var(--font-base);
  font-size: 24px;
  line-height: 1.5;
  color: #333333;
  margin-bottom: 30px;
}

.highlights {
  background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 100%);
  border-radius: 40px 40px 20px 20px;
  padding: 60px 40px;
  text-align: center;
}

.highlights__title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 60px;
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.highlight-item__value {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 700;
  color: #000000;
  line-height: 1;
  margin-bottom: 15px;
}

.highlight-item__label {
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  line-height: 1.3;
}

/* ---------- 3rd Section (What I Do) ---------- */
.section--services {
  padding: 120px 0;
  background-color: #000000;
  color: #ffffff;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}

.services__title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 600;
}

.services__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 40px;
}

.service-item__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}

.service-item__desc {
  font-family: var(--font-base);
  font-size: 14px;
  color: #999999;
  line-height: 1.6;
}

/* ---------- 4th Section (Case Study) ---------- */
.section--casestudy {
  padding: 120px 0;
  background-color: #ffffff;
}

.casestudy__title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 600;
  text-align: center;
  color: #222222;
  margin-bottom: 80px;
}

.casestudy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.casestudy-card {
  display: flex;
  flex-direction: column;
}

.casestudy-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 24px;
}

.casestudy-card__label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000000;
  margin-bottom: 12px;
}

.casestudy-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: #000000;
  line-height: 1.4;
}

/* ---------- 5th Section (Other Works) ---------- */
.section--other-works {
  padding: 120px 0;
  background-color: #f8f8f8;
}

.other-works__title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 600;
  text-align: center;
  color: #222222;
  margin-bottom: 60px;
}

/* Marquee Container */
.other-works__marquee-container {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.marquee-track {
  display: flex;
  gap: 30px;
  width: max-content;
}

.marquee-track--left {
  animation: scroll-left 40s linear infinite;
}

.marquee-track--right {
  animation: scroll-right 40s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  flex-shrink: 0;
}

.marquee-item img {
  height: 200px;
  width: auto;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  /* filter: grayscale(100%) brightness(0.7); */
  opacity: 0.6;
  transition: all 0.5s ease;
}

.marquee-item img:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.explore-work-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 30;
  background: linear-gradient(to right, #8cc63f, #c4d62e);
  color: #333333;
  padding: 14px 40px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.other-works__marquee-container:hover .explore-work-btn {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.other-works__marquee-container:hover .marquee-track {
  filter: blur(2px) brightness(0.6);
  transition: all 0.4s ease;
}

.other-works__marquee-container .marquee-track {
  transition: all 0.4s ease;
}

/* ---------- 6th Section (Design Philosophy) ---------- */
.section--philosophy {
  padding: 120px 0;
  background-color: #222222;
  text-align: center;
}

.philosophy__title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.philosophy__quote-mark {
  font-size: 80px;
  font-family: serif;
  font-weight: bold;
  line-height: 1;
  background: linear-gradient(to right, #8cc63f, #c4d62e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
  display: inline-block;
}

.philosophy__text {
  font-family: var(--font-base);
  font-size: 20px;
  color: #ffffff;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 100px 0 60px;
  background-color: #ffffff;
  text-align: center;
  position: relative;
}

.footer__title {
  font-family: 'Playfair Display', serif;
  /* Or standard serif fallback */
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 20px;
}

.footer__text {
  font-family: var(--font-base);
  font-size: 18px;
  color: #666666;
  margin-bottom: 20px;
}

.footer__email {
  display: inline-block;
  font-family: var(--font-base);
  font-size: 20px;
  color: #8cc63f;
  text-decoration: none;
  margin-bottom: 40px;
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icon {
  color: #000000;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
}

.scroll-top {
  position: absolute;
  bottom: 60px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  text-decoration: none;
  transition: all 0.3s ease;
}

.scroll-top:hover {
  background-color: #e0e0e0;
  color: #000000;
}

/* ============================================================
   CASE STUDY PAGE STYLES
   ============================================================ */

/* ---------- Case Study Hero ---------- */
.section--cs-hero {
  background-color: #ffffff;
  position: relative;
}

/* â”€â”€ Banner (collage image + overlay) â”€â”€ */
.cs-hero__banner {
  width: 100%;
  height: 800px;
  position: relative;
  overflow: hidden;
  background-image: url('../images/casestudy-hero-bg.png');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  line-height: 0;
  /* remove gap under img */
}

.cs-hero__top-img {
  width: 100%;
  height: 428px;
  padding: 30px 0px;
  display: block;
  object-fit: cover;
  object-position: center top;
}

/* Absolute overlay sits on top of the image, left-aligned */
.cs-hero__banner-content {
  position: absolute;
  top: -70%;
  left: 0;
  height: max-content;
  bottom: 0;
  display: flex;
  align-items: stretch;
}

/* Dark panel with diagonal right edge (parallelogram cut) */
.cs-hero__title-box {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 36px 80px 36px 40px;
  width: 504px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.cs-hero__brand-logo {
  max-width: 146px;
  height: auto;
}

.cs-hero__main-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.15;
}

.cs-hero__link {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.cs-hero__link:hover {
  color: #DE127F;
  text-decoration: underline;
}

/* â”€â”€ Details bar below the banner â”€â”€ */
.cs-hero__details-wrapper {
  background-color: #2b2b2b;
  width: 75%;
  max-width: 1630px;
  margin-left: auto;
  padding: 52px 60px 44px;
  margin-top: -200px;
  position: relative;
  z-index: 2;
}

.cs-details__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 80px;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 36px;
}

.cs-detail-item__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #DF0F81;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-bottom: 10px;
}

.cs-detail-item__value {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.cs-hero__summary {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.7;
}

/* ---------- Case Study Context ---------- */
.section--cs-context {
  padding: 100px 0;
  background-color: #f8f9fa;
}

.cs-context__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cs-context__title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 500;
  color: #222222;
  margin-bottom: 30px;
}

.cs-context__text {
  font-family: var(--font-base);
  font-size: 24px;
  color: #262626;
  line-height: 1.6;
  margin-bottom: 20px;
}

.cs-context__text strong {
  color: #222222;
}

.cs-context__images {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.cs-context__img-left {
  max-width: 100%;
  height: auto;
}

.cs-context__img-right {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Case Study Personas ---------- */
.section--cs-personas {
  padding: 100px 0;
  /* Split background: Black top, light grey bottom */
  background: linear-gradient(to bottom, #000000 0%, #000000 55%, #f4f6f8 55%, #f4f6f8 100%);
  text-align: center;
}

.cs-personas__title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 60px;
}

.cs-personas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.persona-card {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 343px;
  height: auto;
  margin: 0 auto;
}

.persona-card__img-wrapper {
  width: 100%;
  background-image: url('../images/personas-background.png');
  background-size: cover;
  background-position: center;
}

.persona-card__img {
  width: 100%;
  height: 350px;
  aspect-ratio: 342.67 / 573.85;
  display: block;
  object-fit: cover;
  object-position: top;
}

.cs-audit__section-subtitle {
  font-family: var(--font-base);
  font-size: 18px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 60px;
}

.persona-card__content {
  background-color: #e31885;
  /* Bright magenta */
  padding: 30px;
  border-radius: 30px 30px 0px 0px;
  color: #ffffff;
  text-align: left;
  flex-grow: 1;
  margin-top: -30px;
  /* Overlap image slightly */
  position: relative;
  z-index: 2;
}

.persona-card__role {
  font-family: var(--font-base);
  font-style: italic;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.persona-card__name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.persona-card__desc {
  font-family: var(--font-base);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Case Study Audit (4th Section) ---------- */
.section--cs-audit {
  padding: 100px 0;
  background-color: #000000;
}

.cs-audit__section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 24px;
}

.cs-audit__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.audit-card {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  text-align: center;
  transition: transform 0.3s ease;
}

.audit-card:hover {
  transform: translateY(-5px);
}

.audit-card__icon-wrapper {
  width: 125px;
  height: 125px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: none;
}

.audit-card__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.audit-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.audit-card__desc {
  font-family: var(--font-base);
  font-size: 14px;
  color: #cccccc;
  line-height: 1.6;
}

.cs-audit__hypothesis {
  font-family: var(--font-base);
  font-size: 18px;
  color: #ffffff;
  text-align: center;
  margin-top: 60px;
  line-height: 1.6;
}

/* ---------- Case Study Discovery (5th Section) ---------- */
.section--cs-discovery {
  padding: 100px 0;
  background-color: #ffffff;
  text-align: center;
}

.cs-discovery__title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 20px;
}

.cs-discovery__subtitle {
  font-family: var(--font-base);
  font-size: 18px;
  font-weight: 600;
  color: #222222;
  max-width: 900px;
  margin: 0 auto 60px;
  line-height: 1.5;
}

.cs-discovery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.discovery-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.discovery-card__icon-wrapper {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.discovery-card__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.discovery-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #000000;
  line-height: 1.2;
  margin-bottom: 12px;
}

.discovery-card__desc {
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  line-height: 1.6;
}

/* ---------- Case Study Redesign (6th Section) ---------- */
.section--cs-redesign {
  padding: 100px 0;
  background-color: #f4f6f8;
}

.cs-redesign__section-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 60px;
  text-align: center;
}

.cs-redesign__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cs-redesign__grid+.cs-redesign__grid {
  margin-top: 120px;
}

.cs-redesign__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 12px;
}

.cs-redesign__subtitle {
  font-family: var(--font-base);
  font-size: 20px;
  font-weight: 400;
  color: #333333;
  margin-bottom: 24px;
}

.cs-redesign__text {
  font-family: var(--font-base);
  font-size: 15px;
  color: #444444;
  line-height: 1.7;
}

.cs-redesign__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ---------- Case Study Brand Guide (7th Section) ---------- */
.section--cs-brandguide {
  padding: 100px 0;
  background-color: #f4f6f8;
}

/* ---------- Case Study Additional Features (8th Section) ---------- */
.section--cs-features {
  padding: 100px 0;
  background-color: #f4f6f8;
}

.cs-brandguide__section-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 60px;
  text-align: center;
}

.cs-brandguide__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.cs-brandguide__col {
  display: flex;
  flex-direction: column;
  gap: 40px;
  height: 100%;
}

.brandguide-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.brandguide-item__title {
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 16px;
}

.brandguide-item__img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
}

/* ---------- Case Study Impact (9th Section) ---------- */
.section--cs-impact {
  padding: 100px 0;
  background-color: #DE127F;
  color: #ffffff;
}

.cs-impact__header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.cs-impact__title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cs-impact__subtitle {
  font-family: var(--font-base);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.6;
}

.cs-impact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto 60px;
}

.impact-card {
  border: 2px solid #ffffff;
  border-radius: 24px;
  padding: 40px 20px;
  text-align: center;
  transition: transform var(--transition-base);
}

.impact-card:hover {
  transform: translateY(-5px);
}

.impact-card__value {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1;
}

.impact-card__label {
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.cs-impact__funnel {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.cs-impact__funnel p {
  font-family: var(--font-base);
  font-size: 30px;
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.cs-impact__funnel strong {
  font-weight: 700;
}

/* ---------- Case Study Key Learnings (10th Section) ---------- */
.section--cs-learnings {
  padding: 100px 0;
  background-color: var(--color-dark);
  color: var(--color-text);
  text-align: center;
}

.cs-learnings__title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: #555555;
  margin-bottom: 30px;
}

.cs-learnings__text {
  font-family: var(--font-base);
  font-size: 20px;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE DESIGN — Optimized Breakpoints
   ============================================================ */

/* ──────────────────────────────────────────────────
   1. LARGE DESKTOP  (min-width: 1401px)
   ────────────────────────────────────────────────── */
@media screen and (min-width: 1401px) {
  .container {
    max-width: 1400px;
  }

  /* Hero */
  .cs-hero__banner {
    height: 680px;
  }

  .cs-hero__top-img {
    height: 480px;
  }

  .cs-hero__title-box {
    width: 560px;
    padding: 40px 90px 40px 48px;
  }

  .cs-hero__main-title {
    font-size: 56px;
  }

  .cs-hero__link {
    font-size: 16px;
  }

  .cs-hero__details-wrapper {
    padding: 70px 80px;
    margin-top: -220px;
  }

  .cs-detail-item__label {
    font-size: 13px;
  }

  .cs-detail-item__value {
    font-size: 22px;
  }

  .cs-hero__summary {
    font-size: 18px;
  }

  /* Section Titles */
  .cs-context__title,
  .cs-personas__title,
  .cs-audit__section-title,
  .cs-discovery__title,
  .cs-redesign__section-title,
  .cs-brandguide__section-title,
  .cs-impact__title,
  .cs-learnings__title {
    font-size: 58px;
  }

  /* Body Text */
  .cs-context__text {
    font-size: 20px;
  }

  .cs-learnings__text {
    font-size: 32px;
  }

  .cs-discovery__subtitle {
    font-size: 18px;
  }

  .cs-redesign__title {
    font-size: 40px;
  }

  .cs-redesign__text {
    font-size: 20px;
  }

  /* Cards */
  .audit-card {
    padding: 48px 36px;
  }

  .discovery-card__icon-wrapper {
    width: 160px;
    height: 160px;
  }

  .impact-card__value {
    font-size: 70px;
  }

  .impact-card__label {
    font-size: 30px;
  }
}

/* ──────────────────────────────────────────────────
   2. STANDARD DESKTOP  (1025px to 1400px)
   ────────────────────────────────────────────────── */
@media screen and (min-width: 1025px) and (max-width: 1400px) {
  .container {
    max-width: 1200px;
  }

  /* Index Hero */
  .hero__title {
    font-size: 52px;
  }

  .hero__visuals {
    width: 480px;
    height: 480px;
  }

  /* Case Study Hero */
  .cs-hero__main-title {
    font-size: 48px;
  }

  .cs-hero__link {
    font-size: 15px;
  }

  .cs-detail-item__label {
    font-size: 12px;
  }

  .cs-detail-item__value {
    font-size: 20px;
  }

  .cs-hero__summary {
    font-size: 16px;
  }

  .cs-hero__details-wrapper {
    padding: 52px 60px;
    margin-top: -200px;
  }

  /* Section Titles */
  .cs-context__title,
  .cs-personas__title,
  .cs-audit__section-title,
  .cs-discovery__title,
  .cs-redesign__section-title,
  .cs-brandguide__section-title,
  .cs-impact__title,
  .cs-learnings__title {
    font-size: 36px;
  }

  /* Body Text */
  .cs-context__text {
    font-size: 18px;
  }

  .cs-learnings__text {
    font-size: 18px;
  }

  .cs-redesign__title {
    font-size: 26px;
  }

  .cs-redesign__text {
    font-size: 15px;
  }

  .cs-redesign__grid {
    gap: 40px;
  }

  .impact-card__value {
    font-size: 44px;
  }
}

/* ──────────────────────────────────────────────────
   3. TABLET  (768px to 1024px)
   ────────────────────────────────────────────────── */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 32px;
  }

  /* ── Navbar: hamburger hidden, links visible on tablet ── */
  .navbar__hamburger {
    display: none;
  }

  .navbar__links {
    position: static;
    flex-direction: row;
    max-height: none;
    opacity: 1;
    padding: 0;
    overflow: visible;
    box-shadow: none;
    background: transparent;
    gap: 24px;
  }

  .navbar__links a {
    font-size: 15px;
    padding: 0;
    border-bottom: none;
    color: #999999;
    width: auto;
  }

  .navbar__links a:hover,
  .navbar__links a.active {
    color: #333333;
    background: none;
  }

  /* ── Index Hero: stack on tablet ── */
  .hero {
    padding-top: 90px;
    min-height: auto;
    padding-bottom: 0;
  }

  .hero .container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__title {
    font-size: 48px;
  }

  .hero__subtitle {
    font-size: 18px;
    margin-bottom: 36px;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__visuals {
    width: 360px;
    height: 360px;
    margin-bottom: 0;
  }

  /* ── Index: About section ── */
  .section--about {
    padding: 72px 0;
  }

  .about__text p {
    font-size: 18px;
  }

  .highlights__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .highlight-item__value {
    font-size: 52px;
  }

  /* ── Index: Services section ── */
  .section--services {
    padding: 80px 0;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services__title {
    font-size: 36px;
  }

  .services__list {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  /* ── Index: Case Study Grid ── */
  .casestudy__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .casestudy__title {
    font-size: 36px;
  }

  /* ── Index: Philosophy ── */
  .philosophy__text {
    font-size: 18px;
  }

  /* Hero */
  .cs-hero__banner {
    height: auto;
  }

  .cs-hero__top-img {
    height: 360px;
    padding: 0;
  }

  .cs-hero__banner-content {
    top: -60px;
  }

  .cs-hero__title-box {
    width: 360px;
    padding: 28px 40px 28px 30px;
  }

  .cs-hero__main-title {
    font-size: 34px;
  }

  .cs-hero__brand-logo {
    max-width: 110px;
  }

  .cs-hero__link {
    font-size: 13px;
  }

  .cs-hero__details-wrapper {
    width: 90%;
    margin-top: -120px;
    padding: 44px 40px 36px;
  }

  .cs-details__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .cs-detail-item__label {
    font-size: 11px;
  }

  .cs-detail-item__value {
    font-size: 17px;
  }

  .cs-hero__summary {
    font-size: 14px;
  }

  /* Section Titles */
  .cs-context__title,
  .cs-personas__title,
  .cs-audit__section-title,
  .cs-discovery__title,
  .cs-redesign__section-title,
  .cs-brandguide__section-title,
  .cs-impact__title,
  .cs-learnings__title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  /* Body Text */
  .cs-context__text {
    font-size: 15px;
  }

  .cs-discovery__subtitle {
    font-size: 14px;
    margin-bottom: 36px;
  }

  .cs-redesign__title {
    font-size: 20px;
  }

  .cs-redesign__subtitle {
    font-size: 14px;
  }

  .cs-redesign__text {
    font-size: 14px;
  }

  .cs-learnings__text {
    font-size: 16px;
  }

  .persona-card__name {
    font-size: 18px;
  }

  .persona-card__desc {
    font-size: 13px;
  }

  .audit-card__title {
    font-size: 16px;
  }

  .audit-card__desc {
    font-size: 13px;
  }

  .discovery-card__title {
    font-size: 16px;
  }

  .discovery-card__desc {
    font-size: 13px;
  }

  .brandguide-item__title {
    font-size: 14px;
  }

  .impact-card__value {
    font-size: 34px;
  }

  .impact-card__label {
    font-size: 13px;
  }

  .cs-impact__subtitle {
    font-size: 14px;
  }

  .cs-impact__funnel p {
    font-size: 14px;
  }

  /* Grids */
  .cs-context__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cs-personas__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .cs-audit__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .cs-discovery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .cs-redesign__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cs-redesign__grid+.cs-redesign__grid {
    margin-top: 72px;
  }

  .cs-brandguide__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .cs-brandguide__col--secondary {
    grid-column: 1 / -1;
  }

  .cs-impact__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  /* Section Padding */
  .section--cs-context,
  .section--cs-personas,
  .section--cs-audit,
  .section--cs-discovery,
  .section--cs-redesign,
  .section--cs-brandguide,
  .section--cs-features,
  .section--cs-impact,
  .section--cs-learnings {
    padding: 72px 0;
  }

  /* Images */
  .cs-context__img-right {
    max-height: 400px;
    object-fit: cover;
  }

  .cs-redesign__image {
    max-height: 360px;
    object-fit: cover;
  }

  .discovery-card__icon-wrapper {
    width: 96px;
    height: 96px;
  }

  .audit-card__icon-wrapper {
    width: 64px;
    height: 64px;
  }

  .brandguide-item__img {
    max-height: 200px;
    object-fit: contain;
  }

  .persona-card__img {
    aspect-ratio: 4/5;
    object-position: top center;
  }

  /* General */
  .highlights__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .casestudy__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ──────────────────────────────────────────────────
   4. MOBILE  (320px to 767px)
   ────────────────────────────────────────────────── */
@media screen and (min-width: 320px) and (max-width: 767px) {
  .container {
    padding: 0 20px;
  }

  /* ── Hamburger Visible, Nav Links Hidden ── */
  .navbar__hamburger {
    display: flex;
  }

  .navbar__links {
    /* Slide-down mobile menu */
    position: fixed;
    top: 70px;
    /* below the fixed navbar */
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s ease,
      padding 0.3s ease;
    z-index: 999;
  }

  .navbar__links.navbar__links--open {
    max-height: 320px;
    opacity: 1;
    padding: 16px 0 24px;
  }

  .navbar__links a {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #333333;
  }

  .navbar__links a:last-child {
    border-bottom: none;
  }

  .navbar__links a:hover,
  .navbar__links a.active {
    color: #8cc63f;
    background: #f9fff0;
  }

  /* ── Index Hero: stack vertically on mobile ── */
  .hero {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 0;
    overflow: hidden;
  }

  .hero::after {
    display: none;
    /* hide green right bar on mobile */
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 0;
  }

  .hero__content {
    max-width: 100%;
    order: 1;
    padding-bottom: 32px;
  }

  .hero__title {
    font-size: 36px;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
  }

  .hero__subtitle {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    padding: 0 8px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero__visuals {
    width: 100%;
    max-width: 320px;
    height: 260px;
    order: 2;
    margin: 0 auto;
  }

  .hero__bg-img {
    right: -10px;
  }

  /* ── Index: About section ── */
  .section--about {
    padding: 56px 0;
  }

  .about__text {
    margin-bottom: 40px;
  }

  .about__text p {
    font-size: 16px;
  }

  .highlights {
    padding: 40px 20px;
    border-radius: 24px;
  }

  .highlights__title {
    font-size: 26px;
    margin-bottom: 32px;
  }

  .highlights__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .highlight-item__value {
    font-size: 44px;
  }

  .highlight-item__label {
    font-size: 13px;
  }

  /* ── Index: Services section ── */
  .section--services {
    padding: 56px 0;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .services__title {
    font-size: 32px;
  }

  .services__list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-item__title {
    font-size: 18px;
  }

  /* ── Index: Case Study section ── */
  .section--casestudy {
    padding: 56px 0;
  }

  .casestudy__title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .casestudy__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* ── Index: Philosophy section ── */
  .section--philosophy {
    padding: 56px 0;
  }

  .philosophy__title {
    font-size: 26px;
  }

  .philosophy__text {
    font-size: 16px;
  }

  .philosophy__quote-mark {
    font-size: 56px;
  }

  /* ── Index: Marquee ── */
  .section--other-works {
    padding: 56px 0;
  }

  .other-works__title {
    font-size: 32px;
    margin-bottom: 36px;
  }

  .marquee-item img {
    height: 150px;
  }

  /* ── Case Study Hero ── */
  .cs-hero__banner {
    height: auto;
  }

  .cs-hero__top-img {
    height: 220px;
    padding: 0;
    object-fit: cover;
  }

  .cs-hero__banner-content {
    top: -50px;
    width: 100%;
    padding: 0 16px;
  }

  .cs-hero__title-box {
    width: 100%;
    padding: 20px 18px;
    background-color: rgba(0, 0, 0, 0.72);
  }

  .cs-hero__main-title {
    font-size: 24px;
  }

  .cs-hero__brand-logo {
    max-width: 80px;
  }

  .cs-hero__link {
    font-size: 12px;
  }

  .cs-hero__details-wrapper {
    width: 100%;
    margin-top: 0;
    padding: 72px 20px 32px;
  }

  .cs-details__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cs-detail-item__label {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .cs-detail-item__value {
    font-size: 15px;
  }

  .cs-hero__summary {
    font-size: 13px;
    line-height: 1.6;
  }

  /* Section Titles */
  .cs-context__title,
  .cs-personas__title,
  .cs-audit__section-title,
  .cs-discovery__title,
  .cs-redesign__section-title,
  .cs-brandguide__section-title,
  .cs-impact__title,
  .cs-learnings__title {
    font-size: 22px;
    margin-bottom: 22px;
  }

  /* Body Text */
  .cs-context__text {
    font-size: 14px;
  }

  .cs-discovery__subtitle {
    font-size: 13px;
    margin-bottom: 28px;
  }

  .cs-redesign__title {
    font-size: 18px;
  }

  .cs-redesign__subtitle {
    font-size: 13px;
  }

  .cs-redesign__text {
    font-size: 13px;
  }

  .cs-learnings__text {
    font-size: 14px;
  }

  .cs-impact__subtitle {
    font-size: 13px;
  }

  .cs-impact__funnel p {
    font-size: 13px;
  }

  /* Cards */
  .persona-card__role {
    font-size: 12px;
  }

  .persona-card__name {
    font-size: 17px;
  }

  .persona-card__desc {
    font-size: 13px;
  }

  .persona-card__content {
    padding: 18px 16px;
  }

  .audit-card {
    padding: 24px 18px;
  }

  .audit-card__title {
    font-size: 15px;
  }

  .audit-card__desc {
    font-size: 13px;
  }

  .discovery-card__title {
    font-size: 15px;
  }

  .discovery-card__desc {
    font-size: 13px;
  }

  .brandguide-item__title {
    font-size: 13px;
  }

  .impact-card {
    padding: 20px 12px;
  }

  .impact-card__value {
    font-size: 28px;
  }

  .impact-card__label {
    font-size: 12px;
  }

  /* Grids */
  .cs-context__grid,
  .cs-personas__grid,
  .cs-audit__grid,
  .cs-discovery__grid,
  .cs-redesign__grid,
  .cs-brandguide__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cs-impact__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cs-redesign__grid+.cs-redesign__grid {
    margin-top: 44px;
  }

  /* Section Padding */
  .section--cs-context,
  .section--cs-personas,
  .section--cs-audit,
  .section--cs-discovery,
  .section--cs-redesign,
  .section--cs-brandguide,
  .section--cs-features,
  .section--cs-impact,
  .section--cs-learnings {
    padding: 44px 0;
  }

  /* Images & Icons */
  .cs-context__images {
    flex-direction: column;
    gap: 14px;
  }

  .cs-context__img-right {
    max-height: 240px;
    object-fit: cover;
  }

  .cs-redesign__image {
    max-height: 200px;
    object-fit: cover;
  }

  .discovery-card__icon-wrapper {
    width: 68px;
    height: 68px;
    margin-bottom: 12px;
  }

  .audit-card__icon-wrapper {
    width: 52px;
    height: 52px;
  }

  .persona-card__img {
    aspect-ratio: 3/2;
    object-position: top center;
  }

  .brandguide-item__img {
    max-height: 160px;
    object-fit: contain;
  }
}