/* ============================================
   eplatforms - Website Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --navy: #0a1628;
  --navy-light: #0d2040;
  --blue: #0050A0;
  --blue-accent: #0050A0;
  --green: #1EB400;
  --green-light: #24d100;
  --orange: #FFAA00;
  --orange-light: #FFAA00;
  --white: #ffffff;
  --off-white: #f7f8fb;
  --grey-light: #eaecf2;
  --grey: #6c757d;
  --grey-dark: #343a40;
  --text: #1e293b;
  --text-light: #556677;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 16px rgba(10, 22, 40, 0.06);
  --shadow-hover: 0 12px 48px rgba(10, 22, 40, 0.12);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

/* Restore bullets/numbers in content-heavy pages (policies, terms, etc.) */
.content-lists ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.content-lists ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.content-lists li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.text-center .section-label::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

/* No lines on hero section labels */
.hero .section-label::before,
.hero .section-label::after {
  display: none;
}

.section-label--no-line::before,
.section-label--no-line::after {
  display: none;
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section--grey {
  background: var(--off-white);
}

.section--dark {
  background: var(--navy);
}

.section--blue {
  background: var(--blue);
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn--primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 180, 0, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: rgba(10, 22, 40, 0.2);
}

.btn--outline-dark:hover {
  background: rgba(10, 22, 40, 0.06);
  color: var(--navy);
  border-color: rgba(10, 22, 40, 0.4);
}

.btn--small {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* --- Gold Accent Bar --- */
.gold-bar {
  height: 16px;
  background: var(--orange);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.nav--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 48px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: 0.25rem 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--navy);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  margin-left: 1rem;
}

/* Mobile Nav */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav__links--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  }

  .nav__cta {
    margin-left: 0;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  background: #0b3d7a;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero--compact {
  padding: 8rem 0 4rem;
  min-height: 360px;
}

.hero--compact > .container {
  padding-top: 1rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__bg-shape {
  position: absolute;
  opacity: 0.1;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.6);
}

.hero__bg-shape--1 {
  width: 280px;
  height: 280px;
  top: -40px;
  right: 5%;
  animation: heroFloat1 20s ease-in-out infinite;
}

.hero__bg-shape--2 {
  width: 220px;
  height: 220px;
  bottom: -30px;
  left: 2%;
  animation: heroFloat2 25s ease-in-out infinite reverse;
}

.hero__bg-shape--3 {
  width: 160px;
  height: 160px;
  top: 45%;
  left: 40%;
  animation: heroFloat1 22s ease-in-out infinite reverse;
}

.hero__bg-shape--4 {
  width: 140px;
  height: 140px;
  bottom: 10%;
  right: 15%;
  animation: heroFloat2 18s ease-in-out infinite;
}

@keyframes heroFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-30px, 20px) rotate(3deg); }
  50% { transform: translate(20px, 40px) rotate(-2deg); }
  75% { transform: translate(-20px, -10px) rotate(4deg); }
}

@keyframes heroFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(25px, -25px) rotate(-5deg); }
  50% { transform: translate(-15px, -35px) rotate(3deg); }
  75% { transform: translate(30px, 10px) rotate(-3deg); }
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero__two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__feature-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
}

