/* ============================================================
   SECTIONS.CSS — CrazyDI Landing Page
   All section-specific styles, matching Figma design 1:1
   ============================================================ */

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  height: 92px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.header-inner {
  max-width: 1512px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
  margin-left: 100px;
}

.header-logo img,
.header-logo .custom-logo {
  width: 71px;
  height: 61px;
  object-fit: contain;
}

/* Navigation */
.header-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-link {
  font-family: var(--font-questrial);
  font-size: 17px;
  font-weight: 400;
  color: var(--color-dark-green);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
  padding: 4px 0;
}

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

.nav-active-line {
  display: block;
  height: 3px;
  width: 45px;
  background: var(--color-green);
  border-radius: 2px;
  margin-top: 2px;
}

.nav-item.active .nav-link {
  color: var(--color-dark-green);
  font-weight: 600;
}

/* Header CTA */
.header-cta {
  margin-left: 60px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark-green);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 92px; /* header height */
  padding-bottom: 80px;
  background: #061a15;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.85;
}

.hero-lines-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 137%;
  max-width: none;
  pointer-events: none;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  text-align: center;
}

.hero-title {
  font-family: var(--font-poppins);
  font-weight: 800;
  font-size: clamp(56px, 6.5vw, 98px);
  line-height: 1.0;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  max-width: 1210px;
  margin: 0 auto 16px;
}

.hero-subtitle {
  font-family: var(--font-questrial);
  font-size: clamp(28px, 3vw, 46px);
  color: var(--color-bright-green);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-description {
  font-family: var(--font-poppins);
  font-size: clamp(14px, 1.3vw, 19px);
  color: var(--color-white);
  line-height: 1.6;
  max-width: 933px;
  margin: 0 auto 40px;
  text-align: center;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero-cta-group .btn-primary {
  font-size: clamp(16px, 1.5vw, 22px);
  padding: 14px 28px;
}

.hero-cta-group .btn-outline {
  font-size: clamp(16px, 1.5vw, 22px);
  padding: 14px 28px;
}

/* Client Logos Marquee */
.client-logos-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
  overflow: hidden;
}

.client-logos-marquee-track {
  overflow: hidden;
  width: 100%;
}

.client-logos-marquee {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: client-logos-scroll 30s linear infinite;
}

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

.client-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.client-logo-item img {
  height: 100%;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.8) opacity(0.6);
  transition: filter 0.3s ease;
}

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

.client-logos-fade-left,
.client-logos-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 3;
  pointer-events: none;
}

.client-logos-fade-left {
  left: 0;
  background: linear-gradient(to right, #061a15 0%, transparent 100%);
}

.client-logos-fade-right {
  right: 0;
  background: linear-gradient(to left, #061a15 0%, transparent 100%);
}

@keyframes client-logos-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .client-logos-marquee {
    animation: none;
  }
}

/* Legacy — kept for reference */
.client-logos-img {
  max-width: 100%;
  width: 1402px;
  height: auto;
}

/* Stats Pill */
.stats-pill {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 134px;
  /* Figma: green layer (179px) under white layer (172px) = 7px green border effect */
  box-shadow: 0 0 0 7px #26cc37;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 905px;
  margin: 0 auto;
  padding: 24px 40px;
  margin-bottom: 80px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 0 20px;
}

.stat-number {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 61px);
  color: var(--color-dark-green);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-poppins);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 20px);
  color: var(--color-green);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 119px;
  background: rgba(11, 46, 39, 0.15);
  flex-shrink: 0;
}

/* ===========================
   WHAT WE DO SECTION
   =========================== */
.whatwedo-section {
  background: var(--color-dark-green);
  padding: 100px 0 100px;
  overflow: hidden;
  /* Continues hero section's dark background */
}

.whatwedo-eyebrow {
  font-family: var(--font-questrial);
  font-size: clamp(28px, 3vw, 44px);
  color: var(--color-white);
  text-align: center;
  line-height: 1.3;
  margin-bottom: 20px;
}

