/* ============================================
   PROSPERA IMPACT — Award-Winning Design System
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors — from logo-usage.pdf */
  --gold: #E3A624;
  --gold-light: #EABD5E;
  --gold-dark: #C48E1E;
  --teal: #079C92;
  --teal-light: #48B6AE;
  --teal-dark: #067A72;
  --blue: #3CAAE0;
  --blue-light: #6FC0E8;
  --blue-dark: #2B8FBF;
  --dark: #221F1F;
  --dark-gray: #4D4E4E;
  --medium-gray: #6B7280;
  --light-gray: #BBBDBF;
  --off-white: #F8F9FA;
  --white: #FFFFFF;
  --cream: #FFF9EE;

  /* Typography */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 900px;
  --max-width-wide: 1400px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --shadow-gold: 0 4px 14px rgba(227, 166, 36, 0.3);
  --shadow-teal: 0 4px 14px rgba(7, 156, 146, 0.3);
  --shadow-blue: 0 4px 14px rgba(60, 170, 224, 0.3);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.7;
  color: var(--dark-gray);
  background: var(--white);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.section-label {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-label::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section-title {
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--medium-gray);
  max-width: 600px;
  line-height: 1.7;
}

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

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

.section {
  padding: var(--space-5xl) 0;
}

.section--dark {
  background: linear-gradient(135deg, #064E48 0%, #079C92 100%);
  color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--blue {
  background: linear-gradient(135deg, #1B4D6E 0%, #2B8FBF 50%, #3CAAE0 100%);
  color: var(--white);
}

.section--blue h2,
.section--blue h3,
.section--blue h4 {
  color: var(--white);
}

.section--gold {
  background: linear-gradient(135deg, #A07518 0%, #C48E1E 40%, #E3A624 100%);
  color: var(--white);
}

.section--gold h2,
.section--gold h3,
.section--gold h4 {
  color: var(--white);
}

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

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

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* --- Grid System --- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.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; }
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-xl) 0;
  transition: all var(--transition-base);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-sm) 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

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

.header__logo img {
  height: 60px;
  width: auto;
  max-width: 240px;
  transition: opacity var(--transition-base), height var(--transition-base);
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.header__logo {
  position: relative;
  display: block;
  width: 240px;
  height: 60px;
  border: none;
  outline: none;
  box-shadow: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.header__logo:focus,
.header__logo:active,
.header__logo:focus-visible {
  outline: none;
  box-shadow: none;
}

.header__logo-light {
  opacity: 1;
  visibility: visible;
}

.header__logo-dark {
  opacity: 0;
  visibility: hidden;
}

.header--scrolled .header__logo {
  height: 56px;
}

.header--scrolled .header__logo img {
  height: 56px;
}

.header--scrolled .header__logo-light {
  opacity: 0;
  visibility: hidden;
}

.header--scrolled .header__logo-dark {
  opacity: 1;
  visibility: visible;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.header__menu {
  display: flex;
  gap: var(--space-xl);
}

.header__menu a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
  position: relative;
  padding: var(--space-xs) 0;
}

.header--scrolled .header__menu a {
  color: var(--dark-gray);
}

.header__menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition-base);
}

.header__menu a:hover::after,
.header__menu a.active::after {
  width: 100%;
}

.header__menu a:hover {
  color: var(--gold);
}

.header__cta {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  transition: all var(--transition-base);
}

.header__cta:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
  color: var(--white);
}

/* Mobile Nav Toggle */
.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

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

.header--scrolled .header__toggle span {
  background: var(--dark);
}

@media (max-width: 900px) {
  .header__nav {
    display: none;
  }
  .header__toggle {
    display: flex;
  }
}

/* Mobile Menu (overlay) */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: linear-gradient(180deg, #221F1F 0%, #2A2526 100%);
  z-index: 2000;
  transition: right var(--transition-slow);
  display: flex;
  flex-direction: column;
  padding: var(--space-3xl) var(--space-xl);
}

.mobile-menu.is-open {
  right: 0;
}

.mobile-menu__close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  color: var(--white);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  transition: color var(--transition-fast);
}

.mobile-menu__links a:hover {
  color: var(--gold);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background: linear-gradient(135deg, #0F2B3D 0%, #1B5E7A 30%, #079C92 60%, #48B6AE 100%);
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15,43,61,0.88) 0%, rgba(27,94,122,0.55) 50%, rgba(7,156,146,0.65) 100%);
}