.hero__feature-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(30, 180, 0, 0.15);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero__feature-number {
  font-size: 5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero__feature-number span {
  color: var(--green-light);
}

.hero__feature-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.hero__mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero__mini-stat {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.hero__mini-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.hero__mini-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.hero__content--center {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero__content--center p {
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__content--center .hero__actions {
  justify-content: center;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  display: block;
}

.hero__stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
}

@media (max-width: 900px) {
  .hero__two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 8rem 0 4rem;
    min-height: auto;
  }
  .hero__stats {
    gap: 2rem;
    flex-wrap: wrap;
  }
  .hero__feature-number {
    font-size: 3.5rem;
  }
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(0, 80, 160, 0.1);
}

.card--static,
.card--static:hover {
  box-shadow: none;
  transform: none;
  cursor: default;
  border-color: rgba(0, 0, 0, 0.06);
}

/* Decorative dot pattern for grey sections */
.section--grey {
  position: relative;
}

.section--grey::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(0, 80, 160, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.card__icon--blue {
  background: rgba(0, 80, 160, 0.08);
  color: var(--blue-accent);
}

.card__icon--green {
  background: rgba(30, 180, 0, 0.08);
  color: var(--green);
}

.card__icon--orange {
  background: rgba(255, 170, 0, 0.1);
  color: var(--orange);
}

.card__icon--navy {
  background: rgba(10, 22, 40, 0.06);
  color: var(--navy);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  margin-top: 1.25rem;
}

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

.card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.card__link:hover svg {
  transform: translateX(4px);
}

/* --- Service Cards (larger) --- */
.service-card {
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--white);
}

.service-card::before {
  display: none;
}

.service-card .card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.service-card__number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.04);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.service-card ul {
  margin-top: 1rem;
}

.service-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat {
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
}

.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--grey-light);
}

.stat__value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.stat__value .accent {
  color: var(--green);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2)::after {
    display: none;
  }
}

/* --- Testimonials --- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.04);
  text-align: center;
}

.testimonial::before {
  content: '\201C';
  display: block;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--green);
  opacity: 0.25;
  line-height: 0.5;
  margin-bottom: 1rem;
}

.testimonial__quote {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 0;
  border-left: none;
}

.testimonial__author {
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.85rem;
  opacity: 0.7;
}

.testimonial__role {
  font-size: 0.8rem;
  color: var(--text-light);
  opacity: 0.5;
}

/* --- Testimonial Block --- */
.testimonial-block {
  text-align: center;
  padding: 2.5rem 2rem;
  border-left: 3px solid var(--green);
  background: var(--off-white);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* --- Testimonial Rotator --- */
.testimonial-rotator {
  position: relative;
  overflow: hidden;
}
.testimonial-rotator__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
}
.testimonial-rotator__slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  animation: testimonialFadeIn 0.5s ease;
}
@keyframes testimonialFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.testimonial-rotator__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.testimonial-rotator__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.testimonial-rotator__arrow:hover {
  border-color: var(--green);
  background: rgba(30, 180, 0, 0.06);
}
.testimonial-rotator__arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--text);
}
.testimonial-rotator__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.testimonial-rotator__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey-light);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition);
}
.testimonial-rotator__dot.active {
  background: var(--green);
  width: 24px;
  border-radius: 4px;
}
.testimonial-rotator__quote-icon {
  display: block;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--green);
  opacity: 0.2;
  line-height: 0.6;
  margin-bottom: 1.25rem;
}

/* --- Process / Timeline --- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--grey-light);
}

.process__step {
  text-align: center;
  position: relative;
}

.process__number {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--navy);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 2;
}

.process__step h4 {
  margin-bottom: 0.5rem;
}

.process__step p {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
  .process::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .process {
    grid-template-columns: 1fr;
  }
}

/* --- Story Cards (Success Stories landing) --- */
.story-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.story-card__logo {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 80px;
  height: 80px;
  opacity: 0.06;
}

.story-card__sector {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.story-card__client {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.story-card__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}

.story-card__tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

.story-card__tags .tag {
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
}

/* Featured story (full-width) */
.story-featured {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story-featured__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.story-featured__quote {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  font-style: italic;
  border-left: 3px solid var(--green);
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.story-featured__author {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
}

.story-featured__role {
  font-size: 0.8rem;
  color: var(--text-light);
}

.story-featured__highlights {
  display: flex;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--grey-light);
  margin-top: 0.5rem;
}

.story-featured__stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
  display: block;
}

.story-featured__stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .story-featured {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
}

/* --- Case Studies --- */
.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
}

.case-study:not(:last-child) {
  border-bottom: 1px solid var(--grey-light);
}

.case-study--reverse {
  direction: rtl;
}

.case-study--reverse > * {
  direction: ltr;
}

.case-study__image {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grey-light);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study__image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  gap: 0.5rem;
  padding: 2rem;
  text-align: center;
}

.case-study__image-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.case-study__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag--green {
  background: rgba(30, 180, 0, 0.1);
  color: var(--green);
}