.whatwedo-heading {
  font-family: var(--font-poppins);
  font-weight: 400;
  font-size: clamp(42px, 4.5vw, 70px);
  line-height: 1.17;
  color: var(--color-white);
  text-align: center;
  margin-bottom: 60px;
}

.whatwedo-heading .fw-semibold {
  font-weight: 600;
}

/* "Chosen!" with green background highlight */
.whatwedo-chosen-wrap {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.whatwedo-chosen-bg {
  position: absolute;
  inset: 0;
  background: var(--color-light-green);
  z-index: 0;
  border-radius: 4px;
  transform: scaleX(1.05) scaleY(1.1);
}

/* z-index: 1 ensures the text paints above the z-index: 0 highlight */
.whatwedo-chosen-text {
  position: relative;
  z-index: 1;
  color: var(--color-dark-green);
  font-family: var(--font-poppins);
  font-weight: 400;
  letter-spacing: -0.05em;
}

/* Service Cards */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 334px);
  gap: 27px;
  justify-content: center;
}

.service-card {
  background: #ffffff;
  border-radius: 13px;
  padding: 40px 28px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 489px;
}

.service-card-icon {
  width: 180px;
  height: 180px;
  margin-bottom: 32px;
  flex-shrink: 0;
}

.service-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card-title {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: var(--color-dark-green);
  margin-bottom: 16px;
}

.service-card-desc {
  font-family: var(--font-poppins);
  font-size: 15px;
  line-height: 1.65;
  color: #000;
  font-weight: 400;
}

/* ===========================
   CLIENT RESULTS SECTION
   =========================== */
.results-section {
  background: #fff;
  padding: 80px 0 0;
  overflow: hidden;
}

/* ── Heading ── */
.results-heading-row {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  margin-bottom: 60px;
}

.results-heading-left {
  flex-shrink: 0;
}

/* Figma: "Real" Poppins Regular 70px / "Projects." Bold 70px, line-height 77px */
.results-heading {
  font-family: var(--font-poppins);
  font-weight: 400;
  font-size: clamp(42px, 4.6vw, 70px);
  line-height: 77px;
  color: var(--color-dark-green);
  margin: 0;
}

.results-heading strong {
  font-weight: 700;
}

/* "Growth." — #78ff95 rectangle behind the word */
.results-growth-wrap {
  position: relative;
  display: inline-block;
  padding: 2px 4px;
}

.results-growth-highlight {
  position: absolute;
  inset: 0;
  background: #78ff95;
  z-index: 0;
  border-radius: 0;
}

.results-growth-text {
  position: relative;
  z-index: 1;
}

/* Figma description: Questrial Regular 22.5px; "SEO…" bolded via Poppins SemiBold */
.results-description {
  font-family: var(--font-questrial);
  font-size: clamp(16px, 1.6vw, 22.5px);
  line-height: 27.744px;
  color: var(--color-dark-green);
  max-width: 528px;
  padding-top: 8px;
}

.results-description strong {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-style: normal;
}

/* ═══════════════════════════════════
   CAROUSEL
   ═══════════════════════════════════ */
.results-carousel {
  overflow: hidden;
}

.results-track {
  display: flex;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Each slide: 100% width ── */
.result-slide {
  flex: 0 0 100%;
  min-width: 0;
  position: relative;
  background: #fff;
  padding: 33px 0 20px;
}

/* ── Mint stripe: covers ~89% from left for default slides ── */
.result-slide-bg {
  position: absolute;
  top: 33px;
  height: 395px;
  background: #a8ffbb;
  z-index: 0;
  pointer-events: none;
  /* Default (laptop-left): bleed from left edge to ~89% of viewport */
  left: -200vw;
  right: 11%;
}

/* Reversed slide (slide 2): mint bleeds from ~16% to right edge */
.result-slide--reversed .result-slide-bg {
  left: 16%;
  right: -200vw;
}

/* ── Slide inner: flex row with proper proportions ── */
.result-slide-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 57px;
  min-height: 475px;
  padding-top: 0;
}