/* Animated gradient orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 2;
}

.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: var(--gold);
  top: -200px;
  right: -100px;
  animation: orbFloat1 20s ease-in-out infinite;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: var(--teal);
  bottom: -100px;
  left: -100px;
  animation: orbFloat2 25s ease-in-out infinite;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: var(--blue);
  top: 50%;
  left: 50%;
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-80px, 60px) scale(1.1); }
  66% { transform: translate(40px, -40px) scale(0.9); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -80px) scale(1.15); }
  66% { transform: translate(-50px, 30px) scale(0.85); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-40%, -60%) scale(1.2); }
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero__label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(20px);
  border-left: 2px solid var(--gold);
  padding-left: 0.75rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(30px);
}

.hero__title span {
  color: var(--gold);
  position: relative;
  display: inline;
}

/* Train station flip letters */
.hero__title .flip-letter {
  display: inline;
  font-style: normal;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.hero__title .flip-letter.is-space {
  /* natural space */
}

.hero__description {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  transform: translateY(20px);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
  cursor: pointer;
}

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

.btn--primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--dark);
}

.btn--outline-dark:hover {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn__arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ============================================
   ABOUT SECTION (Values)
   ============================================ */
.about {
  position: relative;
}

.about__header {
  margin-bottom: var(--space-3xl);
}

.value-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.value-card:nth-child(1) .value-card__number { color: var(--gold); }
.value-card:nth-child(2) .value-card__number { color: var(--blue); }
.value-card:nth-child(3) .value-card__number { color: var(--teal); }
.value-card:nth-child(4) .value-card__number { color: var(--gold); }

.value-card:nth-child(1)::before { background: var(--gold); }
.value-card:nth-child(2)::before { background: var(--blue); }
.value-card:nth-child(3)::before { background: var(--teal); }
.value-card:nth-child(4)::before { background: linear-gradient(90deg, var(--gold), var(--blue), var(--teal)); }

.value-card__title {
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: var(--space-md);
}

.value-card__text {
  font-size: 0.9375rem;
  color: var(--medium-gray);
  line-height: 1.7;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services__header {
  margin-bottom: var(--space-3xl);
}

.services__category-label {
  font-family: var(--font-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: var(--space-xl);
}

.services__category-label--people {
  background: rgba(60, 170, 224, 0.1);
  color: var(--blue);
}

.services__category-label--planet {
  background: rgba(7, 156, 146, 0.1);
  color: var(--teal);
}

.services__category-label--policy {
  background: rgba(227, 166, 36, 0.1);
  color: var(--gold);
}

.service-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  group: true;
}

.service-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card__image {
  transform: scale(1.05);
}

.service-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 30%, rgba(34,31,31,0.88) 100%);
  z-index: 1;
  transition: background var(--transition-base);
}

.service-card:hover .service-card__overlay {
  background: linear-gradient(180deg, transparent 10%, rgba(34,31,31,0.94) 100%);
}

/* Pillar-specific service card overlays */
.services-pillar--people .service-card__overlay {
  background: linear-gradient(180deg, transparent 30%, rgba(27,77,110,0.90) 100%);
}
.services-pillar--people .service-card:hover .service-card__overlay {
  background: linear-gradient(180deg, transparent 10%, rgba(27,77,110,0.95) 100%);
}
.services-pillar--people .service-card__link { color: var(--blue-light); }
.services-pillar--people .service-card__link:hover { color: var(--blue); }

.services-pillar--planet .service-card__overlay {
  background: linear-gradient(180deg, transparent 30%, rgba(6,78,72,0.90) 100%);
}
.services-pillar--planet .service-card:hover .service-card__overlay {
  background: linear-gradient(180deg, transparent 10%, rgba(6,78,72,0.95) 100%);
}
.services-pillar--planet .service-card__link { color: var(--teal-light); }
.services-pillar--planet .service-card__link:hover { color: var(--teal); }

.services-pillar--policy .service-card__overlay {
  background: linear-gradient(180deg, transparent 30%, rgba(164,117,24,0.90) 100%);
}
.services-pillar--policy .service-card:hover .service-card__overlay {
  background: linear-gradient(180deg, transparent 10%, rgba(164,117,24,0.95) 100%);
}
.services-pillar--policy .service-card__link { color: var(--gold-light); }
.services-pillar--policy .service-card__link:hover { color: var(--gold); }

.service-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  z-index: 2;
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.service-card:hover .service-card__content {
  transform: translateY(0);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.service-card__excerpt {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-base);
}

.service-card:hover .service-card__excerpt {
  opacity: 1;
  max-height: 80px;
  margin-bottom: var(--space-md);
}

.service-card__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.service-card:hover .service-card__link {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============================================
   CLIENTS SECTION
   ============================================ */
.clients {
  position: relative;
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}

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

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

/* --- Client Card --- */
.client-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 200px;
  cursor: default;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}

.client-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, filter 0.5s ease;
  opacity: 0.15;
  transform: scale(1.05);
  filter: grayscale(1) brightness(0.7);
}

/* Theme-colored overlay */
.client-card__overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.client-card[data-theme="blue"] .client-card__overlay {
  background: linear-gradient(135deg, rgba(27,77,110,0.88) 0%, rgba(60,170,224,0.75) 100%);
}

.client-card[data-theme="gold"] .client-card__overlay {
  background: linear-gradient(135deg, rgba(160,117,24,0.88) 0%, rgba(227,166,36,0.75) 100%);
}

