@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap');

/* =============================================
   Our Companies Section
============================================= */
#companies {
  background: #fff;
  padding: 6rem 0 7rem;
}

/* Card wrapper — fixed height, white bg, relative */
.company-card {
  position: relative;
  background: #fff;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  /* Fixed height so the blind has a target to fill */
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
.company-card:hover {
  border-color: #f5a623;
  box-shadow: 0 24px 60px rgba(0,0,0,0.09);
}

/* ── Image blind ──────────────────────────────
   Positioned absolute, starts clipped to 0 height
   at the top. On hover it unrolls downward to cover
   the entire card (100% height).
─────────────────────────────────────────────── */
.card-img-blind {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* Blind starts rolled up — height 0 */
  height: 0;
  overflow: hidden;
  transition: height 0.65s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 10;
}
.company-card:hover .card-img-blind {
  /* Blind unrolls to cover the full card */
  height: 100%;
}

.card-img-blind img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Slight scale-down that corrects as blind opens */
  transform: scale(1.05);
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
}
.company-card:hover .card-img-blind img {
  transform: scale(1);
}

/* Dark overlay inside the blind */
.card-img-blind::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14, 26, 46, 0.55);
  z-index: 1;
}

/* Visit button — centered over the image */
.visit-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(14px);
  opacity: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid #f5a623;
  color: #f5a623;
  padding: 12px 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.68rem;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s ease 0.35s,
              transform 0.3s ease 0.35s,
              background 0.25s ease,
              color 0.25s ease;
}
.visit-btn:hover {
  background: #f5a623;
  color: #1e3050;
}
.company-card:hover .visit-btn {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

/* ── Card body — always visible below ───────── */
.card-body-content {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #fff;
  position: relative;
  z-index: 1;
}

/* Number + category row */
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}
.card-num {
  font-size: 0.6rem;
  font-weight: 800;
  color: #f5a623;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.card-sep {
  width: 20px;
  height: 1px;
  background: #d1d5db;
  flex-shrink: 0;
}
.card-category {
  font-size: 0.58rem;
  font-weight: 700;
  color: #a0aec0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Title */
.card-title {
  font-family: 'Merriweather', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e3050;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.company-card:hover .card-title {
  color: #f5a623;
}

/* Divider */
.card-divider {
  width: 28px;
  height: 2px;
  background: #f5a623;
  margin-bottom: 0.85rem;
  transition: width 0.4s ease;
}
.company-card:hover .card-divider {
  width: 52px;
}

/* Description */
.card-desc {
  font-size: 0.8rem;
  color: #718096;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.1rem;
}

/* Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}
.card-tag {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid #e2e8f0;
  color: #a0aec0;
  background: #f8f9fa;
}

    /* =============================================
       Team Card — AstraX Law Firm Advisors Style
    ============================================= */
    .team-card {
      position: relative;
      overflow: hidden;
      background: #fff;
      border: 1px solid #eee;
      transition: box-shadow 0.4s ease, border-color 0.4s ease;
    }
    .team-card:hover {
      box-shadow: 0 20px 50px rgba(0,0,0,0.1);
      border-color: #f5a623;
    }

    /* Photo area */
    .team-img-wrap {
      position: relative;
      overflow: hidden;
      aspect-ratio: 4/5;
    }
    .team-img-wrap .team-initials {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Merriweather', serif;
      font-size: 3.5rem;
      font-weight: 700;
      color: #fff;
      transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    }
    .team-card:hover .team-initials {
      transform: scale(1.06);
    }

    /* Social icons overlay */
    .team-social-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 1rem;
      display: flex;
      justify-content: center;
      gap: 10px;
      background: linear-gradient(to top, rgba(30,48,80,0.85) 0%, transparent 100%);
      transform: translateY(100%);
      transition: transform 0.4s ease;
    }
    .team-card:hover .team-social-overlay {
      transform: translateY(0);
    }
    .team-social-btn {
      width: 34px;
      height: 34px;
      border: 1px solid rgba(255,255,255,0.5);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 0.7rem;
      text-decoration: none;
      transition: background 0.3s ease, border-color 0.3s ease;
    }
    .team-social-btn:hover {
      background: #f5a623;
      border-color: #f5a623;
      color: #1e3050;
    }

    /* Card info */
    .team-info {
      padding: 1.25rem 1.5rem 1.5rem;
      border-top: none;
    }
    .team-role {
      font-size: 0.6rem;
      font-weight: 800;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: #a0aec0;
      margin-bottom: 0.4rem;
    }
    .team-name {
      font-family: 'Merriweather', serif;
      font-size: 1.05rem;
      font-weight: 700;
      color: #1e3050;
      margin-bottom: 0.6rem;
      transition: color 0.3s ease;
      display: block;
      text-decoration: none;
    }
    .team-name:hover {
      color: #f5a623;
    }
    .team-bio {
      font-size: 0.78rem;
      color: #718096;
      line-height: 1.65;
    }
    .team-name-divider {
      width: 28px;
      height: 2px;
      background: #f5a623;
      margin-bottom: 0.75rem;
      transition: width 0.4s ease;
    }
    .team-card:hover .team-name-divider {
      width: 48px;
    }