/* ═══════════════════════════════════
   LAPTOP MOCKUP
   Figma layer order (bottom to top):
   1. Green gradient card (464×462, rounded-17px) — background
   2. MacBook body SVG (405×263, dark bezel) — at offset (30, 95) within card
   3. Screen content (378×237) — inside the bezel at (13, 13) relative to body
   4. Keyboard image (482×12) — below the card
   5. Overlays & text — on top of everything
   ═══════════════════════════════════ */
.result-mockup {
  flex-shrink: 0;
  width: 482px;        /* keyboard width = widest element */
  margin-left: 32px;   /* Figma: card at x=228, container inner at x=196 → 32px offset */
}

.result-slide--reversed .result-mockup {
  margin-left: 0;
  margin-right: 32px;
}

/* Green gradient card — the coloured rectangle behind the laptop */
.mockup-greencard {
  position: relative;
  width: 464px;
  height: 462px;
  background: linear-gradient(to bottom, #2fa16d, #07604b);
  border-radius: 17px;
  margin: 0 auto;
}

/* MacBook body (SVG bezel) — positioned inside the green card */
.mockup-body {
  position: absolute;
  top: 95px;
  left: 30px;
  width: 405px;
  height: 263px;
}

.mockup-body-img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Screen content — sits inside the bezel (SVG has ~13px bezel on each side) */
.mockup-screen {
  position: absolute;
  top: 13px;
  left: 13px;
  right: 13px;
  bottom: 13px;
  overflow: hidden;
  border-radius: 2px;
  background: #181818;
}

.mockup-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Keyboard: below the green card, centred ── */
.mockup-keyboard {
  width: 482px;
  height: 12px;
  position: relative;
  margin: 0 auto;
}

.mockup-keyboard img {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Slide 1: "↑44% Traffic" text (top-left of green card) ── */
.mockup-badge-traffic {
  position: absolute;
  top: 40px;
  left: 29px;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 24px;
  line-height: 36px;
  color: #fff;
  z-index: 4;
  white-space: nowrap;
}

/* ── Slide 1: Analytics chart overlay (floats top-right) ── */
.mockup-chart-overlay {
  position: absolute;
  top: 40px;
  left: 215px;
  width: 183px;
  height: 124px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: -4px 4px 4px 0 rgba(0, 0, 0, 0.21);
  z-index: 4;
}

.mockup-chart-overlay img,
.mockup-linkedin-overlay img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Slide 2: LinkedIn overlay (bottom-right area) ── */
.mockup-linkedin-overlay {
  position: absolute;
  bottom: 38px;
  right: 30px;
  width: 135px;
  height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: -5px -4px 4px 0 rgba(0, 0, 0, 0.21);
  z-index: 4;
}

/* ── Slide 1: "#1 result" caption at bottom of green card ── */
.mockup-caption {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 24px;
  line-height: 28.529px;
  color: #fff;
  z-index: 4;
  padding: 0 16px;
}

/* ═══════════════════════════════════
   TEXT CONTENT COLUMN
   ═══════════════════════════════════ */
.result-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  position: relative;
  /* Figma: text starts ~80px from card top, align-items: flex-start handles this */
  padding-top: 80px;
  padding-right: 60px;  /* space for the arrow button at the right edge */
}

/* Client name: Poppins Regular 26px, #0b2e27, line-height 28.529px */
.result-client {
  font-family: var(--font-poppins);
  font-size: 26px;
  font-weight: 400;
  color: var(--color-dark-green);
  line-height: 28.529px;
  margin: 0;
}

/* Tag pill: Questrial Regular, 17.625px, #2fa16d border (1.175px), transparent fill */
.result-tag {
  display: inline-block;
  font-family: var(--font-questrial);
  font-size: 17.625px;
  color: var(--color-green);
  border: 1.175px solid var(--color-green);
  border-radius: 31.725px;
  padding: 2px 16px;
  background: transparent;
  align-self: flex-start;
  line-height: 28.529px;
  white-space: nowrap;
}

/* Headline: Poppins SemiBold 26px, #0b2e27, line-height 28.529px */
.result-headline {
  font-family: var(--font-poppins);
  font-size: 26px;
  font-weight: 600;
  color: var(--color-dark-green);
  line-height: 28.529px;
  margin: 4px 0;
}

/* Divider: 1px line, width 449px (from Figma line asset) */
.result-divider {
  border: none;
  border-top: 1px solid rgba(11, 46, 39, 0.2);
  margin: 4px 0;
  width: 449px;
  max-width: 100%;
}

/* Body: Poppins Regular 15px, #000, line-height 20.36px, max-width 429px */
.result-body {
  font-family: var(--font-poppins);
  font-size: 15px;
  font-weight: 400;
  color: #000;
  line-height: 20.36px;
  max-width: 429px;
  margin: 0;
}

/* Arrow button: absolute at the right edge, vertically centred in the content area */
.result-slide-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 5;
}

