/* Update existing .story-img class */
.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images fill the box without stretching */
  border-radius: 16px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block; /* Removes bottom space */
  box-shadow: var(--shadow-md);
}

/* Add a subtle hover effect */
.story-img:hover {
  transform: scale(1.03); /* Gentle zoom */
  box-shadow: var(--shadow-xl);
}

/* Ensure the grid layout remains solid */
.story-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 220px); /* Slightly taller for better impact */
  gap: 24px;
}

/* Force image 1 to span 2 rows */
.story-img-1 {
  grid-column: 1;
  grid-row: 1 / 3;
}

.story-img-2 {
  grid-column: 2;
  grid-row: 1;
}

.story-img-3 {
  grid-column: 2;
  grid-row: 2;
}

/* Responsive Fix */
@media (max-width: 768px) {
  .story-image-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 300px 200px 200px; /* Stack them on mobile */
  }

  .story-img-1 {
    grid-column: 1;
    grid-row: 1;
  }
  
  .story-img-2 {
    grid-column: 1;
    grid-row: 2;
  }
  
  .story-img-3 {
    grid-column: 1;
    grid-row: 3;
  }
}
/* ==========================================
   AGENCY PAGE - CSS
   Enhanced styles for About Us page
   ========================================== */

/* ===== ABOUT HERO SECTION ===== */
.about-hero {
  padding: 120px 0 100px;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.about-hero-inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.about-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 32px;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(88, 101, 242, 0);
  }
}

.about-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.about-hero-lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--gray-700);
  max-width: 720px;
  margin: 0 auto;
}

/* ===== ABOUT STORY SECTION ===== */
.about-story {
  padding: 140px 0;
  background: var(--white);
}

.about-story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.story-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.story-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.story-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 24px;
}

.story-content p:last-child {
  margin-bottom: 0;
}

/* Story Visual Grid */
.story-visual {
  position: relative;
}

.story-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 20px;
}

.story-img {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  border-radius: 16px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.story-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(0, 204, 204, 0.1));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.story-img:hover::after {
  opacity: 1;
}

.story-img-1 {
  grid-column: 1;
  grid-row: 1 / 3;
}

.story-img-2 {
  grid-column: 2;
  grid-row: 1;
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.story-img-3 {
  grid-column: 2;
  grid-row: 2;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

/* ===== VALUES SECTION ===== */
.about-values {
  padding: 140px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
}

.values-header {
  text-align: center;
  margin-bottom: 80px;
}

.values-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--black);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.values-header p {
  font-size: 1.1rem;
  color: var(--gray-700);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.value-card {
  padding: 48px 32px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.value-card:hover::before {
  opacity: 1;
}

.value-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.value-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(0, 204, 204, 0.1));
  border-radius: 16px;
  margin-bottom: 24px;
  transition: all var(--transition-base);
}

.value-card:hover .value-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: scale(1.1) rotate(-5deg);
}

.value-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  transition: color var(--transition-base);
}

.value-card:hover .value-icon svg {
  color: var(--white);
}

.value-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
}

/* ===== TEAM SECTION ===== */
.about-team {
  padding: 140px 0;
  background: var(--white);
}

.team-header {
  text-align: center;
  margin-bottom: 80px;
}

.team-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--black);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.team-header p {
  font-size: 1.1rem;
  color: var(--gray-700);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.team-member {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-member:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.member-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.member-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(0, 204, 204, 0.2));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.team-member:hover .member-photo::after {
  opacity: 1;
}

.team-member h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}

.member-role {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.team-member p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-700);
}

/* Alternate member photo backgrounds */
.team-member:nth-child(2) .member-photo {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.team-member:nth-child(3) .member-photo {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.team-member:nth-child(4) .member-photo {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.team-member:nth-child(5) .member-photo {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.team-member:nth-child(6) .member-photo {
  background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
}

/* ===== PROCESS SECTION ===== */
.about-process {
  padding: 140px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
}

.process-header {
  text-align: center;
  margin-bottom: 80px;
}

.process-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--black);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.process-header p {
  font-size: 1.1rem;
  color: var(--gray-700);
}

.process-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0.2;
}

.process-step {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
  transition: all var(--transition-base);
}

.process-step:hover .step-number {
  transform: scale(1.15) rotate(5deg);
  box-shadow: var(--shadow-lg);
}

.step-content {
  padding: 24px 32px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.process-step:hover .step-content {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.step-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 12px;
}

.step-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
}

/* ===== ABOUT CTA SECTION ===== */
.about-cta {
  padding: 160px 0 180px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.about-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.about-cta-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.about-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.about-cta p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.about-cta-btn {
  display: inline-block;
  padding: 16px 48px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.3);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.about-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.about-cta-btn:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 16px 40px rgba(88, 101, 242, 0.4);
}

.about-cta-btn:hover::before {
  opacity: 1;
}

.about-cta-btn span {
  position: relative;
  z-index: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .about-story-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .story-visual {
    order: -1;
  }

  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding: 100px 0 80px;
  }

  .about-hero h1 {
    font-size: 2.8rem;
  }

  .about-story,
  .about-values,
  .about-team,
  .about-process {
    padding: 100px 0;
  }

  .story-image-grid {
    grid-template-rows: repeat(2, 180px);
    gap: 16px;
  }

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

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

  .process-timeline::before {
    left: 40px;
  }

  .process-step {
    grid-template-columns: 80px 1fr;
    gap: 24px;
    margin-bottom: 48px;
  }

  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .step-content {
    padding: 20px 24px;
  }

  .about-cta {
    padding: 120px 0 140px;
  }
}

@media (max-width: 480px) {
  .about-hero-badge {
    padding: 6px 16px;
    font-size: 0.8rem;
  }

  .story-content h2,
  .values-header h2,
  .team-header h2,
  .process-header h2 {
    font-size: 2rem;
  }

  .story-image-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 160px);
  }

  .story-img-1 {
    grid-column: 1;
    grid-row: 1;
  }

  .story-img-2 {
    grid-column: 1;
    grid-row: 2;
  }

  .story-img-3 {
    grid-column: 1;
    grid-row: 3;
  }

  .value-card {
    padding: 32px 24px;
  }

  .team-member {
    padding: 24px 20px;
  }

  .member-photo {
    width: 100px;
    height: 100px;
  }

  .process-step {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-timeline::before {
    display: none;
  }

  .step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto;
  }

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

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .about-hero-badge,
  .value-card,
  .team-member,
  .process-step,
  .story-img {
    animation: none;
    transition: none;
  }
}

/* ===============================
   LOGO (STATIC IMAGE)
   =============================== */

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  height: 62px;        /* matches your earlier SVG height */
  width: auto;
  display: block;
  cursor: pointer;
}

/* ===============================
   FOOTER LOGO (STATIC IMAGE)
   =============================== */

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo-image {
  height: 70px;        /* visually balanced for footer */
  width: auto;
  display: block;
}