.client-card[data-theme="teal"] .client-card__overlay {
  background: linear-gradient(135deg, rgba(6,122,114,0.88) 0%, rgba(72,182,174,0.75) 100%);
}

/* Content layer */
.client-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 200px;
  padding: var(--space-lg);
}

.client-card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.01em;
  transition: color 0.4s ease, transform 0.4s ease;
}

.client-card__desc {
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease 0.1s,
              margin-top 0.4s ease;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.client-card__desc::-webkit-scrollbar {
  width: 3px;
}

.client-card__desc::-webkit-scrollbar-track {
  background: transparent;
}

.client-card__desc::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

/* --- Hover state --- */
.client-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.25);
}

.client-card:hover .client-card__img {
  opacity: 1;
  transform: scale(1);
  filter: grayscale(0) brightness(1);
}

.client-card:hover .client-card__overlay {
  opacity: 1;
}

.client-card:hover .client-card__title {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.client-card:hover .client-card__desc {
  max-height: 100px;
  opacity: 1;
  margin-top: 0.5rem;
  overflow-y: auto;
}

/* Subtle shine sweep on hover */
.client-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  z-index: 3;
  transition: none;
  pointer-events: none;
}

.client-card:hover::after {
  animation: cardShine 0.8s ease forwards;
}

@keyframes cardShine {
  from { left: -100%; }
  to { left: 150%; }
}

/* ============================================
   STATS / IMPACT NUMBERS
   ============================================ */
.stats {
  position: relative;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

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

.stat-item {
  text-align: center;
  padding: var(--space-xl);
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-item__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #221F1F;
  color: rgba(255,255,255,0.7);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.footer__logo-img {
  height: 52px;
  width: auto;
  opacity: 0.9;
  border: none;
  outline: none;
}

.footer__brand-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 320px;
  margin-top: var(--space-lg);
}

.footer__heading {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
  padding: var(--space-xs) 0;
}

.footer__links a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 640px) {
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Decorative Elements */
.deco-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue), var(--teal));
  border-radius: var(--radius-full);
}

.deco-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* Selection */
::selection {
  background: var(--gold);
  color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--off-white);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Page loading animation */
body {
  animation: fadeInPage 0.6s ease-out;
}

@keyframes fadeInPage {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   SUBPAGE TEMPLATE
   ============================================ */
.page-hero {
  padding: calc(var(--space-5xl) + 80px) 0 var(--space-4xl);
  background: linear-gradient(135deg, #1B3A5C 0%, #2B7A96 50%, #3CAAE0 100%);
  position: relative;
  overflow: hidden;
}

.page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero__breadcrumb {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-lg);
}

.page-hero__breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}

.page-hero__breadcrumb a:hover {
  color: var(--gold);
}

.page-hero__breadcrumb span {
  color: var(--gold);
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.page-hero__description {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  line-height: 1.8;
}

.page-content {
  padding: var(--space-4xl) 0;
}

.page-content p {
  margin-bottom: var(--space-lg);
  font-size: 1.0625rem;
  line-height: 1.85;
}

.page-content h2 {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
}

.page-content h3 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.page-content ul {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
}

.page-content ul li {
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: var(--space-lg);
}

.page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* Contact page specifics */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.contact-card {
  background: var(--off-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.contact-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.contact-card__title {
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  color: var(--dark);
}

.contact-card__value {
  font-size: 1rem;
  color: var(--medium-gray);
}

.contact-card__value a {
  color: var(--teal);
}

.contact-card__value a:hover {
  color: var(--gold);
}

/* ============================================
   CONTENT BLOCKS (Subpage sections)
   ============================================ */
.content-block {
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.content-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.content-block h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: var(--space-lg);
}

.content-block h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 4px;
  height: 1.2em;
  background: linear-gradient(180deg, var(--gold), var(--blue), var(--teal));
  border-radius: var(--radius-full);
}

.content-block__subtitle {
  font-style: italic;
  color: var(--gold-dark);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.content-block p:not(.content-block__subtitle) {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--dark-gray);
}

/* ============================================
   LANGUAGE SWITCH (EN / TR) — segmented control
   ============================================ */
.lang-switch {
  display: inline-flex;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
}

.lang-switch a,
.lang-switch span,
.lang-switch button {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  padding: 0.5rem 1rem;
  color: rgba(255,255,255,0.75);
  transition: all var(--transition-fast);
}

.lang-switch a:hover,
.lang-switch button:hover {
  color: var(--gold-light);
}

.lang-switch .is-active,
.lang-switch button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--white);
}

.header--scrolled .lang-switch {
  border-color: rgba(0,0,0,0.2);
}

.header--scrolled .lang-switch a,
.header--scrolled .lang-switch button {
  color: var(--dark-gray);
}

.header--scrolled .lang-switch a:hover,
.header--scrolled .lang-switch button:hover {
  color: var(--gold-dark);
}