.result-slide-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  opacity: 0.85;
}

/* ── Dot navigation ── */
.results-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 28px 0 60px;
}

.results-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(11, 46, 39, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.results-dot--active {
  background: var(--color-dark-green);
  transform: scale(1.3);
}

/* ===========================
   HOW WE WORK SECTION
   =========================== */
.howwework-section {
  position: relative;
  overflow: visible;
  padding: 0;
  background: #000;
  /* Each step needs ~40vh to comfortably activate; step 1 is free */
  min-height: calc(100vh + 80vh);  /* = ~180vh → reduce to 160vh total */
  min-height: 160vh;
}

/* Clip the decorative background images without breaking sticky */
.howwework-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.howwework-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.howwework-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.howwework-lines {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 137%;
  max-width: none;
  pointer-events: none;
  opacity: 0.4;
}

.howwework-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 444px 1fr;
  gap: 100px;
  align-items: start;
  /* Padding fills the vertical space the section occupies */
  padding-top: 120px;
  padding-bottom: 120px;
}

/* Sticky left panel */
.howwework-left {
  position: sticky;
  top: 112px;  /* 92px header + 20px breathing room */
  align-self: start;
}

.howwework-heading {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: clamp(32px, 3vw, 55px);
  line-height: 1.05;
  color: var(--color-white);
  margin-bottom: 40px;
}

.howwework-gradient-text {
  display: inline;
  background: linear-gradient(135deg, #a8ffbb 0%, #78ff95 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Work Steps */
.howwework-right {
  display: flex;
  flex-direction: column;
  /* Extra scroll height: space above and below steps so JS triggers correctly */
  padding-top: 40px;
  padding-bottom: 80px;
}

.work-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
  /* Smooth fade between inactive and active */
  transition: opacity 0.5s ease;
}

/* Inactive steps are dimmed to 20% opacity */
.work-step--inactive {
  opacity: 0.2;
}

/* Active step: full opacity (override inactive) */
.work-step--active {
  opacity: 1;
}

.work-step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-bright-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.5s ease, transform 0.4s ease;
}

/* Inactive step: dim the number circle too */
.work-step--inactive .work-step-number {
  background: rgba(53, 199, 133, 0.4);
}

.work-step-number span {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 28px;
  color: var(--color-dark-green);
  line-height: 1;
}

.work-step-title {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 40px;
  color: var(--color-mint);
  line-height: 1.1;
  margin-bottom: 12px;
  transition: color 0.5s ease;
}

.work-step-desc {
  font-family: var(--font-poppins);
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-white);
  text-align: justify;
}

.work-step-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin: 0 0 0 84px;
  transition: border-color 0.5s ease;
}