.tag--blue {
  background: rgba(45, 125, 210, 0.1);
  color: var(--blue-accent);
}

.tag--orange {
  background: rgba(230, 126, 34, 0.1);
  color: var(--orange);
}

.case-study__content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.case-study__results {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-light);
}

.case-study__result-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  display: block;
}

.case-study__result-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .case-study {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .case-study--reverse {
    direction: ltr;
  }
}

/* --- FAQ Accordion --- */
.faq__item {
  border-bottom: 1px solid var(--grey-light);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  gap: 1rem;
}

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

.faq__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--green);
}

.faq__item--open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq__item--open .faq__answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq__answer p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 6rem 2rem;
  background: var(--blue);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
}

.cta-banner__content {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* --- Team --- */
.team-member {
  text-align: center;
}

.team-member__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--grey-light);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-light);
  overflow: hidden;
}

.team-member__name {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.team-member__role {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-member__bio {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--grey-light);
}

.timeline__item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -3rem;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--green);
  border: 3px solid var(--white);
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(30, 180, 0, 0.15);
}

.timeline__year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.timeline__item h4 {
  margin-bottom: 0.4rem;
}

.timeline__item p {
  font-size: 0.9rem;
}

/* --- Contact Form --- */
.contact-form {
  display: grid;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 180, 0, 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* --- Footer --- */
.footer {
  background: var(--off-white);
  padding: 1.5rem 0;
  position: relative;
  border-top: 1px solid var(--grey-light);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--grey-light);
  flex-wrap: wrap;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}

.footer__logo-icon {
  width: 28px;
  height: 28px;
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer__nav a {
  font-size: 0.85rem;
  color: var(--text-light);
  transition: color var(--transition);
}

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

.footer__bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-light);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a {
  font-size: 0.8rem;
  color: var(--text-light);
}

.footer__legal a:hover {
  color: var(--navy);
}

@media (max-width: 768px) {
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer__nav {
    gap: 1rem 1.5rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Logos / Client strip --- */
.client-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.client-logos__item {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.15);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Values Grid --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.value-item {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.value-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 170, 0, 0.15);
}

.value-item__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.value-item h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.value-item p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Technology badges --- */
.tech-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.875rem;
  border-radius: 50px;
  background: var(--off-white);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- Pill Cloud (clickable tag cloud) --- */
.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pill-link:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 22, 40, 0.15);
}

/* --- Contact Info --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(30, 180, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
}

.contact-info__label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}

.contact-info__value {
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Carousel --- */
.carousel {
  position: relative;
}

.carousel__track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0 1rem;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 calc(33.333% - 1.334rem);
  scroll-snap-align: start;
  min-width: 0;
}

@media (max-width: 1024px) {
  .carousel__slide {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 640px) {
  .carousel__slide {
    flex: 0 0 100%;
  }
}

.carousel__slide.card:hover {
  box-shadow: none;
  transform: none;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carousel__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(10, 22, 40, 0.15);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--navy);
}

.carousel__btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(30, 180, 0, 0.04);
}

.carousel__btn svg {
  width: 18px;
  height: 18px;
}

.carousel__dots {
  display: flex;
  gap: 0.5rem;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey-light);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.carousel__dot--active {
  background: var(--green);
  width: 24px;
  border-radius: 4px;
}

/* --- Project Showcases (smaller) --- */
.project-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-showcase__item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: all var(--transition);
}

.project-showcase__item:hover {
  box-shadow: none;
  transform: none;
  cursor: default;
}

.project-showcase__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.project-showcase__icon--green {
  background: rgba(30, 180, 0, 0.08);
  color: var(--green);
}

.project-showcase__icon--blue {
  background: rgba(0, 80, 160, 0.08);
  color: var(--blue);
}

.project-showcase__icon--orange {
  background: rgba(255, 170, 0, 0.1);
  color: var(--orange);
}

.project-showcase__name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.project-showcase__desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .project-showcase {
    grid-template-columns: 1fr;
  }
}

/* --- Utility --- */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.pt-0 { padding-top: 0; }

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