/* Highlight the divider when the step below it becomes active */
.work-step--active + .work-step-divider {
  border-color: rgba(255,255,255,0.5);
}

/* ===========================
   TESTIMONIALS SECTION — MARQUEE
   =========================== */
.testimonials-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  background: #050f0c;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.testimonials-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.testimonials-heading {
  position: relative;
  z-index: 2;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 64px);
  color: var(--color-white);
  text-align: center;
  margin-bottom: 60px;
}

/* ── Marquee wrapper: clips the scrolling track ── */
.testimonials-marquee-wrap {
  position: relative;
  z-index: 2;
  overflow: hidden;
  /* Fade edges with a mask */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 80px,
    black calc(100% - 80px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 80px,
    black calc(100% - 80px),
    transparent 100%
  );
}

/* ── The scrolling container: two sets side-by-side ── */
.testimonials-marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

/* Pause on hover so users can read */
.testimonials-marquee:hover {
  animation-play-state: paused;
}

/* ── Each set of cards is a flex row ── */
.testimonials-marquee-set {
  display: flex;
  gap: 28px;
  padding: 0 14px; /* half the gap on each side so sets join seamlessly */
  flex-shrink: 0;
}

/* ── Marquee keyframe: scroll exactly one set width to the left ── */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Testimonial Card ── */
.testimonial-card {
  background: var(--color-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  padding: 28px 28px 24px;
  width: 412px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 67px;
  height: 67px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-name {
  font-family: var(--font-poppins);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-white);
}

.testimonial-site {
  font-family: var(--font-poppins);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.testimonial-text {
  font-family: var(--font-poppins);
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-white);
  flex: 1;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .testimonials-marquee {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
  .testimonials-marquee-set:last-child {
    display: none;
  }
}

/* ===========================
   OUR TEAM SECTION
   =========================== */
.team-section {
  background: #fff;
  padding: 100px 0 80px;
  /* position: relative set separately below for arrow positioning */
  overflow: hidden;
}

/* ── Heading ── */
.team-heading-wrap {
  text-align: center;
  margin-bottom: 60px;
}

/* Figma: Poppins Regular 70px, line-height 98px, #0b2e27 */
.team-heading {
  font-family: var(--font-poppins);
  font-size: clamp(40px, 4.6vw, 70px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-dark-green);
}

/* "Magic!" is ExtraBold */
.team-heading strong {
  font-weight: 800;
}

/* "Behind" has #78ff95 green rectangle behind it */
.team-behind-wrap {
  position: relative;
  display: inline-block;
  padding: 0 6px;
}

.team-behind-bg {
  position: absolute;
  inset: 0;
  background: #78ff95;
  z-index: 0;
}

.team-behind-text {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════
   TEAM SLIDER AREA
   Wraps viewport + arrows; position:relative
   so arrows centre vertically on the card row.
   ═══════════════════════════════════ */
.team-slider-area {
  position: relative;
}

/* ── Nav arrows ──
   Figma: left arrow at 6.5% of page width, right at 83.7%
   These percentages are relative to the full section/page width.
   We position them relative to .team-slider-area (full width).
   Vertically: top:50% centres on the card row height.            */
.team-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.team-arrow:hover { opacity: 0.45; }

/* 6.5% from left matches Figma x≈99px on 1512px page */
.team-arrow--prev { left: 6.5%; }

/* 83.7% from left matches Figma x≈1266px on 1512px page */
.team-arrow--next { left: 83.7%; }

/* ═══════════════════════════════════
   SLIDER VIEWPORT (overflow:hidden)
   ═══════════════════════════════════ */
.team-slider-viewport {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

/* White gradient fades – left and right edge, matching Figma white blur panels */
.team-slider-viewport::before,
.team-slider-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  /* 28% of viewport width approximates Figma's 423px fade on 1512px page */
  width: 28%;
  z-index: 10;
  pointer-events: none;
}

.team-slider-viewport::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,1) 40%, rgba(255,255,255,0) 100%);
}

.team-slider-viewport::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,1) 40%, rgba(255,255,255,0) 100%);
}

/* ── Slider track ── */
.team-slider-track {
  display: flex;
  gap: 40px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ═══════════════════════════════════
   TEAM CARD
   Figma: photo (308px circle) overlaps left of card;
   card = gradient rect 481×263px, rounded-15px
   ═══════════════════════════════════ */
.team-card {
  /* Fixed card width matches Figma proportions */
  flex: 0 0 700px;
  position: relative;
  display: flex;
  align-items: center;
  /* Card starts 154px from left (half of 308px photo overlap) */
  padding-left: 154px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Non-active cards are dimmed and slightly scaled */
.team-card:not(.team-card--active) {
  opacity: 0.5;
  transform: scale(0.95);
}

/* ── Circular photo: overlaps the left side of the info card ── */
.team-photo-wrap {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 308px;
  height: 308px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ── Info card: green→dark gradient, 481×263px, rounded-15px ── */
.team-info-card {
  flex: 1;
  min-height: 263px;
  background: linear-gradient(to right, #2fa16d, #0b2e27);
  border-radius: 15px;
  padding: 28px 28px 24px;
  /* Left padding leaves room for the photo (which overlaps ~154px) */
  padding-left: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

/* Name: Poppins SemiBold 25.859px, white */
.team-name {
  font-family: var(--font-poppins);
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}

/* Divider */
.team-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.4);
  margin: 4px 0;
}

/* Role: Poppins Regular 16.455px, #78ff95 */
.team-role {
  font-family: var(--font-poppins);
  font-size: 16.5px;
  font-weight: 400;
  color: #78ff95;
  line-height: 1.4;
  margin: 0;
}

/* Bio: Poppins Regular 17.631px, white; bold spans in #78ff95 */
.team-bio {
  font-family: var(--font-poppins);
  font-size: 17.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  line-height: 26.7px;
  margin: 4px 0;
}

.team-bio strong {
  font-weight: 700;
  color: #78ff95;
}

/* Footer: social icons left, button right */
.team-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 12px;
}

.team-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  transition: opacity 0.2s ease;
}

.team-social-link:hover { opacity: 0.7; }

.team-social-link img {
  width: 31px;
  height: 31px;
  object-fit: contain;
  display: block;
}

/* "View Profile" button: white border, rounded-4px, white text 14.1px */
.team-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2.35px solid rgba(255,255,255,0.8);
  border-radius: 4px;
  padding: 5px 14px;
  font-family: var(--font-poppins);
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.team-profile-btn:hover {
  background: rgba(255,255,255,0.15);
}

/* ===========================
   BLOG / ARTICLES SECTION
   =========================== */
.blog-section {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  /* Figma: full background image (mint/green gradient with grid) */
  background: url('../images/blog-bg.png') center/cover no-repeat;
  background-color: #c8f5d8; /* fallback */
}

/* ── Heading row ── */
.blog-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
}

.blog-heading-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Figma: Poppins Light 24px, #0b2e27 */
.blog-editors-pick {
  font-family: var(--font-poppins);
  font-size: 24px;
  font-weight: 300;
  color: var(--color-dark-green);
  line-height: 1;
}

/* Figma: Poppins Light 70px, #0b2e27, line-height 73px */
.blog-heading {
  font-family: var(--font-poppins);
  font-size: clamp(40px, 4.6vw, 70px);
  font-weight: 300;
  color: var(--color-dark-green);
  line-height: 73px;
  margin: 0;
}

/* "View all" link with external icon */
.blog-viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-poppins);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-dark-green);
  text-decoration: none;
  padding-bottom: 8px;
  transition: opacity 0.2s ease;
}

.blog-viewall:hover { opacity: 0.65; }

/* ── Shared image cover ── */
.blog-img-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Shared badge ──
   Figma: #2fa16d bg, white text, Inter Medium 10px uppercase, tracking 0.356px */
.blog-badge {
  display: inline-block;
  background: #2fa16d;
  color: #fff;
  font-family: 'Inter', var(--font-poppins), sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.356px;
  text-transform: uppercase;
  border-radius: 4.444px;
  padding: 3px 10px;
  align-self: flex-start;
  flex-shrink: 0;
}

/* ── Shared title ──
   Figma: Questrial Regular 24px, #272727, tracking -0.533px, line-height 23.704px */
.blog-title {
  font-family: var(--font-questrial);
  font-size: 24px;
  font-weight: 400;
  color: #272727;
  letter-spacing: -0.533px;
  line-height: 1.3;
  margin: 0;
}

.blog-title--white { color: #fff; }

/* ── Shared excerpt ── Poppins Regular 15px, #5c5c5c, tracking -0.13px */
.blog-excerpt {
  font-family: var(--font-poppins);
  font-size: 15px;
  font-weight: 400;
  color: #5c5c5c;
  letter-spacing: -0.13px;
  line-height: 17.778px;
  margin: 0;
  flex: 1;
}

/* ── Shared meta row ── */
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Inter Medium 10.296px, #272727 */
.blog-author-name {
  display: block;
  font-family: 'Inter', var(--font-poppins), sans-serif;
  font-size: 10.3px;
  font-weight: 500;
  color: #272727;
  letter-spacing: -0.062px;
  white-space: nowrap;
}

.blog-author-name--white { color: #fff; }

/* Inter Regular 8.889px, #5c5c5c */
.blog-author-handle {
  display: block;
  font-family: 'Inter', var(--font-poppins), sans-serif;
  font-size: 8.9px;
  font-weight: 400;
  color: #5c5c5c;
  white-space: nowrap;
}

/* Inter Regular 8.889px, #8f8f8f */
.blog-read-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', var(--font-poppins), sans-serif;
  font-size: 8.9px;
  font-weight: 400;
  color: #8f8f8f;
  white-space: nowrap;
  flex-shrink: 0;
}

.blog-read-time--dim { color: #8f8f8f; }

/* ══════════════════════════════════
   TOP ROW: Blog 1 (wide) + Blog 2 (dark)
   ══════════════════════════════════ */
.blog-row-top {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: stretch;
}

/* ── Blog 1: wide card — left image + right text ── */
.blog-card-wide {
  /* Figma: 772px, left 394px image + right text */
  flex: 0 0 calc(67% - 10px);
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  min-height: 304px;
}

.blog-card-wide__image {
  flex: 0 0 394px;
  overflow: hidden;
}

.blog-card-wide__content {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Blog 2: dark card — full cover + gradient overlay + white text ── */
.blog-card-dark {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 304px;
  box-shadow: 0px 4px 4px rgba(0,0,0,0.25);
}

.blog-card-dark .blog-img-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Figma: from-[rgba(0,0,0,0)] at 19.2% to black — gradient from bottom */
.blog-card-dark__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 19.2%, #000 100%);
  z-index: 1;
}

.blog-card-dark__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ══════════════════════════════════
   BOTTOM ROW: 3 equal cards
   ══════════════════════════════════ */
.blog-row-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Blog 3 & 5: text-only white card with shadow ── */
.blog-card-text {
  background: #fff;
  box-shadow: 0px 4px 4px rgba(0,0,0,0.25);
  overflow: hidden;
  min-height: 304px;
  display: flex;
  flex-direction: column;
}

.blog-card-text__content {
  padding: 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* ── Blog 4: top half image + bottom text ── */
.blog-card-image-top {
  background: #fff;
  overflow: hidden;
  min-height: 304px;
  display: flex;
  flex-direction: column;
}

.blog-card-image-top__image {
  height: 164px;
  flex-shrink: 0;
  overflow: hidden;
}

.blog-card-image-top__content {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* ===========================
   FOOTER
   Figma node 112:418 — dark bg with gradient wallpaper + lines overlay
   =========================== */
.site-footer {
  position: relative;
  background: #000;
  overflow: hidden;
  padding: 110px 0 80px;
}

/* Gradient wallpaper background — fills entire footer, cropped */
.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.footer-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* Decorative lines overlay */
.footer-lines {
  position: absolute;
  top: -296px;
  left: 50%;
  transform: translateX(-50%);
  width: 2075px;
  height: 1015px;
  z-index: 1;
  pointer-events: none;
}

.footer-lines-img {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Footer grid: 4 columns matching Figma positions ── */
.footer-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 344px 164px 164px 293px;
  gap: 60px;
  align-items: start;
}

/* ═══════════════════════════════════
   Column 1: Logo + Copyright + Social
   ═══════════════════════════════════ */
.footer-logo-link {
  display: inline-block;
  text-decoration: none;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.footer-logo img {
  width: 51px;
  height: 44px;
  object-fit: contain;
}

/* Figma: Questrial Regular 28.541px, white, tracking -0.634px */
.footer-logo-name {
  font-family: var(--font-questrial);
  font-size: 28.5px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.634px;
  line-height: 1;
}

/* Figma: Poppins Regular 8.919px, white, top-aligned */
.footer-logo-tm {
  font-family: var(--font-poppins);
  font-size: 9px;
  font-weight: 400;
  color: #fff;
  vertical-align: super;
  margin-left: 2px;
}

/* Figma: Poppins Regular 15px, #c7c7c7, tracking -0.13px, line-height 17.778px */
.footer-copyright {
  font-family: var(--font-poppins);
  font-size: 15px;
  font-weight: 400;
  color: #c7c7c7;
  letter-spacing: -0.13px;
  line-height: 17.778px;
  margin: 0 0 6px;
}

/* Social icons row */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 36px;
}

/* Each icon: 31×31 circle with a faint dark border circle + white icon on top */
.footer-social-icon {
  position: relative;
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.footer-social-icon:hover { opacity: 0.7; }

.footer-social-bg {
  position: absolute;
  inset: 0;
  width: 31px;
  height: 31px;
  display: block;
}

.footer-social-img {
  position: relative;
  z-index: 1;
  width: 18.5px;
  height: 18.5px;
  display: block;
  object-fit: contain;
}

/* ═══════════════════════════════════
   Columns 2 & 3: Company / Support links
   ═══════════════════════════════════ */

/* Figma: Questrial Regular 24px, #78ff95, tracking -0.13px, line-height 17.778px */
.footer-col-title {
  font-family: var(--font-questrial);
  font-size: 24px;
  font-weight: 400;
  color: #78ff95;
  letter-spacing: -0.13px;
  line-height: 17.778px;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Figma: Poppins Regular 15px, white, tracking -0.13px, line-height 17.778px */
.footer-links a {
  font-family: var(--font-poppins);
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.13px;
  line-height: 17.778px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #78ff95;
}

/* ═══════════════════════════════════
   Column 4: Newsletter
   ═══════════════════════════════════ */

/* Figma: input is #5c5c5c bg, rounded-[7px], 293×38px */
.newsletter-input-wrap {
  display: flex;
  align-items: center;
  background: #5c5c5c;
  border-radius: 7px;
  overflow: hidden;
  width: 293px;
  height: 38px;
}

/* Figma: Poppins Regular 15px, #c7c7c7 placeholder, tracking -0.13px */
.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 14px;
  font-family: var(--font-poppins);
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.13px;
  height: 100%;
}

.newsletter-input::placeholder {
  color: #c7c7c7;
}

.newsletter-submit {
  background: none;
  border: none;
  padding: 0 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: opacity 0.2s ease;
}

.newsletter-submit:hover { opacity: 0.7; }

.newsletter-submit img {
  width: 24px;
  height: 24px;
  display: block;
}
